Prev Up
Go backward to E.2.4 COMPOUND_SYMBOLS_ARE_NICE
Go up to E.2 Specifications from the Paris Proposal

E.2.5 LIST

spec
List[sort Elem] =
generated type
List[Elem] ::=
empty | sort Elem | __ __(Elem; List[Elem])
pred
__is_empty : List[Elem]
vars
e : Elem; l : List[Elem]
axioms
empty is_empty;
¬  (e is_empty);
¬  (e l is_empty);
e = e empty %%  OK since e:List[Elem]
end

CoFI Document: CASL/Summary --Version 0.99-- 21 April 1998.
Comments to cofi-language@brics.dk

Prev Up