Setoid.Subalgebras.Subdirect.BirkhoffSI¶
Birkhoff's subdirect representation theorem¶
This is the Setoid.Subalgebras.Subdirect.BirkhoffSI module of the Agda Universal Algebra Library.
Birkhoff's SI theorem asserts that every algebra is a subdirect product of subdirectly irreducible algebras; this manifests as a family of SI algebras and a subdirect embedding into their product.
This module proves the choice-free core in full.
- The bridge — a family of congruences
θ : I → Con 𝑨whose meet is the diagonal (θseparates points) induces a subdirect embedding𝑨 ↪ ⨅ (λ i → 𝑨 ╱ θ i), with injectivity exactly the separation hypothesis and the coordinate projections surjective because they are the canonical quotient maps. - The reduction of Birkhoff to existence — given a subdirect SI-representation of
𝑨(a separating family whose quotients are all subdirectly irreducible),𝑨is a subdirect product of subdirectly irreducible algebras.
What is not choice-free is the existence of a subdirect SI-representation for an
arbitrary algebra. Indeed, for each pair a ≢ b one needs a congruence maximal
among those not relating a , b (it is completely meet-irreducible, so its quotient
is subdirectly irreducible); this is chosen by Zorn's lemma, which is incompatible with
a postulate-free, --safe formalization. In the present module, we take that
existence as an explicit module parameter (SubdirectSIRep), so the theorem is
proved relative to a precisely-stated assumption and nothing is postulated.1
SubdirectlyRepresentable : (𝑨 : Algebra α ρ) (ℓ ι : Level) → Type (𝓞 ⊔ 𝓥 ⊔ ρ ⊔ lsuc (α ⊔ ℓ ⊔ ι)) SubdirectlyRepresentable {α}{ρ} 𝑨 ℓ ι = Σ[ I ∈ Type ι ] Σ[ 𝒜 ∈ (I → Algebra α ℓ) ] ((∀ i → IsSubdirectlyIrreducible (𝒜 i)) × SubdirectEmbedding {𝑩 = 𝑨} 𝒜)
A subdirect SI-representation of 𝑨 packages exactly the data that the bridge
consumes: an index type, a family of congruences whose quotients are subdirectly
irreducible, and a proof that the family separates points. This is the precise
content that Zorn's lemma supplies classically (and is the only non-constructive input).
SubdirectSIRep : (𝑨 : Algebra α ρ) → (ℓ ι : Level) → Type (𝓞 ⊔ 𝓥 ⊔ α ⊔ ρ ⊔ lsuc (ℓ ⊔ ι)) SubdirectSIRep 𝑨 ℓ ι = Σ[ I ∈ Type ι ] Σ[ θ ∈ (I → Con 𝑨 ℓ) ] (Separates θ × ∀ i → IsSubdirectlyIrreducible (𝑨 ╱ θ i))
The choice-free reduction: a subdirect SI-representation yields a subdirect-product representation by subdirectly irreducible algebras. This is the whole theorem modulo the existence of the representation.
SIRep→Representable : {𝑨 : Algebra α ρ} → SubdirectSIRep 𝑨 ℓ ι → SubdirectlyRepresentable 𝑨 ℓ ι SIRep→Representable (I , θ , sep , si) = I , (λ i → _ ╱ θ i) , si , separating→SubdirectEmbedding θ sep
Birkhoff's theorem, relative to the choice principle that every algebra admits a subdirect SI-representation, then says every algebra is subdirectly representable.
module _ (sirep : (𝑨 : Algebra α ρ) → SubdirectSIRep 𝑨 ℓ ι) where Birkhoff-subdirect : (𝑨 : Algebra α ρ) → SubdirectlyRepresentable 𝑨 ℓ ι Birkhoff-subdirect 𝑨 = SIRep→Representable (sirep 𝑨)
-
This is called "option (a)" in the design brief
docs/notes/m6-2-subdirect.md; that document also describes alternatives (finite/decidable search, and the rationale) to be explored in other submodules of Setoid.Subalgebras.Subdirect. ↩