Go backward to 5 The basic specifications concrete syntax
Go up to Top
Go forward to Footnotes
6 Other examples of SORT-ITEM
- spec
- NAT =
- sorts
- Nat;
Zero,Pos<Nat
- %% Zero and Pos are subsorts of Nat
-
Weight = Nat
- %% Weight is an isosort of Nat
-
- ...
-
- end
-
- spec
- NAT_WITH_ODD =
- sorts
- Nat;
- ...
-
- op
- odd__:pred(Nat)
- axioms
- ¬ odd zero
- forall x:Nat.
-
odd(suc x) <=> ¬ odd x
- sort
- Odd = {n:Nat.odd n}
- %% Odd is a subsort of Nat
-
end
CoFI
Note: M-2 ---- 5 January 1998.
Comments to Christine.Choppy@irin.univ-nantes.fr