Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Dealing.AllRuns

All runs of the dealing program #

After its checks (Codes.dealSteps), the dealing program of [Ant26] guesses the contents of the units that are cut between two groups (Codes.contentSteps): ub bits for a cut unit and nothing for the others. The sum over the states after all its steps is the sum over the choices that pass the checks and over the contents that are present exactly for the cut units, at states with the values of the end (Final) that the templates of the scripts read (sum_execAll_allSteps).

Main definitions #

Main results #

References #

From VP ≠ VNP over every field [Ant26], Appendix J.3: the program G in the proof of Theorem J.3 (p. 54: it then guesses the contents of the cut packets). Ported from the source modules Nc.Dl.Run2 (the contents) and Nc.Dl.Total.

noncomputable def Cslib.Circuits.Arithmetic.Separation.Dealing.Codes.contentSteps {F : Type} [CommSemiring F] {K A' E U0 U1 D pS : ℕ} {M : Cut.Moves F (K + K + A') E} {S : Type} (C : Codes S M U0 U1 D pS) :

Phase 9: guess the contents of the cut units.

The contents of the cut units #

All runs #

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.sum_execAll_allSteps {F : Type} [CommSemiring F] {K A' E U0 U1 D nI pS mm : ℕ} {M : Cut.Moves F (K + K + A') E} {S : Type} [Fintype S] [DecidableEq S] (C : Codes S M U0 U1 D pS) {P : Cut.Plan M U0 U1} {grp : PlanInput M U0 U1 → Fin (K + K + A') → Fin mm} (tab : SlpTab P grp D nI pS) {Q : Type} [Fintype Q] [DecidableEq Q] (pt : Fin K → Interpreter.Tree) (qn : Q → ℕ) (hU0 : U0 < D) (hU1 : U1 ≤ D) [DecidablePred tab.Valid] [(n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) → (o : M.Channel → Fin U1) → (x : Fin E) → Decidable (P.Good n o x)] {ub : ℕ} (hK : 0 < K) (i e : Q) :
∃ (st : (Fin (K + 1) → Q) → (Option S → Fin (K + K) → Cut.RowData (K + K)) → (Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) → (M.Channel → Fin U1) → (Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent ub) → PlanName S M U0 U1 pS → Interpreter.Tree), (∀ (q : Fin (K + 1) → Q) (ρ : Option S → Fin (K + K) → Cut.RowData (K + K)) (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1) (b : Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent ub), Final C tab qn pt q ρ n o b (st q ρ n o b)) ∧ ∀ (B : Type) [inst : CommRing B] (Φ : (List Bool → Interpreter.Tree) → B), (List.map Φ (Interpreter.execAll ub (C.dealSteps tab qn i e hU0 hU1 ++ C.contentSteps) (Function.extend C.name (initialState pt) fun (x : List Bool) => Interpreter.Tree.nil))).sum = ∑ q : Fin (K + 1) → Q, if q 0 = i ∧ q (Fin.last K) = e then ∑ ρ : Option S → Fin (K + K) → Cut.RowData (K + K), if Cut.ValidRows ρ then ∑ n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1), if tab.Valid n then ∑ o : M.Channel → Fin U1, if ∀ (x : Fin E), P.Good n o x then ∑ b : Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent ub, if ∀ (u : Cut.UnitId (K + K) U0 M.Channel U1), b u ≠ none ↔ u ∈ Play.cutUnits (Cut.UnitId.holder M.channelParty) (grp { counts := n, outcomes := o }) (P.cur n o E) then Φ (Function.extend C.name (st q ρ n o b) fun (x : List Bool) => Interpreter.Tree.nil) else 0 else 0 else 0 else 0 else 0

The runs of the dealing program. There are states st q ρ n o b with the values of the end (Final) such that the sum over the states after all steps of the dealing program, from the parts pt of the input, is the sum over the states q between the blocks from i to e, the valid row data ρ, the valid numbers of units n, the good outcomes o and the contents b of the units that are present exactly for the units cut between two groups, at the states st q ρ n o b.