Proof of Theorem 1: an excluded small element does not fit, so m(T_1) > kb/(k + 1)
ProvedJohnsonApprox.SubsetSum.excluded_small_does_not_fitLet , let be a SUBSET-SUM input, and let be choosable by algorithm . Suppose some element with is small, i.e. . Then
- (Step 2 of halted with still in LEFT);
- ;
- .
This is the paper's chain
It is the second half of the case analysis behind the upper bound of Theorem 1: if the algorithm leaves out any small element, its output already has measure within a factor of .
Formalization Note The three conclusions are stated multiplicatively, without division: , and , with cast to . The element is any element of outside (in the paper it comes from an optimal solution , which is a special case).
import Mathlib import Definitions.Def_JohnsonApprox_SubsetSum_Problem import Definitions.Def_JohnsonApprox_SubsetSum_Ak
namespace JohnsonApprox.SubsetSum
theorem excluded_small_does_not_fit {α : Type} [DecidableEq α] (k : ℕ) (hk : 1 ≤ k)
(u : Input α) (T₁ : Finset α) (hT₁ : Choosable k u T₁) (x : α) (hxT : x ∈ u.T)
(hxT₁ : x ∉ T₁) (hsmall : u.s x ≤ u.b / ((k : ℚ) + 1)) :
u.b < u.s x + measure u T₁ ∧
(k : ℚ) * u.b < ((k : ℚ) + 1) * measure u T₁ ∧
(k : ℚ) * opt u ≤ ((k : ℚ) + 1) * measure 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 .
- is the maximum of over all with .
Hypotheses.
- is choosable by on , meaning:
- Some set of elements of with is chosen. It has and maximum measure among all such sets with measure at most .
- From the state , zero or more steps are taken.
- In each step, the state is not halted and some with maximizes among such elements. The step moves from into and adds to .
- The run reaches a halting state: every has .
- That state's equals .
- is an element with , , and .
Conclusion. All three of the following hold:
Degenerate cases:
- is excluded by the hypothesis .
- No suitable : if every element of with lies in , or has no such elements (in particular when is empty), the hypotheses cannot be satisfied and the statement is vacuous for that input.
- No choosable set: the statement is also vacuous if no choosable exists.
- Division: there is no division by zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.