Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser4n.RefuterProofs

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 #

The poly(n, 2^d) running time of the refuter is not formalized.

Searches #

Pairs and children #

In a valid state, a parameter for which findPair finds nothing is unpaired.

The children listed by getChildren.

The first listed child is a child.

getChildren lists each child once.

The number of listed children is the degree.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.exists_getChildren_cons {n : ℕ} {S : State n} {p : ℕ} (h : 1 ≤ S.deg p) :
∃ (N : ℕ ⊕ ℕ) (l : List (ℕ ⊕ ℕ)), getChildren S p = N :: l

A parameter of degree at least 1 has a listed child.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.exists_getChildren_cons_cons {n : ℕ} {S : State n} {p : ℕ} (h : 2 ≤ S.deg p) :
∃ (N₁ : ℕ ⊕ ℕ) (N₂ : ℕ ⊕ ℕ) (l : List (ℕ ⊕ ℕ)), getChildren S p = N₁ :: N₂ :: l

A parameter of degree at least 2 has two listed children.

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.

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.