Cutting the letters of a tape into segments #
A base party of the evaluator of [Ant26] writes on every tape a list of letters, and
the letters are cut into one segment for every partner. The letters come in reverse order, and
the segments are made from the last partner to the first one: the letters of the partner at hand
are taken one at a time, then its segment is closed and the next partner begins. Every segment is
closed by a separator and stands in front of the string that the partner has from the later tapes.
A flag of every partner says whether it gets nothing, something or anything (flagAllows).
One formula of the tree machine makes all cuts of the letters of a list of tapes, one tape after
the other, as a weighted list in which every cut has the weight 1.
Main definitions #
flagAllows: whether a flag allows what has been taken.cuts,cutsClose,cutsTake: all ways to cut the remaining letters.tapeCuts: all ways to cut the letters of a tape.CutItem,CutItem.enc: the flags and the letters of a tape, and their encoding.cutTape,cutTapes: the weighted lists of the cuts of one tape and of a list of tapes.
Main results #
length_le_of_mem_cutTapes: the number of strings of a cut.exists_formula_cutTapes: one formula makes the cuts of a list of tapes.
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.Seg and Nc.Grp.Base.
Whether a flag allows a segment: the flag 0 that nothing has been taken, the flag 1 that
something has been taken, and every other flag anything.
All ways to cut the letters rest with the separator sep. The partner at hand has the flag
f, tk says whether a letter has been taken for it, and cur is its string so far; fs and
as are the flags and the strings from the later tapes of the partners before it, and out are
the finished strings of the partners behind it.
A CutItem as a tree.
Every outcome of the cuts of a list of tapes has at most N strings if every tape has at most
N partners and there are at most N strings at the beginning.
The program #
One formula makes the cuts of a list of tapes. Its argument is the pair of the list of the items of the tapes, the last tape first, and the strings of the partners from the later tapes.