Median algebra/Definition

A set with a ternary operation satisfying a set of axioms which generalise the notion of median or majority function, as a Boolean function.