1. In a recursively constructed language, a measure of the number of applications of formation rules needed to construct a formula from atomic formulae. Atomic formulae are judged as having complexity , while a conjunction of atomic formulae will have complexity , etc.
2. A measure of the minimal number of alternations of universal and existential quantifiers needed to express the prenex normal form of a unary formula in number theory. If one says that all quantifier-free formulae in the language of arithmetic are , then one can define the complexity of a formula recursively:
Then we say that a set is a member of a complexity class if there exists a formula of that complexity such that is defined by , that is, for all natural numbers , if and only if is true in number theory. A set of natural numbers that is a member of one of these classes is known as arithmetical, whence the collection of these sets is known as the arithmetical hierarchy.