Documentation

CslibFrontier.Algorithms.WordRAM.Refuter4n.PackedApply

The packed step of the 4n - 9d refuter #

pApplyStep performs a step StepChoice of the refuter applyStep (Cslib.Circuits.Boolean.AffineDisperser4n) on the packed state PackedState, dispatching to the packed steps of PackedStep, PackedAffineRep and PackedCases. On a valid represented state, at every step that chooseStep? takes, it represents applyStep (Rep.pApplyStep). This is the packed version of applyStep for issue #4322 (Milestone 4); the choice of the step is not packed here, and no program and no running time is claimed.

The side conditions of the packed steps (names below N, constraints that are deleted being constraints, the hypotheses of Valid.step_pairInSystem_of in Case 4, a fresh first argument in pair creation, and the deleted constraints of Case 5a) are discharged from the facts of the chosen step (chooseStep?_stepFacts) and validity. In Case 5a, Hr ≠ .inl G, Hw' ≠ .inl G and, when Hr = .inl K, Hw' ≠ .inl K are State.Valid.child_partner_ne_of_reads and State.Valid.andOnPair_child_ne, as in State.Valid.step_andOnPair_of, and K ≠ G is Valid.not_reads_self. The fresh equation name of a move is assumed below E, as in Rep.applyStep_moveAffine.

Main definitions #

Main results #

The arguments of the step c are within range: gate names and parameters below N, equation names below E, and for a move the fresh equation name pFreshEqn N E P below E. A step chosen by chooseStep? on a valid represented state satisfies them (Rep.stepArgsOK).

On a valid represented state, the arguments of every step c chosen by chooseStep? are within range, when the fresh equation name of S is below E (used only by a move).

The packed step. On a valid represented state, at every step c chosen by chooseStep?, pApplyStep represents applyStep S c, when the fresh equation name of S is below E (used only by a move). The ranges of the arguments are those of Rep.stepArgsOK.