In the area of mathematics known as universal algebra, a clone is a set C of finitary operations on a set A such that:
- C contains all the projections πₖⁿ: Aⁿ → A, defined by πₖⁿ(x₁, …, xₙ) = xₖ.
- C is closed under (finitary multiple) composition (or "superposition"): if f, g₁, …, gₘ are members of C such that f is m-ary and gⱼ is n-ary for all j, then the n-ary operation h(x₁, …, xₙ) := f(g₁(x₁, …, xₙ), …, gₘ(x₁, …, xₙ)) is also in C.
The question of whether clones should contain nullary operations is not treated uniformly in the literature. The classical approach, as evidenced by standard monographs on clone theory, considers clones containing only at-least-unary operations. However, with minor modifications (related to the empty invariant relation), most of the usual theory can be lifted to clones that allow nullary operations.
Relationship to algebras. Given an algebra in a signature σ, the set of operations on its carrier definable by a σ-term (the term functions) is a clone. Conversely, every clone can be realized as the clone of term functions in a suitable algebra by taking the clone itself as the source for the signature σ, so that the algebra has the whole clone as its fundamental operations.
If A and B are algebras with the same carrier such that every basic function of A is a term function in B and vice versa, then A and B have the same clone. For this reason, modern universal algebra often treats clones as a representation of algebras that abstracts from their signature.
Properties and classification. There is only one clone on a one-element set (two if nullary operations are considered). The lattice of clones on a two-element set is countable and has been completely described by Emil Post (see Post's lattice). Clones on larger sets do not admit a simple classification; there are continuum-many clones on a finite set of size at least three, and 2^(2^κ) clones—even just maximal (i.e., precomplete) ones—on an infinite set of cardinality κ.
Abstract clones. Philip Hall introduced the concept of an abstract clone, which differs from a concrete clone in that the underlying set A is not given. Formally, an abstract clone comprises:
- a set Cₙ for each natural number n,
- elements πₖ,ₙ in Cₙ for all k ≤ n, and
- a family of functions ∗: Cₘ × (Cₙ)ᵐ → Cₙ for all m and n,
satisfying certain associativity and identity axioms. Any concrete clone determines an abstract clone in an obvious manner.
Any algebraic theory determines an abstract clone, where Cₙ is the set of terms (up to equivalence) in n variables, πₖ,ₙ are the variables, and ∗ is substitution. Two theories determine isomorphic clones if and only if the corresponding categories of algebras are isomorphic; conversely, every abstract clone determines an algebraic theory. Every abstract clone also induces a Lawvere theory. This establishes a bijective correspondence between abstract clones and Lawvere theories.
Historical and contextual note. The term "clone" in this mathematical sense is well established in universal algebra and functional clone theory. The terminology of "clones" should not be confused with its use in biology or computer programming; within algebra, it refers specifically to closed sets of finitary operations as described above.