← LibraryBirkhoff's HSP TheoremEngineering · MathematicsLesson 89/497← PrevNext →
ArticlePublished 7 Aug 20263 min readBy Kevin Jogin

Varieties, Free Algebras and Equational Logic

Birkhoff's HSP Theorem

The central theorem of universal algebra: a class of algebras is definable by identities exactly when it is closed under homomorphic images, subalgebras and direct products.

Category Engineering / MathematicsSource II.11Pages 79-84Reading 3 minReviewed 2026-08-07

Learning objectives

The statement

Birkhoff's HSP theorem

A class K of algebras of a fixed type is an equational class if and only if it is a variety — that is, closed under H, S and P.

The theorem identifies a syntactic notion (definability by equations) with a structural one (closure under three constructions). That identification is what makes universal algebra a subject rather than a collection of analogies.

The easy direction

Every equational class is a variety. Each of the three closures was established on the previous page: homomorphisms preserve term operations; subalgebras inherit them by restriction; products compute them coordinatewise. So an identity holding throughout K holds throughout H(K), S(K) and P(K).

The hard direction

Suppose K is closed under H, S and P. The claim is that K = M(Id(K)) — every algebra satisfying all identities of K already lies in K.

  1. Let A satisfy every identity of K. Choose a generating set and take X of the same cardinality, so there is a surjection X → A.
  2. The free algebra FK(X) lies in SP(K), hence in K since K is closed under S and P.
  3. The surjection X → A extends to a homomorphism FK(X) → A. It is surjective because X generates A.
  4. Well-definedness of that extension is exactly the hypothesis that A satisfies all identities of K: terms identified in the free algebra must be identified in A.
  5. So A is a homomorphic image of a member of K, and closure under H gives A ∈ K.
Where each closure is usedS and P put the free algebra into K. H brings A back in as its image. All three are needed, and dropping any one breaks the argument — which is why quasivarieties, closed under S and P but not H, are not equational.

Using the theorem

The practical value is a decision procedure of sorts: to show a class is not equationally definable, exhibit a failure of one closure.

Non-equational classes and the failing closure
ClassFailsWitness
FieldsPA product of two fields has zero divisors
Finite groupsPAn infinite product of finite groups is infinite
Torsion-free abelian groupsHZ maps onto Z/nZ
Simple groupsS, PSubgroups and products of simple groups need not be simple
Cyclic groupsPA product of cyclic groups need not be cyclic
Cancellative semigroupsHA quotient can lose cancellation
The theorem is not constructive

Birkhoff's theorem guarantees that a variety has an equational basis but gives no way to find one, and no bound on its size. Whether a finite basis exists is a separate and much harder question — the subject of Chapter V §4.

Consequences

Frequently asked questions

Does Birkhoff's theorem hold for infinitary algebras?

Not in the same form. The proof uses free algebras whose existence depends on the finitary construction, and the theorem's statement requires modification in the infinitary setting.

Is there an analogous theorem for quasivarieties?

Yes — a class is definable by quasi-identities exactly when it is closed under isomorphism, subalgebras, products and ultraproducts. This is due to Mal'cev and is the natural companion result.

Source. S. Burris and H. P. Sankappanavar, A Course in Universal Algebra, The Millennium Edition — a corrected re-typesetting of Springer-Verlag Graduate Texts in Mathematics 78 (1981). Section II.11, book pages 79-84.

This page is an original exposition prepared for the KEVOS® knowledge library. It restates and reorganises mathematical results; it is not a reproduction of the source text.

Continue learning

Algebraic Lattices and Compact ElementsArticle · MathematicsThe Congruence Lattice Con(A) and its AlgebraicityArticle · MathematicsNEXT LESSON →Stone Duality for Boolean AlgebrasArticle · MathematicsDiscriminator Varieties and their StructureArticle · Mathematics