Theorem 6 — R[C2, EC(k)](n) ≤ 1 + ln(k) ≤ Σ_{j=1}^k (1/j) + 1/2, and R[C2, EC(k)](n) ≥ Σ_{j=1}^k (1/j) for large n
ProvedJohnsonApprox.ExactCover.overlapGreedy_exactCover_ratioTheorem 6 (Johnson 1974). For all and ,
and for all sufficiently large , .
Here EC is SET COVERING II restricted to families of sets with at most points each, measured by the total size of a subcover , and C2 is the greedy algorithm that repeatedly adds the set minimizing . Stated without the problem size , for every :
- for every input of EC with optimum and every subcover choosable by C2 on ,
- ;
- there are an input of EC with and a subcover choosable by C2 on with
The paper notes (without proof) that even an algorithm returning a minimum-cardinality subcover can be off by a factor of on this measure; C2 is within a logarithmic factor of the least-overlap cover, and its guarantee matches, up to an additive , the guarantee of the greedy algorithm C1 for minimum-cardinality set cover.
Formalization Note The paper's is the maximum, over inputs of size at most , of the worst ratio over outputs choosable by (p. 259); its notion of size is left unspecified. Part 1 states the bound for every input and every choosable output, which is equivalent to for all . Part 3 exhibits one input and one choosable output attaining ratio at least ; since is a maximum over the finitely many inputs of size at most and is nondecreasing in , this is equivalent to the claim for all sufficiently large . Ratios are stated multiplicatively (no division by ; for part 1 reads ). Choosability is the nondeterministic run relation of C2, with all ties at Step 3 allowed. The input in part 3 has points in ; is Mathlib's harmonic k.
import Mathlib import Definitions.Def_JohnsonApprox_ExactCover_Problem import Definitions.Def_JohnsonApprox_ExactCover_C2
namespace JohnsonApprox.ExactCover
/-- Theorem 6 (p. 271), size-free: for all `k ≥ 1`, (1) every subcover choosable by C2 on an
input of `EC(k)` has measure at most `(1 + ln k) · F*`; (2) `1 + ln k ≤ Σ_{j=1}^k 1/j + 1/2`;
(3) some input of `EC(k)` with `F* > 0` has a choosable subcover of measure at least
`(Σ_{j=1}^k 1/j) · F*`. -/
theorem overlapGreedy_exactCover_ratio (k : ℕ) (hk : 1 ≤ k) :
(∀ (α : Type) [DecidableEq α] (F : Input α), InEC k F →
∀ M, Choosable F M → (F.measure M : ℝ) ≤ (1 + Real.log k) * (F.opt : ℝ)) ∧
1 + Real.log k ≤ (harmonic k : ℝ) + 1 / 2 ∧
(∃ F : Input (ℕ × ℕ), InEC k F ∧ 0 < F.opt ∧
∃ M, Choosable F M ∧ (harmonic k : ℝ) * (F.opt : ℝ) ≤ (F.measure M : ℝ)) := by sorry
end JohnsonApprox.ExactCover
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement is a conjunction of three claims, all for a fixed natural number with . Several names come from the two imported definition files, whose code was not provided to me: , , , the measure , the optimum , and possibly . So I cannot expand them here. They are named below exactly as the code uses them. The auditor must look up what each one means before reading the claims below as more than a pattern.
- is a type of problem instances built over a ground type . always stands for one such instance.
- is a property of an instance that depends on .
- is a relation between an instance and an object . The type of is not written in the statement. It is whatever type takes.
- is a number assigned to relative to .
- is a number assigned to .
- Both numbers are converted to real numbers before being compared. Their original number type is not visible here.
- is the real natural logarithm, applied to viewed as a real number.
- is written in the code, converted to a real number. If it is Mathlib's harmonic number, then . The statement sits inside the namespace
JohnsonApprox.ExactCover, so a definition of the same name in the imported files would be used instead of Mathlib's, and its meaning would then have to be checked there.
The documentation comment above the theorem describes it as "Theorem 6 (p. 271)". That comment is not part of the formal assertion.
Claim (1): the upper bound. Take any ground type with decidable equality, drawn from the lowest universe of types. Take any instance with , and any with . Then
Claim (2): a numerical inequality. This claim does not mention any instance:
Claim (3): the lower-bound witness. There is an instance , with ground type the pairs of natural numbers, that satisfies all of the following:
- holds;
- ;
- there is some with and
The statement only asks that one such exists. It does not say that every choosable has this measure. It also does not require the witness instance to be larger for larger , or to belong to any particular family.
Degenerate cases.
- . This is excluded by the hypothesis , so nothing is claimed for it.
- . Here , so claim (1) becomes . Claim (2) becomes , which is if is Mathlib's harmonic number. Claim (3) asks for an instance with a choosable where , which is under the same assumption.
- When claim (1) is vacuous. Claim (1) covers every ground type, including the empty type and one-element types. It holds automatically for any instance with no choosable , and for any where fails. If could never be satisfied, claim (1) would say nothing at all. However, claim (3) forces at least one instance over that satisfies it and also has a choosable .
- Number types. If or is natural-number-valued, any subtraction or division inside the imported definitions follows truncated or zero-default conventions. This file does not show whether that happens. In that case, "" means .
- Real-valued operations. No division, logarithm of zero, or other default-valued operation occurs in the statement itself: is applied only to .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.