Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Repair admits a completed run

Proved
KSATSingleFlip.Connect.repair_terminates

by wcysai · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

Let Φ\PhiΦ be a finite Boolean formula on nnn variables, let I0I_0I0​ be a set of its clause positions, let xxx be an assignment, let WWW be a set of variables, and let kkk be a natural number. Algorithm 3, initialized with these inputs, has a completed run:

∃r,iRepairRun⁡(k,Φ,I0,x,init⁡(Φ,x,W),r,i).\exists r,i\quad \operatorname{RepairRun}(k,\Phi,I_0,x,\operatorname{init}(\Phi,x,W),r,i).∃r,iRepairRun(k,Φ,I0​,x,init(Φ,x,W),r,i).

The result rrr may be a repaired assignment or failure. This termination statement is a supporting part of the repair analysis; it does not assert successful repair. The formal statement permits arbitrary finite clauses and assignments.

Preamble
import Definitions.Def_KSATSingleFlip_Connect_Repair

Formal statement
namespace KSATSingleFlip.Connect

/-- Algorithm 3 admits a completed run from its initial state. -/
theorem repair_terminates {n : ℕ} (k : ℕ) (Φ : GFormula (Fin n))
    (I0 : Finset (Fin Φ.length)) (x : Fin n → Bool) (W : Finset (Fin n)) :
    ∃ r i, RepairRun k Φ I0 x (RState.init Φ x W) r i := by sorry

end KSATSingleFlip.Connect
Source
Wang, Yin, Yu, and Zhang, Single-Variable Connectivity in Random k-SAT, https://arxiv.org/abs/2611.05981, Algorithm 3 and proof of Lemma 7.4, pp. 60–62; derived supporting statement.

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