← LibraryPrimal AlgebrasEngineering · MathematicsLesson 3/10← PrevNext →
GuidePublished 6 Aug 20265 min readBy Kevin Joginuniversal algebraabstract algebramathematicsprimal algebra

Boolean Constructions and Discriminator Varieties

Primal Algebras

A primal algebra has every possible operation as a term operation. It generates a variety categorically equivalent to Boolean algebras — the strongest possible statement that an algebra behaves like the two-element Boolean algebra.

Engineering · Mathematics4 min readKV-MATH-0239
Learning objectives

01Primality

A finite algebra A with at least two elements is primal when every finitary operation on its universe is a term operation.

A primal  ⟺  for every n and every g : An → A, g = pA for some term p
The clone of term operations is the full clone of all operations on A. Nothing is missing.
Key resultThe two-element Boolean algebra is primal

Every Boolean function of n variables is expressible in disjunctive normal form using ∨, ∧ and ′, so every operation on {0, 1} is a term operation of 2. This is the archetypal example, and it explains why primality is the right generalisation of 'behaves like 2'.

Primality is an extremely strong condition. It says the algebra's term operations exhaust every conceivable function on its universe, so no structure is left unexpressed. Almost no naturally occurring algebra is primal.

02Foster's theorem

The variety generated by a primal algebra is as well understood as a variety can be.

Key resultFoster's theorem

If A is primal, then V(A) is categorically equivalent to the variety of Boolean algebras, and every member of V(A) is isomorphic to a Boolean power A[B]* for a unique Boolean algebra B.

  1. A is the unique subdirectly irreducible
    Primality forces the only subdirectly irreducible member of V(A) to be A itself, mirroring 2 in the Boolean case.
  2. Every member is a subdirect power of A
    By Birkhoff's subdirect representation theorem, combined with the previous point.
  3. The subdirect power is a Boolean power
    Primality supplies enough term operations to force local constancy, upgrading the subdirect representation to a Boolean power.
  4. The Boolean algebra is unique
    So V(A) and Boolean algebras correspond, member by member, with matching homomorphisms.

03What categorical equivalence buys

Transferred properties
Property of Boolean algebrasHolds in V(A) for A primal
One subdirectly irreducibleYes — A itself
ArithmeticalYes
Congruence-distributiveYes
Congruence-permutableYes
Congruence extension propertyYes
Locally finiteYes
Finitely basedYes
Decidable first-order theoryYes
Every member a Boolean power of the SIYes
Lattice of subvarieties: two elementsYes — trivial and the whole variety

Every structural question about V(A) reduces to the corresponding question about Boolean algebras, which is settled. This is the strongest form of the transfer principle the chapter is built around.

04Checking primality

ProcedureDeciding whether a finite algebra is primal
in: finite algebra A → out: primal or not
  1. input: finite algebra A, |A| = n ≥ 2
  2. necessary conditions, cheap to check first:
  3. A is simple (else a congruence blocks some operation)
  4. A has no proper subalgebras (else a subuniverse blocks some operation)
  5. A is rigid: the only automorphism is the identity
  6. sufficient test (Rosenberg): A is primal iff its clone is contained in
  7. no maximal clone — check against the finitely many maximal clones
  8. practical route: verify the discriminator is a term operation, plus
  9. that A is simple, subalgebra-free and rigid
  10. output: primality decision
Rosenberg's classification of maximal clones on a finite set makes the test finite and effective. Caveat: the number of maximal clones grows rapidly with |A|, so the test is expensive for larger algebras; UACalc implements the practical version.
CautionThe three necessary conditions are not obviously sufficient

Simplicity, no proper subalgebras and rigidity are all necessary for primality, and it is tempting to assume they suffice. They do not on their own — an algebra can satisfy all three and still have a clone missing some operations. The discriminator condition is what closes the gap, and that is the content of the next pages.

05Why the three conditions are necessary

Simplicity
Congruences block operations
If θ is a proper non-trivial congruence, every term operation respects it. An operation violating θ cannot be a term operation, so A is not primal.
No proper subalgebras
Subuniverses block operations
If C is a proper subuniverse, every term operation maps C into C. A constant operation with value outside C, restricted to C, violates this.

Rigidity is the same argument applied to automorphisms: every term operation commutes with every automorphism, so a non-trivial automorphism excludes any operation that fails to commute with it. Together the three say A has no internal structure of any kind for term operations to respect — which is exactly what primality demands.

06Primal, quasiprimal, functionally complete

Three related conditions, in decreasing strength, each generalising a different aspect of primality.

The hierarchy
ConditionRequirementGenerated variety
Primalevery operation is a term operationcategorically equivalent to Boolean algebras
Quasiprimalthe discriminator is a term operationa discriminator variety
Functionally completeevery operation is a polynomial operationno such clean characterisation

Quasiprimality relaxes primality by requiring only that one particular operation — the ternary discriminator — be a term operation. Functional completeness relaxes it by allowing constants. The two relaxations go in different directions, and the following pages treat each in turn.

Frequently asked

Are there primal algebras other than 2?

Yes, for every finite size. The n-element algebra with all operations taken as basic is trivially primal, and less artificial examples exist — Post algebras and certain finite fields with extra operations are primal. What is rare is for a naturally arising algebra with a small signature to be primal.

Is a finite field primal?

Not as a field in the ring signature — the field operations do not generate every operation, since term operations of a finite field are polynomial functions and not every function is one for fields larger than the prime field. Adding the right extra operations makes it primal, and Arens and Kaplansky's work on filtered Boolean powers of finite fields is the classical study of the near-miss.

Does primality imply the variety is finitely based?

Yes, via the categorical equivalence with Boolean algebras, which are finitely based. It also follows independently from Baker's theorem, since the variety is congruence-distributive and generated by a finite algebra.

Sources and further reading

Original KEVOS® explanatory article. Written from the topic map of the cited works; no text is reproduced from them.

Continue learning

Ultraproducts and Jonsson's LemmaGuide · MathematicsNEXT LESSON →Boolean ProductsGuide · MathematicsBoolean PowersGuide · MathematicsDiscriminator VarietiesGuide · Mathematics