A prime-field rank logic dichotomy for finite-template CSPs

A mix of human-written and AI-generated textHuman understanding: some partscs.LO — Logic in Computer Sciencemath.LO — Logiccs.CC — Computational Complexity

Contributed by Qian Peng ↗, Peiwei Wu ↗

Version 3 / Dec 06, 2026 / CC BY 4.0

Abstract

Let BB be a finite relational template. The existence of a homomorphism from a finite unordered input to BB is definable in prime-field rank logic if and only if the core of BB admits a weak near-unanimity polymorphism. If the core has n≥2n\ge 2 elements and admits such a polymorphism, pinned cohomological consistency is complete at a template-dependent width over the product of the primes at most nn. In each round the prime fields can use different witnesses supported on the same surviving partial assignments. To obtain this modulus, we reconstruct integral witnesses on finite group torsors and then remove prime powers by increasing the width. The resulting sentence uses one inflationary fixed point and prime-field solvability tests, without counting. We formalized this definability result for weak near-unanimity templates in Lean 4.

Author comments: 12 pages. The manuscript, Lean 4 formalization, and verification files are archived at https://doi.org/10.5281/zenodo.24857820

Provenance statement

Qian Peng and Peiwei Wu asked which prime fields suffice for a fixed WNU template and chose ternary A₅ cosets to test the width-four bound modulo 30. They based the general proof strategy on lifting pinned witnesses in their transporter induction and guided Codex in developing the arguments, formalizing selected results in Lean 4, and running the finite checks. Both authors take full responsibility for the mathematical content of the paper.

Tools used

OpenAI
Codex
Lean
Lean

References

  1. L. Barto, M. Hadek and D. Zhuk, Toward a uniform algorithm and uniform reduction for constraint problems (2026). 2604.06335 .
  2. L. Barto, J. Opršal and M. Pinsker, The wonderland of reflections, Israel J. Math. 223 (2018), 363--398. 10.1007/s11856-017-1621-9.DOI
  3. A. A. Bulatov, A dichotomy theorem for nonuniform CSPs, in Proc.\ 58th IEEE Symposium on Foundations of Computer Science (FOCS 2017) , 319--330. 10.1109/FOCS.2017.37.DOI
  4. V. Dalmau and J. Opršal, Local consistency as a reduction between constraint satisfaction problems, in Proc.\ 39th ACM/IEEE Symposium on Logic in Computer Science (LICS 2024) , 1--15. 10.1145/3661814.3662068.DOI
  5. A. Dawar, E. Grädel, B. Holm, E. Kopczyński and W. Pakusa, Definability of linear equation systems over groups and rings, Log. Methods Comput. Sci. 9 (2013), no. 4, Art. 12. 10.2168/LMCS-9(4:12)2013.DOI
  6. A. Dawar, M. Grohe, B. Holm and B. Laubner, Logics with rank operators, in Proc.\ 24th Annual IEEE Symposium on Logic in Computer Science (LICS 2009) , 113--122. 10.1109/LICS.2009.24.DOI
  7. A. Gkantzounis, Affine hierarchies: exact coefficient heights and algebraic completeness , Zenodo (2026). 10.5281/zenodo.24368757.DOI
  8. D. Goel, Cohomological kk-consistency decides coset CSPs over all finite solvable groups (expanded version 2.00), Zenodo (2026). 10.5281/zenodo.24761279.DOI
  9. E. Grädel and W. Pakusa, Rank logic is dead, long live rank logic!, J. Symbolic Logic 84 (2019), 54--87. 10.1017/jsl.2018.33.DOI
  10. M. Lichter, Separating rank logic from polynomial time, J. ACM 70 (2023), no. 2, Art. 14, 1--53. 10.1145/3572918.DOI
Show all 14 referencesShow fewer references
  1. M. Lichter and B. Pago, Limitations of affine integer relaxations for solving constraint satisfaction problems, in Proc.\ 52nd International Colloquium on Automata, Languages, and Programming (ICALP 2025) , LIPIcs 334 , 166:1--166:17. 10.4230/LIPIcs.ICALP.2025.166.DOI
  2. A. Ó Conghaile, Cohomology in constraint satisfaction and structure isomorphism, in Proc.\ 47th International Symposium on Mathematical Foundations of Computer Science (MFCS 2022) , LIPIcs 241 , 75:1--75:16. 10.4230/LIPIcs.MFCS.2022.75.DOI
  3. Q. Peng and P. Wu, Permutation transporters and bounded cohomological width , version 2.0.1, Zenodo (2026). 10.5281/zenodo.24837202.DOI
  4. D. Zhuk, A proof of the CSP dichotomy conjecture, J. ACM 67 (2020), Art. 30, 1--78. 10.1145/3402029.DOI

Version history

  1. v3 · 12 pagesSubmitted by Peiwei Wu12 pages. The manuscript, Lean 4 formalization, and verification files are archived at https://doi.org/10.5281/zenodo.24857820CurrentDec 06, 2026