Double counting: a tight cover costs at most times the dual value
ProvedPrimalDualOnline.SetCover.coverCost_le_maxFrequency_mul_packingThe substantive step inside Theorem 2.6, isolated so that the goal reduces to it plus weak duality. For a primal-dual certificate ,
Tightness on the chosen sets rewrites the left side as . Exchanging the order of summation groups this by element: each contributes once for every chosen set containing it, that is times, and that count is at most the element's frequency and hence at most . Nonnegativity of is what lets the count be replaced by the bound .
Note that this step does not mention a fractional cover at all, and that is a property of the whole family over all of - nothing ties it to .
Instance-bundled hypotheses. The problem's two standing assumptions - every set cost is nonnegative, and every element lies in at least one available set - are not loose hypotheses of this statement. They are fields of the SetCoverInstance argument, so the statement cannot be instantiated at data violating either.
import Definitions.Def_PrimalDualOnline_SetCover import Mathlib.Tactic
open PrimalDualOnline.SetCover
theorem PrimalDualOnline.SetCover.coverCost_le_maxFrequency_mul_packing
{E S : Type*} [Fintype E] [Fintype S] [DecidableEq E] [DecidableEq S]
(I : SetCoverInstance E S) (C : Finset S) (y : E → ℝ)
(hcert : IsPrimalDualCertificate I.sets I.cost C y) :
coverCost I.cost C ≤ (maxFrequency I.sets : ℝ) * packingValue y := by sorryRead-back
What the Lean code literally says, in plain math · claude-opus-5
Read-backs: certificate bounds
Throughout, the shared vocabulary is expanded as follows. A set-cover instance on two types (elements) and (set indices) is a bundle of exactly four components:
- a family , i.e. a finite subset for each index ;
- a cost function ;
- a proof of nonnegative cost: ;
- a proof of coverability: .
Derived notions, all expanded inline in each section below:
where is formed by filtering the whole index type , is a cardinality in , and is a supremum in taken over all of — a supremum of an empty family, which is when is empty. Further:
sums only over the given finite index set ; sums over all of ; sums over all of .
PrimalDualOnline.SetCover.coverCost_le_maxFrequency_mul_packing
Binders and instance arguments. Universally quantified over arbitrary types and (implicit), with four typeclass arguments: finite, finite, equality on decidable, equality on decidable. Either type may be empty. Decidable equality on is needed to form and hence the frequencies; decidable equality on is required as an instance argument though no notion in the statement refers to it. Three explicit arguments: a set-cover instance on (carrying , , the proof , and the proof ); a finite set of indices ; and a function .
Hypothesis. A single hypothesis: is a primal–dual certificate for . This unfolds to a conjunction of three parts, the middle one itself a conjunction:
- covers : .
- is a dual packing: , and — the inequality holding at every index of , not only those in .
- Tightness on : , an exact equality.
Conclusion.
with a natural number cast into . The frequencies counted in range over all of , including indices outside .
1. Nonnegativity of cost; every element in some set. Both are fields of the bundled argument , not loose hypotheses. The statement therefore cannot be instantiated at data violating either: cannot be constructed without both proofs.
2. Logical redundancy.
- Nonnegativity of cost is derivable from conjunct 2: makes a sum of nonnegative terms, so for every .
- Coverability is derivable from conjunct 1: a witness with is in particular a witness with .
- Within the certificate there is a partial overlap: for indices , the packing inequality of conjunct 2 follows from the equality of conjunct 3. So conjunct 2's family of inequalities is doing independent work only at indices outside ; its nonnegativity half, , is not derivable from anything else, nor is conjunct 1, nor conjunct 3 (the equality does not follow from the inequality).
Dropping the two bundled fields would not change the situations covered: any satisfying the certificate hypothesis already satisfies both. Replacing conjunct 2's inequalities by the restriction "" would likewise cover exactly the same situations.
3. Arbitrary or specific. No fractional cover appears in this statement. The cover is arbitrary, constrained only by being a covering index set that is tight for ; it is not claimed to be minimum-cost, minimal, or produced by any procedure. The dual vector is arbitrary, constrained only by being a dual packing tight on ; it is not claimed to be of maximum packing value.
4. Cast from to . The cast occurs at the multiplier: , the maximum frequency, is computed in (a supremum of cardinalities over the finite type , with the empty supremum equal to ) and then cast into to be multiplied by the real number . When the cast value is , the conclusion reduces to
means every element has frequency , or that there is no element at all. Coverability (a field of , and also a consequence of conjunct 1) gives for every , so under these hypotheses happens exactly when is empty. In that case the hypotheses force both sides to be : each is a subset of the empty type and hence empty, so conjunct 3 gives for every , whence ; and as an empty sum, so the right-hand side is . The claim becomes .
5. Degenerate cases.
- empty. As just described: covering is vacuous, is vacuous, , , tightness forces on , and the conclusion is . Every is admissible (there are no elements to constrain).
- empty. The only finite index set is , and the bundled coverability field then requires empty as well; all three quantities , , are .
- empty. Conjunct 1 then demands, for each , an index in the empty set — impossible unless is empty. So is admissible only in the -empty case, where the conclusion is .
- . Conjunct 2 forces , and with this gives for every belonging to some , i.e. (by coverability) for every . Then and : the conclusion is .
- Individual zero-cost sets inside the certificate. If for some , conjunct 3 gives , and with this forces for every . The same conclusion follows from conjunct 2 for a zero-cost index outside . Thus zero-cost sets pin the dual to zero on all their elements.
- small or large. (every element in exactly one set) leaves the conclusion ; large weakens it. Nothing in the statement bounds against , , or , nor relates to in any way — it is a property of the whole family .
- . Not applicable: no external multiplier appears; the multiplier is the cast maximum frequency.
- Unbounded entries of a fractional cover. Not applicable: no fractional cover appears.
- Indices in may carry empty or duplicated subsets; may contain indices whose removal would still leave a cover.
Not asserted. No claim that is a minimum-cost cover or that has maximum packing value; the least-cover-cost and least-fractional-cost notions in the vocabulary are not mentioned, so nothing is asserted about any optimum. No comparison with the fractional relaxation. No claim that a primal–dual certificate exists for any instance, nor that the hypotheses are satisfiable. No claim that , that the bound is tight or attained, no reverse inequality, and no strict inequality. Nothing about algorithms, online arrival, or how and might be produced.
Confirmed by the mission captain (proposal self-audit).