Prev Up Next
Go backward to E.2.3 List
Go up to E.2 Generic Structured Specifications
Go forward to E.2.5 Nat_List_with_Reverse_Orders

E.2.4 List_with_Order

spec
List_with_Order [Partial_Order] =
List [sort Elem]
then
 
ops
 
insert : Elem×List[Elem] -> List[Elem];
order[__ < __] : List[Elem] -> List[Elem]
vars
x,y : Elem; l : List[Elem]
axioms
order[__ < __](nil)=nil;
order[__ < __](cons(x,l))= insert(x,order[__ < __](l));
insert(x,nil)=cons(x,nil);
x < y => insert(x,cons(y,l))=cons(x,insert(y,l));
¬ (x < y) => insert(x,cons(y,l))=cons(y,insert(x,l))
hide
insert
end

CoFI Document: CASL/Summary-v1.0 -- Version: 1.0 -- 22 October 1998.
Comments to cofi-language@brics.dk

Prev Up Next