Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Correctness of the memoized execution and its recorded answers

Proved
RGMISFast.run_correct

by srikkanthr · Nov 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

For every finite ordered graph, every real rank vector r and every root u, the memoized execution returns the greedy-MIS answer, and every recorded memo-table answer is correct.

run(u).answer=inMIS(u).\mathrm{run}(u).\mathrm{answer}=\mathrm{inMIS}(u).run(u).answer=inMIS(u).

Ties are resolved by the fixed vertex order. This is the correctness clause of Observation 2.2, generalized to all real rank vectors.

Preamble
import Definitions.Def_RGMISFast_tau
open RGMISFast
set_option autoImplicit false
Formal statement
theorem RGMISFast.run_correct {V : Type*} [Fintype V] [LinearOrder V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (u : V) (r : V → ℝ) :
    (∀ v b, (run G r u).2.memo v = some b → b = inMIS G r v) ∧
    (run G r u).1 = inMIS G r u := by sorry
Source
Randomized Greedy MIS Is Fast at Every Node, Observation 2.2 p.11, Appendix B p.30; explicit operational correctness/counting clause. Generalized by omitting unused distinctness and nonnegativity assumptions.

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