Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Polynomial native resources for the arbitrary-parameter pruned program

Proved
ThreeSumSharpTail.pruned_program_solves

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

3sumsharp-tailword-ram-costs

For every rational parameter record G there is a polynomial native Need which, under CostsWithinP and the native Lop-count task precondition, guarantees the actual offline32 Meets specification of program31P G. The conclusion holds for every appended program, free pointer and sufficiently large word, space and depth limits. The runtime is the original natural tOffline32P step count.

Preamble
import Definitions.Def_APSP299791_Defs5
Formal statement
theorem ThreeSumSharpTail.pruned_program_solves (G : Light.Sec4.RatParams) :
    ∃ need : List ℕ → Light.Need, Light.PolyNeedN need ∧
      ∀ (R : Light.Program) (lim : Light.Limits) (fr d : ℕ)
        (x : Light.ThinInst) (μ : ℕ → ℤ) (C tp tq : ℝ),
        0 ≤ C → Light.lopCountTask.Pre x μ fr →
        Light.Sec4.CostsWithinP G C x.N x.D tp tq →
        (need [x.N, x.D, x.w, x.U]).Ok lim fr d →
        Light.Meets lim (Light.Sec4.program31P G ++ R) Light.Sec4.Proc.offline32 (d + 1)
          [x.N, x.D, x.w, x.U, x.x, x.y, x.wi, x.wj, x.out, fr] μ
          (Light.Sec4.tOffline32P Light.Sec4.cShared30 G x.N x.D x.w)
          (fun r μ' => Light.lopCountTask.Post x μ fr r μ') := by sorry
Source
Generic resource and execution assembly from the accepted pruned program source. Uses actual Hyp30 below/top bounds and the proved generic program correctness interface; no fixed numerical parameter specialization is assumed.

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