Disjoint box decomposition of the contributing leaves #
For an output with m inner levels and t ≤ m, pad each high-order leaf's P0 levels
from below. Its resulting box is unique. Different indexing sets give disjoint box
families, and their leaf sets partition exactly the high-order contributing leaves.
The remaining low-order leaves are explicit in boxQuery; bilinearProduct_eq_boxQuery
holds for arbitrary signed input arrays, including cancellation.
The level assignment is finite algebra from [AlmanWilliams2026, Lemmas 27–28], adapted
from Lemma27_28.lean at
anthropics/formal-math@16a5ce41304fcdaea4e0be7c132e1c361dc26da5.
It uses the existing alphabets, encodings, contribution relation, signed leaf order
and alpha counts. There is no assumed native lookup, enumeration, layout or cost contract.
Restricted P0 coordinates determine the order of a contributing leaf.
Padding stays within its ambient set.
The initial levels are all levels at the boundary, or those below the first omission.
The initial levels lie inside the selected set.
Different indexing sets give disjoint families of cubes.
The assigned cube belongs to the family indexed by the padded P0 set.
Leaf incidence in a family is equivalent to the two P0-set inclusions.
A sum splits into low-order leaves and the disjoint output boxes.