How eight tests can rule out six gates
Light one or two of five inputs numbered zero through four. The positive cases are input 0 alone, input 1 alone, or inputs 0 and 2 together. A seven-gate design was available and earlier solver runs had found no solution at six. The aim here was to turn the lower bound into a small, replayable proof.
Remove two inputs that change the answer
Start with 0 lit. Turning on 4 changes yes to no. Fix 4 to false and the answer still varies on the remaining inputs. A gate-elimination argument saves at least one gate. Apply it again to input 3. A hypothetical six-gate circuit would leave at most four gates to solve the remaining three-input problem.
Keep each wire’s entire behavior
Only six test inputs remain. Store the six answers on a wire as six bits. A gate extends the collection by complementing a wire or joining two wires with AND or OR. Retaining earlier wires allows all possible reuse. Lean checks that the target bit pattern cannot appear within four gates. The proof uses eight of the original tests to force seven gates. Adding a sixth isolated point gives a related instance with exact cost eight.
Proof and verification
Lean verifies both lower bounds and checks the supplied upper constructions.