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 #
padTake: the firstubbits of a string, filled up with zeros.putUnits,putStrings: write the units of one string and of several strings.StoreBound: every entry of a trie is a list of at mostubbits.
Main results #
StoreBound.nil,StoreBound.tset,StoreBound.tget,StoreBound.of_mem_putStrings: the bound on the units holds for the empty trie and is kept by writing.exists_formula_putStrings: one formula writes several strings.
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.
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 entries of a bounded trie are bit lists.
The programs #
One formula writes several strings. Its argument is (num ub, (lists of keys, (strings,
trie))).