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

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/SyntaxExamples --Version 0.99-- 17 February 1998.
Comments to cofi-language@brics.dk

Prev Up