← LibraryThe Ternary Discriminator FunctionEngineering · MathematicsLesson 85/497← PrevNext →
ArticlePublished 7 Aug 20263 min readBy Kevin Jogin

Boolean Constructions and Discriminator Varieties

The Ternary Discriminator Function

The operation that tests equality and branches, and the reason it is the single most consequential term operation in the subject.

Category Engineering / MathematicsSource IV.9Pages 186-188Reading 2 minReviewed 2026-08-07

Learning objectives

The definition

Definition — Ternary discriminator

On a set A, the operation tA3 → A given by t(xyz) = z if x = y, and t(xyz) = x otherwise.

Read as a conditional: if x equals y then return z else return x. It is the algebraic form of a branching instruction.

Values of the discriminator
Case<em>t</em>(<em>x</em>, <em>y</em>, <em>z</em>)
x = yz
xyx
t(x, x, z)z
t(x, y, x)x — always
t(x, y, y)y if x = y, else x

Immediate consequences

The discriminator is a Mal'cev termt(xyy) is not generally x, so t itself is not a Mal'cev term; but the term t(t(xyz), t(yyz), x) and similar compositions yield a Mal'cev term, so any algebra with a discriminator term generates a congruence-permutable variety.
The discriminator gives a Pixley term

An algebra with the ternary discriminator as a term operation generates an arithmetical variety — both congruence-permutable and congruence-distributive.

One operation, both conditions

Arithmeticity normally requires verifying two independent Mal'cev conditions. The discriminator delivers both at once, which is the source of its power.

Simplicity

Discriminator algebras are simple

A non-trivial algebra having the ternary discriminator as a term operation is simple.

Suppose θ is a congruence with a θ b for some a ≠ b. For any c, d, apply the substitution property to the discriminator: t(abc) = a since a ≠ b, while t(aac) = c. Since a θ b, these are θ-related, so a θ c for every c — hence θ = ∇.

Case analysis becomes available

The proof is a template. Having the discriminator means one can always write “if these two elements are equal do this, otherwise do that” as a term, and then apply the substitution property to both branches. Almost every argument about discriminator varieties uses this move.

Where the discriminator occurs

Algebras with a discriminator term
AlgebraDiscriminator is a term?
2, BooleanYes
Any primal algebraYes — every operation is a term
Any quasiprimal algebraYes — by definition
A finite field with all polynomial operationsYes
Cylindric algebras of finite dimensionYes
A finite simple groupNo — group terms cannot test equality
Any lattice with 3+ elementsNo — the discriminator is not monotone
Monotonicity again

The discriminator is not order-preserving, so no algebra whose term operations are all monotone can have it. This immediately rules out lattices, semilattices and ordered structures generally.

Frequently asked questions

Is the discriminator a single operation or a family?

A single ternary operation, determined by the underlying set. Any set of size at least two has exactly one ternary discriminator.

Can an infinite algebra have a discriminator term?

Yes. The definition does not require finiteness, and infinite discriminator algebras exist — though the strongest structure theorems are usually stated for the finite case.

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 IV.9, book pages 186-188.

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

Solution of TrianglesArticle · MathematicsEquivalence Relations and the Partition Lattice Eq(A)Article · MathematicsQuotient Algebras and the Natural MapArticle · MathematicsIdentities, Satisfaction and Equational ClassesArticle · Mathematics