Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser4n.RefuterSearch

The refuter's final search finds a counterexample #

findCounterexample C f d S searches the candidates candidates d S: 2^d points of Φ(Z(P)) built from the free parameters of S. When S is a valid terminal state for the function of C (no refuter step applies) with d < S.a, the output of S is constant on the enumerated d-dimensional affine subspace, so a d-affine disperser f disagrees with C at one of the enumerated points.

Main results #

List utilities #

findPair and terminalVal #

theorem Cslib.Circuits.Boolean.AffineDisperser4n.findPair_spec {n : ℕ} {S : State n} {x : ℕ} {pr : ZeroPair} (h : findPair S x = some pr) :
pr ∈ S.pairs ∧ (pr.fst = x ∨ pr.snd = x)

A pair found by findPair S x is a pair of S containing x.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.findReader_spec {n : ℕ} {S : State n} {G K : ℕ} (h : findReader S G = some K) :
K ∈ S.gates ∧ K ≠ G ∧ (S.gate K).Reads G

A gate found by findReader S G is a gate of S other than G that reads G.

On a valid state, findPair S x finds a pair whenever x belongs to one.

The free parameters #

fixArg g w fixes the argument w of a non-affine gate to a value making it constant.

Inversion of findAndOnPair S = some (G, p).

On a valid terminal state of the refuter for the function of C with d < S.a, the final search of findCounterexample succeeds.

A terminal state has at most 2^d candidates.

The search returns the first candidate on which C and f disagree.

Every input returned by findCounterexample is a counterexample.

On a valid terminal state of the refuter for the function of C with d < S.a, some candidate is an input on which C and the d-affine disperser f disagree.