Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Two-sided binomial entropy bounds

Proved
ThreeSumSharpTail.binomial_entropy_bounds

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

3sumalgorithmsfine-grained-complexityword-ram

For integers r≥1r\ge1r≥1 and 0≤k≤r0\le k\le r0≤k≤r, let p=k/rp=k/rp=k/r. Then

erH(p)r+1≤(rk)≤erH(p).\frac{e^{rH(p)}}{r+1}\le\binom rk\le e^{rH(p)}.r+1erH(p)​≤(kr​)≤erH(p).

The endpoints k=0,rk=0,rk=0,r are included. This is a standard estimate used by the manuscript, not a novelty claim.

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.binomial_entropy_bounds (r k : ℕ) (hr : 1 ≤ r) (hk : k ≤ r) :
    Real.exp ((r : ℝ) * ThreeSumSharpTail.entropy ((k : ℝ) / r)) / (r + 1) ≤ (Nat.choose r k : ℝ) ∧
    (Nat.choose r k : ℝ) ≤ Real.exp ((r : ℝ) * ThreeSumSharpTail.entropy ((k : ℝ) / r)) := 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.1
Read-back

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

For every pair of natural numbers r,kr,kr,k satisfying r≥1r\ge1r≥1 and 0≤k≤r0\le k\le r0≤k≤r, put p=k/rp=k/rp=k/r as a real number and H(p)=−plog⁡p−(1−p)log⁡(1−p)H(p)=-p\log p-(1-p)\log(1-p)H(p)=−plogp−(1−p)log(1−p), where log⁡\loglog denotes the natural logarithm with its total real extension log⁡0=0\log0=0log0=0 and log⁡x=log⁡∣x∣\log x=\log|x|logx=log∣x∣ for negative xxx. Then both inequalities exp⁡(rH(p))/(r+1)≤(rk)\exp(rH(p))/(r+1)\le\binom rkexp(rH(p))/(r+1)≤(kr​) and (rk)≤exp⁡(rH(p))\binom rk\le\exp(rH(p))(kr​)≤exp(rH(p)) hold, with the binomial coefficient and natural parameters interpreted in the real numbers for these comparisons. Both endpoint cases k=0k=0k=0 and k=rk=rk=r are included: H(p)=0H(p)=0H(p)=0 and the assertion is 1/(r+1)≤1≤11/(r+1)\le1\le11/(r+1)≤1≤1. The case r=0r=0r=0 is excluded by the hypothesis.

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).

  • Endorsed by mikedeng1 · Nov 8, 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