Correctness of the 4n - 9d refuter #
Every step chosen by chooseStep? is a step of gate elimination adding no gate, or a preparatory
operation removing a gate or lowering the auxiliary inputs of the minimal gate (RefuterStep). In
either case refuterMeasure decreases, so refuterLoop reaches a terminal state, preserving the
potential invariant ΔW ≤ 9 Δa. With C.program.cost binaryB2Cost + 9 * d < 4 * n (and hence
with C.size + 9 * d < 4 * n), the terminal state still has d < a, and findCounterexample
succeeds (RefuterSearch.lean).
Main results #
Cslib.Circuits.Boolean.AffineDisperser4n.applyStep_valid: one refuter step.Cslib.Circuits.Boolean.AffineDisperser4n.StepFacts,Cslib.Circuits.Boolean.AffineDisperser4n.chooseStep?_stepFacts: what a chosen step satisfies, in terms of the state.Cslib.Circuits.Boolean.AffineDisperser4n.refuterLoop_valid: the refuter loop.Cslib.Circuits.Boolean.AffineDisperser4n.mem_gates_of_chooseStep?_moveAffine: a chosenmoveAffinestep moves a gate of the state.Cslib.Circuits.Boolean.AffineDisperser4n.refute_correct_of_cost_lt,Cslib.Circuits.Boolean.AffineDisperser4n.refute_correct:refutefinds a disagreeing input for any circuit withC.program.cost binaryB2Cost + 9 * d < 4 * n(orC.size + 9 * d < 4 * n) and anyd-affine disperser.
The poly(n, 2^d) running time of the refuter is not formalized.
Searches #
isDegenerate decides Gate.Degenerate.
Pairs and children #
In a valid state, a parameter for which findPair finds nothing is unpaired.
getChildren lists each child once.
The number of listed children is the degree.
The step chosen #
None of the deletions (D1)–(D4) and no move applies.
What chooseStep? S = some c records about the searches.
Inversion of chooseStep?.
Consequences of failed searches #
Steps of the refuter #
A step of the refuter: a gate-elimination step adding no gate, or a preparatory operation that removes a gate or keeps the gates and lowers the auxiliary inputs of the minimal gate.
A refuter step lowers refuterMeasure, keeps validity, does not increase a, and satisfies
ΔW ≤ 9 Δa.
Deletions and moves #
Pair cases #
When no pair is degenerate, a paired name has a first listed child.
The minimal gate #
Every choice of chooseStep? is a refuter step.
Facts of the chosen step #
What a step chosen by chooseStep? on a valid state satisfies, in terms of the state
(chooseStep?_stepFacts): the names it acts on are gates, equations, parameters or paired
parameters of the state. In Case 4 and Case 5a the earlier pair cases do not apply. In Case 5a
the gate G reads p and the parameter otherArg (S.gate G) p, and the reader search
findReader S G of applyStep finds a gate reading G. In pair creation the gate reads unpaired
parameters only.
A step chosen by chooseStep? on a valid state satisfies StepFacts.
Main theorems #
Every step chosen by the refuter lowers refuterMeasure, keeps validity, does not increase
a, and satisfies ΔW ≤ 9 Δa.
Running the refuter loop from a valid state with fuel at least refuterMeasure S ends in a
terminal valid state, with ΔW ≤ 9 Δa and a not increased.
A moveAffine step chosen by the refuter moves a gate of the state.
The refuter finds an input on which any circuit satisfying
C.program.cost binaryB2Cost + 9 * d < 4 * n disagrees with a d-affine disperser.
The refuter finds an input on which a circuit of size < 4n - 9d disagrees with a
d-affine disperser.