Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

All full dimension oracle calls have the desired saving

Proved
ThreeSumSharpTail.full_d_call_total

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

3sumsharp-tailword-ram-costs

Under the full-D parameter bounds and D^(1+s)<=n, a call with preprocessing n^2(log D+1)^2/D^s, query time D^(1/2-s)(log D+1), and nD+w+1 overhead, with w<=n^2/sqrt(D), has total 4ng call-and-answer-reading cost at most (64C+8Cprime)n^3 D^(-s/2)(log D+1)^2. Both cost constants are nonnegative and all loop overheads are counted.

Preamble
import Mathlib
import Theorems.Thm_ThreeSumSharpTail_full_d_call_balance
set_option autoImplicit false
set_option relaxedAutoImplicit false
Formal statement
theorem ThreeSumSharpTail.full_d_call_total (n D g s C C' t w : ℝ)
    (hD : 1 ≤ D) (hn : 1 ≤ n) (hs : 0 ≤ s) (hsHalf : s ≤ 1 / 2)
    (hgLo : D ^ (s / 2) ≤ g) (hgHi : g ≤ 2 * D ^ (s / 2))
    (hbuild : D ^ (1 + s) ≤ n) (hC : 0 ≤ C) (hC' : 0 ≤ C')
    (_hw0 : 0 ≤ w) (hw : w ≤ n ^ 2 / Real.sqrt D)
    (ht : t ≤ C *
      (n ^ 2 * (Real.log D + 1) ^ 2 / D ^ s +
        w * D ^ (1 / 2 - s) * (Real.log D + 1) + n * D + w + 1)) :
    4 * n * g * (t + C' * n ^ 2 / Real.sqrt D) ≤
      (64 * C + 8 * C') *
        (n ^ 3 * D ^ (-s / 2) * (Real.log D + 1) ^ 2) := by sorry
Source
Derived elementary full-D runtime inequality for Xu, same manuscript, Sections 3-4; uses the proved full_d_call_balance.

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