Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

K, H(K), S(K), P(K) and V(K) satisfy the same identities

Proved
UAVariety.same_identities

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. H(K)H(K)H(K), S(K)S(K)S(K), P(K)P(K)P(K) are the classes of homomorphic images, of algebras embeddable in, and of algebras isomorphic to direct products (over any index type in Type u, possibly empty) of members of KKK; KKK is a variety if it is closed under HHH, SSS and PPP. A⊨p≈qA\models p\approx qA⊨p≈q means ppp and qqq agree under every assignment of the variables in AAA; V(K)V(K)V(K) is the intersection of all varieties containing KKK. For every type XXX of variables and terms p,qp,qp,q over XXX: p≈qp\approx qp≈q holds in every member of H(K)H(K)H(K) iff it holds in every member of KKK, and likewise for S(K)S(K)S(K), P(K)P(K)P(K) and V(K)V(K)V(K).

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 11.3: `K`, `H K`, `S K`, `P K` and `V K` satisfy the same identities over any
set of variables `X` (closure under `I` is built into the operators). -/
theorem same_identities (K : Set (Alg L)) {X : Type w} (p q : L.Term X) :
    ((∀ A ∈ H K, Satisfies A (p, q)) ↔ ∀ A ∈ K, Satisfies A (p, q)) ∧
      ((∀ A ∈ S K, Satisfies A (p, q)) ↔ ∀ A ∈ K, Satisfies A (p, q)) ∧
      ((∀ A ∈ P K, Satisfies A (p, q)) ↔ ∀ A ∈ K, Satisfies A (p, q)) ∧
      ((∀ A ∈ V K, Satisfies A (p, q)) ↔ ∀ A ∈ K, Satisfies A (p, q)) := 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, Lemma 11.3
Read-back

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

Let LLL be a signature with no relation symbols (function symbols in universe uuu, relation symbols in universe vvv), let KKK be an arbitrary class of algebras with carriers in Type u\mathrm{Type}\ uType u, let XXX be an arbitrary type in an arbitrary universe www (the variable type; not tied to uuu), and let p,qp,qp,q be LLL-terms over the variables XXX. Write "A⊨p≈qA\models p\approx qA⊨p≈q" for: for every assignment v:X→Av:X\to Av:X→A, pA[v]=qA[v]p^A[v]=q^A[v]pA[v]=qA[v]. The statement is the conjunction of four biconditionals:

  • every member of H(K)H(K)H(K) satisfies p≈qp\approx qp≈q iff every member of KKK does;
  • every member of S(K)S(K)S(K) satisfies p≈qp\approx qp≈q iff every member of KKK does;
  • every member of P(K)P(K)P(K) satisfies p≈qp\approx qp≈q iff every member of KKK does;
  • every member of V(K)V(K)V(K) satisfies p≈qp\approx qp≈q iff every member of KKK does.

Here H(K)H(K)H(K) is the class of algebras that are surjective homomorphic images of members of KKK; S(K)S(K)S(K) the class of algebras admitting an embedding into a member of KKK; P(K)P(K)P(K) the class of algebras isomorphic to a direct product, indexed by an arbitrary (possibly empty) type in Type u\mathrm{Type}\ uType u, of members of KKK (coordinatewise operations); and V(K)V(K)V(K) the intersection of all classes W⊇KW\supseteq KW⊇K that satisfy H(W)⊆WH(W)\subseteq WH(W)⊆W, S(W)⊆WS(W)\subseteq WS(W)⊆W, P(W)⊆WP(W)\subseteq WP(W)⊆W. No hypothesis is placed on KKK (it may be empty) or on p,qp,qp,q.

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