Setoid.Subalgebras¶
Subalgebras over setoids¶
This is the Setoid.Subalgebras module of the Agda Universal Algebra Library.
This is a barrel module: it declares nothing of its own and re-exports the five modules that make up the theory of subalgebras over setoids.
In this library, we call an algebra π¨ a subalgebra of π©, written π¨ β€ π©,
provided π¨ can be homomorphically embedded in π©, that is, when some
homomorphism from π¨ to π© has an injective underlying map. This is not the
standard textbook definition, but is essentially (algebraically) equivalent to
it.
Normally one defines a subuniverse to be a subset of the carrier of an algebra that is closed under the operations; a subalgebra is then a subuniverse together with the operations of the larger algebra restricted to it. We do define subuniverses in the standard way in the Setoid.Subalgebras.Subuniverses module, so the textbook definition of subalgebra is available to us. But the homomorphic embedding interpretation of the subalgebra relation turns out to be more convenient for our purposes.
Taking subalgebras is one of the three closure operations whose composite defines
a variety, and S of Setoid.Varieties.Closure is defined
directly in terms of the _β€_ introduced here.
Guide to the submodules of Setoid.Subalgebras¶
- Setoid.Subalgebras.Basic: the relation
_β€_, its converse_β₯_, the bundledSubalgebraOfandSubalgebraforms, the class-relative_β€c_, andmonββ€; - Setoid.Subalgebras.Properties: that
_β€_is a preorder, which is as far as it goes (mutual embeddings do not yield an isomorphism in general, though they do for finite algebras); how_β€_interacts with isomorphism and with universe lifting; and that it is preserved by products; - Setoid.Subalgebras.Subuniverses: the subsets of a carrier closed under the operations, the subuniverse they generate, and the induction principle that makes generation usable;
- Setoid.Subalgebras.CompleteLattice: the subuniverses of a fixed algebra, ordered by inclusion, as a complete lattice;
- Setoid.Subalgebras.Subdirect: subdirect products, subdirect irreducibility, and Birkhoff's subdirect representation theorem, which is proved relative to a choice principle in general and unconditionally for finite algebras.
{-# OPTIONS --cubical-compatible --exact-split --safe #-} module Setoid.Subalgebras where open import Setoid.Subalgebras.Basic public open import Setoid.Subalgebras.CompleteLattice public open import Setoid.Subalgebras.Properties public open import Setoid.Subalgebras.Subuniverses public open import Setoid.Subalgebras.Subdirect public