Thin trees #
Theorem H.2 of [Ant26] (pp. 45–46) writes the value of a network on at most M
nodes, with units of ℓ bits and at most N units at a node, as a sum, over sequences of good
outcomes of moves, of the values of networks whose nodes form a tree of small depth (Section
H.3). A network is a starting position of the play (Play.value on the initial units): the
given nodes are the A base parties, with tables init that read their initial units. The moves
(Cut.Moves) are relays and laws of a fixed list, and the plan (Cut.Plan) says which units they
use. ThinTrees collects them with the tree (the stages, the root, and the parent of every party
for the numbers n of initial units and the outcomes o), the units units between the parties
and their parents that a program computes, the dead units, and the bounds of the theorem:
- (a) the depth is at most
Λ = lg M ^ C, the given nodes are of stage0, every node but the root has its parent in the next stage and at mostbchildren, and the root at mostC; - (b) at most
M ^ Cdead units; every other unit in the end joins a node and its parent, and their number is at mostunits(card_filter_holds_lebounds those at a node); - (c) the value, the tests of the relays and the laws of the list, no law move at a node of the
stage
0, and the layers of the law moves at a node against the units that it ever holds; - (d) a straight-line program with
(M N) ^ Csteps over the numbers below(M N) ^ C(TreeProgram), and the numbers of parties, moves, outcomes and units; - (e) the bounds of
unitsat a node and its children and in all, and the units that a party ever holds and reads.
The units from a node to itself are allowed here; they stay at their node, which sums over them.
Main definitions #
Trees.TreeProgram: a program that computes the tree, the units and the numbers of the moves of a plan from the numbers of initial units and the outcomes.Trees.ThinTrees: the moves, the plan and the trees of Theorem H.2.
Main results #
Trees.ThinTrees.card_filter_holds_le: Theorem H.2(b) for the units at a node, its children included.
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
Section H.2 (packets, networks and the two moves, p. 45) and Theorem H.2 (pp. 45–46); module
Paper.Tree
A straight-line program with steps gates over the letters Fin K, whose inputs are the pairs
(n, o) of the numbers n of initial units and the outcomes o of a plan P, and which computes
the parents parent, the units units between the parties and their parents, the current units
after all moves, the units given at the slots, the numbers of units of the moves and the good
outcomes (Theorem H.2(d), (e)). A property is computed by its indicator.
- numInputs : ℕ
The number of inputs.
The inputs of the program.
The functions that the program computes.
- input_eq (i : Fin self.numInputs) : (∃ (a : Fin A) (c : Fin A), ∀ (n : Fin A → Fin A → Fin (U0 + 1)) (o : M.Channel → Fin U1), ↑(self.input i (n, o)) = ↑(n a c)) ∨ ∃ (ν : M.Channel), ∀ (n : Fin A → Fin A → Fin (U0 + 1)) (o : M.Channel → Fin U1), ↑(self.input i (n, o)) = ↑(o ν)
Every input is a number of initial units or an outcome.
Thin trees (Theorem H.2 of [Ant26], pp. 45–46) for networks on A given
nodes, with at most N units at a node, units of ℓ bits and at most M nodes: moves of the
relay and of the laws laws on the A + A' parties, with a plan that obeys the rules, the tree of
every choice of numbers n of initial units and outcomes o (stages, root and parents), the units
units between the parties and their parents, and the dead units, with the bounds (a)–(e) of the
theorem for the bound b of the children, the integer G of the test of the law moves, the
exponent C and the gain γ. The bounds on the units hold for good outcomes and at most N
initial units at every base party.
- A' : ℕ
The number of parties that are not given nodes.
- E : ℕ
The number of moves.
- U1 : ℕ
The outcomes are below
U1. The moves.
The plan: the units given in the moves, their numbers, and the good outcomes.
- cap : ℕ
The bound for the units of a move.
The plan obeys the rules.
The law moves; the other moves are relays.
- good_iff (n : Fin A → Fin A → Fin (N + 1)) (o : self.moves.Channel → Fin self.U1) (x : Fin self.E) : self.plan.Good n o x ↔ if self.isLaw x = true then b * ∑ ν : (self.moves.law x).Channel, ↑(o ⟨x, ν⟩) ^ 2 ≤ G * self.plan.count n o x ^ 2 ∧ ∀ (ν : (self.moves.law x).Channel), self.plan.count n o x ≤ ↑(o ⟨x, ν⟩) else ∀ (ν : (self.moves.law x).Channel), ↑(o ⟨x, ν⟩) = self.plan.count n o x
The good outcomes: short, with at least as many units on every channel as the move uses, at a law move, and as many as it uses at a relay.
- good_of_possible (n : Fin A → Fin A → Fin (N + 1)) (o : self.moves.Channel → Fin self.U1) (x : Fin self.E) : self.plan.Possible n o ℓ x → self.plan.Good n o x
Every possible outcome is good.
- value (n : Fin A → Fin A → Fin (N + 1)) (init : Fin (A + self.A') → (Cut.UnitId A N self.moves.Channel self.U1 → Cut.UnitContent ℓ) → R) : (∀ (a : Fin (A + self.A')) (y y' : Cut.UnitId A N self.moves.Channel self.U1 → Cut.UnitContent ℓ), (∀ (b_1 c : Fin A) (k : Fin N), y (Cut.UnitId.init b_1 c k) = y' (Cut.UnitId.init b_1 c k)) → init a y = init a y') → (∀ (a : Fin (A + self.A')) (y : Cut.UnitId A N self.moves.Channel self.U1 → Cut.UnitContent ℓ), init a y ≠ 0 → ∀ id ∈ Cut.initialUnits n, Play.Holds (Cut.UnitId.holder self.moves.channelParty) a id → y id ≠ none) → (Play.value (Cut.UnitId.holder self.moves.channelParty) none (Cut.initialUnits n) (Cut.initialUnits n) fun (y : Fin (A + self.A') → Cut.UnitId A N self.moves.Channel self.U1 → Option (BitString ℓ)) => ∏ a : Fin (A + self.A'), init a (y a)) = ∑ o : self.moves.Channel → Fin self.U1, if ∀ (x : Fin self.E), self.plan.Good n o x then Play.value (Cut.UnitId.holder self.moves.channelParty) none (Cut.Plan.seenAt n o self.E) (self.plan.cur n o self.E) fun (y : Fin (A + self.A') → Cut.UnitId A N self.moves.Channel self.U1 → Option (BitString ℓ)) => ∏ a : Fin (A + self.A'), Cut.partyTable self.plan n o (init a) a (y a) else 0
(c) The value: for tables
initof the parties at the beginning that read the initial units only and vanish unless the initial units that the party holds are present, the value of the position at the beginning is the sum, over the good outcomes, of the values of the positions after all moves, where the table of a party is its table at the beginning times the tables of its roles. The stage of a party.
- depth : ℕ
The depth of the tree.
The root.
- parent : (Fin A → Fin A → Fin (N + 1)) → (self.moves.Channel → Fin self.U1) → Fin (A + self.A') → Fin (A + self.A')
The parent of a party.
The bound for the units between a party and its parent that the program computes.
The dead units.
No law move is at a node of the stage
0.- exists_parent (n : Fin A → Fin A → Fin (N + 1)) : (∀ (a : Fin A), ∑ c : Fin A, (↑(n a c) + ↑(n c a)) ≤ N) → ∀ (o : self.moves.Channel → Fin self.U1), (∀ (x : Fin self.E), self.plan.Good n o x) → ∀ u ∈ Play.cutUnits (Cut.UnitId.holder self.moves.channelParty) id (self.plan.cur n o self.E \ self.dead o), ∃ (p : Fin (A + self.A')), p ≠ self.root ∧ s(Cut.UnitId.holder self.moves.channelParty u false, Cut.UnitId.holder self.moves.channelParty u true) = s(p, self.parent n o p)
(b) The units in the end that are not dead and join two parties join a party and its parent.
- card_between_le (n : Fin A → Fin A → Fin (N + 1)) : (∀ (a : Fin A), ∑ c : Fin A, (↑(n a c) + ↑(n c a)) ≤ N) → ∀ (o : self.moves.Channel → Fin self.U1), (∀ (x : Fin self.E), self.plan.Good n o x) → ∀ (p : Fin (A + self.A')), p ≠ self.root → {u ∈ Play.cutUnits (Cut.UnitId.holder self.moves.channelParty) id (self.plan.cur n o self.E \ self.dead o) | s(Cut.UnitId.holder self.moves.channelParty u false, Cut.UnitId.holder self.moves.channelParty u true) = s(p, self.parent n o p)}.card ≤ self.units n o p
(e) The units between a party and its parent are at most
units. - units_add_sum_le (n : Fin A → Fin A → Fin (N + 1)) (o : self.moves.Channel → Fin self.U1) (p : Fin (A + self.A')) : ↑(self.units n o p + ∑ q : Fin (A + self.A') with q ≠ self.root ∧ self.parent n o q = p, self.units n o q) ≤ ↑(Interpreter.lg M ^ C) * ↑M ^ (1 - γ) * (↑N + ↑M ^ 2)
(e) The units between a party and its parent, and between its children and the party.
- sum_units_le (n : Fin A → Fin A → Fin (N + 1)) (o : self.moves.Channel → Fin self.U1) : ∑ p : Fin (A + self.A'), self.units n o p ≤ Interpreter.lg M ^ C * M * (N + M ^ 2)
(e) All units between the parties and their parents.
- sum_count_le (n : Fin A → Fin A → Fin (N + 1)) (o : self.moves.Channel → Fin self.U1) : (∀ (x : Fin self.E), self.plan.Good n o x) → ∀ (p : Fin (A + self.A')), ∑ r : self.moves.Role with self.moves.roleParty r = p ∧ self.isLaw r.fst = true, self.plan.count n o r.fst ≤ (Finset.filter (Play.Holds (Cut.UnitId.holder self.moves.channelParty) p) (Cut.Plan.seenAt n o self.E)).card
(c) The numbers of units of the law moves at a party, against the units that it ever holds.
- card_held_add_le (n : Fin A → Fin A → Fin (N + 1)) : (∀ (a : Fin A), ∑ c : Fin A, (↑(n a c) + ↑(n c a)) ≤ N) → ∀ (o : self.moves.Channel → Fin self.U1), (∀ (x : Fin self.E), self.plan.Good n o x) → ∀ (p : Fin (A + self.A')), (Finset.filter (Play.Holds (Cut.UnitId.holder self.moves.channelParty) p) (Cut.Plan.seenAt n o self.E)).card + ∑ r : self.moves.Role with self.moves.roleParty r = p, (1 + Fintype.card ((self.moves.law r.fst).SlotAt r.snd)) * self.plan.count n o r.fst ≤ (C * (self.units n o p + ∑ q : Fin (A + self.A') with q ≠ self.root ∧ self.parent n o q = p, self.units n o q) + if ↑p < A then Interpreter.lg M ^ C * N else 0) + C * (Finset.filter (Play.Holds (Cut.UnitId.holder self.moves.channelParty) p) (self.dead o)).card
(e) The units that a party ever holds, and the units that its roles read, zeros in slots included.
(d) The program.
The units at a node (Theorem H.2(b) of [Ant26], p. 46): the units in the end
that are not dead, join two parties and have an end at a party are at most
Λ M ^ (1 - γ) (N + M ^ 2).