Abstract.

We study the complexity of infinite-domain constraint satisfaction problems (CSPs): our basic setting is that a complexity classification for the CSPs of first-order expansions of a structure \(\mathfrak A\) can be transferred to a classification of the CSPs of first-order expansions of another structure \(\mathfrak B\) . We exploit a product of structures (the algebraic product) that corresponds to the product of the respective polymorphism clones and present a complete complexity classification of the CSPs for first-order expansions of the \(n\) -fold algebraic power of \(({\mathbb Q};\lt )\) . This is proved by various algebraic and logical methods in combination with knowledge of the polymorphisms of the tractable first-order expansions of \(({\mathbb Q};\lt )\) and explicit descriptions of the expressible relations in terms of syntactically restricted first-order formulas. By combining our classification result with general classification transfer techniques, we obtain surprisingly strong new classification results for highly relevant formalisms such as Allen’s Interval Algebra, the \(n\) -dimensional Block Algebra, and the Cardinal Direction Calculus, even if higher-arity relations are allowed. Our results confirm the infinite-domain tractability conjecture for classes of structures that have been difficult to analyze with older methods. For the special case of structures with binary signatures, the results can be substantially strengthened and tightly connected to Ord-Horn formulas; this solves several longstanding open problems from the artificial intelligence (AI) literature.

Keywords

  1. constraint satisfaction
  2. temporal reasoning
  3. computational complexity
  4. polymorphisms
  5. universal algebra
  6. polynomial-time tractability

MSC codes

  1. 06A05
  2. 68Q25
  3. 08A70

Get full access to this article

View all available purchase options and get full access to this article.

Acknowledgments.

We thank Johannes Greiner for his comments on an earlier version of this article and Jakub Rydval for letting us use his source code–generated picture in Figure 1.

References

1.
S. A. Adeleke and P. M. Neumann, Relations related to betweenness: Their structure and automorphisms, Mem. Amer. Math. Soc., 131 (1998), 623.
2.
G. Ahlbrandt and M. Ziegler, Quasi-finitely axiomatizable totally categorical theories, Ann. Pure Appl. Logic, 30 (1986), pp. 63–82.
3.
J. F. Allen, Maintaining knowledge about temporal intervals, Commun. ACM, 26 (1983), pp. 832–843.
4.
J. F. Allen and P. J. Hayes, A common-sense theory of time, in Proceedings of the 9th International Joint Conference on Artificial Intelligence (IJCAI-1985), 1985, pp. 528–531.
5.
J. F. Allen and J. A. G. M. Koomen, Planning using a temporal world model, in Proceedings of the 8th International Joint Conference on Artificial Intelligence (IJCAI-1983), 1983, pp. 741–747.
6.
F. D. Anger, On Lamport’s interprocessor communication model, ACM Trans. Progr. Lang. Syst., 11 (1989), pp. 404–417.
7.
F. Baader and J. Rydval, Description logics with concrete domains and general concept inclusions revisited, in Proceedings of the 10th International Joint Conference on Automated Reasoning (IJCAR-2020), 2020, pp. 413–431.
8.
P. Balbiani and J. Condotta, Spatial reasoning about points in a multidimensional setting, Appl. Intell., 17 (2002), pp. 221–238.
9.
P. Balbiani, J. Condotta, and L. F. del Cerro, A new tractable subclass of the rectangle algebra, in Proceedings of the 16th International Joint Conference on Artificial Intelligence (IJCAI-1999), 1999, pp. 442–447.
10.
P. Balbiani, J.-F. Condotta, and L. F. del Cerro, Tractability results in the block algebra, J. Logic Comput., 12 (2002), pp. 885–909.
11.
L. Barto, B. Bodor, M. Kozik, A. Mottet, and M. Pinsker, Symmetries of graphs and structures that fail to interpret a finite thing, in 2023 38th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), 2023, https://doi.org/10.1109/LICS56636.2023.10175732.
12.
L. Barto, M. Kompatscher, M. Olšák, T. Van Pham, and M. Pinsker, Equations in oligomorphic clones and the constraint satisfaction problem for \(\omega\) -categorical structures, J. Math. Log., 19 (2019), 1950010.
13.
L. Barto, J. Opršal, and M. Pinsker, The wonderland of reflections, Israel J. Math., 223 (2018), pp. 363–398.
14.
L. Barto and M. Pinsker, The algebraic dichotomy conjecture for infinite domain constraint satisfaction problems, in Proceedings of the 31th Annual IEEE Symposium on Logic in Computer Science (LICS-2016), 2016, pp. 615–622.
15.
A. Bertagnon, M. Gavanelli, A. Passantino, G. Sciavicco, and S. Trevisani, The Horn fragment of branching algebra, in Proceedings of the 27th International Symposium on Temporal Representation and Reasoning (TIME-2020), 2020, pp. 5:1–5:16.
16.
A. Bertagnon, M. Gavanelli, A. Passantino, G. Sciavicco, and S. Trevisani, Branching interval algebra: An almost complete picture, Inform. and Comput., 281 (2021), 104809.
17.
A. Bertagnon, M. Gavanelli, G. Sciavicco, and S. Trevisani, On (maximal, tractable) fragments of the branching algebra, in Proceedings of the 35th Italian Conference on Computational Logic (CILC-2020), 2020, pp. 113–126.
18.
M. Bienvenu, B. ten Cate, C. Lutz, and F. Wolter, Ontology-based data access: A study through disjunctive Datalog, CSP, and MMSNP, ACM Trans. Database Syst., 39 (2014), 33.
19.
M. Bodirsky, Complexity of Infinite-Domain Constraint Satisfaction, Cambridge University Press, 2021.
20.
M. Bodirsky and B. Bodor, Canonical polymorphisms of Ramsey structures and the unique interpolation property, in Proceedings of the 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS-2021), 2021, pp. 1–13.
21.
M. Bodirsky, H. Chen, and M. Pinsker, The reducts of equality up to primitive positive interdefinability, J. Symb. Log., 75 (2010), pp. 1249–1292.
22.
M. Bodirsky, H. Chen, and M. Wrona, Tractability of quantified temporal constraints to the max, Internat. J. Algebra Comput., 24 (2014), pp. 1141–1156.
23.
M. Bodirsky and J. Greiner, The complexity of combinations of qualitative constraint satisfaction problems, Log. Methods Comput. Sci., 16 (2020), 21.
24.
M. Bodirsky, J. Greiner, and J. Rydval, Tractable combinations of temporal CSPs, Log. Methods Comput. Sci., 18 (2022), 11.
25.
M. Bodirsky and M. Grohe, Non-dichotomies in constraint satisfaction complexity, in Proceedings of the 35th International Colloquium on Automata, Languages and Programming (ICALP-2008), 2008, pp. 184–196.
26.
M. Bodirsky and P. Jonsson, A model-theoretic view on qualitative constraint reasoning, J. Artif. Intell. Res., 58 (2017), pp. 339–385.
27.
M. Bodirsky, P. Jonsson, B. Martin, and A. Mottet, Classification transfer for qualitative reasoning problems, in Proceedings of the 27th International Joint Conference on Artificial Intelligence (IJCAI-2018), 2018, pp. 1256–1262.
28.
M. Bodirsky, P. Jonsson, and T. Van Pham, The complexity of phylogeny constraint satisfaction problems, ACM Trans. Comput. Log., 18 (2017), 23.
29.
M. Bodirsky and J. Kára, The complexity of temporal constraint satisfaction problems, in Proceedings of the 40th Annual Symposium on Theory of Computing (STOC), C. Dwork, ed., ACM, 2008, pp. 29–38.
30.
M. Bodirsky and J. Kára, The complexity of temporal constraint satisfaction problems, J. ACM, 57 (2010), 9, https://doi.org/10.1145/1667053.1667058.
31.
M. Bodirsky and J. Kára, A fast algorithm and Datalog inexpressibility for temporal reasoning, ACM Trans. Comput. Log., 11 (2010), 15.
32.
M. Bodirsky and S. Knäuer, Network satisfaction for symmetric relation algebras with a flexible atom, in Proceedings of the 35th AAAI Conference on Artificial Intelligence (AAAI-2021), 2021, pp. 6218–6226.
33.
M. Bodirsky, F. Madelaine, and A. Mottet, A proof of the algebraic tractability conjecture for monotone monadic SNP, SIAM J. Comput., 50 (2021), pp. 1359–1409, https://doi.org/10.1137/19M128466X.
34.
M. Bodirsky, B. Martin, M. Pinsker, and A. Pongrácz, Constraint satisfaction problems for reducts of homogeneous graphs, SIAM J. Comput., 48 (2019), pp. 1224–1264, https://doi.org/10.1137/16M1082974.
35.
M. Bodirsky and A. Mottet, A dichotomy for first-order reducts of unary structures, Log. Methods Comput. Sci., 14 (2018), 13, https://doi.org/10.23638/LMCS-14(2:13)2018.
36.
M. Bodirsky and J. Nešetřil, Constraint satisfaction with countable homogeneous templates, in Proceedings of Computer Science Logic (CSL), Vienna, 2003, pp. 44–57.
37.
M. Bodirsky and J. Nešetřil, Constraint satisfaction with countable homogeneous templates, J. Logic Comput., 16 (2006), pp. 359–373.
38.
M. Bodirsky, W. Pakusa, and J. Rydval, Temporal constraint satisfaction problems in fixed-point logic, in Proceedings of the 35th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS-2020), 2020, pp. 237–251.
39.
M. Bodirsky, W. Pakusa, and J. Rydval, On the descriptive complexity of temporal constraint satisfaction problems, J. ACM, 70 (2023), 2.
40.
M. Bodirsky and M. Pinsker, Schaefer’s theorem for graphs, J. ACM, 62 (2015), 19.
41.
M. Bodirsky and M. Pinsker, Topological Birkhoff, Trans. Amer. Math. Soc., 367 (2015), pp. 2527–2549.
42.
M. Bodirsky and M. Pinsker, Canonical functions: A proof via topological dynamics, Contrib. Discrete Math., 16 (2021), pp. 36–45.
43.
M. Bodirsky, M. Pinsker, and A. Pongrácz, Projective clone homomorphisms, J. Symb. Log., 86 (2021), pp. 148–161.
44.
M. Bodirsky, M. Pinsker, and T. Tsankov, Decidability of definability, J. Symb. Log., 78 (2013), pp. 1036–1054.
45.
A. A. Bulatov, A dichotomy theorem for nonuniform CSPs, in Proceedings 58th IEEE Annual Symposium on Foundations of Computer Science (FOCS-2017), 2017, pp. 319–330.
46.
A. A. Bulatov and E. S. Skvortsov, Amalgams of constraint satisfaction problems, in Proceedings 18th International Joint Conference on Artificial Intelligence (IJCAI-2003), 2003, pp. 197–202.
47.
P. J. Cameron, Transitivity of permutation groups on unordered sets, Math. Z., 148 (1976), pp. 127–139.
48.
S.-K. Chang and E. Jungert, Symbolic Projection for Image Information Retrieval and Spatial Reasoning, Academic Press, New York, 1996.
49.
A. Chernikov, Lecture Notes on Stability Theory, AMS Open Math Notes, 2019.
50.
A. G. Cohn, J. Renz, and M. Sridhar, Thinking inside the box: A comprehensive spatial representation for video analysis, in Proceedings of the 13th International Conference on Principles of Knowledge Representation and Reasoning (KR-2012), 2012.
51.
T. L. Dean and M. S. Boddy, Reasoning about partially ordered events, Artif. Intell., 36 (1988), pp. 375–399.
52.
P. Denis and P. Muller, Predicting globally-coherent temporal structures from texts via endpoint inference and graph decomposition, in Proceedings of the 22nd International Joint Conference on Artificial Intelligence (IJCAI-2011), 2011, pp. 1788–1793.
53.
I. Düntsch, Relation algebras and their application in temporal and spatial reasoning, Artif. Intell. Rev., 23 (2005), pp. 315–357.
54.
S. Durhan and G. Sciavicco, Allen-like theory of time for tree-like structures, Inform. and Comput., 259 (2018), pp. 375–389.
55.
F. Dylla, J. H. Lee, T. Mossakowski, T. Schneider, A. van Delden, J. van de Ven, and D. Wolter, A survey of qualitative spatial and temporal calculi: Algebraic and computational properties, ACM Comput. Surv., 50 (2017), 7.
56.
E. A. Emerson and J. Y. Halpern, “Sometimes” and “not never” revisited: On branching versus linear time temporal logic, J. ACM, 33 (1986), pp. 151–178.
57.
T. Feder and M. Y. Vardi, The computational structure of monotone monadic SNP and constraint satisfaction: A study through Datalog and group theory, SIAM J. Comput., 28 (1998), pp. 57–104, https://doi.org/10.1137/S0097539794266766.
58.
A. U. Frank, Qualitative spatial reasoning: Cardinal directions as an example, Int. J. Geogr. Inf. Systems, 10 (1996), pp. 269–290, https://doi.org/10.1080/02693799608902079.
59.
M. Gavanelli, A. Passantino, and G. Sciavicco, Deciding the consistency of branching time interval networks, in Proceedings of the 25th International Symposium on Temporal Representation and Reasoning (TIME-2018), 2018, pp. 12:1–12:15.
60.
M. C. Golumbic and R. Shamir, Complexity and algorithms for reasoning about time: A graph-theoretic approach, J. ACM, 40 (1993), pp. 1108–1133.
61.
J. Greiner, Complexity of Constraint Satisfaction Problems for Unions of Theories, Ph.D. thesis, Technische Universität Dresden, 2021.
62.
H. Guesgen, Spatial Reasoning Based on Allen’s Temporal Logic, Report ICSI TR 89-049, International Computer Science Institute, 1989.
63.
R. Hirsch, Expressive power and complexity in algebraic logic, J. Logic Comput., 7 (1997), pp. 309–351.
64.
W. Hodges, A Shorter Model Theory, Cambridge University Press, Cambridge, 1997.
65.
P. G. Jeavons, On the algebraic structure of combinatorial problems, Theoret. Comput. Sci., 200 (1998), pp. 185–204.
66.
P. Jonsson and C. Bäckström, A unifying approach to temporal constraint reasoning, Artif. Intell., 102 (1998), pp. 143–155.
67.
A. Kechris, V. Pestov, and S. Todorčević, Fraïssé limits, Ramsey theory, and topological dynamics of automorphism groups, Geom. Funct. Anal., 15 (2005), pp. 106–189.
68.
P. G. Kolaitis and M. Y. Vardi, Conjunctive-query containment and constraint satisfaction, in Proceedings of the 17th Symposium on Principles of Database Systems (PODS-1998), 1998, pp. 205–213.
69.
M. Kompatscher and T. Van Pham, A complexity dichotomy for poset constraint satisfaction, J. Appl. Logics, 5 (2018), pp. 1663–1696.
70.
M. Koubarakis, Tractable disjunctions of linear constraints: Basic results and applications to temporal reasoning, Theoret. Comput. Sci., 266 (2001), pp. 311–339.
71.
A. A. Krokhin, P. Jeavons, and P. Jonsson, Reasoning about temporal relations: The tractable subalgebras of Allen’s interval algebra, J. ACM, 50 (2003), pp. 591–640.
72.
A. H. Lachlan, \(\aleph_0\) -categorical tree-decomposable structures, J. Symb. Log., 57 (1992), pp. 501–514, https://doi.org/10.2307/2275284.
73.
L. Lamport, The mutual exclusion problem: Part I—A theory of interprocess communication, J. ACM, 33 (1986), pp. 313–326.
74.
G. Ligozat, “Corner” relations in Allen’s algebra, Constraints, 3 (1998), pp. 165–177.
75.
G. Ligozat, Reasoning about cardinal directions, J. Visual Lang. Comput., 9 (1998), pp. 23–44, https://doi.org/10.1006/jvlc.1997.9999.
76.
G. Ligozat, When tables tell it all: Qualitative spatial and temporal reasoning based on linear orderings, in Proceedings of the 5th International Conference on Spatial Information Theory (COSIT-2001), 2001, pp. 60–75.
77.
F. Madelaine and I. A. Stewart, Constraint satisfaction, logic and forbidden patterns, SIAM J. Comput., 37 (2007), pp. 132–163, https://doi.org/10.1137/050634840.
78.
M. Maróti and R. McKenzie, Existence theorems for weakly symmetric operations, Algebra Universalis, 59 (2008), pp. 463–489.
79.
R. H. Möhring, M. Skutella, and F. Stork, Scheduling with AND/OR precedence constraints, SIAM J. Comput., 33 (2004), pp. 393–415, https://doi.org/10.1137/S009753970037727X.
80.
A. Mottet, A Maximally Tractable Fragment of Temporal Reasoning Plus Successor, MPRI Masters Dissertation, 2014.
81.
A. Mottet, T. Nagy, M. Pinsker, and M. Wrona, Smooth approximations and relational width collapses, in Proceedings of the 48th International Colloquium on Automata, Languages, and Programming (ICALP-2021), 2021, 138.
82.
A. Mottet and M. Pinsker, Cores over Ramsey structures, J. Symb. Log., 86 (2021), pp. 352–361.
83.
A. Mottet and M. Pinsker, Smooth approximations and CSPs over finitely bounded homogeneous structures, in Proceedings of the 37th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS-2022), 2022, pp. 36:1–36:13.
84.
L. Mudrová and N. Hawes, Task scheduling for mobile robots using interval algebra, in Proceedings of the 2015 IEEE International Conference on Robotics and Automation (ICRA-2015), 2015, pp. 383–388.
85.
A. Mukerjee and G. Joe, A qualitative model for space, in Proceedings of the 8th National Conference on Artificial Intelligence (AAAI-1990), 1990, pp. 721–727.
86.
B. Nebel and H.-J. Bürckert, Reasoning about temporal relations: A maximal tractable subclass of Allen’s interval algebra, J. ACM, 42 (1995), pp. 43–66.
87.
J. Opatrný, Total ordering problem, SIAM J. Comput., 8 (1979), pp. 111–114, https://doi.org/10.1137/0208008.
88.
R. N. Pelavin and J. F. Allen, A model for concurrent actions having temporal extent, in Proceedings of the 6th National Conference on Artificial Intelligence (AAAI-1987), 1987, pp. 246–250.
89.
M. Ragni and S. Wölfl, Branching Allen. Reasoning with intervals in branching time, in Spatial Cognition IV: Reasoning, Action, Interaction, International Conference Spatial Cognition 2004, Lecture Notes in Comput. Sci. 3343, Springer, Berlin, Heidelberg, 2004, pp. 323–343.
90.
D. A. Randell, Z. Cui, and A. G. Cohn, A spatial logic based on regions and connection, in Proceedings of the 3rd Conference on Principles on Knowledge Representation and Reasoning (KR-1992), 1992, pp. 165–176.
91.
F. S. Regateiro, J. Bento, and J. Dias, Floor plan design using block algebra and constraint satisfaction, Adv. Eng. Inform., 26 (2012), pp. 361–382.
92.
S. Shelah, Stability, the f.c.p., and superstability; model theoretic properties of formulas in first order theory, Ann. Math. Logic, 3 (1971), pp. 271–362.
93.
P. Simon, A Guide to NIP Theories, Lect. Notes Log. 44, Cambridge University Press, 2015.
94.
F. Song and R. Cohen, The interpretation of temporal relations in narrative, in Proceedings of the 7th National Conference on Artificial Intelligence (AAAI-1988), 1988, pp. 745–750.
95.
M. Westphal and S. Wölfl, Qualitative CSP, finite CSP, and SAT: Comparing methods for qualitative constraint-based reasoning, in Proceedings of the 21st International Joint Conference on Artificial Intelligence (IJCAI-2009), 2009, pp. 628–633.
96.
F. Zapata, V. Kreinovich, C. A. Joslyn, and E. Hogan, Orders on intervals over partially ordered sets: Extending Allen’s algebra and interval graph results, Soft Comput., 17 (2013), pp. 1379–1391.
97.
P. Zhang and J. Renz, Qualitative spatial representation and reasoning in Angry Birds: The extended rectangle algebra, in Proceedings of the 14th International Conference on Principles of Knowledge Representation and Reasoning (KR-2014), 2014, pp. 378–387.
98.
D. Zhuk, A proof of the CSP dichotomy conjecture, J. ACM, 67 (2020), 30, https://doi.org/10.1145/3402029.
99.
D. N. Zhuk, A proof of CSP dichotomy conjecture, in Proceedings of the 58th IEEE Annual Symposium on Foundations of Computer Science (FOCS-2017), 2017, pp. 331–342.

Information & Authors

Information

Published In

cover image SIAM Journal on Computing
SIAM Journal on Computing
Pages: 1293 - 1353
ISSN (online): 1095-7111

History

Submitted: 21 November 2022
Accepted: 17 May 2024
Published online: 12 September 2024

Keywords

  1. constraint satisfaction
  2. temporal reasoning
  3. computational complexity
  4. polymorphisms
  5. universal algebra
  6. polynomial-time tractability

MSC codes

  1. 06A05
  2. 68Q25
  3. 08A70

Authors

Affiliations

Institute of Algebra, TU Dresden, Dresden, Germany.
Peter Jonsson
Department of Computer and Information Science, Linköping University, Linköping, Sweden.
Barnaby Martin
Department of Computer Science, Durham University, Durham, UK.
Antoine Mottet
Research Group for Theoretical Computer Science, Hamburg University of Technology, Hamburg, Germany.
Institute of Algebra, TU Dresden, Dresden, Germany.

Funding Information

Funding: The work of the first and fifth authors was supported by European Research Council grant 101071674, POCOCOP, and by Deutsche Forschungsgemeinschaft grant 467967530. Views and opinions expressed are however those of the authors only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them. The work of the second author was partially supported by the Swedish Research Council (VR) under grants 2017-04112 and 2021-04371. The third author was supported by EPSRC grant EP/X03190X/1.

Metrics & Citations

Metrics

Citations

If you have the appropriate software installed, you can download article citation data to the citation manager of your choice. Simply select your manager software from the list below and click Download.

View Options

View options

PDF

View PDF

Full Text

View Full Text

Media

Figures

Other

Tables

Share

Share

Copy the content Link

Share with email

Email a colleague

Share on social media