Sharp-tail bound for the actual all-tiles routine step count
ProvedThreeSumSharpTail.retained_tiles_cost3sumsharp-tailword-ram-costs
Bounds the published natural-number time function tAllTiles at L=cm and t=ceil(theta*m). The bound counts the lengths of the star-box lists actually traversed by the routine, uses their exact binomial enumeration formula, and applies the sharp normalized tail. The bound holds for every number of bands, with explicit constant 1600 and all loop overheads included. Tile-fit, encoding, compiler and reduction costs must still be composed before claiming the final word-RAM runtime.
Preamble
import Definitions.Def_ThreeSumSharpTail_Analysis import Definitions.Def_APSPSource_RemainingDefinitions set_option autoImplicit false set_option relaxedAutoImplicit false open scoped BigOperators
Formal statement
theorem ThreeSumSharpTail.retained_tiles_cost (c m nB : ℕ) (hc : 10 < c) (hm : 1 ≤ m)
(θ : ℝ) (hθ0 : 0 < θ) (hθ9 : θ < 9 / 10) :
(Light.Sec4.tAllTiles (c * m) m ⌈θ * (m : ℝ)⌉₊ nB : ℝ) ≤
1600 * ((c : ℝ) * m + 1) *
((nB : ℝ) ^ 2 * (((m : ℝ) + 1) *
((ThreeSumSharpTail.boxCount c m 0 : ℝ) *
(((c : ℝ) * m + 1) / (1 - 9 / ((c : ℝ) - 1)) *
Real.rpow ((4 : ℝ) ^ m) (-ThreeSumSharpTail.sharpSaving c θ)) + 1)) +
nB + 1) := by sorrySource
Yuxuan Xu, same manuscript, Sections 2.1 and 4, equations unrelaxed and boxcost; actual tTile/tAllTiles time functions from anthropics/formal-math 3sum-apsp, commit e1a4e6508154ea59f030480661590a9fe3018011, ThreeSumApsp/Programs/Sec4/Theorem30/Contracts.lean and ThreeSumApsp/Spec/Sec4/Theorem30/StarBoxes.lean.