States with named values #
The dealing program of [Ant26] keeps its values in a state of the interpreter, a
function from paths to trees. A value with the name x sits at the path nm x, for an injective
code nm of the names, so a state by names st is the state Function.extend nm st fun _ => .nil,
which is empty at the paths that code no name. The steps of the interpreter act on such states by
names: an operation and a guess write one name (exec_op, exec_bits), and a pick writes the
names of the option that it chooses (exec_pick). After a list of assignments in which every name
gets one fixed value, the state is known (foldl_assignAll).
The operations of the dealing program look their results up in tries: trieOf code f has the
value f a at the path code a (tget_trieOf).
Main definitions #
optionTree,assignAll: an option of a pick (a list of assignments to names) as a tree, and the state by names after its assignments.trieOf: the trie of a function on a finite type.
Main results #
exec_pick,exec_op,exec_bits: the steps of the interpreter on states by names.foldl_assignAll: the state after assignments that give every name one value.tget_trieOf,size_trieOf_le: the values of a trie of a function, and its size.
References #
From VP ≠ VNP over every field [Ant26], Appendix J.3: the program G in the proof
of Theorem J.3 (p. 54). Ported from the source module Nc.Dl.Names.
An option of a pick, the assignments o of values to names, as a tree: the list of the
pairs of the code of a name and its value.
The state by names after the assignments o, in their order.
The assignments of a list in which every name gets the value w of it.
Assignments of fixed values. Every assignment of the option o i is to a name x of
i (own x = some i), of the value w x, and every name of i is assigned in o i. After the
options of the indices of s, a name of an index of s has its value w x, and every other
name its value in st.
A pick at the name x, whose table lists the options opts at the value of x.
An operation writes the value of its table at the values of x and y to z.
A guess at y of the reversed bit lists of length m, if the value of x is not empty.
The trie with the value f a at the path code a, for every a.
The size of the trie of a function with values of size at most s, for codes of length at
most L.