Proof of Theorem 1: Step 1 makes m(T_1^BIG) ≥ m(T_0^BIG)
ProvedJohnsonApprox.SubsetSum.step1_big_dominatesLet and let be a SUBSET-SUM input. For a set write . If is choosable by algorithm on this input and is any approximate solution (), then
In the paper this is the sentence "By Step 1 of algorithm , ", stated for an optimal solution . It is the first half of the case analysis behind the upper bound of Theorem 1: the big elements selected by the algorithm are at least as heavy as those of any feasible solution.
Formalization Note The statement is made for every approximate solution , not only an optimal one, which is stronger and is what the paper's argument gives. "Choosable" is the nondeterministic run relation of the definition of , so the inequality holds for every tie-break in Steps 1 and 3.
import Mathlib import Definitions.Def_JohnsonApprox_SubsetSum_Problem import Definitions.Def_JohnsonApprox_SubsetSum_Ak
namespace JohnsonApprox.SubsetSum
theorem step1_big_dominates {α : Type} [DecidableEq α] (k : ℕ) (hk : 1 ≤ k) (u : Input α)
(T₀ T₁ : Finset α) (hT₁ : Choosable k u T₁) (hT₀ : IsFeasible u T₀) :
measure u (bigPart k u T₀) ≤ measure u (bigPart k u T₁) := by sorry
end JohnsonApprox.SubsetSum
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is any type with decidable equality.
- is a natural number with .
- is any subset-sum input: is a finite subset of , is positive on , and is rational.
- The measure is .
- The big part of a finite set is .
Hypotheses. and are finite subsets of such that:
- is feasible: and .
- is choosable by on , meaning:
- There is a set of big elements of with , whose measure is at least that of every other set of big elements of with measure at most .
- Starting from the state , finitely many steps (possibly zero) reach a state .
- In each step, the state is not halted and some with has the largest among all such elements of . The step moves from into and adds to .
- The final state halts: every has .
- The final equals .
Conclusion.
Degenerate cases:
- is excluded by the hypothesis .
- Empty : both and must be empty, and the claim reads .
- Choosable sets may not exist: if no halting run exists for some input, the hypothesis on cannot be satisfied and the statement is vacuous for that input.
- Division: there is no division by zero, since .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.