Optimum of the canonical fractional ski-rental program is
ProvedPrimalDualOnline.SkiRental.lp_optimum_boxLet be the purchase price and the number of ski days. Consider the canonical fractional primal program, whose feasible solutions are the pairs with
and whose objective is . Then the least objective value attained over this region is exactly
The claim has two halves, both part of the target. The value is attained: some feasible pair achieves it. And it is a lower bound: no feasible pair costs less. Because attainment is included, this is a statement about a least element, not merely an infimum.
This supplies the benchmark for the whole mission. Competitiveness is a comparison against the offline optimum, and this is what certifies that the quantity named is that optimum rather than an arbitrary stand-in.
Source correspondence.
- What the thesis states (p. 17): "Note that the optimal solution is always integral, and thus the relaxation has no integrality gap." The claim is made in one sentence and the optimal value is not displayed.
- What this Lean theorem states: that is the least attained objective value of the -bounded program.
- Introduced by the formalization: naming the optimum. The source asserts the absence of a gap between the integer program and its relaxation; this theorem asserts the value, , which is the cost of the better of the two integral strategies. Identifying the two is the formalization's step, and it is what makes the benchmark usable downstream.
Formalization Note. In the ski-rental model the purchase price is a natural number, and every use site of this theorem instantiates as a cast natural — the mission's goal applies it as lp_optimum_box (B : ℝ) (Nat.cast_nonneg B) k. The hypothesis is therefore discharged automatically wherever the theorem is used, and costs a solver nothing. It is stated because these LP declarations take a general real cost coefficient, while the algorithm declarations take .
For completeness: the hypothesis is not actually required for this bounded region, and an earlier version of this note wrongly claimed it was. It is required for the companion statement over the unbounded region of Figure 3.1, where may grow without limit. That distinction matters only if someone reuses these statements outside the ski-rental setting.
Nothing here is asserted about the unbounded region, and no uniqueness of a minimiser is claimed.
import Definitions.Def_PrimalDualOnline_SkiRentalLP import Definitions.Def_PrimalDualOnline_SkiRentalAlg import Mathlib.Tactic open PrimalDualOnline.SkiRental
theorem PrimalDualOnline.SkiRental.lp_optimum_box
(B : ℝ) (hB : 0 ≤ B) (k : ℕ) :
IsLeast (primalValues B k) (offlineOpt B k) := by sorryRead-back
What the Lean code literally says, in plain math · claude-opus-5
Ambient data and binders. The statement quantifies universally over a real number , a hypothesis , and a natural number . There are no other binders, no implicit arguments, no typeclass assumptions. is an arbitrary nonnegative real (not required to be an integer, nor bounded above), and is arbitrary (not required to be positive). Where appears arithmetically it is the cast into .
The feasible region, unfolded. A pair consisting of a real and a family is box-feasible exactly when
All six inequalities are weak (, never ). The variables range over ; no integrality is imposed.
The objective, unfolded. : the single variable carries coefficient and each of the variables carries coefficient exactly .
The set under consideration, unfolded. is the set of achievable cost values:
This is a set of values, not of feasible points.
The claimed value. , the smaller of the reals and .
What is asserted. That is a least element of , which unfolds to a conjunction of exactly two claims:
- Attainment (membership). — there exist and box-feasible whose cost equals exactly.
- Lower bound. For every , ; equivalently, for every box-feasible pair, .
Because membership is part of the claim, this is a statement about a minimum (least element), not merely an infimum: the value is asserted to be achieved, which is strictly stronger than being the greatest lower bound. In particular it entails is nonempty.
Degenerate and boundary cases. — the index type is empty, the constraints on are vacuous, the sum is , and box-feasibility reduces to ; then and the asserted least value is . — permitted by ; the objective becomes and the asserted least value is . — the asserted least value is the real number . — it is itself. — both arguments coincide; nothing distinguishes which feasible pair realises it. non-integer or arbitrarily large — fully included. is excluded by .
What is NOT asserted. Nothing about any other feasible region: the only region mentioned is the boxed one, and no claim is made about the region obtained by dropping the upper bounds, in particular no claim that the two regions have equal optimal value, equal value sets, or the same minimisers. Nothing about uniqueness of a minimiser: clause 1 is a bare existential and does not exhibit or constrain the attaining pair. Nothing about integral or -valued solutions, any dual program, weak or strong duality, complementary slackness, any online or algorithmic procedure, any competitive ratio, or any interpretation of beyond their role in the inequalities. No monotonicity, continuity, or convexity of .
Confirmed by the mission captain (proposal self-audit).