Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Operations Research

2,721 missions · 1,478 completed

The discipline of applying mathematical analysis to complex decision problems in operations: allocating scarce resources, scheduling, routing, inventory, and the design of service and production systems. Drawing on mathematical programming, stochastic modeling, queueing, simulation, and game-theoretic reasoning, it seeks policies that perform provably well in systems shaped by constraints, congestion, and uncertainty.

Missions

Open1243Completed1478All2721
Optimization·Captain: mikedeng1

On the Choice-Based Linear Programming Model for Network Revenue Management III: Under MNL, Offering the Top-Ranked Products Solves the Offer-Set ProblemResearch Paper

Motivation

Airlines, hotels and rail operators sell many products (itinerary–fare combinations) that share scarce capacity. When customers choose among whatever is on offer, the seller's lever is the offer set: the subset of products made available at each moment. Choice-based network revenue management, as set up by Liu and van Ryzin (2008), optimizes over offer sets through the choice-based deterministic linear program (CDLP), whose columns are indexed by all 2n2^n2n subsets of the nnn products. Solving it by column generation requires, at every iteration, a subproblem that picks the best offer set against the current dual prices; the paper's decomposition heuristic needs subproblems of the same form.

For a general choice model this subproblem is a hard combinatorial optimization. Under the multinomial logit (MNL) model with disjoint customer segments it separates by segment, and each segment's problem is solved by ranking the products. This observation is the reason the CDLP is computationally practical under MNL, and it is the content of Proposition 6 of the paper. The same structural fact, that under MNL the optimal assortment is revenue-ordered, was shown by Gallego, Iyengar, Phillips and Dubey (2004) and is related to the single-leg analysis of Talluri and van Ryzin (2004). It underlies a large later literature on assortment optimization.

Setting

Fix one customer segment. Its consideration set is a finite set ι\iotaι of products, of size sss. Each product j∈ιj \in \iotaj∈ι has an MNL preference weight vj>0v_j > 0vj​>0, and not buying has a no-purchase weight v0≥0v_0 \ge 0v0​≥0. When the set S⊆ιS \subseteq \iotaS⊆ι is offered, a customer of the segment buys j∈Sj \in Sj∈S with probability

Pj(S)=vj∑i∈Svi+v0.P_j(S) = \frac{v_j}{\sum_{i \in S} v_i + v_0}.Pj​(S)=∑i∈S​vi​+v0​vj​​.

Each product also carries a real score wjw_jwj​; in the paper's application wj=rj−π⊤Ajw_j = r_j - \pi^\top A_jwj​=rj​−π⊤Aj​ is the product's revenue minus the dual prices of the legs it uses, so wjw_jwj​ may be negative. The expected score per customer when SSS is offered is

f(S)=∑j∈Swjvj∑j∈Svj+v0,f(S) = \frac{\sum_{j \in S} w_j v_j}{\sum_{j \in S} v_j + v_0},f(S)=∑j∈S​vj​+v0​∑j∈S​wj​vj​​,

and the offer-set problem (the paper's (14)) is max⁡S⊆ιf(S)\max_{S \subseteq \iota} f(S)maxS⊆ι​f(S). The paper writes offer sets as binary vectors y∈{0,1}sy \in \{0,1\}^sy∈{0,1}s with yj=1y_j = 1yj​=1 iff jjj is offered; the formalization uses subsets.

The paper's proof passes through the relaxation (17): with zj=vjyjz_j = v_j y_jzj​=vj​yj​ allowed to range over the whole interval [0,vj][0, v_j][0,vj​], maximize

h(z)=∑jwjzj∑jzj+v0h(z) = \frac{\sum_j w_j z_j}{\sum_j z_j + v_0}h(z)=∑j​zj​+v0​∑j​wj​zj​​

over the box D=[0,v1]×⋯×[0,vs]\mathcal{D} = [0, v_1] \times \cdots \times [0, v_s]D=[0,v1​]×⋯×[0,vs​]. When v0=0v_0 = 0v0​=0 the paper sets h(0):=0h(0) := 0h(0):=0 (and likewise f(∅)=0f(\emptyset) = 0f(∅)=0).

In Lean, mnlObjective v w v₀ S is f(S)f(S)f(S) and relaxedObjective w v₀ z is h(z)h(z)h(z); the box is Set.Icc 0 v in the componentwise order.

Formalization targets

Goal: Proposition 6, the top-ranked products are an optimal offer set

Assume vj>0v_j > 0vj​>0 for all jjj, v0≥0v_0 \ge 0v0​≥0, and that some score is nonnegative. Then there is a product k∈ιk \in \iotak∈ι such that

f(S)  ≤  f({j∈ι:wj≥wk})for every S⊆ι.f(S) \;\le\; f\bigl(\{ j \in \iota : w_j \ge w_k \}\bigr) \qquad \text{for every } S \subseteq \iota.f(S)≤f({j∈ι:wj​≥wk​})for every S⊆ι.

Here wkw_kwk​ is the paper's w[k∗]w_{[k^*]}w[k∗]​, the k∗k^*k∗-th largest score; the threshold set contains every product tied with it.

Milestones (all from the Appendix, proof of Proposition 6, p. 309)

  1. Claim (17). The relaxation has the same optimal value: max⁡z∈Dh(z)=max⁡S⊆ιf(S)\max_{z \in \mathcal{D}} h(z) = \max_{S \subseteq \iota} f(S)maxz∈D​h(z)=maxS⊆ι​f(S), both maxima attained.
  2. Quasiconvexity. hhh is quasiconvex on D\mathcal{D}D, including the case v0=0v_0 = 0v0​=0 with h(0):=0h(0) := 0h(0):=0.
  3. Nested relaxed optimum. If w1≥⋯≥wsw_1 \ge \cdots \ge w_sw1​≥⋯≥ws​ and some wi≥0w_i \ge 0wi​≥0, there is 1≤i∗≤s1 \le i^* \le s1≤i∗≤s such that z∗=(v1,…,vi∗,0,…,0)z^* = (v_1, \dots, v_{i^*}, 0, \dots, 0)z∗=(v1​,…,vi∗​,0,…,0) is an optimal solution of the relaxation.

Significance

The result. Proposition 6 reduces a search over 2s2^s2s offer sets to a search over at most sss nested sets, one per possible threshold. Under MNL with disjoint segments, it lets the CDLP column-generation subproblem, and the inner offer-set problems of the leg-level dynamic programs in the decomposition heuristic, be solved by checking at most sss candidate sets per segment, sss being the size of the segment's consideration set. Revenue-ordered assortments are the reference point against which later models (nested logit, mixtures of logits, constrained assortments) are measured.

Formalizing it. The proposition is proved on paper, twice (Gallego et al. 2004; Liu and van Ryzin 2008, Appendix), and no machine-checked version is known to the platform. The mission produces a checked statement of the ranking property with its hypotheses made exact, including the case the printed statement gets wrong (see below), and the supporting facts about the linear-fractional relaxation: that the box relaxation loses nothing, and that its objective is quasiconvex. These facts about ratios of affine functions over boxes are reusable beyond revenue management, for instance in fractional combinatorial optimization.

Difficulty

The objective is a ratio, so neither the numerator nor the denominator can be optimized alone, and adding a product with a positive score can lower fff by diluting the probability mass of better products. The optimal threshold is not a fixed number such as 000: it depends on the optimal value itself. A proof must therefore relate every one of the 2s2^s2s offer sets to a threshold set without enumerating them. Ties among scores, ties between a score and the optimal value, and the degenerate case v0=0v_0 = 0v0​=0 (where the denominator vanishes at the empty offer set) all have to be handled; in the relaxation, ties make interior points optimal, so an argument that every optimum is a vertex of the box is false.

Formalization scope

  • Offer sets are subsets S : Finset ι of a finite type ι (the consideration set); the binary vectors of the paper correspond one-to-one. The milestone on sorted scores uses Fin s with Antitone w, so indices are 0-based and i∗i^*i∗ is an element of Fin s.
  • Ranking. The goal does not formalize a sorting permutation: "wj≥w[k∗]w_j \ge w_{[k^*]}wj​≥w[k∗]​ for some 1≤k∗≤s1 \le k^* \le s1≤k∗≤s" is stated as "wj≥wkw_j \ge w_kwj​≥wk​ for some product kkk". With ties this is exactly the printed rule; it is not "the first k∗k^*k∗ products of a chosen sort order", which differs under ties.
  • Optimality means "is an optimal solution": the chosen set (or point) is compared with every S⊆ιS \subseteq \iotaS⊆ι (every z∈Dz \in \mathcal{D}z∈D). Uniqueness is not claimed, since ties produce several optima.
  • Division by zero. v0=0v_0 = 0v0​=0 is allowed, as in the paper's numerical study; the only zero denominator is at S=∅S = \emptysetS=∅ (or z=0z = 0z=0), where Lean's 0/0=00/0 = 00/0=0 implements the paper's convention h(0):=0h(0) := 0h(0):=0.
  • Repair. As printed, Proposition 6 (and the nested optimum in its proof) requires 1≤k∗1 \le k^*1≤k∗, i.e. a nonempty offer set, and is false when every score is negative: for s=1s = 1s=1, w1=−1w_1 = -1w1​=−1, v1=v0=1v_1 = v_0 = 1v1​=v0​=1, the empty set has value 000 and the only admissible set has value −1/2-1/2−1/2. Such scores occur in the paper's own application. The goal and milestone 3 therefore add the hypothesis that some score is nonnegative. The hypothesis is not strengthened to "all scores nonnegative", which would exclude the cases the column-generation subproblem actually meets.
  • Ruling out trivializations. The objective is the full MNL ratio with v0v_0v0​ in the denominator, the comparison ranges over every subset (not only threshold sets), and the consideration set is arbitrary, so the goal cannot be discharged by checking nested sets against each other or by a special case.
  • Infrastructure. Mathlib's QuasiconvexOn (and QuasilinearOn) and Finset sums suffice; there is no Mathlib lemma on quasiconvexity of linear-fractional functions, which milestone 2 would supply. Proofs of any milestone, and alternative routes to the goal that bypass the relaxation, are welcome.

Selected references

  • Q. Liu, G. van Ryzin. On the choice-based linear programming model for network revenue management. Manufacturing & Service Operations Management 10(2):288–310, 2008. doi:10.1287/msom.1070.0169
  • G. Gallego, G. Iyengar, R. Phillips, A. Dubey. Managing flexible products on a network. CORC Technical Report TR-2004-01, Columbia University, 2004. CORC technical reports
  • K. Talluri, G. van Ryzin. Revenue management under a general discrete choice model of consumer behavior. Management Science 50(1):15–33, 2004. doi:10.1287/mnsc.1030.0147
  • M. Avriel. Nonlinear Programming: Analysis and Methods. Prentice Hall, 1976.
6 thms1 active userReviewed
Convex OptimizationLinear OptimizationOptimization·Captain: mikedeng1

On the Choice-Based Linear Programming Model for Network Revenue Management II: Only Efficient Offer Sets Carry Time in an Optimal CDLP SolutionResearch Paper

Motivation

Airlines, hotels and rail operators sell many products (an itinerary combined with a fare class) that share a network of finite resources (flight legs, room-nights). When customers choose among whatever products are on offer, the firm's control is no longer "accept or reject a request for product jjj" but which set of products to offer at each moment. The exact dynamic program for this problem is intractable for realistic networks, so practice and theory rely on a deterministic approximation, the choice-based deterministic linear program (CDLP) of Gallego, Iyengar, Phillips and Dubey (2004), which decides for how long each offer set should be offered.

The CDLP has one variable per offer set, so 2n2^n2n variables for nnn products, and it is solved by column generation. Knowing in advance which offer sets can never receive positive time in an optimal solution cuts this search space. Liu and van Ryzin (MSOM 2008) extended the single-leg notion of an efficient offer set from Talluri and van Ryzin (Management Science 2004) to networks and showed that only efficient sets are used by an optimal CDLP solution. This mission formalizes that section of their paper (§5).

Setting

A network has mmm legs and nnn products N={1,…,n}N = \{1,\dots,n\}N={1,…,n}. Product jjj earns revenue rjr_jrj​, and the 0–1 incidence matrix A=[aij]A = [a_{ij}]A=[aij​] records which legs product jjj uses. An offer set is a subset S⊆NS \subseteq NS⊆N. When SSS is offered, an arriving customer buys product jjj with probability Pj(S)≥0P_j(S) \ge 0Pj​(S)≥0, where Pj(S)=0P_j(S) = 0Pj​(S)=0 for j∉Sj \notin Sj∈/S, and buys nothing with probability P0(S)≥0P_0(S) \ge 0P0​(S)≥0, with ∑j∈SPj(S)+P0(S)=1\sum_{j\in S} P_j(S) + P_0(S) = 1∑j∈S​Pj​(S)+P0​(S)=1. The expected revenue per arriving customer and the vector of expected capacity consumption are

R(S)=∑j∈SrjPj(S),Q(S)=A P(S)∈Rm.R(S) = \sum_{j\in S} r_j P_j(S), \qquad Q(S) = A\,P(S) \in \mathbb{R}^m .R(S)=j∈S∑​rj​Pj​(S),Q(S)=AP(S)∈Rm.

An offer set TTT is inefficient if some convex weights α(S)≥0\alpha(S) \ge 0α(S)≥0, ∑Sα(S)=1\sum_S \alpha(S) = 1∑S​α(S)=1, over all offer sets satisfy

R(T)<∑Sα(S)R(S),Q(T)≥∑Sα(S)Q(S) (componentwise);R(T) < \sum_S \alpha(S) R(S), \qquad Q(T) \ge \sum_S \alpha(S) Q(S) \ \text{(componentwise)};R(T)<S∑​α(S)R(S),Q(T)≥S∑​α(S)Q(S) (componentwise);

otherwise TTT is efficient.

With arrival probability λ∈(0,1]\lambda \in (0,1]λ∈(0,1] per period, capacities c∈R≥0mc \in \mathbb{R}^m_{\ge 0}c∈R≥0m​ and a horizon of length τ≥0\tau \ge 0τ≥0, the CDLP is

max⁡∑S⊆NλR(S) t(S)s.t.∑SλQ(S) t(S)≤c,∑St(S)≤τ,t(S)≥0,\max \sum_{S\subseteq N} \lambda R(S)\,t(S) \quad\text{s.t.}\quad \sum_{S} \lambda Q(S)\,t(S) \le c,\quad \sum_S t(S) \le \tau,\quad t(S) \ge 0,maxS⊆N∑​λR(S)t(S)s.t.S∑​λQ(S)t(S)≤c,S∑​t(S)≤τ,t(S)≥0,

where t(S)t(S)t(S) is the total time during which SSS is offered. Its dual has prices π∈R≥0m\pi \in \mathbb{R}^m_{\ge 0}π∈R≥0m​ on the legs and σ≥0\sigma \ge 0σ≥0 on time. Finally, the frontier function is

Rˉ(q)=max⁡α{∑Sα(S)R(S):∑Sα(S)Q(S)≤q, ∑Sα(S)=1, α≥0},q∈[0,1]m.\bar R(q) = \max_\alpha\Big\{\sum_S \alpha(S)R(S) : \sum_S \alpha(S)Q(S) \le q,\ \sum_S\alpha(S) = 1,\ \alpha \ge 0\Big\}, \qquad q \in [0,1]^m .Rˉ(q)=αmax​{S∑​α(S)R(S):S∑​α(S)Q(S)≤q, S∑​α(S)=1, α≥0},q∈[0,1]m.

In the Lean development these objects are ChoiceNetwork m n (with revenue and consumption), IsEfficient, IsCDLPFeasible / cdlpObjective / IsCDLPOptimal, and frontier, all in the namespace ChoiceCDLP.Efficient.

Formalization targets

Goal: Proposition 4

If t∗t^*t∗ is an optimal solution of the CDLP and TTT is an offer set with t∗(T)>0t^*(T) > 0t∗(T)>0, then TTT is efficient:

t∗ optimal for the CDLP,  t∗(T)>0 ⟹ T efficient.t^* \text{ optimal for the CDLP},\ \ t^*(T) > 0 \ \Longrightarrow\ T \text{ efficient}.t∗ optimal for the CDLP,  t∗(T)>0 ⟹ T efficient.

The statement covers every optimal solution, not only basic ones.

Milestones

  1. Frontier function (Appendix, p. 307): Rˉ\bar RRˉ is increasing and concave on [0,1]m[0,1]^m[0,1]m.
  2. Proposition 3 (p. 296): TTT is efficient if and only if, for some π≥0\pi \ge 0π≥0, TTT maximizes R(S)−π⊤Q(S)R(S) - \pi^\top Q(S)R(S)−π⊤Q(S) over all offer sets SSS.
  3. Reduced cost at the optimal dual (proof of Proposition 4, p. 296): if t∗t^*t∗ is optimal and t∗(T)>0t^*(T) > 0t∗(T)>0, some optimal dual solution (π∗,σ∗)(\pi^*,\sigma^*)(π∗,σ∗) satisfies λR(S)−λπ∗⊤Q(S)−σ∗≤0\lambda R(S) - \lambda \pi^{*\top}Q(S) - \sigma^* \le 0λR(S)−λπ∗⊤Q(S)−σ∗≤0 for every SSS, with equality at S=TS = TS=T.
  4. Proposition 5 (p. 297): for efficient S1,S2S_1, S_2S1​,S2​, Q(S2)≥Q(S1)Q(S_2) \ge Q(S_1)Q(S2​)≥Q(S1​) implies R(S2)≥R(S1)R(S_2) \ge R(S_1)R(S2​)≥R(S1​).

Significance

Proposition 4 says that efficiency is a property of every offer set an optimal CDLP solution actually uses. Inefficient sets can therefore be removed from the column space of the CDLP, and Proposition 3 describes the remaining sets as the maximizers of revenue net of leg prices, which is the pricing subproblem of column generation. The paper also uses Proposition 4 to argue that its asymptotically optimal policy (Proposition 2 of the same paper) uses only efficient sets. Proposition 5 gives the partial order of efficient sets in the network, the analogue of the total order that drives nested policies in the single-leg model.

The results are proved in the paper; none of them has a machine-checked proof. A formalization provides a checked statement of the network notion of efficiency and its price characterization, which the single-leg results already on the platform do not cover (there Q(S)Q(S)Q(S) is a scalar), and a checked link between LP duality for the CDLP and the structure of its optimal solutions.

Difficulty

The paper's proof of Proposition 4 appeals to "the optimal basis" of the CDLP, while the statement is about every optimal solution, including non-basic ones, so the simplex-tableau argument as written does not cover the statement; the existence of optimal dual prices with the required reduced-cost properties has to be established for an arbitrary optimal solution. The "only if" half of Proposition 3 is argued in the paper by a supporting hyperplane to the concave function Rˉ\bar RRˉ at Q(T)Q(T)Q(T), followed by an informal argument that the hyperplane's slope is nonnegative; Q(T)Q(T)Q(T) may lie on the boundary of [0,1]m[0,1]^m[0,1]m, where a supporting hyperplane of a concave function need not exist in the naive sense, and the sign argument is stated in one line. Concavity of Rˉ\bar RRˉ is the concavity of an LP's optimal value in its right-hand side, which the paper cites from Bertsimas and Tsitsiklis without proof and which Mathlib does not provide.

Formalization scope

  • Products and legs are Fin n and Fin m; offer sets are Finset (Fin n), so sums over "all S⊆NS \subseteq NS⊆N" are sums over Finset.univ. All quantities are real. Vector inequalities (Q(T)≥∑Sα(S)Q(S)Q(T) \ge \sum_S\alpha(S)Q(S)Q(T)≥∑S​α(S)Q(S), c≥0c \ge 0c≥0, π≥0\pi \ge 0π≥0, Q(S2)≥Q(S1)Q(S_2) \ge Q(S_1)Q(S2​)≥Q(S1​)) are componentwise, and π⊤Q(S)\pi^\top Q(S)π⊤Q(S) is dotProduct.
  • The choice probabilities are generic, as in the paper: nonnegative, zero outside the offer set, and summing with P0(S)P_0(S)P0​(S) to one. Revenues are arbitrary reals.
  • The CDLP horizon is written τ\tauτ (the paper's TTT) to keep TTT for an offer set. "An optimal solution" is a feasible ttt whose objective is at least that of every feasible vector.
  • Repairs of the printed statements. (i) In Propositions 3 and 4, "TTT is the optimal solution" is read as "TTT is an optimal solution": with a unique-maximizer reading, Proposition 3's "only if" direction is false whenever two offer sets have the same RRR and QQQ (for instance, T′T'T′ is TTT plus a product that is never bought from T′T'T′); both are then efficient, and neither is a unique maximizer. (ii) Proposition 4 assumes λ>0\lambda > 0λ>0, the paper's standing assumption that λ\lambdaλ is an arrival probability; at λ=0\lambda = 0λ=0 every feasible ttt is optimal and inefficient sets can receive positive time. The milestone texts remain verbatim.
  • Rˉ\bar RRˉ is a real supremum (sSup) over attainable mixed revenues; on [0,1]m[0,1]^m[0,1]m the set is nonempty (the weight concentrated on the empty offer set is feasible because Q(∅)=0Q(\emptyset) = 0Q(∅)=0) and bounded above by max⁡SR(S)\max_S R(S)maxS​R(S), so it is the paper's maximum.
  • A trivializing formalization is ruled out: efficiency quantifies over all convex weights on offer sets (not only single dominating sets), the price vector in Proposition 3 is required to be nonnegative, and the optimum in Proposition 4 is over the full feasible set of the CDLP.
  • A complete development needs finite-dimensional LP duality with complementary slackness (or Farkas' lemma) and concavity of the optimal value of a parametric LP. Both are reusable well beyond this mission; contributions of either as standalone results are welcome.

Selected references

  • Q. Liu, G. van Ryzin, On the Choice-Based Linear Programming Model for Network Revenue Management, Manufacturing & Service Operations Management 10(2):288–310, 2008. https://doi.org/10.1287/msom.1070.0169
  • G. Gallego, G. Iyengar, R. Phillips, A. Dubey, Managing Flexible Products on a Network, CORC Technical Report TR-2004-01, Columbia University, 2004 (no DOI; cited as Gallego et al. 2004 in the paper).
  • K. Talluri, G. van Ryzin, Revenue Management Under a General Discrete Choice Model of Consumer Behavior, Management Science 50(1):15–33, 2004. https://doi.org/10.1287/mnsc.1030.0147
  • D. Bertsimas, J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997 (Theorem 5.1, p. 213).
9 thms1 active userReviewed
Dynamic ProgrammingLinear OptimizationOptimization+1·Captain: mikedeng1

On the Choice-Based Linear Programming Model for Network Revenue Management I: The CDLP Is Asymptotically Optimal under Proportional ScalingResearch Paper

Motivation

Airlines, hotels and railways sell a fixed stock of perishable capacity (seats on flight legs, room-nights) to customers who arrive over a finite selling horizon. Network revenue management decides, at each moment, which products to keep open for sale. In the classical independent-demand model each product has its own demand stream. In practice customers choose among the products on offer, and closing a cheap fare shifts some of its demand to a more expensive one. Talluri and van Ryzin (Management Science 2004) modelled this with choice-based demand on a single resource: the firm chooses an offer set SSS, and an arriving customer buys product jjj with probability Pj(S)P_j(S)Pj​(S).

On a network the exact dynamic program has one state per vector of remaining leg capacities, and cannot be solved at realistic sizes. Gallego, Iyengar, Phillips and Dubey (CORC Technical Report TR-2004-01, 2004) proposed replacing it with a linear program over the time allotted to each offer set, the choice-based deterministic linear program (CDLP). Liu and van Ryzin (MSOM 2008) analysed this LP. Their first result has two parts: the CDLP value is an upper bound on the optimal expected revenue, and the bound is asymptotically tight when capacity and horizon are scaled up together. For the independent-demand deterministic LP the analogous statement goes back to Gallego and van Ryzin (Operations Research 1997) and Cooper (Operations Research 2002). This mission targets the choice-based version.

Setting

A choice-based network instance has mmm legs and nnn products N={1,…,n}N = \{1,\dots,n\}N={1,…,n}, and consists of:

  • an incidence matrix A=[aij]A = [a_{ij}]A=[aij​] with aij∈{0,1}a_{ij} \in \{0,1\}aij​∈{0,1}, where aij=1a_{ij}=1aij​=1 when product jjj uses leg iii; AjA_jAj​ is its jjjth column;
  • a revenue rj∈Rr_j \in \mathbb{R}rj​∈R for each product (no sign assumed);
  • an arrival probability λ∈[0,1]\lambda \in [0,1]λ∈[0,1] per period;
  • choice probabilities Pj(S)P_j(S)Pj​(S) for every offer set S⊆NS \subseteq NS⊆N, with Pj(S)≥0P_j(S) \ge 0Pj​(S)≥0, Pj(S)=0P_j(S)=0Pj​(S)=0 for j∉Sj \notin Sj∈/S, and ∑j∈SPj(S)≤1\sum_{j\in S} P_j(S) \le 1∑j∈S​Pj​(S)≤1. The no-purchase probability is P0(S)=1−∑j∈SPj(S)P_0(S) = 1 - \sum_{j\in S}P_j(S)P0​(S)=1−∑j∈S​Pj​(S).

λ\lambdaλ and PPP are the same in every period. Each offer set has an expected revenue R(S)=∑j∈SrjPj(S)R(S) = \sum_{j\in S} r_j P_j(S)R(S)=∑j∈S​rj​Pj​(S) and a capacity-consumption vector Q(S)=AP(S)Q(S) = AP(S)Q(S)=AP(S).

The dynamic program. With remaining capacity x∈Nmx \in \mathbb{N}^mx∈Nm, an offer set is allowed if x−Aj≥0x - A_j \ge 0x−Aj​≥0 for all j∈Sj \in Sj∈S (no overbooking). The empty set is always allowed. The value with kkk periods left is V(0)≡0V^{(0)} \equiv 0V(0)≡0 and

V(k+1)(x)=max⁡S allowed at x{∑j∈SλPj(S)(rj+V(k)(x−Aj))+(λP0(S)+1−λ)V(k)(x)}.V^{(k+1)}(x) = \max_{S \text{ allowed at } x}\Big\{\sum_{j\in S}\lambda P_j(S)\big(r_j + V^{(k)}(x-A_j)\big) + \big(\lambda P_0(S)+1-\lambda\big)V^{(k)}(x)\Big\}.V(k+1)(x)=S allowed at xmax​{j∈S∑​λPj​(S)(rj​+V(k)(x−Aj​))+(λP0​(S)+1−λ)V(k)(x)}.

The optimal expected revenue over TTT periods from capacity c∈Nmc \in \mathbb{N}^mc∈Nm is V∗(c,T)=V(T)(c)V^*(c,T) = V^{(T)}(c)V∗(c,T)=V(T)(c) (dpValue).

The CDLP. Its variables are times t(S)≥0t(S) \ge 0t(S)≥0, one for each S⊆NS \subseteq NS⊆N, and

VCDLP(c,T)=max⁡{∑SλR(S)t(S)  :  ∑SλQ(S)t(S)≤c, ∑St(S)≤T, t≥0}V^{\mathrm{CDLP}}(c,T) = \max\Big\{\sum_{S}\lambda R(S)t(S) \;:\; \sum_S \lambda Q(S)t(S) \le c,\ \sum_S t(S) \le T,\ t \ge 0\Big\}VCDLP(c,T)=max{S∑​λR(S)t(S):S∑​λQ(S)t(S)≤c, S∑​t(S)≤T, t≥0}

(cdlpValue).

Scaling. For θ∈N\theta \in \mathbb{N}θ∈N, the θ\thetaθ-scaled problems have capacities θc\theta cθc and horizon θT\theta TθT. Write Vθ∗=V∗(θc,θT)V^*_\theta = V^*(\theta c,\theta T)Vθ∗​=V∗(θc,θT) and VθCDLP=VCDLP(θc,θT)V^{\mathrm{CDLP}}_\theta = V^{\mathrm{CDLP}}(\theta c, \theta T)VθCDLP​=VCDLP(θc,θT).

Formalization targets

Goal: Proposition 2 (p. 294)

lim⁡θ→∞1θVθ∗  =  lim⁡θ→∞1θVθCDLP  =  VCDLP(c,T),\lim_{\theta\to\infty}\frac1\theta V^*_\theta \;=\; \lim_{\theta\to\infty}\frac1\theta V^{\mathrm{CDLP}}_\theta \;=\; V^{\mathrm{CDLP}}(c,T),θ→∞lim​θ1​Vθ∗​=θ→∞lim​θ1​VθCDLP​=VCDLP(c,T),

for every instance, every c∈Nmc \in \mathbb{N}^mc∈Nm and every T∈NT\in\mathbb{N}T∈N. It is stated as two Tendsto statements along θ→∞\theta \to \inftyθ→∞ in N\mathbb{N}N.

Milestones

  1. Proposition 1 (p. 294): V∗(c,T)≤VCDLP(c,T)V^*(c,T) \le V^{\mathrm{CDLP}}(c,T)V∗(c,T)≤VCDLP(c,T) for every ccc and TTT.
  2. Scaling of the CDLP (proof of Proposition 2, first paragraph): VCDLP(θc,θT)=θ VCDLP(c,T)V^{\mathrm{CDLP}}(\theta c,\theta T) = \theta\,V^{\mathrm{CDLP}}(c,T)VCDLP(θc,θT)=θVCDLP(c,T) for every θ∈N\theta \in \mathbb{N}θ∈N.
  3. Lower half of the first limit (proof of Proposition 2, pp. 294–295): for every ε>0\varepsilon>0ε>0, eventually in θ\thetaθ, VCDLP(c,T)−ε≤1θVθ∗V^{\mathrm{CDLP}}(c,T) - \varepsilon \le \frac1\theta V^*_\thetaVCDLP(c,T)−ε≤θ1​Vθ∗​.

The goal follows from the three milestones.

Significance

The result. Proposition 1 makes the CDLP a certified upper bound on what any control policy can earn, whatever the choice model. Numerical studies use it to benchmark heuristics. Proposition 2 says the bound is exact to first order in large systems, so policies driven by the CDLP solution (time allocations, bid prices from its dual) lose only a vanishing fraction of revenue. It is the justification for the whole family of CDLP-based controls that the paper and later work study (column generation, decomposition, and later the affine and piecewise-linear relaxations of the choice-based network problem).

Formalizing it. The result is proved in the paper. No machine-checked version exists: no revenue-management DP with choice-based demand on a network, no CDLP, and no fluid-limit argument of this kind is on the platform. The existing RevenueManagement material from the Talluri–van Ryzin textbook covers single-resource and dynamic-pricing models. Formalizing the result produces a reusable network-RM DP with an offer-set action space, the CDLP as a Lean object, and a checked asymptotic-optimality theorem that other deterministic-approximation results (independent demand, bid-price heuristics) can follow.

Difficulty

The upper bound compares a stochastic dynamic program with a linear program. The natural route builds a feasible LP point from the optimal policy (expected times each set is offered), but the DP here is a recursion over capacity vectors, not a policy class with a notion of "expected time offered". That connection has to be made from the recursion itself.

The lower bound is harder. The paper's policy offers each set for a fractional number of periods and caps accepted demand at its mean after customers have chosen. Neither is an action available in the DP, where the firm can only pick an allowed offer set each period and must accept whatever the customer picks. The obvious transcription therefore does not type-check against the model: one needs a genuine DP policy whose revenue is θVCDLP−o(θ)\theta V^{\mathrm{CDLP}} - o(\theta)θVCDLP−o(θ) while it respects capacity on every sample path. The no-overbooking rule forbids offering a set once any of its products would exceed remaining capacity. Negative revenues are allowed, and λ\lambdaλ may be 000 or 111.

Formalization scope

Legs are Fin m, products Fin n, offer sets Finset (Fin n). The instance is a structure ChoiceNetwork m n carrying AAA (entries in N\mathbb{N}N, each 000 or 111), rrr, λ∈[0,1]\lambda\in[0,1]λ∈[0,1] and PPP with the three choice-model axioms. The DP and CDLP use one λ\lambdaλ and one PPP for every period, matching the paper's time-homogeneous model. Capacities and horizon are natural numbers; CDLP times and all values are real. θ\thetaθ ranges over N\mathbb{N}N, because θT\theta TθT must be a whole number of periods, and the limits use real division by θ\thetaθ.

V∗V^*V∗ is defined by the Bellman recursion (1), which the paper states is equivalent to the stochastic control problem (4). No measure-theoretic policy class is built. The maximization runs over the offer sets allowed at the current capacity, so the DP can neither overbook nor pick products outside an offer set. The paper's boundary condition Vt(0)=0V_t(0)=0Vt​(0)=0 is not imposed separately: it follows from the recursion whenever every product uses a leg, and imposing it on top could contradict the recursion. VCDLPV^{\mathrm{CDLP}}VCDLP is sSup of the objective over the feasible set. That set is nonempty (t=0t=0t=0) and bounded (0≤t(S)≤T0 \le t(S) \le T0≤t(S)≤T), so the value is the LP optimum.

The goal is the limit equality with both capacity and horizon scaled. A statement with only the upper bound, only capacity scaled, or a DP that ignores capacity or chooses products freely would be a trivializing formalization, and the definitions rule each of these out. Milestone 3 is the paper's conclusion stated on the DP value, not on the paper's informal policy. It is not a repair.

A complete development needs: LP duality or a direct feasibility construction for Proposition 1; the scaling identity for the CDLP; and, for the lower bound, a concrete DP policy together with a law-of-large-numbers or concentration estimate for sums of per-period sales (Mathlib's ProbabilityTheory.strong_law_ae and Hoeffding-type bounds are available). A policy-evaluation lemma that bounds the DP value below by the expected revenue of any feasible offer-set policy is reusable beyond this mission, as is the CDLP scaling lemma. Contributions to either are welcome.

Selected references

  • Q. Liu, G. van Ryzin, On the Choice-Based Linear Programming Model for Network Revenue Management, Manufacturing & Service Operations Management 10(2):288–310, 2008. https://doi.org/10.1287/msom.1070.0169
  • K. Talluri, G. van Ryzin, Revenue Management Under a General Discrete Choice Model of Consumer Behavior, Management Science 50(1):15–33, 2004. https://doi.org/10.1287/mnsc.1030.0147
  • G. Gallego, G. Iyengar, R. Phillips, A. Dubey, Managing Flexible Products on a Network, CORC Technical Report TR-2004-01, Columbia University, 2004.
  • G. Gallego, G. van Ryzin, A Multiproduct Dynamic Pricing Problem and Its Applications to Network Yield Management, Operations Research 45(1):24–41, 1997. https://doi.org/10.1287/opre.45.1.24
  • W. L. Cooper, Asymptotic Behavior of an Allocation Policy for Revenue Management, Operations Research 50(4):720–727, 2002. https://doi.org/10.1287/opre.50.4.720.2862
7 thms1 active userReviewed
Optimization·Captain: mikedeng1

The d-Level Nested Logit Model: Assortment and Price Optimization Problems II: The Push-Up-Then-Push-Down Prices Converge to a Stationary PointResearch Paper

Motivation

Retailers that sell many substitutable products must set all their prices at once, and a customer's reaction to one price depends on what else is on the shelf. The nested logit model captures this by grouping similar products into nests, so that raising one price shifts demand mostly to close substitutes. The ddd-level nested logit model extends the familiar two-level version to a whole taxonomy tree of depth ddd (for example category → brand → size). It is consistent with random utility maximization (McFadden 1978) and is widely used in demand estimation.

Pricing under logit-type models is harder than it looks. Already for the multinomial logit model, which is the one-level case, Hanson and Martin (1996) point out that the expected revenue is not necessarily concave in the prices. For the two-level nested logit, Gallego and Wang (2014) show that the expected revenue is not concave and can have several local maxima. Li, Rusmevichientong and Topaloglu (Oper. Res. 63(2), 2015) treat the general ddd-level model. Their pricing result, Theorem 7.3, is the target of this mission. It shows that a simple gradient-free iteration, the push-up-then-push-down (PUPD) algorithm, produces prices that converge to a stationary point of the expected revenue.

Setting

The products l=1,…,nl=1,\dots,nl=1,…,n are the leaves of a rooted tree T=(V,E)T=(V,E)T=(V,E), all at depth ddd. A further leaf, node 000 (the no-purchase option), hangs directly from root\mathrm{root}root. Every other node jjj is a nonleaf node with a nonempty set Children(j)\mathrm{Children}(j)Children(j) and a parameter ηj\eta_jηj​. The standing assumptions are ηj∈(0,1]\eta_j\in(0,1]ηj​∈(0,1] for nonleaf j≠rootj\neq\mathrm{root}j=root and ηroot=0\eta_{\mathrm{root}}=0ηroot​=0. Each product carries parameters αl∈R\alpha_l\in\mathbb Rαl​∈R and βl>0\beta_l>0βl​>0, and node 000 carries α0∈R\alpha_0\in\mathbb Rα0​∈R.

Given a price vector p=(p1,…,pn)\mathbf p=(p_1,\dots,p_n)p=(p1​,…,pn​), where the no-purchase price is fixed at p0=0p_0=0p0​=0, the preference weights are computed bottom-up:

Vl(p)=eαl−βlpl,V0(p)=eα0,Vj(p)=(∑k∈Children(j)Vk(p))ηj.V_l(\mathbf p)=e^{\alpha_l-\beta_lp_l},\qquad V_0(\mathbf p)=e^{\alpha_0},\qquad V_j(\mathbf p)=\Big(\sum_{k\in\mathrm{Children}(j)}V_k(\mathbf p)\Big)^{\eta_j}.Vl​(p)=eαl​−βl​pl​,V0​(p)=eα0​,Vj​(p)=(k∈Children(j)∑​Vk​(p))ηj​.

The expected revenues are Rl(p)=plR_l(\mathbf p)=p_lRl​(p)=pl​, R0(p)=0R_0(\mathbf p)=0R0​(p)=0, and

Rj(p)=∑k∈Children(j)Vk(p)Rk(p)∑k∈Children(j)Vk(p)R_j(\mathbf p)=\frac{\sum_{k\in\mathrm{Children}(j)}V_k(\mathbf p)R_k(\mathbf p)}{\sum_{k\in\mathrm{Children}(j)}V_k(\mathbf p)}Rj​(p)=∑k∈Children(j)​Vk​(p)∑k∈Children(j)​Vk​(p)Rk​(p)​

at a nonleaf node. The expected revenue of p\mathbf pp is Rroot(p)R_{\mathrm{root}}(\mathbf p)Rroot​(p). A customer walks down from root\mathrm{root}root, choosing a child with probability proportional to its weight. The probability θl(p)\theta_l(\mathbf p)θl​(p) of ending at product lll is the product, over the levels h=1,…,dh=1,\dots,dh=1,…,d, of VAn(l,h)/∑k∈Sibling(An(l,h))VkV_{\mathrm{An}(l,h)}/\sum_{k\in\mathrm{Sibling}(\mathrm{An}(l,h))}V_kVAn(l,h)​/∑k∈Sibling(An(l,h))​Vk​, where An(l,h)\mathrm{An}(l,h)An(l,h) is the ancestor of lll in level hhh.

Top-down, the scalars uj(p)u_j(\mathbf p)uj​(p) are uroot=Rrootu_{\mathrm{root}}=R_{\mathrm{root}}uroot​=Rroot​ and uj=ηjuParent(j)+(1−ηj)Rju_j=\eta_ju_{\mathrm{Parent}(j)}+(1-\eta_j)R_juj​=ηj​uParent(j)​+(1−ηj​)Rj​. A stationary point of RrootR_{\mathrm{root}}Rroot​ is a price vector at which the gradient of RrootR_{\mathrm{root}}Rroot​ is zero.

The PUPD algorithm starts from p0=0\mathbf p^0=\mathbf 0p0=0. Given ps\mathbf p^sps, it sets troots=Rroot(ps)t^s_{\mathrm{root}}=R_{\mathrm{root}}(\mathbf p^s)troots​=Rroot​(ps) and, for every other nonleaf node,

tjs=max⁡{tParent(j)s, ηjtParent(j)s+(1−ηj)Rj(ps)}.t^s_j=\max\big\{t^s_{\mathrm{Parent}(j)},\ \eta_jt^s_{\mathrm{Parent}(j)}+(1-\eta_j)R_j(\mathbf p^s)\big\}.tjs​=max{tParent(j)s​, ηj​tParent(j)s​+(1−ηj​)Rj​(ps)}.

It then updates pls+1=1/βl+tParent(l)sp^{s+1}_l=1/\beta_l+t^s_{\mathrm{Parent}(l)}pls+1​=1/βl​+tParent(l)s​ for every product lll.

Formalization targets

Goal: Theorem 7.3 (p. 336)

∃ p∗∈Rn:lim⁡s→∞ps=p∗and∇Rroot(p∗)=0.\exists\,\mathbf p^*\in\mathbb R^n:\qquad \lim_{s\to\infty}\mathbf p^s=\mathbf p^* \quad\text{and}\quad \nabla R_{\mathrm{root}}(\mathbf p^*)=0 .∃p∗∈Rn:s→∞lim​ps=p∗and∇Rroot​(p∗)=0.

The whole sequence converges and its limit is stationary. No rate is claimed, and none is asked for.

Milestones

  • Lemma 7.1 (p. 335). For p∈R+n\mathbf p\in\mathbb R^n_+p∈R+n​ and every product lll,
∂Rroot∂pl(p)=−θl(p) βl(pl−1βl−uParent(l)(p)).\frac{\partial R_{\mathrm{root}}}{\partial p_l}(\mathbf p)=-\theta_l(\mathbf p)\,\beta_l\Big(p_l-\frac1{\beta_l}-u_{\mathrm{Parent}(l)}(\mathbf p)\Big).∂pl​∂Rroot​​(p)=−θl​(p)βl​(pl​−βl​1​−uParent(l)​(p)).
  • Corollary 7.2 (p. 336). For p∈R+n\mathbf p\in\mathbb R^n_+p∈R+n​, p\mathbf pp is a stationary point of RrootR_{\mathrm{root}}Rroot​ if and only if pl=1/βl+uParent(l)(p)p_l=1/\beta_l+u_{\mathrm{Parent}(l)}(\mathbf p)pl​=1/βl​+uParent(l)​(p) for all lll.

Significance

The result itself. Theorem 7.3 turns a nonconcave, many-product pricing problem into an iteration that needs no gradient evaluations and no step size. Each iteration costs one bottom-up and one top-down pass over the tree. The paper's numerical experiments (§8) report that it reaches a stationary point much faster than gradient ascent. Lemma 7.1 gives the gradient of the expected revenue in closed form for any depth. Corollary 7.2 turns stationarity into a fixed-point equation in the prices, which is what makes a price-update scheme like PUPD natural.

Formalizing it. The proofs of Lemma 7.1 and Theorem 7.3 are in the paper's online Appendix E. The acknowledgments (pp. 340–341) record that an error found in an earlier version led to a new proof that the revenues under the PUPD algorithm are always bounded. A machine-checked proof would settle the convergence claim independently of that history. No nested logit or multinomial logit pricing result, and no part of this one, has a machine-checked proof on Prove2Me.

Difficulty

Lemma 7.1 is a chain-rule computation through a tree of power means, and it is technical rather than deep. The hard part is Theorem 7.3. The obvious fixed-point iteration pls+1=1/βl+uParent(l)(ps)p^{s+1}_l=1/\beta_l+u_{\mathrm{Parent}(l)}(\mathbf p^s)pls+1​=1/βl​+uParent(l)​(ps) suggested by Corollary 7.2 is not the algorithm. PUPD replaces uuu by the scalars tst^sts, which involve a maximum, and the update direction ps+1−ps\mathbf p^{s+1}-\mathbf p^sps+1−ps is in general not parallel to the gradient. So neither contraction arguments for the plain fixed-point map nor the standard ascent analysis of gradient methods applies directly. RrootR_{\mathrm{root}}Rroot​ is not concave and may have several stationary points, so convergence of the whole sequence, not only of a subsequence or of the gradient norms, is the substance of the claim.

Formalization scope

The node type is Option (Fin n) ⊕ Inner. Sum.inl (some l) is product lll, indexed by Fin n, so the paper's products 1,…,n1,\dots,n1,…,n are 0,…,n−10,\dots,n-10,…,n−1. Sum.inl none is node 000. Inner is a finite type of nonleaf nodes containing root, with a parent map into Inner and a level function that encodes the ddd levels. Every nonleaf node has a child. Prices are Fin n → ℝ, so node 000 has no price coordinate, and all nnn products are priced (there is no assortment decision). The conventions:

  • Powers xηjx^{\eta_j}xηj​ are Real.rpow. Since ηroot=0\eta_{\mathrm{root}}=0ηroot​=0, Vroot=1V_{\mathrm{root}}=1Vroot​=1 and it is never used. Division is Lean's, but every denominator is positive under the standing assumptions.
  • RrootR_{\mathrm{root}}Rroot​, θl\theta_lθl​ and uju_juj​ are defined on all of Rn\mathbb R^nRn by the paper's formulas. The paper restricts to R+n\mathbb R^n_+R+n​, and Lemma 7.1 and Corollary 7.2 keep that hypothesis as printed.
  • The partial derivative in Lemma 7.1 is HasDerivAt of x↦Rroot(px\mapsto R_{\mathrm{root}}(\mathbf px↦Rroot​(p with pl:=x)p_l:=x)pl​:=x) at plp_lpl​. "Stationary point" is HasFDerivAt R_root 0 p (the gradient is zero). This is the unconstrained gradient, as on p. 335, with no boundary condition, and it is the same notion in Corollary 7.2 and in the goal.
  • θl\theta_lθl​ is defined by the printed product along the root-to-leaf path, and An(l,h)\mathrm{An}(l,h)An(l,h) is reached by d−hd-hd−h parent steps. θl\theta_lθl​ is not a free parameter.
  • The PUPD iterates are a definition (pupd) with p0=0\mathbf p^0=\mathbf 0p0=0 and the max-based tst^sts, and troots=Rroot(ps)t^s_{\mathrm{root}}=R_{\mathrm{root}}(\mathbf p^s)troots​=Rroot​(ps). The goal is not stated for an arbitrary start point or for the uuu-based iteration.

A trivializing formalization is ruled out: convergence is Filter.Tendsto of the full sequence to a point at which HasFDerivAt holds with derivative 000. It is not a statement about limit points, gradient norms, or an arbitrary sequence satisfying a hypothesis.

A complete development needs derivatives of Real.rpow compositions over a finite tree, positivity of the weights and choice probabilities, and a convergence argument for the PUPD iteration. The weight and revenue recursions over a finite rooted tree could be reused for the assortment half of the same paper and for other tree-structured choice models. Contributions to any milestone, and alternative proofs of Lemma 7.1, are welcome.

Selected references

  • H. Li, P. Rusmevichientong, H. Topaloglu, The d-Level Nested Logit Model: Assortment and Price Optimization Problems, Operations Research 63(2):325–341, 2015. https://doi.org/10.1287/opre.2015.1355
  • G. Gallego, R. Wang, Multiproduct Price Optimization and Competition Under the Nested Logit Model with Product-Differentiated Price Sensitivities, Operations Research 62(2):450–461, 2014. https://doi.org/10.1287/opre.2013.1249
  • W. Hanson, K. Martin, Optimizing Multinomial Logit Profit Functions, Management Science 42(7):992–1003, 1996. https://doi.org/10.1287/mnsc.42.7.992
  • D. McFadden, Modelling the Choice of Residential Location, in A. Karlqvist et al. (eds.), Spatial Interaction Theory and Planning Models, North-Holland, 1978, 75–96 (cited as McFadden 1978 on p. 328 of Li et al.).
6 thms1 active userReviewed
Optimization·Captain: mikedeng1

The d-Level Nested Logit Model: Assortment and Price Optimization Problems I: The Optimal Assortment Offers Each Product Whose Revenue Meets Its Parent's ThresholdResearch Paper

Motivation

A retailer or an airline chooses which products to offer, and customers choose among what is offered. The assortment problem asks for the offer set that maximizes expected revenue when customer choice follows a given probabilistic model. Under the multinomial logit model the answer has a simple shape: an optimal assortment is revenue ordered, i.e. it consists of all products whose revenue exceeds some threshold (Talluri and van Ryzin, 2004). The multinomial logit model treats all products as equally substitutable, and nested logit models relax this by grouping products into nests whose utilities are correlated.

The ddd-level nested logit model organizes the products as the leaves of a tree with ddd levels, each level refining the grouping of the previous one (for instance category, brand, size). Li, Rusmevichientong and Topaloglu (Oper. Res. 63(2), 2015) characterized an optimal assortment under this model for every ddd. Timeline: the one-level case (multinomial logit) is due to Talluri and van Ryzin (2004); the two-level case with an arbitrary number of nests is due to Davis, Gallego and Topaloglu (2014); Li, Rusmevichientong and Topaloglu (2015) treat arbitrary depth ddd. This mission formalizes the 2015 characterization and the three statements of §4 of that paper that lead to it.

Setting

There are nnn products 1,…,n1,\dots,n1,…,n and a no-purchase option 000. A product tree TTT is a finite rooted tree with ddd levels whose leaves are exactly the n+1n+1n+1 products: the leaves 1,…,n1,\dots,n1,…,n lie at depth ddd, and leaf 000 is a child of the root. Each node jjj other than the root has a parent Parent(j)\mathrm{Parent}(j)Parent(j); Children(j)\mathrm{Children}(j)Children(j) is the set of its children, and Nj⊆{0,…,n}N_j\subseteq\{0,\dots,n\}Nj​⊆{0,…,n} is the set of leaves below jjj. Each nonleaf node carries a nest parameter ηj∈(0,1]\eta_j\in(0,1]ηj​∈(0,1], with ηroot=0\eta_{\mathrm{root}}=0ηroot​=0. Each product carries an attractiveness vl>0v_l>0vl​>0, and each product l≥1l\ge1l≥1 a revenue rl∈Rr_l\in\mathbb Rrl​∈R.

An assortment is a set S⊆{1,…,n}S\subseteq\{1,\dots,n\}S⊆{1,…,n}; the no-purchase option is always available. The preference weight of a node is defined bottom-up: Vl=vlV_l=v_lVl​=vl​ at an offered product leaf, Vl=0V_l=0Vl​=0 at a product leaf that is not offered, V0=v0V_0=v_0V0​=v0​, and at a nonleaf node

Vj(Sj)=(∑k∈Children(j)Vk(Sk))ηj,V_j(S_j)=\Big(\sum_{k\in\mathrm{Children}(j)}V_k(S_k)\Big)^{\eta_j},Vj​(Sj​)=(k∈Children(j)∑​Vk​(Sk​))ηj​,

so Vroot=1V_{\mathrm{root}}=1Vroot​=1. A customer at a nonleaf node jjj moves to child kkk with probability Vk/∑lVlV_k/\sum_{l}V_lVk​/∑l​Vl​. The expected revenue from a customer at node jjj is Rl=rlR_l=r_lRl​=rl​ at an offered product leaf, 000 at an unoffered leaf and at leaf 000, and

Rj(Sj)=∑k∈Children(j)Vk(Sk)Rk(Sk)∑k∈Children(j)Vk(Sk)R_j(S_j)=\frac{\sum_{k\in\mathrm{Children}(j)}V_k(S_k)R_k(S_k)}{\sum_{k\in\mathrm{Children}(j)}V_k(S_k)}Rj​(Sj​)=∑k∈Children(j)​Vk​(Sk​)∑k∈Children(j)​Vk​(Sk​)Rk​(Sk​)​

at a nonleaf node. The assortment problem is

Z∗=max⁡S⊆{1,…,n}Rroot(Sroot).(3)Z^*=\max_{S\subseteq\{1,\dots,n\}}R_{\mathrm{root}}(S_{\mathrm{root}}).\tag{3}Z∗=S⊆{1,…,n}max​Rroot​(Sroot​).(3)

Given an optimal assortment S∗S^*S∗, the thresholds tj∗t^*_jtj∗​ are computed top-down by

tj∗=max⁡{tParent(j)∗, ηjtParent(j)∗+(1−ηj)Rj(Sj∗)},tParent(root)∗=0,t^*_j=\max\{t^*_{\mathrm{Parent}(j)},\ \eta_jt^*_{\mathrm{Parent}(j)}+(1-\eta_j)R_j(S^*_j)\},\qquad t^*_{\mathrm{Parent}(\mathrm{root})}=0,tj∗​=max{tParent(j)∗​, ηj​tParent(j)∗​+(1−ηj​)Rj​(Sj∗​)},tParent(root)∗​=0,

and the local problem at node jjj is

max⁡Sj⊆Nj Vj(Sj)(Rj(Sj)−tParent(j)∗).(4)\max_{S_j\subseteq N_j}\ V_j(S_j)\big(R_j(S_j)-t^*_{\mathrm{Parent}(j)}\big).\tag{4}Sj​⊆Nj​max​ Vj​(Sj​)(Rj​(Sj​)−tParent(j)∗​).(4)

Formalization targets

Goal: Corollary 4.3 (revenue comparison)

For every product tree and parameters in the ranges above, and for every optimal assortment S∗S^*S∗ with its thresholds t∗t^*t∗,

S^={ l∈{1,…,n}: rl≥tParent(l)∗ }satisfiesRroot(Sroot)≤Rroot(S^root)  for all S⊆{1,…,n}.\hat S=\{\,l\in\{1,\dots,n\}:\ r_l\ge t^*_{\mathrm{Parent}(l)}\,\}\quad\text{satisfies}\quad R_{\mathrm{root}}(S_{\mathrm{root}})\le R_{\mathrm{root}}(\hat S_{\mathrm{root}})\ \text{ for all } S\subseteq\{1,\dots,n\}.S^={l∈{1,…,n}: rl​≥tParent(l)∗​}satisfiesRroot​(Sroot​)≤Rroot​(S^root​)  for all S⊆{1,…,n}.

Milestones

  • Proposition 4.1. For an optimal S∗S^*S∗ and every node jjj, Sj∗=S∗∩NjS^*_j=S^*\cap N_jSj∗​=S∗∩Nj​ is an optimal solution of the local problem (4) at jjj.
  • The root observation (§4, p. 329). The objective of the local problem at the root equals RrootR_{\mathrm{root}}Rroot​, and a set solves the local problem at the root exactly when it solves (3).
  • Theorem 4.2. At a nonleaf node jjj, if S^k⊆Nk\hat S_k\subseteq N_kS^k​⊆Nk​ solves the local problem at each child kkk, then ⋃k∈Children(j)S^k\bigcup_{k\in\mathrm{Children}(j)}\hat S_k⋃k∈Children(j)​S^k​ solves the local problem at jjj.

Significance

The corollary says that an optimal assortment is determined by one comparison per product: a product is offered exactly when its revenue reaches a threshold attached to its parent node. Within each group of sibling products the optimal assortment is therefore revenue ordered, which reduces the search from 2n2^n2n subsets to a structured family, and it is the basis of the paper's polynomial-time algorithm (§5). For one level it recovers the revenue-ordered result for multinomial logit, and for two levels the characterization of Davis, Gallego and Topaloglu (2014). Theorem 4.2, the synthesis of local solutions, is the property that makes a bottom-up dynamic program over the tree correct.

The result is proved in the paper; the proofs of Proposition 4.1 and Theorem 4.2 are in its online appendix. No machine-checked version of any nested logit assortment result is known to exist. A formalization would give a verified statement of the model itself (recursive preference weights with real exponents, conditional revenues, top-down thresholds), which is reusable for the paper's pricing results and for other tree-structured choice models.

Difficulty

The objective RrootR_{\mathrm{root}}Rroot​ is a nested ratio of sums raised to fractional powers, neither concave nor monotone in the offer set, so the usual exchange argument for revenue-ordered sets does not apply directly: adding a product to a nest changes that nest's weight, and through the exponents ηj\eta_jηj​ the weight of every ancestor. The thresholds tj∗t^*_jtj∗​ are defined from an optimal assortment that is not known in advance, so every statement is a property of an unknown optimum rather than a computation. The local problems couple across levels only through these thresholds, and relating the optimum of the problem at a node to the optima at its children is the step that requires work. A proof that tries to compare S^\hat SS^ with S∗S^*S∗ product by product meets the fact that S^\hat SS^ and S∗S^*S∗ may differ at ties.

Formalization scope

The tree is a structure ProductTree n with a finite node type, a root, a parent map, a depth function (root at depth 000, children one level deeper, all depths at most ddd, product leaves at depth exactly ddd, leaf 000 a child of the root) and an injective leaf map Fin (n + 1) → Node. Assortments are finsets of Fin (n + 1) not containing 000; the no-purchase leaf always contributes v0v_0v0​. Preference weights use Real.rpow, so x0=1x^0=1x0=1 gives Vroot=1V_{\mathrm{root}}=1Vroot​=1. Conventions fixed in Lean and silent on the page:

  • ηroot=0\eta_{\mathrm{root}}=0ηroot​=0 and ηj∈(0,1]\eta_j\in(0,1]ηj​∈(0,1] at the other nonleaf nodes (StandingEta);
  • v0,…,vn>0v_0,\dots,v_n>0v0​,…,vn​>0 is a hypothesis of every theorem: the page never states a sign, but the model presupposes it, and it makes every denominator in (2) positive; revenues carry no sign condition;
  • Rj(∅)=0R_j(\emptyset)=0Rj​(∅)=0 at a nonleaf node whose subtree offers nothing (Lean's x / 0 = 0 on the page's 0/00/00/0); in t∗t^*t∗ this value yields tj∗=tParent(j)∗t^*_j=t^*_{\mathrm{Parent}(j)}tj∗​=tParent(j)∗​;
  • the thresholds are a function of the given optimal S∗S^*S∗, and the goal holds for every optimal S∗S^*S∗;
  • optimality means "no assortment has larger objective", with a finite quantifier, never a supremum.

A trivializing formalization is ruled out: the thresholds are not free parameters or computed from S^\hat SS^, and the conclusion is optimality of S^\hat SS^ against every assortment, not an existence statement.

A complete development needs facts about the recursive definitions (unfolding at leaves and nonleaf nodes, Nroot={0,…,n}N_{\mathrm{root}}=\{0,\dots,n\}Nroot​={0,…,n}, disjointness of the NkN_kNk​ of siblings), monotonicity and concavity properties of x↦xηx\mapsto x^{\eta}x↦xη on [0,∞)[0,\infty)[0,∞) from Mathlib, and induction over the tree by depth. Tree-induction lemmas and the model layer are reusable by the companion pricing mission. Contributions of a proof of any milestone, of alternative proofs of Theorem 4.2, and of the special cases d=1d=1d=1 and d=2d=2d=2 are welcome.

Selected references

  • H. Li, P. Rusmevichientong, H. Topaloglu, The d-Level Nested Logit Model: Assortment and Price Optimization Problems, Operations Research 63(2):325–341, 2015. https://doi.org/10.1287/opre.2015.1355
  • J. M. Davis, G. Gallego, H. Topaloglu, Assortment Optimization Under Variants of the Nested Logit Model, Operations Research 62(2):250–273, 2014. https://doi.org/10.1287/opre.2014.1256
  • K. Talluri, G. van Ryzin, Revenue Management Under a General Discrete Choice Model of Consumer Behavior, Management Science 50(1):15–33, 2004. https://doi.org/10.1287/mnsc.1030.0147
6 thms1 active userReviewed
Bandit AlgorithmsStatistics·Captain: mikedeng1

Dynamic Pricing with an Unknown Demand Model: Asymptotically Optimal Semi-Myopic Policies II: Sufficient Conditions for Square-Root-Times-Log Regret of Least Squares PricingResearch Paper

Motivation

A seller who does not know its demand curve has to learn it from the sales it makes. Each price it charges earns revenue now and also produces information for later. This learning-and-earning problem is basic to revenue management and online retail. The most common heuristic is certainty-equivalence pricing: fit the demand model by least squares, then charge the price that would be optimal if the fit were exact. The heuristic can fail. Its prices may settle at a wrong value, so that estimation stops improving, a phenomenon called incomplete learning (Lai and Robbins 1982; den Boer and Zwart 2013). The regret then grows linearly in the horizon.

Keskin and Zeevi (2014) first show that no policy can have regret below order T\sqrt TT​ (the subject of the first mission in this series). They then give two simple, checkable conditions on a policy's price path that guarantee regret of order Tlog⁡T\sqrt T \log TT​logT. The conditions cover a whole family of modified least squares policies, including the "MLE-cycle" policy of Broder and Rusmevichientong (2012) and the "controlled variance" policy of den Boer and Zwart. This mission formalizes those sufficient conditions (Theorem 2 of the paper).

Setting

A seller charges prices pt∈[l,u]p_t \in [l,u]pt​∈[l,u], 0≤l<u0 \le l < u0≤l<u, in periods t=1,2,…t = 1, 2, \dotst=1,2,… and observes the demand

Dt=α+βpt+εt.D_t = \alpha + \beta p_t + \varepsilon_t .Dt​=α+βpt​+εt​.

The unknown parameter θ=(α,β)\theta = (\alpha,\beta)θ=(α,β) lies in a rectangle Θ=[amin⁡,amax⁡]×[bmin⁡,bmax⁡]\Theta = [a_{\min},a_{\max}]\times[b_{\min},b_{\max}]Θ=[amin​,amax​]×[bmin​,bmax​] with bmax⁡<0b_{\max} < 0bmax​<0. The demand shocks εt\varepsilon_tεt​ are i.i.d. with mean 000 and variance σ2>0\sigma^2 > 0σ2>0, and they are light-tailed: E[ezεt]<∞\mathbb{E}[e^{z\varepsilon_t}] < \inftyE[ezεt​]<∞ for ∣z∣≤z0|z| \le z_0∣z∣≤z0​, for some z0>0z_0 > 0z0​>0. The expected revenue is rθ(p)=p(α+βp)r_\theta(p) = p(\alpha+\beta p)rθ​(p)=p(α+βp), maximized at the myopic price φ(θ)=−α/(2β)\varphi(\theta) = -\alpha/(2\beta)φ(θ)=−α/(2β). The model assumes φ(θ)∈(l,u)\varphi(\theta) \in (l,u)φ(θ)∈(l,u) for all θ∈Θ\theta \in \Thetaθ∈Θ.

A pricing policy π\piπ charges a constant p1p_1p1​ and then pt+1=πt+1(Ht)p_{t+1} = \pi_{t+1}(H_t)pt+1​=πt+1​(Ht​), where πt+1\pi_{t+1}πt+1​ is a measurable function of the history Ht=(D1,p1,…,Dt,pt)H_t = (D_1,p_1,\dots,D_t,p_t)Ht​=(D1​,p1​,…,Dt​,pt​) with values in [l,u][l,u][l,u]. The regret of π\piπ under θ\thetaθ is

Δθπ(T)=T rθ(φ(θ))−Eθπ[∑t=1Trθ(pt)].\Delta^\pi_\theta(T) = T\,r_\theta(\varphi(\theta)) - \mathbb{E}^\pi_\theta\Big[\sum_{t=1}^T r_\theta(p_t)\Big].Δθπ​(T)=Trθ​(φ(θ))−Eθπ​[t=1∑T​rθ​(pt​)].

After ttt periods the empirical Fisher information is Jt=∑s=1t[1pspsps2]\mathcal{J}_t = \sum_{s=1}^t \begin{bmatrix}1 & p_s\\ p_s & p_s^2\end{bmatrix}Jt​=∑s=1t​[1ps​​ps​ps2​​]. The least squares estimate is θ^t=Jt−1(∑sDs,∑sDsps)T\hat\theta_t = \mathcal{J}_t^{-1}(\sum_s D_s, \sum_s D_s p_s)^{\mathsf T}θ^t​=Jt−1​(∑s​Ds​,∑s​Ds​ps​)T, and the truncated estimate ϑt\vartheta_tϑt​ is the Euclidean projection of θ^t\hat\theta_tθ^t​ onto Θ\ThetaΘ. The information metric is Jt=∑s=1t(ps−pˉt)2J_t = \sum_{s=1}^t (p_s - \bar p_t)^2Jt​=∑s=1t​(ps​−pˉ​t​)2 with pˉt=t−1∑s=1tps\bar p_t = t^{-1}\sum_{s=1}^t p_spˉ​t​=t−1∑s=1t​ps​. The greedy least squares price in period s+1s+1s+1 is φ(ϑs)\varphi(\vartheta_s)φ(ϑs​).

Formalization targets

Goal: Theorem 2 (sufficient conditions for asymptotic optimality)

Let θ∈Θ\theta \in \Thetaθ∈Θ, let κ0,κ1>0\kappa_0,\kappa_1 > 0κ0​,κ1​>0, and let π\piπ satisfy, almost surely for all t≥2t \ge 2t≥2,

(i)  Jt≥κ0t,(ii)  ∑s=2t(φ(ϑs)−ps+1)2≤κ1t.\text{(i)}\ \ J_t \ge \kappa_0\sqrt t, \qquad \text{(ii)}\ \ \sum_{s=2}^t \big(\varphi(\vartheta_s) - p_{s+1}\big)^2 \le \kappa_1 \sqrt t .(i)  Jt​≥κ0​t​,(ii)  s=2∑t​(φ(ϑs​)−ps+1​)2≤κ1​t​.

Then there is a finite C>0C > 0C>0 with

Δθπ(T)≤CTlog⁡Tfor all T≥3.\Delta^\pi_\theta(T) \le C\sqrt T \log T \quad\text{for all } T \ge 3 .Δθπ​(T)≤CT​logTfor all T≥3.

The goal fixes no constant. It asserts only the rate Tlog⁡T\sqrt T\log TT​logT.

Milestones

  1. Lemma 2 (corrected constant). For any prices in [l,u][l,u][l,u], μmin⁡(Jt)≥Jt/(1+u2+(u−l)2)\mu_{\min}(\mathcal{J}_t) \ge J_t/(1+u^2+(u-l)^2)μmin​(Jt​)≥Jt​/(1+u2+(u−l)2).
  2. Lemma 3. There are ρ,k>0\rho, k > 0ρ,k>0 such that for every policy, every θ∈Θ\theta\in\Thetaθ∈Θ, all δ,m>0\delta,m>0δ,m>0 and t≥2t\ge 2t≥2,
Pθπ{∥θ^t−θ∥>δ, Jt≥m}≤k t e−ρ(δ∧δ2)m.\mathbb{P}^\pi_\theta\{\lVert\hat\theta_t-\theta\rVert>\delta,\ J_t\ge m\} \le k\,t\,e^{-\rho(\delta\wedge\delta^2)m}.Pθπ​{∥θ^t​−θ∥>δ, Jt​≥m}≤kte−ρ(δ∧δ2)m.
  1. (A10). E(φ(θ)−pt+1)2≤2E(φ(θ)−φ(ϑt))2+2E(φ(ϑt)−pt+1)2\mathbb{E}(\varphi(\theta)-p_{t+1})^2 \le 2\mathbb{E}(\varphi(\theta)-\varphi(\vartheta_t))^2 + 2\mathbb{E}(\varphi(\vartheta_t)-p_{t+1})^2E(φ(θ)−pt+1​)2≤2E(φ(θ)−φ(ϑt​))2+2E(φ(ϑt​)−pt+1​)2.
  2. (A11). Under (i), there are K>0K>0K>0 and NNN with E(φ(θ)−pt+1)2≤Klog⁡t/t+2E(φ(ϑt)−pt+1)2\mathbb{E}(\varphi(\theta)-p_{t+1})^2 \le K\log t/\sqrt t + 2\mathbb{E}(\varphi(\vartheta_t)-p_{t+1})^2E(φ(θ)−pt+1​)2≤Klogt/t​+2E(φ(ϑt​)−pt+1​)2 for t≥max⁡{N,2}t \ge \max\{N,2\}t≥max{N,2}.
  3. Regret identity. Δθπ(T)=−β∑t=1TE(pt−φ(θ))2\Delta^\pi_\theta(T) = -\beta\sum_{t=1}^T \mathbb{E}(p_t-\varphi(\theta))^2Δθπ​(T)=−β∑t=1T​E(pt​−φ(θ))2.

Significance

The result. Theorem 2 turns the design of a near-optimal learning policy into two pathwise constraints on the price sequence. Condition (i) requires enough price dispersion to keep learning. Condition (ii) requires the policy to stay close to the greedy price so that it keeps earning. Any least squares variant that satisfies both constraints is optimal up to a logarithmic factor, and together with the T\sqrt TT​ lower bound this fixes the minimax rate of the problem. The constrained-ILS and decaying-perturbation policies of §3.3 are certified this way, and the same template reappears in the paper's incumbent-price and multiproduct results.

Formalizing it. The theorem is proved in the paper. It has no machine-checked proof, and the platform has no dynamic-pricing results so far. A formalization would contribute a reusable model of adaptively chosen designs with a least squares estimator, an exponential concentration bound for least squares under adaptive prices (Lemma 3), and the regret decomposition. The formalization also checks the paper's constants: one of them, in Lemma 2, is misprinted (see Formalization scope).

Difficulty

The prices are chosen by the policy from past noise, so the regression design is random and adapted. The classical fixed-design analysis of least squares does not apply, and neither does a union bound over a fixed set of designs. Lemma 3 needs a tail bound for θ^t−θ\hat\theta_t - \thetaθ^t​−θ that is uniform over all directions in the plane and holds only on the event where JtJ_tJt​ is large, with noise that is only light-tailed rather than Gaussian or bounded. Converting the eigenvalue of Jt\mathcal{J}_tJt​ into the scalar JtJ_tJt​ (Lemma 2) is elementary but easy to get wrong, as the misprinted constant shows. Summing the per-period bounds into the Tlog⁡T\sqrt T\log TT​logT rate is where conditions (i) and (ii) interact.

Formalization scope

Periods are indexed from 111. The noise is a family ε : ℕ → Ω → ℝ on a probability space, with ε t used in period ttt. The price process of a policy is built by recursion from the noise, which realises the paper's law on demand sequences. A policy is a family of measurable maps from histories Fin t → ℝ × ℝ of (demand, price) pairs into [l,u][l,u][l,u], and it sees neither θ\thetaθ nor the noise. Expectations are Bochner integrals of bounded measurable functions. Probabilities are ENNReal values. Real.log is the natural logarithm. The least squares estimate uses Mathlib's matrix inverse, which is 000 on singular matrices. Every statement uses θ^t\hat\theta_tθ^t​ only where Jt>0J_t > 0Jt​>0, which is equivalent to det⁡Jt=tJt>0\det\mathcal{J}_t = tJ_t > 0detJt​=tJt​>0. The truncation onto Θ\ThetaΘ is coordinatewise clamping, the Euclidean projection onto a rectangle. The smallest eigenvalue is the infimum of the Rayleigh quotient over unit vectors. Constants sit in the paper's quantifier positions: CCC after θ\thetaθ and π\piπ in the goal; ρ,k\rho, kρ,k before the policy in Lemma 3.

Corrections of the printed statements.

  • Theorem 2, condition (i). The page requires (i) "almost surely for all ttt". At t=1t=1t=1, J1=0<κ0J_1 = 0 < \kappa_0J1​=0<κ0​, so read literally no policy satisfies the hypotheses and the theorem is vacuous. Conditions (i) and (ii) are required for t≥2t \ge 2t≥2, as the proof uses them.
  • Theorem 2, condition (ii). The page's sum starts at s=0s=0s=0, but ϑ0\vartheta_0ϑ0​ and ϑ1\vartheta_1ϑ1​ are undefined for a general policy because J0\mathcal{J}_0J0​ and J1\mathcal{J}_1J1​ are singular. The sum starts at s=2s = 2s=2. This only weakens the hypothesis.
  • Lemma 2. The printed constant γ=2/(1+2u−l)2\gamma = 2/(1+2u-l)^2γ=2/(1+2u−l)2 is false. For l=9.9l = 9.9l=9.9, u=10u=10u=10, p=(9.9,10)p = (9.9, 10)p=(9.9,10) one gets μmin⁡≈5.0⋅10−5<γJ2≈8.1⋅10−5\mu_{\min} \approx 5.0\cdot10^{-5} < \gamma J_2 \approx 8.1\cdot10^{-5}μmin​≈5.0⋅10−5<γJ2​≈8.1⋅10−5. The statement uses γ′=1/(1+u2+(u−l)2)\gamma' = 1/(1+u^2+(u-l)^2)γ′=1/(1+u2+(u−l)2), and downstream results use only γ′>0\gamma' > 0γ′>0.
  • (A11). The paper's explicit constants 4K~0/(ρκ0)4\tilde K_0/(\rho\kappa_0)4K~0​/(ρκ0​) and NNN depend on the existential constants of Lemma 3. They are therefore stated as existential KKK and NNN, uniform in θ\thetaθ and π\piπ.

Trivializing formalizations ruled out. Hypotheses that no policy can satisfy (conditions required at t=1t=1t=1) are excluded by the t≥2t \ge 2t≥2 form. A policy type that could read θ\thetaθ or the noise is excluded by construction. Junk values of the matrix inverse and of pˉ0\bar p_0pˉ​0​ never enter a hypothesis or conclusion.

A complete development needs the price-process recursion and its measurability, exponential supermartingales for adaptively weighted sums of light-tailed noise, a covering argument on the unit circle, and the layer-cake formula for E∥θ^t−θ∥2\mathbb{E}\lVert\hat\theta_t-\theta\rVert^2E∥θ^t​−θ∥2. The model, the least squares estimator and Lemmas 2–3 can be reused for the incumbent-price variant (mission IV of this series) and for other least-squares-based pricing and bandit policies. Contributions of any milestone are welcome, and Lemma 3 on its own is a useful statement.

Selected references

  • N. B. Keskin and A. Zeevi, Dynamic Pricing with an Unknown Demand Model: Asymptotically Optimal Semi-Myopic Policies, Operations Research 62(5):1142–1167, 2014. https://doi.org/10.1287/opre.2014.1294
  • J. Broder and P. Rusmevichientong, Dynamic Pricing under a General Parametric Choice Model, Operations Research 60(4):965–980, 2012. https://doi.org/10.1287/opre.1120.1057
  • A. V. den Boer and B. Zwart, Simultaneously Learning and Optimizing Using Controlled Variance Pricing, Management Science 60(3):770–783, 2014. https://doi.org/10.1287/mnsc.2013.1788
  • T. L. Lai and H. Robbins, Iterated Least Squares in Multiperiod Control, Advances in Applied Mathematics 3(1):50–73, 1982. https://doi.org/10.1016/0196-8858(82)90003-1
11 thms1 active userReviewed
Bandit AlgorithmsStatistics·Captain: mikedeng1

Dynamic Pricing with an Unknown Demand Model: Asymptotically Optimal Semi-Myopic Policies I: A Square-Root Lower Bound on Regret for Linear DemandResearch Paper

Motivation

A firm that sells a product repeatedly and does not know how demand responds to price must learn the demand curve and profit from it at the same time. This is the learn-and-earn or dynamic pricing with demand learning problem. It is a standard model in revenue management, and it is one of the simplest settings where exploration and exploitation have to be traded off in a continuous action space.

The paper behind this mission is N. Bora Keskin and Assaf Zeevi, Dynamic Pricing with an Unknown Demand Model: Asymptotically Optimal Semi-Myopic Policies, Operations Research 62(5):1142–1167, 2014 (doi:10.1287/opre.2014.1294). For a linear demand model with two unknown parameters, it proves a lower bound on the regret of every pricing policy. It then gives simple conditions under which least-squares-based policies attain that bound up to a logarithmic factor. This mission is the first of a series on the paper, and its target is the lower bound (Theorem 1).

Timeline. Earlier work had already obtained T\sqrt{T}T​-type lower bounds for dynamic pricing under demand uncertainty:

  • Besbes and Zeevi (2009, doi:10.1287/opre.1080.0640) studied non-parametric pricing.
  • Besbes and Zeevi (2011) and Broder and Rusmevichientong (2012, doi:10.1287/opre.1120.1057) proved T\sqrt{T}T​ lower bounds with arguments based on the Kullback–Leibler divergence, for uncertainty in a single model parameter.

Keskin and Zeevi (2014) prove the T\sqrt{T}T​ bound when both the intercept and the slope of the demand curve are unknown. Their argument uses the Van Trees inequality instead (p. 1146).

Setting

Prices lie in an interval [l,u][l,u][l,u] with 0≤l<u0 \le l < u0≤l<u. In period t=1,2,…t = 1, 2, \dotst=1,2,… the seller charges pt∈[l,u]p_t \in [l,u]pt​∈[l,u] and observes the demand

Dt=α+βpt+εt.D_t = \alpha + \beta p_t + \varepsilon_t .Dt​=α+βpt​+εt​.

The demand shocks ε1,ε2,…\varepsilon_1, \varepsilon_2, \dotsε1​,ε2​,… are i.i.d. N(0,σ2)\mathcal{N}(0,\sigma^2)N(0,σ2) with σ>0\sigma > 0σ>0.

The parameter θ=(α,β)\theta = (\alpha,\beta)θ=(α,β) is unknown to the seller. It lies in a rectangle

Θ=[amin⁡,amax⁡]×[bmin⁡,bmax⁡],amin⁡<amax⁡,bmin⁡<bmax⁡<0.\Theta = [a_{\min},a_{\max}] \times [b_{\min},b_{\max}], \qquad a_{\min} < a_{\max},\quad b_{\min} < b_{\max} < 0 .Θ=[amin​,amax​]×[bmin​,bmax​],amin​<amax​,bmin​<bmax​<0.

The expected single-period revenue is rθ(p)=p(α+βp)r_\theta(p) = p(\alpha + \beta p)rθ​(p)=p(α+βp), and it is maximized at φ(θ)=−α/(2β)\varphi(\theta) = -\alpha/(2\beta)φ(θ)=−α/(2β). The model assumes that this optimal price lies in the open interval (l,u)(l,u)(l,u) for every θ∈Θ\theta \in \Thetaθ∈Θ.

A pricing policy π\piπ is a constant first price π1∈[l,u]\pi_1 \in [l,u]π1​∈[l,u] together with measurable maps πt+1\pi_{t+1}πt+1​. Each πt+1\pi_{t+1}πt+1​ sends the observed history Ht=(D1,p1,…,Dt,pt)H_t = (D_1,p_1,\dots,D_t,p_t)Ht​=(D1​,p1​,…,Dt​,pt​) to [l,u][l,u][l,u], and the seller charges pt+1=πt+1(Ht)p_{t+1} = \pi_{t+1}(H_t)pt+1​=πt+1​(Ht​). The policy sees neither θ\thetaθ nor the shocks.

The regret of π\piπ over TTT periods under θ\thetaθ is

Δθπ(T)=T rθ(φ(θ))−Eθπ[∑t=1Trθ(pt)].\Delta^\pi_\theta(T) = T\,r_\theta(\varphi(\theta)) - \mathbb{E}^\pi_\theta\Big[\sum_{t=1}^T r_\theta(p_t)\Big].Δθπ​(T)=Trθ​(φ(θ))−Eθπ​[t=1∑T​rθ​(pt​)].

The worst-case regret is Δπ(T)=sup⁡θ∈ΘΔθπ(T)\Delta^\pi(T) = \sup_{\theta\in\Theta}\Delta^\pi_\theta(T)Δπ(T)=supθ∈Θ​Δθπ​(T).

The proof also uses the empirical Fisher information Jt=∑s=1t[1pspsps2]\mathcal{J}_t = \sum_{s=1}^t \begin{bmatrix}1 & p_s\\ p_s & p_s^2\end{bmatrix}Jt​=∑s=1t​[1ps​​ps​ps2​​] and the row vector C(θ)=[−φ(θ)  1]C(\theta) = [-\varphi(\theta)\ \ 1]C(θ)=[−φ(θ)  1].

In Lean, the model is the structure KeskinZeevi.LowerBound.Model. The noise hypothesis is the shared definition RobustBooking.Shared.GaussianNoise (measurable, mutually independent shocks, each with law N(0,σ2)\mathcal{N}(0,\sigma^2)N(0,σ2)). The other objects are Policy, pricePath, regret, worstRegret, sqErr (the expected squared pricing error Eθπ(pt−φ(θ))2\mathbb{E}^\pi_\theta(p_t-\varphi(\theta))^2Eθπ​(pt​−φ(θ))2) and infoQuad (the scalar C(θ)Eθπ[Jt]C(θ)TC(\theta)\mathbb{E}^\pi_\theta[\mathcal{J}_t]C(\theta)^{\mathsf T}C(θ)Eθπ​[Jt​]C(θ)T).

Formalization targets

Goal: Theorem 1 (p. 1146)

There is a finite constant c>0c > 0c>0, depending only on the model, such that

Δπ(T)  ≥  cTfor every pricing policy π and every horizon T≥3.\Delta^\pi(T) \;\ge\; c\sqrt{T}\qquad\text{for every pricing policy } \pi \text{ and every horizon } T \ge 3 .Δπ(T)≥cT​for every pricing policy π and every horizon T≥3.

Milestones (Appendix A.1, pp. 1146 and 1156)

  • Lemma 1, inequality (14). For positive constants c0,c1c_0, c_1c0​,c1​,
sup⁡θ∈Θ∑t=2TEθπ(pt−φ(θ))2  ≥  ∑t=2Tc0c1+sup⁡θ∈ΘC(θ) Eθπ[Jt−1] C(θ)T.\sup_{\theta\in\Theta}\sum_{t=2}^T\mathbb{E}^\pi_\theta(p_t-\varphi(\theta))^2 \;\ge\; \sum_{t=2}^T \frac{c_0}{c_1 + \sup_{\theta\in\Theta} C(\theta)\,\mathbb{E}^\pi_\theta[\mathcal{J}_{t-1}]\,C(\theta)^{\mathsf T}}.θ∈Θsup​t=2∑T​Eθπ​(pt​−φ(θ))2≥t=2∑T​c1​+supθ∈Θ​C(θ)Eθπ​[Jt−1​]C(θ)Tc0​​.
  • The quadratic-form identity. C(θ)Eθπ[Jt−1]C(θ)T=∑s=1t−1Eθπ(ps−φ(θ))2C(\theta)\mathbb{E}^\pi_\theta[\mathcal{J}_{t-1}]C(\theta)^{\mathsf T} = \sum_{s=1}^{t-1}\mathbb{E}^\pi_\theta(p_s-\varphi(\theta))^2C(θ)Eθπ​[Jt−1​]C(θ)T=∑s=1t−1​Eθπ​(ps​−φ(θ))2.
  • Inequality (A2). Lemma 1 with that identity substituted.
  • The regret identity. Δθπ(T)=−β∑t=1TEθπ(pt−φ(θ))2\Delta^\pi_\theta(T) = -\beta\sum_{t=1}^T\mathbb{E}^\pi_\theta(p_t-\varphi(\theta))^2Δθπ​(T)=−β∑t=1T​Eθπ​(pt​−φ(θ))2 for θ∈Θ\theta \in \Thetaθ∈Θ, and consequently Δπ(T)≥∣bmax⁡∣sup⁡θ∑t=2TEθπ(pt−φ(θ))2\Delta^\pi(T) \ge |b_{\max}|\sup_\theta \sum_{t=2}^T \mathbb{E}^\pi_\theta(p_t-\varphi(\theta))^2Δπ(T)≥∣bmax​∣supθ​∑t=2T​Eθπ​(pt​−φ(θ))2.
  • Inequality (A3). Δπ(T)≥bmax⁡2∑t=2Tc0/(∣bmax⁡∣c1+Δπ(t−1))\Delta^\pi(T) \ge b_{\max}^2\sum_{t=2}^T c_0/(|b_{\max}|c_1 + \Delta^\pi(t-1))Δπ(T)≥bmax2​∑t=2T​c0​/(∣bmax​∣c1​+Δπ(t−1)).

The goal states only the order T\sqrt{T}T​ with an unspecified constant. The paper's explicit constant is not part of the target.

Significance

The result. Theorem 1 sets the benchmark for the whole paper. A policy is called asymptotically optimal when its regret grows no faster than T\sqrt{T}T​, up to logarithmic factors. Theorem 2 of the paper then gives sufficient conditions under which least-squares pricing policies meet this benchmark. Without Theorem 1, those upper bounds would have nothing to be optimal against.

The lower bound also explains a well-known failure. Greedy (myopic) least-squares pricing can stop learning and suffer linear regret, and this happens precisely when the information on the right side of (14) stops growing.

Formalizing it. The result is proved on paper but has not been formalized; no dynamic pricing or learn-and-earn regret result is on the platform yet. A formal proof needs a Van Trees (Bayesian Cramér–Rao) inequality for an adaptively generated sample, which Mathlib does not have, and a machine-checked version of the elementary recursion that turns (A3) into T\sqrt{T}T​. The model layer (policies driven by noise, regret, worst-case regret) is shared with the three later missions of the series.

Difficulty

The bound must hold for every measurable, history-dependent policy. So it is a statement about a sequential experiment whose design adapts to the data, not about one fixed estimator.

The usual two-point argument (Le Cam or Kullback–Leibler) perturbs one parameter at a time. It yields T\sqrt{T}T​ only when a single parameter is uncertain, and here both α\alphaα and β\betaβ are unknown. The information a policy gathers about the optimal price is itself tied to how far its prices stray from that price. That self-reference is what inequalities (A2) and (A3) express, and it has to be handled uniformly in π\piπ and in the horizon.

Formalization scope

  • Periods. Lean periods are indexed from 000, so Lean period ttt is the paper's period t+1t+1t+1. Sums ∑t=1T\sum_{t=1}^T∑t=1T​ are Finset.range T, and sums ∑t=2T\sum_{t=2}^T∑t=2T​ are Finset.Ico 1 T.
  • Histories. A history is a function Fin t → ℝ × ℝ of (demand, price) pairs. A policy is a structure with measurable rules valued in [l,u][l,u][l,u].
  • Law of the process. The price process is defined by feeding the noise εt(ω)\varepsilon_t(\omega)εt​(ω) into the policy recursion. This realizes the paper's measure Pθπ\mathbb{P}^\pi_\thetaPθπ​ of Eq. (5) on the noise space.
  • Noise. The theorems quantify over every probability space and every i.i.d. N(0,σ2)\mathcal{N}(0,\sigma^2)N(0,σ2) sequence on it.
  • Constants. Every existential constant is placed before the probability space, the noise, the policy and the horizon, so it depends only on the model.
  • Worst-case regret. It is a real supremum over the subtype Θ\ThetaΘ, which is nonempty. The family is bounded above by ∣bmin⁡∣(u−l)2T|b_{\min}|(u-l)^2T∣bmin​∣(u−l)2T, so the supremum is genuine.
  • Optimal price. φ\varphiφ is defined by its closed form −α/(2β)-\alpha/(2\beta)−α/(2β), and interiority of the optimal price is a field of the model.
  • Correction of the printed statement. Nonempty interior of Θ\ThetaΘ (amin⁡<amax⁡a_{\min}<a_{\max}amin​<amax​, bmin⁡<bmax⁡b_{\min}<b_{\max}bmin​<bmax​) is made explicit. The printed statement leaves it implicit, while the proof uses a prior density positive on the interior of Θ\ThetaΘ (p. 1155). With α\alphaα or β\betaβ known, the statement is false.
  • Trivializing formalizations. The following are ruled out: a degenerate or empty Θ\ThetaΘ, a constant ccc that may depend on π\piπ or TTT, a policy type that can read θ\thetaθ or the noise, and replacing the supremum over Θ\ThetaΘ by an existential over Θ\ThetaΘ.

The Van Trees step (A1) of the proof of Lemma 1 is not a milestone. It needs Fisher information and a prior density on Θ\ThetaΘ, and neither is in Mathlib. Contributions of a Van Trees inequality for this Gaussian model are welcome, as is a formal proof that (A3) implies the T\sqrt{T}T​ bound. The first is reusable for other lower-bound missions of the series, and the second is elementary but careful real analysis. The multiproduct generalization (Theorem 5, §4) is outside this mission.

Selected references

  • N. B. Keskin and A. Zeevi, Dynamic Pricing with an Unknown Demand Model: Asymptotically Optimal Semi-Myopic Policies, Operations Research 62(5):1142–1167, 2014. https://doi.org/10.1287/opre.2014.1294
  • R. D. Gill and B. Y. Levit, Applications of the van Trees inequality: a Bayesian Cramér–Rao bound, Bernoulli 1(1–2):59–79, 1995. https://doi.org/10.2307/3318681
  • O. Besbes and A. Zeevi, Dynamic Pricing Without Knowing the Demand Function: Risk Bounds and Near-Optimal Algorithms, Operations Research 57(6):1407–1420, 2009. https://doi.org/10.1287/opre.1080.0640
  • J. Broder and P. Rusmevichientong, Dynamic Pricing Under a General Parametric Choice Model, Operations Research 60(4):965–980, 2012. https://doi.org/10.1287/opre.1120.1057
  • A. Goldenshluger and A. Zeevi, Woodroofe's One-Armed Bandit Problem Revisited, Annals of Applied Probability 19(4):1603–1633, 2009. https://doi.org/10.1214/08-AAP589
11 thms1 active userReviewed
Linear OptimizationOptimizationTheoretical Computer Science·Captain: mikedeng1

Real-Time Optimization of Personalized Assortments: Inventory Balancing Is α_cmin(Ψ)-CompetitiveResearch Paper

Motivation

Online retailers choose, customer by customer, which products to display. The customer's type (location, history, device) is revealed on arrival. Inventories are finite and are not replenished during the selling season. A seller who shows every customer the currently most profitable products can sell out a product early and leave nothing for later customers who would have bought only that product. Golrezaei, Nazerzadeh and Rusmevichientong (Management Science 60(6), 2014) studied this online personalized assortment problem with no assumption on how customer types arrive. They showed that a simple family of index policies, inventory balancing, earns a guaranteed fraction of a clairvoyant benchmark on every arrival sequence.

The result belongs to a line of worst-case guarantees for online allocation with budgets. The 1−1/e1-1/e1−1/e guarantee for online bbb-matching of Kalyanasundaram and Pruhs (TCS 2000) was extended to the AdWords problem by Mehta, Saberi, Vazirani and Vazirani (J. ACM 2007), whose guarantee holds as the budgets grow large. Buchbinder, Jain and Naor (ESA 2007) recast that analysis in primal–dual form. Golrezaei et al. extend the setting from "assign one item" to "offer a set, and let the customer choose according to a general choice model".

Setting

A firm sells n≥1n\ge1n≥1 products. Product iii earns revenue ri>0r_i>0ri​>0 per unit and has initial inventory ci∈{1,2,… }c_i\in\{1,2,\dots\}ci​∈{1,2,…}. Write cmin⁡=min⁡icic_{\min}=\min_i c_icmin​=mini​ci​. The firm may offer any assortment in a family S\mathcal SS of feasible assortments, and offering nothing is always allowed (∅∈S\emptyset\in\mathcal S∅∈S). A customer of type zzz who is offered SSS buys product i∈Si\in Si∈S with probability φiz(S)\varphi^z_i(S)φiz​(S) and buys nothing otherwise. Each customer buys at most one product. The choice models satisfy substitutability (Assumption 1): adding a product jjj to a feasible assortment never raises the purchase probability φiz\varphi^z_iφiz​ of another product i≠ji\ne ji=j.

A penalty function is an increasing Ψ:[0,1]→[0,1]\Psi:[0,1]\to[0,1]Ψ:[0,1]→[0,1] with Ψ(0)=0\Psi(0)=0Ψ(0)=0 and Ψ(1)=1\Psi(1)=1Ψ(1)=1. Let Iit−1I^{t-1}_iIit−1​ be the remaining inventory of product iii when the customer of period ttt, of type ztz_tzt​, arrives. The inventory-balancing algorithm offers

St∈arg⁡max⁡S∈S ∑i∈SΨ ⁣(Iit−1/ci)ri φizt(S),S^t\in\arg\max_{S\in\mathcal S}\ \sum_{i\in S}\Psi\!\left(I^{t-1}_i/c_i\right) r_i\,\varphi^{z_t}_i(S),St∈argS∈Smax​ i∈S∑​Ψ(Iit−1​/ci​)ri​φizt​​(S),

breaking ties by the fewest products. A sale decrements the inventory by one, and Iit=max⁡{Iit−1−Qit,0}I^t_i=\max\{I^{t-1}_i-Q^t_i,0\}Iit​=max{Iit−1​−Qit​,0}, where QitQ^t_iQit​ indicates a purchase of iii. The expected revenue over the horizon is Rev\mathrm{Rev}Rev.

The benchmark is the linear program Primal({zt}t=1T)\mathrm{Primal}(\{z_t\}_{t=1}^T)Primal({zt​}t=1T​). It maximizes ∑t∑S∈S∑iriφizt(S) yt(S)\sum_t\sum_{S\in\mathcal S}\sum_i r_i\varphi^{z_t}_i(S)\,y^t(S)∑t​∑S∈S​∑i​ri​φizt​​(S)yt(S) subject to the expected capacity constraints ∑t∑Sφizt(S)yt(S)≤ci\sum_t\sum_S\varphi^{z_t}_i(S)y^t(S)\le c_i∑t​∑S​φizt​​(S)yt(S)≤ci​, with yt(⋅)y^t(\cdot)yt(⋅) a probability vector on S\mathcal SS in every period. Its value upper-bounds the expected revenue of every online algorithm, including one that knows the whole sequence in advance.

Formalization targets

Goal: Theorem 1

For every horizon TTT, every sequence of types z1,…,zTz_1,\dots,z_Tz1​,…,zT​ and every feasible solution yyy of Primal({zt})\mathrm{Primal}(\{z_t\})Primal({zt​}), if Ψ\PsiΨ is in addition concave and twice differentiable, then

Rev  ≥  αcmin⁡(Ψ)∑t=1T∑S∈S∑i=1nri φizt(S) yt(S),αcmin⁡(Ψ)=min⁡x∈[0,1−1/cmin⁡]1−x1cmin⁡+1−Ψ(x)+∫x+1/cmin⁡1Ψ(y) dy.\mathrm{Rev}\;\ge\;\alpha_{c_{\min}}(\Psi)\sum_{t=1}^T\sum_{S\in\mathcal S}\sum_{i=1}^n r_i\,\varphi^{z_t}_i(S)\,y^t(S),\qquad \alpha_{c_{\min}}(\Psi)=\min_{x\in[0,1-1/c_{\min}]}\frac{1-x}{\frac1{c_{\min}}+1-\Psi(x)+\int_{x+1/c_{\min}}^{1}\Psi(y)\,dy}.Rev≥αcmin​​(Ψ)t=1∑T​S∈S∑​i=1∑n​ri​φizt​​(S)yt(S),αcmin​​(Ψ)=x∈[0,1−1/cmin​]min​cmin​1​+1−Ψ(x)+∫x+1/cmin​1​Ψ(y)dy1−x​.

The constant is the paper's, exactly as printed. It depends only on cmin⁡c_{\min}cmin​ and Ψ\PsiΨ.

Milestones

  1. Lemma 5. Both parts are milestones. First, x↦(1−x)/(2−x−Ψ(x))x\mapsto(1-x)/(2-x-\Psi(x))x↦(1−x)/(2−x−Ψ(x)) is increasing on [0,1)[0,1)[0,1). Second, C↦1/C+∫a+1/C1ΨC\mapsto1/C+\int_{a+1/C}^1\PsiC↦1/C+∫a+1/C1​Ψ is decreasing on [1/(1−a),∞)[1/(1-a),\infty)[1/(1−a),∞) for a∈[0,1)a\in[0,1)a∈[0,1).
  2. Riemann-sum bound. 1c∑k=I+1cΨ(k/c)≤1c+∫(I+1)/c1Ψ\frac1c\sum_{k=I+1}^{c}\Psi(k/c)\le\frac1c+\int_{(I+1)/c}^1\Psic1​∑k=I+1c​Ψ(k/c)≤c1​+∫(I+1)/c1​Ψ for integers 0≤I<c0\le I<c0≤I<c.
  3. Telescoping. For an inventory path that starts at ccc and falls by 000 or 111 per step, ∑tΨ(It−1/c)(It−1−It)=∑k=IT+1cΨ(k/c)\sum_t\Psi(I^{t-1}/c)(I^{t-1}-I^t)=\sum_{k=I^T+1}^{c}\Psi(k/c)∑t​Ψ(It−1/c)(It−1−It)=∑k=IT+1c​Ψ(k/c).
  4. Dual feasibility. Along every non-increasing inventory path, the pair θi=ri(1−Ψ(IiT/ci))\theta_i=r_i(1-\Psi(I^T_i/c_i))θi​=ri​(1−Ψ(IiT​/ci​)), λt=∑i∈StriΨ(Iit−1/ci)φizt(St)\lambda^t=\sum_{i\in S^t}r_i\Psi(I^{t-1}_i/c_i)\varphi^{z_t}_i(S^t)λt=∑i∈St​ri​Ψ(Iit−1​/ci​)φizt​​(St) is feasible for the dual LP.
  5. Expected dual value. E[∑tλt]=E[∑iri∑k=IiT+1ciΨ(k/ci)]\mathbb E[\sum_t\lambda^t]=\mathbb E[\sum_i r_i\sum_{k=I^T_i+1}^{c_i}\Psi(k/c_i)]E[∑t​λt]=E[∑i​ri​∑k=IiT​+1ci​​Ψ(k/ci​)].
  6. Expected revenue. Rev=E[∑iri(ci−IiT)]\mathrm{Rev}=\mathbb E[\sum_i r_i(c_i-I^T_i)]Rev=E[∑i​ri​(ci​−IiT​)].
  7. Weak-duality bound. Primal≤E[∑iri(∑k=IiT+1ciΨ(k/ci)+ci(1−Ψ(IiT/ci)))]\mathrm{Primal}\le\mathbb E[\sum_i r_i(\sum_{k=I^T_i+1}^{c_i}\Psi(k/c_i)+c_i(1-\Psi(I^T_i/c_i)))]Primal≤E[∑i​ri​(∑k=IiT​+1ci​​Ψ(k/ci​)+ci​(1−Ψ(IiT​/ci​)))].
  8. Lemma 2. Inventory balancing never offers a product with zero inventory, when S\mathcal SS is closed under removing a product.

Three further statements are included as plain items. The first is the reduction to αcmin⁡\alpha_{c_{\min}}αcmin​​: for C≥cmin⁡C\ge c_{\min}C≥cmin​ and x∈[0,1−1/C]x\in[0,1-1/C]x∈[0,1−1/C], the ratio with CCC in place of cmin⁡c_{\min}cmin​ is at least αcmin⁡(Ψ)\alpha_{c_{\min}}(\Psi)αcmin​​(Ψ) (the two-case argument that closes §A.3). The second is weak duality for the Primal/Dual pair. The third is a pair of evaluations of the formula. The evaluations are αcmin⁡(x)=1/2\alpha_{c_{\min}}(x)=1/2αcmin​​(x)=1/2 (Corollary 1) and αcmin⁡(ee−1(1−e−x))→1−1/e\alpha_{c_{\min}}\big(\tfrac{e}{e-1}(1-e^{-x})\big)\to1-1/eαcmin​​(e−1e​(1−e−x))→1−1/e (Theorem 2, first sentence).

Significance

Theorem 1 separates the guarantee from the horizon, the arrival process and the choice model. The only inputs are the smallest initial inventory and the penalty function. With the linear penalty Ψ(x)=x\Psi(x)=xΨ(x)=x the guarantee is 1/21/21/2. With the exponential penalty it approaches 1−1/e1-1/e1−1/e as cmin⁡→∞c_{\min}\to\inftycmin​→∞. The paper shows that no online algorithm does better in that limit, so the exponential penalty is optimal. A myopic seller that ignores inventory can do no better than 1/21/21/2 (Example 1 of the paper). Because the guarantee holds for every choice model satisfying substitutability, it covers the multinomial logit, nested logit and any random-utility model at once.

The theorem is proved on paper, with a complete argument in the published article. It is not formalized anywhere to our knowledge. A formalization would check an argument that combines three strands: linear-programming duality, a stochastic inventory process, and a real-analysis optimization over xxx. It would also supply a reusable, finite-sum model of online assortment under general choice models, together with a machine-checked form of the competitive-ratio formula that later results (e.g. the 1−1/e1-1/e1−1/e limit) can build on.

Difficulty

The algorithm is online: it chooses without knowing future types. The benchmark is clairvoyant and respects inventory only in expectation. On a single arrival sequence the two can allocate the same product to entirely different customers, as Example 1 of the paper shows. So the natural first idea, comparing the algorithm with the LP period by period, fails: the LP may sell a product early that the algorithm correctly saves, and the reverse. A valid comparison has to hold across the whole horizon for an adversarial sequence, with the algorithm's revenue an expectation over a random, history-dependent inventory path. The constant adds a second, analytic difficulty. The formula αcmin⁡(Ψ)\alpha_{c_{\min}}(\Psi)αcmin​​(Ψ) has an integral where the process has a discrete sum, and a minimum whose range depends on cmin⁡c_{\min}cmin​. Yet every product, with its own inventory ci≥cmin⁡c_i\ge c_{\min}ci​≥cmin​, has to be accounted for by that single constant.

Formalization scope

  • Finite, discrete model. Products are Fin n with 0 < n. Assortments are finsets and S\mathcal SS is a finite family containing ∅\emptyset∅. Inventories are natural numbers, and truncated subtraction implements max⁡{I−1,0}\max\{I-1,0\}max{I−1,0}. Customer types form an arbitrary type, and the arrival sequence is a function Fin T → Z.
  • Expectations are finite sums. The inventory law is not a parameter. The expectation E[f(It)]\mathbb E[f(I^t)]E[f(It)] is defined by recursion from the point mass at ccc, conditioning on the previous period. No measure theory is involved.
  • Revenue counts actual sales only. A pick of a stocked-out product earns nothing.
  • The algorithm is any selection rule meeting the specification. In every state it offers a maximizer of the index in S\mathcal SS with the fewest products among maximizers. The goal holds for every such rule.
  • Penalty function. Every penalty function satisfies the standing assumptions of §3 (Ψ\PsiΨ maps [0,1][0,1][0,1] to [0,1][0,1][0,1], is non-strictly increasing, and has Ψ(0)=0\Psi(0)=0Ψ(0)=0, Ψ(1)=1\Psi(1)=1Ψ(1)=1). Theorem 1 adds concavity on [0,1][0,1][0,1] and twice differentiability, encoded as differentiability of Ψ\PsiΨ and of its derivative within [0,1][0,1][0,1].
  • αcmin⁡(Ψ)\alpha_{c_{\min}}(\Psi)αcmin​​(Ψ) is the infimum of the ratio over [0,1−1/cmin⁡][0,1-1/c_{\min}][0,1−1/cmin​], a nonempty set bounded below by 000. It equals the paper's minimum.
  • Ruling out the trivial reading. The competitive ratio is stated in multiplied form, α⋅Primal(y)≤Rev\alpha\cdot\mathrm{Primal}(y)\le\mathrm{Rev}α⋅Primal(y)≤Rev for every feasible yyy, rather than as a ratio: with 0/0=00/0=00/0=0 in Lean the ratio form would be false whenever the LP value is 000. The goal is not vacuous: Ψ(x)=x\Psi(x)=xΨ(x)=x meets every hypothesis, offering ∅\emptyset∅ is always primal feasible, and a selection rule always exists.
  • Additions relative to the page. Lemma 5 is stated on [0,1)[0,1)[0,1) and for a<1a<1a<1, because the paper's closed endpoints are 0/00/00/0 and 1/01/01/0. The reduction step states C≥cmin⁡C\ge c_{\min}C≥cmin​, which the paper leaves implicit. Lemma 2 assumes S\mathcal SS closed under removing a product, without which it is false; the goal does not assume this. The dual feasibility milestone asserts every dual constraint, not only the one at S=StS=S^tS=St that the paper displays.
  • Infrastructure. A complete development needs finite-sum Markov-chain expectations, interval integrals of monotone functions, and elementary calculus for concave functions. The model definitions (choice model, Primal/Dual, selection rule, inventory process) are reusable for other online assortment and revenue-management results. Contributions of general lemmas on the recursive expectation operator are welcome.

Selected references

  • N. Golrezaei, H. Nazerzadeh, P. Rusmevichientong, Real-Time Optimization of Personalized Assortments, Management Science 60(6):1532–1551, 2014. https://doi.org/10.1287/mnsc.2014.1939
  • B. Kalyanasundaram, K. Pruhs, An optimal deterministic algorithm for online b-matching, Theoretical Computer Science 233:319–325, 2000. https://doi.org/10.1016/S0304-3975(99)00140-1
  • A. Mehta, A. Saberi, U. Vazirani, V. Vazirani, AdWords and generalized online matching, Journal of the ACM 54(5), 2007. https://doi.org/10.1145/1284320.1284321
  • N. Buchbinder, K. Jain, J. Naor, Online primal-dual algorithms for maximizing ad-auctions revenue, ESA 2007, LNCS 4698. https://doi.org/10.1007/978-3-540-75520-3_24
  • K. Talluri, G. van Ryzin, Revenue management under a general discrete choice model of consumer behavior, Management Science 50(1):15–33, 2004. https://doi.org/10.1287/mnsc.1030.0147
14 thms1 active userReviewed
OptimizationTheoretical Computer Science·Captain: mikedeng1

Toward Robust Revenue Management: Competitive Analysis of Online Booking III: Bid-Price Controls Are Optimally 1/(1 − ln r)-CompetitiveResearch Paper

Motivation

Revenue management decides how much of a fixed, perishable capacity (airline seats, hotel rooms) to sell, and at what price. Classical single-leg models assume a known demand distribution for each fare class and maximise expected revenue. Many carriers instead use bid-price controls: a request is accepted when its fare is at least a threshold ("bid price") that rises as capacity is sold. Fares then need not fall into a few predefined classes; a fare may be any number in an interval.

Ball and Queyranne (Oper. Res. 57(4), 2009) study booking with competitive analysis from the theory of online algorithms. A policy is judged by the worst case, over all request sequences, of the ratio between its revenue and the revenue of a seller who knows the whole sequence in advance; no distribution is assumed. For two fare classes the best ratio is 1/(2−r)1/(2 - r)1/(2−r); for mmm classes it is 1/Δ1/\Delta1/Δ. For fares ranging over a whole interval [fmin⁡,fmax⁡][f_{\min}, f_{\max}][fmin​,fmax​] with r=fmin⁡/fmax⁡r = f_{\min}/f_{\max}r=fmin​/fmax​, the paper shows that the best ratio is 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr) and that an explicit bid-price policy attains it. This mission formalizes that result (§2.2 of the paper). The constant 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr) is the same as in the threat-based one-way trading algorithm of El-Yaniv, Fiat, Karp and Turpin (2001), which works in a different model.

Setting

A seller holds capacity n>0n > 0n>0, a real number. In the continuous problem demands and accepted quantities are nonnegative reals and orders may be partially accepted. Fix fares 0<fmin⁡<fmax⁡0 < f_{\min} < f_{\max}0<fmin​<fmax​ and the maximum discount ratio r=fmin⁡/fmax⁡∈(0,1)r = f_{\min}/f_{\max} \in (0,1)r=fmin​/fmax​∈(0,1). A request has a fare O∈[fmin⁡,fmax⁡]O \in [f_{\min}, f_{\max}]O∈[fmin​,fmax​] and a quantity d>0d > 0d>0. An instance III is a finite sequence of requests, revealed one at a time. On each arrival the seller irrevocably accepts some a∈[0,min⁡(d,remaining capacity)]a \in [0, \min(d, \text{remaining capacity})]a∈[0,min(d,remaining capacity)], and its revenue v′(I)v'(I)v′(I) is ∑O a\sum O\,a∑Oa. The optimal offline revenue v∗(I)v^*(I)v∗(I) is the maximum of ∑iOixi\sum_i O_i x_i∑i​Oi​xi​ over 0≤xi≤di0 \le x_i \le d_i0≤xi​≤di​, ∑ixi≤n\sum_i x_i \le n∑i​xi​≤n.

A deterministic online policy chooses each accepted quantity from the earlier requests and the current one only. Its competitive ratio is

CR(A)=inf⁡I : v∗(I)>0vA′(I)v∗(I).\mathrm{CR}(A) = \inf_{I \,:\, v^*(I) > 0} \frac{v'_A(I)}{v^*(I)}.CR(A)=I:v∗(I)>0inf​v∗(I)vA′​(I)​.

A randomized policy is a random choice A(ω)A(\omega)A(ω) of a deterministic policy, and its ratio uses the expected revenue E[vA(ω)′(I)]\mathbb{E}[v'_{A(\omega)}(I)]E[vA(ω)′​(I)].

Bid-price policies are built from protection levels θ(f)\theta(f)θ(f), nonincreasing in fff. The paper's choice is Eq. (15):

θ(f)=ln⁡fmax⁡−ln⁡fln⁡fmax⁡−ln⁡fmin⁡(1−11−ln⁡r)n,fmin⁡≤f≤fmax⁡.\theta(f) = \frac{\ln f_{\max} - \ln f}{\ln f_{\max} - \ln f_{\min}}\Big(1 - \frac{1}{1 - \ln r}\Big)n, \qquad f_{\min} \le f \le f_{\max}.θ(f)=lnfmax​−lnfmin​lnfmax​−lnf​(1−1−lnr1​)n,fmin​≤f≤fmax​.

The protection-level control function is Q(f)=n−θ(f)Q(f) = n - \theta(f)Q(f)=n−θ(f), and the order quantity control function is P(q)=min⁡{f∈[fmin⁡,fmax⁡]:Q(f)≥q}P(q) = \min\{f \in [f_{\min}, f_{\max}] : Q(f) \ge q\}P(q)=min{f∈[fmin​,fmax​]:Q(f)≥q} for 0≤q≤n0 \le q \le n0≤q≤n. Let q^\hat qq^​ be the quantity accepted so far and q^(f)\hat q(f)q^​(f) the part of it accepted at fares ≤f\le f≤f. The protection-level control policy AθA_\thetaAθ​ accepts from a request with fare OOO the largest α≤d\alpha \le dα≤d with α+q^(f)≤Q(f)\alpha + \hat q(f) \le Q(f)α+q^​(f)≤Q(f) for every f∈[O,fmax⁡]f \in [O, f_{\max}]f∈[O,fmax​]. The order quantity control policy Aθ′A'_\thetaAθ′​ rejects the request if O<P(q^)O < P(\hat q)O<P(q^​), and otherwise accepts the largest α≤d\alpha \le dα≤d with P(α+q^)≤OP(\alpha + \hat q) \le OP(α+q^​)≤O. Finally ρ=1/(1−ln⁡r)\rho = 1/(1 - \ln r)ρ=1/(1−lnr) and V(q)=∫0qP(s) dsV(q) = \int_0^q P(s)\,dsV(q)=∫0q​P(s)ds.

Formalization targets

Goal: Theorem 7 (p. 959)

vAθ′(I) ≥ 11−ln⁡r v∗(I)andvAθ′′(I) ≥ 11−ln⁡r v∗(I)v'_{A_\theta}(I) \ \ge\ \frac{1}{1 - \ln r}\, v^*(I) \quad\text{and}\quad v'_{A'_\theta}(I) \ \ge\ \frac{1}{1 - \ln r}\, v^*(I)vAθ​′​(I) ≥ 1−lnr1​v∗(I)andvAθ′​′​(I) ≥ 1−lnr1​v∗(I)

for every instance III with all fares in [fmin⁡,fmax⁡][f_{\min}, f_{\max}][fmin​,fmax​], with θ\thetaθ given by Eq. (15). Both bid-price policies achieve competitive ratio at least 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr). The paper claims "at least", and so does the goal.

Milestones

  • Eq. (5) (p. 956): P(Q(f))≤fP(Q(f)) \le fP(Q(f))≤f for fmin⁡≤f≤fmax⁡f_{\min} \le f \le f_{\max}fmin​≤f≤fmax​.
  • Lemma 2 (p. 959): closed forms (16) and (17). P(q)=fmin⁡P(q) = f_{\min}P(q)=fmin​ and V(q)=qfmin⁡V(q) = q f_{\min}V(q)=qfmin​ for q<nρq < n\rhoq<nρ; P(q)=fmax⁡r(n−q)/(n(1−ρ))P(q) = f_{\max} r^{(n-q)/(n(1-\rho))}P(q)=fmax​r(n−q)/(n(1−ρ)) and V(q)=nP(q)/(1−ln⁡r)V(q) = nP(q)/(1 - \ln r)V(q)=nP(q)/(1−lnr) for nρ≤q≤nn\rho \le q \le nnρ≤q≤n.
  • Proof of Theorem 6, first display (p. 959): on the geometric fares fi(m)=fmax⁡r(i−1)/(m−1)f_i^{(m)} = f_{\max} r^{(i-1)/(m-1)}fi(m)​=fmax​r(i−1)/(m−1) of Eq. (13), m≥2m \ge 2m≥2, no policy has competitive ratio above c(m)=1/(m−(m−1)r1/(m−1))c^{(m)} = 1/(m - (m-1) r^{1/(m-1)})c(m)=1/(m−(m−1)r1/(m−1)).
  • Theorem 6 (p. 959): no policy, deterministic or randomized, has competitive ratio larger than 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr).

Significance

The result. Theorems 6 and 7 together give the exact optimal competitive ratio of online booking when fares range over an interval: 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr), attained by bid-price policies whose protection levels are linear in ln⁡f\ln flnf. The guarantee holds for every demand sequence with no forecast. It decreases slowly as the fare spread grows: it is about 0.590.590.59 at r=1/2r = 1/2r=1/2 and about 0.420.420.42 at r=1/4r = 1/4r=1/4. It is the limit of the mmm-fare ratios 1/Δ1/\Delta1/Δ as the fare grid becomes dense. The paper derives its discrete bid-price policy (§2.3) from this continuous one.

Formalizing it. The results are proved in the paper; none is known to be machine-checked. The proof of Theorem 7 for the protection-level policy is only sketched in the paper, as an interval-rearrangement argument around Figure 7, and Lemma 2 is proved only in the online companion. A formal proof closes both gaps. The mission also produces a reusable model of online booking with real-valued fares, sized requests, an offline optimum, deterministic and randomized nonanticipative policies, and competitive ratios restricted to a fare set.

Difficulty

The lower bound must hold for every admissible instance, including sequences where fares go up and down and the offline optimum is not a closed form. Both policies are defined by suprema over constraints: for Aθ′A'_\thetaAθ′​ through the minimum defining PPP, and for AθA_\thetaAθ​ through protection constraints on nested cumulative sums over a continuum of fares. The accepted orders of AθA_\thetaAθ​ need not form consecutive blocks of capacity, so the analysis of one policy does not transfer to the other. The paper sketches the protection-level case only informally, around a figure. Theorem 6 is a bound against randomized policies, which may hedge between accepting and rejecting cheap requests. No single hard instance defeats them, and the bound must connect the finite-grid bounds c(m)c^{(m)}c(m), which involve real powers r1/(m−1)r^{1/(m-1)}r1/(m−1), to the constant 1/(1−ln⁡r)1/(1-\ln r)1/(1−lnr). Lemma 2 needs the minimum defining PPP to be computed exactly and then integrated.

Formalization scope

  • Capacity nnn is real with n>0n > 0n>0; fares are reals with 0<fmin⁡<fmax⁡0 < f_{\min} < f_{\max}0<fmin​<fmax​, and rrr is f_min / f_max; ln⁡\lnln is Real.log and real powers are Real.rpow.
  • Requests are sized (a real fare and a quantity qty > 0); the paper's unit orders with fractional acceptance are qty = 1. Instances are lists, and the admissibility hypothesis that every fare lies in [fmin⁡,fmax⁡][f_{\min}, f_{\max}][fmin​,fmax​] is explicit. Theorems 6 and 7 are false without it.
  • A deterministic policy is any function from the history (earlier requests with their accepted quantities) and the current request to a proposed quantity; the run clips proposals to [0,min⁡(d,n−q^)][0, \min(d, n - \hat q)][0,min(d,n−q^​)]. A randomized policy is an arbitrary probability space with a measurable revenue for each admissible instance. The revenue is bounded by nfmax⁡n f_{\max}nfmax​, so the Bochner integral is a genuine expectation.
  • v∗v^*v∗ is the sSup of offline revenues (nonempty, bounded, attained). Competitive ratios are sInfs over admissible instances with positive optimum (nonempty, bounded below by 000). "At least ccc" in Theorem 7 is stated per instance as c v∗≤v′c\,v^* \le v'cv∗≤v′.
  • PPP is defined from QQQ by an sInf over {f∈[fmin⁡,fmax⁡]:Q(f)≥q}\{f \in [f_{\min}, f_{\max}] : Q(f) \ge q\}{f∈[fmin​,fmax​]:Q(f)≥q}, not by the closed form (16). VVV is an interval integral. AθA_\thetaAθ​ checks its constraint over the whole continuum [O,fmax⁡][O, f_{\max}][O,fmax​], and Aθ′A'_\thetaAθ′​ also requires α+q^≤n\alpha + \hat q \le nα+q^​≤n so that PPP is evaluated on its domain.
  • A trivializing formalization — defining PPP or VVV by the closed forms of Lemma 2, replacing the policies' sup rules or the protection levels (15), checking protection constraints on a finite grid of fares, dropping the fare interval, or letting the offline optimum be a formula — is ruled out by the definitions above.
  • Useful infrastructure: monotonicity of QQQ and PPP, invariants of the policies' runs (the protection constraints hold after every step), a description of the offline optimum as a greedy fill by fare, and averaging over a distribution of instances. General lemmas about online policies and offline optima are reusable in the two-fare and multifare missions.

Selected references

  • M. O. Ball, M. Queyranne, Toward Robust Revenue Management: Competitive Analysis of Online Booking, Operations Research 57(4):950–963, 2009. https://doi.org/10.1287/opre.1080.0654
  • R. El-Yaniv, A. Fiat, R. M. Karp, G. Turpin, Optimal Search and One-Way Trading Online Algorithms, Algorithmica 30(1):101–139, 2001. https://doi.org/10.1007/s00453-001-0003-0
  • A. Borodin, R. El-Yaniv, Online Computation and Competitive Analysis, Cambridge University Press, 1998.
  • K. T. Talluri, G. J. van Ryzin, The Theory and Practice of Revenue Management, Springer, 2004. https://doi.org/10.1007/b139000
8 thms1 active userReviewed
OptimizationTheoretical Computer Science·Captain: mikedeng1

Toward Robust Revenue Management: Competitive Analysis of Online Booking II: Nested Protection Levels Are Optimally 1/Δ-Competitive for m FaresResearch Paper

Motivation

Airlines, hotels and rental firms sell a fixed stock of capacity to customers who arrive over time and pay different prices for the same unit. Classical revenue management, from Littlewood's two-fare rule (1972) to the dynamic programs of Brumelle and McGill (1993), decides how much capacity to hold back for high-fare customers from a demand forecast. When demand is new, volatile or unknown, no reliable forecast is available.

Ball and Queyranne (Oper. Res. 57(4), 2009) study the problem as an online algorithm instead, with no distributional assumption at all. A policy is judged by its competitive ratio: the worst case, over every demand sequence, of the revenue it earns divided by the revenue of a clairvoyant seller who knew the whole sequence in advance. For mmm fare classes they compute the best achievable ratio exactly and show that it is attained by the nested protection-level policies that practitioners already use. This mission formalizes that mmm-fare result.

Setting

A seller holds n>0n > 0n>0 units of capacity. There are m≥2m \ge 2m≥2 fare classes with fares f1>f2>⋯>fm>0f_1 > f_2 > \dots > f_m > 0f1​>f2​>⋯>fm​>0. A request names a class and a quantity d>0d > 0d>0; an instance III is a finite sequence of requests, of any classes in any order. Quantities are real numbers and requests may be partly accepted (the continuous problem).

A deterministic online policy decides how much of each request to accept when it arrives. It knows the earlier requests and what it accepted from them, but not what comes later. Its decision is clipped to the request's size and the remaining capacity. Its revenue R(A,I)R(A, I)R(A,I) is the sum of fare times accepted quantity. The offline optimum v∗(I)v^*(I)v∗(I) is the largest revenue of any feasible acceptance vector 0≤xk≤dk0 \le x_k \le d_k0≤xk​≤dk​, ∑kxk≤n\sum_k x_k \le n∑k​xk​≤n. The competitive ratio of AAA is

c(A)=inf⁡I: v∗(I)>0R(A,I)v∗(I).c(A) = \inf_{I:\ v^*(I) > 0} \frac{R(A, I)}{v^*(I)}.c(A)=I: v∗(I)>0inf​v∗(I)R(A,I)​.

A randomized policy draws a deterministic policy A(ω)A(\omega)A(ω) at random, ω∼μ\omega \sim \muω∼μ for a probability measure μ\muμ. Its ratio c(μ,A)c(\mu, A)c(μ,A) uses the expected revenue Eμ[R(A(ω),I)]\mathbb{E}_\mu[R(A(\omega), I)]Eμ​[R(A(ω),I)] in place of R(A,I)R(A, I)R(A,I).

The paper's constants are

Δ=m−∑i=2mfifi−1,θi=nΔ(i−∑j=1ifj+1fj) (1≤i≤m−1),θm=n,\Delta = m - \sum_{i=2}^{m} \frac{f_i}{f_{i-1}}, \qquad \theta_i = \frac{n}{\Delta}\Bigl(i - \sum_{j=1}^{i} \frac{f_{j+1}}{f_j}\Bigr)\ (1 \le i \le m-1), \quad \theta_m = n,Δ=m−i=2∑m​fi−1​fi​​,θi​=Δn​(i−j=1∑i​fj​fj+1​​) (1≤i≤m−1),θm​=n,

and the protection-level controls Qi=n−θi−1Q_i = n - \theta_{i-1}Qi​=n−θi−1​ for 1≤i≤m+11 \le i \le m+11≤i≤m+1, with Q1=nQ_1 = nQ1​=n and Qm+1=0Q_{m+1} = 0Qm+1​=0. The control QiQ_iQi​ caps the total quantity sold to classes i,…,mi, \dots, mi,…,m. The order quantity control function is P(q)=fiP(q) = f_iP(q)=fi​ for Qi+1<q≤QiQ_{i+1} < q \le Q_iQi+1​<q≤Qi​, with P(0)=0P(0) = 0P(0)=0; it gives the lowest fare still accepted once qqq units are sold.

Two policies use these controls. Write q^\hat qq^​ for the quantity sold so far and q^(fj)\hat q(f_j)q^​(fj​) for the quantity sold so far at fares ≤fj\le f_j≤fj​.

  • The protection-level policy AθA_\thetaAθ​ gives a class-ccc request of size ddd the amount sup⁡{α∈[0,d]:α+q^(fj)≤Qj for all j≤c}\sup\{\alpha \in [0, d] : \alpha + \hat q(f_j) \le Q_j \text{ for all } j \le c\}sup{α∈[0,d]:α+q^​(fj​)≤Qj​ for all j≤c}.
  • The order quantity policy Aθ′A'_\thetaAθ′​ gives it 000 if fc<P(q^)f_c < P(\hat q)fc​<P(q^​), and otherwise sup⁡{α∈[0,d]:α+q^≤n, P(α+q^)≤fc}\sup\{\alpha \in [0, d] : \alpha + \hat q \le n,\ P(\alpha + \hat q) \le f_c\}sup{α∈[0,d]:α+q^​≤n, P(α+q^​)≤fc​}.

Formalization targets

Goal — Theorem 5 (p. 958)

For every m≥2m \ge 2m≥2, all fares f1>⋯>fm>0f_1 > \dots > f_m > 0f1​>⋯>fm​>0 and every n>0n > 0n>0,

c(Aθ)=c(Aθ′)=1Δ.c(A_\theta) = c(A'_\theta) = \frac{1}{\Delta}.c(Aθ​)=c(Aθ′​)=Δ1​.

Both directions are part of the claim: each policy guarantees a 1/Δ1/\Delta1/Δ fraction of the offline optimum on every instance, and some instances bring it down to exactly that fraction.

Milestone — Lemma 1 (p. 957)

The controls satisfy

fi(Qi−Qi+1)=nΔ(fi−fi+1) (1≤i≤m−1),fm(Qm−Qm+1)=fmnΔ,f_i(Q_i - Q_{i+1}) = \tfrac{n}{\Delta}(f_i - f_{i+1})\ (1 \le i \le m-1), \qquad f_m(Q_m - Q_{m+1}) = \tfrac{f_m n}{\Delta},fi​(Qi​−Qi+1​)=Δn​(fi​−fi+1​) (1≤i≤m−1),fm​(Qm​−Qm+1​)=Δfm​n​, ∑i=i′mfi(Qi−Qi+1)=fi′nΔ(1≤i′≤m).\sum_{i=i'}^{m} f_i(Q_i - Q_{i+1}) = f_{i'} \tfrac{n}{\Delta} \quad (1 \le i' \le m).i=i′∑m​fi​(Qi​−Qi+1​)=fi′​Δn​(1≤i′≤m).

Milestone — Theorem 4 (p. 957)

No policy does better. For every deterministic policy BBB, and every randomized policy (μ,A)(\mu, A)(μ,A) whose revenue on each instance is measurable in ω\omegaω,

c(B)≤1Δ,c(μ,A)≤1Δ.c(B) \le \frac{1}{\Delta}, \qquad c(\mu, A) \le \frac{1}{\Delta}.c(B)≤Δ1​,c(μ,A)≤Δ1​.

Significance

Theorems 4 and 5 together settle the robust mmm-fare problem in the continuous setting. The best worst-case guarantee, over all deterministic and randomized online policies, is 1/Δ1/\Delta1/Δ. The protection levels of Eq. (7) achieve it, with either implementation, protection-level control or order-quantity control. Nested booking therefore needs no forecast to be optimal in this sense, and 1/Δ1/\Delta1/Δ is an explicit guarantee a practitioner can compute from the fares alone. For m=2m = 2m=2 and f2/f1=rf_2/f_1 = rf2​/f1​=r it is the two-fare ratio 1/(2−r)1/(2 - r)1/(2−r). As the fares get denser, the paper's §2.2 obtains the bid-price bound 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr) as a limit, reusing Theorem 4.

The paper proves Theorem 4 and Theorem 5 in the text; Lemma 1's proof is in the online companion. None of these results has a machine-checked proof. A formal development pins down what the paper leaves informal (partial orders at the thresholds, the sup⁡\supsup in the policy definitions) and yields a reusable library of online booking policies, offline optima and competitive ratios.

Difficulty

The upper bound (Theorem 4) needs a lower bound on every policy, randomized ones included. Exhibiting one hard instance for each deterministic policy does not bound a randomized policy, whose expected revenue averages over its choices, and the bound must hold uniformly over an arbitrary probability space of such choices.

The lower bound in Theorem 5 needs a guarantee on every instance: arbitrary interleavings of classes, arbitrary sizes, and partial acceptances at the control thresholds. It is not enough to check the extreme instances that fix the protection levels. The order-quantity policy is harder than the protection-level policy, because it cuts off lower fares based on the total sold rather than per class, so the revenue collected before and after the critical threshold must be accounted for separately. The offline optimum is a supremum over a linear program and has to be bounded from above on arbitrary instances.

Formalization scope

  • Fares are a function f : ℕ → ℝ read 1-based. The hypotheses are StrictAntiOn f (Set.Icc 1 m) and 0 < f m, with 2 ≤ m. The paper's §2.1 says m≥3m \ge 3m≥3; every statement here is claimed for m≥2m \ge 2m≥2, a strengthening, and m=2m = 2m=2 is the paper's two-fare case.
  • Capacity is a real n with 0 < n. A request is a class cls : ℕ with a real qty. An instance is a List of requests with 1≤1 \le1≤ cls ≤m\le m≤m and qty >0> 0>0. The paper's unit orders with fractional acceptance are the case qty = 1.
  • A deterministic policy is any function from the booking record so far (requests and accepted quantities) and the current request to a proposed quantity; the run clips it to [0,min⁡(d,n−sold)][0, \min(d, n - \text{sold})][0,min(d,n−sold)]. Seeing its own past acceptances gives a policy no information beyond the past requests, since those acceptances are determined by them.
  • Randomized policies live on an arbitrary probability space; expected revenue is a Bochner integral, and the revenue on each instance is required to be measurable in ω\omegaω. It is bounded, so it is then integrable.
  • v∗v^*v∗ is a real sSup of a nonempty set that is bounded above. Competitive ratios are real sInfs over instances with v∗(I)>0v^*(I) > 0v∗(I)>0, a nonempty set bounded below by 000.
  • QQQ is defined from Eqs. (8)–(9), Qi=n−θi−1Q_i = n - \theta_{i-1}Qi​=n−θi−1​. The paper's text also writes Q(f)=n−θ(f)Q(f) = n - \theta(f)Q(f)=n−θ(f) with θi=θ(fi)\theta_i = \theta(f_i)θi​=θ(fi​), which is off by one index. PPP picks the largest index i≤mi \le mi≤m with q≤Qiq \le Q_iq≤Qi​. The policies use it only on [0,n][0, n][0,n], and Aθ′A'_\thetaAθ′​ carries the constraint α+q^≤n\alpha + \hat q \le nα+q^​≤n explicitly.
  • The sup in AθA_\thetaAθ​ ranges over the fares fj≥fcf_j \ge f_cfj​≥fc​, i.e. the classes j≤cj \le cj≤c.

Theorem 5 is an equality. A statement of only c≥1/Δc \ge 1/\Deltac≥1/Δ, or one restricted to the extreme instances I1,…,ImI_1, \dots, I_mI1​,…,Im​ or to low-before-high arrival orders, would be a different and weaker theorem. So would treating v∗(Ii)=finv^*(I_i) = f_i nv∗(Ii​)=fi​n as a definition instead of a consequence of the offline optimum.

A complete development needs finite sums over Lists and Fin, sSup/sInf on ℝ, the Bochner integral, and facts about the offline optimum of a single-resource allocation. The booking model and offline-optimum lemmas are reusable for the two-fare and bid-price results of the same paper; general lemmas about the offline optimum are welcome contributions.

Selected references

  • M. O. Ball, M. Queyranne, Toward Robust Revenue Management: Competitive Analysis of Online Booking, Operations Research 57(4):950–963, 2009. https://doi.org/10.1287/opre.1080.0654
  • K. Littlewood, Forecasting and control of passenger bookings, AGIFORS Symposium Proceedings 12, 1972; reprinted in Journal of Revenue and Pricing Management 4(2):111–123, 2005. https://doi.org/10.1057/palgrave.rpm.5170134
  • S. L. Brumelle, J. I. McGill, Airline seat allocation with multiple nested fare classes, Operations Research 41(1):127–137, 1993. https://doi.org/10.1287/opre.41.1.127
  • A. Borodin, R. El-Yaniv, Online Computation and Competitive Analysis, Cambridge University Press, 1998. https://doi.org/10.1017/CBO9780511546563
  • K. T. Talluri, G. J. van Ryzin, The Theory and Practice of Revenue Management, Springer, 2005. https://doi.org/10.1007/b139000
6 thms1 active userReviewed
OptimizationTheoretical Computer Science·Captain: mikedeng1

Toward Robust Revenue Management: Competitive Analysis of Online Booking I: The Nested Two-Fare Protection Level Is Optimally b(r)-CompetitiveResearch Paper

Motivation

Revenue management decides how much of a fixed, perishable capacity (airline seats, hotel rooms) to sell at each price. The classical single-leg models, starting with Littlewood's two-fare rule (1972) and continued by Belobaba, Brumelle–McGill and Lee–Hersh, assume that demand for each fare class follows a known probability distribution and maximise expected revenue. Both assumptions (forecastable demand, risk neutrality) are questionable in new or volatile markets.

Ball and Queyranne (Oper. Res. 57(4), 2009) replace them with competitive analysis from the theory of online algorithms: a booking policy is judged by the worst case, over all request sequences, of the ratio between the revenue it earns and the revenue a clairvoyant seller could have earned. No distribution is assumed. For two fare classes they determine the best achievable ratio exactly and show that it is attained by the same kind of policy used in practice, a nested protection level. This mission formalizes that result and its companion propositions from §1 of the paper.

Setting

A seller holds capacity n>0n > 0n>0, a real number: in the continuous problem of the paper, demands and accepted quantities may be any nonnegative reals and orders may be partially accepted. There are two fare classes, high with fare f1f_1f1​ and low with fare f2f_2f2​, where f1>f2>0f_1 > f_2 > 0f1​>f2​>0. The discount ratio is r=f2/f1∈(0,1)r = f_2/f_1 \in (0,1)r=f2​/f1​∈(0,1).

A request is a fare class together with a quantity q>0q > 0q>0. An instance III is a finite sequence of requests, revealed one at a time. On each arrival the seller irrevocably accepts some quantity a∈[0,min⁡(q,remaining capacity)]a \in [0, \min(q, \text{remaining capacity})]a∈[0,min(q,remaining capacity)]; revenue is ∑fc a\sum f_{c}\,a∑fc​a over the requests. The optimal offline revenue v∗(I)v^*(I)v∗(I) (written R∗(I)R^*(I)R∗(I) in the paper) is the maximum of ∑ifcixi\sum_i f_{c_i} x_i∑i​fci​​xi​ over 0≤xi≤qi0 \le x_i \le q_i0≤xi​≤qi​, ∑ixi≤n\sum_i x_i \le n∑i​xi​≤n: what a seller knowing III in advance would earn.

A deterministic online policy AAA chooses the accepted quantity from the earlier requests and the current one only. Its revenue on III is vA′(I)=R(A,I)v'_A(I) = R(A,I)vA′​(I)=R(A,I), and its competitive ratio is

CR(A)=inf⁡I : v∗(I)>0vA′(I)v∗(I).\mathrm{CR}(A) = \inf_{I \,:\, v^*(I) > 0} \frac{v'_A(I)}{v^*(I)}.CR(A)=I:v∗(I)>0inf​v∗(I)vA′​(I)​.

A randomized policy is a random choice A(ω)A(\omega)A(ω) of a deterministic policy, ω\omegaω drawn from a probability measure μ\muμ; its competitive ratio replaces vA′(I)v'_A(I)vA′​(I) by the expectation Eμ[R(A(ω),I)]\mathbb{E}_\mu[R(A(\omega), I)]Eμ​[R(A(ω),I)].

The nested protection-level policy with protection level θ1\theta_1θ1​ reserves θ1\theta_1θ1​ units for the high fare: high-fare requests are accepted while any capacity remains, low-fare quantity only while the total low-fare quantity sold stays at most the booking limit n−θ1n - \theta_1n−θ1​. First-come, first-served (FCFS) accepts everything while capacity remains. A partitioned protection-level (PPL) policy splits capacity into exclusive buckets, θ1\theta_1θ1​ for high fare and θ2=n−θ1\theta_2 = n - \theta_1θ2​=n−θ1​ for low fare.

Two instances play a special role: I1I_1I1​, a low-fare request for nnn followed by a high-fare request for nnn, and I2I_2I2​, a low-fare request for nnn alone. Finally let

b(r)=12−r(Eq. (1) of the paper).b(r) = \frac{1}{2 - r} \qquad \text{(Eq. (1) of the paper).}b(r)=2−r1​(Eq. (1) of the paper).

Formalization targets

Goal: Theorem 1 (p. 954)

CR(nestedθ1=(1−b(r))n)=b(r),CR(A)≤b(r)  for every online policy A,\mathrm{CR}\big(\text{nested}_{\theta_1 = (1-b(r))n}\big) = b(r), \qquad \mathrm{CR}(A) \le b(r) \ \text{ for every online policy } A,CR(nestedθ1​=(1−b(r))n​)=b(r),CR(A)≤b(r)  for every online policy A,

the second for deterministic policies and for randomized policies alike. The optimal competitive ratio of the continuous two-fare problem is therefore exactly 1/(2−r)1/(2-r)1/(2−r), and the nested policy with low-fare booking limit b(r) nb(r)\,nb(r)n attains it.

Milestones

  • Proposition 1 (p. 953): the nested policy with θ1=(1−b(r))n\theta_1 = (1 - b(r))nθ1​=(1−b(r))n has competitive ratio exactly b(r)b(r)b(r).
  • Proposition 2 (p. 953): every deterministic online policy has CR(A)≤b(r)\mathrm{CR}(A) \le b(r)CR(A)≤b(r).
  • Proposition 3 (pp. 953–954): every randomized policy has competitive ratio at most b(r)b(r)b(r); even
min⁡{E[R(A,I1)]R∗(I1),E[R(A,I2)]R∗(I2)}≤b(r).\min\left\{\frac{\mathbb{E}[R(A,I_1)]}{R^*(I_1)}, \frac{\mathbb{E}[R(A,I_2)]}{R^*(I_2)}\right\} \le b(r).min{R∗(I1​)E[R(A,I1​)]​,R∗(I2​)E[R(A,I2​)]​}≤b(r).
  • Proposition 5 (p. 955): CR(FCFS)=r\mathrm{CR}(\mathrm{FCFS}) = rCR(FCFS)=r.
  • Proposition 6 (p. 955): CR(PPLn/2)=12\mathrm{CR}(\mathrm{PPL}_{n/2}) = \tfrac12CR(PPLn/2​)=21​, and CR(PPLθ1)≤12\mathrm{CR}(\mathrm{PPL}_{\theta_1}) \le \tfrac12CR(PPLθ1​​)≤21​ for every θ1∈[0,n]\theta_1 \in [0, n]θ1​∈[0,n].

Propositions 1–3 are the two halves of Theorem 1; Propositions 5 and 6 compare the nested policy with the two natural alternatives, both strictly worse for 0<r<10 < r < 10<r<1, since r<1/(2−r)r < 1/(2-r)r<1/(2−r) and 12<1/(2−r)\tfrac12 < 1/(2-r)21​<1/(2−r) there.

Significance

The result. Theorem 1 gives a distribution-free guarantee: a seller who protects (1−b(r))n(1 - b(r))n(1−b(r))n units for the full fare earns at least a fraction 1/(2−r)1/(2-r)1/(2−r) of the clairvoyant revenue on every demand sequence, and no policy, even a randomized one, can promise more. The guarantee lies between 12\tfrac1221​ (as r→0r \to 0r→0) and 111 (as r→1r \to 1r→1). It also shows that nesting is optimal under this criterion, while FCFS guarantees only rrr and the best partitioned policy only 12\tfrac1221​. The paper extends the same analysis to mmm fare classes (ratio 1/Δ1/\Delta1/Δ) and to bid-price controls (ratio 1/(1−ln⁡r)1/(1 - \ln r)1/(1−lnr)); the two-fare case is the base on which both rest.

Formalizing it. The results are proved in the paper; none is known to be machine-checked. The mission produces a reusable formal model of online booking with partial acceptance, an offline optimum, deterministic and randomized nonanticipative policies and their competitive ratios, together with exact statements of the five results above. The same model underlies the multifare and bid-price missions of this series.

Difficulty

The achievability half requires a bound v′(I)≥b(r) v∗(I)v'(I) \ge b(r)\, v^*(I)v′(I)≥b(r)v∗(I) for every instance, including interleaved sequences where low- and high-fare requests alternate and the offline optimum is not a closed form; the online revenue must be compared with an optimum defined as a supremum over a polytope. The randomized lower bound cannot argue with a single hard instance: a randomized policy may hedge between accepting and rejecting low fares, so one must control the expected revenue on a distribution over instances without assuming any minimax equality between policies and instance distributions. Throughout, "competitive ratio b(r)b(r)b(r)" is an equality, so both an everywhere lower bound and a witness attaining it are needed.

Formalization scope

  • Capacity nnn is a real number with n>0n > 0n>0; fares are reals with 0<f2<f10 < f_2 < f_10<f2​<f1​ and rrr is written f₂ / f₁.
  • Requests are sized: a fare class and a quantity qty > 0. The unit requests of the paper are qty = 1; the paper's "nnn low-fare requests followed by nnn high-fare requests" is rendered as one request of quantity nnn per class.
  • A deterministic policy is any function List (Request × ℝ) → Request → ℝ from the history (earlier requests with the quantities accepted from them) and the current request to a proposed quantity; the run clips the proposal to [0,min⁡(q,n−sold)][0, \min(q, n - \text{sold})][0,min(q,n−sold)]. Every such function is a feasible nonanticipative policy and every such policy is some function. Policies never see future requests or the length of the sequence.
  • A randomized policy is an arbitrary probability space (Ω,μ)(\Omega, \mu)(Ω,μ) with A : Ω → DetPolicy and ω↦R(A(ω),I)\omega \mapsto R(A(\omega), I)ω↦R(A(ω),I) measurable for each III; no finiteness of the support is assumed. Revenue is bounded by f1nf_1 nf1​n, so the Bochner integral is a genuine expectation.
  • The offline optimum is sSup of the offline revenues over the feasible set (nonempty and bounded); the competitive ratio is sInf over instances with positive optimum (nonempty and bounded below by 000). The values R∗(I1)=f1nR^*(I_1) = f_1 nR∗(I1​)=f1​n and R∗(I2)=f2nR^*(I_2) = f_2 nR∗(I2​)=f2​n are not built in and are part of the work.
  • The statements are equalities where the paper says "has competitive ratio". A trivializing formalization — for instance restricting to threshold policies, fixing the offline optimum by a formula, or stating only "at least b(r)b(r)b(r)" — is ruled out: the policy class is all nonanticipative functions, and the optimum is the true supremum.
  • Useful infrastructure: lemmas about the run of a policy (monotonicity of capacity sold, prefix behaviour), an explicit description of the offline optimum of a two-class instance, and averaging of ratios over a two-point distribution of instances. Contributions of general lemmas about online policies and offline optima are welcome and reusable in the multifare and bid-price missions.

Selected references

  • M. O. Ball, M. Queyranne, Toward Robust Revenue Management: Competitive Analysis of Online Booking, Operations Research 57(4):950–963, 2009. https://doi.org/10.1287/opre.1080.0654
  • K. Littlewood, Forecasting and control of passenger bookings, AGIFORS Symposium Proc. 12, 1972; reprinted in J. Revenue Pricing Management 4(2):111–123, 2005. https://doi.org/10.1057/palgrave.rpm.5170134
  • A. Borodin, R. El-Yaniv, Online Computation and Competitive Analysis, Cambridge University Press, 1998.
  • K. T. Talluri, G. J. van Ryzin, The Theory and Practice of Revenue Management, Springer, 2004. https://doi.org/10.1007/b139000
8 thms1 active userReviewed
OptimizationProbability·Captain: mikedeng1

On linear optimization over Wasserstein balls: Existence of Discrete Optimal Solutions on at Most N+1 AtomsResearch Paper

Motivation

Wasserstein distributionally robust optimization replaces an unknown data-generating distribution by the set of all distributions within a prescribed optimal-transport distance of a reference distribution, typically the empirical distribution of NNN training samples. The inner problem of every such model is a linear optimization over this set: maximize the expectation of a loss function over all probability measures in a Wasserstein ball. The same problem appears when classification, clustering or generative models are regularized against overfitting to the training samples (Kuhn et al. 2019, Blanchet & Murthy 2019, Gao & Kleywegt 2016).

Whether this problem has a finite value, whether that value is attained, and whether it is attained by a measure with few atoms determine whether it can be solved by finite-dimensional optimization. Earlier answers appeared under differing hypotheses. Wozabal (2012) used the Richter–Rogosinski theorem to obtain solutions on at most N+3N+3N+3 atoms, Owhadi & Scovel (2017) improved this to N+2N+2N+2, and Gao & Kleywegt (2016) obtained the sharp bound N+1N+1N+1 through first-order optimality conditions of the dual problem. Yue, Kuhn & Wiesemann (2022) give short, self-contained proofs of weak compactness, finiteness, attainment and (N+1)(N+1)(N+1)-sparsity under conditions that are easy to check. This mission formalizes that paper.

Setting

Let (X,d)(X,d)(X,d) be a proper metric space: every closed ball BR(x0)={x∈X:d(x,x0)≤R}B_R(x_0)=\{x\in X:d(x,x_0)\le R\}BR​(x0​)={x∈X:d(x,x0​)≤R} is compact. Such a space is complete and separable. P(X)\mathcal P(X)P(X) is the set of Borel probability measures on XXX, with the weak topology of convergence against bounded continuous functions.

For p≥1p\ge1p≥1 and μ1,μ2∈P(X)\mu_1,\mu_2\in\mathcal P(X)μ1​,μ2​∈P(X), a coupling is a measure γ\gammaγ on X×XX\times XX×X with marginals μ1\mu_1μ1​ and μ2\mu_2μ2​. The set of couplings is Π(μ1,μ2)\Pi(\mu_1,\mu_2)Π(μ1​,μ2​). The Wasserstein distance is

Wp(μ1,μ2)=(inf⁡γ∈Π(μ1,μ2)∫X×Xdp(x1,x2) dγ(x1,x2))1/p∈[0,+∞].W_p(\mu_1,\mu_2)=\Big(\inf_{\gamma\in\Pi(\mu_1,\mu_2)}\int_{X\times X}d^p(x_1,x_2)\,d\gamma(x_1,x_2)\Big)^{1/p}\in[0,+\infty].Wp​(μ1​,μ2​)=(γ∈Π(μ1​,μ2​)inf​∫X×X​dp(x1​,x2​)dγ(x1​,x2​))1/p∈[0,+∞].

It is defined for every pair of probability measures, and it is +∞+\infty+∞ for some pairs. The Wasserstein ball of radius r>0r>0r>0 around ν∈P(X)\nu\in\mathcal P(X)ν∈P(X) is Br(ν)={μ∈P(X):Wp(μ,ν)≤r}\mathcal B_r(\nu)=\{\mu\in\mathcal P(X):W_p(\mu,\nu)\le r\}Br​(ν)={μ∈P(X):Wp​(μ,ν)≤r}. A measure has a finite ppp-th moment if ∫Xdp(x,x0) dμ(x)<∞\int_X d^p(x,x_0)\,d\mu(x)<\infty∫X​dp(x,x0​)dμ(x)<∞ for some x0x_0x0​.

Given an upper semicontinuous f:X→Rf:X\to\mathbb Rf:X→R, the paper studies

(3)sup⁡{∫Xf dμ: μ∈Br(ν)},\text{(3)}\qquad \sup\Big\{\int_X f\,d\mu:\ \mu\in\mathcal B_r(\nu)\Big\},(3)sup{∫X​fdμ: μ∈Br​(ν)},

under the standing assumption that for every μ\muμ in the ball at least one of ∫[f]+ dμ\int[f]_+\,d\mu∫[f]+​dμ and ∫[−f]+ dμ\int[-f]_+\,d\mu∫[−f]+​dμ is finite. The integral is ∫[f]+dμ−∫[−f]+dμ∈[−∞,+∞]\int[f]_+d\mu-\int[-f]_+d\mu\in[-\infty,+\infty]∫[f]+​dμ−∫[−f]+​dμ∈[−∞,+∞]. The optimal value is finite if it is neither +∞+\infty+∞ nor −∞-\infty−∞, and attained if some μ⋆∈Br(ν)\mu^\star\in\mathcal B_r(\nu)μ⋆∈Br​(ν) achieves it.

Formalization targets

Goal: Theorem 4 (existence of discrete optimal solutions)

Let ν=∑i=1Nαiδyi\nu=\sum_{i=1}^N\alpha_i\delta_{y_i}ν=∑i=1N​αi​δyi​​ with distinct yiy_iyi​, αi≥0\alpha_i\ge0αi​≥0 and ∑iαi=1\sum_i\alpha_i=1∑i​αi​=1. Suppose there are x0∈Xx_0\in Xx0​∈X, c>0c>0c>0 and p′∈(0,p)p'\in(0,p)p′∈(0,p) with f(x)≤c[1+dp′(x,x0)]f(x)\le c[1+d^{p'}(x,x_0)]f(x)≤c[1+dp′(x,x0​)] for all xxx. Then there exist x1,…,xN+1∈Xx_1,\dots,x_{N+1}\in Xx1​,…,xN+1​∈X and β∈R+N+1\beta\in\mathbb R^{N+1}_+β∈R+N+1​ with ∑jβj=1\sum_j\beta_j=1∑j​βj​=1 such that

μ⋆=∑j=1N+1βjδxj∈Br(ν),∫Xf dμ⋆=sup⁡{∫Xf dμ:μ∈Br(ν)}.\mu^\star=\sum_{j=1}^{N+1}\beta_j\delta_{x_j}\in\mathcal B_r(\nu),\qquad \int_X f\,d\mu^\star=\sup\Big\{\int_X f\,d\mu:\mu\in\mathcal B_r(\nu)\Big\}.μ⋆=j=1∑N+1​βj​δxj​​∈Br​(ν),∫X​fdμ⋆=sup{∫X​fdμ:μ∈Br​(ν)}.

The bound N+1N+1N+1 cannot be improved in general (Kuhn et al. 2019, Example 5).

Milestones, in the order the argument uses them

  • Lemma 1. If ν\nuν has a finite ppp-th moment, then for every x0x_0x0​ there is C>0C>0C>0 with ∫dp(x,x0) dμ≤C\int d^p(x,x_0)\,d\mu\le C∫dp(x,x0​)dμ≤C for all μ∈Br(ν)\mu\in\mathcal B_r(\nu)μ∈Br​(ν).
  • Theorem 1. Under the same assumption, Br(ν)\mathcal B_r(\nu)Br​(ν) is weakly compact.
  • Theorem 2. The optimal value of (3) is finite if and only if f(x)≤c[1+dp(x,x0)]f(x)\le c[1+d^p(x,x_0)]f(x)≤c[1+dp(x,x0​)] for some x0x_0x0​ and c>0c>0c>0.
  • Lemma 3 (Portmanteau). μk→μ∞\mu^k\to\mu^\inftyμk→μ∞ weakly if and only if lim sup⁡k∫g dμk≤∫g dμ∞\limsup_k\int g\,d\mu^k\le\int g\,d\mu^\inftylimsupk​∫gdμk≤∫gdμ∞ for every upper-bounded upper semicontinuous ggg.
  • Theorem 3. Under growth of order p′<pp'<pp′<p, the optimal value of (3) is attained.
  • Proposition 1 (two items; Pinelis 2016). For the moment problem sup⁡{∫ψ dγ:γ≥0 finite, ∫φi dγ=vi, i≤m}\sup\{\int\psi\,d\gamma:\gamma\ge0 \text{ finite},\ \int\varphi_i\,d\gamma=v_i,\ i\le m\}sup{∫ψdγ:γ≥0 finite, ∫φi​dγ=vi​, i≤m}, the supremum over its feasible region F\mathcal FF equals the supremum over F∩Dm(Z)\mathcal F\cap\mathcal D_m(Z)F∩Dm​(Z), measures on at most mmm points, provided the supremum is already achieved over extreme points (condition (12)). Condition (12) holds when ZZZ is Hausdorff and F\mathcal FF consists of probability measures.
  • Lemma 2. Under the hypotheses of Theorem 4, the discrete relaxation (10), a transport problem over measures on N+1N+1N+1 points of X×{y1,…,yN}X\times\{y_1,\dots,y_N\}X×{y1​,…,yN​}, attains its value whenever that value is finite.

A further item, Observation 1, shows that properness is necessary: if every Wasserstein ball over a Polish space is weakly compact, the space is proper.

Significance

Theorem 4 turns problem (3) with an empirical reference measure into a finite-dimensional problem over N+1N+1N+1 support points and weights. Many reformulations and algorithms for Wasserstein DRO rest on this sparsity. Theorems 2 and 3 give checkable growth conditions for finiteness and attainment, and their hypotheses differ only in whether the growth exponent is ppp or strictly smaller. The paper cites Kuhn et al. 2019, Example 4 for an instance with a finite but unattained value. Theorem 1 is a compactness statement for Wasserstein balls over a non-compact space, of use well beyond optimization.

All results are proved in the paper. None is known to be formalized. Mathlib has Prokhorov's theorem, tightness and the weak topology on probability measures, but no Wasserstein distance on a general metric space, no couplings, and no theory of extreme points of moment sets. Formalizing this paper builds those foundations.

Difficulty

The ball is not weakly closed in an obvious way: WpW_pWp​ is only lower semicontinuous for weak convergence. Tightness has to come from a moment bound (Lemma 1), which needs the triangle inequality for WpW_pWp​ on measures without finite moments. The integral μ↦∫f dμ\mu\mapsto\int f\,d\muμ↦∫fdμ is not weakly upper semicontinuous for unbounded fff, so compactness alone does not give attainment. That failure is exactly what the example with growth of order ppp shows. For sparsity, the natural idea is Carathéodory or Richter–Rogosinski: NNN marginal constraints, one cost constraint and one optimality condition give N+2N+2N+2 moment conditions, one atom too many. Reaching N+1N+1N+1 needs an extreme-point argument for an infinite-dimensional linear program, a separate case for an inactive cost constraint, and attainment for a relaxation whose feasible set is not obviously compact.

Formalization scope

The Lean development lives in the namespace WassersteinLinOpt.Ball. XXX carries [MetricSpace X] [ProperSpace X] [MeasurableSpace X] [BorelSpace X], and P(X)\mathcal P(X)P(X) is ProbabilityMeasure X with its standard topology. Weak compactness is IsCompact, which agrees with the paper's sequential notion because P(X)\mathcal P(X)P(X) is metrizable. wassersteinDist is valued in ℝ≥0∞, with couplings given by Measure.map Prod.fst/Prod.snd, and the ball is wassersteinDist p μ ν ≤ ENNReal.ofReal r with 0 < r. The objective quasiIntegral is ∫[f]+−∫[−f]+\int[f]_+-\int[-f]_+∫[f]+​−∫[−f]+​ computed in EReal from two lower Lebesgue integrals, and the optimal value is an EReal supremum. Every theorem about (3), (10) or (11) carries the paper's quasi-integrability hypothesis, because EReal evaluates ⊤−⊤\top-\top⊤−⊤ to ⊥\bot⊥. "Finite" means ≠ ⊤ ∧ ≠ ⊥. "Attained" means a member of the feasible set whose value equals the supremum. The feasible set of (11) requires Integrable (φ i) γ, so the Bochner integral's value 000 on non-integrable functions cannot create feasible points. Extreme points of a set of measures are defined directly, because measures form a cone and not a real vector space. N+1N+1N+1 atoms means Fin (N+1)-indexed points and non-negative weights.

A formalization that replaces the extended-real objective by a Bochner integral, drops the quasi-integrability or 0<r0<r0<r hypotheses, weakens "attained" to "the supremum is finite", or replaces "N+1N+1N+1 atoms" by "finitely supported" states a different theorem. None of these is acceptable. Solvers must not add hypotheses such as the triangle inequality for WpW_pWp​ or existence of optimal couplings; these are facts to prove.

A complete development needs the triangle inequality and lower semicontinuity of WpW_pWp​, existence of optimal couplings, density of finitely supported measures in WpW_pWp​, continuity of marginal maps, and the extreme-point theory of moment sets. All of these are reusable beyond this mission, and contributions of any of them are welcome.

Selected references

  • M.-C. Yue, D. Kuhn, W. Wiesemann, On linear optimization over Wasserstein balls, Mathematical Programming 195 (2022) 1107–1122. https://doi.org/10.1007/s10107-021-01673-8
  • I. Pinelis, On the extreme points of moments sets, Mathematical Methods of Operations Research 83 (2016) 325–349. https://doi.org/10.1007/s00186-015-0530-0
  • D. Wozabal, A framework for optimization under ambiguity, Annals of Operations Research 193 (2012) 21–47. https://doi.org/10.1007/s10479-010-0812-0
  • H. Owhadi, C. Scovel, Extreme points of a ball about a measure with finite support, Communications in Mathematical Sciences 15 (2017) 77–96. https://doi.org/10.4310/cms.2017.v15.n1.a4
  • R. Gao, A. J. Kleywegt, Distributionally robust stochastic optimization with Wasserstein distance, 2016. https://arxiv.org/abs/1604.02199
  • D. Kuhn, P. Mohajerin Esfahani, V. A. Nguyen, S. Shafieezadeh-Abadeh, Wasserstein distributionally robust optimization: theory and applications in machine learning, INFORMS TutORials (2019) 130–166. https://doi.org/10.1287/educ.2019.0198
  • J. Blanchet, K. Murthy, Quantifying distributional model risk via optimal transport, Mathematics of Operations Research 44 (2019) 565–600. https://doi.org/10.1287/moor.2018.0936
  • P. Clément, W. Desch, Wasserstein metric and subordination, Studia Mathematica 189 (2008) 35–52. https://doi.org/10.4064/sm189-1-4
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
18 thms1 active userReviewed
CombinatoricsGraph TheoryTheoretical Computer Science·Captain: mikedeng1

Budgeted Prize-Collecting Traveling Salesman and Minimum Spanning Tree Problems: The Primal-Dual Upper Bound on the Optimal TourResearch Paper

Motivation

Many routing problems come with a hard limit on distance or time rather than a requirement to visit everything. A repair crew with a fixed shift wants to service as many stations as possible; a vehicle with a fixed range wants to cover as many customers as possible. The budgeted prize-collecting traveling salesman problem captures this: given edge costs and a budget, find a closed tour of cost at most the budget that visits as many vertices as possible. Paul, Freund, Ferber, Shmoys and Williamson met the problem in work with New York City's bikeshare system (Paul et al., Math. Oper. Res. 2020).

The problem is NP-hard, and the question is how close a polynomial-time algorithm can come to the optimum. Before this paper, the best guarantee for the rooted tour version was 2+ε2+\varepsilon2+ε, obtained from the orienteering algorithm of Chekuri, Korula and Pál (reference [6] of Paul et al.), with running time nO(1/ε2)n^{O(1/\varepsilon^2)}nO(1/ε2). Paul et al. give a parameterized primal-dual algorithm with guarantee exactly 2, in the style of the Goemans–Williamson primal-dual method for prize-collecting Steiner trees and tours (Goemans and Williamson, SIAM J. Comput. 1995). The analysis rests on one upper bound on the optimum, Theorem 1 of the paper, which this mission formalizes.

Setting

An instance consists of an undirected graph G=(V,E)G=(V,E)G=(V,E) on a finite vertex set, not necessarily complete, edge costs ce≥0c_e \ge 0ce​≥0, a budget D≥0D \ge 0D≥0 and a root r∈Vr \in Vr∈V. A feasible tour is a closed walk in GGG that starts and ends at rrr and whose cost, the sum of cec_ece​ over its edges counted with multiplicity, is at most DDD. Vertices may be revisited. The tour's vertex set is written O⋆O^\starO⋆.

A dual vector assigns a real number ySy_SyS​ to every S⊆VS \subseteq VS⊆V. For an edge eee, e∈δ(S)e \in \delta(S)e∈δ(S) means that eee has exactly one endpoint in SSS. The potential of SSS is

π(S)=∣S∣−2∑T⊊SyT,\pi(S) = |S| - 2\sum_{T \subsetneq S} y_T ,π(S)=∣S∣−2T⊊S∑​yT​,

and SSS is neutral when 2∑T⊆SyT=∣S∣2\sum_{T \subseteq S} y_T = |S|2∑T⊆S​yT​=∣S∣.

The primal-dual subroutine PD(λ1\lambda_1λ1​), for a parameter λ1≥0\lambda_1 \ge 0λ1​≥0, starts with y≡0y \equiv 0y≡0, no tight edges, and every singleton {i}\{i\}{i} an active component. It raises ySy_SyS​ at unit rate for all active components SSS at once, until an event happens: either an active set becomes neutral and is marked inactive, or the dual constraint ∑S:e∈δ(S)yS≤λ1ce\sum_{S : e \in \delta(S)} y_S \le \lambda_1 c_e∑S:e∈δ(S)​yS​≤λ1​ce​ of an edge eee between two different components becomes tight. In that case eee is added to the forest TTT and the two components merge into one active component. The process stops when no set is active. Simultaneous events are processed in an arbitrary order. The family S\mathcal SS collects every set that was ever active, including for zero time, and S+=S∪{V}\mathcal S^+ = \mathcal S \cup \{V\}S+=S∪{V}.

In the Lean development the instance is BudgetedPCTSP.Rooted.Instance, tours are SimpleGraph.Walks from r to r, the potential is potential, and PD(λ1\lambda_1λ1​) is the event relation PDStep with final states IsCompleteRun. The family S+\mathcal S^+S+ is sPlus.

Formalization targets

Goal: Theorem 1 (the upper bound)

Fix λ1≥0\lambda_1 \ge 0λ1​≥0. PD(λ1\lambda_1λ1​) has a complete run. For every complete run, under every order of breaking ties, every feasible tour with vertex set O⋆O^\starO⋆, and OOO the minimal set of S+\mathcal S^+S+ containing O⋆O^\starO⋆:

∣O⋆∣≤λ1D+π(O).|O^\star| \le \lambda_1 D + \pi(O).∣O⋆∣≤λ1​D+π(O).

Milestones

In the order a proof would take them:

  1. S+\mathcal S^+S+ is laminar (p. 6): any two members are nested or disjoint.
  2. Dual feasibility throughout the run (p. 6): ∑S:e∈δ(S)yS≤λ1ce\sum_{S : e \in \delta(S)} y_S \le \lambda_1 c_e∑S:e∈δ(S)​yS​≤λ1​ce​ for every edge eee, and y≥0y \ge 0y≥0.
  3. Lemma 1 (p. 7): 2∑T⊆SyT≤∣S∣2\sum_{T \subseteq S} y_T \le |S|2∑T⊆S​yT​≤∣S∣ for every S⊆VS \subseteq VS⊆V at the end of the run.

Significance

Theorem 1 is the dual-fitting half of the paper's 2-approximation. Together with the lower bound ∣SA∣>12λ1D+π(Q)−1|S_A| > \tfrac12\lambda_1 D + \pi(Q) - 1∣SA​∣>21​λ1​D+π(Q)−1 on the tour the algorithm builds (Theorem 2), and the threshold choice of λ1\lambda_1λ1​ (Lemma 2), it yields the main result, Theorem 3: the parameterized primal-dual algorithm is a 2-approximation for the rooted budgeted prize-collecting TSP. The paper extends the analysis to the weighted, tree and unrooted variants in Section 8, stating that the proofs continue to hold.

The result is proved in the paper; it has not been formalized. This mission produces a precise, checkable model of a Goemans–Williamson-style moat-growing process: a discrete event semantics for a continuous dual-ascent process, with every tie-breaking order admitted. That model is reusable for the rest of the paper (the threshold analysis, the tour construction and Theorem 3) and for other primal-dual approximation algorithms built on the same process, such as prize-collecting Steiner tree.

Difficulty

The paper states the process continuously and argues about it informally ("raise ySy_SyS​ uniformly … until"). A proof must turn the invariants it relies on into statements about every reachable state of a discrete process in which event times are recomputed after each event and ties are broken arbitrarily. The paper gives one-sentence justifications for dual feasibility and laminarity and a two-line proof of Lemma 1; none of them addresses zero-length events, ties, or the fact that the next event time is only known to be nonnegative once these same invariants hold. Laminarity has to hold for the whole family of ever-active sets, not only for the current partition.

In the goal itself, the step that goes beyond bookkeeping is a counting argument. It relates the dual mass of sets inside the minimal set OOO to how often a closed walk crosses those sets. A closed walk is a list of edges with repetitions, not a set, and the obvious set-based count does not apply to it directly.

Formalization scope

  • Instance. A SimpleGraph on a Fintype vertex type with decidable equality. Costs are a real function on Sym2 V, nonnegative on edges; budget D≥0D \ge 0D≥0; a root rrr. Unit prizes only. The weighted problem (Theorem 4), the tree problem (Theorem 5) and the unrooted problem (Section 8) are out of scope.
  • Tours. A feasible tour is a closed walk at rrr with cost at most DDD, costs counted with multiplicity, and its vertex set is the walk's support. This is equivalent to the paper's multiset of edges forming a tour on a vertex set containing rrr.
  • The subroutine. PD(λ1\lambda_1λ1​) is an inductive step relation on states: components, active components, the dual vector indexed by Finset V, tight edges and the family S\mathcal SS. One step raises all active duals by the minimum event time Δ\DeltaΔ and processes one event whose time is Δ\DeltaΔ. Any tied event may be chosen, so every statement quantified over complete runs holds for every tie-breaking order, as the paper's Theorem 1 does ("for any fixed λ1\lambda_1λ1​"). The pruning phase, which produces the tree T′T'T′, is not modelled; no statement here uses T′T'T′.
  • Readings. "The minimal set in S+\mathcal S^+S+ containing O⋆O^\starO⋆" is any member of S+\mathcal S^+S+ containing O⋆O^\starO⋆ with no strict subset in S+\mathcal S^+S+ that also contains O⋆O^\starO⋆. Theorem 1 is stated for every feasible tour rather than only an optimal one, which is the form its proof gives. Dual feasibility is stated for every reachable state ("throughout the subroutine").
  • Not stated. The threshold search (Lemma 2), whose "ε arbitrarily small" and "in polynomial time" would need explicit quantifier readings and are not part of this mission; Lemma 3; the tour construction and Theorem 2; the main Theorem 3. No running-time claim is formalized.
  • Ruling out trivial readings. The goal asserts that a complete run exists, so its universally quantified part cannot hold vacuously on an empty set of runs. It bounds every feasible tour by quantities computed from the subroutine's own output, not by quantities chosen freely.
  • Infrastructure. Edge cuts δ(S)\delta(S)δ(S) of vertex sets, laminar families, crossing counts of closed walks, and invariants of the event process. Lemmas about any of these, including sorry-free proofs of the milestones, are welcome contributions.

Selected references

  • A. Paul, D. Freund, A. Ferber, D. B. Shmoys, D. P. Williamson, Budgeted Prize-Collecting Traveling Salesman and Minimum Spanning Tree Problems, Mathematics of Operations Research, 2020. https://doi.org/10.1287/moor.2019.1002
  • M. X. Goemans, D. P. Williamson, A General Approximation Technique for Constrained Forest Problems, SIAM Journal on Computing 24(2), 1995. https://doi.org/10.1137/S0097539793242618
  • C. Chekuri, N. Korula, M. Pál, Improved Algorithms for Orienteering and Related Problems, ACM Transactions on Algorithms, 2012; cited as reference [6] of Paul et al. (https://doi.org/10.1287/moor.2019.1002).
7 thms1 active userReviewed
Convex OptimizationOptimizationProbability·Captain: mikedeng1

Minimization Methods for Non-Differentiable Functions VI: Almost-Sure Convergence of the Stochastic Subgradient MethodTextbook

Motivation

Many optimization problems in operations research are posed on an expectation: a two-stage or multistage stochastic program minimizes f(x)=E F(x,ξ)f(x) = E\,F(x,\xi)f(x)=EF(x,ξ), where F(⋅,ξ)F(\cdot,\xi)F(⋅,ξ) is convex but nonsmooth and the expectation cannot be computed exactly. What can be computed is a stochastic subgradient, a random vector whose mean is a subgradient of fff. The stochastic subgradient method replaces the exact subgradient in the classical method by such a random vector. It was introduced by Yu. M. Ermoliev and N. Z. Shor in 1968 and developed by Ermoliev, Nurminski and others into a standard tool of stochastic programming; the same scheme, under the name stochastic (sub)gradient descent, underlies most of large-scale machine learning.

This mission formalizes Section 2.6 of N. Z. Shor, Minimization Methods for Non-Differentiable Functions (Springer 1985): the almost-sure convergence theorem for the stochastic subgradient method (Theorem 2.19), together with two deterministic results of the same section on perturbed and restarted variants of the subgradient method (Theorems 2.18 and 2.20).

Timeline, as recorded in the book:

  • 1968, Ermoliev and Shor: the notion of a stochastic subgradient, introduced for a random search method for two-stage stochastic programs; the convergence theorem reproduced as Theorem 2.19.
  • 1972, Bazhenov: convergence of a subgradient method with restarts for almost differentiable (in general nonconvex) functions, Theorem 2.18.
  • 1976, Shepilov: stability of the subgradient method with respect to errors in the point where the subgradient is computed, Theorem 2.20.

Setting

EnE_nEn​ is nnn-dimensional Euclidean space with inner product (x,y)(x,y)(x,y). A vector ggg is a subgradient of f:En→Rf : E_n \to \mathbb{R}f:En​→R at x0x_0x0​ if f(x)−f(x0)≥(g,x−x0)f(x) - f(x_0) \ge (g, x - x_0)f(x)−f(x0​)≥(g,x−x0​) for all xxx; M∗M^*M∗ is the set of minimum points of fff.

Stochastic subgradient method. Fix a probability space (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P) with a filtration (Fk)k≥0(\mathcal F_k)_{k \ge 0}(Fk​)k≥0​, a deterministic starting point x0x_0x0​, stepsize rules hk:En→Rh_k : E_n \to \mathbb{R}hk​:En​→R and random vectors gk:Ω→Eng_k : \Omega \to E_ngk​:Ω→En​. The iterates are

xk+1=xk−hk(xk) gk,k=0,1,…x_{k+1} = x_k - h_k(x_k)\, g_k, \qquad k = 0,1,\dotsxk+1​=xk​−hk​(xk​)gk​,k=0,1,…

In the book's notation gk=gω(xk)g_k = g_\omega(x_k)gk​=gω​(xk​): a random vector whose expectation, given the state at step kkk, is a subgradient of fff at xkx_kxk​. In the Lean development the iterates are stochIter h G x₀ k ω.

Perturbed subgradient method (Shepilov). Given a subgradient selection gfg_fgf​, points x~k\tilde x_kx~k​ with ∥x~k−xk∥≤δk\|\tilde x_k - x_k\| \le \delta_k∥x~k​−xk​∥≤δk​, and steps hk>0h_k > 0hk​>0: xk+1=xk−hk gf(x~k)/∥gf(x~k)∥x_{k+1} = x_k - h_k\, g_f(\tilde x_k)/\|g_f(\tilde x_k)\|xk+1​=xk​−hk​gf​(x~k​)/∥gf​(x~k​)∥.

Restarted method (Bazhenov). For a function fff that is almost differentiable (Lipschitz on bounded sets, differentiable almost everywhere, with gradient continuous where it exists) and a selection gf(x)g_f(x)gf​(x) of almost-gradients (limit points of gradients at nearby points of differentiability), with Sr={x:∥x−x∗∥≤r}S_r = \{x : \|x - x^*\| \le r\}Sr​={x:∥x−x∗∥≤r}: take the normalized step xˉk+1=xk−hk gf(xk)/∥gf(xk)∥\bar x_{k+1} = x_k - h_k\, g_f(x_k)/\|g_f(x_k)\|xˉk+1​=xk​−hk​gf​(xk​)/∥gf​(xk​)∥ and restart from x0x_0x0​ whenever xˉk+1\bar x_{k+1}xˉk+1​ leaves SrS_rSr​ (resetIter).

Formalization targets

Goal: Theorem 2.19 (p. 46)

Let fff be convex with a unique minimum point x∗x^*x∗. Suppose E{gk∣Fk}E\{g_k \mid \mathcal F_k\}E{gk​∣Fk​} is a subgradient of fff at xkx_kxk​, E{∥gk∥2∣Fk}≤cE\{\|g_k\|^2 \mid \mathcal F_k\} \le cE{∥gk​∥2∣Fk​}≤c, and almost surely hk(xk)>0h_k(x_k) > 0hk​(xk​)>0, ∑khk(xk)=+∞\sum_k h_k(x_k) = +\infty∑k​hk​(xk​)=+∞, ∑khk2(xk)<∞\sum_k h_k^2(x_k) < \infty∑k​hk2​(xk​)<∞. Then

P(lim⁡k→∞∥xk−x∗∥=0)=1.P\Big(\lim_{k\to\infty} \|x_k - x^*\| = 0\Big) = 1 .P(k→∞lim​∥xk​−x∗∥=0)=1.

Milestones

  1. Eq. (2.42), the conditional one-step inequality
E{∥xk+1−x∗∥2∣Fk}≤∥xk−x∗∥2+c hk2(xk).E\{\|x_{k+1} - x^*\|^2 \mid \mathcal F_k\} \le \|x_k - x^*\|^2 + c\,h_k^2(x_k).E{∥xk+1​−x∗∥2∣Fk​}≤∥xk​−x∗∥2+chk2​(xk​).
  1. Proof of Theorem 2.19, pp. 46–47: with probability one ∥xk−x∗∥2\|x_k - x^*\|^2∥xk​−x∗∥2 converges to a finite limit (no divergence condition on the steps).
  2. Theorem 2.20 (Shepilov): under δk→0\delta_k \to 0δk​→0, ∑hkδk<∞\sum h_k\delta_k < \infty∑hk​δk​<∞, ∑hk2<∞\sum h_k^2 < \infty∑hk2​<∞, ∑hk=∞\sum h_k = \infty∑hk​=∞, the perturbed method converges to a point of M∗M^*M∗.
  3. Theorem 2.18 (Bazhenov): if f(x∗)=min⁡Srff(x^*) = \min_{S_r} ff(x∗)=minSr​​f and inf⁡Sr∖Sε(gf(x),x−x∗)>0\inf_{S_r\setminus S_\varepsilon} (g_f(x), x - x^*) > 0infSr​∖Sε​​(gf​(x),x−x∗)>0 for every 0<ε<r0 < \varepsilon < r0<ε<r, the restarted method with hk→0h_k \to 0hk​→0, ∑hk=∞\sum h_k = \infty∑hk​=∞ converges to x∗x^*x∗ from any x0∈Srx_0 \in S_rx0​∈Sr​.

Significance

Theorem 2.19 is the basic justification of stochastic subgradient methods: without computing fff or any exact subgradient, the method reaches the minimizer with probability one, under stepsize conditions that are met by hk=1/(k+1)h_k = 1/(k+1)hk​=1/(k+1). It is the nonsmooth convex counterpart of the Robbins–Monro theorem and the prototype of the almost-sure convergence results for stochastic quasi-gradient methods used in stochastic programming. Theorem 2.20 shows that the deterministic method tolerates summable errors in the point where the subgradient is evaluated, which is what allows subgradients to be approximated by finite differences (Section 1.3). Theorem 2.18 extends the convergence of the normalized method to local minima of a class of nonconvex functions.

All four results are proved in the literature. To the best of the platform search (September 2026), none is machine-checked: the platform has almost-sure convergence theorems for smooth stochastic approximation under ODE-type hypotheses (Borkar–Meyn) and in-expectation bounds for stochastic gradient descent, neither of which covers this recursion. A formal proof of the goal would give a reusable almost-sure convergence argument for nonsmooth stochastic methods on top of Mathlib's martingale theory.

Difficulty

The deterministic proof of convergence of the subgradient method compares ∥xk+1−x∗∥2\|x_{k+1}-x^*\|^2∥xk+1​−x∗∥2 with ∥xk−x∗∥2\|x_k - x^*\|^2∥xk​−x∗∥2 along the whole trajectory. With random directions this comparison holds only in conditional expectation, and the term hk(gk−E{gk∣Fk},xk−x∗)h_k(g_k - E\{g_k\mid\mathcal F_k\}, x_k - x^*)hk​(gk​−E{gk​∣Fk​},xk​−x∗) is not controlled pathwise. Taking expectations of the one-step inequality and summing gives only bounds on E∥xk−x∗∥2E\|x_k - x^*\|^2E∥xk​−x∗∥2, which do not yield almost-sure convergence. Moreover the stepsize hk(xk)h_k(x_k)hk​(xk​) depends on the random iterate, so the conditions ∑hk2(xk)<∞\sum h_k^2(x_k) < \infty∑hk2​(xk​)<∞ and ∑hk(xk)=∞\sum h_k(x_k) = \infty∑hk​(xk​)=∞ hold only almost surely, not uniformly, and the iterates need not be square-integrable. Identifying the almost-sure limit as 000 requires using the uniqueness of the minimizer to bound (E{gk∣Fk},xk−x∗)(E\{g_k\mid\mathcal F_k\}, x_k - x^*)(E{gk​∣Fk​},xk​−x∗) away from zero outside a neighbourhood of x∗x^*x∗.

In Theorems 2.18 and 2.20 the difficulty is that the distance to x∗x^*x∗ is not monotone: steps taken near the solution, or with a perturbed subgradient, can increase it, and a restart can move the iterate far away.

Formalization scope

  • EnE_nEn​ is EuclideanSpace ℝ (Fin n); fff is real-valued (finite everywhere); convexity is ConvexOn ℝ Set.univ f; uniqueness of x∗x^*x∗ is a separate hypothesis.
  • Probabilistic model. The book assumes the distribution of gω(xk)g_\omega(x_k)gω​(xk​) is determined by xkx_kxk​ and independent of the past, and remarks this is inessential. The formalization uses a filtration: gkg_kgk​ is Fk+1\mathcal F_{k+1}Fk+1​-measurable, each hkh_khk​ is Borel measurable, x0x_0x0​ is deterministic, and the hypotheses are on conditional expectations given Fk\mathcal F_kFk​. This contains the book's model.
  • Condition (iii) is printed as E∥gω(xk)∥2≤cE\|g_\omega(x_k)\|^2 \le cE∥gω​(xk​)∥2≤c; the proof uses the conditional bound in (2.42), and the formalization assumes the conditional bound E{∥gk∥2∣Fk}≤cE\{\|g_k\|^2\mid\mathcal F_k\} \le cE{∥gk​∥2∣Fk​}≤c almost surely.
  • Every expectation carries an integrability hypothesis (gkg_kgk​ and ∥gk∥2\|g_k\|^2∥gk​∥2 integrable), so no conditional expectation defaults to Lean's junk value 000. The one-step milestone assumes ∥xk−x∗∥2\|x_k - x^*\|^2∥xk​−x∗∥2 integrable and a bounded stepsize rule at that step, and concludes integrability of ∥xk+1−x∗∥2\|x_{k+1}-x^*\|^2∥xk+1​−x∗∥2.
  • Conditions (i)–(ii) on the random stepsizes are required almost surely. "With probability one lim⁡∥xk−x∗∥=0\lim\|x_k - x^*\| = 0lim∥xk​−x∗∥=0" is ∀ᵐ ω ∂μ, Tendsto (fun k => ‖x k ω - x*‖) atTop (𝓝 0).
  • Division by zero. In Theorems 2.18 and 2.20 the normalized step is undefined when the subgradient vanishes; the formalization skips the step (the iterate is repeated) by an explicit branch, not through Lean's convention x/0=0x/0 = 0x/0=0. When the subgradient never vanishes the sequences are exactly the book's.
  • The printed display (2.42) has xkx_kxk​ where xk+1x_{k+1}xk+1​ is meant on its left-hand side; the corrected inequality is stated.
  • A trivializing formalization, for instance dropping the integrability hypotheses so that the conditional expectations vanish, or quantifying the stepsize conditions so that they cannot hold, is excluded by the hypotheses above; the hypotheses are satisfiable (deterministic subgradients of f(x)=∥x∥f(x) = \|x\|f(x)=∥x∥ with hk=1/(k+1)h_k = 1/(k+1)hk​=1/(k+1)).
  • Mathlib supplies conditional expectation (MeasureTheory.condExp), filtrations, and almost-sure convergence of L1L^1L1-bounded (sub/super)martingales; the supermartingale convergence theorem the book cites from Doob is used from Mathlib, not restated. A Robbins–Siegmund-type lemma for nonnegative almost-supermartingales would be the natural reusable contribution. The almost-differentiability and subgradient definitions duplicate drafts of other missions in this series.

Selected references

  • N. Z. Shor, Minimization Methods for Non-Differentiable Functions, Springer Series in Computational Mathematics 3, Springer, 1985, Section 2.6, pp. 44–47. https://doi.org/10.1007/978-3-642-82118-9
  • Yu. M. Ermoliev and N. Z. Shor, A random search method for two-stage problems of stochastic programming and its generalization, Kibernetika (Kiev), no. 1, 90–92, 1968.
  • L. G. Bazhenov, On the conditions for convergence of methods for minimizing almost differentiable functions, Kibernetika (Kiev), no. 4, 71–72, 1972.
  • M. A. Shepilov, On a method of generalized gradient for finding the absolute minimum of a convex function, Kibernetika (Kiev), no. 4, 52–57, 1976.
  • Yu. M. Ermoliev, Methods of Stochastic Programming, Nauka, Moscow, 1976.
  • H. Robbins and D. Siegmund, A convergence theorem for non negative almost supermartingales and some applications, in Optimizing Methods in Statistics, Academic Press, 1971, pp. 233–257. https://doi.org/10.1016/B978-0-12-604550-5.50015-8
  • J. L. Doob, Stochastic Processes, Wiley, New York, 1953 (supermartingale convergence theorem).
11 thms1 active userReviewed
Bandit AlgorithmsDynamic ProgrammingStochastic Systems·Captain: mikedeng1

The Complexity of Optimal Queuing Network Control II: Restless Bandits with Deterministic Transitions are PSPACE-hardResearch Paper

Motivation

Among queueing control problems, a small class admits efficiently computable optimal policies: a single server choosing among several customer streams (Klimov 1974). These problems can be recast as multi-armed bandit problems, whose optimal policies are given by Gittins indices (Gittins 1979), and those indices are computable in polynomial time. The most studied generalization that could have extended this tractability is the restless bandit problem of Whittle (1988), in which bandits that are not played also change state and incur cost. Whittle's index heuristic and its asymptotic optimality (Weber and Weiss 1990) made the model a standard tool in scheduling, sensor management and resource allocation.

Papadimitriou and Tsitsiklis (1999) settled whether restless bandits are as easy as ordinary bandits. Their Theorem 4 shows that finding an optimal policy is PSPACE-hard, even when every transition is deterministic. The same paper shows that general queueing network control is EXP-complete (Theorem 1, the subject of a companion mission).

Setting

A restless bandit instance with deterministic transition rules consists of:

  • n≥1n \ge 1n≥1 bandits, indexed 1,…,n1, \dots, n1,…,n, on a common finite state space S={1,…,M}S = \{1, \dots, M\}S={1,…,M};
  • initial states X1(0),…,Xn(0)∈SX_1(0), \dots, X_n(0) \in SX1​(0),…,Xn​(0)∈S;
  • two maps P,Q:S→SP, Q : S \to SP,Q:S→S: PPP moves the bandit that is played, QQQ moves every other bandit;
  • two rational cost functions c,d:S→Qc, d : S \to \mathbb{Q}c,d:S→Q;
  • a rational threshold KKK.

A policy is a map π:Sn→{1,…,n}\pi : S^n \to \{1, \dots, n\}π:Sn→{1,…,n}. At each time t=0,1,2,…t = 0, 1, 2, \dotst=0,1,2,… it plays the bandit i(t)=π(X1(t),…,Xn(t))i(t) = \pi(X_1(t), \dots, X_n(t))i(t)=π(X1​(t),…,Xn​(t)); then Xi(t)(t+1)=P(Xi(t)(t))X_{i(t)}(t+1) = P(X_{i(t)}(t))Xi(t)​(t+1)=P(Xi(t)​(t)) and Xi(t+1)=Q(Xi(t))X_i(t+1) = Q(X_i(t))Xi​(t+1)=Q(Xi​(t)) for every i≠i(t)i \ne i(t)i=i(t). The cost at time ttt is

C(t)=c(Xi(t)(t))+∑i≠i(t)d(Xi(t)),C(t) = c\bigl(X_{i(t)}(t)\bigr) + \sum_{i \ne i(t)} d\bigl(X_i(t)\bigr),C(t)=c(Xi(t)​(t))+i=i(t)∑​d(Xi​(t)),

and the average cost of π\piπ is

J(π)=lim sup⁡T→∞1T∑t=1TC(t).J(\pi) = \limsup_{T \to \infty} \frac{1}{T}\sum_{t=1}^{T} C(t).J(π)=T→∞limsup​T1​t=1∑T​C(t).

The classical multi-armed bandit is the case Q=idQ = \mathrm{id}Q=id, d=0d = 0d=0. The paper's general model has transition probability matrices; the deterministic case is a special case, so hardness for it implies hardness in general.

The decision problem RESTLESS BANDITS asks whether there is a policy π\piπ with J(π)≤KJ(\pi) \le KJ(π)≤K.

Problems are sets of instances, and instances are bit strings under a fixed binary encoding. A problem is in PSPACE if a multi-stack Turing machine decides it on every input using a number of stack cells polynomial in the input length. It is PSPACE-hard if every PSPACE language reduces to it by a polynomial-time many-one reduction: a map computable in polynomial time that sends yes-instances to yes-instances and no-instances to no-instances. It is PSPACE-complete if it is also in PSPACE.

The proof starts from an auxiliary problem, CIRCULAR-TAPE HALTING. The input is a circular tape with squares 1,…,n1, \dots, n1,…,n holding values in {1,…,A}\{1, \dots, A\}{1,…,A}, a rule F:{1,…,A}2→{1,…,A}F : \{1,\dots,A\}^2 \to \{1,\dots,A\}F:{1,…,A}2→{1,…,A} with F(1,1)=1F(1,1) = 1F(1,1)=1, and an initial configuration v(0)v(0)v(0). At time ttt the head points at the square i≡t(modn)i \equiv t \pmod ni≡t(modn), replaces its value by F(vi−1 mod n(t),vi(t))F(v_{i-1 \bmod n}(t), v_i(t))F(vi−1modn​(t),vi​(t)) and moves on; every other square keeps its value. The process halts if at some time every square holds 111. The question is whether the process halts.

Formalization targets

Goal: Theorem 4

RESTLESS BANDITS with deterministic transition rules is PSPACE-hard.\text{RESTLESS BANDITS with deterministic transition rules is PSPACE-hard.}RESTLESS BANDITS with deterministic transition rules is PSPACE-hard.

In Lean: PSPACEHard Instance.enc restlessBandits. Every language in PSPACE reduces to the decision problem in polynomial time.

Milestone 1: the circular-tape claim

CIRCULAR-TAPE HALTING is PSPACE-complete.\text{CIRCULAR-TAPE HALTING is PSPACE-complete.}CIRCULAR-TAPE HALTING is PSPACE-complete.

In Lean: PSPACEComplete TapeInstance.enc circularTapeHalting, meaning the problem is in PSPACE and PSPACE-hard. The paper claims completeness at this point. The goal uses only the hardness half.

Milestone 2: the reduction

CIRCULAR-TAPE HALTING  ≤p  RESTLESS BANDITS (deterministic).\text{CIRCULAR-TAPE HALTING} \;\le_p\; \text{RESTLESS BANDITS (deterministic)}.CIRCULAR-TAPE HALTING≤p​RESTLESS BANDITS (deterministic).

In Lean: PolyReduces TapeInstance.enc circularTapeHalting Instance.enc restlessBandits. This is the existence of a polynomial-time reduction. It is not a statement about the specific construction in the paper.

Significance

The result. Theorem 4 shows that the index theory of multi-armed bandits does not extend to restless bandits. The index-based approach has no efficient exact counterpart unless P = PSPACE, even with no randomness at all. It is why the restless-bandit literature works with heuristics (Whittle's index) and asymptotic optimality results, not exact polynomial-time algorithms. It is also one of the standard hardness results cited for average-cost Markov decision problems whose state space is a product of many small components.

Formalizing it. The paper's argument is informal. It assumes the simulation of polynomial-space machines by circular-tape processes, and it describes the bandit construction in prose. A complete formalization produces a machine-checked PSPACE-hardness proof for a controlled-dynamics problem. It also produces a reusable space-bounded computation layer on Mathlib's Turing machines, which has polynomial time but no space measure. No part of this result has a machine-checked proof yet.

Difficulty

The obvious first idea is to encode a space-bounded machine's configuration in the bandits' joint state. The difficulty is that a policy sees only the product state and plays exactly one bandit per step. The rules PPP and QQQ are shared by all bandits, so no bandit knows its own index. The reduction also has to be exact for the average-cost criterion. A policy that simulates the computation correctly for a long but finite time, then deviates, must not reach average cost zero. A policy that halts must reach it. Milestone 1 needs its own work as well: a polynomial-space machine has to be recast as an in-place computation on a circular tape whose local rule FFF sees only a square and its predecessor.

Formalization scope

Conventions fixed in Lean:

  • Encoding. Instances are bit strings built by concatenating self-delimiting binary numerals (each bit doubled, then 01), sign-magnitude integers, (numerator, denominator) rationals, and tables listed in index order after their dimensions. The encoded length is polynomial in the instance's bit size and vice versa. Mathlib's Encodable/Nat.pair encodings are not used.
  • Machines. Time is Mathlib's Turing.TM2ComputableInPolyTime. PSPACE is defined here: a Turing.FinTM2 that halts on every input with the correct output bit, and in which every reachable configuration has total stack length at most p(∣input∣)p(|\text{input}|)p(∣input∣). The input stack is counted.
  • Decision version. The paper states only the optimization problem ("finding a policy with minimal average expected cost"). The decision version asks for ∃π, J(π)≤K\exists \pi,\ J(\pi) \le K∃π, J(π)≤K, with the rational KKK part of the input; the paper's reduction uses K=0K = 0K=0. Instances with n=0n = 0n=0 are no-instances.
  • Decision epochs and policies. Time is discrete, and t=0t = 0t=0 is the first decision. Policies are all deterministic stationary maps Sn→{1,…,n}S^n \to \{1,\dots,n\}Sn→{1,…,n}, as on the page. The dynamics are deterministic, so E[C(t)]=C(t)E[C(t)] = C(t)E[C(t)]=C(t). The average is the real limsup of 1T∑t=1TC(t)\frac1T \sum_{t=1}^T C(t)T1​∑t=1T​C(t). The running averages are bounded, so the limsup has no junk value.
  • Indices. Bandits, states, squares and values are Fin n, Fin M, Fin n, Fin A (0-based). Square j+1j+1j+1 is index jjj, and the value 111 is index 000.
  • Circular tape. The display on p. 303 prints "vi(t)v_i(t)vi​(t) if i=t mod ni = t \bmod ni=tmodn", which would update every square but one. The prose says that only the square under the head is updated, and the formalization follows the prose. The head is at square i≡t(modn)i \equiv t \pmod ni≡t(modn) at time ttt, so it starts at square nnn. Well-formedness (n≥1n \ge 1n≥1, F(1,1)=1F(1,1) = 1F(1,1)=1) is part of the problem.

Excluded trivialization. The goal quantifies over every PSPACE language and asks for a reduction computable in polynomial time on a compact encoding. Exhibiting one hard instance, stating the correctness of the paper's construction for the constructed instance, or measuring against a padded encoding would not prove Theorem 4.

Theorem 4 is stated as hardness only. The proof's last sentence and the introduction say "PSPACE-complete", but membership in PSPACE is not argued in the paper.

Infrastructure. A complete development needs: closure of polynomial-time TM2 computations under composition, which gives transitivity of ≤p\le_p≤p​ and turns the two milestones into the goal; a space-bounded simulation of TM2 machines by circular-tape processes; and the bandit construction with an average-cost analysis of eventually periodic deterministic trajectories. The encoding and PSPACE layer can be reused by any complexity result on the platform. Contributions to the polynomial-time composition lemmas are especially welcome.

Selected references

  • C. H. Papadimitriou and J. N. Tsitsiklis, The Complexity of Optimal Queuing Network Control, Mathematics of Operations Research 24(2):293–305, 1999. https://doi.org/10.1287/moor.24.2.293
  • P. Whittle, Restless Bandits: Activity Allocation in a Changing World, Journal of Applied Probability 25A:287–298, 1988. https://doi.org/10.2307/3214163
  • R. R. Weber and G. Weiss, On an Index Policy for Restless Bandits, Journal of Applied Probability 27(3):637–648, 1990. https://doi.org/10.2307/3214547
  • J. C. Gittins, Bandit Processes and Dynamic Allocation Indices, Journal of the Royal Statistical Society B 41(2):148–177, 1979. https://doi.org/10.1111/j.2517-6161.1979.tb01068.x
  • G. P. Klimov, Time-Sharing Service Systems I, Theory of Probability and Its Applications 19(3):532–551, 1974. https://doi.org/10.1137/1119060
8 thms1 active userReviewed
Dynamic ProgrammingMarkov ChainStochastic Systems·Captain: mikedeng1

The Complexity of Optimal Queuing Network Control I: NETWORK OF QUEUES is EXP-completeResearch Paper

Motivation

Multiclass queueing networks model manufacturing lines, computer systems and communication networks. In these systems jobs of several types move between shared resources, and a controller decides where to send a job next (routing) and which waiting job a free resource works on (sequencing). The central design question is to find a control policy that maximizes long-run throughput. For decades this was attacked with heuristics, approximations and performance bounds (Walrand 1988; Bertsimas, Paschalidis and Tsitsiklis 1994; Kumar and Kumar 1994, all cited in the introduction of Papadimitriou and Tsitsiklis 1999). No general exact algorithm faster than solving a Markov decision process over all network states was found.

Papadimitriou and Tsitsiklis (1999) explained why. For closed networks with exponential service times, computing an optimal policy is EXP-complete, and therefore provably requires exponential time, independently of whether P equals NP. The paper describes this as, in its authors' experience, the first intractability result of this strength for a practical optimization problem that had been attacked for decades. This mission formalizes that theorem, Theorem 1 of the paper.

Setting

A network of queues has a finite set CCC of customer classes and a finite set SSS of servers. Each class ccc has a single server σ(c)∈S\sigma(c) \in Sσ(c)∈S that can serve it, a mean service time μ(c)≥0\mu(c) \ge 0μ(c)≥0 and a weight w(c)∈Qw(c) \in \mathbb{Q}w(c)∈Q. Service times are independent and exponentially distributed with the prescribed mean. The classes are partitioned into DDD and RRR. When a class-ccc customer completes service it changes to a new class c′c'c′: the controller chooses c′c'c′ from a given nonempty set N(c)⊆CN(c) \subseteq CN(c)⊆C if c∈Dc \in Dc∈D, and c′c'c′ is drawn with given rational probabilities pcc′p_{cc'}pcc′​ if c∈Rc \in Rc∈R. The network is closed: no customer arrives or leaves.

The state records the number of customers of each class waiting, and the class (if any) being served at each server. A policy π\piπ makes decisions as a function of the current state. At time 000 and at every service completion it routes the completing customer (if its class is in DDD), and then lets each free server either idle or start a waiting customer of one of its own classes. Service is nonpreemptive. Under a fixed policy the state evolves as a continuous-time Markov chain. Let acπ(t)a^\pi_c(t)acπ​(t) be the number of class-ccc completions up to time ttt from the given initial state. The weighted throughput is

Jπ=lim sup⁡t→∞1t∑c∈Cw(c) E[acπ(t)].J^\pi = \limsup_{t\to\infty} \frac1t \sum_{c\in C} w(c)\, \mathbb{E}\big[a^\pi_c(t)\big].Jπ=t→∞limsup​t1​c∈C∑​w(c)E[acπ​(t)].

NETWORK OF QUEUES is the decision problem: given all these data (with the initial counts in binary) and a rational KKK, is there a policy π\piπ with Jπ>KJ^\pi > KJπ>K?

EXP is the class of problems solvable in time 2p(n)2^{p(n)}2p(n) for a polynomial ppp, on inputs of length nnn. A problem is EXP-complete if it lies in EXP and every problem in EXP reduces to it by a polynomial-time many-one reduction.

The reduction source in the paper is STOCHASTIC IN-PLACE ACCEPTANCE (SIPA). A stochastic Turing machine has nondeterministic and stochastic states, each with two continuations. Its computation tree is evaluated bottom-up, taking the maximum at nondeterministic nodes and the average at stochastic nodes, and the machine accepts if the value exceeds 1/21/21/2. SIPA asks, for a machine MMM and an integer nnn in unary, whether MMM accepts nnn zeroes without leaving the nnn input squares.

Formalization targets

Goal: Theorem 1

NETWORK OF QUEUES is EXP-complete.\text{NETWORK OF QUEUES is EXP-complete.}NETWORK OF QUEUES is EXP-complete.

In Lean, EXPComplete Instance.enc networkOfQueues. The problem is in EXP, and every language L∈EXPL \in \mathrm{EXP}L∈EXP reduces to it in polynomial time.

Milestones

  1. Lemma 1: SIPA is EXP-complete.
  2. Upper bound (proof of Theorem 1, p. 296): NETWORK OF QUEUES ∈\in∈ EXP.
  3. Completeness (proof of Theorem 1, pp. 296–300): SIPA ≤p\le_p≤p​ NETWORK OF QUEUES.

Milestones 2 and 3, Lemma 1, and the transitivity of polynomial-time reductions together give the goal.

Significance

The result. Theorem 1 separates what can be computed exactly for queueing networks from what cannot. Since EXP strictly contains P by the time hierarchy theorem, no algorithm computes optimal throughput policies for all closed exponential networks in polynomial time. Unlike NP-hardness, this is unconditional. The result justifies the literature's turn to approximations, bounds and asymptotic regimes, and it motivated the complexity analysis of restless bandits in the same paper. The stochastic-machine characterization of EXP, polynomial space with stochastic and nondeterministic states, is a tool of independent interest.

Formalizing it. The theorem is proved on paper, with a reduction that the paper itself presents in sketched form. It has no machine-checked proof. The formal work includes an exponential-time Markov decision process solver expressed as a Turing machine, a simulation of alternating polynomial-space machines by stochastic ones, and the queueing-network gadget with its optimality argument. It also produces a reusable layer: EXP and polynomial-time reductions over Mathlib's Turing.FinTM2, and a controlled continuous-time Markov chain for closed queueing networks.

Difficulty

The membership half needs an exponential-time decision procedure for the average-reward criterion. This is a multichain Markov decision process with instantaneous transitions, and it must be implemented and timed on an actual Turing machine rather than argued about informally. The hardness half is harder. The network has to encode a stochastic machine's configuration. In the paper, one customer per tape square carries the square's bit and a single test customer carries the machine's state and head position. The weights are chosen so that an optimal policy is forced to simulate the machine faithfully. The paper argues optimality through the average-reward optimality equation with explicit error bounds, and it states several steps (the normal forms of the machine, the padding to linear space) as standard. Every one of these has to be made precise. Finally, composing reductions needs the composition of polynomial-time Turing machines, which Mathlib states only as proof_wanted TM2ComputableInPolyTime.comp.

Formalization scope

All declarations are in the namespace OptimalQueuingComplexity.Network. The following conventions are fixed:

  • Encoding. Instances are bit strings built by concatenating self-delimiting pieces. Naturals (including customer counts) are in binary with doubled digits and a terminator, integers in sign–magnitude form, rationals as reduced numerator/denominator pairs, and tables in index order. Classes are Fin nC and servers Fin nS. SIPA's nnn is in unary. Encodable and Nat.pair are not used: their exponential padding would make membership in EXP trivial.
  • Well-formedness is part of the problem, and ill-formed instances are no-instances. It requires σ(cs)=s\sigma(c_s) = sσ(cs​)=s for busy servers, μ≥0\mu \ge 0μ≥0, probability vectors on RRR, and N(c)≠∅N(c) \ne \emptysetN(c)=∅ on DDD. It also requires, as an added hypothesis, that no routing cycle consists of zero-mean classes.
  • Zero mean service time means instantaneous service. Simultaneous instantaneous completions are processed in increasing server index.
  • Decision epochs are time 000 and every completion. Routing precedes sequencing. Policies are deterministic and stationary. The count of a class excludes the customers in service.
  • Throughput. E[acπ(t)]\mathbb{E}[a^\pi_c(t)]E[acπ​(t)] is an extended nonnegative real computed from the embedded chain and convolutions of exponential laws (ProbabilityTheory.expMeasure). The lim sup⁡\limsuplimsup is taken in EReal. The inequality Jπ>KJ^\pi > KJπ>K is strict.
  • SIPA uses the binary alphabet. Leaving the input squares is rejection. Acceptance means that some finite-depth tree value exceeds 1/21/21/2, which equals the paper's tree value for precise machines.
  • EXP means TM2ComputableInTime with time bounded by 2p(n)2^{p(n)}2p(n). Reductions are TM2ComputableInPolyTime. Hardness quantifies over every EXP language, not over one constructed instance.

A statement about the paper's specific gadget (its servers, router and weights) is a proof step and not a target. Contributions welcome beyond the targets include composition of polynomial-time machines, a decision procedure for finite average-reward MDPs, and structural facts about the throughput (finiteness under well-formedness, attainment by stationary policies).

Selected references

  • C. H. Papadimitriou and J. N. Tsitsiklis, The Complexity of Optimal Queuing Network Control, Mathematics of Operations Research 24(2):293–305, 1999. https://doi.org/10.1287/moor.24.2.293
  • A. K. Chandra, D. C. Kozen and L. J. Stockmeyer, Alternation, Journal of the ACM 28(1):114–133, 1981. https://doi.org/10.1145/322234.322243
  • C. H. Papadimitriou, Games Against Nature, Journal of Computer and System Sciences 31(2):288–301, 1985. https://doi.org/10.1016/0022-0000(85)90045-5
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
10 thms1 active userReviewed
Dynamic ProgrammingMarkov ChainProbability·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems V: The Average Cost Optimality Equation and Value Iteration for Finite State SpacesTextbook

Motivation

Average cost Markov decision chains model systems that run indefinitely and are judged by their long-run cost per step: admission and routing control in queues, inventory replenishment, machine maintenance. For a finite state space the classical tool is the average cost optimality equation (ACOE)

J+h(i)=min⁡a∈Ai{C(i,a)+∑jPij(a) h(j)},J + h(i) = \min_{a \in A_i}\Big\{C(i,a) + \sum_j P_{ij}(a)\,h(j)\Big\},J+h(i)=a∈Ai​min​{C(i,a)+j∑​Pij​(a)h(j)},

whose solution gives both the minimum average cost JJJ and an optimal stationary policy. To be useful the equation has to be solved numerically, and the method used in practice is value iteration: compute the minimum nnn-horizon costs vnv_nvn​ and extract JJJ and hhh from their growth. This mission formalizes Sections 6.4–6.6 of L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999, doi:10.1002/9780470317037): when the minimum average cost is constant, the ACOE holds, any solution of it is optimal, and value iteration converges, provided the optimal policies are aperiodic. When they are not, a transformation of the model makes them so.

Related classical work includes Blackwell's discrete dynamic programming (1962) and Schweitzer–Federgruen's analysis of undiscounted value iteration (1977); Sennott's treatment derives the ACOE from the discounted value function VαV_\alphaVα​ as α→1−\alpha \to 1^-α→1−, which is the route that extends to countable state spaces in later chapters of the book.

Setting

A Markov decision chain (MDC) Δ\DeltaΔ has a finite state space SSS; in each state iii a finite nonempty action set AiA_iAi​; nonnegative costs C(i,a)C(i,a)C(i,a); and transition probabilities Pij(a)P_{ij}(a)Pij​(a). A policy θ\thetaθ may use the whole history and randomize; a stationary policy eee always chooses e(i)∈Aie(i) \in A_ie(i)∈Ai​ in state iii and induces a Markov chain with transitions Pij(e)=Pij(e(i))P_{ij}(e) = P_{ij}(e(i))Pij​(e)=Pij​(e(i)).

For a policy θ\thetaθ and initial state iii: vθ,n(i)v_{\theta,n}(i)vθ,n​(i) is the expected cost of the first nnn steps, Vθ,α(i)V_{\theta,\alpha}(i)Vθ,α​(i) the expected α\alphaα-discounted cost, and Jθ(i)=lim sup⁡nvθ,n(i)/nJ_\theta(i) = \limsup_n v_{\theta,n}(i)/nJθ​(i)=limsupn​vθ,n​(i)/n the average cost. The value functions are the infima over all policies: vnv_nvn​, VαV_\alphaVα​ and the minimum average cost J(i)J(i)J(i). A policy is average cost optimal if Jθ≡JJ_\theta \equiv JJθ​≡J.

Section 6.2 of the book provides a stationary policy fff that is α\alphaα discount optimal for all α\alphaα close to 111 (a Blackwell optimal policy), and Section 6.3 builds from it a relative value function w∗w^*w∗. For a distinguished state zzz put

hα(i)=Vα(i)−Vα(z),h(i)=lim⁡α→1−hα(i),dn(i)=h(i)+nJ−vn(i).h_\alpha(i) = V_\alpha(i) - V_\alpha(z), \qquad h(i) = \lim_{\alpha\to1^-} h_\alpha(i), \qquad d_n(i) = h(i) + nJ - v_n(i).hα​(i)=Vα​(i)−Vα​(z),h(i)=α→1−lim​hα​(i),dn​(i)=h(i)+nJ−vn​(i).

For a distinguished state xxx the finite horizon relative value function is rn(i)=vn(i)−vn(x)r_n(i) = v_n(i) - v_n(x)rn​(i)=vn​(i)−vn​(x).

A positive recurrent class RRR of a Markov chain is aperiodic if Pij(n)→πjP^{(n)}_{ij} \to \pi_jPij(n)​→πj​ for i,j∈Ri, j \in Ri,j∈R, where π\piπ is the steady state distribution. Assumption OPA ("optimal policies are aperiodic") requires every positive recurrent class of every average cost optimal stationary policy to be aperiodic. The aperiodicity transformation Δ∗\Delta^*Δ∗ with 0<τ<10<\tau<10<τ<1 keeps states and actions, scales costs by τ\tauτ, and sets Pij∗(a)=τPij(a)P^*_{ij}(a) = \tau P_{ij}(a)Pij∗​(a)=τPij​(a) for j≠ij \ne ij=i, Pii∗(a)=τPii(a)+(1−τ)P^*_{ii}(a) = \tau P_{ii}(a) + (1-\tau)Pii∗​(a)=τPii​(a)+(1−τ).

Formalization targets

Goal: convergence of value iteration (Proposition 6.6.3)

If J(i)≡JJ(i) \equiv JJ(i)≡J and Assumption OPA holds, then for any distinguished state xxx

lim⁡n→∞[vn(x)−vn−1(x)]=J,lim⁡n→∞rn(i)=:r(i) exists,\lim_{n\to\infty}[v_n(x) - v_{n-1}(x)] = J, \qquad \lim_{n\to\infty} r_n(i) =: r(i) \text{ exists},n→∞lim​[vn​(x)−vn−1​(x)]=J,n→∞lim​rn​(i)=:r(i) exists,

(J,r)(J, r)(J,r) solves the ACOE, and every limit point of the finite horizon optimal stationary policies is average cost optimal.

Milestones

  1. Proposition 6.4.1: unichain structure, bounded ∣Vα(i)−Vα(z)∣|V_\alpha(i) - V_\alpha(z)|∣Vα​(i)−Vα​(z)∣, or pairwise reachability imply J(i)≡JJ(i) \equiv JJ(i)≡J, with the implication diagram (6.26).
  2. Theorem 6.4.2: under J(i)≡JJ(i) \equiv JJ(i)≡J, hhh exists, solves the ACOE (6.31), yields optimal policies, ∣dn∣≤L|d_n| \le L∣dn​∣≤L and vn/n→Jv_n/n \to Jvn​/n→J.
  3. Proposition 6.5.1: any finite solution (F,r)(F, r)(F,r) of the ACOE (or of the inequality (6.36)) gives J≡FJ \equiv FJ≡F and optimal policies, and differs from hhh by constants on recurrent classes.
  4. Lemma 6.6.2: on an aperiodic positive recurrent class of an optimal policy, dnd_ndn​ converges to a constant.
  5. Lemma 6.6.5 and Proposition 6.6.6: Δ∗\Delta^*Δ∗ has the same recurrent classes and steady states, all of them aperiodic, costs scaled by τ\tauτ; value iteration on Δ∗\Delta^*Δ∗ produces a solution (J∗/τ,r∗)(J^*/\tau, r^*)(J∗/τ,r∗) of the ACOE of Δ\DeltaΔ.

Significance

The ACOE with constant JJJ is the standard certificate of optimality for finite average cost models, and Proposition 6.5.1 is what allows any numerical solution of it to be trusted. Proposition 6.6.3 is the correctness theorem of the value iteration algorithm (VIA 6.6.4 of the book), and Proposition 6.6.6 removes its one extra hypothesis at the price of a model transformation. Chapter 8 of the book runs this algorithm on a sequence of finite truncations to compute optimal policies for countable-state queueing models, so these results are the base of the book's computational method.

All results in this mission are proved in the book; none has a machine-checked proof. Existing formalizations on the platform treat average reward models under a unichain hypothesis with a single action set type; this mission assumes only a constant minimum average cost (multichain models allowed) and uses the general policy class throughout.

Difficulty

The ACOE itself is not the obstacle; convergence of vn(x)−vn−1(x)v_n(x) - v_{n-1}(x)vn​(x)−vn−1​(x) is. Theorem 6.4.2 bounds dnd_ndn​ but does not make it converge, and Example 6.6.1 of the book (a two-state periodic chain) shows that without aperiodicity vn(x)−vn−1(x)v_n(x) - v_{n-1}(x)vn​(x)−vn−1​(x) oscillates. The naive argument, passing to the limit in the finite horizon optimality equation, assumes the limits exist, which is exactly what is in question. Chain structure is the obstruction: a multichain optimal policy has several recurrent classes, and the Cesàro-type convergence that suffices for the ACOE itself is weaker than the pointwise convergence value iteration needs. The policy statement is also delicate, since the finite horizon minimizers fnf_nfn​ need not converge.

Formalization scope

  • The state type S is finite ([Fintype S]); actions are a type Act with per-state nonempty Finset action sets. Costs are in ℝ≥0, transition probabilities in ℝ≥0∞, and all value functions are defined in [0,∞] as infima over all history-dependent randomized policies, then converted to ℝ (they are finite for finite SSS).
  • JJJ constant is stated as J(i)=JJ(i) = JJ(i)=J for all iii, with J∈R≥0J \in \mathbb R_{\ge 0}J∈R≥0​. The relative value hhh is defined as the limit α→1−\alpha \to 1^-α→1− of hαh_\alphahα​, not taken as an arbitrary solution of the ACOE; Theorem 6.4.2(i) asserts the limit exists. The Blackwell optimal policy fff enters as a hypothesis: any stationary policy discount optimal on an interval (α0,1)(\alpha_0,1)(α0​,1).
  • min_a is Finset.inf' over AiA_iAi​. Limit points of policy sequences follow Definition B.1 (a subsequence agreeing eventually in every state). Finite horizon optimal policies fnf_nfn​ are any minimizers of vn(i)=min⁡a{C(i,a)+∑jPij(a)vn−1(j)}v_n(i) = \min_a\{C(i,a) + \sum_j P_{ij}(a) v_{n-1}(j)\}vn​(i)=mina​{C(i,a)+∑j​Pij​(a)vn−1​(j)}.
  • Aperiodicity of a class is the book's definition (Pij(n)→πjP^{(n)}_{ij} \to \pi_jPij(n)​→πj​ on the class), with πj=1/mjj\pi_j = 1/m_{jj}πj​=1/mjj​. Assumption OPA quantifies over average cost optimal stationary policies only, not over all stationary policies.
  • A trivializing formalization is ruled out: hhh, rnr_nrn​, dnd_ndn​ and vnv_nvn​ are computed from the model, not free functions constrained by the ACOE, and the ACOE conclusions are equalities of real numbers with the minimum over the actual action sets.
  • The model, criteria and Markov chain definitions restate those of mission IV of this series in their own namespace; they are reusable for any finite average cost result. Contributions of general Markov chain facts (convergence of P(n)P^{(n)}P(n) on aperiodic classes, Cesàro limits 1n∑tP(t)\frac1n\sum_t P^{(t)}n1​∑t​P(t)) are welcome.

Selected references

  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley Series in Probability and Statistics, Wiley, 1999. https://doi.org/10.1002/9780470317037
  • D. Blackwell, Discrete dynamic programming, Annals of Mathematical Statistics 33 (1962), 719–726. https://doi.org/10.1214/aoms/1177704593
  • P. J. Schweitzer and A. Federgruen, The asymptotic behavior of undiscounted value iteration in Markov decision problems, Mathematics of Operations Research 2 (1977), 360–381. https://doi.org/10.1287/moor.2.4.360
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
13 thms1 active userReviewed
Linear OptimizationOptimizationTheoretical Computer Science·Captain: mikedeng1

Makespan Minimization in Job Shops: A Linear Time Approximation Scheme: The Interval LP Is Feasible at the Restricted OptimumResearch Paper

Motivation

The job shop scheduling problem asks for a nonpreemptive schedule of jobs on machines, each job a fixed sequence of operations with prescribed machines and processing times, that minimizes the time at which the last operation completes. It is one of the most studied hard problems of combinatorial optimization: even very constrained versions are strongly NP-hard (Lawler, Lenstra, Rinnooy Kan and Shmoys, 1993), and for any ρ<5/4\rho<5/4ρ<5/4 a ρ\rhoρ-approximation when the number of machines is part of the input would imply P=NP\mathrm{P}=\mathrm{NP}P=NP (Williamson et al., 1997).

When the number mmm of machines and the maximum number μ\muμ of operations per job are fixed, Jansen, Solis-Oba and Sviridenko (2003) gave a linear time approximation scheme, improving the earlier (2+ε)(2+\varepsilon)(2+ε)-approximation of Shmoys, Stein and Wein (1994). The scheme follows a pattern that recurs throughout scheduling approximation: split the jobs by length into a constant number of big jobs, which are scheduled by enumeration on a coarse time grid, and many tiny jobs, which are assigned fractionally to time intervals by a linear program, then rounded. The mathematical hinge of this pattern in the paper is Lemma 1: the interval linear program loses nothing against the optimum of the grid-restricted problem.

Setting

An instance has machines M1,…,MmM_1,\dots,M_mM1​,…,Mm​ and jobs J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​. Job JjJ_jJj​ is a sequence of μj\mu_jμj​ operations O1j,…,OμjjO_{1j},\dots,O_{\mu_j j}O1j​,…,Oμj​j​, processed in this order; OijO_{ij}Oij​ runs without interruption on machine MπijM_{\pi_{ij}}Mπij​​ for pij≥0p_{ij}\ge 0pij​≥0 time units, and μ=max⁡jμj\mu=\max_j\mu_jμ=maxj​μj​. A feasible schedule assigns start times Sij≥0S_{ij}\ge 0Sij​≥0, with completion times Cij=Sij+pijC_{ij}=S_{ij}+p_{ij}Cij​=Sij​+pij​, so that Cij≤Si+1,jC_{ij}\le S_{i+1,j}Cij​≤Si+1,j​ and two distinct operations on the same machine do not overlap. Its makespan is max⁡ijCij\max_{ij}C_{ij}maxij​Cij​, and Cmax⁡∗C^*_{\max}Cmax∗​ is the optimum makespan.

The load of MtM_tMt​ is Pt=∑πij=tpijP_t=\sum_{\pi_{ij}=t}p_{ij}Pt​=∑πij​=t​pij​, with Pmax⁡=max⁡tPtP_{\max}=\max_tP_tPmax​=maxt​Pt​; the length of JjJ_jJj​ is lj=∑ipijl_j=\sum_i p_{ij}lj​=∑i​pij​. Fix 0<ε<10<\varepsilon<10<ε<1 and α\alphaα with ε⌈m/ε⌉≤α≤ε\varepsilon^{\lceil m/\varepsilon\rceil}\le\alpha\le\varepsilonε⌈m/ε⌉≤α≤ε. The jobs split into the big jobs B={lj≥αPmax⁡}B=\{l_j\ge\alpha P_{\max}\}B={lj​≥αPmax​}, the small jobs S={αεPmax⁡<lj<αPmax⁡}S=\{\alpha\varepsilon P_{\max}<l_j<\alpha P_{\max}\}S={αεPmax​<lj​<αPmax​} and the tiny jobs T={lj≤αεPmax⁡}T=\{l_j\le\alpha\varepsilon P_{\max}\}T={lj​≤αεPmax​}.

The horizon H=(1+μmε)mPmax⁡H=(1+\mu m\varepsilon)mP_{\max}H=(1+μmε)mPmax​ is cut into N=⌈m(1+μmε)/(αε)⌉N=\lceil m(1+\mu m\varepsilon)/(\alpha\varepsilon)\rceilN=⌈m(1+μmε)/(αε)⌉ equal intervals of the first type. A schedule is restricted if every operation of a big job starts at the beginning of one of them. The small jobs are removed, and C~max⁡∗\widetilde C^*_{\max}Cmax∗​ is the optimum makespan of the restricted schedules of B∪TB\cup TB∪T.

Given a restricted schedule of the big operations, let AAA be the set of their start and completion times, sorted as a1<⋯<a∣A∣a_1<\dots<a_{|A|}a1​<⋯<a∣A∣​, with a0=0a_0=0a0​=0 and a∣A∣+1=Ca_{|A|+1}=Ca∣A∣+1​=C. The intervals of the second type are [ak,ak+1)[a_k,a_{k+1})[ak​,ak+1​), of length Δk\Delta_kΔk​, and Δtk\Delta_{tk}Δtk​ is 000 if a big operation occupies machine MtM_tMt​ during interval kkk and Δk\Delta_kΔk​ otherwise. For a tiny job, KjK_jKj​ is the set of nondecreasing tuples (k1,…,kμj)(k_1,\dots,k_{\mu_j})(k1​,…,kμj​​) in {0,…,∣A∣}\{0,\dots,|A|\}{0,…,∣A∣}. The interval LP (3)–(5) asks for xjK≥0x_{jK}\ge 0xjK​≥0 with

∑K∈KjxjK=1 (Jj∈T),∑Jj∈T∑K∈Kj∑i: ki=k, πij=tpij xjK≤Δtk  for all t,k.\sum_{K\in K_j}x_{jK}=1\ (J_j\in T),\qquad \sum_{J_j\in T}\sum_{K\in K_j}\sum_{i:\,k_i=k,\ \pi_{ij}=t}p_{ij}\,x_{jK}\le\Delta_{tk}\ \ \text{for all } t,k.K∈Kj​∑​xjK​=1 (Jj​∈T),Jj​∈T∑​K∈Kj​∑​i:ki​=k, πij​=t∑​pij​xjK​≤Δtk​  for all t,k.

Formalization targets

Goal: Lemma 1

For C=C~max⁡∗C=\widetilde C^*_{\max}C=Cmax∗​ the interval LP is feasible for some restricted schedule of the big operations:

∃ σ feasible and restricted on B:a∣A∣≤C~max⁡∗≤(1+μmε)mPmax⁡  and (3)–(5) has a solution.\exists\,\sigma\ \text{feasible and restricted on } B:\quad a_{|A|}\le\widetilde C^*_{\max}\le(1+\mu m\varepsilon)mP_{\max}\ \text{ and (3)–(5) has a solution.}∃σ feasible and restricted on B:a∣A∣​≤Cmax∗​≤(1+μmε)mPmax​  and (3)–(5) has a solution.

Milestones

The milestones are the facts of Sections 2–2.2 on which the goal's objects rest, in attack order:

Pmax⁡≤Cmax⁡∗,Cmax⁡∗≤mPmax⁡,P_{\max}\le C^*_{\max},\qquad C^*_{\max}\le mP_{\max},Pmax​≤Cmax∗​,Cmax∗​≤mPmax​, ∃k∈{1,…,⌈m/ε⌉}: ∑Jj∈Sklj≤εPmax⁡(α=εk),(1)\exists k\in\{1,\dots,\lceil m/\varepsilon\rceil\}:\ \sum_{J_j\in S_k}l_j\le\varepsilon P_{\max}\quad(\alpha=\varepsilon^k),\tag{1}∃k∈{1,…,⌈m/ε⌉}: Jj​∈Sk​∑​lj​≤εPmax​(α=εk),(1) ∣B∣≤m/α≤mε−⌈m/ε⌉,|B|\le m/\alpha\le m\varepsilon^{-\lceil m/\varepsilon\rceil},∣B∣≤m/α≤mε−⌈m/ε⌉, restricted schedules exist and  C~max⁡∗≤Cmax⁡∗+μmεPmax⁡≤(1+μmε)Cmax⁡∗,\text{restricted schedules exist and }\ \widetilde C^*_{\max}\le C^*_{\max}+\mu m\varepsilon P_{\max}\le(1+\mu m\varepsilon)C^*_{\max},restricted schedules exist and  Cmax∗​≤Cmax∗​+μmεPmax​≤(1+μmε)Cmax∗​, ∣A∣≤2μ∣B∣≤2μm/α.(2)|A|\le 2\mu|B|\le 2\mu m/\alpha.\tag{2}∣A∣≤2μ∣B∣≤2μm/α.(2)

Significance

Lemma 1 is what makes the algorithm's search correct: among the constantly many grid schedules of the big operations, one admits a fractional placement of all tiny operations into the second-type intervals within length C~max⁡∗\widetilde C^*_{\max}Cmax∗​. Together with the restriction bound it gives Cmin⁡≤C~max⁡∗≤(1+μmε)Cmax⁡∗C_{\min}\le\widetilde C^*_{\max}\le(1+\mu m\varepsilon)C^*_{\max}Cmin​≤Cmax∗​≤(1+μmε)Cmax∗​ for the least feasible LP length Cmin⁡C_{\min}Cmin​, the starting point of the rounding and of the final approximation guarantee. The same big/tiny split with an interval LP recurs in later schemes for flow shops, open shops and multiprocessor tasks, and the definitions here (operation chains, loads, grid-restricted schedules, the interval LP) are the substrate those results would share.

The paper's proofs are informal: the restriction bound is a shifting argument stated in two sentences, and the proof of Lemma 1 is an iterative decomposition of a schedule into LP variables that is not spelled out at interval boundaries or for zero-length operations. No machine-checked formalization of job shop scheduling, of these bounds, or of the lemma is known to exist. This mission produces one for the O(·)-free core of Section 2.

Difficulty

The obvious reading of Lemma 1 ("take an optimal restricted schedule and read off the fractions") hides three steps. First, C~max⁡∗\widetilde C^*_{\max}Cmax∗​ is defined as an infimum over a continuum of schedules, and an optimal restricted schedule has to be shown to exist. Second, the fractions of each tiny operation over the second-type intervals must be recombined into weights on nondecreasing tuples, one tuple per job, so that the equality (3) holds and each operation's mass in each interval is reproduced exactly; this is where the precedence between operations of one job enters. Third, the bound (4) needs that on any machine a second-type interval is either fully covered by one big operation or free of big operations, which relies on AAA containing every start and completion time.

Formalization scope

Machines are Fin m, jobs Fin n, the operations of job jjj are Fin (μ j), all 0-based; processing times are real and nonnegative, with no integrality or positivity assumed, and consecutive operations may share a machine. μ\muμ is defined as max⁡jμj\max_j\mu_jmaxj​μj​. Pmax⁡P_{\max}Pmax​ is a maximum over the machines, the makespan a maximum over the operations of the scheduled jobs, and Cmax⁡∗C^*_{\max}Cmax∗​, C~max⁡∗\widetilde C^*_{\max}Cmax∗​ are infima (sInf) of makespans over feasible, respectively feasible restricted, schedules. C~max⁡∗\widetilde C^*_{\max}Cmax∗​ refers to the jobs B∪TB\cup TB∪T with Pmax⁡P_{\max}Pmax​, α\alphaα, ε\varepsilonε of the full instance. AAA is a set (duplicates collapse), sorted with Finset.orderEmbOfFin. A big operation is processed in interval kkk when its execution interval meets [ak,ak+1)[a_k,a_{k+1})[ak​,ak+1​) in positive length. The LP's range condition C∈[a∣A∣,(1+μmε)mPmax⁡]C\in[a_{|A|},(1+\mu m\varepsilon)mP_{\max}]C∈[a∣A∣​,(1+μmε)mPmax​] is part of the feasibility predicate. The hypotheses m≥2m\ge2m≥2, μ≥1\mu\ge1μ≥1 (stated in the paper), ε<1\varepsilon<1ε<1 and Pmax⁡>0P_{\max}>0Pmax​>0 (implicit in it) are explicit binders. Eq. (1) is stated with 1≤k≤⌈m/ε⌉1\le k\le\lceil m/\varepsilon\rceil1≤k≤⌈m/ε⌉ where the paper writes k≤m/εk\le m/\varepsilonk≤m/ε.

Not formalized. Theorems 1–3 of the paper (the algorithm is a PTAS, a linear time approximation scheme, and its preemptive variant) and Lemma 2 are statements about running time. They need a cost model, the Grigoriadis–Khachiyan LP solver and Sevastianov's algorithm as black boxes, and without a cost model their approximation half is witnessed by an optimal schedule. They are out of scope and are not stated in any form. In particular, "for every ε\varepsilonε there is a schedule of makespan at most (1+ε)Cmax⁡∗(1+\varepsilon)C^*_{\max}(1+ε)Cmax∗​" is trivially true and is not what this mission asks. The goal cannot be satisfied by a degenerate big-operation schedule: the schedule must be feasible, start on the grid, and finish by C~max⁡∗\widetilde C^*_{\max}Cmax∗​, and the LP keeps the equality in (3), the monotone tuples and the right-hand side Δtk\Delta_{tk}Δtk​.

Contributions welcome: proofs of the milestones, a proof that optimal restricted schedules exist (finitely many machine orders and grid positions), and a general lemma decomposing a chain of fractional interval assignments into monotone tuples, reusable for other interval-LP schemes.

Selected references

  • K. Jansen, R. Solis-Oba, M. Sviridenko, Makespan minimization in job shops: A linear time approximation scheme, SIAM J. Discrete Math. 16(2):288–300, 2003. https://doi.org/10.1137/S0895480199363908
  • D. B. Shmoys, C. Stein, J. Wein, Improved approximation algorithms for shop scheduling problems, SIAM J. Comput. 23(3):617–632, 1994. https://doi.org/10.1137/S0097539791220817
  • S. V. Sevastianov, G. J. Woeginger, Makespan minimization in open shops: A polynomial time approximation scheme, Math. Programming 82:191–198, 1998. https://doi.org/10.1007/BF01585871
  • D. P. Williamson et al., Short shop schedules, Operations Research 45(2):288–294, 1997. https://doi.org/10.1287/opre.45.2.288
  • E. L. Lawler, J. K. Lenstra, A. H. G. Rinnooy Kan, D. B. Shmoys, Sequencing and scheduling: Algorithms and complexity, Handbooks in OR & MS 4:445–522, 1993. https://doi.org/10.1016/S0927-0507(05)80189-6
10 thms1 active userReviewed
OptimizationProbability·Captain: mikedeng1

Lost-Sales Problems with Stochastic Lead Times: Convexity Results for Base-Stock Policies: Expected Discounted Cost Is Convex in the Base-Stock LevelResearch Paper

Why base-stock levels in lost-sales systems

In many inventory systems, demand that cannot be met from stock is lost rather than backordered: a customer who finds the shelf empty buys elsewhere. For such lost-sales systems with positive lead times the optimal replenishment policy is known to be complex and to depend on the whole pipeline of outstanding orders (Karlin and Scarf, 1958; Morton, 1969). In practice, firms nonetheless use base-stock (order-up-to-SSS) policies, which reorder every period whatever was sold. Choosing such a policy comes down to choosing one number, the base-stock level SSS. How easy that choice is depends on how the expected cost behaves as a function of SSS.

Earlier work had established convexity in SSS for backordered demand (Healy, 1992, for (s,S)(s,S)(s,S) policies) and for lost sales with deterministic lead times (Downs, Metters and Semple, 2001). Nahmias (1979) observed in simulation that the cost surface looked convex for lost-sales systems with random lead times, but had no proof. Janakiraman and Roundy (2004) proved convexity for lost-sales systems whose lead times are stochastic but do not cross. On every sample path this holds when holding cost is charged only on the inventory position. In expectation it holds for the full cost under the lead-time model of Kaplan (1970). This mission formalizes the finite-horizon part of that paper (Sections 3–4).

Setting

Periods are indexed n=0,1,…,Nn = 0, 1, \dots, Nn=0,1,…,N. The demand in period nnn is Dn≥0D_n \ge 0Dn​≥0. The order placed in period ttt has a lead time L(t)∈{0,1,2,… }L(t) \in \{0, 1, 2, \dots\}L(t)∈{0,1,2,…} and arrives in period t+L(t)t + L(t)t+L(t). The arrival index is

λn=max⁡{t:t+L(t)≤n},\lambda_n = \max\{t : t + L(t) \le n\},λn​=max{t:t+L(t)≤n},

the index of the latest order that has arrived by period nnn, with λn=0\lambda_n = 0λn​=0 when no order has arrived (in particular λ0=0\lambda_0 = 0λ0​=0). Assumption 1 (orders do not cross) requires n+L(n)n + L(n)n+L(n) to be weakly increasing in nnn.

Under an order-up-to-SSS policy, the system starts with SSS units on hand and nothing on order. Each period it orders what was sold in the previous period. With orders qn(S)q_n(S)qn​(S), the quantities of period nnn are:

  • the order q0(S)=0q_0(S) = 0q0​(S)=0 and qn+1(S)=yn(S)q_{n+1}(S) = y_n(S)qn+1​(S)=yn​(S);
  • the inventory on hand after receipts, xn(S)=S−∑λn<t≤nqt(S)x_n(S) = S - \sum_{\lambda_n < t \le n} q_t(S)xn​(S)=S−∑λn​<t≤n​qt​(S);
  • the sales yn(S)=min⁡(xn(S),Dn)y_n(S) = \min(x_n(S), D_n)yn​(S)=min(xn​(S),Dn​);
  • the end-of-period inventory on hand in(S)=xn(S)−yn(S)i_n(S) = x_n(S) - y_n(S)in​(S)=xn​(S)−yn​(S);
  • the end-of-period inventory position πn(S)=S−yn(S)\pi_n(S) = S - y_n(S)πn​(S)=S−yn​(S);
  • the lost sales ln(S)=Dn−yn(S)l_n(S) = D_n - y_n(S)ln​(S)=Dn​−yn​(S).

For a discount factor 0<α≤10 < \alpha \le 10<α≤1 and cost rates h1,h2,p≥0h_1, h_2, p \ge 0h1​,h2​,p≥0, the discounted cost (3.1) is

CN(S)=∑n=0Nαn(h1 πn(S)+h2 in(S)+p ln(S)).C_N(S) = \sum_{n=0}^{N} \alpha^n \big(h_1\,\pi_n(S) + h_2\,i_n(S) + p\,l_n(S)\big).CN​(S)=n=0∑N​αn(h1​πn​(S)+h2​in​(S)+pln​(S)).

Here h1h_1h1​ is charged on the inventory position (on hand plus in transit), h2h_2h2​ on stock physically on hand, and ppp on each lost unit.

In the Kaplan lead-time model (Assumption 2) the arrival index is random: λ0=0\lambda_0 = 0λ0​=0 and λn=max⁡(λn−1,n−ρn)\lambda_n = \max(\lambda_{n-1}, n - \rho_n)λn​=max(λn−1​,n−ρn​) for n≥1n \ge 1n≥1, where (ρn)(\rho_n)(ρn​) is an i.i.d. sequence of nonnegative integer-valued random variables. The same dynamics, driven by λ(ρ)\lambda(\rho)λ(ρ), give random quantities xn(S,ρ)x_n(S,\rho)xn​(S,ρ), in(S,ρ)i_n(S,\rho)in​(S,ρ), πn(S,ρ)\pi_n(S,\rho)πn​(S,ρ) and ln(S,ρ)l_n(S,\rho)ln​(S,ρ). EρE_\rhoEρ​ is the expectation over ρ\rhoρ with the demands held fixed.

Formalization targets

Goal: Theorem 8

Under Assumption 2, for every realization of demands D0,…,DN≥0D_0, \dots, D_N \ge 0D0​,…,DN​≥0, every 0<α≤10 < \alpha \le 10<α≤1 and all h1,h2,p≥0h_1, h_2, p \ge 0h1​,h2​,p≥0,

S↦Eρ[∑n=0Nαn(h1 πn(S,ρ)+h2 in(S,ρ)+p ln(S,ρ))] is convex on [0,∞).S \mapsto E_\rho\Big[\sum_{n=0}^{N} \alpha^n\big(h_1\,\pi_n(S,\rho) + h_2\,i_n(S,\rho) + p\,l_n(S,\rho)\big)\Big] \text{ is convex on } [0,\infty).S↦Eρ​[n=0∑N​αn(h1​πn​(S,ρ)+h2​in​(S,ρ)+pln​(S,ρ))] is convex on [0,∞).

Milestones

  1. Lemma 3. On a noncrossing sample path, for every m≤N+1m \le N+1m≤N+1 and every nonnegative, weakly decreasing (βn)(\beta_n)(βn​), S↦∑n=0mβn qn(S)S \mapsto \sum_{n=0}^{m} \beta_n\, q_n(S)S↦∑n=0m​βn​qn​(S) is concave.
  2. Corollary 4. On a noncrossing sample path, for every m≤Nm \le Nm≤N and every such (βn)(\beta_n)(βn​), ∑n=0mβn ln(S)\sum_{n=0}^{m}\beta_n\, l_n(S)∑n=0m​βn​ln​(S) and ∑n=0mβn πn(S)\sum_{n=0}^{m}\beta_n\,\pi_n(S)∑n=0m​βn​πn​(S) are convex in SSS.
  3. Theorem 5. On a noncrossing sample path, ∑n=0Nαn(h1 πn(S)+p ln(S))\sum_{n=0}^{N}\alpha^n\big(h_1\,\pi_n(S) + p\,l_n(S)\big)∑n=0N​αn(h1​πn​(S)+pln​(S)) is convex in SSS.
  4. Lemma 6. Under Assumption 2, ∑n=0mβn Eρ[xn(S,ρ)]\sum_{n=0}^{m}\beta_n\, E_\rho[x_n(S,\rho)]∑n=0m​βn​Eρ​[xn​(S,ρ)] is convex in SSS for every m≤Nm \le Nm≤N and every such (βn)(\beta_n)(βn​).
  5. Corollary 7. The same holds for ∑n=0mβn Eρ[in(S,ρ)]\sum_{n=0}^{m}\beta_n\, E_\rho[i_n(S,\rho)]∑n=0m​βn​Eρ​[in​(S,ρ)].

Significance

Theorem 5 shows that, when the only holding cost is charged on the inventory position, the discounted cost of every noncrossing sample path is convex in SSS. It therefore stays convex under any distribution of noncrossing lead times and any demand process independent of them. Theorem 8 extends convexity to storage costs on stock on hand, which matter whenever payment is due on arrival. A sample-path statement cannot do this. On a sample path the extension fails: the paper's Example 1 exhibits a concave kink at S=1S = 1S=1 when h2>0h_2 > 0h2​>0. Both results make the choice of the best base-stock level a one-dimensional convex minimization, so bisection or simulation-based search methods are guaranteed to converge to a global optimum. The paper's Example 2 shows that noncrossing cannot be dropped.

The results are proved in the paper. As far as is known, none has a machine-checked proof. A formalization adds a precise, reusable model of periodic-review lost-sales dynamics with stochastic lead times, and a checked account of exactly which hypotheses (noncrossing, h2=0h_2 = 0h2​=0 on sample paths, the Kaplan structure in expectation) each convexity claim needs.

Difficulty

Individual per-period quantities are not convex: qn(S)q_n(S)qn​(S), xn(S)x_n(S)xn​(S), in(S)i_n(S)in​(S) and πn(S)\pi_n(S)πn​(S) are piecewise linear with slopes in {0,1}\{0,1\}{0,1} and are neither convex nor concave in SSS. The obvious approach, proving each term of the cost convex and summing, therefore fails. Convexity appears only in the weighted sums, and only for nonnegative, weakly decreasing weights. The recursion defining xnx_nxn​ refers back to earlier orders through a window (λn,n](\lambda_n, n](λn​,n] that moves with the lead-time path, so an induction on mmm has to carry a family of weight sequences rather than one fixed sum.

In expectation, the storage-cost term ∑nβn in\sum_n \beta_n\, i_n∑n​βn​in​ is not convex path by path. Convexity of its expectation depends on the distributional structure of the Kaplan model, namely that the lead time of the order placed in period nnn is independent of the state of the system at that time. Stating this correctly requires a genuine probability space, not a sample-path argument.

Formalization scope

  • Model. One definition of the dynamics, parametrised by an arrival-index path λ:N→N\lambda : \mathbb{N} \to \mathbb{N}λ:N→N, a demand path D:N→RD : \mathbb{N} \to \mathbb{R}D:N→R and a real SSS (orderQty, onHand, sales, endOnHand, invPosition, lostSales). The sample-path results use arrivalIndex L (via Nat.findGreatest). The Kaplan results use kaplanIndex ρ, the recursion of Assumption 2 with λ0=0\lambda_0 = 0λ0​=0. The discounted cost (3.1) is discountedCost.
  • Hypotheses. Assumption 1 is MonotoneOn (fun n => n + L n) (Set.Iic N). Demands satisfy Dn≥0D_n \ge 0Dn​≥0 for n≤Nn \le Nn≤N. Weight sequences are β : ℕ → ℝ with 0 ≤ β n and Antitone β. Costs satisfy 0<α≤10 < \alpha \le 10<α≤1 and h1,h2,p≥0h_1, h_2, p \ge 0h1​,h2​,p≥0, the paper's Section 3 standing assumptions. "Increasing" and "decreasing" are weak, as the paper states.
  • Domain. Every convexity or concavity claim is ConvexOn ℝ (Set.Ici 0) / ConcaveOn ℝ (Set.Ici 0): the base-stock level is an initial stock, S≥0S \ge 0S≥0.
  • Expectation. (Ω,P)(\Omega, P)(Ω,P) is a probability space. ρ:N→Ω→N\rho : \mathbb{N} \to \Omega \to \mathbb{N}ρ:N→Ω→N has measurable coordinates, iIndepFun ρ P, and IdentDistrib (ρ n) (ρ 0) P P for all nnn. Eρ[f]E_\rho[f]Eρ​[f] is the Bochner integral ∫f(λ(ρ(ω))) dP(ω)\int f(\lambda(\rho(\omega)))\,dP(\omega)∫f(λ(ρ(ω)))dP(ω). For S≥0S \ge 0S≥0 the integrands are bounded and depend on finitely many coordinates, so they are integrable and the integral is the paper's expectation. Measurability of ρ\rhoρ is the field's standing convention.
  • Ruled out. The Kaplan statements are about the Kaplan index of an i.i.d. sequence, not about an arbitrary nondecreasing arrival process. The sample-path statements carry the noncrossing hypothesis, without which they are false. The convexity domain is the half-line, not a finite or degenerate set.
  • Needed infrastructure. Convexity and concavity of finite sums and minima (Mathlib's ConvexOn/ConcaveOn), integrals of bounded functions of finitely many independent discrete variables, and the independence and identical distribution facts of the Kaplan model. The dynamics and the Kaplan index are reusable for any further analysis of base-stock lost-sales systems, including the paper's infinite-horizon results. Proofs of the milestones in any order are welcome, as are auxiliary lemmas identifying the Kaplan index as the arrival index of a noncrossing lead-time path.

Selected references

  • G. Janakiraman and R. O. Roundy, Lost-Sales Problems with Stochastic Lead Times: Convexity Results for Base-Stock Policies, Operations Research 52(5):795–803, 2004. https://doi.org/10.1287/opre.1040.0130
  • R. S. Kaplan, A Dynamic Inventory Model with Stochastic Lead Times, Management Science 16(7):491–507, 1970. https://doi.org/10.1287/mnsc.16.7.491
  • S. Karlin and H. Scarf, Inventory Models of the Arrow–Harris–Marschak Type with Time Lag, in Studies in the Mathematical Theory of Inventory and Production, Stanford University Press, 1958.
  • T. E. Morton, Bounds on the Solution of the Lagged Optimal Inventory Equation with No Demand Backlogging and Proportional Costs, SIAM Review 11(4):572–596, 1969. https://doi.org/10.1137/1011090
  • S. Nahmias, Simple Approximations for a Variety of Dynamic Leadtime Lost-Sales Inventory Models, Operations Research 27(5):904–924, 1979. https://doi.org/10.1287/opre.27.5.904
  • B. Downs, R. Metters and J. Semple, Managing Inventory with Multiple Products, Lags in Delivery, Resource Constraints, and Lost Sales: A Mathematical Programming Approach, Management Science 47(3):464–479, 2001. https://doi.org/10.1287/mnsc.47.3.464.9775
  • R. Ehrhardt, (s, S) Policies for a Dynamic Inventory Model with Stochastic Lead Times, Operations Research 32(1):121–132, 1984. https://doi.org/10.1287/opre.32.1.121
10 thms1 active userReviewed
ProbabilityStatistics·Captain: mikedeng1

Adaptive Data-Driven Inventory Control with Censored Demand Based on Kaplan-Meier Estimator: Almost-Sure Convergence of KM-Myopic Orders to the Newsvendor Optimal SetResearch Paper

Motivation

A retailer who restocks a perishable product every period faces the newsvendor problem: order too much and each leftover unit costs h>0h>0h>0, order too little and each unmet unit of demand costs b>0b>0b>0. If the demand distribution were known, the optimal order would be a quantile of it. In practice the distribution is unknown and has to be learned from sales data, and sales data are censored: when the shelf empties, the retailer records that demand was at least the stock level, not what demand actually was. What the retailer can observe therefore depends on what it ordered, which ties estimation and ordering together.

Huh, Levi, Rusmevichientong and Orlin (Oper. Res. 59(4), 2011) proposed a nonparametric answer. Each period, estimate the demand distribution from past censored sales with the Kaplan–Meier estimator of survival analysis (Kaplan and Meier, 1958) and order the estimated optimal quantile. They proved that the orders converge almost surely to the optimal set. Earlier data-driven newsvendor results either assumed uncensored demand (Levi, Roundy and Shmoys, 2007) or used stochastic approximation (Burnetas and Smith, 2000) and piecewise-linear cost approximation (Godfrey and Powell, 2001). A by-product of the analysis is a consistency theorem for the Kaplan–Meier estimator when the censoring levels depend on the past observations. Classical consistency results assume censoring independent of the data.

Setting

Demands D1,D2,…D_1,D_2,\dotsD1​,D2​,… are independent copies of a nonnegative integer-valued random variable DDD on a probability space (Ω,F,μ)(\Omega,\mathcal F,\mu)(Ω,F,μ). Write Fˉ(d)=P[D>d]\bar F(d)=P[D>d]Fˉ(d)=P[D>d]. With h,b>0h,b>0h,b>0, the critical ratio is r∗=b/(b+h)r^*=b/(b+h)r∗=b/(b+h). For r∈(0,1)r\in(0,1)r∈(0,1) the rrr-quantile and the upper rrr-quantile are

ψ(r)=min⁡{d∈N:Fˉ(d)≤1−r},ψ~(r)=min⁡{d∈N:Fˉ(d)<1−r},\psi(r)=\min\{d\in\mathbb N:\bar F(d)\le 1-r\},\qquad \tilde\psi(r)=\min\{d\in\mathbb N:\bar F(d)<1-r\},ψ(r)=min{d∈N:Fˉ(d)≤1−r},ψ~​(r)=min{d∈N:Fˉ(d)<1−r},

and ψ∗=ψ(r∗)\psi^*=\psi(r^*)ψ∗=ψ(r∗) is the newsvendor quantile, ψ~∗=ψ~(r∗)\tilde\psi^*=\tilde\psi(r^*)ψ~​∗=ψ~​(r∗). Every integer order in [ψ∗,ψ~∗][\psi^*,\tilde\psi^*][ψ∗,ψ~​∗] minimises the expected one-period cost. The two quantiles coincide exactly when Fˉ(ψ∗)<1−r∗\bar F(\psi^*)<1-r^*Fˉ(ψ∗)<1−r∗.

In period ttt the retailer stocks YtY_tYt​, observes the sales Zt=min⁡{Dt,Yt}Z_t=\min\{D_t,Y_t\}Zt​=min{Dt​,Yt​} and the indicator δt=1[Dt≤Yt]\delta_t=\mathbf 1[D_t\le Y_t]δt​=1[Dt​≤Yt​] (δt=1\delta_t=1δt​=1: uncensored), and YtY_tYt​ may depend only on earlier observations. From nnn observations the Kaplan–Meier estimator of Fˉ(d)\bar F(d)Fˉ(d) is

Fˉn(d)=∏k=0d(1−#{i≤n:Zi=k, δi=1}#{i≤n:Zi≥k}),\bar F_n(d)=\prod_{k=0}^{d}\left(1-\frac{\#\{i\le n:Z_i=k,\ \delta_i=1\}}{\#\{i\le n:Z_i\ge k\}}\right),Fˉn​(d)=k=0∏d​(1−#{i≤n:Zi​≥k}#{i≤n:Zi​=k, δi​=1}​),

with a factor read as 111 when its denominator is 000. The source writes it as a product over the sorted observations, with uncensored observations placed before censored ones at equal values. The two forms agree.

The KM-myopic policy with initial order y1y_1y1​ orders Y1=y1Y_1=y_1Y1​=y1​. In each later period TTT it orders

YTKM=min⁡{d∈N:Fˉ(d)≤1−r∗},Y^{KM}_T=\min\{d\in\mathbb N:\bar F(d)\le 1-r^*\},YTKM​=min{d∈N:Fˉ(d)≤1−r∗},

where Fˉ\bar FFˉ is the estimator built from the T−1T-1T−1 past observations. When that set is empty (the largest past observation is censored and the estimate there still exceeds 1−r∗1-r^*1−r∗), the policy orders twice the largest past observation. The convergence radius is R=max⁡{0≤d≤ψ~∗:P[YtKM≥d i.o.]=1}\mathcal R=\max\{0\le d\le\tilde\psi^*: P[Y^{KM}_t\ge d\text{ i.o.}]=1\}R=max{0≤d≤ψ~​∗:P[YtKM​≥d i.o.]=1}.

In Lean, all of this sits in the namespace KMNewsvendor: survival, critRatio, quantile, upperQuantile, kmSurv, kmOrder (with kmSales, kmUncensored) and radius.

Formalization targets

Goal: Theorem 1

If P[D=0]=0P[D=0]=0P[D=0]=0 and y1≥1y_1\ge1y1​≥1, then for almost every demand path there is TωT_\omegaTω​ with

YTKM∈{ψ∗,ψ~∗}for all T≥Tω.Y^{KM}_T\in\{\psi^*,\tilde\psi^*\}\qquad\text{for all }T\ge T_\omega .YTKM​∈{ψ∗,ψ~​∗}for all T≥Tω​.

This is the source's own "that is" reading of ψ∗≤lim inf⁡TYTKM≤lim sup⁡TYTKM≤ψ~∗\psi^*\le\liminf_T Y^{KM}_T\le\limsup_T Y^{KM}_T\le\tilde\psi^*ψ∗≤liminfT​YTKM​≤limsupT​YTKM​≤ψ~​∗ a.s., and it implies that display.

Milestones, in the order the source's argument uses them

  1. Lemma 1. A strong law of large numbers along a subsequence selected predictably: if ξt∈{0,1}\xi_t\in\{0,1\}ξt​∈{0,1} is a function of D1,…,Dt−1D_1,\dots,D_{t-1}D1​,…,Dt−1​, infinitely many ξt=1\xi_t=1ξt​=1 a.s., and f(D)f(D)f(D) is integrable, then ∑t≤Tξtf(Dt)/∑t≤Tξt→E[f(D)]\sum_{t\le T}\xi_tf(D_t)/\sum_{t\le T}\xi_t\to E[f(D)]∑t≤T​ξt​f(Dt​)/∑t≤T​ξt​→E[f(D)] a.s.
  2. Theorem 2. Under censoring levels YtY_tYt​ measurable in σ(D1,…,Dt−1)\sigma(D_1,\dots,D_{t-1})σ(D1​,…,Dt−1​), FˉT(d)→Fˉ(d)\bar F_T(d)\to\bar F(d)FˉT​(d)→Fˉ(d) a.s. for every ddd with P[Yt≥d i.o.]=1P[Y_t\ge d\text{ i.o.}]=1P[Yt​≥d i.o.]=1.
  3. Lemma 2 (i). Under the KM-myopic policy, FˉT(d)→Fˉ(d)\bar F_T(d)\to\bar F(d)FˉT​(d)→Fˉ(d) a.s. for every integer d∈[0,R]d\in[0,\mathcal R]d∈[0,R].
  4. Lemma 2 (ii). R≥ψ∗\mathcal R\ge\psi^*R≥ψ∗.
  5. Corollary 1. If Fˉ(ψ∗)<1−r∗\bar F(\psi^*)<1-r^*Fˉ(ψ∗)<1−r∗, then YTKM→ψ∗Y^{KM}_T\to\psi^*YTKM​→ψ∗ a.s.
  6. Lemma 3. If Fˉ(ψ∗)=1−r∗\bar F(\psi^*)=1-r^*Fˉ(ψ∗)=1−r∗, then P[YtKM≥ψ~∗ i.o.]=1P[Y^{KM}_t\ge\tilde\psi^*\text{ i.o.}]=1P[YtKM​≥ψ~​∗ i.o.]=1.

Items 4–6 and the goal carry the added hypotheses P[D=0]=0P[D=0]=0P[D=0]=0 and y1≥1y_1\ge1y1​≥1 (see Formalization scope).

Significance

The goal says that a policy which sees only censored sales, and assumes no parametric form for demand, eventually orders an optimal quantity on almost every sample path. Consequently its long-run average cost equals the optimal expected cost of a newsvendor who knows the distribution. Theorem 2 stands on its own as a statement about survival analysis: the Kaplan–Meier estimator stays consistent when censoring is adaptive, i.e. when each censoring level is chosen after seeing earlier outcomes, as in sequential experiments and learning algorithms. Lemma 1, a strong law along predictably chosen indices, is the probabilistic tool behind both.

The results are proved in the source. None is known to be formalized. Mathlib has the strong law for i.i.d. sequences (ProbabilityTheory.strong_law_ae) but nothing on Kaplan–Meier estimation, censored data or the newsvendor model. A complete development would give the first machine-checked analysis of an adaptive inventory policy and reusable Kaplan–Meier consistency results.

Difficulty

The observations are not i.i.d. The censoring level of each period is chosen from earlier data, so which demands are seen exactly is random and depends on the past. Classical consistency proofs for the Kaplan–Meier estimator assume independent censoring and do not apply. Mathlib's strong law applies to a fixed sequence, not to a subsequence whose indices are stopping times of the demand process. Showing that the selected demands are again i.i.d. with law DDD is the heart of Lemma 1. The step from estimator consistency to order convergence then needs a self-reinforcing argument, since estimates are consistent only up to levels the policy keeps reaching. In the case of a non-unique optimum, the source's proof of Lemma 3 uses the law of the iterated logarithm, which Mathlib does not have.

Formalization scope

Demands are D : ℕ → Ω → ℕ with Measurable, iIndepFun and IdentDistrib (D t) (D 0), under a probability measure (Lemma 1 takes real-valued demands, as in the source). Time is 000-based: Lean period nnn is the source's period n+1n+1n+1. The order of Lean period nnn reads only the demands of periods 0,…,n−10,\dots,n-10,…,n−1. The policy is a deterministic function kmOrder r y₁ dem n of the demand path. The initial order y1y_1y1​, which the source leaves unspecified, is an explicit parameter. "Almost surely" is ∀ᵐ ω ∂μ, and "P[At i.o.]=1P[A_t\text{ i.o.}]=1P[At​ i.o.]=1" is ∀ᵐ ω ∂μ, ∃ᶠ t in atTop, …. Predictability ("Ft−1\mathcal F_{t-1}Ft−1​-measurable") is the Doob–Dynkin form: the variable equals a measurable function of the first ttt coordinates. "E[f(D)]<∞E[f(D)]<\inftyE[f(D)]<∞" becomes integrability of f(D)f(D)f(D). Theorem 2 is stated for every integer ddd satisfying P[Yt≥d i.o.]=1P[Y_t\ge d\text{ i.o.}]=1P[Yt​≥d i.o.]=1, because the source's maximum R\mathcal RR need not exist there.

Added hypotheses. As printed, Theorem 1, Lemma 2 (ii), Corollary 1 and Lemma 3 are false. If D1=0D_1=0D1​=0 (positive probability when P[D=0]>0P[D=0]>0P[D=0]>0), or if y1=0y_1=0y1​=0, then from the second period on every observation is 000 and the policy orders 000 forever, although ψ∗≥1\psi^*\ge1ψ∗≥1 whenever P[D=0]<r∗P[D=0]<r^*P[D=0]<r∗. For example, with DDD uniform on {0,…,100}\{0,\dots,100\}{0,…,100} and b=3hb=3hb=3h (the source's own §6.2 instance), ψ∗=75\psi^*=75ψ∗=75. These four statements therefore assume P[D=0]=0P[D=0]=0P[D=0]=0 and y1≥1y_1\ge1y1​≥1, and nothing else is added. Lemma 1, Theorem 2 and Lemma 2 (i) are stated as printed, for every y1y_1y1​. The policy is not modified: the variants of the source's §4 (a fictitious observation at a known upper bound, and similar) are different policies.

Trivializing readings are excluded. The quantiles are the least integers with the defining property, and the sets are nonempty because r∗∈(0,1)r^*\in(0,1)r∗∈(0,1). The Kaplan–Meier estimator follows the source's tie-break, so it does not ignore censoring. Almost-sure and infinitely-often statements are not weakened to convergence in probability or to per-period probabilities.

Needed infrastructure: stopping-time subsequences of i.i.d. sequences, product-limit algebra for the grouped estimator, and a law of the iterated logarithm (or another route to Lemma 3). The first two are reusable well beyond this mission, and contributions to any of them are welcome.

Selected references

  • W. T. Huh, R. Levi, P. Rusmevichientong, J. B. Orlin, Adaptive Data-Driven Inventory Control with Censored Demand Based on Kaplan-Meier Estimator, Operations Research 59(4):929–941, 2011. https://doi.org/10.1287/opre.1100.0906
  • E. L. Kaplan, P. Meier, Nonparametric Estimation from Incomplete Observations, Journal of the American Statistical Association 53(282):457–481, 1958. https://doi.org/10.1080/01621459.1958.10501452
  • R. Levi, R. O. Roundy, D. B. Shmoys, Provably Near-Optimal Sampling-Based Policies for Stochastic Inventory Control Models, Mathematics of Operations Research 32(4):821–838, 2007. https://doi.org/10.1287/moor.1070.0272
  • A. N. Burnetas, C. E. Smith, Adaptive Ordering and Pricing for Perishable Products, Operations Research 48(3):436–443, 2000. https://doi.org/10.1287/opre.48.3.436.12437
  • G. A. Godfrey, W. B. Powell, An Adaptive, Distribution-Free Algorithm for the Newsvendor Problem with Censored Demands, with Applications to Inventory and Distribution, Management Science 47(8):1101–1112, 2001. https://doi.org/10.1287/mnsc.47.8.1101.10231
11 thms1 active userReviewed
Algorithmic Game TheoryDynamic Programming·Captain: mikedeng1

Strategy Iteration Is Strongly Polynomial for 2-Player Turn-Based Stochastic Games with a Constant Discount Factor: Explicit Iteration Bound for Strategy IterationResearch Paper

Motivation

Two-player turn-based stochastic games (2TBSGs) model a zero-sum contest on a finite graph with random transitions: in each state one player chooses an action, pays its cost, and a lottery chooses the next state. The minimizer and the maximizer both evaluate the total discounted cost. The model contains Markov decision processes (one player), simple stochastic games, mean-payoff and parity games (as limits or reductions), which makes it central to algorithmic game theory, verification and operations research. Shapley introduced discounted stochastic games in 1953 (PNAS).

The standard algorithm for solving them is strategy iteration, the two-player generalization of Howard's policy iteration (1960): improve player 1's strategy greedily against the best response of player 2, and repeat. Whether any algorithm solves 2TBSGs in strongly polynomial time was open for decades.

Timeline. Howard (1960) introduced policy iteration for MDPs. Rao, Chandrasekaran and Nair (1973) described strategy iteration for discounted stochastic games. Littman (1996) gave a polynomial but not strongly polynomial bound via value iteration. Ye (2011, Math. of OR) proved that policy iteration for discounted MDPs with a fixed discount factor is strongly polynomial, using the linear programming formulation of MDPs. Hansen, Miltersen and Zwick (2010, arXiv:1008.0530; J. ACM 2013) extended the bound to strategy iteration for 2TBSGs, where no LP formulation is available, and improved Ye's bound. Friedmann (2009) showed that without discounting, or with the discount factor as part of the input, strategy iteration can take exponentially many iterations.

Setting

A game GGG has a finite set SSS of nnn states, split into the states S1S_1S1​ of player 1 (the minimizer) and S2=S∖S1S_2 = S \setminus S_1S2​=S∖S1​ of player 2 (the maximizer), a finite set AAA of mmm actions of both players, and a discount factor 0<γ<10 < \gamma < 10<γ<1. Each action aaa has a source state s(a)s(a)s(a), a probability distribution Pa,⋅P_{a,\cdot}Pa,⋅​ over next states, and a cost c(a)∈Rc(a) \in \mathbb{R}c(a)∈R. Every state iii has a nonempty set Ai={a:s(a)=i}A_i = \{a : s(a) = i\}Ai​={a:s(a)=i} of actions.

A positional strategy of player jjj picks one action πj(i)∈Ai\pi_j(i) \in A_iπj​(i)∈Ai​ for every state i∈Sji \in S_ji∈Sj​; a profile is a pair π=(π1,π2)\pi = (\pi_1, \pi_2)π=(π1​,π2​), viewed as a map π:S→A\pi : S \to Aπ:S→A. With (Pπ)i,j=Pπ(i),j(P_\pi)_{i,j} = P_{\pi(i),j}(Pπ​)i,j​=Pπ(i),j​ and (cπ)i=c(π(i))(c_\pi)_i = c(\pi(i))(cπ​)i​=c(π(i)), the value vector

vπ=∑k≥0γkPπkcπ∈RSv_\pi = \sum_{k \ge 0} \gamma^k P_\pi^k c_\pi \in \mathbb{R}^Svπ​=k≥0∑​γkPπk​cπ​∈RS

is the expected total discounted cost from each initial state. Vectors are compared componentwise. A profile is optimal when each strategy is an optimal counter-strategy against the other, from every initial state simultaneously. All optimal profiles share one value vector v∗v^*v∗.

The Strategy-Iteration algorithm starts from a strategy σ0\sigma^0σ0 of player 1. In round kkk it takes an optimal counter-strategy τ2(σk)\tau_2(\sigma^k)τ2​(σk) of player 2, evaluates vk=vσk,τ2(σk)v^k = v_{\sigma^k,\tau_2(\sigma^k)}vk=vσk,τ2​(σk)​, and lets σk+1\sigma^{k+1}σk+1 choose in every state i∈S1i \in S_1i∈S1​ an action minimizing c(a)+γ∑jPa,jvjkc(a) + \gamma \sum_j P_{a,j} v^k_jc(a)+γ∑j​Pa,j​vjk​ over AiA_iAi​. Ties are broken in favour of σk\sigma^kσk. It stops at the first N≥1N \ge 1N≥1 with σN=σN−1\sigma^N = \sigma^{N-1}σN=σN−1.

Formalization targets

Goal: Theorem 6.5

For every game, every map τ2\tau_2τ2​ returning optimal counter-strategies, and every run from any initial strategy, the termination index NNN exists, (σN,τ2(σN))(\sigma^N, \tau_2(\sigma^N))(σN,τ2​(σN)) is optimal, and

N≤(m+1)(1+log⁡1/γn21−γ).N \le (m+1)\Big(1 + \log_{1/\gamma} \frac{n^2}{1-\gamma}\Big).N≤(m+1)(1+log1/γ​1−γn2​).

For a fixed γ\gammaγ this is O(m1−γlog⁡n1−γ)O\big(\frac{m}{1-\gamma}\log\frac{n}{1-\gamma}\big)O(1−γm​log1−γn​) iterations. The explicit constant is the paper's statement, and the goal states it rather than the O(⋅)O(\cdot)O(⋅) form.

Milestones

The milestone list follows the paper's lemma chain: Shapley's existence theorem (Thm 2.8); the linear-algebra form of values (Lemma 3.2); the modified costs cπ=c−(J−γP)vπc^\pi = c - (J - \gamma P)v_\picπ=c−(J−γP)vπ​ and their properties (Lemmas 3.6, 3.7); the flux vectors (Lemmas 3.10, 3.12); the contraction of the value iteration operator and geometric convergence (Lemmas 4.2, 4.8); monotonicity, correctness and the rate of strategy iteration (Lemmas 5.1, 5.2, 5.3, 5.5); and the combinatorial core (Lemmas 6.2, 6.3, 6.4).

Significance

The result. The theorem gives the first strongly polynomial algorithm for 2TBSGs with a fixed discount factor. The iteration count depends only on nnn, mmm and γ\gammaγ, not on the bit length of the costs or probabilities. With S2=∅S_2 = \emptysetS2​=∅ the map τ2\tau_2τ2​ is trivial and the theorem is the MDP bound for Howard's policy iteration, improving Ye's bound. Together with Friedmann's lower bounds, it settles the complexity of strategy iteration: strongly polynomial for a fixed discount factor, exponential otherwise.

Formalizing it. The result is proved on paper; none of it is formalized in Lean. A formal development produces a reusable matrix-based theory of finite discounted games: value vectors through Neumann series, modified costs as potential transformations, the min/max Bellman operator as a sup-norm contraction, and the optimality certificate. These are the tools of discounted MDP theory, stated here for two players.

Difficulty

The obvious argument for termination is that the values strictly decrease, so no strategy repeats. That bounds the number of iterations only by the number of strategies, which is exponential in nnn. Value-iteration convergence gives a geometric rate for ∥vk−v∗∥∞\|v^k - v^*\|_\infty∥vk−v∗∥∞​ but no bound independent of the numerical data. What is needed is a combinatorial event: within every block of about log⁡1/γ(n2/(1−γ))\log_{1/\gamma}(n^2/(1-\gamma))log1/γ​(n2/(1−γ)) iterations, some action leaves the strategy for good. Ye's version of this step used LP duality, which has no counterpart for two players, so the game-theoretic substitutes (flux vectors, modified costs) have to carry it. In Lean, a further difficulty is the bookkeeping of an algorithm with an oracle, a tie-breaking rule and a termination index.

Formalization scope

  • Game (TBSGStrategyIteration.Game): Fintype states and actions, S1 : Finset S (so S2S_2S2​ is its complement), src, stochastic rows P, real costs c, and 0 < γ < 1; every AiA_iAi​ is nonempty. The state set may be empty.
  • Strategies: Strat1 G, Strat2 G (positional, on the owner's states), Profile G = Strat1 G × Strat2 G.
  • Values: value G π is the tsum ∑kγkPπkcπ\sum_k \gamma^k P_\pi^k c_\pi∑k​γkPπk​cπ​ (always summable here). valueWith allows other cost vectors, for the modified values and the flux vectors (Definition 3.8, taken literally).
  • Optimality: componentwise order on S → ℝ, against every alternative strategy.
  • Norms: ‖·‖ on S → ℝ is Mathlib's sup norm. ∥⋅∥1\|\cdot\|_1∥⋅∥1​ is written out as ∑i∣xi∣\sum_i |x_i|∑i​∣xi​∣. log⁡1/γ\log_{1/\gamma}log1/γ​ is Real.logb (1/γ).
  • The algorithm (IsRun): an infinite sequence σ:N→Π1\sigma : \mathbb{N} \to \Pi_1σ:N→Π1​ with (a) σk+1\sigma^{k+1}σk+1 greedy for vkv^kvk, and (b) σk+1=σk\sigma^{k+1} = \sigma^kσk+1=σk whenever σk\sigma^kσk is itself greedy. Clause (b) is Figure 1's "if possible σk+1←σk\sigma^{k+1} \leftarrow \sigma^kσk+1←σk", and the paper's per-state tie-breaking rule implies it. Without it the algorithm may cycle. The oracle τ2\tau_2τ2​ is an arbitrary map with the hypothesis that each τ2(σ)\tau_2(\sigma)τ2​(σ) is an optimal counter-strategy against σ\sigmaσ. The number of iterations is the first N≥1N \ge 1N≥1 with σN=σN−1\sigma^N = \sigma^{N-1}σN=σN−1 (IsTerminationIndex).
  • Non-vacuity. The oracle hypothesis is satisfiable for every game, by Theorem 2.8, which is a milestone for that reason. Greedy steps with tie-breaking exist from every initial strategy, so the goal cannot hold vacuously through an unsatisfiable oracle or run.
  • Lemma 6.4 correction. As printed, Lemma 6.4 fails for k=N−1k = N-1k=N−1 whenever log⁡1/γ(n2/(1−γ))<1\log_{1/\gamma}(n^2/(1-\gamma)) < 1log1/γ​(n2/(1−γ))<1, because σN=σN−1\sigma^N = \sigma^{N-1}σN=σN−1. The formal statement adds the hypothesis k+1<Nk + 1 < Nk+1<N, which is what the proof uses and all that Theorem 6.5 needs.
  • Value-iteration lemmas (4.8, 5.5) are stated for every kkk of the infinite iterate sequence; the paper's finite sequences are prefixes of it.

Contributions welcome: the Neumann-series identity for I−γPπI - \gamma P_\piI−γPπ​ (Lemma 3.1 as substrate), the optimality condition, and the counting argument of Theorem 6.5. The definitions are reusable for any finite discounted MDP or turn-based game mission.

Selected references

  • T. D. Hansen, P. B. Miltersen, U. Zwick, Strategy iteration is strongly polynomial for 2-player turn-based stochastic games with a constant discount factor, arXiv:1008.0530v1, 2010; J. ACM 60(1), 2013. https://arxiv.org/abs/1008.0530
  • Y. Ye, The simplex and policy-iteration methods are strongly polynomial for the Markov decision problem with a fixed discount rate, Mathematics of Operations Research 36(4), 2011. https://doi.org/10.1287/moor.1110.0516
  • L. S. Shapley, Stochastic games, PNAS 39(10), 1953. https://doi.org/10.1073/pnas.39.10.1095
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • O. Friedmann, An exponential lower bound for the parity game strategy improvement algorithm as we know it, LICS 2009. https://doi.org/10.1109/LICS.2009.27
24 thms1 active userReviewed
Convex OptimizationOptimization·Captain: mikedeng1

Fast Projection onto the Simplex and the ℓ1 Ball: Correctness of Condat's AlgorithmResearch Paper

Why project onto the simplex

The Euclidean projection of a vector onto the simplex — the nonnegative vectors whose entries sum to a fixed radius — is a subroutine of first-order methods whose iterates must stay probability vectors or nonnegative budgets: portfolio optimization, multispectral unmixing, image segmentation, constrained least squares and many machine-learning models. Through a classical reduction the same routine projects onto the ℓ1\ell_1ℓ1​ ball, the feasible set of ℓ1\ell_1ℓ1​-constrained sparse regression. Because the projection is called once per iteration, often on vectors of millions of entries, the exact algorithms that compute it have been studied for half a century.

A short timeline. Held, Wolfe and Crowder (1974) gave the sorting-based method: sort the entries, find the number of active entries, compute a threshold. Michelot (1986) gave a variable-fixing method that repeatedly averages the surviving entries and discards those below the average, without sorting. Kiwiel (2008) and Duchi, Shalev-Shwartz, Singer and Chandra (2008) popularized partition-based methods with expected linear time. Condat (Math. Program. 2016) proposed a Gauss–Seidel-like variant of Michelot's method that updates the threshold after every entry read instead of after every full pass; it is exact, needs no sorting and is empirically the fastest of the family. Its correctness is argued in one paragraph of the paper; the argument has not been machine-checked.

Setting

Fix an integer N≥1N \ge 1N≥1, a vector y=(y1,…,yN)∈RNy = (y_1, \dots, y_N) \in \mathbb{R}^Ny=(y1​,…,yN​)∈RN and a real a>0a > 0a>0. The simplex of radius aaa is

Δ:={x∈RN:∑n=1Nxn=a, xn≥0 for all n},\Delta := \Big\{x \in \mathbb{R}^N : \sum_{n=1}^N x_n = a,\ x_n \ge 0 \text{ for all } n\Big\},Δ:={x∈RN:n=1∑N​xn​=a, xn​≥0 for all n},

and the ℓ1\ell_1ℓ1​ ball of radius aaa is B:={x∈RN:∑n∣xn∣≤a}B := \{x \in \mathbb{R}^N : \sum_n |x_n| \le a\}B:={x∈RN:∑n​∣xn​∣≤a}. The Euclidean projections are PΔ(y):=argmin⁡x∈Δ∥x−y∥P_\Delta(y) := \operatorname{argmin}_{x \in \Delta} \|x - y\|PΔ​(y):=argminx∈Δ​∥x−y∥ and PB(y):=argmin⁡x∈B∥x−y∥P_B(y) := \operatorname{argmin}_{x \in B} \|x - y\|PB​(y):=argminx∈B​∥x−y∥, where ∥⋅∥\|\cdot\|∥⋅∥ is the Euclidean norm. In Lean, "x=PΔ(y)x = P_\Delta(y)x=PΔ​(y)" is the predicate IsSimplexProjection a y x: x∈Δx \in \Deltax∈Δ and ∑n(xn−yn)2≤∑n(zn−yn)2\sum_n (x_n - y_n)^2 \le \sum_n (z_n - y_n)^2∑n​(xn​−yn​)2≤∑n​(zn​−yn​)2 for every z∈Δz \in \Deltaz∈Δ; IsL1Projection is the same for BBB.

The projection onto Δ\DeltaΔ has the thresholding form xn=max⁡{yn−τ,0}x_n = \max\{y_n - \tau, 0\}xn​=max{yn​−τ,0} for a unique real τ\tauτ, so computing PΔ(y)P_\Delta(y)PΔ​(y) amounts to computing τ\tauτ.

Condat's Proposed Algorithm (Fig. 2 of the paper) keeps a list vvv of candidate entries, an auxiliary list v~\tilde vv~ and a running value ρ\rhoρ:

  1. v:=(y1)v := (y_1)v:=(y1​), v~:=()\tilde v := ()v~:=(), ρ:=y1−a\rho := y_1 - aρ:=y1​−a.
  2. For n=2,…,Nn = 2, \dots, Nn=2,…,N: if yn>ρy_n > \rhoyn​>ρ, set ρ:=ρ+(yn−ρ)/(∣v∣+1)\rho := \rho + (y_n - \rho)/(|v| + 1)ρ:=ρ+(yn​−ρ)/(∣v∣+1); then if ρ>yn−a\rho > y_n - aρ>yn​−a append yny_nyn​ to vvv, else append vvv to v~\tilde vv~ and reset v:=(yn)v := (y_n)v:=(yn​), ρ:=yn−a\rho := y_n - aρ:=yn​−a.
  3. For every yyy in v~\tilde vv~: if y>ρy > \rhoy>ρ, append yyy to vvv and set ρ:=ρ+(y−ρ)/∣v∣\rho := \rho + (y - \rho)/|v|ρ:=ρ+(y−ρ)/∣v∣.
  4. Repeat while ∣v∣|v|∣v∣ changes: for every yyy in vvv, if y≤ρy \le \rhoy≤ρ, remove yyy and set ρ:=ρ+(ρ−y)/∣v∣\rho := \rho + (\rho - y)/|v|ρ:=ρ+(ρ−y)/∣v∣.
  5. τ:=ρ\tau := \rhoτ:=ρ, K:=∣v∣K := |v|K:=∣v∣.
  6. xn:=max⁡{yn−τ,0}x_n := \max\{y_n - \tau, 0\}xn​:=max{yn​−τ,0} for all nnn.

In Lean this is the total function condatAlgorithm a (List.ofFn y), returning (τ,K)(\tau, K)(τ,K).

Formalization targets

Goal: the algorithm is correct

For every N≥1N \ge 1N≥1, a>0a > 0a>0, y∈RNy \in \mathbb{R}^Ny∈RN, if the algorithm returns (τ,K)(\tau, K)(τ,K) then

x:=(max⁡{yn−τ,0})n=1N=PΔ(y)andK=#{n:xn≠0}.x := \big(\max\{y_n - \tau, 0\}\big)_{n=1}^N = P_\Delta(y) \qquad\text{and}\qquad K = \#\{n : x_n \ne 0\}.x:=(max{yn​−τ,0})n=1N​=PΔ​(y)andK=#{n:xn​=0}.

No assumption is made on the order or distinctness of the entries of yyy.

Milestones

  • Existence and uniqueness of PΔ(y)P_\Delta(y)PΔ​(y) and PB(y)P_B(y)PB​(y) (Sect. 1, p. 2).
  • Proposition 2.2: PΔ(y)=(max⁡{yn−τ,0})nP_\Delta(y) = (\max\{y_n - \tau, 0\})_nPΔ​(y)=(max{yn​−τ,0})n​ for a unique τ\tauτ.
  • The root-finding view (Sect. 2, p. 5): with f(ρ)=∑nmax⁡{yn−ρ,0}−af(\rho) = \sum_n \max\{y_n - \rho, 0\} - af(ρ)=∑n​max{yn​−ρ,0}−a, τ\tauτ is a root of fff; fff is convex, piecewise linear with breakpoints at the yny_nyn​, strictly decreasing on (−∞,ymax⁡](-\infty, y_{\max}](−∞,ymax​] and equal to −a-a−a beyond; the sign of f(ρ)f(\rho)f(ρ) tells on which side of τ\tauτ the value ρ\rhoρ lies; and max⁡{ymax⁡−a,ymin⁡−a/N}≤τ≤ymax⁡−a/N\max\{y_{\max} - a, y_{\min} - a/N\} \le \tau \le y_{\max} - a/Nmax{ymax​−a,ymin​−a/N}≤τ≤ymax​−a/N.
  • Lower bounds used by the algorithm: (∑n∈Syn−a)/∣S∣≤τ(\sum_{n \in S} y_n - a)/|S| \le \tau(∑n∈S​yn​−a)/∣S∣≤τ for every nonempty index set SSS (Sect. 2, p. 5), and yn−a≤τy_n - a \le \tauyn​−a≤τ for every nnn (Sect. 3, p. 7).
  • Proposition 2.1 and Remark 2.1: projection onto BBB from projection onto Δ\DeltaΔ with signs, and back, via PΔ(y)=PB(y−ymin⁡+a/N)P_\Delta(y) = P_B(y - y_{\min} + a/N)PΔ​(y)=PB​(y−ymin​+a/N).

Significance

The goal certifies a routine used inside many optimization solvers: for every real input, the algorithm returns the exact projection, and the reported KKK is the size of its support. The milestones are reusable facts about simplex and ℓ1\ell_1ℓ1​-ball projection in their own right — the thresholding characterization (Proposition 2.2), the bracket and monotonicity of the root function, and the two reductions between Δ\DeltaΔ and BBB — on which the correctness of the sorting, heap, partition and Michelot methods reviewed in the paper also rests.

All of these results are proved on paper (Propositions 2.1 and 2.2 are classical and cited by the author; the algorithm's correctness is argued in Sect. 3). None of them is formalized in Mathlib, which has the standard simplex (radius 1, as a set) and the abstract Hilbert-space projection theorem but no thresholding formula and no projection algorithm. The mission turns the paper's argument into a checked proof about a transcription of Fig. 2 that can be read line by line against the figure.

Difficulty

The algorithm mixes three different updates of ρ\rhoρ — an incremental mean when an entry is added (with ∣v∣|v|∣v∣ counted before the addition in step 2.1 and after it in step 3.1), a reset to yn−ay_n - ayn​−a, and a removal update — and a loop whose termination depends on ∣v∣|v|∣v∣ strictly decreasing. The paper's argument relies on invariants that are stated informally: ρ\rhoρ equals (∑y∈vy−a)/∣v∣(\sum_{y \in v} y - a)/|v|(∑y∈v​y−a)/∣v∣ outside the reset, ρ\rhoρ never exceeds τ\tauτ, vvv is a sub-multiset of yyy that contains every entry larger than ρ\rhoρ once the cleanup pass is done, and ∣v∣≥1|v| \ge 1∣v∣≥1 at every division. The first idea, to argue directly that the first pass already finds τ\tauτ, fails: in general it does not, and the reset of step 2.3 temporarily breaks the mean invariant, which is exactly why step 3 exists. The thresholding characterization itself needs the optimality conditions of a constrained quadratic problem, available in Mathlib only as the abstract variational inequality for projections onto closed convex sets.

Formalization scope

Vectors are Fin N → ℝ, and the squared Euclidean distance is the explicit sum ∑n(xn−yn)2\sum_n (x_n - y_n)^2∑n​(xn​−yn​)2 (Mathlib's norm on Fin N → ℝ is the sup norm and is not used). Every theorem assumes exactly the paper's standing hypotheses 1≤N1 \le N1≤N and 0<a0 < a0<a. Projections are predicates, not chosen minimizers. The algorithm reads yyy as the list (y1,…,yN)(y_1, \dots, y_N)(y1​,…,yN​); lists keep repeated values; step 4's loop is a do-while encoded by well-founded recursion on ∣v∣|v|∣v∣, so the function is total without an iteration bound and termination is part of the definition. KKK is compared with the number of indices nnn with xn≠0x_n \ne 0xn​=0. The only placeholder is the empty input (N=0N = 0N=0), which the paper excludes and every theorem excludes by hypothesis.

A formalization in which the algorithm's output is defined as "the τ\tauτ of Proposition 2.2", or as a sorting method or Michelot's method instead of Fig. 2, or in which the loop is cut off by a fuel bound, would make the goal trivial or different; the definition here transcribes Fig. 2 step by step, and the goal quantifies over every input.

A complete development needs: the thresholding characterization via first-order optimality conditions on Δ\DeltaΔ; elementary facts about the piecewise-linear function fff; and loop invariants for the three passes of the algorithm, stated on lists with multiplicity. The simplex and ℓ1\ell_1ℓ1​-ball facts are reusable for any later mission on projection algorithms (sorting, heap, partition, Michelot). Contributions welcome: proofs of any milestone, lemmas relating List.ofFn sub-multisets to index sets, and invariant lemmas for the individual steps of Fig. 2.

Selected references

  • L. Condat, Fast Projection onto the Simplex and the ℓ1 Ball, Mathematical Programming, Ser. A 158(1):575–585, 2016. https://doi.org/10.1007/s10107-015-0946-6 — author's version HAL hal-01056171v2: https://hal.science/hal-01056171v2
  • M. Held, P. Wolfe, H. P. Crowder, Validation of subgradient optimization, Mathematical Programming 6:62–88, 1974. https://doi.org/10.1007/BF01580223
  • C. Michelot, A finite algorithm for finding the projection of a point onto the canonical simplex of ℝⁿ, Journal of Optimization Theory and Applications 50(1):195–200, 1986. https://doi.org/10.1007/BF00938486
  • J. Duchi, S. Shalev-Shwartz, Y. Singer, T. Chandra, Efficient projections onto the ℓ1-ball for learning in high dimensions, Proc. ICML 2008, 272–279. https://doi.org/10.1145/1390156.1390191
  • K. C. Kiwiel, Breakpoint searching algorithms for the continuous quadratic knapsack problem, Mathematical Programming 112:473–491, 2008. https://doi.org/10.1007/s10107-006-0050-z
13 thms1 active userReviewed
Algorithmic Game TheoryMechanism Design·Captain: mikedeng1

Strategyproof Approximation of the Minimax on Networks 2: No Strategyproof Randomized Mechanism Beats 2 - o(1) on TreesResearch Paper

Motivation

A public facility (a fire station, a hospital, a server) is to be placed on a road network, and the people it serves report their own locations. When the planner wants to minimise the distance to the farthest user (the minimax or egalitarian objective, in the sense of Rawls), each user has an incentive to misreport so as to pull the facility towards themselves. Mechanism design without money asks which location rules make truthful reporting a dominant strategy, and how much of the optimal objective such rules must give up. Procaccia and Tennenholtz (EC 2009) introduced this approximation viewpoint for points on a line; Schummer and Vohra (J. Econom. Theory 2002) characterised the strategyproof deterministic rules on networks.

Alon, Feldman, Procaccia and Tennenholtz (Math. Oper. Res. 2010) study the minimax on general networks. Choosing a fixed agent's location (dictatorship) is strategyproof and loses at most a factor 2 on any network. On a circle they give a randomized strategyproof mechanism with ratio 3/23/23/2. On trees a simple randomized mechanism achieves 2−2/(n+2)2-2/(n+2)2−2/(n+2). This mission is about their matching negative result: on trees, no strategyproof randomized mechanism does better than 2−o(1)2-o(1)2−o(1).

Setting

A network GGG is a metric space whose points are the vertices of a graph and every point inside its edges; the distance d(a,b)d(a,b)d(a,b) is the length of the shortest path. There are nnn agents; a location profile is x=(x1,…,xn)∈Gnx=(x_1,\dots,x_n)\in G^nx=(x1​,…,xn​)∈Gn. A randomized mechanism fff maps each profile to a probability distribution f(x)f(x)f(x) over GGG, the location of the facility. An agent at aaa bears the cost cost⁡(P,a)=Ey∼P[d(a,y)]\operatorname{cost}(P,a)=\mathbb E_{y\sim P}[d(a,y)]cost(P,a)=Ey∼P​[d(a,y)], and the maximum cost of PPP for the profile xxx is

mc⁡(P,x)=Ey∼P[max⁡id(xi,y)].\operatorname{mc}(P,x)=\mathbb E_{y\sim P}\Big[\max_{i} d(x_i,y)\Big].mc(P,x)=Ey∼P​[imax​d(xi​,y)].

The mechanism is strategyproof (SP) if no agent can lower its own cost by reporting another point: for all xxx, iii and xi′∈Gx_i'\in Gxi′​∈G, cost⁡(f(x),xi)≤cost⁡(f(xi′,x−i),xi)\operatorname{cost}(f(x),x_i)\le\operatorname{cost}(f(x_i',x_{-i}),x_i)cost(f(x),xi​)≤cost(f(xi′​,x−i​),xi​). The benchmark is the best deterministic location, OPT(x)=min⁡z∈Gmc⁡(δz,x)\mathrm{OPT}(x)=\min_{z\in G}\operatorname{mc}(\delta_z,x)OPT(x)=minz∈G​mc(δz​,x).

The network of the theorem is the tree G(m,k)G(m,k)G(m,k): an edge of length 111 joins two roots l0l^0l0 and r0r^0r0; below each root hangs a complete mmm-ary tree of depth kkk whose edges from level ddd to level d+1d+1d+1 have length 2d2^d2d. The profiles used are the paper's x0,x1,…,xkx^0,x^1,\dots,x^kx0,x1,…,xk: x0x^0x0 puts n/2n/2n/2 agents on each root, and xd+1x^{d+1}xd+1 moves the n/(2md)n/(2m^d)n/(2md) agents at a chosen left vertex ldl^dld on level ddd to its mmm children, equally.

Formalization targets

Goal: Theorem 4.1 with its explicit constant

For m≥2m\ge2m≥2, k≥1k\ge1k≥1, n≥1n\ge1n≥1 with 2mk∣n2m^k\mid n2mk∣n, and every SP randomized mechanism fff on G(m,k)G(m,k)G(m,k) for nnn agents, there is a profile xxx with OPT(x)>0\mathrm{OPT}(x)>0OPT(x)>0 and

mc⁡(f(x),x) ≥ (2−12k−4m) OPT(x).\operatorname{mc}(f(x),x)\ \ge\ \Big(2-\frac1{2^k}-\frac4m\Big)\,\mathrm{OPT}(x).mc(f(x),x) ≥ (2−2k1​−m4​)OPT(x).

The paper states the bound as 2−O(1/2log⁡n)2-O(1/2^{\sqrt{\log n}})2−O(1/2logn​); the displayed form is what its proof establishes (p. 526), and k=Θ(log⁡n)k=\Theta(\sqrt{\log n})k=Θ(logn​), m=Θ(n1/k)m=\Theta(n^{1/k})m=Θ(n1/k) turn it into the O(⋅)O(\cdot)O(⋅) form.

Milestones

  1. Strategyproofness preserves E[d(f(x1),l0)]≥1/2\mathbb E[d(f(x^1),l^0)]\ge 1/2E[d(f(x1),l0)]≥1/2 when the agents leave l0l^0l0 (p. 524).
  2. For every point yyy with d(y,l0)≥1/2d(y,l^0)\ge1/2d(y,l0)≥1/2: ∑j=1md(y,lj1)≥(3m−2)/2\sum_{j=1}^m d(y,l^1_j)\ge(3m-2)/2∑j=1m​d(y,lj1​)≥(3m−2)/2 (p. 525).
  3. Lemma B.1: some left vertex lkl^klk on level kkk has E[d(f(xk),lk)]≥2k+1−12−2k+1−(k+2)m\mathbb E[d(f(x^k),l^k)]\ge\frac{2^{k+1}-1}{2}-\frac{2^{k+1}-(k+2)}{m}E[d(f(xk),lk)]≥22k+1−1​−m2k+1−(k+2)​ (p. 525).
  4. The expected maximum cost mc⁡(f(xk),xk)\operatorname{mc}(f(x^k),x^k)mc(f(xk),xk) is at least the same bound (p. 526).
  5. Under xkx^kxk the deterministic facility at lk−1l^{k-1}lk−1 has maximum cost exactly 2k−12^{k-1}2k−1 (p. 526).

Significance

The result. Dictatorship already achieves ratio 222 on every network, and on trees the best known SP mechanism improves this only to 2−2/(n+2)2-2/(n+2)2−2/(n+2). Theorem 4.1 shows that this is essentially optimal: randomization, which buys a factor 3/23/23/2 on the circle, buys almost nothing on trees once the tree is allowed to branch widely. It separates two natural network classes by their strategyproof approximability, and the paper notes that trees of bounded branching factor escape the construction, which leaves that class as the open case.

Formalizing it. The result is proved in the paper and has no machine-checked proof. The mission produces a checked lower bound for all SP randomized mechanisms on a continuous network, quantified over arbitrary probability measures and arbitrary deviations, together with a reusable model of facility location with strategic agents on a metric network and an explicit construction of a weighted metric tree.

Difficulty

The bound holds against every mechanism, so no mechanism is analysed: the only handle on fff is the SP inequality, applied along a chain of unilateral deviations whose length is the number of agents moved. The chain must be organised so that the bound on one expected distance survives each level of the tree, and the pointwise geometric inequality on the tree must be turned into a bound on expectations under an arbitrary distribution that may put mass inside edges. The final comparison needs the exact optimum of a specific profile and exact arithmetic on the resulting ratio. Restricting the facility to vertices, or assuming the mechanism is anonymous or continuous, would change the class of mechanisms and is not allowed.

Formalization scope

  • The network is HardTree m k, the tree G(m,k)G(m,k)G(m,k) realised isometrically inside ℓ1\ell^1ℓ1 (one coordinate per edge), with the subspace metric (equal to shortest-path length on the embedded tree) and the Borel σ-algebra. Edge interiors are points of the space. Vertices are vertex s w for a side s and a word w over Fin m.
  • Agents are Fin n; a mechanism is any function (Fin n → HardTree m k) → ProbabilityMeasure (HardTree m k); strategyproofness quantifies over every profile, agent and point of the tree. No measurability, anonymity or continuity of fff is assumed. cost and mc are Bochner integrals of bounded continuous functions; OPT\mathrm{OPT}OPT is optMc, an infimum over all points.
  • Explicit constant: the paper's 2−O(1/2log⁡n)2-O(1/2^{\sqrt{\log n}})2−O(1/2logn​) is stated as 2−1/2k−4/m2-1/2^k-4/m2−1/2k−4/m on G(m,k)G(m,k)G(m,k), the bound its proof yields on p. 526. The asymptotic form in nnn is not stated: the paper assumes 2mk∣n2m^k\mid n2mk∣n "for ease of exposition" and does not treat the leftover agents for general nnn, so the divisibility is a hypothesis.
  • The paper's "without loss of generality E[d(f(x0),l0)]≥1/2\mathbb E[d(f(x^0),l^0)]\ge1/2E[d(f(x0),l0)]≥1/2" is a hypothesis of milestones 1, 3 and 4 only; the goal covers both cases.
  • A trivializing reading is ruled out: the goal requires OPT(x)>0\mathrm{OPT}(x)>0OPT(x)>0, so a profile with all agents at one point (where both sides vanish) is not a witness.
  • A complete development needs basic facts about the ℓ1\ell^1ℓ1 tree metric (distances along paths, compactness), integrals of bounded continuous functions against probability measures, and the arithmetic of the bound. The model file and the tree construction are reusable for other facility-location results on trees.

Selected references

  • N. Alon, M. Feldman, A. D. Procaccia, M. Tennenholtz, Strategyproof Approximation of the Minimax on Networks, Mathematics of Operations Research 35(3):513–526, 2010. https://doi.org/10.1287/moor.1100.0457
  • A. D. Procaccia, M. Tennenholtz, Approximate Mechanism Design without Money, Proc. 10th ACM Conference on Electronic Commerce, 177–186, 2009. https://doi.org/10.1145/1566374.1566401
  • J. Schummer, R. V. Vohra, Strategy-proof Location on a Network, Journal of Economic Theory 104(2):405–428, 2002. https://doi.org/10.1006/jeth.2001.2807
  • N. Alon, M. Feldman, A. D. Procaccia, M. Tennenholtz, Strategyproof Approximation Mechanisms for Location on Networks, 2009. https://arxiv.org/abs/0907.2049
9 thms1 active userReviewed
Algorithmic Game TheoryMechanism Design·Captain: mikedeng1

Strategyproof Approximation of the Minimax on Networks 1: A Strategyproof 3/2-Approximation Mechanism on the CircleResearch Paper

Motivation

A facility — a fire station, a server, a meeting point — must be placed on a network, and every user of the network reports where they are. When the planner cares about the worst-off user, the objective is the minimax: minimize the largest distance from the facility to a user. The reports are private information, so a user may misreport a location to pull the facility towards itself. Approximate mechanism design without money, proposed by Procaccia and Tennenholtz (2009), asks how close to optimal a mechanism can stay when no user ever benefits from lying.

On a line the picture is complete. A deterministic strategyproof mechanism cannot beat ratio 2 for the minimax, and a randomized one cannot beat 3/2. The left-right-middle (LRM) mechanism attains 3/2 (Procaccia and Tennenholtz, 2009). Networks with cycles are harder: the extreme agents that LRM needs do not exist on a circle. Alon, Feldman, Procaccia and Tennenholtz (2010) give a randomized strategyproof mechanism on the circle whose ratio is again 3/2, which is best possible. They also show that on trees no randomized strategyproof mechanism does much better than dictatorship. This mission formalizes the circle result, Theorem 3.1 of that paper.

Setting

The circle GGG has circumference one and carries the arc-length distance d(a,b)∈[0,1/2]d(a,b)\in[0,1/2]d(a,b)∈[0,1/2]. There are nnn agents; agent iii has a location xi∈Gx_i\in Gxi​∈G, and x=(x1,…,xn)∈Gnx=(x_1,\dots,x_n)\in G^nx=(x1​,…,xn​)∈Gn is the location profile. A randomized mechanism maps each profile to a probability distribution PPP over GGG, the location of the facility. Agent iii's cost and the maximum cost of PPP are

cost⁡(P,xi)=Ey∼P[d(xi,y)],mc⁡(P,x)=Ey∼P[max⁡id(xi,y)].\operatorname{cost}(P,x_i)=\mathbb{E}_{y\sim P}[d(x_i,y)],\qquad \operatorname{mc}(P,x)=\mathbb{E}_{y\sim P}\Big[\max_{i} d(x_i,y)\Big].cost(P,xi​)=Ey∼P​[d(xi​,y)],mc(P,x)=Ey∼P​[imax​d(xi​,y)].

A mechanism fff is strategyproof if for every profile xxx, every agent iii and every misreport xi′x_i'xi′​, cost⁡(f(x),xi)≤cost⁡(f(xi′,x−i),xi)\operatorname{cost}(f(x),x_i)\le\operatorname{cost}(f(x_i',x_{-i}),x_i)cost(f(x),xi​)≤cost(f(xi′​,x−i​),xi​). It is a ρ\rhoρ-approximation for the minimax if mc⁡(f(x),x)≤ρ⋅min⁡z∈Gmc⁡(δz,x)\operatorname{mc}(f(x),x)\le\rho\cdot\min_{z\in G}\operatorname{mc}(\delta_z,x)mc(f(x),x)≤ρ⋅minz∈G​mc(δz​,x) for every xxx.

The agents are on one semicircle if a closed arc of length 1/21/21/2 contains all of them. The antipodal point of aaa is a^=a+1/2\hat a=a+1/2a^=a+1/2. Mechanism 3.1 works as follows:

  • if the agents are on one semicircle, it treats that arc as an interval and runs LRM (lrm⁡(x)\operatorname{lrm}(x)lrm(x)): with probability 1/41/41/4 it returns the leftmost agent, with probability 1/41/41/4 the rightmost agent, and with probability 1/21/21/2 the midpoint between them;
  • otherwise it runs the random center (RC) mechanism (rc⁡(x)\operatorname{rc}(x)rc(x)): the antipodal points x^1,…,x^n\hat x_1,\dots,\hat x_nx^1​,…,x^n​ cut the circle into arcs, and RC returns the centre of each arc with probability equal to the arc's length.

In Lean the circle is AddCircle (1 : ℝ), a profile is x : Fin n → AddCircle (1 : ℝ), the deviated profile is Function.update x i x', and the definitions are cost, mc, IsStrategyproof, IsApproximation, OnSemicircle, lrm, rc and mech31 in the namespace StrategyproofMinimax.Circle.

Formalization targets

Goal: Theorem 3.1

IsStrategyproof mech31 ∧ IsApproximation 32 mech31,\texttt{IsStrategyproof}\ \texttt{mech31}\ \wedge\ \texttt{IsApproximation}\ \tfrac32\ \texttt{mech31},IsStrategyproof mech31 ∧ IsApproximation 23​ mech31,

that is, for all nnn, x∈Gnx\in G^nx∈Gn, iii and xi′∈Gx_i'\in Gxi′​∈G,

cost⁡(mech31⁡(x),xi)≤cost⁡(mech31⁡(xi′,x−i),xi)andmc⁡(mech31⁡(x),x)≤32min⁡z∈Gmc⁡(δz,x).\operatorname{cost}(\operatorname{mech31}(x),x_i)\le\operatorname{cost}(\operatorname{mech31}(x_i',x_{-i}),x_i) \quad\text{and}\quad \operatorname{mc}(\operatorname{mech31}(x),x)\le\tfrac32\min_{z\in G}\operatorname{mc}(\delta_z,x).cost(mech31(x),xi​)≤cost(mech31(xi′​,x−i​),xi​)andmc(mech31(x),x)≤23​z∈Gmin​mc(δz​,x).

The constant 3/23/23/2 is the paper's own and is optimal.

Milestones (Appendix A)

  • Lemma A.1: the approximation half, mc⁡(mech31⁡(x),x)≤32 OPT(x)\operatorname{mc}(\operatorname{mech31}(x),x)\le\frac32\,\mathrm{OPT}(x)mc(mech31(x),x)≤23​OPT(x).
  • Lemma A.2 (semicircle to semicircle): if xxx and x′=(xi′,x−i)x'=(x_i',x_{-i})x′=(xi′​,x−i​) are both on one semicircle, cost⁡(lrm⁡(x),xi)≤cost⁡(lrm⁡(x′),xi)\operatorname{cost}(\operatorname{lrm}(x),x_i)\le\operatorname{cost}(\operatorname{lrm}(x'),x_i)cost(lrm(x),xi​)≤cost(lrm(x′),xi​).
  • Lemma A.3: for x,y∈[0,1]⊂Rx,y\in[0,1]\subset\mathbb{R}x,y∈[0,1]⊂R, ∣x−12∣≤y ∣x−y2∣+(1−y) ∣x−y+12∣|x-\tfrac12|\le y\,|x-\tfrac y2|+(1-y)\,|x-\tfrac{y+1}2|∣x−21​∣≤y∣x−2y​∣+(1−y)∣x−2y+1​∣.
  • Lemma A.5: if xxx is not on one semicircle, cost⁡(rc⁡(x),xi)≤14\operatorname{cost}(\operatorname{rc}(x),x_i)\le\frac14cost(rc(x),xi​)≤41​.
  • Lemma A.6 (not semicircle to semicircle): cost⁡(rc⁡(x),xi)≤cost⁡(lrm⁡(x′),xi)\operatorname{cost}(\operatorname{rc}(x),x_i)\le\operatorname{cost}(\operatorname{lrm}(x'),x_i)cost(rc(x),xi​)≤cost(lrm(x′),xi​).
  • Lemma A.7: if xxx is not on one semicircle and y∈Gy\in Gy∈G, cost⁡(rc⁡(x∪{y}),y)≤cost⁡(rc⁡(x),y)\operatorname{cost}(\operatorname{rc}(x\cup\{y\}),y)\le\operatorname{cost}(\operatorname{rc}(x),y)cost(rc(x∪{y}),y)≤cost(rc(x),y).
  • Lemma A.8 (semicircle to not semicircle): cost⁡(lrm⁡(x),xi)≤cost⁡(rc⁡(x′),xi)\operatorname{cost}(\operatorname{lrm}(x),x_i)\le\operatorname{cost}(\operatorname{rc}(x'),x_i)cost(lrm(x),xi​)≤cost(rc(x′),xi​).
  • Lemma A.9 (not semicircle to not semicircle): cost⁡(rc⁡(x),xi)≤cost⁡(rc⁡(x′),xi)\operatorname{cost}(\operatorname{rc}(x),x_i)\le\operatorname{cost}(\operatorname{rc}(x'),x_i)cost(rc(x),xi​)≤cost(rc(x′),xi​).

The four deviation lemmas A.2, A.6, A.8 and A.9 together are the strategyproofness half of the goal.

Significance

The theorem closes the randomized minimax question on the circle: the ratio 3/2 matches the lower bound that already holds on a line, so cycles cost nothing once randomization is allowed. This contrasts with the tree result of the same paper, where no randomized strategyproof mechanism beats 2−o(1)2-o(1)2−o(1). Mechanism 3.1 is also an example of something that is not true in general: combining two strategyproof mechanisms by a case split on the profile usually breaks strategyproofness at the boundary between the cases, and here it does not. Any characterization of randomized strategyproof mechanisms on networks, an open problem the paper raises, has to account for such hybrids.

The result is proved on paper, in the paper's Appendix A. It has no machine-checked proof. A formalization also produces reusable pieces: facility-location mechanisms and their costs on a metric space, LRM on an interval, and cost computations for finitely supported distributions on AddCircle.

Difficulty

A deviation can move the profile across the boundary between the two regimes: from one semicircle to not one semicircle, or back. Strategyproofness of LRM and RC separately therefore does not give strategyproofness of the hybrid; the four regime-crossing cases need separate arguments, which compare an LRM cost with an RC cost directly. RC's outcome depends on every agent's antipodal point, so a single deviation removes one cut point and inserts another; its effect on the deviator's cost has to be controlled across the whole partition. Even the semicircle-to-semicircle case is not inherited from the line: the deviation can change which semicircle is used, and with it which agents are extreme. On the formal side, every cost is an integral against a finitely supported measure on AddCircle, and the case analysis runs through arc-length distances that wrap around.

Formalization scope

  • The circle is normalized to circumference one, as in the paper's Appendix A. Rescaling the circle scales all costs by the same factor, so strategyproofness and the ratio are unaffected.
  • Distributions are Measure (AddCircle 1). lrm, rc and mech31 are explicit finite sums of Dirac masses whose weights sum to one. cost and mc are Bochner integrals of continuous bounded functions against these finite measures, so they are always the true expectations.
  • "On one semicircle" is ∃ c, ∀ i, ‖x i - c‖ ≤ 1/4: a closed arc, so agents spread over exactly a half circle are on one semicircle.
  • RC is defined in the paper's own equivalent form (p. 517): the centre of each arc between adjacent antipodal points, with probability equal to the arc's length. It is defined for every profile, and depends only on the set of locations. x∪{y}x\cup\{y\}x∪{y} is Fin.snoc x y.
  • When the agents occupy exactly one antipodal pair {p,p^}\{p,\hat p\}{p,p^​}, two closed semicircles cover them and LRM's midpoint depends on the choice. The paper leaves this open. lrm fixes it: it uses the semicircle centred at xj−1/4x_j-1/4xj​−1/4 for the least index jjj for which this centre covers all agents.
  • The approximation is multiplicative, mc⁡≤32⋅OPT\operatorname{mc}\le\frac32\cdot\mathrm{OPT}mc≤23​⋅OPT, never a quotient: OPT\mathrm{OPT}OPT is 000 when all agents coincide. Statements hold for every nnn, including the trivial n=0n=0n=0.
  • The statements are not trivialized by a junk value: the mechanisms are genuine probability distributions, no integral can silently default to 000, the optimum is an infimum of a continuous function over the compact circle, and the deviation xi′x_i'xi′​ ranges over the whole circle, not over moves that stay in the same regime.
  • Lemma A.4 of the paper (a telescoping identity used inside Lemma A.5) is not a milestone.

Contributions welcome: API for integrals against finite sums of Dirac masses on AddCircle, lifting of arcs of length at most 1/21/21/2 to intervals of R\mathbb{R}R, and LRM strategyproofness on an interval.

Selected references

  • N. Alon, M. Feldman, A. D. Procaccia, M. Tennenholtz, Strategyproof Approximation of the Minimax on Networks, Mathematics of Operations Research 35(3):513–526, 2010. https://doi.org/10.1287/moor.1100.0457
  • A. D. Procaccia, M. Tennenholtz, Approximate Mechanism Design without Money, Proc. 10th ACM Conference on Electronic Commerce (EC), 177–186, 2009. https://doi.org/10.1145/1566374.1566409
  • J. Schummer, R. V. Vohra, Strategy-proof Location on a Network, Journal of Economic Theory 102(2):405–428, 2002. https://doi.org/10.1006/jeth.2001.2821
13 thms1 active userReviewed
Linear OptimizationOptimizationProbability+1·Captain: mikedeng1

A Dynamic Near-Optimal Algorithm for Online Linear Programming II: A Lower Bound for Every Online AlgorithmResearch Paper

Motivation

Online linear programming models resource allocation under uncertainty about future demand: requests arrive one at a time, each asking for some amounts of mmm resources and offering a payment, and each must be accepted or rejected, irrevocably, on arrival. Airline seat and hotel room revenue management, online routing with bandwidth limits and the allocation of search-engine advertisement slots to budget-constrained bidders are all of this form (Agrawal, Wang and Ye 2014, §1.1). With adversarial arrivals no online policy can guarantee a constant fraction of the offline optimum, so the standard model is the random permutation model: an adversary chooses the requests, and they arrive in a uniformly random order.

The paper's main positive result (its Theorem 1, the subject of a companion mission) is an algorithm that is 1−O(ε)1-O(\varepsilon)1−O(ε) competitive once every capacity satisfies B=min⁡ibi≥Ω(mlog⁡(n/ε)/ε2)B=\min_i b_i\ge\Omega(m\log(n/\varepsilon)/\varepsilon^2)B=mini​bi​≥Ω(mlog(n/ε)/ε2). This mission is about the matching negative result, the paper's Theorem 2: any algorithm needs B≥Ω(log⁡m/ε2)B\ge\Omega(\log m/\varepsilon^2)B≥Ω(logm/ε2). The single-resource case goes back to Kleinberg's BBB-secretary problem, where B≥Ω(1/ε2)B\ge\Omega(1/\varepsilon^2)B≥Ω(1/ε2) is necessary (Kleinberg 2005); Theorem 2 shows that the number of resources must enter the capacity requirement as well.

Setting

An instance has nnn columns (πt,at)(\pi_t,a_t)(πt​,at​), t=1,…,nt=1,\dots,nt=1,…,n, with objective coefficient πt≥0\pi_t\ge 0πt​≥0 and constraint column at∈[0,1]ma_t\in[0,1]^mat​∈[0,1]m, and a right-hand side b∈Rmb\in\mathbb R^mb∈Rm. The offline problem is the linear program

OPT=max⁡{∑t=1nπtxt : ∑t=1naitxt≤bi (i=1,…,m), 0≤xt≤1}.\mathrm{OPT}=\max\Bigl\{\sum_{t=1}^n\pi_tx_t\ :\ \sum_{t=1}^n a_{it}x_t\le b_i\ (i=1,\dots,m),\ 0\le x_t\le 1\Bigr\}.OPT=max{t=1∑n​πt​xt​ : t=1∑n​ait​xt​≤bi​ (i=1,…,m), 0≤xt​≤1}.

In the online problem the columns arrive in the order σ(1),…,σ(n)\sigma(1),\dots,\sigma(n)σ(1),…,σ(n) for a uniformly random permutation σ\sigmaσ. An online algorithm knows nnn and bbb in advance. At time ttt it sees the columns revealed so far, and nothing else, and chooses xt∈[0,1]x_t\in[0,1]xt​∈[0,1] so that the online constraint ∑s≤taiσ(s)xs≤bi\sum_{s\le t}a_{i\sigma(s)}x_s\le b_i∑s≤t​aiσ(s)​xs​≤bi​ holds for every iii. Its expected online value is Eσ[∑tπσ(t)xt]\mathbb E_\sigma\bigl[\sum_t\pi_{\sigma(t)}x_t\bigr]Eσ​[∑t​πσ(t)​xt​], the average over all n!n!n! orders, and the algorithm is ccc-competitive if this is at least c⋅OPTc\cdot\mathrm{OPT}c⋅OPT on every instance.

The lower bound is witnessed by a concrete hard instance. Take m=2zm=2^zm=2z items, identified with the binary strings of length zzz, and for each i=1,…,zi=1,\dots,zi=1,…,z let vi∈{0,1}mv_i\in\{0,1\}^mvi​∈{0,1}m be the iii-th bit of each item and wi=1−viw_i=\mathbf 1-v_iwi​=1−vi​ its complement. Every item has capacity BBB. For each iii the instance has B/zB/zB/z inputs (4,vi)(4,v_i)(4,vi​), qiq_iqi​ inputs (3,wi)(3,w_i)(3,wi​), B/4z\sqrt{B/4z}B/4z​ inputs (2,wi)(2,w_i)(2,wi​) and 2B/z−qi2B/z-q_i2B/z−qi​ inputs (1,wi)(1,w_i)(1,wi​), where qiq_iqi​ follows a binomial distribution with parameters 2B/z2B/z2B/z and 1/21/21/2. For a solution, rir_iri​ denotes the amount of wiw_iwi​-inputs it accepts.

The Lean development uses the same notation: IsFeasible, objective, OPT, OnlineAlgorithm, decisions, onlineValue, expectedOnlineValue in DynamicOnlineLP.LowerBound.OnlineLP, and vVec, wVec, HardCol, hardProfit, hardDemand, hardCapacity, acceptedW in DynamicOnlineLP.LowerBound.HardInstance.

Formalization targets

Goal: Theorem 2 (p. 878)

There are absolute constants c,K>0c,K>0c,K>0 such that for every m≥2m\ge 2m≥2, every B≥Klog⁡mB\ge K\log mB≥Klogm and every online algorithm AAA there is an instance with bi=Bb_i=Bbi​=B for all iii on which

Eσ[∑t=1nπσ(t)xtA]<(1−clog⁡mB)OPT.\mathbb E_\sigma\Bigl[\sum_{t=1}^n\pi_{\sigma(t)}x^A_t\Bigr]<\Bigl(1-c\sqrt{\tfrac{\log m}{B}}\Bigr)\mathrm{OPT}.Eσ​[t=1∑n​πσ(t)​xtA​]<(1−cBlogm​​)OPT.

This is the page's "equivalently" form, "no algorithm can achieve a competitive ratio better than 1−Ω(log⁡m/B)1-\Omega(\sqrt{\log m/B})1−Ω(logm/B​)". It fixes no value of ccc or KKK, so it remains correct if the constants are later improved.

Milestones

  1. OPT is at most 7B7B7B (Appendix C, pp. 888–889): the hard instance has OPT≤7B\mathrm{OPT}\le 7BOPT≤7B.
  2. Claim 1 (p. 886): every feasible solution of the hard instance with value at least (1−ε)OPT(1-\varepsilon)\mathrm{OPT}(1−ε)OPT satisfies
∑i∣ri−Bz∣≤7εB.\sum_i\Bigl|r_i-\frac Bz\Bigr|\le 7\varepsilon B .i∑​​ri​−zB​​≤7εB.
  1. Lemma 11 (p. 889): if Y1,…,Y2kY_1,\dots,Y_{2k}Y1​,…,Y2k​ are independent fair 0/10/10/1 variables and r≤kr\le kr≤k, then there is an absolute constant 0<c<10<c<10<c<1 such that, with probability at least ccc, the values of Y1,…,YrY_1,\dots,Y_rY1​,…,Yr​ make both ∑jYj≥k+⌈k/2⌉\sum_jY_j\ge k+\lceil\sqrt k/2\rceil∑j​Yj​≥k+⌈k​/2⌉ and ∑jYj≤k−⌈k/2⌉\sum_jY_j\le k-\lceil\sqrt k/2\rceil∑j​Yj​≤k−⌈k​/2⌉ have conditional probability at least ccc.

Significance

The result. Theorem 2 fixes the dependence of the achievable competitive ratio on the number of resources up to the gap between log⁡m\log mlogm and mlog⁡nm\log nmlogn: with BBB units of capacity per resource, no policy loses less than a Ω(log⁡m/B)\Omega(\sqrt{\log m/B})Ω(logm/B​) fraction of the offline optimum. Revenue-management and ad-allocation policies based on learned dual prices cannot beat this. The later literature on online packing in random order (for example Kesselheim, Radke, Tönnis and Vöcking 2014; Gupta and Molinaro 2016) measures its upper bounds against it.

Formalizing it. The theorem is proved in the paper, but the proof in §4 and Appendix C is a sketch. It appeals to the central limit theorem for "constant probability" events, assumes that B/zB/zB/z and B/4z\sqrt{B/4z}B/4z​ are integers and that mmm is a power of two, and treats the random instance and the random order together. A complete formal proof has to settle all of this: a deterministic hard instance for each algorithm, arbitrary mmm and real BBB, explicit anti-concentration for binomial sums, and the accounting that turns per-pair mistakes into a loss proportional to zB\sqrt{zB}zB​. As far as is known, no part of this has been machine-checked. Milestone 3, conditional anti-concentration of fair coins, is independent of the rest and reusable wherever secretary-type lower bounds are proved.

Difficulty

Claim 1 and the bound OPT≤7B\mathrm{OPT}\le 7BOPT≤7B are deterministic linear-programming facts about a fixed instance. The difficulty is the probabilistic step. The algorithm is arbitrary, sees the profits of earlier inputs and may adapt to them. For each profit-2 input it must effectively decide whether the realized qiq_iqi​ is above or below B/zB/zB/z, and it must be shown that a constant fraction of these decisions are wrong in expectation, whatever it does. The obvious route, applying the central limit theorem to qiq_iqi​, gives only asymptotic statements for fixed rrr and kkk, while the argument needs bounds uniform in kkk, in the number rrr of inputs already seen, and in how the algorithm spreads its decisions over the random order. Mathlib at this revision has no usable central limit theorem, so the anti-concentration has to be proved from binomial estimates. A further difficulty is combining the losses across the zzz pairs, which share items, against Claim 1's allowance of 7εB7\varepsilon B7εB.

Formalization scope

  • Columns are indexed by Fin n, constraints by Fin m, and data are real. The order σ\sigmaσ is an Equiv.Perm (Fin n), and every expectation over it is the finite average 1n!∑σ\frac1{n!}\sum_\sigman!1​∑σ​. No measure theory is used.
  • OPT\mathrm{OPT}OPT is sSup of the objective over the feasible set. It is used only with b≥0b\ge 0b≥0, where the feasible set is nonempty and bounded and the supremum is attained.
  • An online algorithm is a function of nnn, bbb and the list of revealed columns. Proposals that would violate 0≤xt≤10\le x_t\le 10≤xt​≤1 or the online constraint are replaced by a rejection, xt=0x_t=0xt​=0. Algorithms are deterministic and fractional; a randomized algorithm reduces to its expected decisions, which form a feasible deterministic fractional algorithm with the same expected value.
  • The goal's Ω(⋅)\Omega(\cdot)Ω(⋅) is an absolute pair of constants c,Kc,Kc,K quantified before mmm, BBB, the algorithm and the instance. The logarithm is natural, and BBB is any real number with B≥Klog⁡mB\ge K\log mB≥Klogm.
  • In the hard instance, B=zkB=zkB=zk with k=B/zk=B/zk=B/z a natural number, pairs are indexed from 000, and the number of profit-2 inputs is a free parameter sss (the paper uses s=B/4zs=\sqrt{B/4z}s=B/4z​).
  • Lemma 11 is stated for k≥2k\ge 2k≥2: at k=r=1k=r=1k=r=1 the two-sided statement on the page fails.
  • Ruled out: the capacity BBB is given, not chosen by the instance, and every row of the instance has bi=Bb_i=Bbi​=B. The algorithm is fixed before the instance and never sees unrevealed columns. Taking a small BBB, putting "there exists an instance" before "for all algorithms", or letting the algorithm see the instance would each trivialize or falsify the statement.

A complete development needs finite probability over permutations and product spaces of coins, binomial tail bounds from below, and linear-programming weak duality on explicit instances. Contributions of general binomial anti-concentration lemmas and of a reusable online-algorithm interface are welcome.

Selected references

  • S. Agrawal, Z. Wang, Y. Ye, A Dynamic Near-Optimal Algorithm for Online Linear Programming, Operations Research 62(4):876–890, 2014. https://doi.org/10.1287/opre.2014.1289
  • R. Kleinberg, A multiple-choice secretary algorithm with applications to online auctions, SODA 2005, 630–631. https://dl.acm.org/doi/10.5555/1070432.1070519
  • T. Kesselheim, K. Radke, A. Tönnis, B. Vöcking, Primal beats dual on online packing LPs in the random-order model, STOC 2014, 303–312. https://doi.org/10.1145/2591796.2591810
  • A. Gupta, M. Molinaro, How the experts algorithm can help solve LPs online, Mathematics of Operations Research 41(4):1404–1431, 2016. https://doi.org/10.1287/moor.2016.0782
6 thms1 active userReviewed
PreviousPage 108 of 109Next

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me