Classical.Theories.CommutativeSemigroup¶
The equational theory of commutative semigroups¶
This is the Classical.Theories.CommutativeSemigroup module of the Agda Universal Algebra Library.
A commutative semigroup adds commutativity to the semigroup theory, over the same
Sig-Magma signature (no new symbols). Th-CommutativeSemigroup therefore has two
equations, both composed from the generic builders of Classical.Equations.
data Eq-CommutativeSemigroup : Type where assoc comm : Eq-CommutativeSemigroup Th-CommutativeSemigroup : Eq-CommutativeSemigroup → Term (Fin 3) × Term (Fin 3) Th-CommutativeSemigroup assoc = Associative ∙-Op refl 0F 1F 2F Th-CommutativeSemigroup comm = Commutative ∙-Op refl 0F 1F