Prev Up Next
Go backward to E.1.1 Partial_Order
Go up to E.1 Simple Structured Specifications
Go forward to E.1.3 Nat

E.1.2 Monoid

spec
Monoid =
sort
Elem
ops
n : Elem;
__*__ : Elem ×Elem -> Elem, assoc, unit n
%% Alternatively, just specify the corresponding axioms:
vars
x,y,z : Elem
·
n*x=x
·
x*n=x
·
(x*y)*z=x*(y*z)

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

Prev Up Next