Finite preprocessing/query tradeoff for shared box tables #
A threshold trades a geometric tail of the completed-leaf counts beta against a
weighted binomial prefix of the query counts alpha. The all-tile estimate charges
one retained box value for each box of each tile, while the query estimate charges
all requested occurrences separately. Neither estimate is a machine-running-time law.
Main definitions #
BoxTradeoff.rho: geometric decay rate determined by the original depths.
Main results #
BoxTradeoff.sum_beta_le: geometric tail estimate for retained-table construction.BoxTradeoff.sum_alpha_le: weighted binomial prefix estimate for one sparse query.BoxTradeoff.total_boxes_le: sum of retained-box counts over the actual finite tile set.
References #
Adapted from [AlmanWilliams2026, equation (7) and Section 4.4], specifically
Theorem30.lean
lines 53–102 and 253–287, and
ParameterSteps.lean
lines 147–172, at the pinned primary formal source. Both files were checked against
that revision. The tile estimate uses this library's padded dimension and therefore
has factor 4*padN²; a separate band-size premise gives factor 16*N². This is a
constant-factor weakening of the source's finer unpadded tile estimate. The source's
analytic encoding-term domination, logarithmic estimates and final exponents are not
claimed here. No source machine or execution semantics is imported.
The ratio envelope 9m/(L-m+1), with subtraction in the real numbers.
Equation (7): the order-d completed-leaf count decays from the order-zero count M.
The inequality holds for every m ≤ L; summability is needed only for the tail theorem.
Theorem 30's retained-table estimate: all completed leaves through order m
above a threshold are bounded by a convergent geometric tail. No threshold premise
is required; an empty tail also satisfies this bound.
A box table has at most m+1 descriptors for each completed-leaf choice. Combined
with the geometric tail, this bounds its actual finite number of retained values.
All tiles share the same geometry but each computes its own retained values. This counts all those values against the actual padded outer dimension.
If one band fits the original outer dimension, the retained-table count is bounded
by N² without using a source execution or asymptotic hypothesis.
Concrete rational-base preprocessing decay at L=21m. The threshold remains
explicit so an actual native parameter calculation can choose it independently.