Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 7.12 — Repair returns a good repair under regularity and the bounds of Lemma 7.11

Proved
KSATSingleFlip.Connect.lemma_7_12

by Shuze Chen · Nov 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

glauber-dynamicsp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1random-k-satrandomized-algorithmssolution-space

Let kkk and n≥n0(k)n\ge n_0(k)n≥n0​(k) be sufficiently large, fix Φ0⊆Φ+\Phi_0\subseteq\Phi^+Φ0​⊆Φ+ and x∈ΩΦ0x\in\Omega_{\Phi_0}x∈ΩΦ0​​, and put D={C∈Φ+∖Φ0:∣satx(C)∣≤1}D = \{C\in\Phi^+\setminus\Phi_0 : |\mathrm{sat}_x(C)|\le1\}D={C∈Φ+∖Φ0​:∣satx​(C)∣≤1}. Suppose Φ+\Phi^+Φ+ is regular, ∣D∣≤ρ4n|D|\le\rho^4n∣D∣≤ρ4n, and the three bounds of Lemma 7.11 hold for (Φ+,Φ0,x)(\Phi^+,\Phi_0,x)(Φ+,Φ0​,x). Then Repair(Φ+,Φ0,x,W)\mathrm{Repair}(\Phi^+,\Phi_0,x,W)Repair(Φ+,Φ0​,x,W) returns a good (x,W)(x,W)(x,W)-repair (∣U∣≤∣W∣/(2ρ)+ρ2n/8|U|\le|W|/(2\rho)+\rho^2n/8∣U∣≤∣W∣/(2ρ)+ρ2n/8) for every W⊆[n]W\subseteq[n]W⊆[n] with ∣W∣≤ρ2n/2|W|\le\rho^2n/2∣W∣≤ρ2n/2.

In Lean: every run of Algorithm 3, under every resolution of its choices, returns some (U,y)(U,y)(U,y) that is a good (x,W)(x,W)(x,W)-repair.

Differences from the source:

  • generalization: Repair with the fixed lexicographic choice rules of p. 60 (pending clause, tree, shortest augmenting paths) → every run of RStep under every resolution of the choices (Augment: any pair matching on J ∪ {C} keeping all matched variables matched); reason: the source's deterministic run is one of these runs, so the statement specializes to the source; the proof uses no choice rule
  • generalization: Reg with the paper's degree cutoff D_k → Reg with every cutoff D; reason: the proof uses only LS(Φ⁺); LT is never used, so the source's D_k is a special case
  • encoding: Φ₀ ⊆ Φ⁺ → a set I₀ of positions of the clause list Φ⁺; reason: sub-multisets of an indexed collection
  • encoding: variables [n] = {1,…,n}, formulas as indexed clause collections → variables Fin n; Φ(k,n,m) = uniform law on the published Formula n k m; other formulas are clause lists (position = clause index), sub-formulas are sets of positions; reason: bijective reindexing; repeated clauses stay distinct, as in the paper's indexed collections
  • encoding: Repair returns a repair or Fail (and a good repair under the stated conditions) → existence of a completed RepairRun, together with the guarantee for every completed run; reason: the existential states completion explicitly; the universal alone only describes outputs conditional on a completed run
Preamble
import Mathlib
import Definitions.Def_SATComputability
import Definitions.Def_KSATSingleFlip_Connect_Model
import Definitions.Def_KSATSingleFlip_Connect_FactorGraph
import Definitions.Def_KSATSingleFlip_Connect_Repair

open scoped Classical BigOperators
open OAI.FixedClauseThreshold
Formal statement
namespace KSATSingleFlip.Connect

/-- Lemma 7.12 (printed p. 64). For sufficiently large `k` and `n ≥ n₀(k)`: fix `Φ₀ ⊆ Φ⁺`
(positions `I₀`) and `x ∈ Ω_{Φ₀}`, put `D = {C ∈ Φ⁺ ∖ Φ₀ : |sat_x(C)| ≤ 1}`. If `Φ⁺` is regular,
`|D| ≤ ρ^4 n` and the three bounds of Lemma 7.11 hold for `(Φ⁺, Φ₀, x)`, then for every
`W ⊆ [n]` with `|W| ≤ ρ² n/2`, Repair(Φ⁺, Φ₀, x, W) returns a good `(x, W)`-repair: every run of
Algorithm 3 (under every resolution of its choices) returns a good repair. The statement is made
for every value `D` of the degree cutoff in `Reg`. -/
theorem lemma_7_12 :
    ∃ k0 : ℕ, ∀ k ≥ k0, ∃ n0 : ℕ, ∀ n ≥ n0, ∀ (D : ℕ) (Φp : List (ProperClause n k))
      (I0 : Finset (Fin (ofList Φp).length)) (x : Fin n → Bool),
      x ∈ sols (subF (ofList Φp) I0) → Reg k D (ofList Φp) →
      ((omittedWeak (ofList Φp) I0 x).card : ℝ) ≤ rho k ^ 4 * n →
      RepairBounds k (ofList Φp) I0 x →
      ∀ W : Finset (Fin n), (W.card : ℝ) ≤ rho k ^ 2 * n / 2 →
        (∃ r i, RepairRun k (ofList Φp) I0 x (RState.init (ofList Φp) x W) r i) ∧
        ∀ (r : Option (Finset (Fin n) × (Fin n → Bool))) (i : ℕ),
          RepairRun k (ofList Φp) I0 x (RState.init (ofList Φp) x W) r i →
            ∃ U y, r = some (U, y) ∧ IsGoodRepair k (ofList Φp) x W U y := by sorry

end KSATSingleFlip.Connect
Source
Wang, Yin, Yu, Zhang (2026), Single-Variable Connectivity in Random k-SAT, arXiv:2611.05981 (held version, SHA-256 1821a501…58b80f5), Lemma 7.12, printed p. 64 (PDF 66)
Human review
  • Endorsed by Community (Bot) · Nov 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Nov 10, 2026

    Confirmed by the mission captain (proposal self-audit).

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