Proof of Theorem 4.1 — the Hamming distance to a strong witness is an integer potential
ProvedCorrelatedLocalSearch.sat_walk_potentiallocal-searchp2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1random-walkssatisfiabilityweak-random-sources
Let , let be a -CNF on variables with strong witness , and write for the Hamming distance.
- If a clause of is violated by , then at least of the literal positions of have the property that flipping the variable of the -th literal decreases by one.
- Flipping any variable changes by exactly one: or .
- Every with satisfies ; equivalently, every live (unsatisfying) assignment has positive potential.
Hence the promise-SAT walk, with potential , satisfies the hypotheses of Lemma C.1 with whenever .
Formalization Note Flips are counted by literal position with Set.ncard; is Mathlib's hammingDist.
Differences from the source:
- encoding: integers k/2 < r < k → natural numbers k, r with k < 2r and r < k; reason: same instances
- generalization: all flips of a violated clause other than the r decreasing ones increase d by one → every flip of every variable changes d by exactly one, together with clause 1; reason: clause 1 and the ±1 property imply the paper's statement; the ±1 property holds for any flip
Preamble
import Mathlib import Definitions.Def_CorrelatedLocalSearch_Clause import Definitions.Def_CorrelatedLocalSearch_walkTau set_option autoImplicit false
Formal statement
namespace CorrelatedLocalSearch
/-- The SAT walk has the potential of Lemma C.1 (Xu, *Local Search with Correlated
Randomness*, arXiv:2607.17469 (sha256 17e00d69…), App. C.1, proof of Theorem 4.1, p.23): let
`x∗` be a strong witness of the `k`-CNF `Φ` and `d(x) = d_H(x, x∗)`.
1. If a clause `C` of `Φ` is violated by `x`, at least `r` of the `k` flips of its literals'
variables decrease `d` by one;
2. every flip of a variable changes `d` by exactly one;
3. an assignment at distance `0` from `x∗` satisfies `Φ` ("every live assignment has positive
potential").
**Formalization Note** Flips are counted by literal position `i : Fin k` (`Set.ncard`); `d_H` is
Mathlib's `hammingDist`. -/
theorem sat_walk_potential (k r n : ℕ) (hk : k < 2 * r) (hr : r < k)
(Φ : List (Clause k n)) (xs : Fin n → Bool) (hxs : IsStrongWitness r Φ xs) :
(∀ C ∈ Φ, ∀ x : Fin n → Bool, C.Violated x →
r ≤ Set.ncard {i : Fin k |
hammingDist (flipVar x (C.lit i).1) xs + 1 = hammingDist x xs}) ∧
(∀ (x : Fin n → Bool) (v : Fin n),
hammingDist (flipVar x v) xs = hammingDist x xs + 1 ∨
hammingDist (flipVar x v) xs + 1 = hammingDist x xs) ∧
(∀ x : Fin n → Bool, hammingDist x xs = 0 → Satisfies Φ x) := by sorry
end CorrelatedLocalSearch
Source
Xu, Local Search with Correlated Randomness, arXiv:2607.17469 (sha256 17e00d69…), App. C.1, proof of Theorem 4.1, p.23 (PDF p.25)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.