Theorem 1: inventory balancing with a concave penalty is -competitive
ProvedPersonalizedAssortment.IB.inventory_balancing_competitive_ratioA firm sells products with revenues and initial inventories , with no replenishment. Let . Let be a family of feasible assortments with , which means the firm may offer nothing. Each customer type has a general choice model , and the family satisfies Assumption 1 (substitutability). Let be a penalty function: increasing, with and . Suppose moreover that is concave and twice differentiable on .
Consider any horizon and any sequence of customer types , possibly chosen by an adversary. In each period , the inventory-balancing algorithm offers an assortment that maximizes , breaking ties by the fewest products. Let be its expected revenue. Then for every feasible solution of the benchmark linear program ,
where
Equivalently, the competitive ratio of the algorithm against is at least . The bound depends only on and , not on or on the arrival sequence.
This is the main theorem of the paper. With the guarantee is . With the exponential penalty it approaches as , which is optimal.
Formalization Note Definition 2 defines the competitive ratio as . That ratio form is not used. In Lean, would make it false when the LP value is (for instance when no product is ever bought), and a real infimum over an unbounded family is a junk value. The statement is instead the equivalent multiplied form for every horizon, every arrival sequence and every feasible ; since , this is the same as comparing with the LP optimum. The case is allowed, and both sides are then . The theorem holds for every selection rule meeting the maximization and tie-breaking specification. Twice differentiability is encoded as differentiability of and of its derivative within .
import Mathlib import Definitions.Def_PersonalizedAssortment_IB_ChoiceModel import Definitions.Def_PersonalizedAssortment_IB_PenaltyFunction import Definitions.Def_PersonalizedAssortment_IB_PrimalLP import Definitions.Def_PersonalizedAssortment_IB_InventoryBalancing
namespace PersonalizedAssortment.IB
/-- Theorem 1 (Competitive Ratio), p. 1538. Let `c_min = min_i c_i` and let `Ψ` be an increasing,
concave, twice-differentiable penalty function. For every arrival sequence `z_1, …, z_T` of any
length, every inventory-balancing selection rule and every feasible solution `y` of
`Primal({z_t})`, the expected revenue of inventory balancing is at least `α_{c_min}(Ψ)` times the
objective of `y`. Standing assumptions: `r_i > 0`, `c_i ∈ ℤ_+` positive, `∅ ∈ 𝒮` (§2),
Assumption 1 (p. 1537), `Ψ : [0,1] → [0,1]` with `Ψ(0) = 0`, `Ψ(1) = 1` (§3). -/
theorem inventory_balancing_competitive_ratio {n : ℕ} (hn : 0 < n) {Z : Type*}
(r : Fin n → ℝ) (hr : ∀ i, 0 < r i) (c : Fin n → ℕ) (hc : ∀ i, 0 < c i)
(𝒮 : Finset (Finset (Fin n))) (h𝒮 : ∅ ∈ 𝒮) (φ : Z → ChoiceModel n)
(hsub : Substitutable 𝒮 φ) (Ψ : ℝ → ℝ) (hΨ : IsPenaltyFunction Ψ)
(hconc : ConcaveOn ℝ (Set.Icc 0 1) Ψ) (hdiff : DifferentiableOn ℝ Ψ (Set.Icc 0 1))
(hdiff2 : DifferentiableOn ℝ (derivWithin Ψ (Set.Icc 0 1)) (Set.Icc 0 1))
{T : ℕ} (z : Fin T → Z) (sel : Fin T → (Fin n → ℕ) → Finset (Fin n))
(hsel : IsIBRule Ψ r c 𝒮 φ z sel)
(y : Fin T → Finset (Fin n) → ℝ) (hy : PrimalFeasible c 𝒮 φ z y) :
alphaC Ψ (cMin c hn) * primalObj r 𝒮 φ z y ≤ ibRevenue r c φ z sel := by sorry
end PersonalizedAssortment.IB
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement quantifies over the following data.
-
Products. A natural number with . Products are indexed by , written below.
-
Customer types. An arbitrary type , with no finiteness, nonemptiness or other structure assumed.
-
Prices. A real vector with for every .
-
Capacities. A vector of natural numbers with for every .
-
Allowed assortments. A finite family of subsets of with .
-
Choice models. A map assigning to each type an object of type
ChoiceModel n. This notion is defined in an imported module that is not shown here, so its content cannot be unfolded. -
Substitutability. The pair satisfies the imported predicate
Substitutable, whose definition is not shown. -
Penalty function. A function that satisfies the imported predicate
IsPenaltyFunction, whose definition is not shown. In addition, is:- concave on ;
- differentiable at every point of relative to , which means one-sided at the endpoints and ;
- such that its derivative relative to , written , is itself differentiable at every point of relative to .
No monotonicity hypothesis, and no condition on the values or , appears among these visible hypotheses. Whether
IsPenaltyFunctionimposes any of these is not visible. None of the visible hypotheses constrain outside . -
Horizon and arrivals. A natural number and an arrival sequence .
-
Selection rule. A rule that, for each period and each vector (which may be read as remaining inventory), returns a subset . The type does not require . The rule satisfies the imported predicate
IsIBRulefor the data , whose definition is not shown. -
Primal candidate. A real-valued function defined for every period and every subset , not only for . It satisfies the imported predicate
PrimalFeasiblefor the data , whose definition is not shown.
Under all of these hypotheses, the statement asserts the real-number inequality
Each symbol in the inequality comes from an imported definition whose content is not shown:
- is
cMin c hn, a natural number computed from , which uses the proof that . - is
alphaC Ψ k, a real number depending on and a natural number . - is
primalObj r 𝒮 φ z y, a real number. - is
ibRevenue r c φ z sel, a real number.
Nothing in the visible code says that is the minimum of the , that is a linear-program objective, or that is an expected revenue. Those meanings, if they hold, reside entirely in the unshown definitions. The inequality is claimed for every , every type , every horizon , and every and meeting the stated predicates.
Degenerate cases.
- is excluded by hypothesis.
- is permitted. Then is either or .
- is permitted for any .
- is permitted. Then , and are the empty functions, and the claim reduces to . Whether this holds trivially, for example as , depends on the unshown definitions of and .
- empty is compatible with the hypotheses only when , because must produce elements of .
- Capacities are all at least , so no zero capacities occur.
- on arbitrary vectors. The rule is defined on all of , including vectors exceeding . Its behaviour there is constrained only by whatever
IsIBRulerequires. - outside . The values of on sets outside are constrained only by whatever
PrimalFeasiblerequires. - Vacuity cannot be checked. Whether the hypotheses can be satisfied simultaneously cannot be determined from the visible code, because
Substitutable,IsPenaltyFunction,IsIBRuleandPrimalFeasibleare opaque here. If any combination of them is unsatisfiable for some data, the statement is vacuously true for that data. - Default values of total functions. The visible statement itself contains no division, no subtraction in , no integral and no supremum. Any default-value behaviour of such operations, including in or , would come from inside the unshown definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.