Classical.Theories.Semilattice¶
The equational theory of semilattices¶
This is the Classical.Theories.Semilattice module of the Agda Universal Algebra Library.
A semilattice is an idempotent commutative semigroup: its theory adds idempotency to
commutativity and associativity, over the same Sig-Magma signature (no new symbols).
Th-Semilattice therefore has three equations, all composed from the generic builders
of Classical.Equations.
data Eq-Semilattice : Type where assoc comm idem : Eq-Semilattice Th-Semilattice : Eq-Semilattice → Term (Fin 3) × Term (Fin 3) Th-Semilattice assoc = Associative ∙-Op refl 0F 1F 2F Th-Semilattice comm = Commutative ∙-Op refl 0F 1F Th-Semilattice idem = Idempotent ∙-Op refl 0F