Orders and counts of contributing leaves #
Main definitions #
Main results #
card_contributing_of_order,card_filter_order_eq,card_outStr_of_leaf: exact counts.two_pow_mul_beta_le: geometric decay whenL = 19m.
References #
Adapted selectively from [AlmanWilliams2026, Section 2] and
Anthropic's pinned formal source.
Source pin: 16a5ce41304fcdaea4e0be7c132e1c361dc26da5. These are finite mathematical
counts and identities; they give no native program or instruction-cost certificate.
The integer difference between m and the number of P0 positions of a leaf. It can be
negative for arbitrary leaves; nonnegativity is proved for leaves contributing to an
output with m inner positions.
Instances For
The quantity m.choose d * 9 ^ d, counting order-d leaves contributing to one output
with m inner positions.
Instances For
The quantity L.choose (m - d) * 9 ^ (L - m + d), using natural-number subtraction. Its
interpretation as the number of order-d leaves requires d ≤ m ≤ L.
Instances For
One level: which terms contribute to which variables #
The private term of z is P₀ exactly if z = z₀.
The order of a leaf #
A contributing leaf can use P0 only at an inner position of the output string.
The counts #
For a string with m inner positions, alpha m d leaves of order d contribute to it.
The natural parameter d is unrestricted; for d > m both sides are zero.
Assuming m ≤ L, a leaf of natural order d contributes to exactly (L - m + d).choose d output strings with m inner positions. The order hypothesis forces d ≤ m.
For 1 ≤ d ≤ m ≤ L, the ratio of consecutive beta values is 9 * (m - d + 1) / (L - m + d), with the ratio and subtractions interpreted in ℚ. This extends the parameter ranges
used in [AlmanWilliams2026, equations (5) and (7)].
At L = 19 * m and 1 ≤ d ≤ m, the ratio of consecutive beta values is bounded above
by 9 * m / (18 * m + 1), which is strictly below 1 / 2. All divisions here are in ℚ.
For d ≤ m and L = 19 * m, the order count satisfies 2 ^ d * beta L m d ≤ M L m. This
is the division-free geometric bound from [AlmanWilliams2026, equation (5)].