The decision problem for the probabilities of higher-order properties

The probability of a property on the class of all finite relational structures is the limit as <italic>n</italic> → ∞ of the fraction of structures with <italic>n</italic> elements satisfying the property, provided the limit exists. It is known that <italic>0-1 laws</italic> hold for any property expressible in first-order logic or in fixpoint logic, i.e. the probability of any such property exists and is either 0 or 1. It is also known that the associated decision problem for the probabilities is PSPACE-complete and EXPTIME-complete for first-order logic and fixpoint logic respectively. The 0-1 law fails, however, in general for second-order properties and the decision problem becomes unsolvable. We investigate here logics which on the one hand go beyond fixpoint in terms of expressive power and on the other possess the 0-1 law. We consider first <italic>iterative logic</italic> which is obtained from first order logic by adding while looping as a construct. We show that the 0-1 law holds for this logic and determine the complexity of the associated decision problem. After this we study a fragment of second order logic called <italic>strict</italic> &Sgr;<supscrpt>1</supscrpt><subscrpt>1</subscrpt>. This class of properties is obtained by restricting appropriately the first-order part of existential second-order sentences. Every strict &Sgr;<supscrpt>1</supscrpt><subscrpt>1</subscrpt> property is NP-computable and there are strict &Sgr;<supscrpt>1</supscrpt><subscrpt>1</subscrpt> properties that are NP-complete, such as 3-colorability. We show that the 0-1 law holds for strict &Sgr;<supscrpt>1</supscrpt><subscrpt>1</subscrpt> properties and establish that the associated decision problem is NEXPTIME-complete. The proofs of the decidability and complexity results require certain combinatorial machinery, namely generalizations of Ramsey's Theorem.

[1]  Frank Plumpton Ramsey,et al.  On a Problem of Formal Logic , 1930 .

[2]  Ronald Fagin,et al.  Probabilities on finite models , 1976, Journal of Symbolic Logic.

[3]  Moshe Y. Vardi The complexity of relational query languages (Extended Abstract) , 1982, STOC '82.

[4]  Harry R. Lewis,et al.  Unsolvable classes of quantificational formulas , 1979 .

[5]  Frank Harary,et al.  Graph Theory , 2016 .

[6]  Larry J. Stockmeyer,et al.  The Polynomial-Time Hierarchy , 1976, Theor. Comput. Sci..

[7]  B. Dreben,et al.  The decision problem: Solvable classes of quantificational formulas , 1979 .

[8]  Vojtech Rödl,et al.  Ramsey Classes of Set Systems , 1983, J. Comb. Theory, Ser. A.

[9]  Yu. V. Glebskii,et al.  Range and degree of realizability of formulas in the restricted predicate calculus , 1969 .

[10]  Harry R. Lewis,et al.  Complexity Results for Classes of Quantificational Formulas , 1980, J. Comput. Syst. Sci..

[11]  Alfred V. Aho,et al.  Universality of data retrieval languages , 1979, POPL.

[12]  Leo Harrington,et al.  Models Without Indiscernibles , 1978, J. Symb. Log..

[13]  L. Pósa,et al.  Hamiltonian circuits in random graphs , 1976, Discret. Math..

[14]  Andreas Blass,et al.  A Zero-One Law for Logic with a Fixed-Point Operator , 1986, Inf. Control..

[15]  Yiannis N. Moschovakis,et al.  Elementary induction on abstract structures , 1974 .

[16]  Etienne Grandjean,et al.  Complexity of the First-Order Theory of Almost All Finite Structures , 1983, Inf. Control..

[17]  Vojtech Rödl,et al.  Partitions of Finite Relational and Set Systems , 1977, J. Comb. Theory A.

[18]  Bela Bollobas,et al.  Graph theory , 1979 .

[19]  Saharon Shelah,et al.  On random models of finite power and monadic logic , 1985, Discrete Mathematics.

[20]  Neil Immerman,et al.  Relational Queries Computable in Polynomial Time , 1986, Inf. Control..

[21]  Leonard Berman,et al.  The Complexity of Logical Theories , 1980, Theor. Comput. Sci..

[22]  M. Rabin Decidability of second-order theories and automata on infinite trees , 1968 .

[23]  Yuri Gurevich,et al.  Toward logic tailored for computational complexity , 1984 .

[24]  R. Vaught,et al.  Denumerable Models of Complete Theories , 1970 .

[25]  Ronald Fagin Generalized first-order spectra, and polynomial. time recognizable sets , 1974 .

[26]  Neil Immerman Languages which capture complexity classes , 1983, STOC '83.

[27]  David Harel,et al.  Structure and complexity of relational queries , 1980, 21st Annual Symposium on Foundations of Computer Science (sfcs 1980).

[28]  Jon Barwise,et al.  Admissible sets and structures , 1975 .

[29]  David Harel,et al.  Structure and Complexity of Relational Queries , 1980, FOCS.

[30]  J. Cherniavsky Review of "Unsolvable classes of quantificational formulas" by Harry R. Lewis. Addison-Wesley 1979. and "The decision problem: solvable classes of quantificational formulas" by Burton Dreben and Warren D. Goldfarb. Addison-Wesley 1979. , 1982, SIGA.

[31]  H. Gaifman Concerning measures in first order calculi , 1964 .

[32]  Frank Harary,et al.  Properties of almost all graphs and complexes , 1979, J. Graph Theory.