Moves, units and plans #
The play of the cutting argument of [Ant26] (Appendix H.2 and Appendix J; module
Nc.G.Defs) is run by moves. A move has a law (Cut.Law) and a party for every role of the
law (Cut.Moves). In a move, units are given at every slot of the law (a slot given fewer units
than the move uses reads zeros after them; a move whose given units are not all present
contributes zero), and the strings on a channel of the law, a label and the string of the law
for every bit, are cut into new units.
Units have names (Cut.UnitId): the initial units of the strings between two base parties, and
the new units of the channels of the moves. A plan (Cut.Plan) says which units are given at
every slot and how many units a move uses, as functions of the numbers of initial units and of
the outcomes of the earlier moves; an outcome gives the number of units of every channel.
Main definitions #
Cut.Moves, withCut.Moves.Role,Cut.Moves.Slot,Cut.Moves.Channel, the roles and parties at the endsCut.Moves.slotRole,Cut.Moves.channelRole,Cut.Moves.roleParty,Cut.Moves.slotParty,Cut.Moves.channelParty, andCut.Moves.setOutcome.Cut.UnitId,Cut.UnitId.holder,Cut.UnitId.index,Cut.UnitId.count,Cut.UnitId.list: names of units, their two holders, their number in their string, the number of units of that string, and all units in a fixed order.Cut.initialUnits,Cut.newUnits: the units at the beginning, and those made by a move.Cut.slotBits,Cut.ChannelOk,Cut.roleTable: the bits given at a slot, the condition on the copies of the new units of a channel, and the table of a role of a move.Cut.Plan, withCut.Plan.seenAt,Cut.Plan.used,Cut.Plan.cur,Cut.Plan.ids,Cut.Plan.Possibleand the rulesCut.Plan.Ok.Cut.roleTableAt,Cut.partyTable: the tables of the roles and of the parties in the play.
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
Appendix H.2 and Appendix J; module
Nc.G.Defs
The moves: a law for every move, and a party for every role of its law.
The law of a move.
The parties of a move.
All roles of all moves.
All slots of all moves.
All channels of all moves.
The party of a role.
The role at an end of a slot.
The role at an end of a channel.
The party at an end of a slot.
The party at an end of a channel.
Names of units. init a b k is unit number k of the string from the party a to the party
b (only the A base parties have strings at the beginning); new ν k is unit number k of
the channel ν of a move.
- init {A U0 : ℕ} {N : Type u_1} {U1 : ℕ} (a b : Fin A) (k : Fin U0) : UnitId A U0 N U1
A unit of a string at the beginning.
- new {A U0 : ℕ} {N : Type u_1} {U1 : ℕ} (ν : N) (k : Fin U1) : UnitId A U0 N U1
A unit made by a move.
Instances For
A sum over all units: the initial units and the new units.
The number of units: A * A * U0 initial units and U1 units of every channel.
The new units of the move x for the outcome o: the first o ν + 1 units of every channel
ν of the move.
The bits given at a slot: the bits of the units ids, then zeros for the t - ids.length
units that are not given. An absent unit has no bits (UnitContent.bits none = []); roleTable
excludes that case.
The copies y of the new units of the channel ν are the J + 1 units of the string
str.
Instances For
The table of the role p of the move x. The units ids e are given at the slot e, the
move uses t units, and o is the outcome. The table reads the copies y of the units given at
the slots of the role and of the new units of its channels: for every one of the t * ub bits
there are an index and strings of the law, and the strings on a channel, with the labels of the
indices, are the string that is cut into the new units of the channel. The table is zero if a
unit given at a slot of the role is absent; otherwise the slots are read through slotBits.
A plan: which units are given at every slot, and the number of units that every move uses
(slots given fewer units read zeros after them), as functions of the numbers n of units at the
beginning and of the outcomes o of the earlier moves; and which outcomes are allowed.
The units given at a slot, in the order of UnitId.list.
The outcome of the move x is possible: there is an index for every bit such that the
strings on the channels have the numbers of units of the outcome.
The rules that a plan obeys; cap bounds the number of units that a move uses.
- given_congr (n : Fin A → Fin A → Fin (U0 + 1)) (o o' : M.Channel → Fin U1) (z : M.Slot) : (∀ (ν : M.Channel), ν.fst < z.fst → o ν = o' ν) → P.given n o z = P.given n o' z
The units given at a slot depend on the outcomes of earlier moves only.
- count_congr (n : Fin A → Fin A → Fin (U0 + 1)) (o o' : M.Channel → Fin U1) (x : Fin E) : (∀ (ν : M.Channel), ν.fst < x → o ν = o' ν) → P.count n o x = P.count n o' x
The number of units of a move depends on the outcomes of earlier moves only.
- good_congr (n : Fin A → Fin A → Fin (U0 + 1)) (o o' : M.Channel → Fin U1) (x : Fin E) : (∀ (ν : M.Channel), ν.fst ≤ x → o ν = o' ν) → (P.Good n o x ↔ P.Good n o' x)
Whether an outcome of a move is allowed depends on the outcomes up to that move only.
- given_subset (n : Fin A → Fin A → Fin (U0 + 1)) (o : M.Channel → Fin U1) (z : M.Slot) : P.given n o z ⊆ P.cur n o ↑z.fst
Only current units are given.
- holder_given (n : Fin A → Fin A → Fin (U0 + 1)) (o : M.Channel → Fin U1) (z : M.Slot) (id : UnitId A U0 M.Channel U1) : id ∈ P.given n o z → ∃ (d : Bool), ∀ (d' : Bool), UnitId.holder M.channelParty id d' = M.slotParty z (d ^^ d')
The holders of a unit given at a slot are the parties at the ends of the slot.
- given_disjoint (n : Fin A → Fin A → Fin (U0 + 1)) (o : M.Channel → Fin U1) (x : Fin E) (e e' : (M.law x).Slot) : e ≠ e' → Disjoint (P.given n o ⟨x, e⟩) (P.given n o ⟨x, e'⟩)
No unit is given at two slots of a move.
- card_given_le (n : Fin A → Fin A → Fin (U0 + 1)) (o : M.Channel → Fin U1) (z : M.Slot) : (P.given n o z).card ≤ P.count n o z.fst
A slot is given at most as many units as the move uses.
- count_le (n : Fin A → Fin A → Fin (U0 + 1)) (o : M.Channel → Fin U1) (x : Fin E) : P.count n o x ≤ cap
A move uses at most
capunits.
The table of a role in the play.
The table of the party a after all moves, as a function of its copies of all units that it
has ever held: its table init at the beginning times the tables of its roles.