Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.Dealing.Instances

One cut by the dealing program, with numbers #

The pieces of the dealing program of [Ant26] are the instances of a formula GROUP at the scripts of the groups. If GROUP evaluates the groups of all plans at their scripts in time linear in groupTime (EvaluatesGroups, which the program GROUP does: exists_evaluatesGroups), then the dealing program cuts plain sums with explicit numbers (isCut_dealProgram_of_evaluatesGroups): the pieces take κ times a bound tB of the time of GROUP at the scripts, they have size at most X + 1 + 200 * X ^ 3 * Lc plus the letters of the input parts of the group and the bits of its cut units, there are mm of them, and the dealing program takes dealTime steps.

The codes of the dealing program have Lc bits if 2 ^ Lc bounds the numbers of the names (Name.card_eq), of the digits, of the row data and of the keys (Codes.exists_lengthBounds).

Main definitions #

Main results #

References #

From VP ≠ VNP over every field [Ant26], Appendix J.3: the proof of Theorem J.3 (pp. 53–54: the evaluator, and the program G, whose script has (s/k + M/k)Λ input symbols, τΛ/v^300 bits of cut packets and v^O(1) names and instructions). Ported from the source module Nc.Dl.Inst (thm_onecut_program, GroupOK, CodesLe, exists_codes) and the numbers of names of Nc.Dl.GrpCost (card_nm).

Codes #

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.Name.card_eq (K E pS : ℕ) (S N U : Type) [Fintype S] [Fintype N] [Fintype U] :
Fintype.card (Name K E pS S N U) = 1 + K + (K + 1) + 3 * (Fintype.card (Option S) * (K + K)) + 3 * ((K + K) * (K + K)) + (K + K) + 3 * Fintype.card N + pS + E + (E + 1) + 2 * Fintype.card U

The number of the names of the values of the dealing program.

structure Cslib.Circuits.Arithmetic.Separation.Dealing.Codes.LengthBounds {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) (Lc : ℕ) :

Codes of the dealing program of length at most Lc: of the names, the digits, the row data, the keys of the cells and the keys of the second copies, where no two keys are equal.

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.Codes.exists_lengthBounds {F : Type} [CommSemiring F] {K A' E U0 U1 D pS : ℕ} {M : Cut.Moves F (K + K + A') E} {S : Type} [Fintype S] {Lc : ℕ} (hname : Fintype.card (PlanName S M U0 U1 pS) ≤ 2 ^ Lc) (hD : D ≤ 2 ^ Lc) (hrow : Fintype.card (Cut.RowData (K + K)) ≤ 2 ^ Lc) (hkey : Fintype.card (GroupProgram.Cell M U0 U1 ⊕ Fin (K + K) × Fin U0) ≤ 2 ^ Lc) :
∃ (C : Codes S M U0 U1 D pS), C.LengthBounds Lc

Codes of Lc bits. If 2 ^ Lc bounds the numbers of the names, the digits, the row data and the keys, the dealing program has codes of length at most Lc with distinct keys.

The program GROUP #

def Cslib.Circuits.Arithmetic.Separation.Dealing.EvaluatesGroups {F : Type} [CommRing F] {Γ S Q : Type} [Fintype Γ] [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype Q] [DecidableEq Q] {c : ℕ} (θ : List Bool → F) (mu : Tape.Letter S Unit Γ → Matrix Q Q F) (cb : Option Γ → Fin c → Bool) (kinds : List ((L : Cut.Law F) × L.Role)) (qn : Q → ℕ) (GROUP : Interpreter.Fm) (κ : ℕ) :

What GROUP does. The formula GROUP, with the constant κ, evaluates the groups of all plans at their scripts, for the automaton mu, the code cb of its letters, the list kinds of roles of laws and the numbers qn of the states: at the script of a group, with binary numbers bT of steps and bub of bits of a unit and with distinct keys, its plain sum takes at most κ times groupTime steps and is the value of the group, if units have bits, the plan is cap-bounded, the input parts have at most bT letters, the row data of the rows that are not empty are ordered, and kinds lists the roles.

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.exists_evaluatesGroups {F : Type} [CommRing F] {Γ S Q : Type} [Fintype Γ] [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype Q] [DecidableEq Q] {c : ℕ} {θ : List Bool → F} (mu : Tape.Letter S Unit Γ → Matrix Q Q F) (cb : Option Γ → Fin c → Bool) (kinds : List ((L : Cut.Law F) × L.Role)) (hmu : ∀ (z : Tape.Letter S Unit Γ) (q q' : Q), ∃ (e : Interpreter.WE), Interpreter.WE.val θ e = mu z q q') (htab : ∀ z ∈ kinds, ∀ (i : z.fst.Index) (v : { e : z.fst.Slot // Play.Holds z.fst.slotEnd z.snd e } → Bool) (g' : (ν : { ν : z.fst.Channel // Play.Holds z.fst.channelEnd z.snd ν }) → BitString (z.fst.length i ↑ν)), ∃ (e : Interpreter.WE), Interpreter.WE.val θ e = z.fst.table z.snd i v g') :
∃ (GROUP : Interpreter.Fm) (κ : ℕ), EvaluatesGroups θ mu cb kinds (fun (z : Q) => ↑((Fintype.equivFin Q) z)) GROUP κ

The program GROUP evaluates the groups, for an automaton mu and roles kinds whose entries are values of formulas, with the numbers of the states in a fixed enumeration.

One cut #

theorem Cslib.Circuits.Arithmetic.Separation.Dealing.isCut_dealProgram_of_evaluatesGroups {F : Type} [CommRing F] {Γ S Q : Type} [Fintype Γ] [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype Q] [DecidableEq Q] {K A' E U0 U1 D nI pS mm c : ℕ} {M : Cut.Moves F (K + K + A') E} {P : Cut.Plan M U0 U1} {grp : PlanInput M U0 U1 → Fin (K + K + A') → Fin mm} {C : Codes S M U0 U1 D pS} {θ : List Bool → F} {mu : Tape.Letter S Unit Γ → Matrix Q Q F} {cb : Option Γ → Fin c → Bool} {kinds : List ((L : Cut.Law F) × L.Role)} {qn : Q → ℕ} {tg : M.Role → ℕ} {GROUP : Interpreter.Fm} {κ : ℕ} {bT bub nl nub : List Bool} {hD : 1 < D} {hmm : mm ≤ D} {bt : Bool → Γ} {i e : Q} {hU0 : U0 < D} {hU1 : U1 ≤ D} {X Lc T ub ℓ τ s cap bd ιb tB : ℕ} (tab : SlpTab P grp D nI pS) [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)] (hK : 0 < K) (H : C.SizeBounds qn tg X Lc) (hkey : Function.Injective (Sum.elim C.key C.dkey)) (hGR : EvaluatesGroups θ mu cb kinds qn GROUP κ) (hkind : ∀ (r : M.Role), kinds[tg r]? = some ⟨M.law r.fst, r.snd⟩) (hP : P.Ok cap) (hT : BitString.binaryValue bT = T) (hub : BitString.binaryValue bub = ub) (hub0 : 0 < ub) (hnl : BitString.lsbValue nl = ℓ) (hnub : BitString.lsbValue nub = ub) (hℓ : ℓ ≤ T) (hlbT : bT.length ≤ Lc) (hlbub : bub.length ≤ Lc) (hlnl : nl.length ≤ Lc) (hlnub : nub.length ≤ Lc) (hU : ∀ (z : Interpreter.Tree), z.size ≤ s → Interpreter.Plain θ τ z → (Tape.runVal mu i e (K * T) fun (x : Unit) => List.map bt (Interpreter.tbits z)) = Interpreter.pv θ z) (hval : ∀ (z : Interpreter.Tree), z.size ≤ s → (Tape.runVal mu i e (K * T) fun (x : Unit) => List.map bt (Interpreter.tbits z)) = ∑ 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 ∈ Play.common none (Play.cutUnits (Cut.UnitId.holder M.channelParty) (grp { counts := n, outcomes := o }) (P.cur n o E)), ∏ g : Fin mm, P.groupValue mu T cb q (Cut.parts ℓ (List.map bt (Interpreter.tbits z))) ρ n o (grp { counts := n, outcomes := o }) g b else 0 else 0 else 0 else 0) (hbd : ∀ (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1), tab.Valid n → (∀ (x : Fin E), P.Good n o x) → ∀ (g : Fin mm), (Finset.filter (OneIn (Cut.UnitId.holder M.channelParty) (grp { counts := n, outcomes := o }) g) (P.cur n o E)).card ≤ bd) (hbase : ∀ (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1), tab.Valid n → (∀ (x : Fin E), P.Good n o x) → ∀ (g : Fin mm), {p : Fin (K + K) | grp { counts := n, outcomes := o } (Fin.castAdd A' p) = g}.card ≤ ιb) (hcount : ∀ (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1), tab.Valid n → (∀ (x : Fin E), P.Good n o x) → ∀ (y : Fin E), P.count n o y ≤ X) (hgp : GROUP.code.size ≤ X) (htB : ∀ (q : Fin (K + 1) → Q) (x : Fin K → List Γ) (ρ : Option S → Fin (K + K) → Cut.RowData (K + K)) (n : Fin (K + K) → Fin (K + K) → Fin (U0 + 1)) (o : M.Channel → Fin U1) (g : Fin mm) (b : Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent ub), (∀ (κ : Fin K), (x κ).length ≤ T) → tab.Valid n → (∀ (x : Fin E), P.Good n o x) → GroupProgram.groupTime bT bub (GroupProgram.groupScript qn cb P q x ρ n o (grp { counts := n, outcomes := o }) g C.key C.dkey tg b) ≤ tB) :
Cut.IsCut θ τ s (κ * tB) (X + 1 + (200 * X ^ 3 * Lc + ιb * ℓ * (4 * c + 2) + bd * (4 * ub))) mm (dealTime Lc X K mm ub (mm * bd) s) (C.dealProgram tab qn tg bT bub nl nub hD hmm GROUP.code cb bt i e hU0 hU1).code

One cut, with numbers. Let X and Lc bound the numbers and the lengths of the codes of the dealing program, with distinct keys, let GROUP evaluate the groups with the constant κ, let the bits bT, bub, nl, nub of the number T of steps of a block, the number ub of bits of a unit and the length ℓ ≤ T of a part have at most Lc digits, and let the universal automaton and the formula of the pieces give the plain sums of arguments of size at most s, as in isCut_dealProgram. If every choice that passes the checks has at most bd units with one holder in each group, at most ιb base parties in each group, moves of at most X units each, and a time of GROUP at most tB at every script with parts of at most T letters, and the code of GROUP has size at most X, then the dealing program cuts (τ, s) into (κ * tB, X + 1 + (200 * X ^ 3 * Lc + ιb * ℓ * (4 * c + 2) + bd * (4 * ub))) with at most mm pieces in dealTime Lc X K mm ub (mm * bd) s steps.