Documentation

CslibFrontier.Algorithms.WordRAM.Refuter4n.PackedCases

Packed Cases 3, 4 and 5a of the 4n - 9d refuter #

Cases 3 (partners sharing a child), 4 (a paired parameter in the affine system) and 5a (a non-affine gate on a paired parameter) of the refuter applyStep (Cslib.Circuits.Boolean.AffineDisperser4n) on the packed state PackedState. This is part of the pure layer of the step programs of issue #4322 (Milestone 4); no program and no running time is claimed here.

The operation of a gate as a function of the two members of a pair is read off the truth table of its row (rowPhi, rowPhi_rowOf). Case 4 ends with the packed unit deletion pUnitDelete, whose correctness needs a well-formed state; the intermediate state is valid by Valid.step_pairInSystem_of, under the hypotheses of that lemma. Case 5a is split into the packed successor pAndOnPairStep, which represents State.andOnPairStep whenever the constraints it deletes are constraints at that point (Rep.andOnPairStep), and the packed searches for its arguments, which compute the arguments of applyStep (Rep.pAndOnPair_eq).

Main definitions #

Main results #

The operation of the gate row r with every argument equal to node t replaced by a and every other argument by b.

State.partnersShareChildStep on the packed state, for the pair pr and the shared child H.

Case 3, the first member p of a pair whose members share a child (applyStep of .partnersShareChild p): the packed partnersShareChildStep at the pair of p and the first child of p, if both exist.

Case 3. On a valid represented state, for a parameter p below N, the packed Case 3 represents applyStep of .partnersShareChild p.

Case 4 #

Case 4, a paired parameter p whose first child is an equation e (applyStep of .pairInSystem p): fix the partner of p to its bias, delete the first child of the partner, and unit-delete p through e if p still has a child.

Case 4. On a valid represented state with no degenerate pair and no partners sharing a child, for a parameter p below N not read by the output, the packed Case 4 represents applyStep of .pairInSystem p. The intermediate state is valid by Valid.step_pairInSystem_of, which the packed unit deletion needs.

Case 5a #

otherArg on a gate row: the argument other than p when both arguments are names, and p otherwise.

fixArg on a gate row: a value of the argument w making the gate constant, with that constant, read off the truth table.

Case 5a, the non-affine gate G reading the paired parameter p (applyStep of .andOnPair G p): pAndOnPairStep with the arguments of applyStep computed on the packed state, if p is paired and its partner has a child.

theorem Cslib.Algorithms.WordRAM.Refuter4n.Rep.andOnPairStep {n N E : ℕ} {P : PackedState} {S : Circuits.Boolean.AffineDisperser4n.State n} {f : BooleanFunction n} (h : Rep N E P S) (hS : Circuits.Boolean.AffineDisperserCore.State.Valid S f) {G : ℕ} (hG : G ∈ S.gates) {pr : Circuits.Boolean.AffineDisperser4n.ZeroPair} (hpr : pr ∈ S.pairs) {p w : ℕ} (hw : w < N) {prw : Option Circuits.Boolean.AffineDisperser4n.ZeroPair} (hprw : ∀ (q : Circuits.Boolean.AffineDisperser4n.ZeroPair), prw = some q → q ∈ S.pairs) (b c : Bool) {Hr : ℕ ⊕ ℕ} (hHr : Sum.elim (fun (x : ℕ) => x ∈ S.gates) (fun (x : ℕ) => x ∈ S.eqns) Hr) (hHrG : Hr ≠ Sum.inl G) {K : ℕ} {Hw' : ℕ ⊕ ℕ} (hK : ∀ (q : Circuits.Boolean.AffineDisperser4n.ZeroPair), prw = some q → b ≠ q.bias w → K ∈ S.gates ∧ K ≠ G ∧ (Hr = Sum.inl K → Sum.elim (fun (x : ℕ) => x ∈ S.gates) (fun (x : ℕ) => x ∈ S.eqns) Hw' ∧ Hw' ≠ Sum.inl G ∧ Hw' ≠ Sum.inl K)) :
Rep N E (pAndOnPairStep N G pr p w prw b c Hr K Hw' P) (S.andOnPairStep G pr p w prw b c Hr K Hw')

The Case 5a successor. On a valid represented state, the packed andOnPairStep represents State.andOnPairStep for a gate G, a pair pr of the state, a name w below N and prw a pair of the state if any, when every constraint it deletes is a constraint at that point: Hr is a constraint other than G, and in the branch that also deletes the reader K of G, K is a gate other than G and the last deleted constraint is neither G nor K.