Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Tarski's theorem V = HSP

Proved
UAVariety.V_eq_HSP

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. V(K)V(K)V(K) is the intersection of all varieties containing KKK. Then S(H(K))⊆H(S(K))S(H(K))\subseteq H(S(K))S(H(K))⊆H(S(K)), P(S(K))⊆S(P(K))P(S(K))\subseteq S(P(K))P(S(K))⊆S(P(K)), P(H(K))⊆H(P(K))P(H(K))\subseteq H(P(K))P(H(K))⊆H(P(K)), and V(K)=H(S(P(K)))V(K)=H(S(P(K)))V(K)=H(S(P(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 9.2 (`SH ≤ HS`, `PS ≤ SP`, `PH ≤ HP`) and Tarski's Theorem 9.5: the variety
generated by `K` is `HSP K`. -/
theorem V_eq_HSP (K : Set (Alg L)) :
    (S (H K) ⊆ H (S K) ∧ P (S K) ⊆ S (P K) ∧ P (H K) ⊆ H (P K)) ∧
      V K = H (S (P K)) := 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 9.2 and Theorem 9.5 (Tarski)
Read-back

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

Let LLL be a signature with no relation symbols, and let KKK be an arbitrary class of algebras with carriers in Type u\mathrm{Type}\ uType u. Here H,S,PH,S,PH,S,P are, respectively, surjective homomorphic images; algebras admitting an embedding into a member; and algebras isomorphic to a direct product, indexed by an arbitrary (possibly empty) type in Type u\mathrm{Type}\ uType u, of members (coordinatewise operations). Composites such as S(H(K))S(H(K))S(H(K)) mean applying the operators in turn to classes. The statement is a conjunction of two parts.

  1. All three inclusions of classes hold: S(H(K))⊆H(S(K))S(H(K))\subseteq H(S(K))S(H(K))⊆H(S(K)); P(S(K))⊆S(P(K))P(S(K))\subseteq S(P(K))P(S(K))⊆S(P(K)); P(H(K))⊆H(P(K))P(H(K))\subseteq H(P(K))P(H(K))⊆H(P(K)).
  2. V(K)=H(S(P(K)))V(K)=H(S(P(K)))V(K)=H(S(P(K))), where V(K)V(K)V(K) is the intersection of all classes W⊇KW\supseteq KW⊇K satisfying H(W)⊆WH(W)\subseteq WH(W)⊆W, S(W)⊆WS(W)\subseteq WS(W)⊆W, P(W)⊆WP(W)\subseteq WP(W)⊆W.
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