discriminator function
Let be a non-empty set. The ternary discriminator on is the ternary operation on such that
In other words, is a function that determines whether or not a pair of elements in are the same, hence the name discriminator.
It is easy to see that, by setting two of the three variables the same, becomes a constant function: , , and .
More generally, the quaternary discriminator or the switching function on is the quaternary operation![]()
on such that
However, this generalization is really an equivalent
![]()
concept in the sense that one can derive one type of discriminator from another: given above, set . Conversely, given above, set .
Remark. The following ternary functions could also serve as discriminator functions:
But they are really no different from the ternary discriminator :
References
- 1 G. Grätzer: Universal Algebra

, 2nd Edition, Springer, New York (1978).
- 2 S. Burris, H.P. Sankappanavar: A Course in Universal Algebra, Springer, New York (1981).