Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Unanswered question

Algebraic encoding of graph 3 coloring to surprisingly fast groebner basis

Combinatorics

Imported on November 28, 2026

The forum classified this question as unanswered when collected. This does not certify an open research problem; check the answers and revision history at the source.

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem 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 F3[x1,x2...xn]\mathbb{F}_3[x_1,x_2...x_n]F3​[x1​,x2​...xn​]. Given graph G=(V,E)G=(V,E)G=(V,E), for each vertex vvv make variable xvx_vxv​. For (u,v)∈E(u,v) \in E(u,v)∈E, add the equation (xu−xv−1)(xu−xv−2)(x_u-x_v-1)(x_u-x_v-2)(xu​−xv​−1)(xu​−xv​−2). Working modulo 333 this guarantees xu≠xvx_u \ne x_vxu​=xv​. For all vertices add the field equation xv3−xvx_v^3-x_vxv3​−xv​ 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 4-regular graphs of order 90 with arithmetic mean 2 seconds.

Some more experimental data, format is n:time in seconds for the groebner basis

Random 4-regular graphs: 11:0.015 13:0.001 15:0.001 17:0.007 19:0.013 21:0.011 23:0.110 25:0.137 27:0.363 29:0.637 31:0.925 33:0.808 35:0.878 37:2.143 39:1.573

Line graphs of flower snarks (not 3 colorable): 11:0.103 13:0.228 15:0.460 17:0.851 19:1.352 21:2.264 23:3.578 25:5.426 27:7.606 29:11.094 31:14.690 33:20.441 35:27.242 37:36.312

Line graphs of 3-regular random graphs: 10:0.002 12:0.002 14:0.002 16:0.003 18:0.003 20:0.005 22:0.009 24:0.014 26:0.027 28:0.075 30:0.037 32:0.079 34:0.176 36:0.400 38:1.335

Question 1: For which graphs the above slimgb fails to find 3 coloring?

Statement and context adapted from MathOverflow · joro

CC BY-SA 4.0 · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Graph colouring
A proper vertex colouring gives adjacent vertices different colours. The chromatic number is the minimum number required. Edge colourings and other variants have their own rules, specified in the statement.
Graph
A set of vertices connected by edges. A vertex’s degree counts the incident edges; the statement specifies whether directions or multiple edges are allowed.

Topics : graph-theory · polynomials · graph-colorings · groebner-bases

Authors listed by the source : joro

Sources and original status

  • MathOverflow Status in source : unanswered at collection

Last activity on the question : February 3, 2026

Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni