Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.GroupProgram.Units

Writing the units of strings into a trie #

The program GROUP of [Ant26] keeps the units in a trie (Interpreter.tset, Interpreter.tget), whose keys are bit lists. A string, closed by a final bit 1, is cut into units of ub bits, the last one filled up with zeros (padTake), which are written at given keys (putUnits); the number of keys must be the number of units, otherwise nothing is written. Several strings are written one after the other (putStrings).

One formula of the tree machine writes several strings, at a cost linear in the number of keys, the length of the keys and ub (putCost).

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.PutDef, Nc.Grp.Put and Nc.Grp.GroupProg.

The first ub bits of a string, filled up with zeros.

Write the units of the string r at the keys: every key gets the next ub bits, filled up with zeros (padTake); the result is empty if the string runs out before the keys or the keys before the string.

Write the strings strs at the lists of keys kss, one after the other; a missing string is empty.

Every entry of the trie t is a list of at most ub bits.

The programs #

theorem Cslib.Circuits.Arithmetic.Separation.GroupProgram.exists_formula_putStrings {A : Type} [CommRing A] {θ : List Bool → A} :
∃ (F : Interpreter.Fm), ∀ (ub : ℕ) (kss : List (List (List Bool))) (strs : List (List Bool)) (t : Interpreter.Tree), Interpreter.Does θ F ((Interpreter.Tree.num ub).cons ((keysEnc kss).cons ((wordsEnc strs).cons t))) (List.map (fun (x : Interpreter.Tree) => (1, x)) (putStrings ub kss strs t)) (600 * (putCost ub kss + 1))

One formula writes several strings. Its argument is (num ub, (lists of keys, (strings, trie))).