Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
Finite Model Reasoning in Expressive Fragments of First-Order Logic
Lidia Tendera
Institute of Mathematics and Informatics Opole University, Poland
Finite Model Reasoning in Expressive Fragments of First-Order Logic - - PowerPoint PPT Presentation
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion Finite Model Reasoning in Expressive Fragments of First-Order Logic Lidia Tendera Institute of Mathematics and Informatics Opole University,
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
Institute of Mathematics and Informatics Opole University, Poland
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Sat(L):
◮ FinSat(L):
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ L has the finite model property (FMP) iff every satisfiable
◮ If L has FMP then Sat(L) and FinSat(L) coincide. ◮ If L is a fragment of FO and L has FMP then Sat(L) is
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ defined by restrictions on signatures
◮ prenex classes defined by quantifier prefix
◮ defined by other syntactic restrictions and suitably
◮ Can we decide whether a formula is satisfiable without
◮ Some formulas have only infinite models.
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
[VARDI 1996]: WHY IS MODAL LOGIC SO ROBUSTLY DECIDABLE?
◮ Propositional modal logic:
◮ Good model-theoretical and algorithmic properties,
◮ Variants and extensions of modal logics have applications
◮ verification of hardware and software ◮ artificial intelligence ◮ distributed systems ◮ knowledge representation
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Modal logic can be translated into FO:
◮ FO3 undecidable [Kahr, Moore, Wang, 1959]
◮ ML can be embedded in the two-variable fragment FO2
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Modal logic can be translated into FO:
◮ FO3 undecidable [Kahr, Moore, Wang, 1959]
◮ ML can be embedded in the two-variable fragment FO2
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ fluted fragment FL:
◮ guarded fragment GF:
◮ unary negation fragment UNF:
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
EXAMPLE: QUERY ANSWERING
◮ Query Answering:
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
FRAGMENTS EMBEDDING MODAL LOGIC
◮ two-variable fragment FO2 ◮ fluted fragment FL ◮ guarded fragment GF ◮ unary negation fragment UNF
◮ FMP often gives a bound on the size of minimal models.
◮ FMP often gives an upper bound for the computational
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ First identified by W.V.Quine in 1968:
◮ homogeneous m-adic formulas (generalization of monadic
fragment)
◮ later generalized to fluted fragment
◮ Examples of fluted formulas:
◮ Order of quantification of variables matches order of
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ First identified by W.V.Quine in 1968:
◮ homogeneous m-adic formulas (generalization of monadic
fragment)
◮ later generalized to fluted fragment
◮ Examples of fluted formulas:
◮ Order of quantification of variables matches order of
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ First identified by W.V.Quine in 1968:
◮ homogeneous m-adic formulas (generalization of monadic
fragment)
◮ later generalized to fluted fragment
◮ Examples of fluted formulas:
◮ Order of quantification of variables matches order of
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ First identified by W.V.Quine in 1968:
◮ homogeneous m-adic formulas (generalization of monadic
fragment)
◮ later generalized to fluted fragment
◮ Examples of fluted formulas:
◮ Order of quantification of variables matches order of
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Let x1, x2, . . . be a fixed sequence of variables. ◮ The fluted fragment with k free variables, FL[k], is defined
◮ The fluted fragment, FL[k] is the union:
◮ For all m > 0, we define FLm, to be the set of fluted
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
PURDY 1996, PRATT-HARTMANN, SZWAST, T. 2016
◮ Any satisfiable formula of FLm has a model of m-tuply
...2p(ϕ) m 2’s
◮ On the other hand, satisfiable formulas of FL2m force
◮ Essentially the same proof shows that Sat(FL2m) is
◮ Therefore, for m ≥ 1, the complexity of Sat(FLm) lies
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
ANDRÉKA, VAN BENTHEM AND NÉMETI, 1996
◮ Restricting the use of quantifiers:
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Sat(GF) is 2-EXPTIME-complete ◮ Sat(GFk) is EXPTIME-complete, for any fixed k.
◮ GF has the tree model property.
1Nice application of combinatorial results by Hrushowski, Herwig and
Lascar about extensions of certain graphs.
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
TEN CATE, SEGOUFIN 2011
◮ any atom of the form R(¯
◮ UNF is closed under ∨, ∧ and ∃; ◮ if ϕ(x) is a formula of UNF with no free variables besides
◮ ∀x∀y∀z(Pxyz → Rxyz) ∈ GF (but not in UNF) ◮ ∀x∃y∃z(Rxy ∧ Ryz ∧ Rzx) ∈ UNF (but not in GF or FO2) ◮ ∃x∃y¬Rxy ∈ FL2 (but not in UNF or GF)
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ counting operators / functions ◮ built-in relations (e.g. orderings, equivalences)
◮ transitive (or equivalence) closure ◮ fixed-points ◮ . . .
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
INFINITY AXIOMS
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
MOTIVATED BY EXTENSIONS OF MODAL/TEMPORAL/DESCRIPTION LOGICS
Transitive closure mon-Fixed Points Counting undecidable 2-EXPTIME undecidable
G 99 Sat: GW 99 G 99 FinSat: BB 12 decidable∗ EXPTIME EXPTIME
M 09 Sat: GW 99 P-H 05 FinSat: BB 12 undecidable undecidable NEXPTIME
GOR 97 GOR 97 Sat: PST 97, P-H 05 FinSat: P-H 05
? 2-EXPTIME ? StC 13
? ? ?
Bárány, Boja´ nczyk, Grädel, Michaliszyn, Otto, Pratt-Hartmann, Rosen, Pacholski, Segoufin, Szwast, ten Cate, T., Walukiewicz
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ None of the base fragments can express transitivity
◮ Transitivity is a useful property ◮ Solution: consider satisfiability in classes of structures
◮ Corresponds to (multi-)modal logics K4, S4, S5
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
FO2 AND GF2 OVER SPECIAL CLASSES OF STRUCTURES
Special symbols Number of special symbols in the signature 1 2 3 or more Transitivity 2-EXPTIME undecidable undecidable
K05 K05, Kaz06 GMV99 FMP Sat: KO05 EXPTIME Equivalence FMP, NEXPTIME 2-EXPTIME undecidable KO05 FinSat: KP-HT15 KO05 Sat: ST13 Transitivity in 2-NEXPTIME∗) undecidable undecidable FinSat: ? K05, Kaz06 GOR99
Sat: ? Linear order NEXPTIME EXPSPACE∗) undecidable GKV97 Ott01 FinSat: SchZ10 Ott01, K11 FMP NEXPTIME Equivalence FMP, NEXPTIME 2-NEXPTIME undecidable KO05 KMP-HT12 KO05 Equivalence FMP, NEXPTIME 2-NEXPTIME undecidable Closure KMP-HT12 KMP-HT12 KO05 ..., Ganzinger, Meyer, Veanes, Kazakov, Schwentick, Zeume
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ FMP often gives natural upper complexity bounds. ◮ FMP does not help when L contains infinity axioms.
◮ Advantages:
◮ Useful for logics without FMP. ◮ Often gives better complexity bounds.
◮ Positive examples:
◮ Disadvantage:
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ UNF with fixed-points has TMP and is 2-EXPTIME-complete. ◮ UNF has FMP.
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ DL-Lite [Rosati 2008] ◮ Horn-SHIQ [Garcia, Lutz, Schneider 2013]
◮ Advantage:
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ [Otto 2004]: ”Finitary unravelling” – construction that
◮ [Bárány, Gottlob, Otto 2009]:
◮ small model property for GF. ◮ decidability of FinSat for GF with fixed points. ◮ correctness of the reduction from UNF with fixed points
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Useful for solving simultaneously Sat and FinSat.
◮ Does not depend on TMP. ◮ Gives better (optimal) complexity bounds.
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Lemma (small intersections property): in a model of ϕ we
◮ Think about E1-classes and E2-classes as about nodes of a
◮ Intersections are represented by edges of the graph ◮ Colors of edges represent isomorphism types of
◮ A question, whether ϕ is satisfiable becomes a question
◮ These constraints can be expressed in terms of linear
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ variables correspond to types of classes: triply
◮ inequalities correspond to intersections: doubly
◮ A Caratheodory-type result of Eisenbrand and Shmonin
◮ This allows to show 2-NEXPTIME-upper bound:
◮ Just guess relevant variables and construct a system of
doubly exponential size.
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ variables correspond to types of classes: triply
◮ inequalities correspond to intersections: doubly
◮ A Caratheodory-type result of Eisenbrand and Shmonin
◮ This allows to show 2-NEXPTIME-upper bound:
◮ Just guess relevant variables and construct a system of
doubly exponential size.
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ FO2 and GF2 with counting quantifiers [Pratt-Hartmann
◮ FO2 with two equivalence relations [Kiero´
◮ FO2 with counting quantifiers and one equivalence
◮ . . .
◮ not ideal for implementation. ◮ not yet clear how to extend to logics with predicates of
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ FO2 and GF2 with counting quantifiers [Pratt-Hartmann
◮ FO2 with two equivalence relations [Kiero´
◮ FO2 with counting quantifiers and one equivalence
◮ . . .
◮ not ideal for implementation. ◮ not yet clear how to extend to logics with predicates of
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ answer remaining open question ◮ optimise known algorithms towards practical
◮ combine fragments
◮ [Bárány, ten Cate, Segoufin 2011]
Guarded Negation Fragment a common generalisation of GF and UNF.
◮ [Kuusisto, Hella 2014]
Uniform One-Dimensional FO generalization of FO2 to contexts with relations of arbitrary arity
◮ identify useful (and tractable) subfragments ◮ . . .
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ D ∧ O |
◮ positive existential ◮ conjunctive queries ◮ unions of conjunctive queries
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
◮ Data complexity: only the size of the database matters.
◮ Schema complexity: only the size of the ontology matters.
◮ Combined complexity: no parameter is considered fixed.
Introduction/Motivation Base Fragments Extensions of Base Fragments Deciding (Fin)Sat Conclusion
¸ KUJE ¸ !