The values of the dealing program and the tables of its steps #
The dealing program of [Ant26] (the program G in the proof of Theorem J.3) guesses
the states between the blocks, the row data, the numbers of units and the outcomes of the moves of
a plan, computes from them by a straight-line program what the plan does, checks the guesses, and
writes the script of every group. Its values have names (Name), which an injective code turns
into paths (Codes). The numbers of units and the outcomes (PlanInput) are the inputs of the
straight-line program (SlpTab), whose steps compute, as digits, which units are current, cut or
given at a slot, how many units every move uses, whether the outcomes are good and the numbers of
units valid, and the group of every party. The operations on digits are steps of the interpreter
that look their results up in tries (Codes.unaryStep, Codes.binaryStep, Codes.constStep).
This file also has the trees of the values that the scripts of the groups read: the flags of a
row (flagsTree), the keys of the units of the strings between two base parties
(Codes.writeKeysTree, Codes.readKeysTree), the comparisons of the two copies of the units
from a base party to itself (Codes.selfAgreeTree), and the keys of the new units of a channel
(Codes.newKeysTree).
Main definitions #
Name,PlanName: the names of the values of the dealing program, in general and for a plan.PlanInput: the numbers of units at the beginning and the outcomes of the moves.SlpTab,SlpTab.conditionGate: a straight-line program that computes what the dealing program needs of a plan, and its steps of the conditions.Codes: codes of the names, the digits and the row data, and the keys of the cells.Codes.digitTree,Codes.unaryStep,Codes.binaryStep,Codes.constStep: digits as trees, and the operations on them.flagsTree,Codes.writeKeysTree,Codes.readKeysTree,Codes.selfAgreeTree,Codes.newKeysTree: the values that the scripts read.
Main results #
Codes.digitTree_injective: digits are determined by their trees.Codes.exec_unaryStep,Codes.exec_binaryStep,Codes.exec_constStep: the operations.
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.Tab and the values of Nc.Dl.Run.
The names of the values of the dealing program, for K blocks on the tapes S, E moves
with the channels N and the units U, and a straight-line program of pS steps.
- empty {K E pS : ℕ} {S N U : Type} : Name K E pS S N U
The empty value, which the tables of the operations start from.
- part {K E pS : ℕ} {S N U : Type} (κ : Fin K) : Name K E pS S N U
The part
κof the input. - state {K E pS : ℕ} {S N U : Type} (a : Fin (K + 1)) : Name K E pS S N U
The state
abetween the blocks. - flags {K E pS : ℕ} {S N U : Type} (s : Option S) (p : Fin (K + K)) : Name K E pS S N U
The flags of the partners of the party
pin its row on the tapes. - rowData {K E pS : ℕ} {S N U : Type} (s : Option S) (p : Fin (K + K)) : Name K E pS S N U
The row data of the party
pon the tapes. - rowValid {K E pS : ℕ} {S N U : Type} (s : Option S) (p : Fin (K + K)) : Name K E pS S N U
Whether the row data of
ponsare those of a staircase. - writeKeys {K E pS : ℕ} {S N U : Type} (a b : Fin (K + K)) : Name K E pS S N U
The keys of the copies at
aof the units fromatob. - readKeys {K E pS : ℕ} {S N U : Type} (a b : Fin (K + K)) : Name K E pS S N U
The keys of the copies at
bof the units fromatob. - selfAgree {K E pS : ℕ} {S N U : Type} (a : Fin (K + K)) : Name K E pS S N U
The comparisons of the two copies of the units from
ato itself. - countDigit {K E pS : ℕ} {S N U : Type} (a b : Fin (K + K)) : Name K E pS S N U
The number of units from
atob, as a digit. - outcomeDigit {K E pS : ℕ} {S N U : Type} (ν : N) : Name K E pS S N U
The outcome of the channel
ν, as a digit. - newKeys {K E pS : ℕ} {S N U : Type} (ν : N) (d : Bool) : Name K E pS S N U
The keys of the copies of the new units of
νat its endd. - gate {K E pS : ℕ} {S N U : Type} (k : Fin pS) : Name K E pS S N U
The value of step
kof the straight-line program. - count {K E pS : ℕ} {S N U : Type} (x : Fin E) : Name K E pS S N U
The number of units that the move
xuses. - condition {K E pS : ℕ} {S N U : Type} (c : Option (Fin E)) : Name K E pS S N U
A condition: the numbers of units are valid (
none), or the outcome of a move is good. - isCut {K E pS : ℕ} {S N U : Type} (u : U) : Name K E pS S N U
Whether the unit
uis cut. - content {K E pS : ℕ} {S N U : Type} (u : U) : Name K E pS S N U
The contents of the unit
u.
Instances For
The names of the values of the dealing program for the moves M, with at most U0 units of a
string at the beginning and at most U1 units of a channel.
An argument of the functions of a plan: the numbers of units at the beginning and the outcomes of the moves.
The number of units of the string from a base party to a base party.
The outcome of a channel.
A straight-line program over the digits Fin D, with nI inputs and pS steps, that computes
from a PlanInput what the dealing program needs of the plan P and the groups grp of the
parties: the input i reads the number of units of a pair of base parties or the outcome of a
channel (input i), and dedicated steps compute, as 0/1, whether a unit is current in the end,
cut between two groups, or given at a slot, compute the number of units of a move and the group of
a party, and are 1 exactly if an outcome is good or if the numbers of units are valid
(Valid).
The coordinate that an input reads.
The inputs, as digits.
The function that a step computes.
Whether a unit is current in the end.
Whether a unit is cut: current in the end, with holders in two groups.
- fn_cutGate (u : Cut.UnitId (K + K) U0 M.Channel U1) (x : PlanInput M U0 U1) : ↑(self.fn (↑(self.cutGate u)) x) = if u ∈ Play.cutUnits (Cut.UnitId.holder M.channelParty) (grp x) (P.cur x.counts x.outcomes E) then 1 else 0
Whether a unit is given at a slot.
The number of units that a move uses.
The numbers of units that the dealing program accepts.
- validGate : Fin pS
Whether the numbers of units are valid.
Whether the outcome of a move is good.
The group of a party.
The step of a condition: the validity of the numbers of units for none, and whether the
outcome of the move y is good for some y.
Injective codes, as bit lists, of the names, of the digits Fin D and of the row data, and
the keys of the cells and of the second copies of the units from a base party to itself.
The code of a name.
- name_injective : Function.Injective self.name
The code of a digit.
- digit_injective : Function.Injective self.digit
The code of row data.
- rowData_injective : Function.Injective self.rowData
The key of a cell.
The key of the second copy of a unit from a base party to itself.
The flags of the partners in a row with the data d, as in baseBody: the last partner
first.
A digit as a tree.
The step dst := f d for the digit d at the name x.
The step dst := f d d' for the digits d at x and d' at y.
The step dst := t.
The keys of the copies at a of the first n units of the string from a to b.
The keys of the copies at b of the first n units of the string from a to b: the keys of
the second copies if a = b.
The comparisons of the two copies of the first n units from a to itself, as in
baseInstructions.
The keys of the copies at the end d of the channel ν of its new units, for the outcome
j.