Documentation

CslibFrontier.Computability.Circuit.Boolean.AffineDisperser4n.RefuterSizes

Step count and size invariants of the 4n − 9d refuter's run #

refute runs refuterLoop (initialState C) (refuterMeasure (initialState C)). This file counts the loop's steps and bounds the sizes of every state the loop visits, in terms of n and C.size. These are statements about the refuter's own states; no cost model or running time is claimed here.

refuterRun runs the loop and counts its steps; refuterLoop is its first component. The loop's result is loopStep^[m] S with m the count (refuterLoop_eq_iterate), so every state it visits is loopStep^[k] (initialState C) for some k ≤ 5 n + 7 C.size (refute_steps). Along the run:

Main definitions #

Main results #

Step count #

One iteration of the loop body: applyStep with the chosen step, or S when none applies.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.refuterRun_eq_iterate {n : ℕ} (fuel : ℕ) (S : State n) (steps : ℕ) :
∃ m ≤ fuel, refuterRun S fuel steps = (loopStep^[m] S, steps + m)

refuterRun S fuel steps applies m ≤ fuel iterations of loopStep and adds m to steps.

theorem Cslib.Circuits.Boolean.AffineDisperser4n.refuterRun_snd_le {n : ℕ} (S : State n) (fuel : ℕ) :
(refuterRun S fuel 0).2 ≤ fuel

The step count of refuterRun is at most the fuel.

refuterLoop S fuel is (refuterRun S fuel 0).2 iterations of loopStep.

The initial measure, exactly: n parameters, C.program.cost binaryB2Cost gates, no equations and no auxiliary variables.

The loop of refute makes at most 5 n + 7 C.size steps.

No step creates a parameter, auxiliary variable or gate name #

The parameters, auxiliary variables and gates of a state (equation names are not included).

A step chosen by the refuter creates no parameter, auxiliary variable or gate name.

A step chosen by the refuter adds at most the equation name S.freshEqn.

One iteration of the loop creates no parameter, auxiliary variable or gate name.

The initial names are below n + C.size.

Along the run, every parameter, auxiliary variable and gate name stays below n + C.size.

Equation names #

One iteration of the loop adds at most the equation name S.freshEqn.

Along the run, every equation name is below the number of steps taken: the initial state has no equations, and each step adds at most one fresh name.

Every equation name of the state refute searches is below 5 n + 7 C.size.

Validity and counts along the run #

Every state of the run is valid for the function C computes, and its measure is at most the initial one.

Size invariants of every state of the run, in n and C.size.