Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

High-probability success of Repair

Open
KSATSingleFlip.Connect.repair_probabilistic

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

For all sufficiently large kkk, all sufficiently large nnn, and any Poisson mean mmm at most (2kn/k) Λ(k)(2^kn/k)\,\Lambda(k)(2kn/k)Λ(k), fix an assignment zzz, a Glauber time ttt, and a degree cutoff DDD. Draw the clause count from Pois⁡(m)\operatorname{Pois}(m)Pois(m), draw the random kkk-CNF Φ+\Phi^+Φ+, and let XXX be the ttt-step Glauber state on the subformula Φ0\Phi_0Φ0​ of clauses satisfied by zzz. With probability at least 1−exp⁡(−ρ8n)1-\exp(-\rho^8 n)1−exp(−ρ8n), the following implication holds: if Φ+\Phi^+Φ+ is regular and at most ρ4n\rho^4nρ4n omitted clauses have at most one true literal under XXX, then for every WWW with ∣W∣≤ρ2n/2|W|\le\rho^2 n/2∣W∣≤ρ2n/2, Repair has a completed run and every completed run returns a good (X,W)(X,W)(X,W)-repair.

Pr⁡[the stated implication holds for all W]≥1−e−ρ8n.\Pr[\text{the stated implication holds for all }W]\ge1-e^{-\rho^8 n}.Pr[the stated implication holds for all W]≥1−e−ρ8n.

Here Λ(k)\Lambda(k)Λ(k), ρ(k)\rho(k)ρ(k), regularity, and good repair are the quantities defined in the paper. This is the probabilistic branch of Lemma 7.4, separate from deterministic correctness and cost.

Preamble
import Mathlib
import Definitions.Def_SATComputability
import Definitions.Def_KSATSingleFlip_Connect_Model
import Definitions.Def_KSATSingleFlip_Connect_FactorGraph
import Definitions.Def_KSATSingleFlip_Connect_Glauber
import Definitions.Def_KSATSingleFlip_Connect_Repair

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

theorem repair_probabilistic :
    (∃ k0 : ℕ, ∀ k ≥ k0, ∃ n0 : ℕ, ∀ n ≥ n0, ∀ m : ℝ, 0 ≤ m →
      m ≤ (2 : ℝ) ^ k * n / k * loosenessLambda k →
      ∀ (z : Fin n → Bool) (t D : ℕ),
        1 - Real.exp (-(rho k ^ 8) * n) ≤
          poisExp (allClauses n k) m (fun l =>
            uprob fun s : Fin t → Fin n × Bool =>
              let Φp := ofList l
              let I0 := satIdx Φp z
              let X := glauberState (subF Φp I0) z s
              Reg k D Φp → ((omittedWeak Φp I0 X).card : ℝ) ≤ rho k ^ 4 * n →
                ∀ W : Finset (Fin n), (W.card : ℝ) ≤ rho k ^ 2 * n / 2 →
                  (∃ r i, RepairRun k Φp I0 X (RState.init Φp X W) r i) ∧
                  ∀ (r : Option (Finset (Fin n) × (Fin n → Bool))) (i : ℕ),
                    RepairRun k Φp I0 X (RState.init Φp X W) r i →
                      ∃ U y, r = some (U, y) ∧ IsGoodRepair k Φp X W U y)) := by sorry

end KSATSingleFlip.Connect
Source
Wang, Yin, Yu, and Zhang, Single-Variable Connectivity in Random k-SAT, https://arxiv.org/abs/2611.05981, probabilistic branch of Lemma 7.4, printed p. 54 and proof pp. 60–64.

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