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?
| Row | C1 | C2 | C3 | C4 | C5 |
|---|---|---|---|---|---|
| R1 | 1 | 1 | 1 | 1 | 0 |
| R2 | 1 | 1 | 1 | 1 | 0 |
| R3 | 1 | 1 | 1 | 1 | 0 |
| R4 | 1 | 1 | 1 | 0 | 0 |
| R5 | 0 | 0 | 0 | 0 | 1 |
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.