What is 3-SAT?
Imagine a row of light switches and a list of rules. Each rule names three switches and says something like "switch 4 is on, or switch 9 is off, or switch 17 is on." A rule is happy if at least one of its three conditions holds. The puzzle asks: is there a way to set every switch so that all the rules are happy at once?
If someone hands you a setting, checking it is easy: read each rule once. Finding a setting is the hard part. For 20 switches you could try everything. For 200, trying everything is out of the question, and clever solvers have to do something smarter.
Why people care
3-SAT is one of the best-known members of a family of problems called NP-complete. A fast method for solving all 3-SAT puzzles would give a fast method for a huge range of other problems, and whether any such method exists is the famous P versus NP question. Nobody has proved it either way. Even much more modest claims, such as that no method can solve every puzzle in time proportional to its size, are notoriously hard to establish.
Why random puzzles, and why 4.26
To avoid hand-picking friendly examples, the lab builds puzzles at random: choose how many switches (n) and how many rules (m), then draw each rule by chance. The ratio of rules to switches matters a lot. With few rules per switch almost every puzzle has a solution and is easy to crack. With many, almost none do, and a solver quickly runs into a contradiction. Near 4.26 rules per switch the odds flip from mostly solvable to mostly not, and puzzles are hardest on average. This was observed in the early 1990s (Mitchell, Selman and Levesque, 1992; Kirkpatrick and Selman, 1994). The commonly quoted threshold is about 4.26, and numerical estimates put it near 4.27.
What your browser does
- It picks a size, a rule count and a random 32-bit seed. The seed fully determines the puzzle, so anyone can rebuild it.
- It solves the puzzle with a conflict-driven clause learning solver. That is the same family of method used by serious modern solvers: it makes guesses, follows their consequences, and when it hits a contradiction it writes down a new rule that stops it making the same mistake.
- It records the answer, the number of guesses (decisions), the number of contradictions (conflicts) and the elapsed time, and sends them to the server in small batches.
What the server checks
- For a satisfiable answer, it rebuilds the puzzle from the seed and checks the submitted assignment against every rule. A wrong assignment is rejected.
- For puzzles up to 120 variables, it solves them again itself. The solver has no randomness, so the answer and the decision count must match exactly, or the result is rejected. Those rows are marked as replayed in the data.
- Above 120 variables, unsatisfiable answers and decision counts are taken on trust, because re-solving them would be slow. Anyone can re-run them in the Experiment tab. Elapsed times are always self-reported by the browser.
Submissions are open and unauthenticated, so treat the aggregate as crowd-sourced measurement, not audited evidence.
Why the curve matters, and what it cannot say
Plot the effort needed against puzzle size on a log scale. If effort multiplies by a fixed factor for every extra variable, the points fall on a straight rising line, which is what exponential growth looks like. If it grew gently, the points would flatten into a curve. The chart shows which of those pictures this solver, on these puzzles, in this range, resembles, and the readout under it fits a line to say how fast the effort doubles.
That is all it shows. It is not a proof, and it cannot be one: a measurement of one solver on random puzzles says nothing about the worst case, about other methods, or about sizes beyond the ones tested. Small puzzles also bend curves in ways that vanish as they grow. A real answer to the question needs mathematics, not more samples.
Honest limits
- The solver is a compact teaching-grade implementation, far slower than tools such as MiniSat or Kissat.
- Phones and laptops differ widely in speed, so times are noisy. Decision counts are comparable across machines.
- Runs that hit the 20 second cap are counted at the cap, which understates the true effort at the largest sizes.
- Anchoring a daily fingerprint of the dataset on a blockchain is only a sketch for now. Nothing is written anywhere today.
Where it came from
This was inspired by a post from toly about trying to show that 3-SAT needs more than linear time. This lab is an independent project and is not affiliated with or endorsed by him.