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:
- no step creates a parameter, auxiliary variable or gate name: these only move between roles or
are deleted, so every such name stays below
n + C.size(nameSet_iterate); - the initial state has no equations and each step adds at most the fresh name
freshEqn, so afterksteps every equation name is belowk, and below5 n + 7 C.sizein the staterefutesearches (eqns_iterate,eqns_refuterLoop); - the state stays valid and the measure does not increase (
valid_iterate, fromapplyStep_valid), which bounds the numbers of parameters, gates, equations and pairs, and the terms per equation (sizes_iterate).
Main definitions #
Cslib.Circuits.Boolean.AffineDisperser4n.loopStep: one iteration of the loop body.Cslib.Circuits.Boolean.AffineDisperser4n.nameSet: the parameters, auxiliary variables and gates of a state.
Main results #
Cslib.Circuits.Boolean.AffineDisperser4n.refuterRun_eq_iterate,Cslib.Circuits.Boolean.AffineDisperser4n.refuterLoop_eq_iterate: the loop is an iterate ofloopStep, as many times asrefuterRuncounts.Cslib.Circuits.Boolean.AffineDisperser4n.refuterMeasure_initialState: the initial measure is exactly5 n + 7 · C.program.cost binaryB2Cost.Cslib.Circuits.Boolean.AffineDisperser4n.refute_steps: at most5 n + 7 C.sizesteps.Cslib.Circuits.Boolean.AffineDisperser4n.eqns_iterate,Cslib.Circuits.Boolean.AffineDisperser4n.eqns_refuterLoop: equation names are below the number of steps, and below5 n + 7 C.sizeat the end of the run.Cslib.Circuits.Boolean.AffineDisperser4n.nameSet_iterate,Cslib.Circuits.Boolean.AffineDisperser4n.sizes_iterate: names, counts andvarBoundof every state along the run, bounded innandC.size.
Step count #
One iteration of the loop body: applyStep with the chosen step, or S when none applies.
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 #
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.
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 #
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.