Proof of Theorem 1: on the lower-bound input, ⟨T, s, b⟩* = k + 1 and A_k(⟨T, s, b⟩) = k + ε
ProvedJohnsonApprox.SubsetSum.lowerBoundInput_specLet and , and consider the input with , , for , and . Then:
- the optimal measure is ;
- every set choosable by on this input has measure ;
- at least one set is choosable by on this input.
Parts 2 and 3 together say that the performance of on this input, the worst measure over its choosable outputs, is
Letting shows that the constant of Theorem 1 is the best possible.
Formalization Note The input is lowerBoundInput k ε hε on Fin (k + 2). The paper takes small without stating a range; is needed so that fits into the bound when () and so that exactly elements of size are added after . Part 3 rules out the vacuous reading of part 2.
import Mathlib import Definitions.Def_JohnsonApprox_SubsetSum_Problem import Definitions.Def_JohnsonApprox_SubsetSum_Ak import Definitions.Def_JohnsonApprox_SubsetSum_LowerBoundInput
namespace JohnsonApprox.SubsetSum
theorem lowerBoundInput_spec (k : ℕ) (hk : 1 ≤ k) (ε : ℚ) (hε : 0 < ε) (hε1 : ε < 1) :
opt (lowerBoundInput k ε hε) = (k : ℚ) + 1 ∧
(∀ T₁, Choosable k (lowerBoundInput k ε hε) T₁ →
measure (lowerBoundInput k ε hε) T₁ = (k : ℚ) + ε) ∧
∃ T₁, Choosable k (lowerBoundInput k ε hε) T₁ := by sorry
end JohnsonApprox.SubsetSum
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. is a natural number with , and is a rational with .
Let be the following subset-sum input:
- the elements are the indices , and is all of them;
- and for ;
- .
As usual, , and is the maximum of over subsets with .
Choosable sets. A set is choosable by on this input when:
- An initial set is chosen from the elements with , that is, with . 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 state where every has .
- That state's equals .
Conclusion. All three of the following hold:
The third clause ensures the second is not vacuous.
Degenerate cases:
- is excluded by the hypothesis .
- Range of : the values and are excluded, so nothing is claimed for them.
- Division: the threshold equals exactly , and no division by zero occurs.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.