Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.GroupProgram.Theorem

The program GROUP at the script of a group #

For a fixed automaton, a fixed code of the letters and a fixed list of roles of laws, one formula of the tree machine is the program GROUP of the evaluator of [Ant26]: at the script of a group (groupScript), its plain sum is the value of the group after the moves of a plan, at a cost linear in the time groupTime of the script, and if it has an accepting run at all, the numbers of units of the base parties of the group are bounded and the outcomes of its roles are possible (exists_group).

Main results #

References #

From VP ≠ VNP over every field [Ant26], Appendix J.3: the evaluator described in the proof of Theorem J.3 (the theorem on p. 53, the evaluator on p. 54). Ported from the source module Nc.Grp.GroupThm.

theorem Cslib.Circuits.Arithmetic.Separation.GroupProgram.exists_group {F : Type} [CommRing F] {θ : List Bool → F} {Γ S Q : Type} [Fintype Γ] [DecidableEq Γ] [Fintype S] [DecidableEq S] [Fintype Q] [DecidableEq Q] {c : ℕ} (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) (κ : ℕ), ∀ {A' K E U0 U1 cap : ℕ} {G : Type} [inst : DecidableEq G] {M : Cut.Moves F (K + K + A') E} (P : Cut.Plan M U0 U1) (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) (grp : Fin (K + K + A') → G) (g : G) (key : Cell M U0 U1 → List Bool) (dkey : Fin (K + K) × Fin U0 → List Bool) (tg : M.Role → ℕ) (bT bub : List Bool) (b : Cut.UnitId (K + K) U0 M.Channel U1 → Cut.UnitContent (BitString.binaryValue bub)), Function.Injective (Sum.elim key dkey) → 0 < BitString.binaryValue bub → P.Ok cap → (∀ (κ : Fin K), (x κ).length ≤ BitString.binaryValue bT) → (∀ (s : Option S) (p : Fin (K + K)), (ρ s p).empty = false → (ρ s p).first ≤ (ρ s p).last) → (∀ (r : M.Role), kinds[tg r]? = some ⟨M.law r.fst, r.snd⟩) → have l := groupScript (fun (z : Q) => ↑((Fintype.equivFin Q) z)) cb P q x ρ n o grp g key dkey tg b; Interpreter.Plain θ (κ * groupTime bT bub l) (GROUP.code.cons (scriptEnc bT bub l)) ∧ Interpreter.pv θ (GROUP.code.cons (scriptEnc bT bub l)) = P.groupValue mu (BitString.binaryValue bT) cb q x ρ n o grp g b ∧ (Interpreter.evl θ GROUP (scriptEnc bT bub l) ≠ [] → (∀ (p : Fin (K + K)), grp (Fin.castAdd A' p) = g → ∑ b : Fin (K + K), (↑(n p b) + ↑(n b p)) ≤ 2 * ((BitString.binaryValue bT + (K + K) * (Fintype.card S + 1)) * c / BitString.binaryValue bub + (K + K))) ∧ ∀ (r : M.Role), grp (M.roleParty r) = g → ∃ (ι : Fin (P.count n o r.fst * BitString.binaryValue bub) → (M.law r.fst).Index), ∀ (ν : (M.law r.fst).ChannelAt r.snd), ↑(o ⟨r.fst, ↑ν⟩) = (∑ k : Fin (P.count n o r.fst * BitString.binaryValue bub), ((M.law r.fst).labelLength + (M.law r.fst).length (ι k) ↑ν)) / BitString.binaryValue bub)

The program GROUP. For an automaton mu whose entries are values of formulas, a code cb of its letters and a list kinds of roles of laws whose tables are values of formulas, one formula GROUP and one constant κ work for every plan P and every group g: at the script of the group, with binary numbers bT of steps and bub of bits of a unit, the plain sum of GROUP takes time at most κ times groupTime and is the value of the group, and if GROUP has an outcome there, every base party of the group has at most twice the units that its letters allow and the outcome of every role of the group is possible.