P vs NP: Small Circuits
A circuit is a recipe built from small yes-or-no decisions called gates. I found that two simple patterns explain the fewest gates needed for 104 different tables. In another experiment, reusing one calculation saved more work each time the table grew.
P versus NP asks whether every problem whose answer can be checked quickly can also be solved quickly. Working with Codex, I studied smaller questions where we could count the work exactly.
The general P versus NP question remains open.
Try two of the findings
Copy a row and count the gatesStart with a small grid. Each copied row or column costs exactly one gate in these examples.
Find eight places a curve meets zeroAll eight fit remarkably close to 1. See how a change of sign reveals each one.
Boolean circuits
How many logic gates does a decision require?
Why thirteen gates aren’t enough
Three people, three jobs, 512 possible inputs. Our lower bound explains why the known 14-gate matching circuit is optimal with two-input AND and OR.
Computer-assisted lower bound. Lean checks the construction and gate elimination.
Matching proof and both verifiersWhat one missed input taught me
A 61-gate point–line design passed 755 of 756 boundary tests. The missed case led to a proof that a whole class of designs needs 62.
Lean proves the restricted minimum. The 755/756 count describes the candidate experiment.
Restricted theorem and replay instructionsWhy two fixed rows force 29 gates
On a six-row incidence grid, any 28-gate solution would have to rebuild or disconnect at least five of the six standard rows.
Written reduction and two exhaustive finite searches.
Two-row reduction, certificates and replayWhat three leftover edges tell us about a circuit
A wire can be read several times. On graphs without four-cycles, ten test inputs can force a lower bound on how much reuse certain circuits need.
Lean proofs for the three-edge shapes. The six-edge plane result uses 95 replayed certificates.
The ten tests and eighteen certificatesHow eight tests can rule out six gates
On a five-input decision problem, shrinking the truth table makes an exact seven-gate minimum checkable in a single Lean proof.
Lean verifies both lower bounds and checks the supplied upper constructions.
Both certificates and replay
Circuits for tables
What do copies, shared wires and a NOT gate cost?
One proof for 104 circuit budgets
A four-by-five table led to a way to price every duplicate row or column. Two small patterns then explained why 104 posted budgets were each one gate short.
Lean-checked copy theorem, exact minima and a 104-table census.
Copy theorem, prior work and replayA table where the saving grows with its size
For every n ≥ 3, an explicit square table takes 2n AND/OR gates with reusable wires and 3n − 3 as a formula.
Lean verifies both minima for every n ≥ 3.
Exact circuit and formula bounds in LeanWhat one NOT gate can save
A table accepts everything except three disjoint row–column pairs. With AND and OR its cost grows with the table. Adding NOT fixes the minimum at six.
Lean-checked exact costs under each gate set.
Three-exception theorem in Lean
Graphs and finite geometry
What can a few intersections build or approximate?
When one shared wire is worth an intersection
An eight-by-eight example led to a six-by-six witness, a family for every budget from three upward, and a way to see why sharing sometimes fails.
Lean-checked classifications, examples and exact family theorem.
Exact family and rank theoremHow much can a tree save by sharing?
A particular tree saves one intersection. Across increasingly costly forests the percentage saving vanishes. Finite projective planes can behave very differently.
Lean-checked seven-by-seven example. Finite tree certificate and written asymptotic proofs.
Tree witness and independent searchHow much of a plane can three intersections recover?
At order 16 there are 4,641 true point–line incidences. Three intersections can recognize 158 with no false positives, and that is the best possible net score.
Published construction and upper bound checked in Lean for q ≥ 16.
Three-intersection theorem and verificationA cover that passes 520 tests and still fails
Four pairs pass every test from one side of the order-three plane. Testing from both sides takes five. Covering everything asks a stronger question.
Lean-checked witnesses and Fano lower bound. Exhaustive search for the order-three lower bound.
Both planes, constructions and finite checksHow many erased entries make a plane hard to describe?
Removing one incidence per point preserves the advantage of sharing. Randomly removing a vanishing fraction can make formulas and circuits comparable in cost.
Written asymptotic arguments with formal checks of the finite encodings and component lemmas.
Erasure theorem and probability argumentA rectangle cover with two holes
Fourteen rectangles cover exactly 334 of 336 required cells on a 21-by-21 board. The certificate identifies the two holes and checks every cell.
Lean-checked partial constructions and full fifteen-rectangle control.
Rectangle lists, holes and verification
Algebraic complexity
How much can a short algebraic expression encode?
The cost of checking equality depends on the arithmetic
Checking equality on four symbols costs eight terms over the rationals and nine over the two-element field. At 32 symbols we obtained a rational lower bound of 90.
Lean for the all-field bound. Written rational improvement with formal lemmas and exact checks.
The 90-term rational lower boundWhy a product of two trinomials stops at eight roots
After expansion, the usual sign count leaves room for nine positive roots. The product structure rules out the ninth, no matter how large the exponents are.
Lean-checked all-degree upper bound. Independent arithmetic check of the earlier eight-root witness.
Upper-bound proof, earlier witness and replay