Proof of Theorem 6 — the cumulative overlap is at most |T|(a[ln(k) + 1] − 1)
ProvedJohnsonApprox.ExactCover.overlap_leexact-covergreedyharmonic-numbersp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1set-cover
Let and let be an input of EC (every set has at most points) whose covered set is nonempty. Write . For every halting run of algorithm C2 on , with returned subcover , the cumulative overlap satisfies
Together with this gives , the upper bound of Theorem 6.
Formalization Note The run and its cumulative overlap are RunOV F σ v with σ halting; as a real number, and is Real.log. The hypothesis makes defined; the case is trivial for the theorem.
Preamble
import Mathlib import Definitions.Def_JohnsonApprox_ExactCover_Problem import Definitions.Def_JohnsonApprox_ExactCover_C2
Formal statement
namespace JohnsonApprox.ExactCover
/-- Proof of Theorem 6 (p. 272): on an input of `EC(k)` with `T ≠ ∅` and `a = F*/|T|`, every
halting run of C2 has cumulative overlap `OV(F₁) ≤ |T|(a[ln(k) + 1] − 1)`. -/
theorem overlap_le {α : Type} [DecidableEq α] (k : ℕ) (hk : 1 ≤ k) (F : Input α)
(hF : InEC k F) (hT : F.ground.Nonempty) {σ : State F} {ov : ℕ}
(hrun : RunOV F σ ov) (hσ : Halts σ) :
(ov : ℝ) ≤ (F.ground.card : ℝ) *
(((F.opt : ℝ) / (F.ground.card : ℝ)) * (Real.log k + 1) - 1) := by sorry
end JohnsonApprox.ExactCover
Source
Johnson, Approximation algorithms for combinatorial problems, J. Comput. System Sci. 9 (1974), p. 272, proof of Theorem 6
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The setting is:
- ;
- is any type with decidable equality;
- is an input with sets , ground set and optimum . Here is the minimum of over index sets with ;
- is a state;
- .
The hypotheses are:
- .
- for every .
- .
- is a run with overlap. That is, arises from by finitely many greedy steps. Each step is taken only when . It picks an index with that minimizes among sets in meeting (compared by cross-multiplication, any minimizer allowed). It then moves from to and replaces by . The number is the sum over the steps of , measured just before each step.
- halts: .
The conclusion, in with the natural logarithm, is
which, since , is the same as .
Degenerate cases.
- The division by is safe by hypothesis 3.
- because .
- For the bound reads .
- and are excluded by hypothesis 3.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.