Scripts of the program GROUP #
The program GROUP of the evaluator of [Ant26] reads a script: the number T of
steps of the automaton and the number ub of bits of a unit, both in binary, and a list of
instructions. The instructions work on a trie whose keys are bit lists and whose contents are the
units, lists of bits. An instruction is
- a block or an input part of a base party (
Instruction.block,Instruction.input), with aBodythat says which flags the cuts of the letters of every tape obey and at which keys the units of the strings to and from the partners are written; - a comparison of the contents at two keys, or of the contents at a key with a constant
(
Instruction.agree,Instruction.fixed); - a role of a law (
Instruction.role), with the keys of the units at its slots and of the units that it writes on its channels.
This file has the syntax, its encodings as trees, and the costs of the instructions: definitions,
with @[simp] equations for the encodings.
Main definitions #
Body,Instruction: the syntax.wordsEnc,keysEnc,Body.enc,Instruction.enc,scriptEnc: the encodings as trees.putCost,Body.cost,Instruction.cost: the costs.
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 module Nc.Grp.Script (its syntax half).
What a base party writes and reads.
For every tape, in a fixed order of the tapes, the flags of the partners in reverse order:
0if the partner gets no letter of the tape,1if it gets some, anything else if it may get any number.For every partner, the keys of the units of the string to the partner.
For every partner, the keys of the units of the string from the partner.
The instructions of a script.
- block (q q' : ℕ) (B : Body) : Instruction
A block of the automaton from the state with number
qto the state with numberq'. - input (part : List (List Bool)) (B : Body) : Instruction
An input part: the codes of its letters, in reverse order.
- agree (k k' : List Bool) : Instruction
The contents at two keys agree.
- fixed (k w : List Bool) : Instruction
The contents at a key are
w. - role (j t : ℕ) (slots keys : List (List (List Bool))) : Instruction
The role with number
jof a list of roles of laws, fortunits.slots: for every slot the keys of the units given, in reverse order (bits missing totunits are read as zeros);keys: for every channel the keys of the new units.
A list of bit lists as a tree.
A list of lists of keys as a tree.
A body as a tree.
An instruction as a tree: its number, which for a role is 4 plus the number of the role,
and its data.
The argument of GROUP: T and ub in binary (most significant bit first), and the
instructions.
The cost of a body.
The cost of an instruction, for T steps of the automaton and units of ub bits.