Word-size-dependent fusion-tree capacity #
A power-of-two branching factor leaves explicit slack for checked arithmetic. Above width
512, 16B⁵ ≤ w; below that threshold the branching factor is two. In both regimes the
constructed tree has height at most 14 (1 + log_w n), with one constant for all widths.
These are arithmetic and tree-height bounds, not an instruction-count certificate.
Main definitions #
branching: the chosen capacity, always at least two.
Main results #
branching_capacity: quantitative room for packed sketches at large widths.height_build_branching_le: the desired word-logarithmic height bound.packed_width_le: both packed-comparison products fit a physical word.
References #
Below width 512, binary branching suffices up to a uniform constant. At larger widths, the exponent leaves four bits of slack for the fifth-power capacity bound.
Instances For
theorem Cslib.Algorithms.Lean.FusionTree.height_build_branching_le {w : ℕ} (hw : 2 ≤ w) (xs : List ℕ) :
A single constant bounds the constructed tree's word-logarithmic height, including empty and singleton inputs. Predecessor runtime still requires a constant-time node implementation.