A magma is an algebraic structure on a finite or infinite set equipped with an operator where the set is closed under this operation.
| S | Type of a set |
| Op | Type of an operation |
| {S,Op} | Model of Magma |
| a, b | Objects of type S |
| op | Object of type Op |
| Name | Expression | Return type |
|---|---|---|
| Operation | op(a,b) | S or convertible to S |
| Closure | op(a,b) returns an element of the set S |