研究室 · kenkyūshitsu
Solver lab
For people who write SAT solvers: race ours against each other on a puzzle, or compile your own to WebAssembly and climb the SAT Dojo's leaderboard.
How it works 稽古 · keikoSprint track
一Build
Any language that compiles to WASI preview 1 works: Rust, C and C++ with wasi-sdk, Zig, Go. Read DIMACS on stdin and answer like in the SAT competition.
$ cargo build --release --target wasm32-wasip1
stdin p cnf 3 2
1 -2 0
2 3 0
stdout s SATISFIABLE
v 1 2 -3 0UNSAT needs a proof, like in the SAT Competition: your program gets a file path as its first argument and writes a DRAT proof there (text or binary), or LRAT after printing c proof lrat. Without a proof the answer counts as unsolved, a wrong proof disqualifies.
argv solver /proof/proof.out
stdin p cnf 1 2
1 0
-1 0
stdout s UNSATISFIABLE
proof 0二Train
Score your solver locally on the public dev set with the dojo tool. It runs exactly like the leaderboard, so you know your score before you submit.
$ cargo install --git https://github.com/
NoelHuibers/Hashiwokakero dojo --features worker
$ dojo run my-solver.wasm
solved 33/36 PAR-2 2.658 Gfuel三Submit
Upload the .wasm file. It runs on the hidden set of the current season, on our own machine.
四Climb
The lowest PAR-2 wins: the mean fuel per formula, where unsolved formulas count twice the budget.
Enter the dojo 入門 · nyūmon
Loading…
The formulas
Hashi
Hashiwokakero puzzles from 12×12 to 28×28 as CNF, without the connectivity rule. Always satisfiable.
Hashi parity
Puzzles with one number changed so the numbers add up to an odd sum. Unsatisfiable, since every bridge adds two. Easy to see, hard to prove by resolution.
Random 3-SAT
Uniform random 3-SAT at the phase transition, 4.26 clauses per variable, about half of them satisfiable.
Pigeonhole
n+1 pigeons in n holes: the classic that needs exponentially long resolution proofs. Plus a few that do fit.
Queens
N queens on boards up to 64×64 with a few forbidden squares.
Factoring
A multiplier circuit with its output fixed to a number of 16 to 26 bits: satisfiable when it is the product of two primes, unsatisfiable when it is a prime. Cryptography in miniature.
Miters
Two multipliers wired differently, asked for an input on which they disagree: unsatisfiable when both are correct, satisfiable when one hides a rarely triggered bug. Hardware verification in miniature.
Graph coloring
Four colors for random graphs near the threshold: some with a planted coloring, some containing a Mycielski graph that needs five.
Mystery family
Every hidden set has one more family that the dev set doesn't have, drawn from a reserve by the season's seed. It counts like the others, shows up as the mystery family and is revealed in the archive when the season ends.
Community
Benchmarks from the community pool: a few in every hidden set, drawn by the season's seed and published with their authors when the season ends.
Bring your own benchmarkFair play 礼 · rei
Fuel, not seconds
Fuel counts the WebAssembly operators a solver executes, weighted the way a real processor pays for them: loads and stores three units, locals and constants nothing, everything else one, bulk memory one per byte. Clocks and random numbers are seeded, so a solver gets the same score on every machine, every time.
Checked against the clock
Counting instructions is criticised because a memory access can cost far more than an addition. So we measured: seven solvers, MiniSat, CaDiCaL and Kissat among them, on 180 formulas, natively and in the sandbox. Within every solver, fuel follows native time with a rank correlation of 0.91 to 1.00, and it ranks the solvers almost exactly like their running time. Weighting memory and making locals free predicts time across solvers about a tenth better than one unit per operator. Method, data and limits: CALIBRATION.md.
Hidden, fresh formulas
The test set comes from a secret seed that changes every season, and every formula is scrambled: variables renamed and negated, clauses shuffled. While a season runs, results are shown per family only, never per formula.
Every answer checked
Models are verified against the formula, and every UNSAT answer needs a proof, checked like in the main track of the SAT Competition: drat-trim turns it into LRAT and cake_lpr, a checker proven correct in HOL4 and compiled by CakeML, has the last word. Our own labels are proven the same way. A wrong model or a rejected proof disqualifies the submission, so guessing never pays.
Generalize, don't memorize
In 2026 an AI-generated solver with more than a hundred family-specific sub-solvers beat every main-track solver on the satisfiable instances of the SAT Competition, and the organizers called memorization versus generalization an open problem. So the hidden set goes beyond the dev set: larger formulas, and one family your solver has never trained on.
A sealed sandbox
No network, no environment, and no files but the one for the proof. Memory, output and the proof are capped, and submissions run on a separate machine that holds no data.
One account, best entry
Accounts have to be a day old to submit, and there are three submissions a day per account and per network. Identical code is refused, even renamed or padded, and only your best submission is ranked.
No copies
Scores are exact, so a solver leaves a fingerprint: the fuel it uses on every formula. A submission that behaves like an earlier one by someone else isn't ranked. Changing a copy enough to escape that makes it a different solver, and making it slower only puts it below the original.
Seasons
A new season brings a new hidden set and every submission is evaluated again. The finished season is archived: its final leaderboard, its set and every result per formula are published.
Sealed in advance
At the start of a season we publish the SHA-256 of its secret seed. When the season is over the seed is revealed, so anyone can check that the set was fixed beforehand and regenerate it with dojo export --seed.