Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Pruned offline program correctness for arbitrary rational parameters

Proved
ThreeSumSharpTail.pruned_program_correct

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

3sumsharp-tailword-ram-costs

For every finite rational parameter record G, the published program31P(G) satisfies OfflineSpec32P at every machine limit. It executes the specified preprocessing and queries on the actual stored matrices and selected entries, with the declared step counts. This is the generic correctness interface of the pruned program; asymptotic cost regimes, word-size polynomial bounds and the 3SUM reduction are separate conclusions.

Preamble
import Definitions.Def_APSP299791_Defs5

set_option autoImplicit false
set_option relaxedAutoImplicit false
Formal statement
theorem ThreeSumSharpTail.pruned_program_correct (G : Light.Sec4.RatParams) : ∀ lim,
    Light.Sec4.OfflineSpec32P lim (Light.Sec4.program31P G) Light.Sec4.cShared30 G := by sorry
Source
Reusable generic portion of the ACCEPTED proof of Light.Sec4.allInstancesP_programP, submission 50de6837-5a9a-4f1f-ab1f-e9cff8fc270a. ThreeSumApsp/Pruned/Program31P.lean and related choosing-parameter specifications at formal-math commit 27a2fa4bab32. The preprocessing, query and offline procedure proofs are generic in G; the later fixed-parameter wrapper is excluded.

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