Proof of Theorem 2: when B1 halts, every clause left in LEFT is dead
ProvedJohnsonApprox.MaxSatGreedy.halt_left_deadRun algorithm B1 on a set of clauses and let be a state reached from the initial state at which Step 2 halts. Then for every clause remaining in and every literal ,
In other words, every literal of was removed from LIT when its complement was made true: has been wounded once for each of its literals and can no longer be satisfied by extending TRUE.
Together with the per-step accounting, this bounds the number of clauses B1 fails to satisfy.
Formalization Note "Reached from the initial state" is Reachable S σ; the conclusion is stated for every literal of every clause of LEFT, which is the paper's "wounded as many times as they contain literals".
import Mathlib import Definitions.Def_JohnsonApprox_Shared_Problem import Definitions.Def_JohnsonApprox_MaxSatGreedy_B1
namespace JohnsonApprox.MaxSatGreedy
theorem halt_left_dead (S : Finset Shared.Clause) (σ : State) (hσ : Reachable S σ) (hh : Halts σ) :
∀ C ∈ σ.LEFT, ∀ l ∈ C, l ∉ σ.TRUE ∧ l.neg ∈ σ.TRUE := by sorry
end JohnsonApprox.MaxSatGreedy
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This theorem uses the greedy procedure's notions:
- A state has a set of remaining clauses and a finite set of chosen literals .
- is reachable from a finite clause set if it arises from the initial state by zero or more admissible steps. The initial state is with all other components empty. Each step picks an undecided-variable literal that occurs in the most clauses, moves those clauses from to , adds to and marks 's variable decided.
- halts if every literal of every clause in has a decided variable.
The operation comes from the shared module; its definition is not included here.
Claim. For every finite set of clauses and every state that is reachable from and halts: for every clause and every literal ,
No hypothesis restricts . Degenerate cases:
- If is empty, the claim is vacuous. This is the case, for example, when .
- It is also vacuous if every clause of has no literals.
- The statement says nothing about clauses in .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.