Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Sharp-tail certificate bounds the exact pruned preprocessing and query costs

Proved
ThreeSumSharpTail.pruned_cost_certificate

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

3sumsharp-tailword-ram-costs

Let c>10 be an integer, theta in (0,9/10), and a>0,s rational. Under a(A(c)+Gamma(c,theta))<1, s<Gamma(c,theta), and s<1/2-q(theta), there exist C>=0 and a threshold m0 such that for every D>=2 with D<=N^a and m=ceil(log_4 D)>=m0 the tile fits, cost8p<=C N^2 (log D)^2/D^s, and costQuery<=C D^(1/2-s) log D. The quantities are the existing pruned program cost functions, with the exact binomial tail retained.

Preamble
import Definitions.Def_ThreeSumSharpTail_Analysis
import Definitions.Def_APSP299791_Defs4
import Theorems.Thm_ThreeSumSharpTail_pruned_encoding_comparison
set_option autoImplicit false
set_option relaxedAutoImplicit false
open ThreeSumApsp
open ThreeSumSharpTail
Formal statement
theorem ThreeSumSharpTail.pruned_cost_certificate (c : ℕ) (θ : ℝ) (a s : ℚ)
    (hc : 10 < c) (hθ0 : 0 < θ) (hθ9 : θ < 9 / 10)
    (ha0 : 0 < a)
    (henc : (a : ℝ) * (encodingExponent c + sharpSaving c θ) < 1)
    (hprep : (s : ℝ) < sharpSaving c θ)
    (hquery : (s : ℝ) < 1 / 2 - queryExponent θ) :
    ∃ C m₀, 0 ≤ C ∧ ∀ D₀ N m : ℕ,
      2 ≤ D₀ → (D₀ : ℝ) ≤ (N : ℝ) ^ (a : ℝ) →
      m = ⌈Real.logb 4 (D₀ : ℝ)⌉₊ → m₀ ≤ m →
      sqrtKN0 (levelsOf (c : ℝ) m) m ≤ N ∧
      cost8p (levelsOf (c : ℝ) m) m (switchOf θ m) N ≤
        C * ((N : ℝ) ^ 2 * Real.log (D₀ : ℝ) ^ 2 / (D₀ : ℝ) ^ (s : ℝ)) ∧
      costQuery (levelsOf (c : ℝ) m) m (switchOf θ m) ≤
        C * ((D₀ : ℝ) ^ (1 / 2 - (s : ℝ)) * Real.log (D₀ : ℝ)) := by sorry
Source
Derived interface transfer for Xu, same manuscript, Sections 3-4. Uses the existing complete CorollaryP.costs proof in ThreeSumApsp/Pruned/Costs.lean at commit 27a2fa4bab32 and the proved pruned encoding comparison. Actual finite program correctness and reductions remain separate obligations.

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