Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Uniform bound for the actual pruned offline routine step count

Proved
ThreeSumSharpTail.pruned_offline_steps

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

3sumsharp-tailword-ram-costs

For every rational parameter record G, nonnegative cost constant C, and fixed setup constants c0,k, there is a uniform constant A such that CostsWithinP(G,C,N,D,Tp,Tq) implies tOffline32P(c0,G,N,D,w)+k <= A(Tp+w Tq) for every number w of queries. The natural step-count function includes preprocessing, parameter setup and the complete query loop. No additional asymptotic cost hypothesis is assumed.

Preamble
import Definitions.Def_APSP299791_Defs4

set_option autoImplicit false
set_option relaxedAutoImplicit false
Formal statement
theorem ThreeSumSharpTail.pruned_offline_steps (G : Light.Sec4.RatParams)
    (C : ℝ) (hC : 0 ≤ C) (c0 k : ℕ) :
    ∃ A : ℝ, ∀ N D : ℕ, ∀ tp tq : ℝ, ∀ w : ℕ,
      Light.Sec4.CostsWithinP G C N D tp tq →
        (Light.Sec4.tOffline32P c0 G N D w : ℝ) + (k : ℝ) ≤ A * (tp + (w : ℝ) * tq) := by sorry
Source
Reusable generic cost proof from the ACCEPTED TrulySubquadratic3SUM.exactTriangleUniform_9261_5000000 source, submission 45d9b962-dd72-4a1f-a54c-8186be3ae4ec, ThreeSumApsp/Pruned/CostsP.lean at source commit 27a2fa4bab32. Actual enumeration and time-function proof bodies are included; the existing proved enumeration/order statements are reused.

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