Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.GroupProgram.Roles

The program of a role #

A role of a law (Cut.Law) is played by the program GROUP of [Ant26] on the units of a trie. The units at the keys of every slot of the role are put together to a stream of bits; the table of the role, read as a transducer (roleTable), runs on the streams for tt * ub steps, guessing an index and the strings on the channels and multiplying by the entries of the table; the string that it emits on every channel, closed by the bit 1, is cut into units, which are written at the keys of the channel (roleSem).

Main definitions #

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); this file formalizes programs of that evaluator, not the theorem. Ported from the source modules Nc.Grp.Role and Nc.Grp.RoleProg.

A term whose value is a, if there is one, and otherwise an arbitrary term.

The slots of a role, as a list.

The channels of a role, as a list.

The position of a slot in slotList.

@[reducible, inline]

What a role guesses in one block: an index of the law and a string on every channel.

noncomputable def Cslib.Circuits.Arithmetic.Separation.GroupProgram.roleTable {A : Type} [CommRing A] (θ : List Bool → A) (L : Cut.Law A) (p : L.Role) :
Fin 1 → (v : Fin (slotList L p).length → Bool) → List (Transducer.Choice 1 (channelList L p).length Bool)

The table of a role as a transducer with one control, an input list for every slot and an output list for every channel: a choice is a RoleChoice, whose weight is a term (termOf) for the entry of the table at the bits read and the guessed strings, and which pushes, on every channel, the label of the index followed by the string on the channel, reversed.

noncomputable def Cslib.Circuits.Arithmetic.Separation.GroupProgram.roleSem {A : Type} [CommRing A] (θ : List Bool → A) (L : Cut.Law A) (p : L.Role) (ub : ℕ) (ct : List Bool → List Bool) (tt : ℕ) (slots keys : List (List (List Bool))) (t : Interpreter.Tree) :

What a role does with a trie whose entry at a key k has the bits ct k: if no unit at the keys of the slots is empty, the transducer of the role runs for tt * ub steps on the streams of the slots, and the strings that it emits, reversed and closed by the bit 1, are written at the keys of the channels; if a unit is empty, nothing.

Streams #

The number of steps and the end #

The role #

theorem Cslib.Circuits.Arithmetic.Separation.GroupProgram.exists_formula_roleSem {A : Type} [CommRing A] {θ : List Bool → A} (L : Cut.Law A) (p : L.Role) :
∃ (F : Interpreter.Fm) (κ : ℕ), ∀ (ub tt : ℕ) (slots keys : List (List (List Bool))) (t : Interpreter.Tree), StoreBound ub t → slots.length = (slotList L p).length → Interpreter.Does θ F ((Interpreter.Tree.num ub).cons (t.cons ((Interpreter.Tree.num tt).cons ((keysEnc slots).cons (keysEnc keys))))) (roleSem θ L p ub (fun (k : List Bool) => (Interpreter.tget k t).path) tt slots keys t) (κ * (tt * (ub + 1) + putCost ub slots + putCost ub keys + 1))

One formula plays a role. Its argument is (num ub, (trie, (num tt, (keys of the slots, keys of the channels)))); the trie holds units of at most ub bits.