The
time complexity class
ELEMENTARY of elementary functions can be characterised by
HO, the
complexity class of structures that can be recognized by formulas of
higher-order logic. Higher-order logic is an extension of
first-order logic and
second-order logic with higher-order quantifiers. There is a relation between the ith order and non-deterministic algorithms the time of which is bounded by i-1 levels of exponentials.
Definition We define higher-order variables. A variable of order i>1 has an arity k and represents any set of k-
tuples of elements of order i-1. They are usually written in upper-case and with a natural number as exponent to indicate the order. Higher-order logic is the set of first-order formulae where we add quantification over higher-order variables; hence we will use the terms defined in the
FO article without defining them again. HO^i is the set of formulae with variables of order at most i. HO^i_j is the subset of formulae of the form \phi=\exists \overline{X^i_1}\forall\overline{X_2^i}\dots Q \overline{X_j^i}\psi, where Q is a quantifier and Q \overline{X^i} means that \overline{X^i} is a tuple of variable of order i with the same quantification. So HO^i_j is the set of formulae with j alternations of quantifiers of order i, beginning with \exists, followed by a formula of order i-1. Using the standard notation of the
tetration, \exp_2^0(x)=x and \exp_2^{i+1}(x)=2^{\exp_2^{i}(x)}. \exp_2^{i+1}(x)=2^{2^{2^{2^{\dots^{2^{x}}}}}} with i times 2
Normal form Every formula of order ith is equivalent to a formula in prenex normal form, where we first write quantification over variable of ith order and then a formula of order i-1 in normal form.
Relation to complexity classes HO is equal to the class
ELEMENTARY of elementary functions. To be more precise, \mathsf{HO}^i_0 = \mathsf{NTIME}(\exp_2^{i-2}(n^{O(1)})), meaning a tower of (i-2) 2s, ending with n^c, where c is a constant. A special case of this is that
\exists\mathsf{SO}=\mathsf{HO}^2_0=\mathsf{NTIME}(n^{O(1)})={\color{Blue}\mathsf{NP}}, which is exactly
Fagin's theorem. Using
oracle machines in the
polynomial hierarchy,
\mathsf{HO}^i_j={\color{Blue}\mathsf{NTIME}}(\exp_2^{i-2}(n^{O(1)})^{\Sigma_j^{\mathsf P}}) ==Notes==