Set-cover weak duality: every packing is bounded by every fractional cover
ProvedPrimalDualOnline.SetCover.packing_le_fractionalWeak duality for the set-cover LP pair. For every fractional cover and every dual packing ,
Any feasible packing is therefore a certified lower bound on the cost of any fractional cover, and in particular on the fractional and integral optima. This is the specialisation of mission II's weak duality theorem to the covering matrix of set cover, and it is what makes the certificate bounds meaningful: without it, comparing a cover against an accumulated dual would say nothing about optimality.
Both instance fields are logically implied here rather than doing work - nonnegative cost follows from the packing hypothesis, and coverability from the fractional-cover hypothesis - and they are retained deliberately, to keep the statement about the source's model of the problem.
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.packing_le_fractional
{E S : Type*} [Fintype E] [Fintype S] [DecidableEq E] [DecidableEq S]
(I : SetCoverInstance E S) (x : S → ℝ) (y : E → ℝ)
(hx : IsFractionalCover I.sets x) (hy : IsDualPacking I.sets I.cost y) :
packingValue y ≤ fractionalCost I.cost x := 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.packing_le_fractional
Binders and instance arguments. The statement is universally quantified over two arbitrary types and (implicit arguments), with four typeclass arguments: is a finite type, is a finite type, equality on is decidable, and equality on is decidable. Finiteness does not exclude emptiness: either type may be empty. Decidable equality on is what allows to be formed by filtering ; decidable equality on is demanded as an instance argument, while none of the notions occurring in this statement mentions it. Three explicit arguments follow: a set-cover instance on (carrying , , the nonnegativity proof and the coverability proof), an arbitrary function , and an arbitrary function .
Hypotheses. Two, both about and with respect to the family and cost inside :
- is a fractional cover of , which unfolds to the conjunction of
There is no upper bound on any : entries are not capped at or anywhere else. 2. is a dual packing for , which unfolds to the conjunction of
The second constraint ranges over every index .
Conclusion.
A non-strict inequality between the total dual value over all of and the cost-weighted total of over all of .
1. Nonnegativity of cost; every element in some set. Nonnegativity of is not a loose hypothesis: it is a field of the bundled argument (as is coverability, ). Consequently the statement cannot be instantiated at a family/cost pair violating either: the argument cannot be formed without supplying both proofs, so the statement simply does not apply to such data. Neither field is mentioned in the conclusion; they travel along inside .
2. Logical redundancy. Both bundled proof fields are derivable from the remaining hypotheses.
- Nonnegativity of cost follows from hypothesis 2: for each , all terms of are nonnegative because , so .
- Coverability follows from hypothesis 1: if some had , then , contradicting ; hence , i.e. .
If these two fields were dropped (the statement restated over a bare family and bare cost with no such hypotheses), the collection of situations the statement covers would not change: every satisfying the two remaining hypotheses already satisfies both properties. No other hypothesis is derivable: nonnegativity of , the covering inequalities for , nonnegativity of , and the packing inequalities for are mutually independent.
3. Arbitrary or specific. The fractional cover is arbitrary: is universally quantified and constrained only by feasibility. No optimality is invoked — the notions of least fractional cost and least integral cover cost defined in the vocabulary are not used here. The dual vector is likewise arbitrary, constrained only by being a dual packing. There is no cover (no finite index set ) in this statement at all.
4. Cast from to . There is none: every quantity in this statement is real-valued, and no cardinality or frequency appears.
5. Degenerate cases.
- empty. Coverability is vacuous; the covering inequalities in hypothesis 1 and the nonnegativity of are vacuous; each is empty, so every packing constraint reads , which holds by the bundled nonnegativity. , and the conclusion becomes , a sum of products of nonnegative reals.
- empty. Then for every , so hypothesis 1 would demand ; thus the hypotheses are unsatisfiable unless is also empty. (Independently, the bundled coverability field already cannot be constructed with empty and nonempty.) With both empty, both sides are empty sums and the conclusion is .
- empty. Not applicable: no cover appears.
- . Nonnegativity holds. The packing constraints give , and with this forces for every lying in some — which, by coverability, is every . So and : the conclusion is .
- Individual zero-cost sets. If for a particular , the packing constraint at together with forces for every .
- . Not applicable: no multiplier appears.
- Unbounded entries of the fractional cover. Only and the covering inequalities are imposed; individual may be arbitrarily large, and the right-hand side is correspondingly unbounded above. Coordinates with are still summed over in , contributing .
- Empty sets are permitted; their packing constraint reads . Distinct indices may carry equal subsets.
Not asserted. Nothing about optimality: neither nor is claimed minimal, maximal, or extremal, and no least fractional cost or least cover cost is mentioned. No claim that the inequality is tight, attained, or reversible; no strict inequality. No claim that a fractional cover or a dual packing exists — both are supplied as arguments, so the statement is silent if none exists. Nothing about integral covers, cover cost, frequency, maximum frequency, or any approximation factor. No algorithm, no ordering or online structure, and no assertion that the hypotheses are simultaneously satisfiable.
Confirmed by the mission captain (proposal self-audit).