Proof of Theorem 2: each B1 step saves at least as many clauses as it wounds
ProvedJohnsonApprox.MaxSatGreedy.saved_ge_woundedConsider one iteration of algorithm B1, from state to state , in which Step 3 chooses the literal . The clauses saved in this iteration are , the clauses of LEFT that contain ; they are added to SUB. The clauses wounded are those still in LEFT after the iteration that contain the complementary literal : they lose the literal from LIT without being satisfied. Then
This is the per-iteration accounting on which the upper bound of Theorem 2 rests.
Formalization Note The iteration is StepWith σ y σ' from the B1 definition file, which carries Step 3's maximality of over all literals of LIT. A clause containing both and is saved, not wounded.
import Mathlib import Definitions.Def_JohnsonApprox_Shared_Problem import Definitions.Def_JohnsonApprox_MaxSatGreedy_B1
namespace JohnsonApprox.MaxSatGreedy
theorem saved_ge_wounded (σ σ' : State) (y : Shared.Literal) (h : StepWith σ y σ') :
(σ'.LEFT.filter (fun C => y.neg ∈ C)).card ≤ (σ.YT y).card := by sorry
end JohnsonApprox.MaxSatGreedy
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This theorem uses the state and step notions defined for the greedy procedure:
- A state has a set of clauses (among other components).
- is the set of clauses of 's that contain the literal .
- says three things. First, does not halt. Second, 's variable is not yet decided in . Third, occurs in at least as many clauses of as any other literal with an undecided variable. Then is obtained by removing from , adding it to , adding to and adding 's variable to .
The theorem uses an operation on literals from the shared module. Its definition is not included here.
Claim. For all states and every literal with ,
The left side counts clauses that remain after the step and contain . The right side counts clauses removed by the step.
Degenerate cases: need not be reachable from any input; any state satisfying the step relation is covered. The step relation requires that does not halt, so if no step is possible the theorem is vacuous for that . What is, and whether it has an undecided variable in , depends entirely on the unshown definition.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.