Quantifier rank

Notice that the quantifier rank is a property of the formula itself (i.e. the expression in a language). Thus two logically equivalent formulae can have different quantifier ranks, when they express the same thing in different ways.

Let φ be a FO formula. The quantifier rank of φ, written qr(φ), is defined as