Lemma 2 — a selectable set is at most the sum of the harmonic numbers H(n(K,i)) over any cover M0
ProvedJohnsonApprox.SetCover.lemma2_selectable_card_leLet be any configuration of algorithm C1, and write for , the current size of the -th set. If is selectable from and is any set of indices such that , then
This is the heart of the upper bound in Theorem 4: applied to the initial configuration, with the index set of an optimal subcover, it bounds the size of every output of C1 by times the harmonic number when all sets have at most elements.
Formalization Note The inner sum is Mathlib's harmonic (n(K,i)) : ℚ, with . The sizes are those of the configuration , not of the original sets. and are finite sets of indices of the configuration.
import Mathlib import Definitions.Def_JohnsonApprox_SetCover_Problem import Definitions.Def_JohnsonApprox_SetCover_Config
namespace JohnsonApprox.SetCover
theorem lemma2_selectable_card_le {ι α : Type} [Fintype ι] [DecidableEq ι] [DecidableEq α]
(K : Config ι α) (M1 M0 : Finset ι)
(h1 : Selectable K M1) (h0 : M0.biUnion K.SET = K.UNCOV) :
(M1.card : ℚ) ≤ ∑ i ∈ M0, harmonic (K.SET i).card := by sorry
end JohnsonApprox.SetCover
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is a finite type with decidable equality, and has decidable equality.
- is any configuration. That is, is finite and satisfies .
- are finite sets of indices.
Hypotheses.
-
is selectable from . Some run from has as its set of chosen indices. At each step of a run:
- it requires ;
- it picks any maximizing ;
- it replaces by and every by .
The run ends when .
-
's sets cover exactly :
Conclusion. In the rationals,
with .
Degenerate cases.
- : the only run is empty, so , and the inequality reads a sum of nonnegative terms.
- : hypothesis 2 forces , and the claim is .
- Empty sets in : indices with contribute .
- Empty : both and are empty and the claim is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.