Heavy nodes and pieces of a tree by stages #
A tree by stages (Cslib.StagedTree) is a rooted tree given by the parents of its nodes, in which
every node has a stage: the root alone is at the top stage, the depth, and every other node is one
stage below its parent. A node q is below a node p (Cslib.StagedTree.Below) if p is q or
an ancestor of q.
For two weights g and u on the nodes, two budgets M and Y and a number k, a node p is
heavy (Cslib.StagedTree.Heavy) if it is the root or if the weights below it satisfy
g / (4 M) + u / (2 Y) > 1 / k. Parents of heavy nodes are heavy, and, as the sets below the nodes
of one stage are disjoint, every stage has fewer than k heavy nodes other than the root when
g adds up to at most M and u to at most Y. The heads (Cslib.StagedTree.IsHead) are the
root and the children of heavy nodes. The piece of a node (Cslib.StagedTree.piece) is the number
of the first head on the way up from it (Cslib.StagedTree.pieceHead), where the heads are
numbered in increasing order (Cslib.StagedTree.headRank). So the nodes of a piece are one heavy
node or lie below a light node, and a sum over a piece is at most a value at one node or a sum
below a light node (Cslib.StagedTree.sum_piece_le). If the root has at most C children and
every other node at most b, there are fewer than 1 + C + b d k pieces for the depth d
(Cslib.StagedTree.piece_lt), and the edges between a piece and the other nodes all meet one
node (Cslib.StagedTree.exists_piece_boundary).
Main definitions #
Cslib.StagedTree: a rooted tree by stages.Cslib.StagedTree.Below,Cslib.StagedTree.sumBelow,Cslib.StagedTree.children: the nodes below a node, the sum of a function over them, and the children of a node.Cslib.StagedTree.Heavy,Cslib.StagedTree.IsHead: heavy nodes and the heads of pieces.Cslib.StagedTree.pieceHead,Cslib.StagedTree.headRank,Cslib.StagedTree.piece: the head of the piece of a node, the number of a head, and the piece of a node.
Main results #
Cslib.StagedTree.sumBelow_children_le: a sum over the children of the nodes below a node is at most the sum over the nodes below it.Cslib.StagedTree.light_given_le,Cslib.StagedTree.light_units_le: the weights below a light node.Cslib.StagedTree.sum_piece_le: a sum over a piece.Cslib.StagedTree.piece_lt,Cslib.StagedTree.piece_lt_card: the number of pieces.Cslib.StagedTree.exists_piece_boundary: the edges out of a piece meet one node.
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
Proposition J.2, p. 52, and its proof ("Heavy nodes and pieces", p. 53); module
Paper.Heavy
A rooted tree by stages on the nodes α: every node has a parent and a stage, the root alone
is at the top stage depth, and every other node is one stage below its parent. The parent of the
root is not used.
The sum of f over the nodes below p.
The children of a node: the nodes other than the root whose parent it is.
A sum over the children of the nodes below p is at most the sum over the nodes below p.
Heavy nodes and pieces #
A node is heavy for the weights g and u, the budgets M and Y and the number k if it
is the root or if sumBelow g p / (4 M) + sumBelow u p / (2 Y) > 1 / k, multiplied out:
8 M Y < k (2 Y · sumBelow g p + 4 M · sumBelow u p).
Instances For
The heads of the pieces: the root and the children of heavy nodes.
Instances For
The head of the piece of a node: the first head on the way up from it (stage p is at most
depth, and the root is a head).
The number of a head: the number of heads that are smaller in the order of α.
The piece of a node: the number of the head of its piece.
The pieces are numbered below the number of nodes.
The number of pieces ("each stage has fewer than k heavy nodes", "so there are at most
kΛ pieces"): if the root has at most C children and every other node at most b, the pieces
are numbered below 1 + C + b d k for the depth d.
A sum over a piece: if f is at most B at every node and its sum below every light node
is at most B, then so is its sum over the nodes of the piece n, since these are one heavy node
or lie below a light node.
Below a light node g adds up to at most 4 M / k.
Below a light node u adds up to at most 2 Y / k.
The boundary of a piece: the edges between a node and its parent of which exactly one end
is in the piece n all meet one node, the head of the piece (there are no such edges if no node is
in the piece n).