Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Sharp normalized binomial tail

Proved
ThreeSumSharpTail.sharp_normalized_tail

by Yuxuan Xu · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

3sumalgorithmsfine-grained-complexityword-ram

Let c>10c>10c>10 and m≥1m\ge1m≥1 be integers, 0<θ<0.90<\theta<0.90<θ<0.9, L=cmL=cmL=cm, D=4mD=4^mD=4m, t=⌈θm⌉t=\lceil\theta m\rceilt=⌈θm⌉, βd=(Lm−d)9L−m+d\beta_d=\binom L{m-d}9^{L-m+d}βd​=(m−dL​)9L−m+d and M=β0M=\beta_0M=β0​. Then

1M∑d=tmβd≤cm+11−9/(c−1)D−γ∗(c,θ).\frac1M\sum_{d=t}^{m}\beta_d\le\frac{cm+1}{1-9/(c-1)}D^{-\gamma_*(c,\theta)}.M1​d=t∑m​βd​≤1−9/(c−1)cm+1​D−γ∗​(c,θ).

The ceiling is part of the statement; t=mt=mt=m is included.

Preamble
import Definitions.Def_ThreeSumSharpTail_Analysis
import Definitions.Def_TrulySubcubicAPSP_SourceSpecification

set_option autoImplicit false
set_option relaxedAutoImplicit false
open scoped BigOperators
Formal statement
theorem ThreeSumSharpTail.sharp_normalized_tail (c m : ℕ) (hc : 10 < c) (hm : 1 ≤ m)
    (θ : ℝ) (hθ0 : 0 < θ) (hθ9 : θ < 9 / 10) :
    ((∑ d ∈ Finset.Icc (⌈θ * (m : ℝ)⌉₊) m, ThreeSumSharpTail.boxCount c m d : ℕ) : ℝ) /
        (ThreeSumSharpTail.boxCount c m 0 : ℝ) ≤
      ((c : ℝ) * m + 1) / (1 - 9 / ((c : ℝ) - 1)) *
        Real.rpow ((4 : ℝ) ^ m) (-ThreeSumSharpTail.sharpSaving c θ) := by sorry
Source
Yuxuan Xu, Deterministic Integer 3SUM in O(n^1.999017) Time via a Sharper Binomial-Tail Analysis (13 October 2026), Hexagon submission https://hexagonmath.org/submit/d57cba23-2d89-4bcb-8180-7c1bde7d14e3; Lemma 3.2
Read-back

What the Lean code literally says, in plain math · gpt-6

For every pair of natural numbers c,mc,mc,m with c>10c>10c>10 and m≥1m\ge1m≥1, and every real θ\thetaθ with 0<θ<9/100<\theta<9/100<θ<9/10, let L=⌈θm⌉L=\lceil\theta m\rceilL=⌈θm⌉; in this range the natural-number ceiling used in the statement is the ordinary ceiling and 1≤L≤m1\le L\le m1≤L≤m. Define H(x)=−xlog⁡x−(1−x)log⁡(1−x)H(x)=-x\log x-(1-x)\log(1-x)H(x)=−xlogx−(1−x)log(1−x), with the total real logarithm taking value 000 at 000 and the natural logarithm of the absolute value at a negative argument, and put S=[cH(1/c)−cH((1−θ)/c)−θlog⁡9]/log⁡4S=[cH(1/c)-cH((1-\theta)/c)-\theta\log9]/\log4S=[cH(1/c)−cH((1−θ)/c)−θlog9]/log4. Then ∑d=Lm(cmm−d)9cm−m+d(cmm)9cm−m≤cm+11−9/(c−1)(4m)−S\displaystyle \frac{\sum_{d=L}^{m}\binom{cm}{m-d}9^{cm-m+d}}{\binom{cm}{m}9^{cm-m}}\le\frac{cm+1}{1-9/(c-1)}(4^m)^{-S}(mcm​)9cm−m∑d=Lm​(m−dcm​)9cm−m+d​≤1−9/(c−1)cm+1​(4m)−S. The sum includes both endpoints and is first formed as a natural number before being cast to the reals; every displayed division and the power with exponent −S-S−S are real operations. The count used in the code is defined for arbitrary natural arguments by (cmmax⁡(m−d,0))9max⁡(cm−m,0)+d\binom{cm}{\max(m-d,0)}9^{\max(cm-m,0)+d}(max(m−d,0)cm​)9max(cm−m,0)+d, but on the stated summation range no subtraction truncates. The denominator count and 1−9/(c−1)1-9/(c-1)1−9/(c−1) are strictly positive here. The cases m=0m=0m=0, c≤10c\le10c≤10, θ=0\theta=0θ=0, and θ=9/10\theta=9/10θ=9/10 are not asserted.

Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Yuxuan Xu · Oct 13, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me