Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

From admissible sharp-tail parameters to the shared 3SUM specification

Proved
ThreeSumSharpTail.admissible_parameters_solve_3sum

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

3sumalgorithmsfine-grained-complexityword-ram

Let c>10c>10c>10 be an integer, 0<θ<0.90<\theta<0.90<θ<0.9, and let a,s,ra,s,ra,s,r be rational with 0<a<10<a<10<a<1 and 0<s<10<s<10<s<1. Suppose

a(A(c)+γ∗(c,θ))<1,s<γ∗(c,θ),s<12−q(θ),a(A(c)+\gamma_*(c,\theta))<1,\qquad s<\gamma_*(c,\theta),\qquad s<\tfrac12-q(\theta),a(A(c)+γ∗​(c,θ))<1,s<γ∗​(c,θ),s<21​−q(θ), log⁡27+32a<3−as/2,2+a(1+s/2)<3−as/2,r>2−as/4.\log_2 7+\tfrac32a<3-as/2,\qquad 2+a(1+s/2)<3-as/2,\qquad r>2-as/4.log2​7+23​a<3−as/2,2+a(1+s/2)<3−as/2,r>2−as/4.

Then deterministic integer 3SUM satisfies the campaign's exact shared predicate EndStatement.ThreeSum.SolvedInTime r. This is the combined consequence of Propositions 4.1 and 5.1, not a verbatim separate proposition in the manuscript. Its proof must construct the word-RAM program and establish correctness and all costs using the inherited algorithms and reductions. No inner-algorithm oracle or correctness assumption is supplied as a hypothesis. The uniform word-width requirement in the shared specification is part of the formalization obligation.

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.admissible_parameters_solve_3sum
    (c : ℕ) (θ : ℝ) (a s r : ℚ) (hc : 10 < c)
    (hθ0 : 0 < θ) (hθ9 : θ < 9 / 10)
    (ha0 : 0 < a) (ha1 : a < 1) (hs0 : 0 < s) (hs1 : s < 1)
    (henc : (a : ℝ) * (ThreeSumSharpTail.encodingExponent c + ThreeSumSharpTail.sharpSaving c θ) < 1)
    (hprep : (s : ℝ) < ThreeSumSharpTail.sharpSaving c θ)
    (hquery : (s : ℝ) < 1 / 2 - ThreeSumSharpTail.queryExponent θ)
    (hprime : Real.log 7 / Real.log 2 + 3 * (a : ℝ) / 2 < 3 - (a : ℝ) * s / 2)
    (hbuild : 2 + (a : ℝ) * (1 + (s : ℝ) / 2) < 3 - (a : ℝ) * s / 2)
    (hr : 2 - a * s / 4 < r) :
    EndStatement.ThreeSum.SolvedInTime 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; Propositions 4.1 and 5.1; combined consequence
Read-back

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

For every natural number ccc, real number θ\thetaθ, and rational numbers a,s,ra,s,ra,s,r, assume c>10c>10c>10, 0<θ<9/100<\theta<9/100<θ<9/10, 0<a<10<a<10<a<1, and 0<s<10<s<10<s<1. 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 zero and the logarithm of the absolute value at negative arguments, 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, Q=[H(θ)+θlog⁡9]/log⁡4Q=[H(\theta)+\theta\log9]/\log4Q=[H(θ)+θlog9]/log4, and E=[clog⁡10−cH(1/c)/2−(c−1)log⁡3]/log⁡4E=[c\log10-cH(1/c)/2-(c-1)\log3]/\log4E=[clog10−cH(1/c)/2−(c−1)log3]/log4. Also assume the five strict real inequalities a(E+S)<1a(E+S)<1a(E+S)<1, s<Ss<Ss<S, s<1/2−Qs<1/2-Qs<1/2−Q, log⁡7/log⁡2+3a/2<3−as/2\log7/\log2+3a/2<3-as/2log7/log2+3a/2<3−as/2, and 2+a(1+s/2)<3−as/22+a(1+s/2)<3-as/22+a(1+s/2)<3−as/2, where natural and rational parameters are cast to the reals, together with the strict rational inequality 2−as/4<r2-as/4<r2−as/4<r. The conclusion is the following quantified assertion about a specified machine: for every natural number κ\kappaκ, there exist a finite instruction list PPP, a natural number bbb, a function T:N→NT:\mathbb N\to\mathbb NT:N→N, and a natural number KKK such that T(n)q≤Knmax⁡(p,0)T(n)^q\le K n^{\max(p,0)}T(n)q≤Knmax(p,0) for every natural n≥2n\ge2n≥2, where r=p/qr=p/qr=p/q is the reduced rational representation with integer numerator ppp and positive natural denominator qqq. For every natural nnn, every integer sequence (x0,…,xn−1)(x_0,\ldots,x_{n-1})(x0​,…,xn−1​) satisfying ∣xi∣≤nκ|x_i|\le n^\kappa∣xi​∣≤nκ at every position, and every natural word width W≥b(⌊log⁡2n⌋+1)W\ge b(\lfloor\log_2 n\rfloor+1)W≥b(⌊log2​n⌋+1), with the integer logarithm taken to be 000 at n=0n=0n=0, running this same PPP from instruction position 000 halts within T(n)T(n)T(n) steps with acceptance if and only if there exist three pairwise distinct positions i,j,ki,j,ki,j,k in {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} with xi+xj+xk=0x_i+x_j+x_k=0xi​+xj​+xk​=0 as integers. Memory consists of WWW-bit words at all integer addresses; initially address 000 contains nnn modulo 2W2^W2W, addresses 111 through nnn contain the corresponding inputs modulo 2W2^W2W, and every other address contains zero. An instruction may write the constant 111 to a fixed integer address, add, subtract, or multiply words at two fixed addresses into another fixed address modulo 2W2^W2W, load through an address read as a signed word, store through an address read as a signed word, jump to a specified natural instruction position if a fixed cell is negative when read as a signed word, accept, or reject. Indirect load writes into a fixed cell; indirect store reads its source from a fixed cell. Each instruction takes one step, writing proceeds to the next instruction, a non-taken conditional branch also proceeds to the next instruction, and executing beyond the finite list rejects. A halting instruction counts toward the time bound; with zero steps there is no verdict. There is no further condition on the final memory. The witnesses may depend on κ\kappaκ and the initially fixed parameters but must work uniformly for every eligible nnn, input, and WWW, with no upper bound on WWW. The correctness requirement includes n=0,1,2n=0,1,2n=0,1,2, for which no three distinct positions exist and the verdict must be rejection; the polynomial inequality only constrains n≥2n\ge2n≥2. For n=0n=0n=0 the input magnitude condition is vacuous, and natural powers use 00=10^0=100=1. The definition does not require b>0b>0b>0 or K>0K>0K>0, so if a chosen bbb is zero the quantifier includes zero-width words. Under the parameter hypotheses r>7/4r>7/4r>7/4, so the numerator truncation in the time bound does not alter ppp. No claim is made for parameter choices failing any hypothesis, and no upper bound on rrr is imposed.

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