HOME

TheInfoList



OR:

Fagin's theorem is the oldest result of descriptive complexity theory, a branch of
computational complexity theory In theoretical computer science and mathematics, computational complexity theory focuses on classifying computational problems according to their resource usage, and explores the relationships between these classifications. A computational problem ...
that characterizes
complexity class In computational complexity theory, a complexity class is a set (mathematics), set of computational problems "of related resource-based computational complexity, complexity". The two most commonly analyzed resources are time complexity, time and s ...
es in terms of logic-based descriptions of their problems rather than by the behavior of algorithms for solving those problems. The theorem states that the set of all properties expressible in existential
second-order logic In logic and mathematics, second-order logic is an extension of first-order logic, which itself is an extension of propositional logic. Second-order logic is in turn extended by higher-order logic and type theory. First-order logic quantifies on ...
is precisely the complexity class NP. It was proven by
Ronald Fagin Ronald Fagin (born 1945) is an American mathematician and computer scientist, and IBM Fellow at the IBM Almaden Research Center. He is known for his work in database theory, finite model theory, and reasoning about knowledge. Biography Ron F ...
in 1973 in his doctoral thesis, and appears in his 1974 paper. The
arity In logic, mathematics, and computer science, arity () is the number of arguments or operands taken by a function, operation or relation. In mathematics, arity may also be called rank, but this word can have many other meanings. In logic and ...
required by the second-order formula was improved (in one direction) by James Lynch in 1981, and several results of Étienne Grandjean have provided tighter bounds on nondeterministic
random-access machine In computer science, random-access machine (RAM or RA-machine) is a model of computation that describes an abstract machine in the general class of register machines. The RA-machine is very similar to the counter machine but with the added capab ...
s.;


Proof

In addition to Fagin's 1974 paper, the 1999 textbook by Immerman provides a detailed proof of the theorem. It is straightforward to show that every existential second-order formula can be recognized in NP, by nondeterministically choosing the value of all existentially-qualified variables, so the main part of the proof is to show that every language in NP can be described by an existential second-order formula. To do so, one can use second-order existential quantifiers to arbitrarily choose a computation tableau. In more detail, for every timestep of an execution trace of a
non-deterministic Turing machine In theoretical computer science, a nondeterministic Turing machine (NTM) is a theoretical model of computation whose governing rules specify more than one possible action when in some given situations. That is, an NTM's next state is ''not'' comp ...
, this tableau encodes the state of the Turing machine, its position in the tape, the contents of every tape cell, and which nondeterministic choice the machine makes at that step. A first-order formula can constrain this encoded information so that it describes a valid execution trace, one in which the tape contents and Turing machine state and position at each timestep follow from the previous timestep. A key lemma used in the proof is that it is possible to encode a linear order of length n^k (such as the linear orders of timesteps and tape contents at any timestep) as a relation R on a universe A of One way to achieve this is to choose a linear ordering L of A and then define R to be the
lexicographical order In mathematics, the lexicographic or lexicographical order (also known as lexical order, or dictionary order) is a generalization of the alphabetical order of the dictionaries to sequences of ordered symbols or, more generally, of elements of a ...
ing of from A with respect


See also

*
Spectrum of a sentence In mathematical logic, the spectrum of a sentence is the set of natural numbers occurring as the size of a finite model in which a given sentence is true. By a result in descriptive complexity, a set of natural numbers is a spectrum if and only i ...


Notes


References

* * * * * * {{cite book , last1=Grädel , first1=Erich , last2=Kolaitis , first2=Phokion G. , last3=Libkin , first3=Leonid , author3-link=Leonid Libkin , first4=Maarten , last4=Marx , last5=Spencer , first5=Joel , author5-link=Joel Spencer , last6=Vardi , first6=Moshe Y. , author6-link=Moshe Y. Vardi , last7=Venema , first7=Yde , last8=Weinstein , first8=Scott , title=Finite model theory and its applications , zbl=1133.03001 , series=Texts in Theoretical Computer Science. An EATCS Series , location=Berlin , publisher=
Springer-Verlag Springer Science+Business Media, commonly known as Springer, is a German multinational publishing company of books, e-books and peer-reviewed journals in science, humanities, technical and medical (STM) publishing. Originally founded in 1842 in ...
, isbn=978-3-540-00428-8 , year=2007 Descriptive complexity Theorems in computational complexity theory