Algebraic encoding of graph 3 coloring to surprisingly fast groebner basis
Statement
Computing groebner basis over finite fields is NP-hard and the trivial reduction is from SAT. In this case computing the basis is horribly slow, according to our tests worse than brute force search of solutions.
Consider the following algebraic encoding of graph 3 coloring. Working over . Given graph , for each vertex make variable . For , add the equation . Working modulo this guarantees . For all vertices add the field equation to avoid working over algebraic closure.
The solution of this polynomial system is equivalent to graph 3 coloring.
To solve the system in sagemath, we use: gb=Ideal(J).groebner_basis(algorithm="libsingular:slimgb",deg_bound=4)
"slimgb" is an algorithm of the Singular CAS and deg_bound=4 makes computation fast.
According to my tests the following work:
• Random Graphs of order ~90
• Line graphs of flower snarks
• Mycielski graphs and Mycielski step graphs
• Encoding small instances of random 3-SAT to graph 3 coloring
Added 2026-02-03
Solved 15 random 4-regular graphs of order 80 with arithmetic mean 1.44 seconds.
Solved 15 random …
Posed by joro · graph-theory, polynomials, graph-colorings, groebner-bases
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-507706.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-507706.lean
import Mathlib /-! # Algebraic encoding of graph 3 coloring to surprisingly fast groebner basis Source: https://mathoverflow.net/questions/507706 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_507706 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_507706