Proof of Theorem 3 — at halting, |LEFT| ≤ |S|/2^k and |SUB| ≥ |S|(1 − 1/2^k)
ProvedJohnsonApprox.MaxSatWeighted.halt_sub_card_boundLet be a finite set of clauses each containing at least distinct literals, and consider a state of algorithm B2 reached from its start on in which the algorithm halts. Then
The second bound does not involve : as the paper remarks, B2 always returns at least clauses. Since , it gives the upper bound of Theorem 3.
Formalization Note Both bounds are multiplied out in : and (for , so the truncated subtraction is exact).
import Mathlib import Definitions.Def_JohnsonApprox_Shared_Problem import Definitions.Def_JohnsonApprox_MaxSatWeighted_B2
namespace JohnsonApprox.MaxSatWeighted
/-- Proof of Theorem 3 (p. 264): when B2 halts on an input `S` of `MS(k)`,
`|LEFT| ≤ |S|/2^k` and `|SUB| ≥ |S|(1 − 1/2^k)`, stated without division. -/
theorem halt_sub_card_bound (k : ℕ) (S : Finset Shared.Clause) (hS : Shared.InMS k S) (σ : State)
(hσ : Reachable S σ) (hhalt : Halts σ) :
2 ^ k * σ.LEFT.card ≤ S.card ∧ (2 ^ k - 1) * S.card ≤ 2 ^ k * σ.SUB.card := 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. Let be a state reachable from by admissible B2 steps, and assume halts. The theorem asserts both of the following inequalities between natural numbers:
Here is the number of clauses in a finite set.
Degenerate cases. The subtraction is truncated subtraction on , but , so it is never cut off at zero. If , the claims become and . If , both sides of both inequalities are . Whether can be satisfied depends on its definition, which is not shown.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.