Proof of Theorem 3 — the total weight of LEFT never increases
ProvedJohnsonApprox.MaxSatWeighted.left_weight_nonincreasingLet be a finite set of clauses each containing at least distinct literals, and consider any run of algorithm B2 on (with any admissible choices of the literal in Step 3).
- In every iteration of the run, the total weight of the clauses in LEFT does not increase:
- Consequently, in every state reached by the run, and in particular when the algorithm halts,
The reason, in the paper's words, is that the weight removed from LEFT in Step 4 is at least the weight added to the remaining clauses that are wounded.
Formalization Note Part 1 is stated for states reachable from the initial state (the paper's "during each iteration"); it uses that weights stay nonnegative, which holds along runs but not for arbitrary states.
import Mathlib import Definitions.Def_JohnsonApprox_Shared_Problem import Definitions.Def_JohnsonApprox_MaxSatWeighted_B2
namespace JohnsonApprox.MaxSatWeighted
/-- Proof of Theorem 3 (pp. 263–264): along any run of B2 on an input of `MS(k)`, one iteration
never increases the total weight of `LEFT`, and so the weight of `LEFT` in every reachable
state (in particular at halting) is at most `|S|/2^k`. -/
theorem left_weight_nonincreasing (k : ℕ) (S : Finset Shared.Clause) (hS : Shared.InMS k S) :
(∀ σ σ' : State, Reachable S σ → Step σ σ' → σ'.weight σ'.LEFT ≤ σ.weight σ.LEFT) ∧
(∀ σ : State, Reachable S σ → σ.weight σ.LEFT ≤ (S.card : ℚ) / 2 ^ k) := by sorry
end JohnsonApprox.MaxSatWeighted
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and let be a finite set of clauses with . This is the predicate Shared.InMS, defined in a module that is not shown. The theorem uses the B2 definitions: a state has a clause set and a weight function , and . "Reachable" means reachable from by zero or more admissible steps. The theorem asserts two things together.
- If is reachable and is one admissible step (for some literal), then
Each side uses its own state's weight function. 2. Every reachable state satisfies
These are rational numbers. The second part covers every reachable state, not just halting ones, and includes .
Degenerate cases. If , the only reachable state is , which has no successors. Part 1 is then vacuous, and part 2 reads . If , the bound in part 2 is . Whether the hypothesis can be satisfied, and what it requires, cannot be seen from the code shown.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.