Weak-duality bound:
ProvedPersonalizedAssortment.IB.primal_le_expected_dualLet and , let , and let be a penalty function ( increasing, , ). Let be an inventory-balancing selection rule and let be the final inventory of the process it generates. Then every feasible solution of satisfies
The right side is the expected objective of the dual certificate . The bound combines dual feasibility with probability one, weak duality and the expected-dual identity. It is the upper bound on the benchmark that the proof of Theorem 1 compares with the algorithm's revenue.
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
/-- The weak-duality display of §A.3 (p. 1549): the objective of every feasible solution of
`Primal({z_t})` is at most
`𝔼[∑_{i=1}^n r_i (∑_{k=I_i^T+1}^{c_i} Ψ(k/c_i) + c_i (1 - Ψ(I_i^T/c_i)))]`, the expectation being
over the final inventories `I^T` of the inventory-balancing algorithm. -/
theorem primal_le_expected_dual {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) (Ψ : ℝ → ℝ) (hΨ : IsPenaltyFunction Ψ) {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) :
primalObj r 𝒮 φ z y ≤
expectInv φ z sel c T le_rfl (fun I => ∑ i : Fin n, r i *
(∑ k ∈ Finset.Ioc (I i) (c i), Ψ ((k : ℝ) / (c i : ℝ)) +
(c i : ℝ) * (1 - Ψ ((I i : ℝ) / (c i : ℝ))))) := by sorry
end PersonalizedAssortment.IB
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Data.
- Products are and periods are .
- and naturals for all .
- is a finite family of subsets of with .
- assigns to each a choice model (nonnegative , zero for , with ).
- .
Penalty hypothesis. maps into , is nondecreasing on , and has and .
Selection hypothesis. For every and every :
- ;
- maximizes over ;
- no maximizer in has fewer elements than .
Primal hypothesis. A real function satisfies:
- for ;
- for each ;
- for each .
Expectation operator. is defined by the recursion and , where
with and the vector with coordinate lowered by one and floored at . This is the expectation over the final state of the chain started at and driven by .
Conclusion. The statement asserts
Degenerate cases.
- If , the claim is , since the right side is evaluated at , where each term is .
- If , both sides are .
- makes nonempty, so for both and can exist.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.