Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Universal mapping property of the free algebra

Proved
UAVariety.free_ump

by Alien60 · Nov 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

equational-logicfree-algebrasmodel-theoryuniversal-algebravarieties

LLL is a signature without relation symbols; an algebra is a type in Type u with an LLL-structure (Alg L), and KKK is a class of algebras. FK(Xˉ)=T(X)/θK(X)F_K(\bar X)=T(X)/\theta_K(X)FK​(Xˉ)=T(X)/θK​(X), where T(X)T(X)T(X) is the term algebra over XXX and θK(X)\theta_K(X)θK​(X) is the intersection of all congruences φ\varphiφ on T(X)T(X)T(X) with T(X)/φ∈S(K)T(X)/\varphi\in S(K)T(X)/φ∈S(K); xˉ\bar xxˉ and pˉ\bar ppˉ​ are the classes of a variable and of a term. For every type XXX in Type u, every A∈KA\in KA∈K and every map v:X→Av:X\to Av:X→A there is a unique homomorphism f:FK(Xˉ)→Af:F_K(\bar X)\to Af:FK​(Xˉ)→A with f(xˉ)=v(x)f(\bar x)=v(x)f(xˉ)=v(x) for all x∈Xx\in Xx∈X.

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 Thm 10.10 (Birkhoff): `F_K(X̄)` has the universal mapping property for `K` over `X̄`:
every map of the generators into a member of `K` extends to a unique homomorphism. -/
theorem free_ump (K : Set (Alg L)) (X : Type u) (A : Alg L) (hA : A ∈ K) (v : X → A) :
    ∃! f : freeAlg K X →[L] A, ∀ x, f (freeGen K X x) = v x := by sorry

end UAVariety
Source
S. Burris, H. P. Sankappanavar, A Course in Universal Algebra, Millennium Edition (2012), https://www.math.uwaterloo.ca/~snburris/htdocs/ualg.html, Ch. II, Def 10.9 and Theorem 10.10 (Birkhoff)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let LLL be a signature with no relation symbols, KKK an arbitrary class of algebras, XXX an arbitrary type in Type u\mathrm{Type}\ uType u, AAA an algebra with carrier in Type u\mathrm{Type}\ uType u with A∈KA\in KA∈K, and v:X→Av:X\to Av:X→A an arbitrary function. Let F=FK(X)=T(X)/θK(X)F=F_K(X)=T(X)/\theta_K(X)F=FK​(X)=T(X)/θK​(X) be the quotient of the term algebra by the intersection of all congruences φ\varphiφ on T(X)T(X)T(X) whose quotient T(X)/φT(X)/\varphiT(X)/φ admits an embedding into some member of KKK (up to isomorphism). The statement is: there exists exactly one LLL-homomorphism f:F→Af:F\to Af:F→A such that f(xˉ)=v(x)f(\bar x)=v(x)f(xˉ)=v(x) for every x∈Xx\in Xx∈X, where xˉ\bar xxˉ is the class of the variable term xxx. ("Exactly one" refers to uniqueness among all LLL-homomorphisms F→AF\to AF→A satisfying that condition on all generators.)

Human review
  • Endorsed by Shuze Chen · Nov 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Alien60 · Nov 6, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me