Proof of Theorem 6 — the next chosen set has Ratio(S′) ≤ a/(1 − x) − 1
ProvedJohnsonApprox.ExactCover.ratio_le_of_covered_fractionLet be an input of SET COVERING II with nonempty covered set and optimum . At a state reachable by algorithm C2 on , let
be the fraction of covered so far. If C2 may choose next, then
This bounds the overlap paid per newly covered point by an increasing function of the covered fraction; integrating it gives the bound on the cumulative overlap.
Formalization Note Every denominator is positive: by hypothesis, a set C2 may choose meets UNCOV, and UNCOV whenever C2 may choose, so . Here as a real number.
import Mathlib import Definitions.Def_JohnsonApprox_ExactCover_Problem import Definitions.Def_JohnsonApprox_ExactCover_C2
namespace JohnsonApprox.ExactCover
/-- Proof of Theorem 6 (p. 271): with `a = F*/|T|` and `x = |T − UNCOV|/|T|`, the next set `S′`
chosen by C2 has `Ratio(S′) ≤ a/(1 − x) − 1`. -/
theorem ratio_le_of_covered_fraction {α : Type} [DecidableEq α] (F : Input α)
(hT : F.ground.Nonempty) {σ : State F} {i : Fin F.p} (hσ : Reachable F σ)
(hi : MayChoose F σ i) :
((F.S i \ σ.UNCOV).card : ℝ) / ((F.S i ∩ σ.UNCOV).card : ℝ) ≤
((F.opt : ℝ) / (F.ground.card : ℝ)) /
(1 - ((F.ground \ σ.UNCOV).card : ℝ) / (F.ground.card : ℝ)) - 1 := by sorry
end JohnsonApprox.ExactCover
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;
- is an index.
The hypotheses are:
- .
- is reachable from by zero or more greedy steps. Each step is taken only when and uses an admissible index , which it moves from to while setting .
- is admissible in :
- ;
- ;
- for all with ,
Write and . The conclusion, with real division throughout, is
Which divisions could default.
- by hypothesis 3.
- by hypothesis 1.
- For : every reachable state has , since it starts equal to and only shrinks. Hypothesis 3 forces . So .
Hence no division by zero occurs under the hypotheses, and the right side equals .
Degenerate cases. Hypotheses 1 and 3 rule out and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.