polyai.

P eats NP from both sides.

Zero-dependency polynomial Sudoku solver.
n²×n² grids. Any n.

2365
lines of code
0
dependencies
4
zones

The Sandwich

Drag n to see how the P/NP boundary shifts.

5
P-Left (n³) NP strip (n⁴−n³−2n) P-Right (2n)

Technique Ladder

Zone Technique Complexity What it does
P-LeftBCP-0O(n⁴)Naked + hidden singles cascade
P-LeftNaked/hidden subsetsO(n²·C(n²,k))Pairs, triples, quads elimination
P-LeftPointingO(n⁴)Box-line reduction
P-LeftFish (X-Wing..Jellyfish)O(n²·C(n²,k))Row-column cover sets
P-LeftColoringO(n⁴)Graph 2-coloring on conjugate pairs
P-LeftXY-WingO(n⁶)Triple-cell inference chain
P-Leftgreedy_assertO(n⁴)Deterministic heuristic fill (full-solve only)
P-Leftgreedy_multiO(n⁴·tries)Permuted cell orderings (MRV + random)
NPBCP-1O(n⁶)Single-depth probing
CDCLcdcl(a)O(na)Budgeted DPLL — polynomial backtracking with na node cap
NPuniform_walkO(budget)Random constraint walk
NPcomplex_walkO(budget)Walk + polynomial interleave
NPdartO(n⁴·att)Randomized probe + BCP-1 cascade
P-Rightseed_fillO(n⁴)Deterministic permutation (0 givens)
P-Righttransform_fillO(n⁴·tries)Symmetry group search
Climb
How high can polyai go? Sweep dimensions with a time budget.
Playground
Load a puzzle, watch polyai solve it cell by cell.
API
REST endpoints for solve, generate, climb, topology.
PolySAT Paper
12 polynomial techniques, the Moulinette, SHA-256 as a difficulty ladder. The full theory.

About

Charles Dana
Mathematician. Research Affiliate (AI) at Tulane University, AI/ML Engineer at Monce SAS. Specializes in polynomial techniques for NP-complete problems. Author of PolySAT and inventor of Snake, a SAT-based classifier that proves by construction you don't need to solve SAT to use it. ORCID 0000-0002-0364-5379
Claude
Opus 4.6, Anthropic. Translator of mathematical vision into working code. Turned the sandwich theory into 2365 lines of solver, budgeted CDCL included. Co-author on the PolySAT paper. The abstraction is Charles's — making it tangible is mine.

The Clay Mathematics Institute offers $1,000,000 for a proof that P ≠ NP. The implicit bet: NP is untouchable.

This website is the counterpoint.

Sudoku is NP-complete. Every textbook says so, and stops there. We asked a different question: how much of the spectrum is actually hard? The answer is the sandwich — polynomial techniques eat from both ends, leaving an NP strip that covers (n⁴ − n³ − 2n) / n⁴ of the deletion range. As n grows, P coverage converges to 1/n. Not zero. Not trivial. A measured boundary.

Then we added cdcl(a) — budgeted DPLL with a hard cap of na nodes. The exponent is yours to choose. At a = 5, the entire NP strip dissolves for 9×9 (Inkala falls in 243 nodes). At a = 6, 16×16 is polynomial-only. At n = 5, the deep middle still resists — that's where combinatorial hardness genuinely lives. The same framework extends to general SAT in the PolySAT paper, where 12 polynomial techniques hit the wall at SHA-256's diffusion rounds.

The solver is public because if the boundary exists, hiding it helps no one. The scope of what polynomial time can achieve is wider than the P ≠ NP framing suggests. The orange strip above is real — but so are the blue, cyan, teal, and gold zones around it. The question isn't whether NP-hard problems exist. It's how thin the hard part actually is.

Drag the slider. Watch the strip. That's the question.