KEVOS
ArticlesServicesCase studiesAboutContact
ArticlesServicesCase studiesAboutContact
← ArticlesDiscriminator VarietiesEngineering · Engineering MathematicsLesson 5/10← PrevNext →
GuidePublished 6 Aug 2026Updated 13 Aug 202610 min readBy Kevin Joginuniversal algebraabstract algebramathematicsdiscriminator variety
On this page

Ask about this page

KEVOS AIDiscriminator Varieties

KEVOS knowledge first · trusted web sources when needed

Boolean Constructions and Discriminator Varieties

Discriminator Varieties

The ternary discriminator is a single term that encodes if-then-else. A variety generated by algebras carrying it is arithmetical, semisimple, congruence-permutable, has the congruence extension property and decomposes into Boolean products of simples.

Engineering · Mathematics11 min readKV-MATH-0241
Learning objectives
  • Define the ternary discriminator and verify it encodes a conditional.
  • Define a discriminator variety.
  • State the Boolean product representation theorem.
  • List the structural properties that follow automatically.
  • Show the discriminator is a Pixley term, hence arithmeticity.
  • Recognise standard examples of discriminator varieties.

01The ternary discriminator

On a set A, the ternary discriminator is the function that returns its third argument unless the first two agree, in which case it returns the second.

t(x, y, z) =   z   if x = y,    x   if x ≠ y
Equivalently: an if-then-else with equality as the test. Written t or the discriminator term throughout.
Key resultThe discriminator encodes case analysis

Because the discriminator tests equality and branches, a term algebra containing it can express conditional definitions. This single operation is what gives discriminator varieties their exceptional behaviour: arguments that would need case analysis in the metatheory can be carried out inside the algebra.

An algebra on which the discriminator is a term operation is called quasiprimal, treated in detail on the next page. A discriminator variety is one generated by a class of algebras on which a common term realises the discriminator.

02The discriminator is a Pixley term

ProcedureChecking the Pixley identities for the discriminator
in: the discriminator t → out: verification that t is a Pixley term
  1. required: p(x,y,y) ≈ x, p(x,y,x) ≈ x, p(y,y,x) ≈ x
  2. take p := t, the ternary discriminator
  3. t(x,y,y): if x = y the value is y = x; if x ≠ y the value is x. So t(x,y,y) = x ✓
  4. t(x,y,x): if x = y the value is x; if x ≠ y the value is x. So t(x,y,x) = x ✓
  5. t(y,y,x): first two arguments agree, so the value is x ✓
  6. all three identities hold, so t is a Pixley term
Consequence: every discriminator variety is arithmetical — congruence-permutable and congruence-distributive. Caveat: the converse fails; arithmetical varieties need not be discriminator varieties.

Arithmeticity comes for free, and with it congruence distributivity, hence Jónsson's lemma. That combination is what makes the structure theory possible.

03The representation theorem

Key resultBulman-Fleming, Keimel and Werner

Every algebra in a discriminator variety is isomorphic to a Boolean product of simple algebras. Conversely, a variety in which every member is such a Boolean product, with the simples suitably related, is a discriminator variety.

  1. Simplicity of the stalks
    In a discriminator variety the subdirectly irreducible members are exactly the simple members, and every algebra on which the discriminator is a term operation is simple.
  2. Boolean product structure
    The factor congruences of a member contain a Boolean algebra, and the corresponding Stone space indexes the stalks.
  3. Patching from the discriminator
    The discriminator term is precisely what supplies the patching condition — it performs the clopen case split algebraically.
  4. Result
    A complete structural description: the variety is determined by its simple members and the Boolean algebras used to glue them.

The source describes discriminator varieties as remarkably well behaved yet fascinating, and observes that probably no other class of varieties combines both qualities to the same degree. The representation theorem is why.

04The structural package

Properties that follow automatically
PropertyHolds?Source
ArithmeticalYesdiscriminator is a Pixley term
Congruence-permutableYesfrom arithmeticity
Congruence-distributiveYesfrom arithmeticity
Congruence extension propertyYesdirect from the discriminator
SemisimpleYesSI members are simple
Every member a Boolean product of simplesYesBFKW theorem
Finitely generated ⟹ finitely basedYesBaker, via congruence distributivity
Finitely generated of finite type ⟹ decidableYesBurris and Werner 1979
Model companion existsYesBurris and Werner

Very few hypotheses in universal algebra deliver this much. Assuming a variety is a discriminator variety settles almost every structural question about it at once, which is why the class attracted so much attention in the period the source describes.

05Examples

Boolean algebras
The archetype
The Pixley term given in the Boolean stream is a discriminator term on 2. Boolean algebras are the simplest discriminator variety.
Post algebras
n-valued logic
Generated by a chain of n elements with the right operations; discriminator varieties for each n.
Cylindric algebras of finite dimension
Algebraic logic
Comer's work on these motivated much of the sheaf theory that became Boolean products.
Monadic algebras
Modal logic
Discriminator varieties, which is why their model companions are well behaved.
Varieties generated by quasiprimal algebras
The general source
Any finite algebra with a discriminator term generates a discriminator variety. This is the standard way examples arise.
Rings satisfying x^n ≈ x
For fixed n
Generate discriminator varieties, connecting the theory to classical ring conditions.

06Decidability

The decidability result for discriminator varieties is one of the strongest positive results in the area, and it is proved through the Boolean product representation.

ProcedureBurris and Werner's decidability argument
in: finitely generated discriminator variety of finite type → out: decidability
  1. input: finitely generated discriminator variety V of finite type
  2. every member is a Boolean product of simple algebras (BFKW)
  3. convert the Boolean product to a filtered Boolean power
  4. (a better-behaved construction, Arens–Kaplansky)
  5. semantically embed the countable members of V into
  6. countable Boolean algebras with finitely many distinguished filters
  7. apply Rabin's decidability result for that theory
  8. conclude: the first-order theory of V is decidable
The semantic embedding technique is developed in the Model-Theoretic stream, where it is used in the opposite direction to prove undecidability. Caveat: both hypotheses matter — finite generation and finite type.

Frequently asked

Is every arithmetical variety a discriminator variety?

No. Arithmeticity is necessary but not sufficient. Heyting algebras are arithmetical and do not form a discriminator variety, since they have subdirectly irreducible members that are not simple. Semisimplicity is the additional ingredient.

Must the discriminator term be the same across the generating class?

Yes — a discriminator variety requires a single term that realises the discriminator on every member of the generating class. Different terms on different algebras would not give a common term operation on the variety, and the representation theorem would fail.

Why are discriminator varieties semisimple?

Because any algebra on which the discriminator is a term operation is simple: given a non-trivial congruence relating a ≠ b, the discriminator term applied appropriately forces the congruence to relate everything. Since the subdirectly irreducibles of the variety are among such algebras, they are all simple.

Related pages
  • Quasiprimal Algebras and Pixley's Theorem
  • Boolean Products
  • Universal Algebra: Discipline Overview
  • Boolean Powers
Sources and further reading
  • S. Burris and H. P. Sankappanavar, A Course in Universal Algebra, Millennium Edition (a corrected re-typesetting of Springer GTM 78, 1981).
  • G. Grätzer, Universal Algebra, 2nd edition, Springer.
  • R. McKenzie, G. McNulty and W. Taylor, Algebras, Lattices, Varieties, Volume I.

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

Handbook application: from concept to controlled practice

Purpose. This expanded section turns the original page into a practical handbook. It preserves the supplied material and adds a repeatable way to apply, check and review Discriminator Varieties. It does not replace a contract, legislation, a controlled standard, competent engineering judgement or specialist advice.

The operating aim is to turn a compact mathematical statement into a usable chain of definitions, claims, examples and checks. Read the original explanation first, then use the workflow and checks below to convert knowledge into evidence.

Treat Discriminator Varieties as a network of definitions and implications, not as a list of formulas. The working vocabulary on this page—discriminator, ternary, term, varieties, representation—should be made explicit before any proof or computation begins. Record the ambient set or structure, the permitted operations and the equality or equivalence relation in use. A compact theorem often changes meaning when the base field, finiteness condition, commutativity assumption or direction of an action changes.

For a proof, write the hypotheses as a checklist and mark the line at which each one is used. For a computation, state the representation of the input, the arithmetic model, the termination condition and the output invariant. For a classification problem, distinguish existence from uniqueness and distinguish an object from its representation. These separations prevent a correct local calculation from being mistaken for the general result.

A useful worked example should be small enough to inspect completely but rich enough to exercise the main mechanism. Compute the result in two ways where practical: symbolically and by substitution, structurally and numerically, or directly and through a normal form. Then include one near-miss example in which a hypothesis fails. The contrast explains why the theorem is shaped as it is and gives the reader a diagnostic pattern for later problems.

Verification is part of the mathematics. Check domains and codomains, substitute proposed solutions, test identity and zero cases, compare dimensions or cardinalities, and confirm that maps respect the required operations. In numerical work, report precision, conditioning and a residual rather than digits alone. In algorithmic work, separate mathematical correctness from implementation complexity and resource limits.

Step-by-step operating method

  1. Fix the setting. State the objects, ambient structure, notation and assumptions before manipulating symbols.
  2. Separate claims. Distinguish definitions, hypotheses, conclusions, equivalent conditions and consequences.
  3. Choose a method. Select proof, construction, calculation or algorithm according to the question actually asked.
  4. Work a small case. Use the smallest non-trivial example to expose the mechanism and test edge behaviour.
  5. Verify independently. Substitute back, check invariants, test boundary cases or use an alternative derivation.

Worked-example protocol

Illustrative method—not a source theorem. Start with a small admissible input and list the definitions it must satisfy. Carry out each transformation on a separate line, citing the property that permits it. Preserve exact values until approximation is necessary. At the end, verify the output against the original definition and one invariant such as dimension, degree, determinant, order, norm or residual. Then alter one hypothesis and observe which step ceases to be valid. This protocol creates a reusable example without inventing a theorem-specific numerical answer.

StageRecordQuality check
InputObjects, domain, notation, assumptionsEvery symbol is defined
MethodPermitted operation or cited result at each stepAll hypotheses hold
OutputExact result and representationCorrect type, domain and form
VerificationSubstitution, invariant or alternative derivationIndependent agreement
Boundary testZero, identity, degenerate or failed hypothesisScope is understood

Common failure modes and recovery actions

1. Watch for

Using a theorem without checking every hypothesis.

Recovery: Return to the governing definition or requirement and restate the decision in one sentence.

2. Watch for

Treating a suggestive example as a proof of the general case.

Recovery: Separate evidence from assumption, assign an owner and set a date for validation.

3. Watch for

Changing notation or conventions part-way through an argument.

Recovery: Run a small counterexample, boundary test, pilot or independent check before proceeding.

4. Watch for

Hiding a division-by-zero, convergence, finiteness or commutativity assumption.

Recovery: Record the consequence, decision and rationale, then update the controlled baseline.

5. Watch for

Reporting a computed result without a residual, substitution or structural check.

Recovery: Escalate when the issue affects safety, compliance, acceptance, material value or an agreed tolerance.

Review checklist

  • Can every symbol be traced to a definition or prior result?
  • Which hypothesis does each major step use?
  • Does the method cover zero, identity, degenerate and boundary cases?
  • Can the conclusion be checked by a second representation or calculation?
  • Are mandatory requirements distinguished from recommendations and illustrative values?
  • Are sources, assumptions, units, dates and versions recorded closely enough to reproduce the decision?
  • Have safety, legal, ethical, stakeholder and operational consequences been considered at the appropriate level?
  • Is there a named owner and a trigger for review, escalation, change or retirement?

Questions for deeper application

What is the most important distinction a practitioner must preserve when applying Discriminator Varieties?

Answer with a fact or cited source where available. Where evidence is incomplete, record the assumption, consequence, responsible owner and next validation action.

Which assumption about discriminator would change the result most if it proved false?

Answer with a fact or cited source where available. Where evidence is incomplete, record the assumption, consequence, responsible owner and next validation action.

What evidence would allow an independent reviewer to reproduce or challenge the conclusion?

Answer with a fact or cited source where available. Where evidence is incomplete, record the assumption, consequence, responsible owner and next validation action.

Which boundary, exception or failure case has not yet been tested?

Answer with a fact or cited source where available. Where evidence is incomplete, record the assumption, consequence, responsible owner and next validation action.

What must be handed over, monitored or reviewed after the immediate work is complete?

Answer with a fact or cited source where available. Where evidence is incomplete, record the assumption, consequence, responsible owner and next validation action.

Authoritative references and use notes

The sources below were selected as institutional or primary guidance for the broader practice. They support the handbook method; they do not imply that every statement or clause in a source applies to every project. Confirm the current edition, jurisdiction, contract and application before treating any requirement as mandatory.

  • MIT OpenCourseWare — Algebra I — Massachusetts Institute of Technology. Used for groups, vector spaces, linear transformations and linear groups. Accessed 2026-08-13.
  • The Stacks Project — table of contents — The Stacks Project. Used for commutative algebra, homological algebra, modules and derived categories. Accessed 2026-08-13.

Continue learning

Boolean ProductsGuide · Engineering MathematicsNEXT LESSON →Quasiprimal Algebras and Pixley's TheoremGuide · Engineering MathematicsPrimal AlgebrasGuide · Engineering MathematicsFunctionally Complete AlgebrasGuide · Engineering Mathematics
KEVOS · Engineering, manufacturing and project improvement
ArticlesServicesCase studiesAboutContact
© 2026 KEVOS®