Setoid.Congruences.Properties¶
Distributive and modular congruence lattices¶
This is the Setoid.Congruences.Properties module of the Agda Universal Algebra Library.
Setoid.Congruences.CompleteLattice assembled the congruence lattice of an algebra. This module names two properties that lattice may have β being distributive and being modular β which the Maltsev conditions of congruence distributivity (JΓ³nsson) and congruence modularity (Day) characterize by the existence of terms (Setoid.Varieties.Maltsev).
As in Setoid.Congruences.CompleteLattice, the lattice equations are stated at the
absorbing relation level π ββ = π β π₯ β Ξ± β Ο β ββ. At this level the join
_β¨_ (whose codomain otherwise bumps the level to π β) lands back at the level of
the meet _β§_, so both are operations on Con π¨ (π ββ) and the equations type-check.
The absorbing relation level¶
-- The relation level at which both meet and join are operations on Con π¨. Ε : Level β Level β Level β Level Ε Ξ± Ο ββ = π β π₯ β Ξ± β Ο β ββ
Congruence distributivity¶
An algebra π¨ is congruence-distributive (CD) when its congruence lattice
satisfies the distributive law ΞΈ β§ (Ο β¨ Ο) β (ΞΈ β§ Ο) β¨ (ΞΈ β§ Ο). (The reverse
containment half of this β is automatic in any lattice; the distributive law is the
forward containment ΞΈ β§ (Ο β¨ Ο) β (ΞΈ β§ Ο) β¨ (ΞΈ β§ Ο), but we state the full
symmetric β result for uniformity.)
module _ {Ξ± Ο : Level} (π¨ : Algebra Ξ± Ο)(ββ : Level) where CongruenceDistributive : Type (lsuc (Ε Ξ± Ο ββ)) CongruenceDistributive = (ΞΈ Ο Ο : Con π¨ (Ε Ξ± Ο ββ)) β ΞΈ β§ (Ο β¨ Ο) β (ΞΈ β§ Ο) β¨ (ΞΈ β§ Ο)
Congruence modularity¶
An algebra π¨ is congruence-modular (CM) when its congruence lattice satisfies
the modular law: whenever ΞΈ β Ο, ΞΈ β¨ (Ο β§ Ο) β (ΞΈ β¨ Ο) β§ Ο. Distributivity
implies modularity, so the congruence-distributive algebras form a subclass of the
congruence-modular ones.
CongruenceModular : Type (lsuc (Ε Ξ± Ο ββ)) CongruenceModular = (ΞΈ Ο Ο : Con π¨ (Ε Ξ± Ο ββ)) β ΞΈ β Ο β ΞΈ β¨ (Ο β§ Ο) β (ΞΈ β¨ Ο) β§ Ο