Proof of Theorem 2: at halting |SUB| ≥ k·|LEFT|, and SUB, LEFT partition S
ProvedJohnsonApprox.MaxSatGreedy.halt_sub_ge_k_leftgreedymaximum-satisfiabilityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1
Let and let be an input of : every clause of has at least distinct literals. Let be a state reached by algorithm B1 from the initial state on at which Step 2 halts. Then
and SUB and LEFT are disjoint with .
Consequently B1 always returns at least clauses, which is stronger than the ratio bound of Theorem 2 since .
Preamble
import Mathlib import Definitions.Def_JohnsonApprox_Shared_Problem import Definitions.Def_JohnsonApprox_MaxSatGreedy_B1
Formal statement
namespace JohnsonApprox.MaxSatGreedy
theorem halt_sub_ge_k_left (k : ℕ) (S : Finset Shared.Clause) (hS : Shared.InMS k S) (σ : State)
(hσ : Reachable S σ) (hh : Halts σ) :
k * σ.LEFT.card ≤ σ.SUB.card ∧ Disjoint σ.SUB σ.LEFT ∧ σ.SUB ∪ σ.LEFT = S := by sorry
end JohnsonApprox.MaxSatGreedy
Source
Johnson, Approximation algorithms for combinatorial problems, J. Comput. System Sci. 9 (1974), p. 262, proof of Theorem 2
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This theorem uses the greedy procedure's states, with components:
- and , finite sets of clauses;
- , a finite set of literals;
- , a finite set of variable indices.
It also uses these notions:
- Reachable from : obtained from by zero or more steps. Each step picks a literal whose variable is undecided and that occurs in at least as many clauses as any other undecided-variable literal. It moves the clauses containing from to , adds to and marks 's variable decided. A step is allowed only from a non-halting state.
- Halts: every literal in every clause has a decided variable.
- : a predicate from the shared module on a natural number and a finite clause set . Its definition is not included here, so its content cannot be expanded.
Claim. For every , every finite clause set with , and every state reachable from that halts:
Degenerate cases:
- For the inequality is trivially true, and only the partition claims carry content.
- If , the inequality is trivial.
- If cannot be satisfied for some , the theorem is vacuous for that . Whether that happens depends on the unshown definition.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.