sarvesh.
P vs NP: Small Circuits

P vs NP: Small Circuits · Circuits for tables

A table where the saving grows with its size

Take a square of ones of side n − 1, erase its bottom-right cell, and put one isolated one in a new final row and column. All other new cells are zero. This makes an n-by-n table that is easy to draw. On input one row and one column, how small a circuit decides whether their cell is filled?

RowC1C2C3C4C5
R111110
R211110
R311110
R411100
R500001
At n = 5, the filled cells are the yes answers. The fourth row loses one cell and the fifth row gains an isolated one.

Pay for every operation

In this experiment both AND and OR cost a gate. The circuit can combine a group of columns once, then use the result twice. A formula has to rebuild the common part at each use. The lower bound proves that no alternative formula can recover this saving by arranging the computation differently.

Count the difference

At n = 3 both representations cost six gates. At n = 5 the circuit costs ten while the formula costs twelve. At n = 12 the exact costs are twenty-four and thirty-three. The proof supplies both constructions and matching lower bounds for all n ≥ 3. The difference grows by one for each step in n.

Why the cost model matters

The graph studies in this project allow unions for free. Here every binary operation is charged, and the input promises one selected row and one selected column. That promise is part of the theorem. It lets the example isolate the price of copying an expression in a different model.

Proof and verification

Lean verifies both minima for every n ≥ 3.