Documentation

CslibFrontier.Computability.Circuit.Arithmetic.Separation.GroupProgram.Script

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

This file has the syntax, its encodings as trees, and the costs of the instructions: definitions, with @[simp] equations for the encodings.

Main definitions #

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.

  • flags : List (List ℕ)

    For every tape, in a fixed order of the tapes, the flags of the partners in reverse order: 0 if the partner gets no letter of the tape, 1 if it gets some, anything else if it may get any number.

  • writeKeys : List (List (List Bool))

    For every partner, the keys of the units of the string to the partner.

  • readKeys : List (List (List Bool))

    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 q to the state with number q'.

  • 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 j of a list of roles of laws, for t units. slots: for every slot the keys of the units given, in reverse order (bits missing to t units are read as zeros); keys: for every channel the keys of the new units.

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 writing units of ub bits at the keys of lists of keys.

The cost of an instruction, for T steps of the automaton and units of ub bits.