The templates of the scripts #
In the end, the dealing program of [Ant26] writes the script of every group by
filling a template (Interpreter.Tm) from its state (Codes.scriptTm). The template lists, in
the order of groupScript, the instructions of the base parties, of the roles and of the end; an
instruction is in the script if the group of its party, a step of the straight-line program, has
the number of the group, and a unit is compared in the end if it is current. If the state has the
values that the dealing program computes (Final), the filled template is the script of the group
(expand_scriptTm). The templates of lists and of conditional lists expand to lists
(expand_listTm, toList_expand_ifTm).
Main definitions #
listTm,catTm,ifTm: templates of lists, of concatenations and of conditional lists.Codes.valueTm,Codes.bodyTm,Codes.baseTm,Codes.basesTm,Codes.slotTm,Codes.roleTm,Codes.fixedTm,Codes.endTm,Codes.scriptTm: the templates of the parts of a script, and of the script of a group.Final: the values of the dealing program in the end.
Main results #
expand_scriptTm: the template of the script of a group gives the script of the group.
References #
From VP ≠ VNP over every field [Ant26], Appendix J.3: the program G in the proof
of Theorem J.3 (p. 54: it writes for each piece its script). Ported from the source module
Nc.Dl.Scr.
A template of a list: its expansion is the list of the expansions.
A template of a concatenation: its expansion is the concatenation of the expansions, which are lists.
The template a if the value at p is t, and the empty list otherwise.
The template of the value at a name.
The template of the instructions of the base party p (baseInstructions).
The template of the keys at the party a of the units given at the slot z, in reverse
order: the units whose step of givenGate is the digit 1.
The template of the instruction of the role r (roleInstruction), number tg r in a list
of roles of laws.
The template of the comparison of the contents at the key k with the contents of the
unit u.
The template of the instructions of the end for the unit u and the group g
(endInstructions).
The template of the script of the group g (groupScript), with the binary numbers bT of
steps and bub of bits of a unit.
The values of the dealing program in the end that the templates of the scripts read, for the
parts pt of the input, the states q between the blocks (numbered by qn), the row data ρ,
the numbers of units n, the outcomes o and the contents b of the units.
- content (u : Cut.UnitId (K + K) U0 M.Channel U1) : st (Name.content u) = Interpreter.Tree.ofBits (b u).bits
The script of a group. If the state by names st has the values of the dealing program
in the end (Final), and the parts pt of the input are the codes of the letters of x, then
the template of the script of the group g gives its script groupScript.