In
mathematical logic
Mathematical logic is the study of Logic#Formal logic, formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory (also known as computability theory). Research in mathematical logic com ...
, the quantifier rank of a
formula
In science, a formula is a concise way of expressing information symbolically, as in a mathematical formula or a ''chemical formula''. The informal use of the term ''formula'' in science refers to the general construct of a relationship betwe ...
is the depth of nesting of its
quantifiers. It plays an essential role in
model theory
In mathematical logic, model theory is the study of the relationship between theory (mathematical logic), formal theories (a collection of Sentence (mathematical logic), sentences in a formal language expressing statements about a Structure (mat ...
.
The quantifier rank is a property of the formula itself (i.e. the expression in a language). Thus two
logically equivalent
In logic and mathematics, statements p and q are said to be logically equivalent if they have the same truth value in every model. The logical equivalence of p and q is sometimes expressed as p \equiv q, p :: q, \textsfpq, or p \iff q, depending on ...
formulae can have different quantifier ranks, when they express the same thing in different ways.
Definition
In first-order logic
Let
be a
first-order formula. The quantifier rank of
, written
, is defined as:
*
, if
is atomic.
*
.
*
.
*
.
*
.
Remarks
* We write