Lemma 10.8: universal mapping property of the term algebra
ProvedUAVariety.term_umpfree-algebrasmodel-theoryuniversal-algebra
is a signature without relation symbols ([L.IsAlgebraic]); an algebra is an -structure. The term algebra is L.Term X with the operations building terms. A congruence (Congruence M) is an equivalence relation on compatible with the operations, and φ.Quot is the quotient algebra (Mathlib's quotient structure). is the class of algebras (in Type u) admitting an embedding into a member of .
Claim. For any set , any algebra and any map there is a unique homomorphism with for all (namely , term evaluation).
Preamble
import Definitions.Def_UAVariety_defs universe u v w open FirstOrder FirstOrder.Language
Formal statement
namespace UAVariety
variable {L : FirstOrder.Language.{u, v}} [L.IsAlgebraic]
/-- B&S Lemma 10.8: the term algebra `T(X)` has the universal mapping property for every algebra: each map `X → A` extends uniquely to a homomorphism `T(X) → A` (term evaluation). -/
theorem term_ump {X : Type*} {A : Type*} [L.Structure A] (v : X → A) :
∃! h : L.Term X →[L] A, ∀ x, h (Term.var x) = v x := by sorry
end UAVarietySource
S. Burris, H. P. Sankappanavar, A Course in Universal Algebra, Millennium Edition (2012), https://www.math.uwaterloo.ca/~snburris/htdocs/ualg.html, Ch. II, Lemma 10.8