Graph Homomorphisms and Universal Algebra
Pith reviewed 2026-05-15 21:55 UTC · model grok-4.3
The pith
Cyclic terms and bounded width theorems classify exactly which finite-domain constraint satisfaction problems are polynomial-time tractable.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
Finite-domain CSPs are in P if and only if their polymorphism clone contains a cyclic term or the instance has bounded width; otherwise the problem is NP-complete. The course proves both directions by reducing the algebraic conditions to known tractable algorithms (such as arc consistency or Datalog) and constructing hardness reductions when neither condition holds.
What carries the argument
A cyclic term is a polymorphism that satisfies a cyclic identity; bounded width is the property that the template admits a certain Datalog program of bounded treewidth. Together they serve as the decision criteria that separate tractable templates from NP-hard ones.
If this is right
- Any CSP whose template has a cyclic polymorphism can be solved by a local consistency procedure.
- Bounded-width templates admit a Datalog formulation that decides satisfiability in linear time.
- Absence of both cyclic terms and bounded width yields a polynomial-time reduction from 3-coloring or another NP-complete problem.
- The same algebraic conditions decide the complexity of the homomorphism problem for any finite directed graph.
Where Pith is reading between the lines
- The classification immediately supplies an algorithm that, given the template, outputs either a polynomial-time procedure or a proof of NP-hardness.
- The same invariants may guide the search for tractable restrictions when the domain is allowed to grow with the input size.
- Graph homomorphism problems become the base case from which the entire theory is built, so every later theorem is a direct lift of a graph-theoretic fact.
Load-bearing premise
The template of the CSP is a finite relational structure whose polymorphisms can be analyzed algebraically.
What would settle it
Exhibit a concrete finite template whose CSP is solvable in polynomial time yet whose polymorphism clone contains neither a cyclic term nor admits bounded width.
Figures
read the original abstract
Constraint satisfaction problems are computational problems that naturally appear in many areas of theoretical computer science. One of the central themes is their computational complexity, and in particular the border between polynomial-time tractability and NP-hardness. In this course we introduce the universal-algebraic approach to study the computational complexity of finite-domain CSPs. The course covers in particular the cyclic terms and bounded width theorems. To keep the presentation accessible, we start the course in the tangible setting of directed graphs and graph homomorphism problems.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript consists of course notes introducing the universal-algebraic approach to the computational complexity of finite-domain constraint satisfaction problems (CSPs). Beginning with directed graphs and graph homomorphism problems as a concrete entry point, it surveys the cyclic terms theorem and the bounded width theorem, which characterize the polynomial-time tractable cases.
Significance. If the exposition accurately reflects the established theorems, the notes provide a valuable pedagogical resource for bridging graph theory and universal algebra in the study of CSP complexity. The choice to start from tangible homomorphism problems lowers the entry barrier for readers with standard graph-theoretic background, and the focus on the cyclic terms and bounded-width results highlights two central pillars of the algebraic dichotomy theory. The work contains no new derivations but offers a structured survey of known results.
minor comments (2)
- Add explicit citations to the original sources of the cyclic terms theorem and bounded width theorem (e.g., Barto-Kozik and related works) at the points where the statements are introduced, to allow readers to locate the full proofs.
- Consider including a short concluding section that summarizes the main algebraic invariants and their algorithmic consequences, to reinforce the connection between the graph-homomorphism examples and the general CSP tractability results.
Simulated Author's Rebuttal
We thank the referee for the positive assessment of our course notes and the recommendation of minor revision. No specific major comments were raised in the report.
Circularity Check
No circularity: survey of established theorems only
full rationale
The document is course notes surveying known results (cyclic terms theorem, bounded-width theorem) on algebraic CSP complexity. It introduces graph homomorphisms pedagogically but advances no new derivations, equations, or claims. All load-bearing statements are explicitly attributed to prior literature without reduction to self-citations, fitted inputs, or self-definitional constructs inside the paper. The presentation is self-contained against external benchmarks.
Axiom & Free-Parameter Ledger
axioms (1)
- standard math Basic properties of graph homomorphisms and the correspondence between CSPs and algebras
Lean theorems connected to this paper
-
IndisputableMonolith/Cost/FunctionalEquation.lean (J-cost uniqueness), Foundation/RealityFromDistinction.lean (distinction-to-spacetime forcing)reality_from_one_distinction unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
The course covers in particular the cyclic terms and bounded width theorems... polymorphisms... arc-consistency procedure... path-consistency procedure
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
- [1]
-
[2]
G. Ahlbrandt and M. Ziegler. Quasi-finitely axiomatizable totally categorical theories. Annals of Pure and Applied Logic, 30(1):63–82, 1986
work page 1986
-
[3]
E. Aichinger, P. Mayr, and R. McKenzie. On the number of finite algebraic structures. Journal of the European Mathematical Society, 16(8):1673–1686, 2014
work page 2014
-
[4]
B. Aspvall, M. F. Plass, and R. E. Tarjan. A linear-time algorithm for testing the truth of certain quantified boolean formulas.Information Processing Letters, 8(3):121–123, 1979
work page 1979
-
[5]
A. Atserias, A. A. Bulatov, and A. Dawar. Affine systems of equations and counting infinitary logic.Theoretical Computer Science, 410(18):1666–1683, 2009. 199
work page 2009
-
[6]
L. Barto. The dichotomy for conservative constraint satisfaction problems revisited. In Proceedings of the Symposium on Logic in Computer Science (LICS), Toronto, Canada, 2011
work page 2011
-
[7]
L. Barto. Finitely related algebras in congruence distributive varieties have near una- nimity terms.Canadian Journal of Mathematics, 65(1):3–21, 2013
work page 2013
- [8]
- [9]
-
[10]
L. Barto and A. Kazda. Deciding absorption.Int. J. Algebra Comput., 26(5):1033–1060, 2016
work page 2016
-
[11]
L. Barto and M. Kozik. Constraint satisfaction problems of bounded width. InPro- ceedings of the Annual Symposium on Foundations of Computer Science (FOCS), pages 595–603, 2009
work page 2009
-
[12]
L. Barto and M. Kozik. Absorbing subalgebras, cyclic terms and the constraint satis- faction problem.Logical Methods in Computer Science, 8/1(07):1–26, 2012
work page 2012
-
[13]
L. Barto and M. Kozik. Absorption in universal algebra and CSP. InThe Constraint Satisfaction Problem: Complexity and Approximability, volume 7 ofDagstuhl Follow- Ups, pages 45–77, 2017
work page 2017
- [14]
- [15]
- [16]
- [17]
-
[18]
N. Biggs. Constructions for cubic graphs with large girth.Electronic Journal of Com- binatorics, 5, 1998
work page 1998
- [19]
- [20]
-
[21]
Bodirsky.Complexity of Infinite-Domain Constraint Satisfaction
M. Bodirsky.Complexity of Infinite-Domain Constraint Satisfaction. Lecture Notes in Logic (52). Cambridge University Press, Cambridge, United Kingdom; New York, NY, 2021. 200
work page 2021
- [22]
- [23]
- [24]
-
[25]
M. Bodirsky, J. Bul´ ın, F. Starke, and M. Wernthaler. The smallest hard trees.Con- straints, abs/2205.07528, 2022
-
[26]
M. Bodirsky and J. Neˇ setˇ ril. Constraint satisfaction with countable homogeneous tem- plates.Journal of Logic and Computation, 16(3):359–373, 2006
work page 2006
-
[27]
M. Bodirsky and M. Pinsker. Topological Birkhoff.Transactions of the American Mathematical Society, 367(4):2527–2549, 2015
work page 2015
-
[28]
M. Bodirsky and F. Starke. Maximal digraphs with respect to primitive positive con- structability.Combinatorica, 42:997–1010, 2022
work page 2022
-
[29]
M. Bodirsky, F. Starke, and A. Vucaj. Smooth digraphs modulo primitive positive constructability and cyclic loop conditions.International Journal on Algebra and Com- putation, 31(5):939–967, 2021. Preprint available at ArXiv:1906.05699
-
[30]
M. Bodirsky and A. Vucaj. Two-element structures modulo primitive positive con- structability.Algebra Universalis, 81(20), 2020. Preprint available at ArXiv:1905.12333
-
[31]
M. Bodirsky, A. Vucaj, and D. Zhuk. The lattice of clones of self-dual operations collapsed.International Journal on Algebra and Computation, 2023. Preprint available at https://arxiv.org/abs/2109.01371
-
[32]
V. G. Bodnarˇ cuk, L. A. Kaluˇ znin, V. N. Kotov, and B. A. Romov. Galois theory for Post algebras, part I and II.Cybernetics, 5:243–539, 1969
work page 1969
-
[33]
J. Brakensiek and V. Guruswami. Promise constraint satisfaction: Algebraic structure and a symmetric boolean dichotomy.SIAM J. Comput., 50(6):1663–1700, 2021
work page 2021
-
[34]
A. A. Bulatov. Tractable conservative constraint satisfaction problems. InProceedings of the Symposium on Logic in Computer Science (LICS), pages 321–330, Ottawa, Canada, 2003
work page 2003
-
[35]
A. A. Bulatov. H-coloring dichotomy revisited.Theoretical Computer Science, 349(1):31–39, 2005
work page 2005
-
[36]
A. A. Bulatov. Conservative constraint satisfaction re-revisited.Journal Computer and System Sciences, 82(2):347–356, 2016. ArXiv:1408.3690
work page internal anchor Pith review Pith/arXiv arXiv 2016
-
[37]
A. A. Bulatov. A dichotomy theorem for nonuniform CSPs. In58th IEEE Annual Symposium on Foundations of Computer Science, FOCS 2017, Berkeley, CA, USA, October 15-17, pages 319–330, 2017. 201
work page 2017
-
[38]
A. A. Bulatov and V. Dalmau. A simple algorithm for Mal’tsev constraints.SIAM Journal on Computing, 36(1):16–27, 2006
work page 2006
-
[39]
A. A. Bulatov and P. Jeavons. Algebraic structures in combinatorial problems. Technical report MATH-AL-4-2001, Technische Universit¨ at Dresden, 2001
work page 2001
-
[40]
A. A. Bulatov, A. A. Krokhin, and P. G. Jeavons. Classifying the complexity of con- straints using finite algebras.SIAM Journal on Computing, 34(3):720–742, 2005
work page 2005
-
[41]
J. Bul´ ın. On the complexity ofH-coloring for special oriented trees.Eur. J. Comb., 69:54–75, 2018
work page 2018
-
[42]
J. Bul´ ın, D. Delic, M. Jackson, and T. Niven. A finer reduction of constraint problems to digraphs.Log. Methods Comput. Sci., 11(4), 2015
work page 2015
-
[43]
S. N. Burris and H. P. Sankappanavar.A Course in Universal Algebra. Springer Verlag, Berlin, 1981
work page 1981
-
[44]
C. Carvalho, L. Egri, M. Jackson, and T. Niven. On Maltsev digraphs.Electr. J. Comb., 22(1):P1.47, 2015
work page 2015
-
[45]
H. Chen, V. Dalmau, and B. Grußien. Arc consistency and friends.J. Log. Comput., 23(1):87–108, 2013
work page 2013
-
[46]
H. Chen and B. Larose. Asking the metaquestions in constraint tractability.TOCT, 9(3):11:1–11:27, 2017
work page 2017
-
[47]
D. A. Cohen, M. C. Cooper, P. G. Jeavons, and S.ˇZivn´ y. Binarisation via dualisation for valued constraints. InProceedings of the Twenty-Ninth AAAI Conference on Artificial Intelligence, January 25-30, 2015, Austin, Texas, USA., pages 3731–3737, 2015
work page 2015
- [48]
-
[49]
V. Dalmau. Linear Datalog and bounded path duality of relational structures.Logical Methods in Computer Science, 1(1), 2005
work page 2005
-
[50]
V. Dalmau and J. Pearson. Closure functions and width 1 problems. InProceedings of the International Conference on Principles and Practice of Constraint Programming (CP), pages 159–173, 1999
work page 1999
-
[51]
R. Dechter.Constraint Processing. Morgan Kaufmann, 2003
work page 2003
- [52]
-
[53]
L. Egri, B. Larose, and P. Tesson. Symmetric Datalog and constraint satisfaction problems in logspace. InProceedings of the Symposium on Logic in Computer Science (LICS), pages 193–202, 2007
work page 2007
-
[54]
M. M. El-Zahar and N. Sauer. The chromatic number of the product of two 4-chromatic graphs is 4.Combinatorica, 5(2):121–126, 1985
work page 1985
-
[55]
T. Feder. Classification of homomorphisms to oriented cycles and ofk-partite satisfia- bility.SIAM Journal on Discrete Mathematics, 14(4):471–480, 2001. 202
work page 2001
-
[56]
T. Feder and M. Y. Vardi. Monotone monadic SNP and constraint satisfaction. In Proceedings of the Symposium on Theory of Computing (STOC), pages 612 – 622, 1993
work page 1993
-
[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 Journal on Computing, 28(1):57–104, 1999
work page 1999
-
[58]
M. Garey and D. Johnson.A guide to NP-completeness. CSLI Press, Stanford, 1978
work page 1978
-
[59]
D. Geiger. Closed systems of functions and predicates.Pacific Journal of Mathematics, 27:95–100, 1968
work page 1968
-
[60]
M. Goldmann and A. Russell. The complexity of solving equations over finite groups. Information and Computation, 178(1):253–262, 2002
work page 2002
-
[61]
G. H. Hardy and E. M. Wright.An introduction to the theory of numbers. Oxford University Press, 2008. Sixth edition
work page 2008
-
[62]
P. Hell and J. Neˇ setˇ ril. On the complexity of H-coloring.Journal of Combinatorial Theory, Series B, 48:92–110, 1990
work page 1990
-
[63]
P. Hell and J. Neˇ setˇ ril. The core of a graph.Discrete Mathematics, 109:117–126, 1992
work page 1992
-
[64]
P. Hell and J. Neˇ setˇ ril.Graphs and Homomorphisms. Oxford University Press, Oxford, 2004
work page 2004
-
[65]
D. Hobby and R. McKenzie.The structure of finite algebras, volume 76 ofContemporary Mathematics. American Mathematical Society, 1988
work page 1988
-
[66]
W. Hodges.Model theory. Cambridge University Press, Cambridge, 1993
work page 1993
-
[67]
W. Hodges.A shorter model theory. Cambridge University Press, Cambridge, 1997
work page 1997
- [68]
-
[69]
P. Jeavons, D. Cohen, and M. Gyssens. Closure properties of constraints.Journal of the ACM, 44(4):527–548, 1997
work page 1997
-
[70]
J. Jovanovi´ c, P. Markovi´ c, R. McKenzie, and M. Moore. Optimal strong Mal’cev con- ditions for congruence meet-semidistributivity in locally finite varieties.Algebra Uni- versalis, 76:305–325, 2016
work page 2016
-
[71]
A. Kazda. Maltsev digraphs have a majority polymorphism.European Journal of Combinatorics, 32:390–397, 2011
work page 2011
-
[72]
K. A. Kearnes, P. Markovi´ c, and R. McKenzie. Optimal strong Mal’cev conditions for omitting type 1 in locally finite varieties.Algebra Universalis, 72(1):91–100, 2015
work page 2015
-
[73]
V. Kolmogorov, A. A. Krokhin, and M. Rol´ ınek. The complexity of general-valued CSPs.SIAM J. Comput., 46(3):1087–1110, 2017
work page 2017
-
[74]
V. Kolmogorov, J. Thapper, and S. ˇZivn´ y. The power of linear programming for general- valued CSPs.SIAM J. Comput., 44(1):1–36, 2015. 203
work page 2015
-
[75]
M. Kozik. Weak consistency notions for all the CSPs of bounded width. InProceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’16, New York, NY, USA, July 5-8, 2016, pages 633–641, 2016
work page 2016
-
[76]
M. Kozik. Solving CSPs using weak local consistency.SIAM J. Comput., 50(4):1263– 1286, 2021
work page 2021
- [77]
-
[78]
M. Kozik and J. Ochremiak. Algebraic properties of valued constraint satisfaction problem. InAutomata, Languages, and Programming - 42nd International Colloquium, ICALP 2015, Kyoto, Japan, July 6-10, 2015, Proceedings, Part I, pages 846–858, 2015
work page 2015
- [79]
- [80]
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.