Abstract
We define new fragments of higher-order logics of order three and above, and investigate their expressive power over finite models. The key unifying property of these fragments is that they all admit inexpensive algorithmic translations of their formulae to equivalent second-order logic formulae. That is, within these fragments we can make use of third- and higher-order quantification without paying the extremely high complexity price associated with them. Although theoretical in nature, the results reported here are more significant from a practical perspective. It turns out that there are many examples of properties of finite models (queries from the perspective of relational databases) which can be simply and elegantly defined by formulae of the higher-order fragments studied in this work. For many of those properties, the equivalent second-order formulae can be very complicated and unintuitive. In particular when they concern properties of complex objects, such as hyper-graphs, and the equivalent second-order expressions require the encoding of those objects into plain relations.
Work supported by Austrian Science Fund (FWF): [I2420-N31]. Project: Higher-Order Logics and Structures. Initiated during a project sponsored visit of Prof. José María Turull-Torres. The research reported in this paper has been partly supported by the Austrian Ministry for Transport, Innovation and Technology, the Federal Ministry of Science, Research and Economy, and the Province of Upper Austria in the frame of the COMET center SCCH.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Abu-Khzam, F.N., Langston, M.A.: Graph coloring and the immersion order. In: Warnow, T., Zhu, B. (eds.) COCOON 2003. LNCS, vol. 2697, pp. 394–403. Springer, Heidelberg (2003). doi:10.1007/3-540-45071-8_40
Beaudry, M., McKenzie, P.: Cicuits, matrices, and nonassociative computation. In: Proceedings of the Seventh Annual Structure in Complexity Theory Conference, Boston, Massachusetts, USA, 22–25 June 1992, pp. 94–106 (1992)
Bollobás, B.: Modern Graph Theory. Graduate Texts in Mathematics, vol. 184. Springer, Heidelberg (2002). Corrected edition
Downey, R.G., Fellows, M.R.: Parameterized Complexity. Monographs in Computer Science. Springer, Heidelberg (1999)
Ebbinghaus, H.D., Flum, J.: Finite Model Theory. Perspectives in Mathematical Logic, 2nd edn. Springer, Heidelberg (1999)
Fagin, R.: Generalized first-order spectra and polynomial-time recognizable sets. In: Karp, R. (ed.) Complexity of Computations. SIAM-AMS Proceedings, vol. 7, pp. 27–41. American Mathematical Society (1974)
Ferrarotti, F.: Expressibility of higher-order logics on relational databases: proper hierarchies. Ph.D. thesis, Department of Information Systems, Massey University, Wellington, New Zealand (2008). http://hdl.handle.net/10179/799
Ferrarotti, F., Ren, W., Turull-Torres, J.M.: Expressing properties in second- and third-order logic: hypercube graphs and SATQBF. Logic J. IGPL 22(2), 355–386 (2014)
Ferrarotti, F., Tec, L., Torres, J.M.T.: On higher order query languages which on relational databases collapse to second order logic. CoRR abs/1612.03155 (2016). http://arxiv.org/abs/1612.03155
Ferrarotti, F., Turull-Torres, J.M.: Arity and alternation: a proper hierarchy in higher order logics. Ann. Math. Artif. Intell. 50(1–2), 111–141 (2007)
Flum, J., Grohe, M.: Parameterized Complexity Theory. Texts in Theoretical Computer Science. An EATCS Series. Springer-Verlag New York, Inc., Secaucus (2006)
Grohe, M., Kawarabayashi, K., Marx, D., Wollan, P.: Finding topological subgraphs is fixed-parameter tractable. In: Proceedings of the Forty-third Annual ACM Symposium on Theory of Computing, STOC 2011, pp. 479–488. ACM, New York (2011)
Hella, L., Turull-Torres, J.M.: Computing queries with higher-order logics. Theor. Comput. Sci. 355(2), 197–214 (2006)
Itzhaky, S., Gulwani, S., Immerman, N., Sagiv, M.: A simple inductive synthesis methodology and its applications. SIGPLAN Not. 45(10), 36–46 (2010)
Libkin, L.: Elements of Finite Model Theory. Texts in Theoretical Computer Science, EATCS. Springer, Heidelberg (2004)
Makowsky, J.A., Pnueli, Y.B.: Arity and alternation in second-order logic. Ann. Pure Appl. Logic 78(1–3), 189–202 (1996)
Schewe, K.D., Turull-Torres, J.M.: Fixed-point quantifiers in higher order logics. In: Proceedings of the 2006 Conference on Information Modelling and Knowledge Bases XVII, pp. 237–244. IOS Press, Amsterdam (2006)
Stockmeyer, L.J.: The polynomial-time hierarchy. Theoret. Comput. Sci. 3(1), 1–22 (1976)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Appendix A Proof Sketch of Lemma 2
Appendix A Proof Sketch of Lemma 2
All three sentences \(\varphi '\), \(\varphi ''\) and \(\varphi '''\) can be defined by structural induction on \(\varphi \). We show only the non trivial cases.
If \(\varphi \) is an atomic formula of the form \(X(x_1, \ldots , x_s)\) where \(s \le r\). Then
-
\(\varphi '\) is \(\mathcal {X}^c(\mathcal {X}^{c-1}_1,\mathcal {X}^{c-1}_2) \wedge \mathcal {X}^{c-1}_1(\mathcal {X}^{c-2}_1) \wedge \mathcal {X}^{c-1}_2(\mathcal {X}^{c-2}_2,\mathcal {X}^{c-2}_3) \wedge \cdots \wedge \)
\(\mathcal {X}^{3}_1(X_1) \wedge \mathcal {X}^{3}_2(X_2) \wedge \cdots \wedge \mathcal {X}^{3}_{c-2}(X_{c-2},X_{c-1}) \wedge \)
\(X_{c-1}(x_{s-1},x_{s}) \wedge X_{c-2}(x_{s-3},x_{s-2}) \wedge \cdots \wedge X_1(\bar{x})\), where \(\bar{x} = (x_1)\) or \(\bar{x} = (x_1, x_2)\) depending on whether s is odd or even, respectively, and \(c=\left\lceil {\frac{r}{2}}\right\rceil + 1\).
-
\(\varphi ''\) is \(\bigwedge \limits _{\bar{w} \in W} \Big ( \big ( \bigwedge \limits _{1\le j < l \le s} \alpha _{i,j} \big ) \rightarrow \psi _{\bar{w}} \Big ),\) where
-
\(W = \{(i_1,i_2,\cdots ,i_s)\mid 1\le j \le s \; \text {and} \; 1\le i_j \le j \}\)
-
\(\alpha _{i,j} =\{\begin{array}{c} x_i=x_j \;\textit{if}\; i=j \\ x_i\not =x_j \;\textit{if}\; i\not =j \end{array}\)
-
\(\psi _{\bar{w}}\) is \(X_{1_{\bar{w}}}(x_1,x_1)\) if \(i_u = i_v\) for every \(i_u, i_v \in \bar{w}\).
Otherwise \(\psi _{\bar{w}}\) is \(\bigwedge \limits _{(u,v) \in A_{\bar{w}}} X_{1_{\bar{w}}}(x_u,x_v)\), where
.
-
-
\(\varphi '''\) is \(\mathcal {X}(X_1,\cdots ,X_t) \bigwedge \limits _{1\le i\le t-1} X_i(x_{k_i+1},\cdots ,x_{k_i+u}) \wedge X_t(x_{s-t},\cdots ,x_s)\)
Where \(t=\left\lceil \root 2 \of {r}\right\rceil \), \(k_i=((i-1)t)\,+\,min((i-1), (s-t) \mod (t-1))\), \(u=|\frac{s-t}{t-1}|+c\), and \(c=1\) if \(i\le (s-t) \mod (t-1)\), \(c=0\) otherwise.
If \(\varphi \) is a formula of the form \(\exists X (\psi )\) where X is a second-order variable of arity \(s \le r\). Then
-
,
where again \(c=\left\lceil {\frac{s}{2}}\right\rceil + 1\), and \(\psi '\) is the formula in \( AAD ^c(2,m,2)\) equivalent to \(\psi \), obtained by applying the translation inductively.
-
\(\varphi ''\) is \(\exists ^{P,s} \mathcal {X}_{\bar{w}_1} \mathcal {X}_{\bar{w}_2} \cdots \mathcal {X}_{\bar{w}_{\left| W\right| }} \exists X_{1_{\bar{w}_1}} X_{2_{\bar{w}_1}} X_{1_{\bar{w}_2}} X_{2_{\bar{w}_2}} \cdots X_{1_{\bar{w}_{\left| W\right| }}} X_{2_{\bar{w}_{\left| W\right| }}} (\psi '')\),
where \(\bar{w}_1,\bar{w}_2,\cdots ,\bar{w}_{\left| W\right| }\) is an arbitrary lexicographic order of W and \(\psi ''\) is the formula in \( AAD ^2(2,m,s)\) equivalent to \(\psi \), obtained by applying the translation inductively.
-
\(\varphi '''\) is \(\exists ^{P,h} \mathcal {X} \exists X_1 X_2 \cdots X_t(\psi ''')\) where \(t =\left\lceil \root 2 \of {s}\right\rceil \), \(h = t(t-1)\) and \(\psi '''\) is the formula in \( AAD ^2(t,m,t(t-1))\) equivalent to \(\psi \), obtained by applying the translation inductively.
It is not difficult to show by structural induction that \(\varphi '\), \(\varphi ''\) and \(\varphi '''\) are equivalent to \(\varphi \). We only need to see that every second-order relation of arity \(s \le r\) can be encoded as a higher-order relation of the type used in the translation and with the required polynomial bound.
Rights and permissions
Copyright information
© 2017 Springer-Verlag GmbH Germany
About this paper
Cite this paper
Ferrarotti, F., González, S., Turull-Torres, J.M. (2017). On Fragments of Higher Order Logics that on Finite Structures Collapse to Second Order. In: Kennedy, J., de Queiroz, R. (eds) Logic, Language, Information, and Computation. WoLLIC 2017. Lecture Notes in Computer Science(), vol 10388. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-55386-2_9
Download citation
DOI: https://doi.org/10.1007/978-3-662-55386-2_9
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-662-55385-5
Online ISBN: 978-3-662-55386-2
eBook Packages: Computer ScienceComputer Science (R0)