Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Repair cannot fail under small-set bounds

Proved
KSATSingleFlip.Connect.repair_no_fail_from_bounds

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

Consider a state sss reached by Repair on a finite formula Φ\PhiΦ with nonempty clause scopes, starting from an assignment xxx satisfying the designated subformula. Suppose k≥4k\ge4k≥4, local sparsity and the repair bounds hold, at most ρ4n\rho^4 nρ4n omitted clauses are weak under xxx, and ∣U∣≤ρn|U|\le\rho n∣U∣≤ρn for the state's current variable set UUU. If

2(ρ4n+max⁡ ⁣{ρ4n,∣U∣1024(log⁡k)20})≤ρn,2\left(\rho^4n+\max\!\left\{\rho^4n,\frac{|U|}{1024(\log k)^{20}}\right\}\right)\le\rho n,2(ρ4n+max{ρ4n,1024(logk)20∣U∣​})≤ρn,

then no next Repair step can return failure. This is the deterministic non-failure step in the proof of Lemma 7.12; bounding ∣U∣|U|∣U∣ and obtaining the numerical inequality remain separate obligations.

Preamble
import Definitions.Def_KSATSingleFlip_Connect_Repair

Formal statement
namespace KSATSingleFlip.Connect

theorem repair_no_fail_from_bounds {n : ℕ} (k : ℕ) (Φ : GFormula (Fin n))
    (I0 : Finset (Fin Φ.length)) (x : Fin n → Bool) (W : Finset (Fin n))
    (s : RState Φ x) (j : ℕ) (c : Fin Φ.length)
    (hx : x ∈ sols (subF Φ I0))
    (hreach : RepairReach k Φ I0 x (RState.init Φ x W) s j)
    (hk : 4 ≤ k) (hscope : ∀ c : Fin Φ.length, (vbl (Φ.get c)).Nonempty)
    (hLS : LS k Φ) (hBounds : RepairBounds k Φ I0 x)
    (hD : ((omittedWeak Φ I0 x).card : ℝ) ≤ rho k ^ 4 * n)
    (hU : (s.U.card : ℝ) ≤ rho k * n)
    (hnum : 2 * (rho k ^ 4 * n + max (rho k ^ 4 * n)
       (s.U.card / (1024 * Real.log k ^ 20))) ≤ rho k * n) :
    ¬ RStep k Φ I0 x s c none := by sorry

end KSATSingleFlip.Connect
Source
Wang, Yin, Yu, and Zhang, Single-Variable Connectivity in Random k-SAT, https://github.com/sigact-stoc/stoc2027/releases/download/papers-1/737.pdf, proof of Lemma 7.12, printed p. 65 (PDF p. 67).

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