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,207 missions · 1,079 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

Open1128Completed1079All2207
🏆Completed
Convex OptimizationOptimization·Captain: Shuze Chen

Convex Optimization I: Prékopa's TheoremTextbook

Log-concave functions are the meeting point of convex analysis and probability: densities of Gaussian, exponential, uniform and Wishart distributions are all log-concave, and countless facts of applied probability flow from one structural theorem — integrating out variables preserves log-concavity. This mission builds the convex-analysis spine of Boyd & Vandenberghe's Convex Optimization (Chapters 2–3) — separation and supporting hyperplanes, dual cones, the first- and second-order differential characterizations of convexity, Fenchel conjugacy — and climbs to Prékopa's theorem via the Prékopa–Leindler inequality, a landmark of Brunn–Minkowski theory absent from Mathlib.

29 thms5 active usersReviewed
🏆Completed
Machine LearningQuantum InformationStochastic Systems·Captain: tianyipeng

Markov Entanglement: Value Decomposition Error in Multi-agent MDPsResearch Paper

Value decomposition — approximating the value of a joint state by a sum of per-agent local values — is a staple of multi-agent dynamic programming and reinforcement learning, from index policies for restless bandits to modern MARL architectures, yet it is normally used without justification. Chen and Peng (arXiv:2506.02385) supply one. They show a multi-agent MDP admits an exact value decomposition precisely when its transition matrix is not entangled — a notion built in direct analogy with quantum entanglement — and then turn that qualitative characterisation into a quantitative one: a measure of Markov entanglement bounds the decomposition error in general. This mission formalizes that core theory. The goal is Theorem 6, the general N-agent bound in the occupancy-weighted norm; the milestones are the equivalence between separability and exact decomposition, the perturbation machinery that carries a one-step transition error into a value-function error, and the extensions to shared global state and shared rewards. The paper's restless-bandit application, which needs mean-field machinery of its own, is left to a second mission in the series.

25 thms5 active usersReviewed
🏆Completed
Linear OptimizationOptimization·Captain: Shuze Chen

Introduction to Linear Optimization X: Max-Flow Min-CutTextbook

How much flow can be sent from a source sss to a sink ttt through a network with arc capacities uij∈(0,∞]u_{ij}\in(0,\infty]uij​∈(0,∞] — and what certifies that no more is possible? This mission formalizes §7.4-7.5 of Bertsimas & Tsitsiklis. The circulation calculus of §7.4 supplies the two structural tools: the flow decomposition theorem (Lemma 7.1 — every nonzero nonnegative circulation is a positive combination f=∑iaifi\mathbf{f}=\sum_i a_i\mathbf{f}^if=∑i​ai​fi of simple circulations with only forward arcs, with integer aia_iai​ when f\mathbf{f}f is integer) and the optimality criterion for the minimum cost network flow problem (Theorem 7.6 — a feasible flow is optimal if and only if there is no unsaturated cycle with negative cost). Section 7.5 then formulates the maximum flow problem (max⁡bs\max b_smaxbs​ s.t. Af=b\mathbf{A}\mathbf{f}=\mathbf{b}Af=b, bt=−bsb_t=-b_sbt​=−bs​, bi=0b_i=0bi​=0 for i≠s,ti\ne s,ti=s,t, 0≤f≤u0\le\mathbf{f}\le\mathbf{u}0≤f≤u), defines augmenting paths (Definition 7.2: fij<uijf_{ij}<u_{ij}fij​<uij​ on forward arcs, fij>0f_{ij}>0fij​>0 on backward arcs) and the Ford–Fulkerson algorithm, and proves integer invariance and finite termination for integer capacities (Theorem 7.8). The goal is Theorem 7.10:

(a) if the Ford–Fulkerson algorithm terminates because no augmenting path can be found, the current flow is optimal;

(b) the value of the maximum flow equals the minimum cut capacity

C(S)=∑{(i,j)∈A∣i∈S, j∉S}uijC(S)=\sum_{\{(i,j)\in\mathcal{A}\mid i\in S,\,j\notin S\}}u_{ij}C(S)={(i,j)∈A∣i∈S,j∈/S}∑​uij​

— the archetypal combinatorial min-max theorem, which the book notes can also be read as LP duality (pp. 311-312).

14 thms5 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine Learning·Captain: Shuze Chen

Bandit Algorithms XIII: Pure Exploration and Best-Arm IdentificationTextbook

Sometimes reward during learning is irrelevant — a pharmaceutical company running phase-II trials only cares about identifying the best treatment, as quickly and as reliably as possible. Chapter 33 of Lattimore–Szepesvári formalizes fixed-confidence best-arm identification: a policy together with a stopping time τ\tauτ and a recommendation must be sound (wrong with probability at most δ\deltaδ) while minimizing E[τ]\mathbb{E}[\tau]E[τ]. The information-theoretic complexity is c∗(ν)−1=sup⁡α∈Pk−1inf⁡ν′∈Ealt(ν)∑iαiD(νi,νi′)c^*(\nu)^{-1} = \sup_{\alpha\in\mathcal{P}_{k-1}} \inf_{\nu'\in\mathcal{E}_{alt}(\nu)} \sum_i \alpha_i D(\nu_i, \nu_i')c∗(ν)−1=supα∈Pk−1​​infν′∈Ealt​(ν)​∑i​αi​D(νi​,νi′​): every sound strategy needs E[τ]≥c∗(ν)log⁡14δ\mathbb{E}[\tau] \ge c^*(\nu)\log\frac{1}{4\delta}E[τ]≥c∗(ν)log4δ1​, and the Track-and-Stop algorithm — the goal theorem — achieves lim⁡δ→0E[τ]/log⁡(1/δ)=c∗(ν)\lim_{\delta\to 0} \mathbb{E}[\tau]/\log(1/\delta) = c^*(\nu)limδ→0​E[τ]/log(1/δ)=c∗(ν) exactly. The mission also covers the fixed-budget counterpart, sequential halving.

50 thms5 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine Learning·Captain: Shuze Chen

Bandit Algorithms IV: Bernoulli Bandits and KL-UCBTextbook

When rewards are binary — a click or no click, a cure or no cure — the subgaussian machinery of Missions I–III is not tight: the variance of a Bernoulli arm degrades near the boundary of [0,1][0,1][0,1], and the correct exponential rate is governed by the binary relative entropy d(p,q)=plog⁡pq+(1−p)log⁡1−p1−qd(p,q) = p\log\frac{p}{q} + (1-p)\log\frac{1-p}{1-q}d(p,q)=plogqp​+(1−p)log1−q1−p​ rather than a squared distance. Chapter 10 of Lattimore–Szepesvári develops Chernoff's tail bound in its information-theoretic form and the KL-UCB algorithm, whose upper confidence bounds are level sets of ddd. The goal theorem shows KL-UCB attains

lim sup⁡n→∞Rn/log⁡n=∑i:Δi>0Δi/d(μi,μ∗)\limsup_{n\to\infty} R_n/\log n = \sum_{i:\Delta_i>0} \Delta_i/d(\mu_i, \mu^*)n→∞limsup​Rn​/logn=i:Δi​>0∑​Δi​/d(μi​,μ∗)

— asymptotic optimality with exactly the constant demanded by the lower bound of Mission VII, strictly improving subgaussian UCB on every Bernoulli instance.

25 thms5 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine Learning·Captain: Shuze Chen

Bandit Algorithms VI: Information-Theoretic FoundationsTextbook

Every lower bound in bandit theory rests on one question: how hard is it to tell two probability measures apart from a sample? The answer is quantified by the relative entropy D(P,Q)D(P,Q)D(P,Q), and the sharpest elementary tool is the Bretagnolle–Huber inequality: for any event AAA, P(A)+Q(Ac)≥12exp⁡(−D(P,Q))P(A) + Q(A^c) \ge \frac{1}{2}\exp(-D(P,Q))P(A)+Q(Ac)≥21​exp(−D(P,Q)) — no test can distinguish PPP from QQQ with total error probability below 12e−D(P,Q)\frac{1}{2}e^{-D(P,Q)}21​e−D(P,Q). This mission formalizes Chapter 14 of Lattimore–Szepesvári: the Bretagnolle–Huber inequality (the goal theorem, proved via Le Cam's inequality ∫p∧q≥12(∫pq)2\int p \wedge q \ge \frac{1}{2}(\int\sqrt{pq})^2∫p∧q≥21​(∫pq​)2), Pinsker's inequality δ(P,Q)≤D(P,Q)/2\delta(P,Q) \le \sqrt{D(P,Q)/2}δ(P,Q)≤D(P,Q)/2​, and the closed-form divergences between Gaussians and Bernoullis. These half-page inequalities power every impossibility result in Missions VII, XI and beyond.

5 thms5 active usersReviewed
🏆Completed
Number TheoryOptimization·Captain: mikedeng1

Integer Factorization: Why Two-Item Joint Replenishment Is Hard 3: M Has a Divisor in [L, U] iff an Explicit Two-Item Periodic JRP Instance Has a Plan of Cost at Most L + U + 2M²(M + 1)Research Paper

Why the two-item periodic JRP is hard

The joint replenishment problem (JRP) is the multi-item extension of the economic order quantity (EOQ) model. Each item is reordered periodically and pays its own ordering and holding costs, and a joint ordering cost is shared by items ordered at the same time. Before this work no hardness result was known for the periodic JRP (p. 10), even though no exact polynomial-time algorithm was known either (Schulz and Telha, arXiv:2007.09045; Operations Research, 2024, as Integer Factorization: Why Two-Item Joint Replenishment Is Hard).

The paper explains this through number theory. In the periodic JRP the joint cost is incurred every gcd⁡(q1,q2)\gcd(q_1, q_2)gcd(q1​,q2​) periods, so the objective contains a greatest common divisor of the decision variables. The paper's Theorem 2 states that, assuming the Riemann hypothesis, the two-item periodic JRP is NP-hard under randomized reductions. The proof composes two reductions:

  • Shor's reduction from Partition to RangeDivisor ("does MMM have a divisor in [L,U][L, U][L,U]?"), given in the paper's appendix and based on Shor (2011); this is where the Riemann hypothesis enters;
  • a reduction from RangeDivisor to the two-item periodic JRP, whose correctness is Lemma 3 (pp. 13–14).

This mission formalizes Lemma 3. Mission 4 of this series formalizes the Partition half; missions 1 and 2 formalize the integer-factorization reductions behind Theorem 1.

Setting

A period is a positive integer qqq. An item with ordering cost KKK and holding cost HHH costs

EOQK,H(q)=Kq+Hq\mathrm{EOQ}_{K,H}(q) = \frac{K}{q} + HqEOQK,H​(q)=qK​+Hq

per unit time. The two-item periodic JRP (objective (3), p. 10) minimizes, over q1,q2∈Z+q_1, q_2 \in \mathbb{Z}_+q1​,q2​∈Z+​,

JRP(q1,q2)=EOQK1,H1(q1)+EOQK2,H2(q2)+K0gcd⁡(q1,q2).\mathrm{JRP}(q_1, q_2) = \mathrm{EOQ}_{K_1,H_1}(q_1) + \mathrm{EOQ}_{K_2,H_2}(q_2) + \frac{K_0}{\gcd(q_1, q_2)}.JRP(q1​,q2​)=EOQK1​,H1​​(q1​)+EOQK2​,H2​​(q2​)+gcd(q1​,q2​)K0​​.

As a decision problem (p. 13), it asks whether some (q1,q2)(q_1, q_2)(q1​,q2​) has cost at most a threshold zzz.

An instance of RangeDivisor (p. 12) is a triple of integers M≥U≥L>0M \ge U \ge L > 0M≥U≥L>0 satisfying

L+U<22LU;L + U < 2\sqrt{2LU};L+U<22LU​;

it is a yes-instance when MMM has a divisor qqq with L≤q≤UL \le q \le UL≤q≤U.

Given such a triple, the instance JRPM,U,L\mathrm{JRP}_{M,U,L}JRPM,U,L​ sets

K0=LU,K1=0,H1=1,K2=M3(M+1),H2=M(M+1),K_0 = LU,\quad K_1 = 0,\quad H_1 = 1,\quad K_2 = M^3(M+1),\quad H_2 = M(M+1),K0​=LU,K1​=0,H1​=1,K2​=M3(M+1),H2​=M(M+1),

and the threshold is zM,L,U=L+U+2M2(M+1)z_{M,L,U} = L + U + 2M^2(M+1)zM,L,U​=L+U+2M2(M+1), where 2M2(M+1)=EOQK2,H2(M)2M^2(M+1) = \mathrm{EOQ}_{K_2,H_2}(M)2M2(M+1)=EOQK2​,H2​​(M). Once item 2 is fixed at q2=Mq_2 = Mq2​=M, item 1 solves problem (5):

min⁡q1∈Z+ LUgcd⁡(q1,M)+q1.\min_{q_1 \in \mathbb{Z}_+} \ \frac{LU}{\gcd(q_1, M)} + q_1 .q1​∈Z+​min​ gcd(q1​,M)LU​+q1​.

In Lean these objects are JRPHard.Aperiodic.eoq, JRPHard.Periodic.periodicCost, JRPHard.Periodic.coefK2, JRPHard.Periodic.coefH2 (shared with missions 1 and 2), and IsRangeDivisorInstance, HasDivisorIn, coefK0, rangeCost, threshold, obj5 and fConv in the namespace JRPHard.RangeDiv.

Formalization targets

Goal: Lemma 3

For every RangeDivisor instance (M,L,U)(M, L, U)(M,L,U),

K0, K2, H2≤2M4and(∃ q∣M, L≤q≤U)  ⟺  (∃ q1,q2∈Z+: JRPM,U,L(q1,q2)≤L+U+2M2(M+1)).K_0,\ K_2,\ H_2 \le 2M^4 \quad\text{and}\quad \Big(\exists\, q \mid M,\ L \le q \le U\Big) \iff \Big(\exists\, q_1, q_2 \in \mathbb{Z}_+:\ \mathrm{JRP}_{M,U,L}(q_1, q_2) \le L + U + 2M^2(M+1)\Big).K0​, K2​, H2​≤2M4and(∃q∣M, L≤q≤U)⟺(∃q1​,q2​∈Z+​: JRPM,U,L​(q1​,q2​)≤L+U+2M2(M+1)).

Milestones (the steps of the proof, pp. 14–15)

  1. Item 2 is pinned: every plan with q2≠Mq_2 \ne Mq2​=M costs more than zM,L,Uz_{M,L,U}zM,L,U​.
  2. f(q)=LU/q+qf(q) = LU/q + qf(q)=LU/q+q is a lower bound on problem (5)'s objective, f(L)=f(U)=L+Uf(L) = f(U) = L + Uf(L)=f(U)=L+U, and fff is minimized at LU\sqrt{LU}LU​.
  3. gcd⁡(q,M)≠q⇒gcd⁡(q,M)≤q/2\gcd(q, M) \ne q \Rightarrow \gcd(q, M) \le q/2gcd(q,M)=q⇒gcd(q,M)≤q/2.
  4. If gcd⁡(q,M)≠q\gcd(q, M) \ne qgcd(q,M)=q, the objective of (5) at qqq is at least 22LU>L+U2\sqrt{2LU} > L + U22LU​>L+U.
  5. A divisor q∈[L,U]q \in [L, U]q∈[L,U] of MMM has objective at most L+UL + UL+U.
  6. A period with objective at most L+UL + UL+U divides MMM and lies in [L,U][L, U][L,U].

Significance

Lemma 3 is the step that carries hardness from number theory to inventory theory. With Shor's result it shows that, under the Riemann hypothesis, no polynomial-time exact algorithm for the two-item periodic JRP exists unless NP problems can be solved in randomized polynomial time. The paper concludes (p. 15) that no algorithm for the two-item problem may be simultaneously exact and polynomial on all inputs, so some concession, such as heuristics, must be made.

The result is proved in the paper; it has not been machine-checked. The mission produces a checked statement of the reduction's correctness with every coefficient explicit, and it corrects two imprecisions in the printed lemma (the threshold and the unspecified "sufficiently large" coefficients of item 2; see below). The objects (eoq, periodicCost) are the same ones used in mission 2 of this series.

Difficulty

Each step is elementary, but the statement mixes integer and real reasoning. The objective of (5) is not monotone or convex in qqq: its value jumps between LU/q+qLU/q + qLU/q+q at divisors of MMM and at least 2LU/q+q2LU/q + q2LU/q+q elsewhere. The argument must show that the gap between these two curves exceeds the window around L+UL + UL+U, and this is exactly what RangeDivisor's condition L+U<22LUL + U < 2\sqrt{2LU}L+U<22LU​ provides. Without that condition a non-divisor can be cheaper than L+UL + UL+U (for L=1L = 1L=1, U=100U = 100U=100, M=7M = 7M=7, the period q=14q = 14q=14 has objective 100/7+14<101100/7 + 14 < 101100/7+14<101). The pinning of q2=Mq_2 = Mq2​=M also has to beat the slack M+2LUM + 2\sqrt{LU}M+2LU​ against L+UL + UL+U, which is where M≥UM \ge UM≥U is used.

Formalization scope

This mission formalizes the correctness of the reduction behind Theorem 2 (its JRP half, Lemma 3); polynomial running time is not formalized. Theorem 2 itself, Shor's NP-completeness of RangeDivisor under randomized reductions, and "one can construct in polynomial time" are not stated. What remains of the polynomial-time claim is the explicit coefficients and the bound K0,K2,H2≤2M4K_0, K_2, H_2 \le 2M^4K0​,K2​,H2​≤2M4 (bit length at most 4log⁡2M+24\log_2 M + 24log2​M+2).

Conventions:

  • periods are natural numbers, and every quantified period is assumed positive (Lean's K/0=0K/0 = 0K/0=0 and gcd⁡(0,M)=M\gcd(0, M) = Mgcd(0,M)=M would otherwise create spurious cheap plans);
  • costs are real numbers; LLL, UUU, MMM and the coefficients are natural numbers cast to R\mathbb{R}R;
  • RangeDivisor's condition is stated with Real.sqrt exactly as printed;
  • "the optimal value is at most zzz" is the decision form "some plan has cost at most zzz" (p. 13); the minimum is attained, so the two agree.

Two disclosed departures from the printed lemma:

  • The threshold. The page writes "the optimal value of JRPM,U,L≤L+U\mathrm{JRP}_{M,U,L} \le L + UJRPM,U,L​≤L+U". The two-item cost also contains item 2's term 2M2(M+1)2M^2(M+1)2M2(M+1), so the literal comparison never holds and would make the lemma false. The threshold is zM,L,U=L+U+2M2(M+1)z_{M,L,U} = L + U + 2M^2(M+1)zM,L,U​=L+U+2M2(M+1), the zM,L,Uz_{M,L,U}zM,L,U​ announced in §3.1.
  • The item-2 coefficients. The page chooses "sufficiently large values of K2K_2K2​ and H2H_2H2​, as in … Lemma 2". The statement fixes Lemma 2's values K2=M3(M+1)K_2 = M^3(M+1)K2​=M3(M+1), H2=M(M+1)H_2 = M(M+1)H2​=M(M+1) rather than quantifying existentially, which would let any instance satisfy the lemma.

A formalization that drops the positivity of periods, states the threshold as L+UL + UL+U on the full two-item cost, or leaves K2,H2K_2, H_2K2​,H2​ existential does not capture Lemma 3 and is ruled out.

No library beyond Mathlib (Nat.gcd, Real.sqrt) is needed. Proofs of the milestones, and alternative proofs of the goal, are welcome.

Selected references

  • A. S. Schulz and C. Telha, Integer factorization and Riemann's hypothesis: Why two-item joint replenishment is hard, arXiv:2007.09045v1, 2020; published as Integer Factorization: Why Two-Item Joint Replenishment Is Hard, Operations Research, 2024. https://arxiv.org/abs/2007.09045
  • P. W. Shor, An NP-complete variant of factoring, Theoretical Computer Science Stack Exchange, 2011 (version 2011-03-01, as cited by the paper). https://cstheory.stackexchange.com/q/4785
  • S. Arora and B. Barak, Computational Complexity: A Modern Approach, Cambridge University Press, 2009. https://doi.org/10.1017/CBO9780511804090
10 thms4 active usersReviewed
🏆Completed
Algorithmic Game TheoryEconomics·Captain: mikedeng1

Economics of Social Media Fake Accounts 1: A Purely Profit-Driven Platform Optimally Chooses Zero Antifake EffortResearch Paper

Motivation

Fake accounts (purchased followers, likes and engagement) are a large part of influencer marketing on social media, and platforms say they invest in detecting and removing them. Huang and Liu (Management Science 71(10), 2025) model this market as a signaling game. An influencer of unknown quality buys fake followers to look popular, consumers decide whether to follow, an advertiser pays for the real followers it expects, and the platform, which takes a share of the advertising revenue, chooses how much antifake effort to spend. A practical question for regulators and platform designers follows: does a platform that maximizes profit have any reason to fight fake accounts? This mission formalizes the paper's answer for the purely profit-driven platform: it does not.

The model draws on the signaling literature, in particular the undefeated equilibrium refinement of Mailath, Okuno-Fujiwara and Postlewaite (1993), and is close to the welfare analysis of social-learning manipulation in Chen and Papanastasiou (Management Science 67(11), 2021).

Setting

An influencer is of type HHH (probability ρ∈(0,1)\rho\in(0,1)ρ∈(0,1)) or LLL, with content quality qH>qL>0q_H>q_L>0qH​>qL​>0, and E[q]=ρqH+(1−ρ)qLE[q]=\rho q_H+(1-\rho)q_LE[q]=ρqH​+(1−ρ)qL​. A fraction l∈(0,1)l\in(0,1)l∈(0,1) of consumers (social media literacy) are informed and know the type. The platform picks an effort d≥0d\ge0d≥0. With technology level τ∈[0,1)\tau\in[0,1)τ∈[0,1) and base price p0p_0p0​, a fake account costs pf=p0+d/(1−τ)p_f=p_0+d/(1-\tau)pf​=p0​+d/(1−τ) (1), and following costs a consumer c=c0+c1(1−τ)dc=c_0+c_1(1-\tau)dc=c0​+c1​(1−τ)d (2), with c0,c1≥0c_0,c_1\ge0c0​,c1​≥0.

Informed followers of a ttt-type number nint=l(1−c/qt)n^t_{in}=l(1-c/q_t)nint​=l(1−c/qt​) (8). Uninformed consumers see the early follower count n2tn_2^tn2t​ and follow in number nunt=(1−l)(1−c/E[q∣n2t])n^t_{un}=(1-l)(1-c/E[q\mid n_2^t])nunt​=(1−l)(1−c/E[q∣n2t​]) (9). The real followers are nr,iat=nint+nuntn^t_{r,ia}=n^t_{in}+n^t_{un}nr,iat​=nint​+nunt​ (10). An uninformed advertiser expects E[nr,ua]=Pr⁡(H∣n)nr,iaH+Pr⁡(L∣n)nr,iaLE[n_{r,ua}]=\Pr(H\mid n)n^H_{r,ia}+\Pr(L\mid n)n^L_{r,ia}E[nr,ua​]=Pr(H∣n)nr,iaH​+Pr(L∣n)nr,iaL​ (11). From the ttt-type's side, the advertiser pays for E[nrt]=l nr,iat+(1−l)E[nr,ua]E[n^t_r]=l\,n^t_{r,ia}+(1-l)E[n_{r,ua}]E[nrt​]=lnr,iat​+(1−l)E[nr,ua​] real followers (12). Under a pooling equilibrium both types show the same count and the posterior is ρ\rhoρ. Under a separating equilibrium (costly or natural) the posterior is 111 at the HHH-type's count and 000 at the LLL-type's.

With advertising revenue μ>0\mu>0μ>0 per real consumer and platform share λp\lambda_pλp​, the platform's profit under equilibrium type rrr is (6)

πpr(d)=λpμE[nr]−γ2d2,γ>0,\pi^r_p(d)=\lambda_p\mu E[n_r]-\frac{\gamma}{2}d^2,\qquad \gamma>0,πpr​(d)=λp​μE[nr​]−2γ​d2,γ>0,

where E[nr]E[n_r]E[nr​] averages (12) over the type. Two thresholds, d1=(1−τ)(η1−p0)d_1=(1-\tau)(\eta_1-p_0)d1​=(1−τ)(η1​−p0​) (13) and d2=(1−τ)(η2−p0)d_2=(1-\tau)(\eta_2-p_0)d2​=(1−τ)(η2​−p0​) (16), with η1=λiμ(1−l)[qH(E[q]−qL)/(lE[q](qH−qL))+ρ]\eta_1=\lambda_i\mu(1-l)\big[q_H(E[q]-q_L)/(lE[q](q_H-q_L))+\rho\big]η1​=λi​μ(1−l)[qH​(E[q]−qL​)/(lE[q](qH​−qL​))+ρ] and η2=1lλiμ(1−l2)\eta_2=\frac1l\lambda_i\mu(1-l^2)η2​=l1​λi​μ(1−l2), select the equilibrium (Proposition 1). If d1>0d_1>0d1​>0 and d≤d1d\le d_1d≤d1​ the equilibrium is pooling. Otherwise it is costly separating for d≤d2d\le d_2d≤d2​ and naturally separating beyond. The equilibrium profit is πp(d)=πpr(d)(d)\pi_p(d)=\pi^{r(d)}_p(d)πp​(d)=πpr(d)​(d).

Formalization targets

Goal: Proposition 4(a)

πp(d)≤πp(0)(d≥0),πp(d)<πp(0)(d>0).\pi_p(d)\le\pi_p(0)\quad(d\ge0),\qquad \pi_p(d)<\pi_p(0)\quad(d>0).πp​(d)≤πp​(0)(d≥0),πp​(d)<πp​(0)(d>0).

A purely profit-driven platform (w=0w=0w=0 in the objective Πp=(1−w)πp+wU\Pi_p=(1-w)\pi_p+wUΠp​=(1−w)πp​+wU of (3)) optimally chooses zero antifake effort, and zero is the unique optimum.

Milestones

  1. (18): d1<d2d_1<d_2d1​<d2​.
  2. Lemma 7: each πppool,πpcsep,πpnsep\pi^{pool}_p,\pi^{csep}_p,\pi^{nsep}_pπppool​,πpcsep​,πpnsep​ strictly decreases in d≥0d\ge0d≥0.
  3. The concavity comparison after Lemma 8: for c>0c>0c>0, ρ nun(qH)+(1−ρ) nun(qL)<nun(E[q])\rho\,n_{un}(q_H)+(1-\rho)\,n_{un}(q_L)<n_{un}(E[q])ρnun​(qH​)+(1−ρ)nun​(qL​)<nun​(E[q]).
  4. Advertising revenue is higher under pooling: E[nrcsep](d)≤E[nrpool](d)E[n^{csep}_r](d)\le E[n^{pool}_r](d)E[nrcsep​](d)≤E[nrpool​](d), strictly if c>0c>0c>0.
  5. Lemma 8(a): if d1≤0d_1\le0d1​≤0, πpcsep(0)>πpnsep(d2)\pi^{csep}_p(0)>\pi^{nsep}_p(d_2)πpcsep​(0)>πpnsep​(d2​) (under Assumption 3, p0<η2p_0<\eta_2p0​<η2​).
  6. Lemma 8(b)(1): if d1>0d_1>0d1​>0, πppool(0)>πpcsep(d1)\pi^{pool}_p(0)>\pi^{csep}_p(d_1)πppool​(0)>πpcsep​(d1​).
  7. Lemma 8(b)(2): if d1>0d_1>0d1​>0, πpcsep(d1)>πpnsep(d2)\pi^{csep}_p(d_1)>\pi^{nsep}_p(d_2)πpcsep​(d1​)>πpnsep​(d2​).

Significance

Proposition 4(a) separates two motives for antifake effort. Effort harms a profit-maximizing platform twice: it raises the consumers' following cost, which lowers participation and revenue, and it costs γ2d2\frac{\gamma}{2}d^22γ​d2. Pooling, in which low-quality influencers successfully mimic high-quality ones, also earns more revenue than separation, because uninformed consumers follow an average influencer more readily than the average of the two types. So any antifake effort a platform makes must come from its concern for consumer welfare (Proposition 4(b)), not from advertising profit. That is the paper's argument for external pressure or regulation.

The result is proved in the paper's Online Appendix. This mission formalizes the main-text claims behind it: the threshold ordering, Lemma 7, the concavity argument and Lemma 8, together with the goal. To our knowledge none of these has a machine-checked proof. The definitions of the follower and profit model are reusable for the companion mission on the influencer's defensive purchasing (Proposition 3).

Difficulty

The obvious argument is "effort only costs, so choose zero". It is incomplete, because effort changes which equilibrium is played, and the equilibrium profit πp\pi_pπp​ is discontinuous at d1d_1d1​ and d2d_2d2​. Comparing profits across regimes needs two facts. First, pooling revenue dominates separating revenue at the same effort, a strict-convexity (Jensen) inequality for x↦1/xx\mapsto 1/xx↦1/x applied to the uninformed followers through (11)–(12). Second, the thresholds are ordered, d1<d2d_1<d_2d1​<d2​, which uses the explicit η1,η2\eta_1,\eta_2η1​,η2​. The bookkeeping of (10)–(12), where the advertiser's expectation is nested inside the type-average, has to be unfolded exactly. The boundary case d1=0d_1=0d1​=0 falls under Proposition 1(a), so zero effort then induces costly separation, not pooling.

Formalization scope

Parameters form a Lean structure with ASCII field names (mu, lamI, lamP, rho, l, qH, qL, c0, c1, tau, p0, gamma). A Standing predicate records the ranges: μ>0\mu>0μ>0; λi,λp>0\lambda_i,\lambda_p>0λi​,λp​>0 with λi+λp<1\lambda_i+\lambda_p<1λi​+λp​<1; ρ,l∈(0,1)\rho,l\in(0,1)ρ,l∈(0,1); 0<qL<qH0<q_L<q_H0<qL​<qH​; c0,c1≥0c_0,c_1\ge0c0​,c1​≥0; τ∈[0,1)\tau\in[0,1)τ∈[0,1); γ>0\gamma>0γ>0. p0p_0p0​ is unconstrained, and Assumption 3 (p0<η2p_0<\eta_2p0​<η2​) is a separate hypothesis, used only in Lemma 8(a). The model's expectations are the closed forms (8)–(12); no probability space is built. Follower formulas are untruncated, as in the paper. Assumptions 1–2 depend on ddd, are never stated for a range of ddd, and are not needed, so they are not imposed.

The equilibrium regime map is Proposition 1 taken as a definition: the belief systems, the undefeated refinement and the proofs of Lemmas 1–4 are in the Online Appendix, which this mission does not use. The regime test is "d1>0d_1>0d1​>0 and d≤d1d\le d_1d≤d1​" for pooling, which matches Proposition 1(a) at d1=0d_1=0d1​=0. Lemma 7 is stated on all of d≥0d\ge0d≥0, a superset of each regime's range. The two separating profits are the same function, because real followers depend only on the information revealed. The concavity milestone assumes c>0c>0c>0, without which both sides are equal.

The goal is about the equilibrium profit computed from (6) and (8)–(12). It is not about abstract regime profits with Lemmas 7–8 as hypotheses, and pooling revenue is not defined by substituting E[q]E[q]E[q] into a single-type formula, which would hide the Jensen step. Consumer welfare UUU is not formalized: its formula is not in the main text, so Proposition 4(b) and Table 3 are out of scope. Contributions welcome: proofs of the milestones and the goal, and a formalization of the signaling game behind Proposition 1.

Selected references

  • Z. Huang and D. Liu, Economics of Social Media Fake Accounts, Management Science 71(10):8865–8883, 2025. https://doi.org/10.1287/mnsc.2022.02616
  • G. J. Mailath, M. Okuno-Fujiwara and A. Postlewaite, Belief-Based Refinements in Signalling Games, Journal of Economic Theory 60(2):241–276, 1993. https://doi.org/10.1006/jeth.1993.1022
  • L. Chen and Y. Papanastasiou, Seeding the Herd: Pricing and Welfare Effects of Social Learning Manipulation, Management Science 67(11):6734–6750, 2021.
9 thms4 active usersReviewed
🏆Completed
OptimizationProbabilityStatistics·Captain: mikedeng1

Recovering Best Statistical Guarantees via the Empirical Divergence-Based Distributionally Robust Optimization 2: Empirical Burg-Ball DRO Bounds Converge Almost Surely to E[h(x;ξ)]Research Paper

Motivation

Many stochastic optimization models contain an expected-value constraint

Z0(x)=E0[h(x;ξ)]≤0,Z_0(x)=E_0[h(x;\xi)]\le 0,Z0​(x)=E0​[h(x;ξ)]≤0,

where ξ\xiξ is a random object with unknown law P0P_0P0​, xxx is a decision and hhh is a known loss. When P0P_0P0​ is known only through an i.i.d. sample ξ1,…,ξn\xi_1,\dots,\xi_nξ1​,…,ξn​, data-driven distributionally robust optimization (DRO) replaces E0E_0E0​ by the worst case over a ball of distributions around the data. H. Lam, Recovering Best Statistical Guarantees via the Empirical Divergence-Based Distributionally Robust Optimization (arXiv:1605.09349v1, 2016; Operations Research 67(4), 2019), studies a ball of reweightings of the sample itself, measured by the Burg entropy, and links its radius to empirical likelihood (Owen 2001).

Lam's Theorem 2 shows that, for a fixed decision xxx, the minimum and maximum of Ew[h(x;ξ)]E_w[h(x;\xi)]Ew​[h(x;ξ)] over this ball bracket Z0(x)Z_0(x)Z0​(x) with probability tending to 1−α1-\alpha1−α when the radius is χ1,1−α2/(2n)\chi^2_{1,1-\alpha}/(2n)χ1,1−α2​/(2n). Theorem 3, the goal of this mission, complements it: the two bounds also converge almost surely to Z0(x)Z_0(x)Z0​(x). A confidence statement says the robust bounds are rarely wrong; consistency says they are eventually tight, so that the robust constraint does not stay conservative as data accumulate.

This mission is the second of a three-mission series on the pointwise theory of the paper (1: coverage, Theorem 2; 3: reduction to a Burg ball on a finite support, Proposition 1).

Setting

Let ξ1,ξ2,…\xi_1,\xi_2,\dotsξ1​,ξ2​,… be i.i.d. random elements of a measurable space Ξ\XiΞ with law P0P_0P0​. Fix a decision x∈Rmx\in\mathbb R^mx∈Rm and write Z0(x)=E0[h(x;ξ)]Z_0(x)=E_0[h(x;\xi)]Z0​(x)=E0​[h(x;ξ)].

The Burg generator is ϕ(t)=−log⁡t+t−1\phi(t)=-\log t+t-1ϕ(t)=−logt+t−1 for t>0t>0t>0 and ϕ(t)=+∞\phi(t)=+\inftyϕ(t)=+∞ for t≤0t\le0t≤0. The empirical Burg-entropy divergence ball of radius η\etaη is the set of weight vectors

Un(η)={w∈Rn: −1n∑i=1nlog⁡(nwi)≤η, ∑i=1nwi=1, wi≥0}.\mathcal U_n(\eta)=\Big\{w\in\mathbb R^n:\ -\frac1n\sum_{i=1}^n\log(nw_i)\le\eta,\ \sum_{i=1}^nw_i=1,\ w_i\ge0\Big\}.Un​(η)={w∈Rn: −n1​i=1∑n​log(nwi​)≤η, i=1∑n​wi​=1, wi​≥0}.

On the simplex, −1n∑ilog⁡(nwi)=1n∑iϕ(nwi)-\frac1n\sum_i\log(nw_i)=\frac1n\sum_i\phi(nw_i)−n1​∑i​log(nwi​)=n1​∑i​ϕ(nwi​), the ϕ\phiϕ-divergence of www from the uniform weights.

Let 0<α<10<\alpha<10<α<1 and let q=χ1,1−α2q=\chi^2_{1,1-\alpha}q=χ1,1−α2​ be the (1−α)(1-\alpha)(1−α)-quantile of the χ12\chi^2_1χ12​ distribution. The lower and upper empirical DRO values are

Z‾n(x)=min⁡w∈Un(q/(2n))∑i=1nh(x;ξi)wi,Z‾n(x)=max⁡w∈Un(q/(2n))∑i=1nh(x;ξi)wi.\underline Z_n(x)=\min_{w\in\mathcal U_n(q/(2n))}\sum_{i=1}^nh(x;\xi_i)w_i,\qquad \overline Z_n(x)=\max_{w\in\mathcal U_n(q/(2n))}\sum_{i=1}^nh(x;\xi_i)w_i.Z​n​(x)=w∈Un​(q/(2n))min​i=1∑n​h(x;ξi​)wi​,Zn​(x)=w∈Un​(q/(2n))max​i=1∑n​h(x;ξi​)wi​.

The proof works with the centred observations h~i=h(x;ξi)−Z0(x)\tilde h_i=h(x;\xi_i)-Z_0(x)h~i​=h(x;ξi​)−Z0​(x).

Formalization targets

Goal: Theorem 3 (p. 12)

Under the conditions of Theorem 2 (0<Var0(h(x;ξ))<∞0<\mathrm{Var}_0(h(x;\xi))<\infty0<Var0​(h(x;ξ))<∞, Z0(x)Z_0(x)Z0​(x) finite),

Z‾n(x)→a.s.Z0(x)andZ‾n(x)→a.s.Z0(x)(n→∞).\underline Z_n(x)\xrightarrow{a.s.}Z_0(x)\quad\text{and}\quad\overline Z_n(x)\xrightarrow{a.s.}Z_0(x)\qquad(n\to\infty).Z​n​(x)a.s.​Z0​(x)andZn​(x)a.s.​Z0​(x)(n→∞).

Milestones (the steps of the printed proof, at a single decision)

  1. Lemma 3 (p. 38, Owen's Lemma 11.2): for i.i.d. YiY_iYi​ with EYi2<∞EY_i^2<\inftyEYi2​<∞, max⁡1≤i≤n∣Yi∣=o(n1/2)\max_{1\le i\le n}|Y_i|=o(n^{1/2})max1≤i≤n​∣Yi​∣=o(n1/2) a.s.
  2. (75)–(76) (p. 33): the Lagrangian dual
Z‾n(x)−Z0(x)=min⁡λ≥0,γ −∑i=1nλnlog⁡(1−h~i+γλ)+λq2n−γ,\overline Z_n(x)-Z_0(x)=\min_{\lambda\ge0,\gamma}\ -\sum_{i=1}^n\frac{\lambda}{n}\log\Big(1-\frac{\tilde h_i+\gamma}{\lambda}\Big)+\lambda\frac{q}{2n}-\gamma ,Zn​(x)−Z0​(x)=λ≥0,γmin​ −i=1∑n​nλ​log(1−λh~i​+γ​)+λ2nq​−γ,

with the printed conventions at λ=0\lambda=0λ=0 and for arguments outside the domain of the logarithm. 3. The elementary inequality (p. 34): −log⁡(1−t)≤t+2t2-\log(1-t)\le t+2t^2−log(1−t)≤t+2t2 for ∣t∣≤1/2|t|\le1/2∣t∣≤1/2. 4. (77) (p. 34): if max⁡i∣h~i∣≤λ/2\max_i|\tilde h_i|\le\lambda/2maxi​∣h~i​∣≤λ/2 with λ>0\lambda>0λ>0, then

Z‾n(x)−Z0(x)≤1n∑i=1nh~i+2(1/n)∑ih~i2λ+λq2n.\overline Z_n(x)-Z_0(x)\le\frac1n\sum_{i=1}^n\tilde h_i+2\frac{(1/n)\sum_i\tilde h_i^2}{\lambda}+\lambda\frac{q}{2n}.Zn​(x)−Z0​(x)≤n1​i=1∑n​h~i​+2λ(1/n)∑i​h~i2​​+λ2nq​.
  1. The uniform-weight lower bound (p. 34): Z‾n(x)−Z0(x)≥1n∑ih~i\overline Z_n(x)-Z_0(x)\ge\frac1n\sum_i\tilde h_iZn​(x)−Z0​(x)≥n1​∑i​h~i​.

Milestones 2, 4 and 5 are deterministic statements about an arbitrary data vector; only Lemma 3 and the goal are probabilistic.

Significance

The result. Theorem 3 shows that the empirical DRO with the χ12\chi^2_1χ12​ calibration is a consistent estimator of the constraint function at every fixed decision, not only a confidence bound. Together with Theorem 2 it places the empirical Burg-ball DRO on the same footing as the classical normal-approximation confidence interval: correct asymptotic coverage and shrinkage to the truth. The deterministic bounds (76)–(77) are also reusable on their own: they control the worst-case reweighting of any finite sample by its first two empirical moments.

Formalizing it. The theorem is proved in the paper; no machine-checked proof is known. The mission asks for a formal proof of the printed argument, specialized to one decision. A closely related open target exists on the platform: GenEmpLik.Expansion.lemma_1 (Duchi, Glynn and Namkoong) states the expansion of the robust mean, sample mean plus ρsn2/n+o(n−1/2)\sqrt{\rho s_n^2/n}+o(n^{-1/2})ρsn2​/n​+o(n−1/2), for a smooth generator class under stationary ergodic data. Combined with the strong law it would give the upper half of Theorem 3, but it is a different statement with different hypotheses and is itself unproved, so it is not used as a milestone here.

Difficulty

The tempting argument, "the ball shrinks to the empirical distribution and the empirical mean converges", does not close by itself: h(x;ξ)h(x;\xi)h(x;ξ) is only square integrable, not bounded, and the maximizing weight shifts mass towards the largest observations, so the gap Z‾n(x)−1n∑ih(x;ξi)\overline Z_n(x)-\frac1n\sum_ih(x;\xi_i)Zn​(x)−n1​∑i​h(x;ξi​) has to be controlled against the extremes of the sample rather than by the size of the ball alone. The printed proof routes this through the convex dual (76). That step needs a constraint qualification, the conjugate of the Burg generator with its boundary conventions (an infinite value outside the domain of the logarithm, and the degenerate multiplier λ=0\lambda=0λ=0), and a choice of multiplier that dominates every centred observation while still letting all three terms of (77) vanish. The almost-sure statement then combines Lemma 3 with two strong laws on one event of full probability.

Formalization scope

  • Data. The sample ξ1,…,ξn\xi_1,\dots,\xi_nξ1​,…,ξn​ is ξ 0, …, ξ (n-1): a sequence of measurable maps that is independent (iIndepFun) and identically distributed (IdentDistrib with ξ 0). Z0(x)Z_0(x)Z0​(x) is the Bochner integral of h x ∘ ξ 0, and the moment conditions are MemLp (h x ∘ ξ 0) 2 (finite mean and variance) together with positive variance, which makes the integral the true mean.
  • Decision. The paper's x∈Θ⊂Rmx\in\Theta\subset\mathbb R^mx∈Θ⊂Rm is an arbitrary point of EuclideanSpace ℝ (Fin m); Θ\ThetaΘ plays no role in a pointwise statement and is dropped.
  • Quantile. qqq is pinned by N(0,1){y:y2≤q}=1−α\mathcal N(0,1)\{y:y^2\le q\}=1-\alphaN(0,1){y:y2≤q}=1−α, which determines it uniquely. The radius q/(2n)q/(2n)q/(2n) is passed as ρ=q/2\rho=q/2ρ=q/2 to the published GenEmpLik.Expansion.robustMean, whose ball has radius ρ/n\rho/nρ/n.
  • Values. Z‾n\overline Z_nZn​ is robustMean burg (q/2); Z‾n\underline Z_nZ​n​ is robustLower burg (q/2) from the frozen shared EmpiricalDRO.Coverage.Setting module, a real infimum over the same published ball (PhiDivRobust.Counterpart.probUncertaintySet). For n≥1n\ge1n≥1 the value sets are nonempty and bounded, so the real sSup/sInf are the attained maximum and minimum.
  • Divergence. burg is valued in EReal with +∞+\infty+∞ for t≤0t\le0t≤0, so a zero weight is excluded from the ball by an infinite divergence and never by a junk value of Real.log. The dual summand dualTerm is EReal-valued with the printed conventions: +∞+\infty+∞ for t≥λ>0t\ge\lambda>0t≥λ>0; 000 or +∞+\infty+∞ at λ=0\lambda=0λ=0.
  • Generalizations, disclosed. The deterministic milestones hold for every data vector; (76) is stated for every q>0q>0q>0 (the Slater point needs q>0q>0q>0), (77) for every λ>0\lambda>0λ>0 satisfying the hypothesis, and the uniform-weight bound for every radius ρ≥0\rho\ge0ρ≥0. In the goal, positive variance and the value of α\alphaα are kept as printed although the conclusion does not need them.
  • Ruled out. Junk logarithms at zero weights, a junk sSup/sInf of an empty value set, a free radius detached from the χ12\chi^2_1χ12​ quantile, and a dropped variance condition are all excluded by the encoding above. The paper's printed (75) writes Z‾n(x)\overline Z_n(x)Zn​(x) where its radius qn/(2n)q_n/(2n)qn​/(2n) makes it Z‾n∗(x)\overline Z^*_n(x)Zn∗​(x); at a single decision the two coincide.
  • Not posed. The paper's headline result, Theorem 4 (uniform coverage over Θ\ThetaΘ with a χ2\chi^2χ2-process quantile qnq_nqn​), and the uniform statements Theorems 5–7 need Donsker and Glivenko–Cantelli classes, weak convergence in ℓ∞(Θ)\ell^\infty(\Theta)ℓ∞(Θ) and conditional quantiles of Gaussian-process suprema, none of which has library support yet; they are left out.
  • Reuse. Lemma 3 for nonnegative variables is the proved platform theorem NumStochOpt.ListScheduling.lemma_8_1_i_max_over_sqrt_ae, included as a reference. Mathlib's ProbabilityTheory.strong_law_ae supplies the laws of large numbers. Contributions welcome: the duality (76) for general ϕ\phiϕ-divergence balls, and the deterministic bound (77).

Selected references

  • H. Lam, Recovering Best Statistical Guarantees via the Empirical Divergence-Based Distributionally Robust Optimization, arXiv:1605.09349v1, 2016; Operations Research 67(4), 2019. https://arxiv.org/abs/1605.09349v1 , https://doi.org/10.1287/opre.2018.1786
  • A. B. Owen, Empirical Likelihood, Chapman & Hall/CRC, 2001. https://doi.org/10.1201/9781420036152
  • A. Ben-Tal, D. den Hertog, A. De Waegenaere, B. Melenberg, G. Rennen, Robust solutions of optimization problems affected by uncertain probabilities, Management Science 59(2), 2013. https://doi.org/10.1287/mnsc.1120.1641
  • J. C. Duchi, P. W. Glynn, H. Namkoong, Statistics of robust optimization: a generalized empirical likelihood approach, Mathematics of Operations Research 46(3), 2021. https://arxiv.org/abs/1610.03425
13 thms4 active usersReviewed
🏆Completed
Optimal TransportOptimization·Captain: mikedeng1

Computational Optimal Transport II: For a Distance Matrix D and p ≥ 1, W_p(a, b) = L_{D^p}(a, b)^{1/p} Is a Distance on the Probability SimplexTextbook

Motivation

Comparing histograms is a basic operation in statistics, computer vision and machine learning: a bag of image descriptors, a word-frequency vector, a discretized density. When the bins carry a geometry (colors that are close to one another, words with related meanings), a comparison that ignores the geometry, such as an ℓp\ell^pℓp norm between the histogram vectors, treats a small shift of mass to a neighboring bin as severely as a shift to a distant bin. Optimal transport compares two histograms by the cheapest way to move one onto the other, with costs read off a ground distance between bins. Rubner, Tomasi and Guibas introduced it to image retrieval as the earth mover's distance (Rubner et al. 2000), and it has since been used for document classification (Kusner et al. 2015) and as a training loss (Frogner et al. 2015).

These uses rely on the transport cost being a distance, so that nearest-neighbor search, clustering and the geometry of the space of histograms behave as expected. This mission formalizes the statement that it is one: Proposition 2.2 of Peyré and Cuturi, Computational Optimal Transport (2019), the discrete form of the classical fact that the ppp-Wasserstein distance is a metric (Villani 2003, Theorem 7.3).

Setting

Fix n≥1n\ge1n≥1 and write [ ⁣[n] ⁣]={1,…,n}[\![n]\!]=\{1,\dots,n\}[[n]]={1,…,n}. The probability simplex is

Σn={a∈R+n:∑i=1nai=1};\Sigma_n=\Big\{a\in\mathbb R^n_+ : \textstyle\sum_{i=1}^n a_i=1\Big\};Σn​={a∈R+n​:∑i=1n​ai​=1};

its elements are histograms. For a,b∈Σna,b\in\Sigma_na,b∈Σn​ the set of couplings (2.10) is

U(a,b)={P∈R+n×n:P1n=a, P⊤1n=b},U(a,b)=\{P\in\mathbb R^{n\times n}_+ : P\mathbb 1_n=a,\ P^{\top}\mathbb 1_n=b\},U(a,b)={P∈R+n×n​:P1n​=a, P⊤1n​=b},

the nonnegative matrices with row sums aaa and column sums bbb; Pi,jP_{i,j}Pi,j​ is the mass sent from bin iii to bin jjj. For a cost matrix CCC, the Kantorovich problem (2.11) is

LC(a,b)=min⁡P∈U(a,b)⟨C,P⟩,⟨C,P⟩=∑i,jCi,jPi,j.L_C(a,b)=\min_{P\in U(a,b)}\langle C,P\rangle,\qquad \langle C,P\rangle=\sum_{i,j}C_{i,j}P_{i,j}.LC​(a,b)=P∈U(a,b)min​⟨C,P⟩,⟨C,P⟩=i,j∑​Ci,j​Pi,j​.

A matrix D∈R+n×nD\in\mathbb R^{n\times n}_+D∈R+n×n​ is a distance on [ ⁣[n] ⁣][\![n]\!][[n]] if it is symmetric, Di,j=0D_{i,j}=0Di,j​=0 exactly when i=ji=ji=j, and Di,k≤Di,j+Dj,kD_{i,k}\le D_{i,j}+D_{j,k}Di,k​≤Di,j​+Dj,k​ for all i,j,ki,j,ki,j,k. For p≥1p\ge1p≥1, write Dp=(Di,jp)i,jD^p=(D_{i,j}^p)_{i,j}Dp=(Di,jp​)i,j​ for the entrywise power. The ppp-Wasserstein distance (2.17) is

Wp(a,b)=LDp(a,b)1/p.\mathrm W_p(a,b)=L_{D^p}(a,b)^{1/p}.Wp​(a,b)=LDp​(a,b)1/p.

In the Lean development these are couplings a b, frob C P, otCost C a b, powCost D p and W D p a b in the namespace CompOT.Metric.

Formalization targets

Goal: Proposition 2.2 (p. 377)

For a distance matrix DDD and p≥1p\ge1p≥1, for all a,b,c∈Σna,b,c\in\Sigma_na,b,c∈Σn​,

Wp(a,b)=Wp(b,a),Wp(a,b)≥0,Wp(a,b)=0  ⟺  a=b,Wp(a,c)≤Wp(a,b)+Wp(b,c).\mathrm W_p(a,b)=\mathrm W_p(b,a),\quad \mathrm W_p(a,b)\ge0,\quad \mathrm W_p(a,b)=0\iff a=b,\quad \mathrm W_p(a,c)\le\mathrm W_p(a,b)+\mathrm W_p(b,c).Wp​(a,b)=Wp​(b,a),Wp​(a,b)≥0,Wp​(a,b)=0⟺a=b,Wp​(a,c)≤Wp​(a,b)+Wp​(b,c).

Milestones, from the book's proof (pp. 377–379)

  1. diag(a)\mathrm{diag}(a)diag(a) is an optimal coupling in U(a,a)U(a,a)U(a,a) for DpD^pDp and Wp(a,a)=0\mathrm W_p(a,a)=0Wp​(a,a)=0.
  2. If a≠ba\ne ba=b, every P∈U(a,b)P\in U(a,b)P∈U(a,b) has Pi,j≠0P_{i,j}\ne0Pi,j​=0 for some i≠ji\ne ji=j.
  3. If a≠ba\ne ba=b, then Wp(a,b)>0\mathrm W_p(a,b)>0Wp​(a,b)>0.
  4. Wp(a,b)=Wp(b,a)\mathrm W_p(a,b)=\mathrm W_p(b,a)Wp​(a,b)=Wp​(b,a).
  5. Gluing. With b~j=bj\tilde b_j=b_jb~j​=bj​ if bj>0b_j>0bj​>0 and b~j=1\tilde b_j=1b~j​=1 otherwise, for P∈U(a,b)P\in U(a,b)P∈U(a,b) and Q∈U(b,c)Q\in U(b,c)Q∈U(b,c),
S=P diag(1/b~) Q∈U(a,c).S=P\,\mathrm{diag}(1/\tilde b)\,Q\in U(a,c).S=Pdiag(1/b~)Q∈U(a,c).
  1. Minkowski chain. For the same P,Q,SP,Q,SP,Q,S,
⟨S,Dp⟩1/p≤⟨P,Dp⟩1/p+⟨Q,Dp⟩1/p.\langle S,D^p\rangle^{1/p}\le\langle P,D^p\rangle^{1/p}+\langle Q,D^p\rangle^{1/p}.⟨S,Dp⟩1/p≤⟨P,Dp⟩1/p+⟨Q,Dp⟩1/p.

The case p=1p=1p=1 of the goal's attainment and triangle inequality is already proved on the platform, in another encoding (couplings as functions on V×VV\times VV×V for a finite metric space VVV): MarkovMixing.transport_metric, included here as a reference item. The goal for general p≥1p\ge1p≥1 is new.

Significance

The result. Proposition 2.2 makes (Σn,Wp)(\Sigma_n,\mathrm W_p)(Σn​,Wp​) a metric space whose metric depends on the ground distance DDD. This is what entitles later chapters of the book to speak of Wasserstein barycenters, geodesics and Lipschitz properties of the transport cost, and it underlies the use of Wp\mathrm W_pWp​ as a loss or a retrieval distance. Remark 2.15 of the same page records that for 0<p≤10<p\le10<p≤1 it is Wpp\mathrm W_p^pWpp​, not Wp\mathrm W_pWp​, that is a distance, so the restriction p≥1p\ge1p≥1 is substantive.

Formalizing it. The result is classical and fully proved in the book; it has not been machine-checked for general ppp in this discrete matrix form. The platform's p=1p=1p=1 result uses a different encoding of couplings, so this mission supplies the matrix-form transportation polytope U(a,b)U(a,b)U(a,b), the cost LCL_CLC​ and Wp\mathrm W_pWp​ shared with the other missions of this series, plus a discrete gluing lemma and a Minkowski step stated for arbitrary couplings, which are reusable in any finite transport argument.

Difficulty

Symmetry and definiteness are short once the minimum in LDpL_{D^p}LDp​ is known to be attained, which needs compactness of U(a,b)U(a,b)U(a,b); strict positivity for a≠ba\ne ba=b fails for an infimum that is not attained. The triangle inequality is the substantial part. The direct idea of composing the two transport plans as PQPQPQ does not give a coupling: the composition must be renormalized by the middle histogram bbb, and bbb may have zero entries, on which a naive 1/bj1/b_j1/bj​ is undefined. The renormalized matrix must then be shown to have the right marginals, which uses that Pi,j=0P_{i,j}=0Pi,j​=0 wherever bj=0b_j=0bj​=0. The final step needs Minkowski's inequality for weighted ℓp\ell^pℓp sums together with the triangle inequality of DDD and the monotonicity of t↦tpt\mapsto t^pt↦tp; for p<1p<1p<1 it fails.

Formalization scope

Indices [ ⁣[n] ⁣][\![n]\!][[n]] are Fin n (0-based). Histograms are Fin n → ℝ, matrices Matrix (Fin n) (Fin n) ℝ, and Σn\Sigma_nΣn​ is Mathlib's stdSimplex ℝ (Fin n); histograms may have zero entries. LC(a,b)L_C(a,b)LC​(a,b) is a real infimum over the subtype U(a,b)U(a,b)U(a,b), and every theorem assumes the histograms lie in Σn\Sigma_nΣn​, where U(a,b)U(a,b)U(a,b) is nonempty (it contains ab⊤ab^{\top}ab⊤) and compact. That attainment is part of what a solver proves; it is not a hypothesis. The exponent ppp is a real number with p≥1p\ge1p≥1, and all powers are real powers. The book's "positive" is read as Wp≥0\mathrm W_p\ge0Wp​≥0; strict positivity is the clause Wp(a,b)=0  ⟺  a=b\mathrm W_p(a,b)=0\iff a=bWp​(a,b)=0⟺a=b. The hypotheses of the goal are exactly those of the page: Di,j≥0D_{i,j}\ge0Di,j​≥0, (i)–(iii), and p≥1p\ge1p≥1. The milestones carry the same setting, and milestones 5 and 6 are stated for all couplings instead of only optimal ones, since the proof does not use optimality there.

A trivializing formalization is ruled out: without the simplex hypotheses U(a,b)U(a,b)U(a,b) can be empty and the real infimum would be 000, making "Wp(a,b)=0\mathrm W_p(a,b)=0Wp​(a,b)=0" true for unrelated histograms; and the four claims are stated about Wp\mathrm W_pWp​ itself, not about the glued coupling or about a minimum over a set assumed nonempty.

Needed infrastructure: compactness and nonemptiness of U(a,b)U(a,b)U(a,b) and attainment of LCL_CLC​; transposition of couplings; the gluing construction; Minkowski's inequality for finite weighted sums (Mathlib has Real.Lp_add_le and its weighted variants). Proofs of any milestone are welcome, as are reusable lemmas on U(a,b)U(a,b)U(a,b).

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073 (Proposition 2.2, p. 377).
  • C. Villani, Topics in Optimal Transportation, Graduate Studies in Mathematics 58, AMS, 2003. https://doi.org/10.1090/gsm/058
  • Y. Rubner, C. Tomasi and L. J. Guibas, The Earth Mover's Distance as a Metric for Image Retrieval, International Journal of Computer Vision 40(2):99–121, 2000. https://doi.org/10.1023/A:1026543900054
  • M. Kusner, Y. Sun, N. Kolkin and K. Weinberger, From Word Embeddings to Document Distances, ICML 2015. https://proceedings.mlr.press/v37/kusnerb15.html
  • C. Frogner, C. Zhang, H. Mobahi, M. Araya-Polo and T. Poggio, Learning with a Wasserstein Loss, NeurIPS 2015. https://arxiv.org/abs/1506.05439
  • D. A. Levin, Y. Peres and E. L. Wilmer, Markov Chains and Mixing Times, AMS, 2009, Lemma 14.3 (the p=1p=1p=1 case on the platform). https://doi.org/10.1090/mbk/058
10 thms4 active usersReviewed
🏆Completed
Linear OptimizationOptimal TransportOptimization·Captain: mikedeng1

Computational Optimal Transport III: Discrete Kantorovich Duality — L_C(a, b) Is the Maximum of ⟨f, a⟩ + ⟨g, b⟩ over Potentials with f ⊕ g ≤ CTextbook

Why discrete Kantorovich duality

Optimal transport between two histograms is a linear program: move mass aia_iai​ out of each source bin iii and deliver mass bjb_jbj​ to each target bin jjj at unit cost Ci,jC_{i,j}Ci,j​, as cheaply as possible. Its dual replaces the transport plan by a pair of price vectors and is the basis of most of the computational methods in G. Peyré and M. Cuturi's Computational Optimal Transport (Foundations and Trends in Machine Learning, 2019, doi:10.1561/2200000073): the dual ascent and Hungarian methods, the auction algorithm, the semi-discrete solvers of Chapter 5, and the dual reading of Sinkhorn's algorithm in Chapter 4. The book states the duality as Proposition 2.4 and derives it from linear programming strong duality (Bertsimas and Tsitsiklis, Introduction to Linear Optimization, 1997, Theorem 4.4). Remark 2.21 gives it an economic reading: a vendor sets a collection price fif_ifi​ at each warehouse and a delivery price gjg_jgj​ at each factory, and the best price the vendor can charge while staying below every shipping cost equals the optimal transport cost.

This is the third mission in a series on the book. It covers §2.5 (Dual Problem, pp. 382–385) and §3.1–3.3 (Kantorovich Linear Programs, C-Transforms, Complementary Slackness, pp. 400–405).

Setting

Indices run over ⟦n⟧={1,…,n}\llbracket n\rrbracket=\{1,\dots,n\}[[n]]={1,…,n} and ⟦m⟧\llbracket m\rrbracket[[m]]. A histogram is a vector in the probability simplex Σn={a∈R+n:∑iai=1}\Sigma_n=\{a\in\mathbb R^n_+ : \sum_i a_i = 1\}Σn​={a∈R+n​:∑i​ai​=1}. Fix a∈Σna\in\Sigma_na∈Σn​, b∈Σmb\in\Sigma_mb∈Σm​ and a cost matrix C∈Rn×mC\in\mathbb R^{n\times m}C∈Rn×m; no sign or metric condition is imposed on CCC.

  • The couplings (2.10) are U(a,b)={P∈R+n×m:P1m=a, PT1n=b}\mathbf U(a,b)=\{P\in\mathbb R_+^{n\times m}: P\mathbb 1_m=a,\ P^{\mathsf T}\mathbb 1_n=b\}U(a,b)={P∈R+n×m​:P1m​=a, PT1n​=b}.
  • The Kantorovich problem (2.11) is LC(a,b)=min⁡P∈U(a,b)⟨C,P⟩L_C(a,b)=\min_{P\in\mathbf U(a,b)}\langle C,P\rangleLC​(a,b)=minP∈U(a,b)​⟨C,P⟩, with ⟨C,P⟩=∑i,jCi,jPi,j\langle C,P\rangle=\sum_{i,j}C_{i,j}P_{i,j}⟨C,P⟩=∑i,j​Ci,j​Pi,j​.
  • The admissible dual variables (2.21) are R(C)={(f,g)∈Rn×Rm:fi+gj≤Ci,j ∀i,j}\mathbf R(C)=\{(f,g)\in\mathbb R^n\times\mathbb R^m : f_i+g_j\le C_{i,j}\ \forall i,j\}R(C)={(f,g)∈Rn×Rm:fi​+gj​≤Ci,j​ ∀i,j}, written f⊕g≤Cf\oplus g\le Cf⊕g≤C.
  • The CCC-transform of f∈Rnf\in\mathbb R^nf∈Rn is (fC)j=min⁡iCi,j−fi(f^C)_j=\min_i C_{i,j}-f_i(fC)j​=mini​Ci,j​−fi​, and the Cˉ\bar CCˉ-transform of g∈Rmg\in\mathbb R^mg∈Rm is (gCˉ)i=min⁡jCi,j−gj(g^{\bar C})_i=\min_j C_{i,j}-g_j(gCˉ)i​=minj​Ci,j​−gj​ (§3.2).
  • PPP and (f,g)(f,g)(f,g) are complementary w.r.t. CCC (Definition 3.1) if Ci,j=fi+gjC_{i,j}=f_i+g_jCi,j​=fi​+gj​ whenever Pi,j>0P_{i,j}>0Pi,j​>0.

In Lean these are couplings, frob, IsOptimalCoupling, dualFeasible, dualObj, IsDualOptimal, cTransform, cbarTransform and Complementary in the namespace CompOT.Duality.

Formalization targets

Goal: Proposition 2.4 (p. 382)

LC(a,b)=max⁡(f,g)∈R(C) ⟨f,a⟩+⟨g,b⟩.L_C(a,b)=\max_{(f,g)\in\mathbf R(C)}\ \langle f,a\rangle+\langle g,b\rangle .LC​(a,b)=(f,g)∈R(C)max​ ⟨f,a⟩+⟨g,b⟩.

Stated with both extrema attained: there are an optimal coupling PPP and a dual optimal pair (f,g)(f,g)(f,g) with ⟨C,P⟩=⟨f,a⟩+⟨g,b⟩\langle C,P\rangle=\langle f,a\rangle+\langle g,b\rangle⟨C,P⟩=⟨f,a⟩+⟨g,b⟩.

Milestones

  1. Weak duality (Remark 2.21, p. 385): ⟨C,P⟩≥∑i,jPi,j(fi+gj)=⟨f,a⟩+⟨g,b⟩\langle C,P\rangle\ge\sum_{i,j}P_{i,j}(f_i+g_j)=\langle f,a\rangle+\langle g,b\rangle⟨C,P⟩≥∑i,j​Pi,j​(fi​+gj​)=⟨f,a⟩+⟨g,b⟩ for P∈U(a,b)P\in\mathbf U(a,b)P∈U(a,b) and (f,g)∈R(C)(f,g)\in\mathbf R(C)(f,g)∈R(C).
  2. The CCC-transform is the best second potential (§3.2, p. 403): (f,fC)∈R(C)(f,f^C)\in\mathbf R(C)(f,fC)∈R(C), and g≤fCg\le f^Cg≤fC whenever (f,g)∈R(C)(f,g)\in\mathbf R(C)(f,g)∈R(C).
  3. Semi-dual inequality (§3.2, p. 403): ⟨f,a⟩+⟨g,b⟩≤⟨f,a⟩+⟨fC,b⟩\langle f,a\rangle+\langle g,b\rangle\le\langle f,a\rangle+\langle f^C,b\rangle⟨f,a⟩+⟨g,b⟩≤⟨f,a⟩+⟨fC,b⟩ for (f,g)∈R(C)(f,g)\in\mathbf R(C)(f,g)∈R(C).
  4. Proposition 3.1 (pp. 403–404): f≤f′⇒fC≥f′Cf\le f'\Rightarrow f^C\ge f'^Cf≤f′⇒fC≥f′C; fCCˉ≥ff^{C\bar C}\ge ffCCˉ≥f and gCˉC≥gg^{\bar CC}\ge ggCˉC≥g; fCCˉC=fCf^{C\bar CC}=f^CfCCˉC=fC.
  5. Proposition 3.3 (p. 405): complementary feasible solutions are primal and dual optimal.
  6. Proposition 3.2 (p. 404): for optimal P⋆P^\starP⋆ and (f⋆,g⋆)(f^\star,g^\star)(f⋆,g⋆), Pi,j⋆(Ci,j−fi⋆−gj⋆)=0P^\star_{i,j}(C_{i,j}-f^\star_i-g^\star_j)=0Pi,j⋆​(Ci,j​−fi⋆​−gj⋆​)=0 for all (i,j)(i,j)(i,j).
  7. The semi-dual (3.5) (p. 403): LC(a,b)=max⁡f∈Rn⟨f,a⟩+⟨fC,b⟩L_C(a,b)=\max_{f\in\mathbb R^n}\langle f,a\rangle+\langle f^C,b\rangleLC​(a,b)=maxf∈Rn​⟨f,a⟩+⟨fC,b⟩.

Milestones 6 and 7 are consequences of the goal; milestones 1 and 5 do not need it.

Significance

Proposition 2.4 is the finite-dimensional form of Kantorovich duality. It turns the optimal cost into a maximum over price vectors, so that any admissible pair of prices certifies a lower bound on LC(a,b)L_C(a,b)LC​(a,b) and an optimal pair certifies optimality of a plan through complementary slackness (Propositions 3.2 and 3.3). The CCC-transform reduces the dual to a concave maximization in one vector (3.5), which is the form used for semi-discrete transport and for stochastic dual methods; Proposition 3.1 shows that alternating CCC- and Cˉ\bar CCˉ-transforms stalls after one round.

All of these results are classical and proved in the book or by direct reference to linear programming. General-form LP strong duality, weak duality and complementary slackness are already machine-checked on the platform (LinearOptimization.lp_strong_duality and its siblings, from the Bertsimas–Tsitsiklis series); measure-theoretic weak Kantorovich duality is also on the platform with integrability hypotheses. What this mission adds is the book's own discrete statements in the book's notation, as a base that later missions of the series (dual ascent, auction, entropic duality) can cite, with the CCC-transform calculus of §3.2 formalized for real-valued finite costs.

Difficulty

Weak duality, the CCC-transform facts and Proposition 3.3 are finite computations with sums and minima. The content of the mission is the equality in Proposition 2.4 together with attainment of both the minimum and the maximum. Attainment of the minimum needs compactness and nonemptiness of U(a,b)\mathbf U(a,b)U(a,b); attainment of the maximum is not a compactness argument, since R(C)\mathbf R(C)R(C) is unbounded (it is invariant under (f,g)↦(f+t,g−t)(f,g)\mapsto(f+t,g-t)(f,g)↦(f+t,g−t)). Reducing Proposition 2.4 to the general LP statement requires an explicit translation of U(a,b)\mathbf U(a,b)U(a,b) and R(C)\mathbf R(C)R(C) into the general-form primal–dual pair, including the sign conventions of equality-constrained primal variables and free dual variables. The Lagrangian argument on p. 382–383 exchanges a min and a max without justification beyond "always possible for linear programs", so it does not yield a proof by itself.

Formalization scope

Indices are 0-based (Fin n, Fin m); matrices are Matrix (Fin n) (Fin m) ℝ; all quantities are real. Histograms are encoded as a ∈ stdSimplex ℝ (Fin n), the book's standing convention for (a,b)(a,b)(a,b), and every statement involving aaa or bbb carries it; this also forces n,m≥1n,m\ge1n,m≥1. Zero entries in aaa and bbb are allowed. Optimality of a plan and of a dual pair are predicates quantifying over the whole feasible set, never real ⨅/⨆, so no junk value from an empty or unbounded set can enter. The CCC-transforms are real infima over a finite index set; statements that use them without histograms assume n≥1n\ge1n≥1 (and m≥1m\ge1m≥1 where the Cˉ\bar CCˉ-transform appears), because Lean's infimum over an empty index is 000.

The goal cannot be satisfied trivially: it asserts existence of a plan that is optimal against every coupling and a pair that is optimal against every admissible pair, with equal values; dropping either optimality clause, or the equal-mass hypotheses, changes the theorem.

Two printed slips are corrected and disclosed in the item notes: Proposition 3.2 prints Ci,j−fi⋆+gj⋆C_{i,j}-f^\star_i+g^\star_jCi,j​−fi⋆​+gj⋆​ where its proof uses Ci,j−fi⋆−gj⋆C_{i,j}-f^\star_i-g^\star_jCi,j​−fi⋆​−gj⋆​, and Propositions 3.2 and 3.3 refer to the primal and dual as "(2.24)" and "(2.11)", meaning the discrete primal (2.11) and dual (2.20).

Useful infrastructure: the platform's general-form LP strong duality (included as a reference item), Mathlib's stdSimplex and finite infima. Contributions welcome: proofs of each milestone, a direct proof of Proposition 2.4 by reduction to the LP theorem, and alternative proofs of the goal.

Selected references

  • G. Peyré and M. Cuturi, Computational Optimal Transport, Foundations and Trends in Machine Learning 11(5–6):355–607, 2019. https://doi.org/10.1561/2200000073
  • D. Bertsimas and J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific, 1997 (Theorem 4.4, strong duality).
  • L. Kantorovich, On the transfer of masses, Doklady Akademii Nauk SSSR 37:199–201, 1942 (English translation: J. Math. Sci. 133:1381–1382, 2006). https://doi.org/10.1007/s10958-006-0049-2
10 thms4 active usersReviewed
🏆Completed
Dynamic ProgrammingMarkov ChainOptimization·Captain: mikedeng1

Optimality of (s, S) Policies in Inventory Models with Markovian Demand I: With Markov-Modulated Demand and Fixed Ordering Costs, a State-Dependent (s, S) Policy Is Optimal over a Finite HorizonResearch Paper

Inventory control when demand follows the state of the world

Single-item inventory theory asks how much stock to order each period when the order carries a fixed cost KKK on top of a per-unit cost and demand is random. With independent, identically distributed demand, Scarf (1960) showed that the optimal finite-horizon policy has the (s,S)(s,S)(s,S) form: when the stock falls below the reorder point sss, order up to the level SSS; otherwise order nothing. His proof introduced KKK-convexity.

In practice demand is rarely i.i.d. It depends on economic conditions, seasons, or the stage of a product's life cycle, which change over time and carry over from one period to the next. Song and Zipkin (1993) modeled this by letting a Markov chain of "world states" modulate the demand distribution. Sethi and Cheng (1997) treat a general discrete-time model of this kind. The demand density, the cost parameters and the surplus cost all depend on the period and on the current demand state. They prove that a state-dependent (s,S)(s,S)(s,S) policy is optimal over a finite horizon. They require no growth condition on the backlog cost, and they allow sss and SSS to be −∞-\infty−∞.

Timeline:

  • 1960: Scarf proves (s,S)(s,S)(s,S) optimality for i.i.d. demand using KKK-convexity, assuming a backlog cost that grows faster than the unit ordering cost.
  • 1966: Veinott gives an alternative proof under different assumptions.
  • 1993: Song and Zipkin treat a continuous-time model with Markov-modulated Poisson demand and linear costs, assuming p>αcip > \alpha c^ip>αci.
  • 1997: Sethi and Cheng prove the discrete-time result studied here, with general convex surplus costs.

Setting

There are LLL demand states III and periods 0,1,…,N0, 1, \dots, N0,1,…,N. The state iki_kik​ in period kkk follows a Markov chain with transition matrix P=(pij)P = (p_{ij})P=(pij​). Given ik=ii_k = iik​=i, the demand ξk≥0\xi_k \ge 0ξk​≥0 has density φi,k\varphi_{i,k}φi,k​, with mean at most MMM. At the start of period kkk an order uk≥0u_k \ge 0uk​≥0 is placed and arrives at once. Then demand is subtracted, and unmet demand is backlogged:

xk+1=xk+uk−ξk.x_{k+1} = x_k + u_k - \xi_k .xk+1​=xk​+uk​−ξk​.

Ordering costs ck(i,u)=Kkiδ(u)+ckiuc_k(i,u) = K^i_k\delta(u) + c^i_k uck​(i,u)=Kki​δ(u)+cki​u, with δ(u)=1\delta(u) = 1δ(u)=1 for u>0u > 0u>0 and 000 otherwise, and Kki,cki≥0K^i_k, c^i_k \ge 0Kki​,cki​≥0. A surplus xxx costs fk(i,x)f_k(i,x)fk​(i,x), a convex, nonnegative function with fk(i,0)=0f_k(i,0) = 0fk​(i,0)=0 and fk(i,x)≤C(1+∣x∣)f_k(i,x) \le C(1+|x|)fk​(i,x)≤C(1+∣x∣).

A decision U=(un,…,uN−1)U = (u_n, \dots, u_{N-1})U=(un​,…,uN−1​) may depend on the whole observed history: the states up to the current one and the past demands. The objective and the value function are

Jn(i,x;U)=E{∑k=nN[ck(ik,uk)+fk(ik,xk)]},vn(i,x)=inf⁡UJn(i,x;U).J_n(i,x;U) = E\Big\{\sum_{k=n}^{N} \big[c_k(i_k,u_k) + f_k(i_k,x_k)\big]\Big\}, \qquad v_n(i,x) = \inf_U J_n(i,x;U).Jn​(i,x;U)=E{k=n∑N​[ck​(ik​,uk​)+fk​(ik​,xk​)]},vn​(i,x)=Uinf​Jn​(i,x;U).

With

Fn+1(b)(i,y)=∑jpij∫0∞b(j,y−z)φi,n(z) dz,F_{n+1}(b)(i,y) = \sum_j p_{ij}\int_0^\infty b(j,y-z)\varphi_{i,n}(z)\,dz,Fn+1​(b)(i,y)=j∑​pij​∫0∞​b(j,y−z)φi,n​(z)dz,

the dynamic programming equations are vN=fNv_N = f_NvN​=fN​ and

vn(i,x)=fn(i,x)+inf⁡u≥0{cn(i,u)+Fn+1(vn+1)(i,x+u)}.v_n(i,x) = f_n(i,x) + \inf_{u\ge 0}\big\{c_n(i,u) + F_{n+1}(v_{n+1})(i,x+u)\big\}.vn​(i,x)=fn​(i,x)+u≥0inf​{cn​(i,u)+Fn+1​(vn+1​)(i,x+u)}.

A function ggg is KKK-convex if K+g(z+y)≥g(y)+z (g(y)−g(y−b))/bK + g(z+y) \ge g(y) + z\,(g(y)-g(y-b))/bK+g(z+y)≥g(y)+z(g(y)−g(y−b))/b for all z≥0z \ge 0z≥0, b>0b > 0b>0.

Formalization targets

Goal: Theorem 4.1

Assume, for n∈⟨0,N−1⟩n \in \langle 0, N-1\ranglen∈⟨0,N−1⟩ and all iii,

Kni≥∑jpijKn+1j≥0(4.1),cnix+Fn+1(fn+1)(i,x)→+∞ (x→∞)(4.2).K^i_n \ge \sum_j p_{ij}K^j_{n+1} \ge 0 \quad (4.1), \qquad c^i_n x + F_{n+1}(f_{n+1})(i,x) \to +\infty \ (x\to\infty) \quad (4.2).Kni​≥j∑​pij​Kn+1j​≥0(4.1),cni​x+Fn+1​(fn+1​)(i,x)→+∞ (x→∞)(4.2).

Then there are extended reals sni≤Sni<+∞s^i_n \le S^i_n < +\inftysni​≤Sni​<+∞ such that the rule

u^n(i,x)=(Sni−x) δ(sni−x)\hat u_n(i,x) = (S^i_n - x)\,\delta(s^i_n - x)u^n​(i,x)=(Sni​−x)δ(sni​−x)

(a) attains the infimum in the dynamic programming equation at every nnn, iii, xxx, and (b) generates a policy whose expected cost equals v0(i,x)v_0(i,x)v0​(i,x), the infimum over all admissible history-dependent policies.

Milestones

  1. Theorem 3.1: the DP functions lie in C1C_1C1​ (nonnegative, linear growth, uniformly continuous), and a measurable minimizer exists.
  2. Theorem 3.2: the verification theorem.
  3. Proposition 4.1(i)–(iv): calculus of KKK-convex functions.
  4. Proposition 4.2(i)–(vi): the one-period (s,S)(s,S)(s,S) structure of a KKK-convex, lower semicontinuous function on an interval [A,B][A,B][A,B] with extended-real endpoints.
  5. From the proof of Theorem 4.1: vn≥fnv_n \ge f_nvn​≥fn​; zn(i,y)=cniy+Fn+1(vn+1)(i,y)z_n(i,y) = c^i_n y + F_{n+1}(v_{n+1})(i,y)zn​(i,y)=cni​y+Fn+1​(vn+1​)(i,y) is coercive at +∞+\infty+∞ and uniformly continuous; vn(i,⋅)v_n(i,\cdot)vn​(i,⋅) and zn(i,⋅)z_n(i,\cdot)zn​(i,⋅) are KniK^i_nKni​-convex.

Significance

The theorem shows that the (s,S)(s,S)(s,S) form survives when demand is driven by a Markov environment, with fixed costs that may vary by state and period. The only coupling condition is (4.1), under which today's fixed cost is at least the expected fixed cost of the next period. It needs no assumption on the backlog side, such as p>cp > cp>c. When ordering never pays, the levels are −∞-\infty−∞. The result is the base case of the paper's later extensions: no-ordering periods, capacity limits, and the discounted infinite horizon (a separate mission in this series). Policies of this kind are what practitioners compute.

The result is proved in print. The paper delegates Theorems 3.1–3.2 to Beyer, Sethi and Taksar (1998). It contains gaps, which this mission records and repairs:

  1. Theorem 3.1's minimizer needs a coercivity condition.
  2. Proposition 4.2(v) fails for a merely lower semicontinuous ggg.
  3. Proposition 4.2's hypothesis g∗>−∞g^* > -\inftyg∗>−∞ is not checked for znz_nzn​, which can be unbounded below.

A machine-checked proof settles these points. No formalization of the theorem or of its verification step exists. Published platform results cover the narrower Lemma 4.2.1 of Bertsekas, for continuous functions coercive at both ends.

Difficulty

The KKK-convexity calculus is elementary. The difficulty lies elsewhere:

  1. Verification. Theorem 3.2 compares a feedback rule against every history-dependent, measurable policy. This needs a measurable-selection and dynamic-programming argument with integrals over paths of a Markov-modulated process. The natural induction must also control integrability at every step.
  2. Proposition 4.2 at its generality. ggg is only lower semicontinuous, [A,B][A,B][A,B] may be unbounded, and SSS or sss may equal −∞-\infty−∞. The case analysis behind (ii)–(iv) is delicate at the boundary.
  3. The unbounded-below case. When znz_nzn​ is unbounded below, Proposition 4.2 does not apply. One must show directly that never ordering is optimal, using KKK-convexity at a "record low" far to the left.

Formalization scope

Conventions committed to in Lean, namespace SethiChengSS.Finite:

  • Demand states are Fin L; periods are natural numbers with the paper's base.
  • A policy is a function of (t, states i_n…i_{n+t}, demands ξ_n…ξ_{n+t−1}). It is admissible if it is nonnegative and measurable in the demands. So it cannot see the current or future demand, and nothing restricts it to Markov rules.
  • Expectations use the joint density ∏pitit+1φit,t(ξt)\prod p_{i_t i_{t+1}}\varphi_{i_t,t}(\xi_t)∏pit​it+1​​φit​,t​(ξt​) with respect to counting measure times Lebesgue measure. This is the conditional-independence reading of "ξ_k dependent on i_k" under which (3.1) is the conditional expectation in (3.2).
  • JJJ and vvv are lintegral/⨅ in [0,∞][0,\infty][0,∞].
  • No order is placed in period NNN (uN=0u_N = 0uN​=0; (2.3) prints cNc_NcN​).
  • The DP is real-valued, with Bochner integrals and real infima. Theorem 3.1 shows they are genuine.
  • s,Ss, Ss,S are EReal, with S≠+∞S \ne +\inftyS=+∞ and S=−∞S = -\inftyS=−∞ only if s=−∞s = -\inftys=−∞.
  • Pins: (4.2) is added to the minimizer part of Theorem 3.1; continuity of ggg is added to Proposition 4.2(v).

Trivializations excluded:

  • The value is the infimum over all history-dependent measurable policies, never the DP solution itself.
  • Policies are neither restricted to Markov rules nor allowed to be non-measurable.
  • The densities are genuine probability densities and PPP is stochastic.
  • Real-valued s,Ss, Ss,S, which would make the goal false, are not required. Unbounded S=+∞S = +\inftyS=+∞, which would make the rule meaningless, is excluded.

K-convexity is the published definition BertsekasKConvex. The published Bertsekas lemmas (BertsekasDP.kconvex_of_convex, kconvex_combination, kconvex_expectation, kconvex_sS_structure) are included as references. Each is narrower than its counterpart here: positive coefficients only, finite support only, continuity and coercivity at both ends. The posed SongZipkinFluct.FixedCost.theorem3 concerns a different, continuous-time model with integer levels and linear costs and is not used.

Welcome contributions: reusable infrastructure for path-space expectations of Markov-modulated processes; verification theorems for finite-horizon DPs with history-dependent policies; the extended-real KKK-convexity lemmas of Proposition 4.2.

Selected references

  • S. P. Sethi and F. Cheng, Optimality of (s, S) policies in inventory models with Markovian demand, Operations Research 45(6), 931–939, 1997. https://doi.org/10.1287/opre.45.6.931
  • H. Scarf, The optimality of (S, s) policies in the dynamic inventory problem, in Mathematical Methods in the Social Sciences, Stanford University Press, 1960.
  • A. F. Veinott, On the optimality of (s, S) inventory policies: new conditions and a new proof, SIAM J. Appl. Math. 14(5), 1067–1083, 1966. https://doi.org/10.1137/0114086
  • J.-S. Song and P. Zipkin, Inventory control in a fluctuating demand environment, Operations Research 41(2), 351–370, 1993. https://doi.org/10.1287/opre.41.2.351
  • D. P. Bertsekas, Dynamic Programming and Stochastic Control, Academic Press, New York (cited by Sethi and Cheng as 1978; Lemma (d), p. 85).
  • D. Beyer, S. P. Sethi and M. Taksar, Inventory models with Markovian demands and cost functions of polynomial growth, J. Optim. Theory Appl. 98(2), 281–323, 1998.
20 thms4 active usersReviewed
🏆Completed
Stochastic Systems·Captain: mikedeng1

Little's Law as Viewed on Its 50th Anniversary: L = λW Holds Exactly Over Any Finite Window [0, T], With Nonzero Starting and Ending QueuesResearch Paper

Motivation

Little's Law, L=λWL = \lambda WL=λW, relates three averages of a queuing system: the average number of items in the system LLL, the average arrival rate λ\lambdaλ, and the average time an item spends in the system WWW. It is used throughout operations management and computer architecture, where two of the three quantities are measured and the third is inferred.

The classical theorems (Little 1961; the sample-path proofs of Stidham 1974 and later work) are stated over the whole time axis 0≤t<∞0 \le t < \infty0≤t<∞ and require the three averages to exist as limits. Every observation in practice is made over a finite period: a supermarket over one business day, a wine cellar over one year. In his fiftieth-anniversary survey (Little 2011), Little argues that for such data the right statement is a finite-window one, and proves in §2 that over any window [0,T][0, T][0,T] the relation holds exactly, with no limits, no stationarity and no assumption on queue discipline or service.

Timeline:

  • 1961, Little: L=λWL = \lambda WL=λW for stationary processes over an infinite horizon.
  • 1974, Stidham: a deterministic sample-path proof over [0,∞)[0, \infty)[0,∞), assuming the limits λ\lambdaλ and WWW exist.
  • 2008, Little and Graves: a textbook chapter on Little's Law, with the supermarket and wine-cellar examples that the 2011 paper reuses for finite windows.
  • 2011, Little: Theorems LL.1 and LL.2 and the class-wise corollaries, the content of this mission.

Setting

The object is one deterministic sample path observed over a window [0,T][0, T][0,T] with 0<T<∞0 < T < \infty0<T<∞. There are finitely many items i=1,…,Mi = 1, \dots, Mi=1,…,M. Item iii arrives at time aia_iai​ and leaves at time di≥aid_i \ge a_idi​≥ai​, and is in the system at time ttt exactly when ai≤t<dia_i \le t < d_iai​≤t<di​. An item still present at TTT is given any departure time di>Td_i > Tdi​>T.

  • n(t)=#{i:ai≤t<di}n(t) = \#\{i : a_i \le t < d_i\}n(t)=#{i:ai​≤t<di​} is the number of items in the system at time ttt (the published KellyStochasticNetworks.occupancy).
  • A=∫0Tn(t) dtA = \int_0^T n(t)\,dtA=∫0T​n(t)dt is the area under n(t)n(t)n(t) over [0,T][0, T][0,T].
  • Window empty at both ends (Theorem LL.1). Every item satisfies 0≤ai≤di≤T0 \le a_i \le d_i \le T0≤ai​≤di​≤T. Then NNN is the number of items arriving in [0,T][0, T][0,T], L=A/TL = A/TL=A/T, λ=N/T\lambda = N/Tλ=N/T, and W=1N∑i(di−ai)W = \frac1N\sum_i (d_i - a_i)W=N1​∑i​(di​−ai​) is the average wait.
  • Nonzero starting and ending queues (Theorem LL.2). S(T)S(T)S(T) is the cumulative number of items in the system over [0,T][0, T][0,T]: the items present at t=0t = 0t=0 (ai<0<dia_i < 0 < d_iai​<0<di​) plus those arriving in [0,T][0, T][0,T] (0≤ai≤T0 \le a_i \le T0≤ai​≤T). The time item iii spends in the system during [0,T][0, T][0,T] is
wi(T)=max⁡(0, min⁡(di,T)−max⁡(ai,0)).w_i(T) = \max\bigl(0,\ \min(d_i, T) - \max(a_i, 0)\bigr).wi​(T)=max(0, min(di​,T)−max(ai​,0)).

Then L(T)=A/TL(T) = A/TL(T)=A/T, λ(T)=S(T)/T\lambda(T) = S(T)/Tλ(T)=S(T)/T, and W(T)W(T)W(T) is the average of wi(T)w_i(T)wi​(T) over the S(T)S(T)S(T) counted items: the "average incremental age" added to the wines of a cellar during the year.

  • Classes. A class assignment ccc splits the items into mutually exclusive classes k=1,…,Kk = 1, \dots, Kk=1,…,K; Lk,λk,WkL_k, \lambda_k, W_kLk​,λk​,Wk​ are the quantities above computed from the class-kkk items alone.

Formalization targets

Goal: Theorem LL.2 (Little's Law over [0,T][0, T][0,T], p. 539)

L(T)=λ(T) W(T)L(T) = \lambda(T)\, W(T)L(T)=λ(T)W(T)

for every sample path with ai≤dia_i \le d_iai​≤di​ and every 0<T<∞0 < T < \infty0<T<∞, with items allowed at both ends of the window.

Milestones

  1. The area identity for a window empty at both ends, ∫0Tn(t) dt=∑i(di−ai)\int_0^T n(t)\,dt = \sum_i (d_i - a_i)∫0T​n(t)dt=∑i​(di​−ai​), the step W=A/NW = A/NW=A/N of the proof of LL.1 (already proved on the platform).
  2. Theorem LL.1 (p. 537): L=λWL = \lambda WL=λW for a window empty at 000 and TTT.
  3. The step W=A/S(T)W = A/S(T)W=A/S(T) of the proof of LL.2: A=∑iwi(T)A = \sum_{i} w_i(T)A=∑i​wi​(T) over the S(T)S(T)S(T) counted items.
  4. §2.2.3, Corollary (3)(a): Lk=λkWkL_k = \lambda_k W_kLk​=λk​Wk​ for every class kkk.
  5. §2.2.3, Corollary (3)(b): with λ=∑kλk\lambda = \sum_k \lambda_kλ=∑k​λk​, L=∑kLkL = \sum_k L_kL=∑k​Lk​ and W=∑k(λk/λ)WkW = \sum_k (\lambda_k/\lambda) W_kW=∑k​(λk​/λ)Wk​, L=λWL = \lambda WL=λW.

Significance

The result. Theorem LL.2 makes Little's Law a measurement identity: for any recorded day, month or year of operation, the three averages computed from the data satisfy L=λWL = \lambda WL=λW exactly, whether or not the system was ever empty (Corollary (1)) and whether or not there is any service operation (Corollary (2)). This is what licenses inferring an unmeasured parameter from two measured ones on finite data, the use Little describes in §4 for supermarkets, factories and computer systems. Corollary (3) extends the identity to market segments and to their aggregate, with the aggregate wait an arrival-weighted average of the class waits.

Formalizing it. The infinite-horizon sample-path law is already proved on the platform (queueing_general_littles_law, by wenxinzhang), but its sample paths have no item present at time 000 and its conclusion is a statement about limits. Only the empty-boundary area identity (milestone 1, from Kelly and Yudovina's Stochastic Networks) exists for finite windows. LL.1 as an identity of the three averages, LL.2, the truncated area identity and Corollary (3) are not formalized anywhere we know of. The mission produces finite-window definitions of S(T)S(T)S(T) and of the time in window that later queueing missions can reuse.

Difficulty

The algebra of the paper's proof is one line once W=A/S(T)W = A/S(T)W=A/S(T) is known. The content is that identity, which is an exchange of an integral over time with a sum over items in which every item's contribution is clipped to the window. An item present at 000 contributes only its time after 000; an item present at TTT only its time before TTT; items that leave before 000 or arrive after TTT contribute nothing and must not be counted in S(T)S(T)S(T). Getting the boundary conventions right, so that each counted item contributes exactly the length of [ai,di)∩[0,T][a_i, d_i) \cap [0, T][ai​,di​)∩[0,T], is where an informal argument is easiest to get wrong. The naive reading "WWW is AAA divided by the number of items" makes the theorem a tautology and is ruled out below.

Formalization scope

  • Items are indexed by Fin M with real epochs a d : Fin M → ℝ. All of LLL, λ\lambdaλ, WWW, S(T)S(T)S(T), NNN and AAA are defined from the items; none is a free variable.
  • Presence is the half-open interval [ai,di)[a_i, d_i)[ai​,di​), inherited from KellyStochasticNetworks.occupancy. An item arriving exactly at 000 is counted in S(T)S(T)S(T) once, as an arrival in [0,T][0, T][0,T]; the paper's remark S(0)=n(0)S(0) = n(0)S(0)=n(0) then holds except for an item that arrives and leaves at the same instant 000.
  • An item that has not left by TTT carries any di>Td_i > Tdi​>T; nothing after TTT enters any quantity.
  • LL.1's "empty at 000 and TTT" is read as 0≤ai≤di≤T0 \le a_i \le d_i \le T0≤ai​≤di​≤T for every item, the hypothesis of the referenced Kelly identity.
  • Added hypotheses relative to the page: 0<T0 < T0<T (the page's 0<T<∞0 < T < \infty0<T<∞) and ai≤dia_i \le d_iai​≤di​ (an item leaves no earlier than it arrives).
  • If N=0N = 0N=0 or S(T)=0S(T) = 0S(T)=0, the page's WWW is undefined; Lean's division gives 000 and both sides of every identity are 000, so no positivity hypothesis is added. In Corollary (3)(b), λ=0\lambda = 0λ=0 likewise gives 0=00 = 00=0.
  • No trivializing encoding. WWW and W(T)W(T)W(T) are averages of the individual waits; defining them as A/NA/NA/N or A/S(T)A/S(T)A/S(T), or taking L,λ,WL, \lambda, WL,λ,W as reals constrained by L=A/TL = A/TL=A/T, would make every target a one-line rewrite and is not what is stated.
  • Page references are to the journal's typeset version; printed page = PDF page + 535.

Contributions welcome: proofs of the milestones and goal, and reusable lemmas computing ∫0T\int_0^T∫0T​ of indicator functions of intervals.

Selected references

  • J. D. C. Little, Little's Law as Viewed on Its 50th Anniversary, Operations Research 59(3):536–549, 2011. https://doi.org/10.1287/opre.1110.0940
  • J. D. C. Little, A Proof for the Queuing Formula: L = λW, Operations Research 9(3):383–387, 1961. https://doi.org/10.1287/opre.9.3.383
  • S. Stidham, A Last Word on L = λW, Operations Research 22(2):417–421, 1974. https://doi.org/10.1287/opre.22.2.417
  • J. D. C. Little and S. C. Graves, Little's Law, in D. Chhajed and T. J. Lowe (eds.), Building Intuition, Springer, 2008, pp. 81–100. https://doi.org/10.1007/978-0-387-73699-0_5
  • F. Kelly and E. Yudovina, Stochastic Networks, Cambridge University Press, 2014, §2.5. https://doi.org/10.1017/CBO9781139565363
9 thms4 active usersReviewed
🏆Completed
Algorithmic Game TheoryOptimization·Captain: mikedeng1

How Bad is Selfish Routing? 1: A Nash Flow Costs No More Than Any Flow Feasible for Twice the Rates, for Continuous Nondecreasing LatenciesResearch Paper

Motivation

In a road or communication network, traffic is routed by many independent users, each choosing a route that is fastest for itself given the congestion caused by everyone else. The resulting Nash flow (also called a Wardrop equilibrium, after Wardrop 1952) need not minimize the total delay experienced by all users: Braess's paradox shows that adding a road can make everyone slower. Network designers, transport economists and the designers of Internet congestion-control protocols therefore ask how much total delay is lost to selfish routing, compared with a centrally optimized routing of the same traffic.

Roughgarden and Tardos (J. ACM 2002) gave the first general answers. For linear latency functions they showed that the loss is at most a factor 4/34/34/3. For general latency functions they showed that no such factor exists, and proved instead a bicriteria bound: selfish routing is never worse than optimal routing of twice the traffic. This mission formalizes that bicriteria bound (§3 of the paper) together with its variants for an arbitrary traffic increase (Theorem 3.2) and for approximate equilibria (§5.1).

Timeline:

  • 1952: Wardrop states the equilibrium principle for traffic networks.
  • 1968: Braess exhibits a network where adding an edge increases the equilibrium delay of every user.
  • 2000–2002: Roughgarden and Tardos prove the 4/34/34/3 bound for linear latencies and the bicriteria bound of Theorem 3.1 for all continuous nondecreasing latencies (conference version FOCS 2000, journal version 2002).

Setting

A network has edges eee and routes PPP; route PPP is a set of edges. There are kkk commodities i=1,…,ki = 1,\dots,ki=1,…,k; commodity iii is served by a set of routes Pi\mathcal P_iPi​ and has a rate ri>0r_i > 0ri​>0, the amount of traffic it must send. A flow assigns an amount fP≥0f_P \ge 0fP​≥0 to each route; it is feasible for the rates rrr if ∑P∈PifP=ri\sum_{P \in \mathcal P_i} f_P = r_i∑P∈Pi​​fP​=ri​ for every iii. The flow on edge eee is fe=∑P∋efPf_e = \sum_{P \ni e} f_Pfe​=∑P∋e​fP​.

Each edge has a latency function ℓe\ell_eℓe​, nonnegative, continuous and nondecreasing on [0,∞)[0,\infty)[0,∞): the delay of one unit of traffic crossing eee when the edge carries fef_efe​. The latency of a route is ℓP(f)=∑e∈Pℓe(fe)\ell_P(f) = \sum_{e \in P} \ell_e(f_e)ℓP​(f)=∑e∈P​ℓe​(fe​), and the cost of a flow is the total delay

C(f)=∑PℓP(f) fP=∑eℓe(fe) fe.C(f) = \sum_P \ell_P(f)\, f_P = \sum_e \ell_e(f_e)\, f_e .C(f)=P∑​ℓP​(f)fP​=e∑​ℓe​(fe​)fe​.

A feasible flow fff is at Nash equilibrium (Definition 2.1) if no amount δ>0\delta > 0δ>0 of the flow on a route P1∈PiP_1 \in \mathcal P_iP1​∈Pi​, moved to another route P2∈PiP_2 \in \mathcal P_iP2​∈Pi​, would find a latency on P2P_2P2​ smaller than the latency it had on P1P_1P1​. Lemma 2.2 shows this is equivalent to the Wardrop condition: every route carrying flow has minimum latency among the routes of its commodity. Definition 5.1 relaxes the equilibrium by a factor 1+ϵ1 + \epsilon1+ϵ.

In the Lean development: pathLatency A ℓ x r is ℓP(f)\ell_P(f)ℓP​(f), cost A ℓ x is C(f)C(f)C(f), IsNashFlow A s ℓ rate x is Definition 2.1, IsApproxNashFlow A s ℓ rate ε x is Definition 5.1, and barLatency is the auxiliary latency ℓˉ\bar\ellℓˉ of the proof of Theorem 3.1. Edge flows and feasibility are the published KellyStochasticNetworks.linkFlow and wardropFeasible.

Formalization targets

Goal: Theorem 3.1

If fff is a Nash flow for the rates rrr and f∗f^*f∗ is any flow feasible for the rates 2r2r2r, then

C(f)≤C(f∗).C(f) \le C(f^*).C(f)≤C(f∗).

The comparison is with every flow of twice the rates, not only an optimal one.

Milestones

The edge form of the cost (§2.1), Lemma 2.2 (Nash ⇔\Leftrightarrow⇔ Wardrop), Lemma 2.3 (C(f)=∑iLi(f)riC(f) = \sum_i L_i(f) r_iC(f)=∑i​Li​(f)ri​ for the common latency Li(f)L_i(f)Li​(f) of the flow-carrying routes of commodity iii), and the two displayed inequalities of the proof of Theorem 3.1:

∑eℓˉe(fe∗)fe∗−C(f∗)≤C(f),∑PℓˉP(f∗)fP∗≥2C(f).\sum_e \bar\ell_e(f^*_e) f^*_e - C(f^*) \le C(f), \qquad \sum_P \bar\ell_P(f^*) f^*_P \ge 2C(f).e∑​ℓˉe​(fe∗​)fe∗​−C(f∗)≤C(f),P∑​ℓˉP​(f∗)fP∗​≥2C(f).

Stronger and related statements

Theorem 3.2: for γ>0\gamma > 0γ>0 and f∗f^*f∗ feasible for (1+γ)r(1+\gamma) r(1+γ)r,

C(f)≤1γ C(f∗).C(f) \le \tfrac{1}{\gamma}\, C(f^*).C(f)≤γ1​C(f∗).

Lemma 5.2 (the approximate analogue of Lemma 2.2) and Theorem 5.3: for 0<ϵ<10 < \epsilon < 10<ϵ<1, an ϵ\epsilonϵ-approximate Nash flow fff and f∗f^*f∗ feasible for 2r2r2r,

C(f)≤1+ϵ1−ϵ C(f∗).C(f) \le \frac{1+\epsilon}{1-\epsilon}\, C(f^*).C(f)≤1−ϵ1+ϵ​C(f∗).

Significance

The price of anarchy, the ratio of the cost of a Nash flow to the minimum cost, is unbounded for general latencies: with two parallel links of latencies 111 and xpx^pxp, the ratio tends to infinity as ppp grows. Theorem 3.1 shows that the inefficiency of selfish routing can nevertheless always be offset by doubling capacity, in the sense that the optimal cost of twice the traffic is at least the Nash cost. Theorem 3.2 quantifies the trade-off for any traffic increase and is essentially tight. These results were among the first quantitative bounds of the price-of-anarchy programme and are a standard part of algorithmic game theory courses.

All statements here are proved in the paper (Theorem 5.3 with its proof omitted there as a close copy of Theorem 3.1). To our knowledge none has a machine-checked proof. This mission produces Lean proofs of Theorem 3.1, its supporting lemmas and its two variants, on top of the published Wardrop-equilibrium definitions of Kelly and Yudovina's chapter on road traffic; existence of a Wardrop equilibrium is already proved on the platform (KellyStochasticNetworks.wardrop_equilibrium_exists), so the goal's hypothesis is satisfiable.

Difficulty

The obvious comparison of fff with f∗f^*f∗ route by route fails: f∗f^*f∗ can place its traffic on edges whose latency is much lower than the Nash latencies, and nothing in the latency functions bounds how much lower, since they are only continuous and nondecreasing. A naive bound on the ratio C(f)/C(f∗)C(f)/C(f^*)C(f)/C(f∗) is ruled out by the xpx^pxp example above, so any proof must use the doubled rates essentially. In the Lean development, the passage from Definition 2.1 (a statement about perturbed flows) to the Wardrop condition needs a limit δ→0\delta \to 0δ→0 through continuity on [0,∞)[0,\infty)[0,∞), and the cost manipulations need exchanges of finite double sums over routes and edges.

Formalization scope

  • Routes, not graphs. Routes are arbitrary columns of a 0/10/10/1 edge–route incidence matrix A, each assigned a commodity by s. The paper's family of simple sis_isi​–tit_iti​ paths is one instance; the statements therefore hold for every route family (a disclosed generalization; the proofs use no graph structure). Two copies of one edge set serving two commodities are two routes.
  • Latencies are assumed nonnegative, nondecreasing and continuous on [0,∞)[0,\infty)[0,∞) only. Continuity replaces the paper's differentiability, as licensed by footnote 3 (p. 7) and by §3 (p. 11).
  • Rates are positive reals ri>0r_i > 0ri​>0. The number of commodities may be 000, the paper's k=0k = 0k=0, where all statements hold trivially.
  • Definition 2.1 is formalized with P1≠P2P_1 \ne P_2P1​=P2​ and 0<δ≤fP10 < \delta \le f_{P_1}0<δ≤fP1​​. The page writes δ∈[0,fP1]\delta \in [0, f_{P_1}]δ∈[0,fP1​​] and does not exclude P1=P2P_1 = P_2P1​=P2​; read literally, δ=0\delta = 0δ=0 would force every route of a commodity, used or not, to have the same latency (contradicting Lemma 2.2), and P1=P2P_1 = P_2P1​=P2​ would make Nash flows fail to exist for strictly increasing latencies. Definition 5.1 follows the same convention.
  • No ratios. Bounds are stated as C(f)≤c C(f∗)C(f) \le c\, C(f^*)C(f)≤cC(f∗) for every feasible f∗f^*f∗, never as a quotient of costs, so a zero optimal cost cannot make a statement trivial. The constants 1/γ1/\gamma1/γ and (1+ϵ)/(1−ϵ)(1+\epsilon)/(1-\epsilon)(1+ϵ)/(1−ϵ) carry γ>0\gamma > 0γ>0 and 0<ϵ<10 < \epsilon < 10<ϵ<1.
  • Feasibility for 2r2r2r is wardropFeasible s (fun i => 2 * rate i); for (1+γ)r(1+\gamma) r(1+γ)r it is wardropFeasible s (fun i => (1 + γ) * rate i). Replacing 2r2r2r by rrr would make the goal false (Pigou's example), and comparing only with an optimal f∗f^*f∗ would weaken it.
  • ℓˉ\bar\ellℓˉ is a function of the Nash flow's edge flows, not a free parameter.

Needed infrastructure: finite double-sum exchanges, a one-sided limit argument for continuous functions on [0,∞)[0,\infty)[0,∞), and bookkeeping of the perturbed flow f~\tilde ff~​. The lemmas relating Definition 2.1 to the Wardrop condition are reusable by every later result on nonatomic routing games, including the other missions of this series. Contributions of proofs of any milestone are welcome.

Selected references

  • T. Roughgarden and É. Tardos, How Bad is Selfish Routing?, Journal of the ACM 49(2), 236–259, 2002. https://doi.org/10.1145/506147.506153
  • J. G. Wardrop, Some Theoretical Aspects of Road Traffic Research, Proceedings of the Institution of Civil Engineers 1(3), 325–378, 1952. https://doi.org/10.1680/ipeds.1952.11259
  • D. Braess, A. Nagurney and T. Wakolbinger, On a Paradox of Traffic Planning (translation of Braess 1968), Transportation Science 39(4), 446–450, 2005. https://doi.org/10.1287/trsc.1050.0127
  • F. Kelly and E. Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 4. https://doi.org/10.1017/CBO9781107284722
13 thms4 active usersReviewed
🏆Completed
OptimizationProbability·Captain: mikedeng1

Consumer Returns Policies and Supply Chain Performance 1: With Valuations Learned after Purchase, the Seller's Optimal Policy Is p* = E max(V, s), F̄(q*) = (c − s)/(p* − s), r* = sResearch Paper

Motivation

Retailers accept large volumes of returned merchandise, and a common default is the full refund: a buyer who is unhappy with a product brings it back and gets the whole price back. Many consumers only learn how much they value a product after they have it at home — clothes that do not fit, a gadget that does not suit the buyer's needs. A returns policy therefore plays two roles at once. It raises the buyer's willingness to pay before purchase, and after purchase it decides which units stay with consumers and which go back to the seller to be salvaged.

Xuanming Su's paper Consumer Returns Policies and Supply Chain Performance (SSRN 1020451; published in Manufacturing & Service Operations Management 11(4), 2009, doi:10.1287/msom.1080.0240) puts this effect into a newsvendor model with random demand. The earlier literature it builds on, notably Che (1996) and Davis, Gerstner and Hagerty (1995), asked whether a seller should offer full refunds or no returns at all. Su's model makes the refund amount a separate decision variable. The answer it gives is closed-form and sharp: the optimal refund equals the salvage value. This mission formalizes Sections 3–4 of the paper: the single-seller model, the full-refund benchmark, and the optimal partial refund.

Setting

A seller stocks a quantity q≥0q \ge 0q≥0 before a selling season at unit cost ccc. Unsold and returned units are salvaged at value sss. Market demand is a nonnegative random variable XXX with law DDD, distribution function FFF and Fˉ=1−F\bar F = 1 - FFˉ=1−F. Each consumer who buys learns a valuation VVV after purchase. Valuations are i.i.d. with law ν\nuν and finite mean μ=EV\mu = EVμ=EV, and the standing assumption is μ>c>s≥0\mu > c > s \ge 0μ>c>s≥0.

The seller chooses a price ppp, a quantity qqq and a refund rrr. Once a consumer has bought, they keep the product if V≥rV \ge rV≥r and return it otherwise. The keep and return probabilities are

Gˉ(r)=P(V≥r),G(r)=P(V<r).\bar G(r) = \mathbb P(V \ge r), \qquad G(r) = \mathbb P(V < r).Gˉ(r)=P(V≥r),G(r)=P(V<r).

Before purchase a consumer's expected utility from buying is Emax⁡(V,r)E\max(V, r)Emax(V,r), so this is the reservation price. Every consumer buys if p≤Emax⁡(V,r)p \le E\max(V, r)p≤Emax(V,r) and nobody buys otherwise (the demand rule (6)). With Emin⁡(X,q)E\min(X, q)Emin(X,q) the expected sales of a stock qqq, the seller's expected profit (7)–(8) is

Π(p,q,r)=[(p−s)Gˉ(r)+(p−r)G(r)] Emin⁡(X,q)−(c−s)qif p≤Emax⁡(V,r),\Pi(p,q,r) = \big[(p-s)\bar G(r) + (p-r)G(r)\big]\,E\min(X,q) - (c-s)q \quad\text{if } p \le E\max(V,r),Π(p,q,r)=[(p−s)Gˉ(r)+(p−r)G(r)]Emin(X,q)−(c−s)qif p≤Emax(V,r),

and −(c−s)q-(c-s)q−(c−s)q otherwise. Two special cases serve as benchmarks. Under full refunds (r=pr = pr=p) every consumer buys and the profit is Πfull(p,q)=(p−s)Gˉ(p)Emin⁡(X,q)−(c−s)q\Pi_{\text{full}}(p,q) = (p-s)\bar G(p)E\min(X,q) - (c-s)qΠfull​(p,q)=(p−s)Gˉ(p)Emin(X,q)−(c−s)q, from (1)–(2). Under no returns the price is μ\muμ and the profit is Πno(q)=(μ−s)Emin⁡(X,q)−(c−s)q\Pi_{\text{no}}(q) = (\mu - s)E\min(X,q) - (c-s)qΠno​(q)=(μ−s)Emin(X,q)−(c−s)q, from (3). Social welfare (12)–(13) is the sum of consumer surplus and seller profit, SW(p,q,r)=∫[r,∞)(v−s) dν(v)⋅Emin⁡(X,q)−(c−s)qSW(p,q,r) = \int_{[r,\infty)}(v-s)\,d\nu(v)\cdot E\min(X,q) - (c-s)qSW(p,q,r)=∫[r,∞)​(v−s)dν(v)⋅Emin(X,q)−(c−s)q, again subject to the demand rule.

Formalization targets

Goal: Proposition 2 (p. 11)

With p∗=Emax⁡(V,s)p^* = E\max(V,s)p∗=Emax(V,s), r∗=sr^* = sr∗=s and any q∗q^*q∗ satisfying

Fˉ(q∗)=c−sEmax⁡(V,s)−s,\bar F(q^*) = \frac{c-s}{E\max(V,s) - s},Fˉ(q∗)=Emax(V,s)−sc−s​,

the triple (p∗,q∗,r∗)(p^*, q^*, r^*)(p∗,q∗,r∗) maximizes Π\PiΠ over all prices, all refunds and all quantities q≥0q \ge 0q≥0:

Π(p,q,r)≤Π(p∗,q∗,r∗).\Pi(p,q,r) \le \Pi(p^*, q^*, r^*).Π(p,q,r)≤Π(p∗,q∗,r∗).

Milestones

  1. The reservation price splits as Emax⁡(V,r)=rG(r)+∫[r,∞)v dνE\max(V,r) = rG(r) + \int_{[r,\infty)} v\,d\nuEmax(V,r)=rG(r)+∫[r,∞)​vdν, which is the step (28)→(29) of the proof (p. 26).
  2. At p=Emax⁡(V,r)p = E\max(V,r)p=Emax(V,r) the per-unit margin (p−s)Gˉ(r)+(p−r)G(r)(p-s)\bar G(r) + (p-r)G(r)(p−s)Gˉ(r)+(p−r)G(r) equals ∫[r,∞)(v−s) dν\int_{[r,\infty)}(v-s)\,d\nu∫[r,∞)​(v−s)dν, displays (27)–(30), p. 26.
  3. This integral is maximized at r=sr = sr=s (p. 26).
  4. Hence (Emax⁡(V,s),s)(E\max(V,s), s)(Emax(V,s),s) maximizes the margin subject to p≤Emax⁡(V,r)p \le E\max(V,r)p≤Emax(V,r), the first step of the proof (p. 26).
  5. The newsvendor critical fractile, a reference to a proved platform theorem (p. 26).
  6. Proposition 1(i) (p. 9): under full refunds, p∗∈arg⁡max⁡p(p−s)Gˉ(p)p^* \in \arg\max_p (p-s)\bar G(p)p∗∈argmaxp​(p−s)Gˉ(p) with Fˉ(q∗)=(c−s)/((p∗−s)Gˉ(p∗))\bar F(q^*) = (c-s)/((p^*-s)\bar G(p^*))Fˉ(q∗)=(c−s)/((p∗−s)Gˉ(p∗)) is optimal.
  7. Proposition 1(ii) at s=0s = 0s=0 (p. 26): with nonnegative valuations, no returns beats every full-refund policy.
  8. Corollary 1 (p. 12): the inequality (p−s)Gˉ(p)≤Emax⁡(V,s)−s(p-s)\bar G(p) \le E\max(V,s) - s(p−s)Gˉ(p)≤Emax(V,s)−s (p. 26), and its consequence that partial refunds earn at least the full-refund profit and, for strictly increasing FFF, stock at least as much.
  9. Corollary 2 (p. 13): the triple of Proposition 2 also maximizes social welfare.

Significance

The result separates two things that a full refund ties together: the price and the refund. Setting r=sr = sr=s sends every unit back to its more valuable use. Consumers who value the product above its salvage value keep it, and the rest return it to be salvaged. The price Emax⁡(V,s)E\max(V,s)Emax(V,s) then extracts the whole expected surplus. Consequences follow directly. Partial refunds dominate both full refunds and no returns (Corollary 1). They raise the stocking quantity, which benefits an upstream manufacturer paid per unit ordered. With valuation uncertainty resolved only after purchase, the monopoly outcome is welfare-maximizing (Corollary 2). Section 5 of the paper, formalized in the companion mission, uses Proposition 2's triple as the first-best target that supply chain contracts must implement.

The results are proved on paper with short arguments in Appendix A of the paper. None of them has a machine-checked proof. The mission's contribution is a formal model of consumer returns with the demand rule built in, plus checked versions of Propositions 1–2 and Corollaries 1–2 for general valuation laws (with atoms), not only densities.

Difficulty

The paper's proof treats the problem as separable: first maximize the margin over (p,r)(p, r)(p,r), then solve a newsvendor problem in qqq. Two steps that are routine on paper need care. First, the margin bound must hold over the whole constrained region p≤Emax⁡(V,r)p \le E\max(V, r)p≤Emax(V,r), including refunds above the price and negative prices. It rests on comparing ∫[r,∞)(v−s) dν\int_{[r,\infty)}(v-s)\,d\nu∫[r,∞)​(v−s)dν with ∫[s,∞)(v−s) dν\int_{[s,\infty)}(v-s)\,d\nu∫[s,∞)​(v−s)dν, which needs the closed half-line convention to hold up at atoms of ν\nuν. Second, the newsvendor step must be done for a demand law that may have atoms, where Fˉ\bar FFˉ has no inverse. Without the demand rule the problem is not separable at all: formula (8) alone is unbounded in ppp. Without nonnegativity of demand and quantity it is unbounded in the other direction.

Formalization scope

Lean represents all prices, refunds, costs, quantities and profits as real numbers. The valuation law is a probability measure ν on ℝ with integrable identity, so a density is not required. The demand law is a probability measure D on ℝ with D (Set.Iio 0) = 0. Gˉ(r)\bar G(r)Gˉ(r) is (ν (Set.Ici r)).toReal and G(r)G(r)G(r) is (ν (Set.Iio r)).toReal, following the page's tie rule (keep iff V≥rV \ge rV≥r). Emin⁡(X,q)E\min(X,q)Emin(X,q) is SupplyChainTheory.expSales D q from the published module SupplyChainTheory_contracts, and Fˉ\bar FFˉ is 1 - ProbabilityTheory.cdf D. Printed page numbers equal PDF page numbers throughout the source.

Committed conventions and readings:

  • Demand rule inside the objectives. Profit and welfare are zero-demand cash flows when p>Emax⁡(V,r)p > E\max(V,r)p>Emax(V,r).
  • Nonnegativity. Stocking quantities range over q≥0q \ge 0q≥0 and demand is nonnegative. Both are the page's words ("stocking quantity", "a mass of infinitesimal consumers"), and without them the profit is unbounded.
  • Salvage value. 0≤s0 \le s0≤s, as on p. 26.
  • Optimality, not uniqueness. Every optimum is stated as optimality of the page's closed-form triple. Uniqueness fails when ν\nuν has gaps: if ν\nuν puts no mass on [s,r)[s, r)[s,r), the refund rrr is optimal too.
  • No continuity of FFF for the goal. The goal assumes no continuity of FFF. Existence of q∗q^*q∗ is not claimed.
  • Corollary 1, quantity part. The quantity comparison assumes FFF strictly increasing on [0,∞)[0,\infty)[0,∞), which the proof's Fˉ−1\bar F^{-1}Fˉ−1 presumes. Without it the statement is false.
  • Proposition 1(ii) at s=0s = 0s=0. This case assumes nonnegative valuations. The "sufficiently low" form of Proposition 1(ii) is not formalized.

A trivializing formalization is ruled out: p∗p^*p∗ and r∗r^*r∗ are the explicit values Emax⁡(V,s)E\max(V,s)Emax(V,s) and sss, not an argmax chosen by Classical.choose. The maximization ranges over all (p,r)(p, r)(p,r) and all q≥0q \ge 0q≥0, not a set restricted to r=sr = sr=s. The returned-units cash flow (p−r+s)G(r)(p - r + s)G(r)(p−r+s)G(r) appears in the profit.

The newsvendor step reuses the proved platform theorem SupplyChainTheory.chain_optimal_fractile. The other pieces needed are elementary lemmas on integrals over half-lines and the concavity of q↦Emin⁡(X,q)q \mapsto E\min(X,q)q↦Emin(X,q). They are reusable for any newsvendor-type model. Proofs of any milestone, and a general-law newsvendor optimality lemma that does not need a continuous FFF, are welcome.

Selected references

  • X. Su, Consumer Returns Policies and Supply Chain Performance, SSRN working paper 1020451, version of August 2008. https://ssrn.com/abstract=1020451 — published in Manufacturing & Service Operations Management 11(4), 2009. https://doi.org/10.1287/msom.1080.0240
  • Y.-K. Che, Customer Return Policies for Experience Goods, Journal of Industrial Economics 44(1), 1996. https://doi.org/10.2307/2950560
  • S. Davis, E. Gerstner, M. Hagerty, Money Back Guarantees in Retailing: Matching Products to Consumer Tastes, Journal of Retailing 71(1), 1995. https://doi.org/10.1016/0022-4359(95)90010-1
13 thms4 active usersReviewed
🏆Completed
Machine LearningTheoretical Computer Science·Captain: mikedeng1

The Weighted Majority Algorithm 9: With η Anomalies Every Randomized Learner Can Be Forced to ½ opt(F, 0) + η Expected MistakesResearch Paper

Motivation

Prediction with expert advice asks a learner to predict a binary label on each of a sequence of trials, after seeing the predictions of a pool of candidate functions, and to make few more mistakes than the best member of the pool. Littlestone and Warmuth's The Weighted Majority Algorithm (Inform. and Comput. 108, 1994) gave the deterministic algorithm WM and its randomized variant WMR, and proved worst-case bounds that hold for every sequence of trials, with no probabilistic assumption on the data. Their §8 asks how good such bounds can possibly be when the data contain anomalies: disagreements with a candidate function, counted relative to the best-fitting member of the pool. Such disagreements can arise from noise in the instances or labels, or from instances that do not determine the label.

For the randomized algorithm WMR the expected number of mistakes grows, by Corollary 6.1 of the paper, at rate ln⁡(1/β)/(1−β)\ln(1/\beta)/(1-\beta)ln(1/β)/(1−β) per anomaly, which tends to 111 as β→1\beta \to 1β→1. Theorem 8.2 shows that no randomized learner, however it is built, can do better than rate 111: an adversary who fixes the sequence in advance can force half the noise-free optimum plus one expected mistake per anomaly. Together with the deterministic counterpart, Theorem 8.1 (rate 222), it locates the cost of label noise in online learning exactly. Mistake-bound lower bounds of this kind are a standard reference point for the analysis of online classification and of the expert-advice algorithms descended from WM (Cesa-Bianchi and Lugosi, Prediction, Learning, and Games, 2006).

Timeline: Littlestone (1988) characterized the optimal noise-free mistake bound opt(F,0)\mathrm{opt}(F,0)opt(F,0) by complete mistake trees (the Littlestone dimension); Littlestone and Warmuth (FOCS 1989; journal version 1994) introduced WM and WMR and proved Theorems 8.1 and 8.2.

Setting

Let XXX be an arbitrary domain and FFF a pool of functions X→{0,1}X \to \{0,1\}X→{0,1}, finite or infinite. A trial is a pair (x,y)(x,y)(x,y) with x∈Xx\in Xx∈X and y∈{0,1}y\in\{0,1\}y∈{0,1}; a sequence of trials is a finite list S=((x1,y1),…,(xT,yT))\mathcal S = ((x_1,y_1),\dots,(x_T,y_T))S=((x1​,y1​),…,(xT​,yT​)), in which an instance may repeat with different labels. The number of anomalies of S\mathcal SS with respect to fff is #{t:f(xt)≠yt}\#\{t : f(x_t)\ne y_t\}#{t:f(xt​)=yt​}, and SηS_\etaSη​ is the collection of sequences for which some f∈Ff\in Ff∈F has at most η\etaη anomalies.

A deterministic algorithm maps the past trials and the current instance to a predicted label; MA(S)M_A(\mathcal S)MA​(S) counts its wrong predictions, and

opt(F,η)=inf⁡Asup⁡S∈SηMA(S).\mathrm{opt}(F,\eta) = \inf_A \sup_{\mathcal S\in S_\eta} M_A(\mathcal S).opt(F,η)=Ainf​S∈Sη​sup​MA​(S).

A randomized algorithm uses random choices independent of the sequence. On a fixed sequence its behaviour at trial ttt is summarized by pt∈[0,1]p_t\in[0,1]pt​∈[0,1], the probability that it predicts 111 given the preceding instances and labels and the current instance; its expected number of mistakes is ∑t∣pt−yt∣\sum_t |p_t - y_t|∑t​∣pt​−yt​∣, and

optRAND(F,η)=inf⁡Asup⁡S∈Sη∑t=1T∣pt−yt∣,\mathrm{opt}_{\mathrm{RAND}}(F,\eta) = \inf_A \sup_{\mathcal S\in S_\eta} \sum_{t=1}^T |p_t-y_t|,optRAND​(F,η)=Ainf​S∈Sη​sup​t=1∑T​∣pt​−yt​∣,

the infimum ranging over all maps AAA from (past trials, current instance) to pt∈[0,1]p_t \in [0,1]pt​∈[0,1].

Formalization targets

Goal: Theorem 8.2 (p. 252)

For every pool FFF with ∣F∣>1|F|>1∣F∣>1 and every integer η≥0\eta\ge 0η≥0,

optRAND(F,η) ≥ 12 opt(F,0)+η.\mathrm{opt}_{\mathrm{RAND}}(F,\eta)\ \ge\ \tfrac12\,\mathrm{opt}(F,0)+\eta .optRAND​(F,η) ≥ 21​opt(F,0)+η.

Both sides live in [0,∞][0,\infty][0,∞]; when opt(F,0)=∞\mathrm{opt}(F,0)=\inftyopt(F,0)=∞ the statement says optRAND(F,η)=∞\mathrm{opt}_{\mathrm{RAND}}(F,\eta)=\inftyoptRAND​(F,η)=∞.

Milestone: complete mistake trees (§8, p. 251)

"For any pool of functions FFF there exists a complete opt(F,0)\mathrm{opt}(F,0)opt(F,0)-mistake tree" ([Lit88]). On the platform this is the proved Lemma 21.7 of Shalev-Shwartz and Ben-David, MSOA(F)≤Ldim(F)M_{\mathrm{SOA}}(F)\le \mathrm{Ldim}(F)MSOA​(F)≤Ldim(F), together with Lemma 21.6, Ldim(F)≤MA(F)\mathrm{Ldim}(F) \le M_A(F)Ldim(F)≤MA​(F) for every AAA; a tree shattered by FFF is a complete mistake tree.

Significance

The theorem shows that the expected-mistake bound of WMR is optimal in its dependence on the number of anomalies: its coefficient of η\etaη approaches 111, and no randomized learner achieves a smaller one on every pool with two or more functions. It also quantifies the advantage of randomization: the deterministic rate is 222 (Theorem 8.1), the randomized rate is 111, and the noise-free term halves. The lower bound is obliviously adversarial, since the sequence is chosen before any coin is tossed, so it applies equally to the stronger model in which the adversary adapts to the learner's predictions.

The result has been proved since 1994. To our knowledge it has no machine-checked proof; the platform holds the Littlestone-dimension characterization of the noise-free optimum (Shalev-Shwartz and Ben-David, Chapter 21) but no statement about anomalies or randomized lower bounds. This mission formalizes the definitions of anomalies, opt(F,η)\mathrm{opt}(F,\eta)opt(F,η) and optRAND(F,η)\mathrm{opt}_{\mathrm{RAND}}(F,\eta)optRAND​(F,η), and the theorem.

Difficulty

An adversary against a randomized learner cannot react to its predictions: the whole sequence, instances and labels, must be fixed in advance, so the adaptive adversary that proves the deterministic bound is not directly available. The lower bound must instead come from the learner's prediction probabilities, which depend only on the sequence prefix; the content of the theorem is that this information is enough to construct, for every learner, one fixed sequence that stays inside SηS_\etaSη​ while forcing the stated expected count. Taking the infimum over learners inside an extended-real supremum over sequences of every length adds bookkeeping when opt(F,0)\mathrm{opt}(F,0)opt(F,0) is infinite.

Formalization scope

Sequences are Fin T → X × Bool for every T : ℕ. Deterministic algorithms, the mistake count, shattered trees and the Littlestone dimension are reused from the published definition UnderstandingML_Online (OnlineAlg, mistakes, ShattersTree, ldim, soa); randomized algorithms are its OnlineAlgR X := List (X × Bool) → X → ℝ restricted by IsRandAlg to values in [0,1][0,1][0,1], and the expected mistake count is its cumLoss. η\etaη is a natural number. opt(F,η)\mathrm{opt}(F,\eta)opt(F,η) takes values in ℕ∞ and optRAND(F,η)\mathrm{opt}_{\mathrm{RAND}}(F,\eta)optRAND​(F,η) in ℝ≥0∞; the paper's "minimum" is read as an infimum. ∣F∣>1|F|>1∣F∣>1 is F.Nontrivial, which admits infinite pools.

The reduction of randomized algorithms to probability maps is the main modelling choice: on a fixed sequence the expected number of mistakes of any algorithm whose randomization is independent of the sequence equals ∑t∣pt−yt∣\sum_t|p_t-y_t|∑t​∣pt​−yt​∣, and every map with values in [0,1][0,1][0,1] is realized by such an algorithm, so the two infima coincide. Dropping the constraint pt∈[0,1]p_t\in[0,1]pt​∈[0,1], or quantifying only over deterministic algorithms, gives a different quantity and is ruled out.

Needed: the definitions above, and the existence of a complete opt(F,0)\mathrm{opt}(F,0)opt(F,0)-mistake tree, available through the proved platform theorems on ldim and soa. Lemmas relating mistakes along a path of a shattered tree to ldim, and a reusable statement that an oblivious adversary can force expected loss 12\tfrac1221​ per trial, would serve other lower bounds in the Littlestone–Warmuth series and in online learning generally. Contributions of such lemmas are welcome.

Selected references

  • N. Littlestone, M. K. Warmuth, The Weighted Majority Algorithm, Information and Computation 108(2):212–261, 1994. https://doi.org/10.1006/inco.1994.1009
  • N. Littlestone, Learning Quickly When Irrelevant Attributes Abound: A New Linear-Threshold Algorithm, Machine Learning 2:285–318, 1988. https://doi.org/10.1007/BF00116827
  • S. Shalev-Shwartz, S. Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 21. https://doi.org/10.1017/CBO9781107298019
  • N. Cesa-Bianchi, G. Lugosi, Prediction, Learning, and Games, Cambridge University Press, 2006. https://doi.org/10.1017/CBO9780511546921
7 thms4 active usersReviewed
🏆Completed
Optimization·Captain: mikedeng1

Monotone Comparative Statics III: f(x, t) + p·x Is Quasisupermodular with the Single Crossing Property for Every Price Vector p If and Only If f Is SupermodularResearch Paper

Motivation

Monotone comparative statics asks when the optimal choice of an agent moves in a predictable direction as a parameter of the problem changes: does a firm hire more of every input when the output price rises, does a monopolist raise its price when its marginal cost rises? Topkis (1978) gave a cardinal answer: if the objective f(x,t)f(x,t)f(x,t) is supermodular in the choice xxx and has increasing differences in (x,t)(x,t)(x,t), the set of maximizers is nondecreasing in ttt. Milgrom and Shannon (1994) replaced these conditions by ordinal ones, quasisupermodularity and the single crossing property, and showed in their Monotonicity Theorem that the ordinal conditions are both necessary and sufficient for the argmax to be monotone in the parameter and the constraint set.

Supermodularity is therefore never necessary for monotone comparative statics. Theorem 10 of Milgrom and Shannon identifies a setting where it is: when the objective must keep the ordinal properties after adding an arbitrary linear price term p⋅xp\cdot xp⋅x (or subtracting an arbitrary nonnegative cost w⋅xw\cdot xw⋅x), the only objectives that qualify are the supermodular ones. This is the situation of a price-taking firm whose revenue or cost is linear in its activity levels, and the result explains why supermodularity is the natural assumption in such models even though the ordinal theory does not require it.

Setting

Let XXX be a lattice: a partially ordered set in which every two elements x,yx, yx,y have a least upper bound x∨yx \vee yx∨y (join) and a greatest lower bound x∧yx \wedge yx∧y (meet). On Rn\mathbb{R}^nRn the order is componentwise, so x∨yx \vee yx∨y and x∧yx \wedge yx∧y are the componentwise maximum and minimum; on a product Rn×R\mathbb{R}^n \times \mathbb{R}Rn×R the order is the product order. For p,x∈Rnp, x \in \mathbb{R}^np,x∈Rn, p⋅x=∑ipixip \cdot x = \sum_i p_i x_ip⋅x=∑i​pi​xi​.

A function g:X→Rg : X \to \mathbb{R}g:X→R is supermodular if g(x)+g(y)≤g(x∨y)+g(x∧y)g(x) + g(y) \le g(x \vee y) + g(x \wedge y)g(x)+g(y)≤g(x∨y)+g(x∧y) for all x,y∈Xx, y \in Xx,y∈X. It is quasisupermodular if, for all x,y∈Xx, y \in Xx,y∈X, (i) g(x)≥g(x∧y)g(x) \ge g(x \wedge y)g(x)≥g(x∧y) implies g(x∨y)≥g(y)g(x \vee y) \ge g(y)g(x∨y)≥g(y), and (ii) g(x)>g(x∧y)g(x) > g(x \wedge y)g(x)>g(x∧y) implies g(x∨y)>g(y)g(x \vee y) > g(y)g(x∨y)>g(y).

Let TTT be a partially ordered set and f:X×T→Rf : X \times T \to \mathbb{R}f:X×T→R. The function fff has increasing differences in (x,t)(x, t)(x,t) if for x′≥x′′x' \ge x''x′≥x′′ the difference f(x′,t)−f(x′′,t)f(x', t) - f(x'', t)f(x′,t)−f(x′′,t) is nondecreasing in ttt. It has the single crossing property in (x;t)(x; t)(x;t) if for all x′>x′′x' > x''x′>x′′ and t′>t′′t' > t''t′>t′′, f(x′,t′′)>f(x′′,t′′)f(x', t'') > f(x'', t'')f(x′,t′′)>f(x′′,t′′) implies f(x′,t′)>f(x′′,t′)f(x', t') > f(x'', t')f(x′,t′)>f(x′′,t′), and f(x′,t′′)≥f(x′′,t′′)f(x', t'') \ge f(x'', t'')f(x′,t′′)≥f(x′′,t′′) implies f(x′,t′)≥f(x′′,t′)f(x', t') \ge f(x'', t')f(x′,t′)≥f(x′′,t′). The function fff is quasisupermodular in xxx if f(⋅,t)f(\cdot, t)f(⋅,t) is quasisupermodular for every ttt, and nondecreasing in xxx if f(⋅,t)f(\cdot, t)f(⋅,t) is nondecreasing for every ttt.

In the Lean development the domain Rn\mathbb{R}^nRn is Fin n → ℝ, fff is curried as f : (Fin n → ℝ) → ℝ → ℝ, p⋅xp \cdot xp⋅x is p ⬝ᵥ x, and supermodularity and increasing differences are the published Supermodularity.Monotonicity.SupermodularOn and IncreasingDifferencesOn with the domain Set.univ.

Formalization targets

Goal: Theorem 10 (p. 166)

Let f:Rn×R→Rf : \mathbb{R}^n \times \mathbb{R} \to \mathbb{R}f:Rn×R→R. Then

(∀p∈Rn: f(x,t)+p⋅x is quasisupermodular in x and single crossing in (x;t))  ⟺  f is supermodular,\Big(\forall p \in \mathbb{R}^n:\ f(x,t) + p\cdot x \text{ is quasisupermodular in } x \text{ and single crossing in } (x;t)\Big) \iff f \text{ is supermodular},(∀p∈Rn: f(x,t)+p⋅x is quasisupermodular in x and single crossing in (x;t))⟺f is supermodular,

and, if fff is nondecreasing in xxx,

(∀w∈Rn, w≥0: f(x,t)−w⋅x is quasisupermodular in x and single crossing in (x;t))  ⟺  f is supermodular.\Big(\forall w \in \mathbb{R}^n,\ w \ge 0:\ f(x,t) - w\cdot x \text{ is quasisupermodular in } x \text{ and single crossing in } (x;t)\Big) \iff f \text{ is supermodular}.(∀w∈Rn, w≥0: f(x,t)−w⋅x is quasisupermodular in x and single crossing in (x;t))⟺f is supermodular.

Here "fff is supermodular" means supermodular on the lattice Rn×R\mathbb{R}^n \times \mathbb{R}Rn×R, jointly in (x,t)(x,t)(x,t).

Milestones

  1. Every supermodular function on a lattice is quasisupermodular (p. 164, remark after Theorem 5).
  2. Every function with increasing differences in (x,t)(x, t)(x,t) has the single crossing property in (x;t)(x; t)(x;t) (same remark).
  3. If g+p⋅xg + p\cdot xg+p⋅x is quasisupermodular on Rn\mathbb{R}^nRn for every p∈Rnp \in \mathbb{R}^np∈Rn, then ggg is supermodular (the converse step of the proof of Theorem 10).
  4. The first sentence of Theorem 10 on its own.

Significance

The result. The Monotonicity Theorem shows that the ordinal conditions are exactly what monotone comparative statics needs for a single objective. Theorem 10 shows that the cardinal conditions are exactly what is needed for a family of objectives closed under linear prices. It separates two questions that are often conflated: whether a particular optimization problem has monotone solutions (ordinal), and whether a model's monotonicity conclusion is robust to the prices or costs the modeller adds to it (cardinal). The second sentence specializes to the economically common case of nonnegative input costs, where the restriction to w≥0w \ge 0w≥0 is offset by the monotonicity of fff.

Formalizing it. The result is proved in the paper, with the converse direction given in detail only for the step "supermodular in xxx" and the remaining cases left as "similar arguments". The mission produces machine-checked proofs of both equivalences, including the cases the paper does not write out: the recovery of increasing differences from the single crossing property under all price perturbations, and the recovery under the sign restriction w≥0w \ge 0w≥0. No part of Milgrom and Shannon's paper was found formalized on the platform when this mission was drafted; Topkis's supermodularity theory is partly available on the platform as the Supermodularity.* series.

Difficulty

The forward direction is a chain of short implications. The content is in the converse: from purely ordinal information about many functions one must recover a cardinal inequality. The single crossing property and quasisupermodularity only compare values of one function at two points, so a single perturbation can never yield an inequality between sums of four values; the argument must choose, for each violating configuration, a price vector that makes two of the four values tie, and the choice must be compatible with the sign constraint w≥0w \ge 0w≥0 in the second statement. That compatibility is where the hypothesis that fff is nondecreasing in xxx enters, and without it the second equivalence fails. A second subtlety is the decomposition of joint supermodularity on Rn×R\mathbb{R}^n \times \mathbb{R}Rn×R into supermodularity in xxx and increasing differences in (x,t)(x,t)(x,t), which the paper uses without statement; the platform does not yet have it.

Formalization scope

  • Rn\mathbb{R}^nRn is Fin n → ℝ with Mathlib's pointwise order and lattice operations; n≥0n \ge 0n≥0 is arbitrary. The product Rn×R\mathbb{R}^n \times \mathbb{R}Rn×R carries Mathlib's product order.
  • f:Rn×R→Rf : \mathbb{R}^n \times \mathbb{R} \to \mathbb{R}f:Rn×R→R is curried. "fff is supermodular" is read as joint supermodularity on Rn×R\mathbb{R}^n \times \mathbb{R}Rn×R, as the paper's proof confirms ("If fff is supermodular in (x,t)(x, t)(x,t) …"); with supermodularity in xxx only, the "if" direction would be false.
  • Quasisupermodularity and the single crossing property are the paper's definitions verbatim: strict comparisons x′>x′′x' > x''x′>x′′, t′>t′′t' > t''t′>t′′ in the single crossing property, both the weak and the strict implication in both notions, and quantification over all ordered pairs. The paper's single crossing property is stated for a lattice XXX; the Lean definition only uses the order.
  • The quantifier over ppp (and over w≥0w \ge 0w≥0) is universal and covers both properties at once. The second equivalence keeps −w⋅x- w\cdot x−w⋅x with w≥0w \ge 0w≥0 componentwise and has "nondecreasing in xxx" as its hypothesis only.
  • Trivializing formalizations are ruled out: an existential quantifier over ppp, supermodularity in xxx only on the right-hand side, merging the two sentences with p=−wp = -wp=−w, or dropping the monotonicity hypothesis would each state a different, false or weaker theorem.
  • The definitions QuasiSupermodularOn and SingleCrossing are shared with the two sibling missions on Milgrom and Shannon's Theorems 4 and 8 and will be merged with them. A lemma decomposing supermodularity on a product lattice into supermodularity in each factor and increasing differences would be reusable well beyond this mission; contributions of such general lattice lemmas are welcome.

Selected references

  • P. Milgrom and C. Shannon, Monotone Comparative Statics, Econometrica 62(1), 157–180, 1994. https://doi.org/10.2307/2951479
  • D. M. Topkis, Minimizing a Submodular Function on a Lattice, Operations Research 26(2), 305–321, 1978. https://doi.org/10.1287/opre.26.2.305
  • D. M. Topkis, Supermodularity and Complementarity, Princeton University Press, 1998. https://doi.org/10.1515/9781400822539
9 thms4 active usersReviewed
🏆Completed
Algorithmic Game TheoryProbability·Captain: mikedeng1

Worst-Case Equilibria I: On Two Identical Parallel Links Every Mixed Nash Equilibrium Has Expected Makespan at Most 3/2 Times the OptimumResearch Paper

Motivation

When many users share a network and each routes its own traffic selfishly, the outcome is a Nash equilibrium rather than a centrally optimized assignment. Koutsoupias and Papadimitriou, in Worst-case equilibria (STACS 1999; journal version 2009), proposed to measure the loss caused by this lack of coordination by the worst-case ratio between the social cost of an equilibrium and the social optimum. The ratio, first called the coordination ratio and now the price of anarchy, became a central quantity of algorithmic game theory, studied for routing, scheduling, congestion games, auctions and network design.

The paper analyses the simplest setting in which the question is nontrivial: agents sending traffic over parallel links, which is the same as scheduling independent jobs on parallel machines with the jobs choosing their machines. For two identical links it determines the price of anarchy exactly.

Timeline.

  • 1999: Koutsoupias and Papadimitriou introduce the model and the measure; on two identical links the price of anarchy is 3/23/23/2, and on mmm identical links it is Ω(log⁡m/log⁡log⁡m)\Omega(\log m/\log\log m)Ω(logm/loglogm), with a nonmatching upper bound in the conference version.
  • 2002: Czumaj and Vöcking, and independently Koutsoupias, Mavronicolas and Spirakis, show that this lower bound is tight for mmm identical links, Θ(log⁡m/log⁡log⁡m)\Theta(\log m/\log\log m)Θ(logm/loglogm); Czumaj and Vöcking also give tight bounds for links of different speeds.

Setting

There are nnn agents and mmm identical parallel links. Agent iii has an amount of traffic wi>0w_i>0wi​>0 to send over one link. A pure profile s=(j1,…,jn)∈{1,…,m}ns=(j_1,\dots,j_n)\in\{1,\dots,m\}^ns=(j1​,…,jn​)∈{1,…,m}n assigns a link to each agent; the load of link jjj is ℓj(s)=∑k: jk=jwk\ell_j(s)=\sum_{k:\,j_k=j}w_kℓj​(s)=∑k:jk​=j​wk​, and the cost of agent iii is ℓji(s)\ell_{j_i}(s)ℓji​​(s), the traffic on its own link.

A mixed strategy of agent iii is a probability distribution (pi1,…,pim)(p_i^1,\dots,p_i^m)(pi1​,…,pim​) on the links; the agents randomize independently, so sss occurs with probability ∏ipiji\prod_i p_i^{j_i}∏i​piji​​. The cost to agent iii of a mixed profile ppp is its expected cost cic_ici​. The profile ppp is a Nash equilibrium if no agent can lower its expected cost by changing its own distribution while the others keep theirs.

The expected traffic on link jjj is Mj=∑ipijwiM^j=\sum_i p_i^jw_iMj=∑i​pij​wi​, and the cost of agent iii when its traffic is assigned to link jjj is cij=wi+∑k≠ipkjwk=Mj+(1−pij)wic_i^j=w_i+\sum_{k\ne i}p_k^jw_k=M^j+(1-p_i^j)w_icij​=wi​+∑k=i​pkj​wk​=Mj+(1−pij​)wi​.

The social cost of ppp is the expected maximum load,

cost=∑j1=1m⋯∑jn=1m∏i=1npiji max⁡j∑k: jk=jwk,\mathrm{cost}=\sum_{j_1=1}^m\cdots\sum_{j_n=1}^m\prod_{i=1}^n p_i^{j_i}\,\max_{j}\sum_{k:\,j_k=j}w_k ,cost=j1​=1∑m​⋯jn​=1∑m​i=1∏n​piji​​jmax​k:jk​=j∑​wk​,

and the social optimum opt\mathrm{opt}opt is the least maximum load over all pure assignments, the optimum of the mmm-way partition problem for w1,…,wnw_1,\dots,w_nw1​,…,wn​.

The proof of the main theorem uses two further quantities: the contribution probability qiq_iqi​, the probability that agent iii is on the (lexicographically first) link of maximum load, and the collision probability tik=∑jpijpkjt_{ik}=\sum_jp_i^jp_k^jtik​=∑j​pij​pkj​ of agents iii and kkk.

Formalization targets

Goal: Theorem 3

For any number nnn of agents with positive traffics and m=2m=2m=2 identical links, every Nash equilibrium ppp satisfies

cost(p) ≤ 32 opt.\mathrm{cost}(p)\ \le\ \frac32\,\mathrm{opt}.cost(p) ≤ 23​opt.

Milestones

In the order the proof of Theorem 3 uses them:

  1. Equation (2): cij=wi+∑k≠ipkjwk=Mj+(1−pij)wic_i^j=w_i+\sum_{k\ne i}p_k^jw_k=M^j+(1-p_i^j)w_icij​=wi​+∑k=i​pkj​wk​=Mj+(1−pij​)wi​ for every mixed profile.
  2. The support property: at an equilibrium agent iii uses only links minimizing cijc_i^jcij​, and ci=min⁡jcijc_i=\min_jc_i^jci​=minj​cij​.
  3. The lower bounds opt≥max⁡{wi, ∑kwk/m}\mathrm{opt}\ge\max\{w_i,\ \sum_kw_k/m\}opt≥max{wi​, ∑k​wk​/m}.
  4. Theorem 2 with (6): at every equilibrium on mmm identical links,
ci ≤ ∑kwkm+m−1m wi ≤ (2−1m)opt.c_i\ \le\ \frac{\sum_kw_k}{m}+\frac{m-1}{m}\,w_i\ \le\ \Big(2-\frac1m\Big)\mathrm{opt}.ci​ ≤ m∑k​wk​​+mm−1​wi​ ≤ (2−m1​)opt.
  1. cost=∑iqiwi\mathrm{cost}=\sum_iq_iw_icost=∑i​qi​wi​.
  2. Inequality (7): qi+qk≤1+tikq_i+q_k\le1+t_{ik}qi​+qk​≤1+tik​ for distinct agents i,ki,ki,k.
  3. ci=wi+∑k≠itikwkc_i=w_i+\sum_{k\ne i}t_{ik}w_kci​=wi​+∑k=i​tik​wk​.
  4. On two links, at every equilibrium, ∑k≠iqkwk≤(32−qi)∑k≠iwk\sum_{k\ne i}q_kw_k\le\big(\tfrac32-q_i\big)\sum_{k\ne i}w_k∑k=i​qk​wk​≤(23​−qi​)∑k=i​wk​.

Companion items

The second sentence of Theorem 1 (on two links some equilibrium has cost=32 opt>0\mathrm{cost}=\tfrac32\,\mathrm{opt}>0cost=23​opt>0), which shows the goal is tight, and the fact from its proof that the uniform profile pij=1/mp_i^j=1/mpij​=1/m of mmm unit agents on mmm links is an equilibrium.

Significance

Theorem 3 and the instance of Theorem 1 show that on two identical links selfish randomized routing never costs more than 50%50\%50% above the optimum, whatever the number of agents and their traffics, and that this factor is attained. Theorem 2 gives a per-agent guarantee for any number of links: the expected cost an individual agent experiences at any equilibrium is within 2−1/m2-1/m2−1/m of the optimum, the same factor as Graham's list-scheduling bound. Together they separate the individual and the social view: individual costs stay within a constant, while the expected maximum load, the social cost, can be a factor Ω(log⁡m/log⁡log⁡m)\Omega(\log m/\log\log m)Ω(logm/loglogm) above the optimum.

The results are proved in the paper. As far as is known they have not been machine-checked. Formalizing them produces a verified model of mixed equilibria in load balancing games, with the social cost as an expected maximum over the product distribution, which is the starting point of the later literature on links with speeds, on general congestion games and on smoothness arguments. The intermediate identities (the contribution and collision probabilities) are reusable for any expected-maximum bound over independent random assignments.

Difficulty

The social cost is an expectation of a maximum over mnm^nmn outcomes, and the equilibrium probabilities are given only implicitly, as the solution of a linear system determined by the agents' supports. The natural first idea, to bound the expected maximum load by the maximum expected load max⁡jMj\max_jM^jmaxj​Mj, fails: the expected maximum can be much larger, and bounding it is exactly what makes the problem hard (for mmm links it grows like the maximum occupancy of mmm balls in mmm bins). Computing the equilibrium probabilities explicitly does not help either; the paper gives them for two links and notes it does not see how to use them to bound the social cost. The argument has to relate the per-agent expected costs, which the equilibrium condition controls, to the expected maximum, which it does not control directly.

Formalization scope

Agents are Fin n and links Fin m (the goal uses Fin 2); the paper's agent iii and link jjj are indices i−1i-1i−1, j−1j-1j−1. A mixed profile is p : Fin n → Fin m → ℝ with p i j =pij=p_i^j=pij​. The game is built on the published definitions agt_games (AGT.IsMixedNash, AGT.expectedPayoff, AGT.profileProb). That vocabulary maximizes payoffs, so the payoff of an agent is minus the load of its link, and the expected cost is minus the expected payoff. The equilibrium is the full mixed Nash condition, including that each pip_ipi​ is a probability distribution; the support description is a milestone, not the definition. The social cost is the expected maximum load over the product distribution, never the maximum expected load. opt\mathrm{opt}opt is a minimum over pure assignments, with the number of links an explicit argument. The lexicographically first maximum link is the lowest-indexed link of maximum load.

Traffics are positive, as in the paper's model; some milestones need only nonnegative traffics or no sign condition, and say so. Statements over mmm links assume m≥1m\ge1m≥1. Price-of-anarchy statements are inequalities cost≤c⋅opt\mathrm{cost}\le c\cdot\mathrm{opt}cost≤c⋅opt for every equilibrium, never a quotient cost/opt\mathrm{cost}/\mathrm{opt}cost/opt, whose value at opt=0\mathrm{opt}=0opt=0 would be a junk 000. A formalization in which the social cost is max⁡jMj\max_jM^jmaxj​Mj, or in which the equilibrium is only a support condition without the requirement that the pip_ipi​ be distributions, would trivialize or falsify the goal and is ruled out by these definitions.

A complete development needs finite sums over the mnm^nmn pure profiles, marginalization of product distributions, and the case analysis of the final step. The marginalization lemmas (summing out the other agents, collision probabilities of independent choices) are reusable beyond this mission. Proofs of the milestones, alternative arguments for Theorem 3, and a proof of Theorem 2 for its own sake are all welcome.

Page numbers are those of the PDF file of the journal version; it prints a page number only on its first page.

Selected references

  • E. Koutsoupias and C. Papadimitriou, Worst-case equilibria, STACS 1999, LNCS 1563, pp. 404–413. https://doi.org/10.1007/3-540-49116-3_38 (this mission cites the authors' journal version of 2009, Computer Science Review 3(2), 65–69, https://doi.org/10.1016/j.cosrev.2009.04.003)
  • A. Czumaj and B. Vöcking, Tight bounds for worst-case equilibria, SODA 2002, pp. 413–420; ACM Transactions on Algorithms 3(1), 2007. https://doi.org/10.1145/1186810.1186814
  • E. Koutsoupias, M. Mavronicolas and P. Spirakis, Approximate equilibria and ball fusion, Theory of Computing Systems 36, 683–693, 2003. https://doi.org/10.1007/s00224-003-1131-5
  • R. L. Graham, Bounds on multiprocessing timing anomalies, SIAM Journal on Applied Mathematics 17(2), 416–429, 1969. https://doi.org/10.1137/0117039
11 thms4 active usersReviewed
🏆Completed
Dynamic ProgrammingLinear OptimizationMarkov Chain+1·Captain: mikedeng1

Linear Programming and Finite Markovian Control Problems VI: Constrained Average Reward — the Limit Points of the Expected State-Action Frequencies Form the Linear Programming PolytopeTextbook

Motivation

A controller of a finite Markov chain often cares about more than one long-run quantity: an inventory manager wants a high average profit while keeping the long-run fraction of stock-outs below a target; a communication network maximizes throughput subject to bounds on average delay or power. Such problems are constrained Markov decision problems: maximize one average reward while other averages, all linear in the long-run frequencies of state-action pairs, are kept below given bounds. Unlike unconstrained problems, they need not have a pure stationary optimal policy, and in general not even a stationary one.

Derman (Finite State Markovian Decision Processes, 1970, Ch. 7) treated the case in which every stationary policy induces a chain with one ergodic class, and solved it by linear programming. Derman and Veinott (1972) proposed a decomposition algorithm for the general multichain case, remarking that until the faces of the relevant polytope are known, routine use of the simplex method is not possible. Section 4.7 of Kallenberg's 1983 monograph (CWI repository) describes that polytope explicitly for the multichain case and derives from one linear program an optimal Markov policy, with conditions under which a stationary optimal policy can be read off. Kallenberg notes that Veinott knew the characterization of the polytope by 1973.

Setting

A finite Markov decision model has a finite state set EEE, for each state iii a finite nonempty set A(i)A(i)A(i) of actions, rewards riar_{ia}ria​ and transition probabilities piaj≥0p_{iaj}\ge0piaj​≥0 with ∑jpiaj=1\sum_j p_{iaj}=1∑j​piaj​=1. A policy RRR chooses, at each time t=1,2,…t=1,2,\dotst=1,2,…, an action in A(it)A(i_t)A(it​) at random, with probabilities that may depend on the entire history (i1,a1,…,at−1,it)(i_1,a_1,\dots,a_{t-1},i_t)(i1​,a1​,…,at−1​,it​). Special classes are the Markov policies CMC_MCM​ (the rule at time ttt ignores the past), the stationary policies CSC_SCS​, written π∞\pi^\inftyπ∞ (one rule π\piπ, with πia≥0\pi_{ia}\ge0πia​≥0 and ∑aπia=1\sum_a\pi_{ia}=1∑a​πia​=1, at every time), and the pure stationary policies CDC_DCD​, written f∞f^\inftyf∞ with f(i)∈A(i)f(i)\in A(i)f(i)∈A(i). All policies form the class CCC.

Fix an initial distribution β\betaβ: βj≥0\beta_j\ge0βj​≥0 and ∑jβj=1\sum_j\beta_j=1∑j​βj​=1, with zeros allowed. The expected state-action frequencies in the first TTT periods are

xjaT(R)=1T∑t=1T∑iβi PR(Xt=j, Yt=a∣X1=i).x^T_{ja}(R)=\frac1T\sum_{t=1}^T\sum_i\beta_i\,\mathbb P_R(X_t=j,\ Y_t=a\mid X_1=i).xjaT​(R)=T1​t=1∑T​i∑​βi​PR​(Xt​=j, Yt​=a∣X1​=i).

X(R)X(R)X(R) is the set of limit points of {xT(R)}T≥1\{x^T(R)\}_{T\ge1}{xT(R)}T≥1​, and C1C_1C1​ the class of policies with exactly one limit point x(R)x(R)x(R). For a class C′C'C′, L(C′)L(C')L(C′) collects the limit points of all R∈C′R\in C'R∈C′, giving LLL, L(M)L(M)L(M), L(C)L(C)L(C) (for C1C_1C1​), L(S)L(S)L(S) and L(D)L(D)L(D). For a stationary π\piπ, P(π)ij=∑apiajπiaP(\pi)_{ij}=\sum_a p_{iaj}\pi_{ia}P(π)ij​=∑a​piaj​πia​, P∗(π)P^*(\pi)P∗(π) is its Cesàro limit, and xja(π)=[βTP∗(π)]jπjax_{ja}(\pi)=[\beta^TP^*(\pi)]_j\pi_{ja}xja​(π)=[βTP∗(π)]j​πja​.

The polytope XXX is the set of xxx for which some yyy satisfies

∑i∑a(δij−piaj)xia=0,∑axja+∑i∑a(δij−piaj)yia=βj(j∈E),x,y≥0.\sum_i\sum_a(\delta_{ij}-p_{iaj})x_{ia}=0,\qquad\sum_a x_{ja}+\sum_i\sum_a(\delta_{ij}-p_{iaj})y_{ia}=\beta_j\quad(j\in E),\qquad x,y\ge0.i∑​a∑​(δij​−piaj​)xia​=0,a∑​xja​+i∑​a∑​(δij​−piaj​)yia​=βj​(j∈E),x,y≥0.

Given constraint data qiakq_{iak}qiak​ and bkb_kbk​, the constrained problem (4.7.5) is sup⁡R∈C1{ϕ(β,R)∣∑i∑aqiakxia(R)≤bk, k=1,…,m}\sup_{R\in C_1}\{\phi(\beta,R)\mid\sum_i\sum_aq_{iak}x_{ia}(R)\le b_k,\ k=1,\dots,m\}supR∈C1​​{ϕ(β,R)∣∑i​∑a​qiak​xia​(R)≤bk​, k=1,…,m}, with ϕ(β,R)\phi(\beta,R)ϕ(β,R) the lim inf of the average expected reward, and the linear program (4.7.6) maximizes ∑i∑ariaxia\sum_i\sum_ar_{ia}x_{ia}∑i​∑a​ria​xia​ over XXX's constraints together with ∑i∑aqiakxia≤bk\sum_i\sum_aq_{iak}x_{ia}\le b_k∑i​∑a​qiak​xia​≤bk​.

Formalization targets

Goal: Theorem 4.7.2

L=X.L=X.L=X.

Every limit point of the expected state-action frequencies of any policy lies in the polytope XXX, and every point of XXX is such a limit point.

Milestones

  • Theorem 4.7.1. L(D)‾=L(S)‾=L(C)=L(M)=L\overline{L(D)}=\overline{L(S)}=L(C)=L(M)=LL(D)​=L(S)​=L(C)=L(M)=L, the bar being the closed convex hull.
  • Lemma 4.7.1. For R∈C1R\in C_1R∈C1​, xja(R)=lim⁡α↑1(1−α)∑t≥1αt−1∑iβiPR(Xt=j,Yt=a∣X1=i)x_{ja}(R)=\lim_{\alpha\uparrow1}(1-\alpha)\sum_{t\ge1}\alpha^{t-1}\sum_i\beta_i\mathbb P_R(X_t=j,Y_t=a\mid X_1=i)xja​(R)=limα↑1​(1−α)∑t≥1​αt−1∑i​βi​PR​(Xt​=j,Yt​=a∣X1​=i).
  • Theorem 4.7.3. Problems (4.7.5) and (4.7.6) have the same feasibility and the same optimum; an optimal policy yields an optimal x(R)x(R)x(R); a Markov policy reproducing a mixture of pure stationary policies with the optimal xxx is optimal.
  • Theorems 4.7.4–4.7.5. If the stationary rule π∗\pi^*π∗ built from an optimal (x∗,y∗)(x^*,y^*)(x∗,y∗) by (4.7.14) satisfies x∗=x(π∗)x^*=x(\pi^*)x∗=x(π∗), then (π∗)∞(\pi^*)^\infty(π∗)∞ is optimal; two sufficient conditions for x∗=x(π∗)x^*=x(\pi^*)x∗=x(π∗).
  • Theorem 4.7.9. If π↦x(π)\pi\mapsto x(\pi)π↦x(π) is continuous, then X=L(S)X=L(S)X=L(S).
  • Lemma 4.6.1 and Theorem 4.7.10. If every pure stationary policy is unichain, so is every stationary one, and then X=L(S)X=L(S)X=L(S).

Significance

The goal identifies the set of achievable long-run behaviours of a multichain Markov decision process with a polytope given by 2∣E∣2|E|2∣E∣ linear equations. Any objective and any constraints that are linear in the frequencies then become one linear program (Theorem 4.7.3), and optimal policies are recovered from its solution. This is the basis of the linear programming approach to constrained average-reward control, later developed by Altman (Constrained Markov Decision Processes, 1999) and others.

The results of this section are proved in the monograph; none has a machine-checked proof. The mission produces a formal account of state-action frequencies under history-dependent policies on a finite model, their limit points, and the multichain LP polytope. The unichain special case is related to Derman's statements posed on the platform (DermanSeqDecisions.LinProg.*, completely ergodic models); the multichain statements here are not posed elsewhere.

Difficulty

The inclusion L⊆XL\subseteq XL⊆X needs a limit point of a history-dependent policy to satisfy the second family of equations, which involves the auxiliary vector yyy; for stationary policies yyy comes from the deviation matrix, but a general policy has no such matrix. The reverse inclusion cannot be obtained by realizing each x∈Xx\in Xx∈X with a stationary policy: Example 4.7.1 of the book exhibits a model where L(S)≠XL(S)\neq XL(S)=X, and a point of L(D)L(D)L(D) that is not an extreme point of XXX. The natural candidate, the stationary rule xia/∑axiax_{ia}/\sum_ax_{ia}xia​/∑a​xia​, is not defined on states with ∑axia=0\sum_a x_{ia}=0∑a​xia​=0, and filling in yyy there does not in general reproduce xxx (Theorem 4.7.5 gives conditions under which it does). In the converse direction, frequencies of general policies need not converge, so arguments must work with all limit points, not with a limit.

Formalization scope

  • The model is the platform definition MarkovDecisionProcesses_AverageReward (reference item): StationaryMDP S A with finite state type S, a common finite action type A, a nonempty admissible Finset per state, rewards, and transition rows that sum to one; policies are its AvgHRPolicy, history-dependent and randomized. Frequency vectors are indexed by the admissible pairs.
  • PR(Xt=j,Yt=a∣X1=i)\mathbb P_R(X_t=j,Y_t=a\mid X_1=i)PR​(Xt​=j,Yt​=a∣X1​=i) is a finite recursive sum over histories; no measure theory is used. Lean's time index starts at 000 (the book's t−1t-1t−1).
  • X(R)X(R)X(R) is the set of limits of convergent subsequences of xT(R)x^T(R)xT(R). Policy classes are predicates that constrain only the weights of admissible actions.
  • P∗P^*P∗ is the limUnder of the Cesàro means 1n∑k=1nPk\frac1n\sum_{k=1}^nP^kn1​∑k=1n​Pk; its existence is the book's Theorem 2.4.1(i) and is not assumed as a hypothesis.
  • β\betaβ is a probability vector with zeros allowed; β≫0\beta\gg0β≫0 is never assumed.
  • The optima in Theorem 4.7.3 are compared in the extended reals, so the infeasible case reads −∞=−∞-\infty=-\infty−∞=−∞.
  • "One ergodic set" is the platform's IsUnichainMatrix (any two recurrent states communicate); Assumption 4.7.1 is IsUnichain.
  • Trivializing formalization ruled out: LLL ranges over all history-dependent randomized policies. Restricting it to stationary policies would replace LLL by L(S)L(S)L(S), for which L(S)=XL(S)=XL(S)=X fails in general.

A complete development needs Cesàro limits of stochastic matrices (Theorem 2.4.1), the stationary-policy correspondence of §4.3, a separating hyperplane in finite dimension, and the Derman–Strauch construction of a Markov policy matching a mixture of policies (Theorem 2.5.1). The frequency and limit-point infrastructure is reusable for any average-reward model on a finite state space. Proofs of any milestone, and of the auxiliary facts above as separate theorems, are welcome.

Selected references

  • L.C.M. Kallenberg, Linear Programming and Finite Markovian Control Problems, Mathematical Centre Tracts 148, Mathematisch Centrum, Amsterdam, 1983. https://ir.cwi.nl/pub/13008
  • C. Derman, Finite State Markovian Decision Processes, Academic Press, New York, 1970.
  • C. Derman and A.F. Veinott, Constrained Markov decision chains, Management Science 19 (1972), 389–390. https://doi.org/10.1287/mnsc.19.4.389
  • C. Derman and R.E. Strauch, A note on memoryless rules for controlling sequential control problems, Annals of Mathematical Statistics 37 (1966), 276–278. https://doi.org/10.1214/aoms/1177699617
  • E. Altman, Constrained Markov Decision Processes, Chapman & Hall/CRC, 1999. https://doi.org/10.1201/9781315140223
13 thms4 active usersReviewed
🏆Completed
Dynamic ProgrammingOptimization·Captain: mikedeng1

Revenue Management Under a General Discrete Choice Model of Consumer Behavior 1: The Optimal Policy Offers Only Nondominated Sets, a Larger One the More Capacity and the Less Time RemainResearch Paper

Why offer sets matter

A seller with one limited inventory pool can choose which fare products to show in each selling period. When customers choose among the displayed products, showing another fare can both add sales and divert buyers from a more expensive fare. A fixed ranking of fares therefore does not by itself tell the seller which products to offer. Talluri and van Ryzin's working paper studies the optimal offer decision under a general discrete choice model, without specifying a logit or independent-demand formula for customer choice (working paper, 2001, pp. 5–8; published article, 2004). The present mission concerns the paper's first main result: how to reduce the collection of possible offer sets and how the best choice changes with inventory and time.

Model and notation

There are nnn fare products, indexed by N={1,…,n}N=\{1,\ldots,n\}N={1,…,n}. Product jjj earns a nonnegative revenue rjr_jrj​. In each period, a customer arrives with probability λ∈[0,1]\lambda\in[0,1]λ∈[0,1], independent of the remaining time. The seller offers a set S⊆NS\subseteq NS⊆N. Conditional on arrival, the customer buys product j∈Sj\in Sj∈S with probability Pj(S)P_j(S)Pj​(S) or buys nothing with the remaining probability. Thus Pj(S)≥0P_j(S)\ge0Pj​(S)≥0 and Q(S)=∑j∈SPj(S)≤1Q(S)=\sum_{j\in S}P_j(S)\le1Q(S)=∑j∈S​Pj​(S)≤1. The purchase probability is Q(S)Q(S)Q(S), while the expected revenue conditional on arrival is R(S)=∑j∈SPj(S)rjR(S)=\sum_{j\in S}P_j(S)r_jR(S)=∑j∈S​Pj​(S)rj​. The empty set is a possible offer; it has Q=R=0Q=R=0Q=R=0.

Time is counted backward: ttt is the number of periods still available, and xxx is the number of inventory units left. Let Vt(x)V_t(x)Vt​(x) be the maximum expected revenue from that state, with V0(x)=Vt(0)=0V_0(x)=V_t(0)=0V0​(x)=Vt​(0)=0. For t,x≥1t,x\ge1t,x≥1, the marginal value of capacity is ΔVt−1(x)=Vt−1(x)−Vt−1(x−1)\Delta V_{t-1}(x)=V_{t-1}(x)-V_{t-1}(x-1)ΔVt−1​(x)=Vt−1​(x)−Vt−1​(x−1). The Bellman equation is

Vt(x)=Vt−1(x)+max⁡S⊆Nλ(R(S)−Q(S)ΔVt−1(x)).V_t(x)=V_{t-1}(x)+\max_{S\subseteq N}\lambda\bigl(R(S)-Q(S)\Delta V_{t-1}(x)\bigr).Vt​(x)=Vt−1​(x)+S⊆Nmax​λ(R(S)−Q(S)ΔVt−1​(x)).

The paper calls a set TTT dominated if a randomization over offer sets achieves either strictly more expected revenue with no greater purchase probability, or no less expected revenue with strictly lower purchase probability. A set is nondominated if neither comparison applies. This two-clause definition is specific to the paper. It differs from the one-clause “efficient set” used for a related model in Talluri and van Ryzin's book; the published formalization of that book's optimal policy theorem is therefore related work rather than a replacement for this goal.

Formalization targets

Nondominated frontier

Proposition 1 characterizes the nondominated sets by a positive tradeoff value vvv: a set TTT lies on the relevant frontier exactly when it maximizes R(S)−vQ(S)R(S)-vQ(S)R(S)−vQ(S) for some v>0v>0v>0. Proposition 2 says that dominated sets can be excluded from the Bellman maximization when ΔVt−1(x)>0\Delta V_{t-1}(x)>0ΔVt−1​(x)>0, and that a nondominated optimum exists when the marginal value is zero. Proposition 3 orders the nondominated sets S1,…,SmS_1,\ldots,S_mS1​,…,Sm​ so that both Qk=Q(Sk)Q_k=Q(S_k)Qk​=Q(Sk​) and Rk=R(Sk)R_k=R(S_k)Rk​=R(Sk​) are nondecreasing (working paper, pp. 8–12).

Largest optimal index

Among indices maximizing Rk−QkvR_k-Q_kvRk​−Qk​v, let k∗(v)k^*(v)k∗(v) be the greatest one when there are ties. Lemmas 1 and 2 say that k∗(v)k^*(v)k∗(v) is nonincreasing in vvv. The paper's Lemmas 3 and 4 say that marginal capacity values decrease as inventory increases and increase as the number of remaining periods increases. For the admissible states t,x≥1t,x\ge1t,x≥1, the goal is Theorem 1:

Vt(x)=Vt−1(x)+λ(Rk∗−Qk∗ΔVt−1(x)),V_t(x)=V_{t-1}(x)+\lambda\bigl(R_{k^*}-Q_{k^*}\Delta V_{t-1}(x)\bigr),Vt​(x)=Vt−1​(x)+λ(Rk∗​−Qk∗​ΔVt−1​(x)),

where Sk∗S_{k^*}Sk∗​ is an optimal offer, and the greatest optimal index k∗k^*k∗ is nondecreasing in xxx and nonincreasing in ttt (working paper, pp. 12–15, Theorem 1). These are claims about the index in the nondominated ordering; the offer sets themselves need not be nested by inclusion.

What the result gives

Theorem 1 replaces a search over all 2n2^n2n offer sets at each state with a search over the nondominated sets. It also tells an operator how the preferred position in that ordered list changes as seats are sold or as the selling horizon shortens. The later sections of the paper add conditions under which this ordering corresponds to fare-order nesting; those conditions are treated in separate missions (working paper, §3).

The model's value recursion and the marginal-value inequalities already have published Prove2Me formalizations in the Talluri–van Ryzin book setting. The book's marginal-value theorem is proved and serves here as a referenced milestone after reindexing its forward time convention. The paper's two-clause dominance concept, its ordered frontier, and Theorem 1 itself remain the formalization work of this mission. Keeping those distinctions explicit makes the resulting definitions reusable for other choice models with the same purchase and revenue coordinates.

Main difficulty

A set with high expected revenue need not be attractive when capacity is scarce: it may also consume inventory more often. Ranking sets by revenue alone therefore fails. Conversely, an offer set can tie another at a single marginal value, so selecting an arbitrary maximizer does not give a monotone index across states. The paper resolves ties by taking the greatest optimal index. Formalization must also retain the full randomized dominance relation: using only strict revenue improvement would leave sets on the wrong frontier. These issues arise even with finitely many products and without a specialized formula for Pj(S)P_j(S)Pj​(S).

Formalization scope

Products are Fin n, and offers are finite subsets of them. The published RevenueManagement_singleResource definition supplies the choice-model predicate, QQQ, RRR, and the backward value recursion. This mission defines the paper's own dominance relation, stage objective, exhaustive ordered list of nondominated sets, and greatest-maximizer predicate. Every possible offer set, including the empty set, participates in the Bellman maximum. The list must contain all nondominated sets exactly once; otherwise choosing from it would weaken Theorem 1.

The assumptions 0≤λ≤10\le\lambda\le10≤λ≤1 and rj≥0r_j\ge0rj​≥0 are the model's arrival-probability and nonnegative-fare conventions. The paper indexes fares in decreasing order, but Section 2's claims do not use that order, so the Lean targets omit it. Proposition 2's assertion that a dominated set is never optimal requires λ>0\lambda>0λ>0; that condition is placed on that clause alone. Decisions and marginal values are stated for t,x≥1t,x\ge1t,x≥1. The paper prints Lemma 3 also at x=1x=1x=1, where its right side ΔVt(0)\Delta V_t(0)ΔVt​(0) is undefined; the referenced formalization states the meaningful range x≥2x\ge2x≥2. The imported book theorem uses forward time, reindexed here as the number of periods remaining. The goal does not assume the dominance reduction or the marginal-value monotonicities that its milestones supply.

A complete development uses finite sums and maxima, the choice-value recursion, a finite frontier argument for Proposition 1, and order properties of the stage objective. The dominance and ordered-frontier definitions can support later results on nested policies. Contributions that establish the stated milestones under the same conventions are within scope.

Selected references

  • K. Talluri and G. van Ryzin, Revenue Management Under a General Discrete Choice Model of Consumer Behavior, UPF Economics Working Paper 533, October 21, 2001, pp. 5–15. Working paper.
  • K. Talluri and G. van Ryzin, Revenue Management Under a General Discrete Choice Model of Consumer Behavior, Management Science 50(1), 2004, pp. 15–33. DOI: 10.1287/mnsc.1030.0147.
10 thms4 active usersReviewed
🏆Completed
Optimization·Captain: mikedeng1

In-Process Inventories: The Base-Stock Cost c + Σ rᵢ√(Sᵢ₋₁ − Sᵢ + Tᵢ) over the Service Times Attains Its Minimum at a Vertex of the Feasible PolyhedronResearch Paper

Where in-process inventories should sit

A product made by a chain of nnn operations can carry stock in front of every operation, between every pair of them, and as finished goods. Each such inventory point buffers demand uncertainty, and each costs money to hold. Kenneth F. Simpson, Jr. asked which of these points should carry stock at all, and how much, in In-Process Inventories, Operations Research 6 (1958) 863–873. His answer is that the cheapest configuration is an extreme one: every inventory point is either kept full or eliminated.

The paper is the origin of what is now called the guaranteed-service model of multi-echelon inventory theory.

  • 1958: Simpson proves that the optimal service times lie at a vertex of the feasible polyhedron, for a serial line, and notes extensions to branching chains and to correlated demand.
  • 2000: Graves and Willems (Optimizing Strategic Safety Stock Placement in Supply Chains, M&SOM 2(1)) extend the service-time formulation to spanning-tree networks and solve it by dynamic programming over the vertex structure.
  • Textbooks (Snyder and Shen, Fundamentals of Supply Chain Theory, Wiley) present the serial result as the "all-or-nothing" property of guaranteed-service systems.

The model

There are nnn operations in series. Operation iii has a processing time TiT_iTi​. Behind each operation is an inventory point that promises to fill any order within a service time Si≥0S_i \ge 0Si​≥0. The incoming service time S0S_0S0​ (from raw materials) and the outgoing one SnS_nSn​ (to the customer) are fixed constants; the n−1n - 1n−1 intermediate service times S1,…,Sn−1S_1, \dots, S_{n-1}S1​,…,Sn−1​ are the decision variables. Inventory iii must protect against demand over the time Si−1−Si+TiS_{i-1} - S_i + T_iSi−1​−Si​+Ti​, and under the paper's demand model its holding cost is proportional to the square root of that time. With constants ccc and r1,…,rn>0r_1, \dots, r_n > 0r1​,…,rn​>0 the total inventory cost is equation (9):

f(S1,…,Sn−1)=c+∑i=1nriSi−1−Si+Ti.f(S_1, \dots, S_{n-1}) = c + \sum_{i=1}^{n} r_i \sqrt{S_{i-1} - S_i + T_i}.f(S1​,…,Sn−1​)=c+i=1∑n​ri​Si−1​−Si​+Ti​​.

Its domain D⊆Rn−1D \subseteq \mathbb R^{n-1}D⊆Rn−1 is the set of points with every variable nonnegative and every radicand nonnegative:

D={(S1,…,Sn−1):Si≥0 (1≤i≤n−1),  Si−1−Si+Ti≥0 (1≤i≤n)}.D = \{ (S_1, \dots, S_{n-1}) : S_i \ge 0 \ (1 \le i \le n - 1),\ \ S_{i-1} - S_i + T_i \ge 0 \ (1 \le i \le n) \}.D={(S1​,…,Sn−1​):Si​≥0 (1≤i≤n−1),  Si−1​−Si​+Ti​≥0 (1≤i≤n)}.

DDD is a polyhedron cut out by 2n−12n - 12n−1 affine inequalities. A vertex of DDD is an extreme point: a point of DDD that is not the midpoint of two distinct points of DDD. An inventory with Si=Si−1+TiS_i = S_{i-1} + T_iSi​=Si−1​+Ti​ has zero average stock; one with Si=0S_i = 0Si​=0 is full.

Formalization targets

Goal: THEOREM I (p. 869)

For any constants c,S0,Sn,Tic, S_0, S_n, T_ic,S0​,Sn​,Ti​ and ri>0r_i > 0ri​>0 with D≠∅D \ne \emptysetD=∅,

∃ v∈ext⁡Dwithf(v)≤f(S)  for all S∈D.\exists\, v \in \operatorname{ext} D \quad\text{with}\quad f(v) \le f(S)\ \ \text{for all } S \in D.∃v∈extDwithf(v)≤f(S)  for all S∈D.

This is the paper's sentence "the minimum of the function fff occurs at one of the vertices of DDD", read as existence of a vertex minimizer. It fixes no constant and no particular vertex.

Milestones

  1. DDD is convex and compact (pp. 868, 872).
  2. fff is concave on DDD when ri≥0r_i \ge 0ri​≥0 (p. 868, "concave downward").
  3. fff attains its minimum on a nonempty DDD (Appendix, p. 872).
  4. LEMMA I (p. 872): for at least one variable, no interior point of DDD minimizes fff.
  5. THEOREM II (p. 869): if Sj=Sj−1+TjS_j = S_{j-1} + T_jSj​=Sj−1​+Tj​, the cost equals the cost of the model with operations jjj and j+1j+1j+1 coupled into one with processing time Tj+Tj+1T_j + T_{j+1}Tj​+Tj+1​.
  6. LEMMA II (pp. 872–873): for at least two variables, every minimizer has at least two independent active boundary normals.
  7. Meaning of the theorem (p. 869): when S0=Sn=0S_0 = S_n = 0S0​=Sn​=0 and Ti>0T_i > 0Ti​>0, the vertices of DDD are exactly the 2n−12^{n-1}2n−1 points with each Si∈{0, Si−1+Ti}S_i \in \{0,\ S_{i-1} + T_i\}Si​∈{0, Si−1​+Ti​}.
  8. Extension (p. 871): THEOREM I holds with t\sqrt{t}t​ replaced by tkt^ktk for 12≤k≤1\tfrac12 \le k \le 121​≤k≤1.

The p. 870 rephrasing, "for an optimal system, the service time for every nonvanishing inventory is zero", is already proved on the platform as SupplyChainTheory.gs_all_or_nothing (Snyder–Shen Theorem 6.5) and is included as a reference item. Under the dictionary stage i↔n+1−ii \leftrightarrow n + 1 - ii↔n+1−i, ri=hikr_i = h_i kri​=hi​k, SIN=S0SI_N = S_0SIN​=S0​, that statement is Simpson's model case Sn=0S_n = 0Sn​=0.

Significance

THEOREM I turns a continuous optimization over the polyhedron DDD into a comparison over its finitely many vertices, and in Simpson's model these are the 2n−12^{n-1}2n−1 all-or-nothing configurations. Each vertex has a physical reading as a mode of operation: which inventories are kept full and which operations are tightly coupled (THEOREM II). The property is what makes guaranteed-service models tractable by enumeration or dynamic programming in later work.

The result is proved in the paper, by an induction on faces. It has not been machine-checked. A formal development adds a checked statement of the theorem for general constants S0,Sn,TiS_0, S_n, T_iS0​,Sn​,Ti​ (the paper's model fixes S0=Sn=0S_0 = S_n = 0S0​=Sn​=0), an exact account of which hypotheses are needed (the positivity of the rir_iri​ is essential, see below), and a checked vertex count for the model case. The existing platform theorem gs_all_or_nothing covers the model case in the all-or-nothing form; THEOREM I with general constants and the vertex characterization are not yet on the platform.

Difficulty

The domain DDD is given by inequalities, while the conclusion is about its extreme points, which are never listed: with general constants S0,Sn,TiS_0, S_n, T_iS0​,Sn​,Ti​ the vertices of DDD have no closed form, and DDD may be lower-dimensional or have coinciding facets. Any argument therefore has to connect an inequality description of a polyhedron with its extreme-point structure, which in the paper's own text is treated informally ("faces", "edges", "an nnn-fold repetition"). LEMMA I and LEMMA II are stronger than the existence statement: they exclude minimizers in the interior of DDD and in the relative interior of a face, and they become false as soon as some rir_iri​ vanishes, so they cannot follow from concavity alone. THEOREM II, though described on the page as "examine the definitions", requires an exact reindexing of the operations, processing times and cost coefficients after one variable is removed.

The sign hypothesis cannot be dropped: with n=2n = 2n=2, r1=r2=−1r_1 = r_2 = -1r1​=r2​=−1, S0=0S_0 = 0S0​=0, S2=1S_2 = 1S2​=1, T1=2T_1 = 2T1​=2, T2=1T_2 = 1T2​=1, the function f(S1)=−2−S1−S1f(S_1) = -\sqrt{2 - S_1} - \sqrt{S_1}f(S1​)=−2−S1​​−S1​​ on D=[0,2]D = [0, 2]D=[0,2] is convex and its only minimizer is the interior point S1=1S_1 = 1S1​=1.

Formalization scope

All declarations live in SimpsonInv.Vertex. With m=n−1m = n - 1m=n−1 variables a point of DDD is S : Fin m → ℝ, and Lean index jjj holds the paper's Sj+1S_{j+1}Sj+1​; extVec S0 Sn S i returns the paper's SiS_iSi​ for every iii, including the constant ends. The constants T,rT, rT,r are sequences ℕ → ℝ, read only at indices 1,…,n1, \dots, n1,…,n. The space Fin m → ℝ carries the product topology, which is the Euclidean one, so interior is the paper's interior. A vertex is an element of Set.extremePoints ℝ D; a minimizer is IsMinOn f D v with v∈Dv \in Dv∈D.

Added hypotheses, each disclosed in its item: ri>0r_i > 0ri​>0 for 1≤i≤n1 \le i \le n1≤i≤n (from equation (8); weakened to ri≥0r_i \ge 0ri​≥0 for concavity and dropped for existence and THEOREM II); D≠∅D \ne \emptysetD=∅ where a minimum is asserted; at least one variable for LEMMA I and at least two for LEMMA II; S0=Sn=0S_0 = S_n = 0S0​=Sn​=0 and Ti>0T_i > 0Ti​>0 only for the vertex count, as in the paper's model. The page's "n−1n-1n−1-dimensional polyhedron" is not imposed: the goal is stated for every nonempty DDD. "On the boundary of the faces" (LEMMA II) is encoded by at least two independent active inequality normals, including when inequalities coincide.

Real.sqrt returns 000 on negative inputs, so fff is never compared outside DDD. Minimizing over all of Rn−1\mathbb R^{n-1}Rn−1, or replacing the vertex set by a hand-listed finite set of points, would trivialize or falsify the goal and is ruled out: the goal quantifies over Set.extremePoints ℝ D and compares only on DDD. THEOREM II compares the original cost with the same cost function applied to new data (n−1n - 1n−1 operations, T′T'T′, r′r'r′), not with a substituted copy of the original.

A complete development needs compactness and extreme-point facts for polyhedra given by inequalities and concavity facts for square roots and powers of affine maps; both are reusable well beyond this mission. Proofs of any milestone, and reusable lemmas on polyhedra given by inequalities, are welcome.

Selected references

  • Kenneth F. Simpson, Jr., In-Process Inventories, Operations Research 6(6):863–873, 1958. https://doi.org/10.1287/opre.6.6.863
  • Stephen C. Graves and Sean P. Willems, Optimizing Strategic Safety Stock Placement in Supply Chains, Manufacturing & Service Operations Management 2(1):68–83, 2000. https://doi.org/10.1287/msom.2.1.68.23267
  • Lawrence V. Snyder and Zuo-Jun Max Shen, Fundamentals of Supply Chain Theory, 2nd ed., Wiley, 2019 (Chapter 6, guaranteed-service serial systems).
11 thms4 active usersReviewed
🏆Completed
CombinatoricsMachine LearningTheoretical Computer Science·Captain: mikedeng1

The Weighted Majority Algorithm 7: On a Class Shattered by Its Domain, Every Deterministic Learner's Mistake Bounds Satisfy Σ 2^(−M_i) < 2Research Paper

Motivation

An online learner predicts a binary label for each instance before seeing that instance's correct label. Its guarantee is usually measured by its worst possible number of mistakes against a target function. Such guarantees can differ greatly across target functions: an algorithm might learn one target quickly while taking much longer on another. Littlestone and Warmuth's analysis of the Weighted Majority Algorithm asks which collections of individual mistake guarantees can coexist for one deterministic learner. In Section 7 of their 1994 paper, they isolate a condition under which these guarantees obey a strict numerical constraint. The condition concerns how the target functions vary together over the instance domain, so the result applies without a probability distribution on instances or labels.

The theorem also supports the paper's comparison between arbitrary deterministic learners and Weighted Majority. Given individual mistake bounds, its inequality is the numerical condition that makes a suitable initial weighting of the target functions possible in Theorem 7.1 and Corollary 7.1 of the same paper. The present mission centers on the inequality itself, which is independent of a particular implementation of Weighted Majority.

Setting

Let XXX be an instance domain, possibly finite or infinite, and let φ1,…,φn:X→{0,1}\varphi_1,\ldots,\varphi_n:X\to\{0,1\}φ1​,…,φn​:X→{0,1} be a finite family of target functions. A trial presents an instance x∈Xx\in Xx∈X to a learner, asks it to predict either 000 or 111, and then reveals a label. A finite sequence is consistent with φi\varphi_iφi​ when each revealed label equals φi(x)\varphi_i(x)φi​(x) at that trial's instance. The learner may use the current instance and the complete history of earlier labeled trials when predicting; it does not see the current label first. No sampling or independence assumption is made.

The family is shattered by its domain when every pattern b=(b1,…,bn)∈{0,1}nb=(b_1,\ldots,b_n)\in\{0,1\}^nb=(b1​,…,bn​)∈{0,1}n appears as the vector of function values at some instance:

∀b∈{0,1}n∃x∈X∀i∈{1,…,n}, φi(x)=bi.\forall b\in\{0,1\}^n\quad\exists x\in X\quad\forall i\in\{1,\ldots,n\},\ \varphi_i(x)=b_i.∀b∈{0,1}n∃x∈X∀i∈{1,…,n}, φi​(x)=bi​.

This is a dual notion of shattering. The familiar VC condition asks whether a class of functions realizes every labeling of chosen instances. Here the domain realizes every joint value pattern of a chosen family of functions. The two conditions should not be interchanged.

Let AAA be any deterministic online learner. Write MiM_iMi​ for the supremum of the number of mistakes made by AAA over every finite sequence consistent with φi\varphi_iφi​. Since mistake counts are natural numbers, a finite supremum is an attained natural-number maximum. The theorem assumes each MiM_iMi​ is finite. In the Lean representation, this is a separate finiteness condition on each target's extended-natural mistake bound.

Formalization targets

Strict constraint on individual mistake bounds

The goal is Theorem 7.2 of Littlestone and Warmuth, pp. 244–245. For every domain, every finite family shattered by that domain, and every deterministic online learner with finite individual mistake bounds,

∑i=1n2−Mi<2.\sum_{i=1}^{n}2^{-M_i}<2.i=1∑n​2−Mi​<2.

The inequality is strict. Replacing it by a weak inequality would lose the stated result and the threshold used in the paper's later comparison with Weighted Majority. The theorem quantifies over the learner itself; it does not select a specially behaved learning rule.

Arithmetic milestones

Lemma 7.1 concerns positive real numbers with integral adjacent quotients. When a positive target sss is no larger than their sum and s/r1s/r_1s/r1​ is integral, some prefix sums exactly to sss. Lemma 7.2 concerns positive powers of two with integer exponents. If a power 2ℓ2^\ell2ℓ lies at least as high as each individual weight and at most as high as the total weight, some subset sums exactly to 2ℓ2^\ell2ℓ. Both statements and their exact source wording are recorded as the mission's milestones; they are the numbered arithmetic results used in Theorem 7.2.

Significance

The theorem limits the set of claims that one deterministic learner can make simultaneously. Small MiM_iMi​ contribute large terms to the sum, so a learner cannot have arbitrarily small worst-case mistake counts for all members of a domain-shattered family. This is a worst-case statement about every finite consistent trial sequence, rather than an average-case statement about a chosen data distribution. The paper's Corollary 7.1 uses the resulting inequality to select initial weights for a Weighted Majority comparison, but that later algorithmic statement is outside this mission's goal.

Formalizing this result adds a reusable dual-shattering predicate and an exact constraint on per-target online mistake bounds to the existing online-learning definitions. The paper proves the theorem, while the mission's Lean goal and its two milestone lemmas are open proof obligations. The separate published online-learning module provides the definitions of deterministic predictors, trial histories, mistake counts, and extended-natural worst-case bounds; it does not already prove this theorem.

Difficulty

For a single target, an arbitrary learner may have a small finite mistake bound. The difficulty is relating those bounds across different targets without placing extra restrictions on the learner. Domain shattering gives the adversary control over the simultaneous predictions of all functions at an instance, but the labels of one trial sequence must still remain consistent with a target. A simple count of targets or of possible patterns does not directly produce the strict weighted sum, particularly when the different MiM_iMi​ are unequal. The two arithmetic lemmas address exact sums of structured weights; the main theorem must also connect such weights to the learner's worst-case mistakes.

Formalization scope

The function family is indexed by Fin n, with zero-based Lean indices corresponding to the paper's 1,…,n1,\ldots,n1,…,n. The domain XXX is an arbitrary type and may be infinite. Labels and predictions are Bool. ShatteredByDomain states that every Boolean pattern is realized by some domain point. The published UnderstandingML_Online definition gives OnlineAlg X Bool, finite trial histories, mistakes, and mistakeBound. The latter is valued in N∪{∞}\mathbb N\cup\{\infty\}N∪{∞} and ranges over all finite sequences labeled by the target. Each MiM_iMi​ is converted to a natural number only after assuming its bound is finite. The powers 2−Mi2^{-M_i}2−Mi​ and their finite sum are real numbers. The n=0n=0n=0 conclusion is the empty sum 0<20<20<2; the shattering predicate itself then requires an instance to realize the unique empty pattern.

The two milestones use real-valued weights. Lemma 7.1 assumes n≥1n\ge1n≥1 because the source refers to r1r_1r1​. Lemma 7.2 represents the source's integral base-two logarithms by equations ri=2kir_i=2^{k_i}ri​=2ki​ with integer kik_iki​, which also enforce positivity. Its maximum hypothesis is written pointwise, so an empty family is harmless: the other inequality 2ℓ≤02^\ell\le02ℓ≤0 cannot hold. A coordinate family on X={0,1}nX=\{0,1\}^nX={0,1}n is verified locally to satisfy the shattering predicate, ruling out a vacuous encoding of that central assumption. Contributions proving either arithmetic milestone or the main theorem within these exact definitions are in scope.

Selected references

  • Nick Littlestone and Manfred K. Warmuth, The Weighted Majority Algorithm, Information and Computation 108(2), 212–261, 1994. DOI: 10.1006/inco.1994.1009.
  • Shai Shalev-Shwartz and Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014, Chapter 21. DOI: 10.1017/CBO9781107298019.
5 thms4 active usersReviewed
🏆Completed
Algorithmic Game Theory·Captain: mikedeng1

Equilibrium Points in n-Person Games: the Countering Correspondence Has Nonempty Convex Values and a Closed Graph, and Its Fixed Points Are the Equilibrium PointsResearch Paper

Motivation

A Nash equilibrium is a joint choice of strategies at which no player can improve their own expected payoff by changing their strategy alone. This gives a testable notion of stable behavior for a finite game, including games in which the players' aims differ. Nash's two-page 1950 note established the existence of such a point for finite games by organizing each player's best replies into a single correspondence and using a fixed-point theorem. The note identifies several properties of that correspondence and ends by comparing equilibrium payoffs in zero-sum and general games. Those claims, stated together in Nash's published note, are the subject of this mission.

The existence conclusion itself already has a proved formal statement, AGT.nash_existence, in the game vocabulary used here. The remaining claims explain what the fixed-point argument acts on: which profiles are related by countering, why countering sets are usable as values of a correspondence, and what their fixed points mean. Keeping those statements explicit makes the 1950 argument legible independently of the existence theorem's proof.

Setting

There is a finite set III of players. Each player iii has a finite, nonempty set SiS_iSi​ of pure strategies. A pure-strategy profile sss chooses one element of every SiS_iSi​, and ui(s)∈Ru_i(s)\in\mathbb Rui​(s)∈R is player iii's payoff. A mixed strategy PiP_iPi​ assigns a nonnegative real weight to each element of SiS_iSi​, with weights summing to one. The space Σ\SigmaΣ of mixed profiles P=(Pi)i∈IP=(P_i)_{i\in I}P=(Pi​)i∈I​ is the product of these finite probability simplices.

Players randomize independently. Thus the probability of a pure profile sss under PPP is ∏j∈IPj(sj)\prod_{j\in I}P_j(s_j)∏j∈I​Pj​(sj​), and player iii's expected payoff is

Ui(P)=∑s∈∏jSj(∏j∈IPj(sj))ui(s).U_i(P)=\sum_{s\in\prod_j S_j}\left(\prod_{j\in I}P_j(s_j)\right)u_i(s).Ui​(P)=s∈∏j​Sj​∑​​j∈I∏​Pj​(sj​)​ui​(s).

For a strategy τi\tau_iτi​ of player iii, write Ui(τi,P−i)U_i(\tau_i,P_{-i})Ui​(τi​,P−i​) for the payoff obtained by replacing only coordinate iii of PPP. A profile QQQ counters PPP if Q∈ΣQ\in\SigmaQ∈Σ and, for every player iii, its coordinate QiQ_iQi​ gives that player the highest expected payoff available against the other players' coordinates of PPP:

Q∈C(P)⟺Q∈ΣandUi(τi,P−i)≤Ui(Qi,P−i)for every i∈I and every mixed τi.Q\in C(P)\quad\Longleftrightarrow\quad Q\in\Sigma\quad\text{and}\quad U_i(\tau_i,P_{-i})\le U_i(Q_i,P_{-i}) \quad\text{for every }i\in I\text{ and every mixed }\tau_i.Q∈C(P)⟺Q∈ΣandUi​(τi​,P−i​)≤Ui​(Qi​,P−i​)for every i∈I and every mixed τi​.

The countering correspondence CCC assigns the set C(P)C(P)C(P) to each P∈ΣP\in\SigmaP∈Σ. Its graph comprises the pairs (P,Q)(P,Q)(P,Q) with P∈ΣP\in\SigmaP∈Σ and Q∈C(P)Q\in C(P)Q∈C(P). A fixed point is a profile PPP belonging to C(P)C(P)C(P); Nash calls it an equilibrium point.

Formalization targets

The goal states the three properties of CCC that Nash uses, along with the identification of its fixed points:

∀P∈Σ,∅≠C(P)⊆Σ,C(P) is convex;\forall P\in\Sigma,\qquad \varnothing\ne C(P)\subseteq\Sigma, \qquad C(P)\text{ is convex};∀P∈Σ,∅=C(P)⊆Σ,C(P) is convex; Pk→P, Qk→Q, Qk∈C(Pk) for all k⟹Q∈C(P);P∈C(P) ⟺ P is a Nash equilibrium.P_k\to P,\ Q_k\to Q,\ Q_k\in C(P_k)\text{ for all }k \quad\Longrightarrow\quad Q\in C(P); \qquad P\in C(P)\ \Longleftrightarrow\ P\text{ is a Nash equilibrium}.Pk​→P, Qk​→Q, Qk​∈C(Pk​) for all k⟹Q∈C(P);P∈C(P) ⟺ P is a Nash equilibrium.

The milestone list follows the claims in the note: the payoff functions are polylinear and continuous; the correspondence maps mixed profiles to nonempty subsets of mixed profiles; its values are convex; its graph is closed in the sequential formulation Nash writes; and self-countering is equilibrium. A separate closed-set formulation records the graph property in the product topology.

The note also asserts a distinction about payoffs. In a two-person zero-sum game, where u0(s)+u1(s)=0u_0(s)+u_1(s)=0u0​(s)+u1​(s)=0 on every pure profile, any two equilibria have the same expected payoff for each player:

Ui(σ)=Ui(σ′)(i=0,1).U_i(\sigma)=U_i(\sigma')\qquad(i=0,1).Ui​(σ)=Ui​(σ′)(i=0,1).

For general games, this can fail. A companion target asks for a finite two-person game with two equilibria having different expected payoffs.

Significance

The correspondence theorem records the precise conditions on which Nash's application of Kakutani's fixed-point theorem rests. Nonempty convex values and a closed graph make the fixed-point route applicable to the mixed-strategy space; the fixed-point clause says why its output is an equilibrium of the game rather than only a topological point. The zero-sum companion separates the common value of a two-person zero-sum game from the possible range of equilibrium payoffs in a general game. These consequences and the comparison appear in Nash's note.

The equilibrium existence theorem is already proved as the referenced AGT.nash_existence. What remains here is to formalize the correspondence properties and the payoff comparison as their own auditable statements, using that theorem's published game definitions. The claims are known results from 1950; their appearance as goals means proofs of these particular statements are still to be supplied in this development.

Difficulty

The payoff of a player depends on every player's strategy, while countering compares only one changed coordinate at a time. The relevant set of maximizers is therefore indexed by the countered profile, and all players' choices must fit into one countering profile. Establishing closedness requires passing the payoff comparisons and the probability-vector conditions through limits of profiles. The zero-sum equality concerns arbitrary pairs of equilibria, which need not use the same strategies; an argument based only on the existence of an equilibrium cannot give it. For general games, a single equilibrium says nothing about whether another equilibrium has a different payoff.

Formalization scope

The Lean development uses a finite player type ι, finite pure-strategy types S i, real payoffs u, and the published definitions AGT.IsLottery, AGT.IsMixedProfile, AGT.expectedPayoff, and AGT.IsMixedNash. The goal and nonempty-value milestone require each S i to be nonempty. The note's probability distributions implicitly require this; the player type itself may be empty. A mixed profile is a tuple of finite real weight vectors, with no measure-theoretic integration or hidden normalization. In the two-person claim, players are 0, 1 : Fin 2.

Convergence is in the ordinary product topology of the real coordinate spaces. The sequence index is kkk because the note also uses nnn for the number of players. Counters u P Q requires QQQ to be a mixed profile and compares QiQ_iQi​ with every mixed deviation against P−iP_{-i}P−i​; this rules out arbitrary weight vectors and comparisons against the wrong opponents. Neither continuity nor the existence of a best response is assumed in the goal: those properties are targets. The definition layer and the payoff continuity and polylinearity results can be reused by other finite-game formalizations.

Selected references

  • J. F. Nash, Jr., Equilibrium Points in n-Person Games, Proceedings of the National Academy of Sciences 36(1), 48–49 (1950). DOI: 10.1073/pnas.36.1.48.
  • S. Kakutani, A Generalization of Brouwer's Fixed Point Theorem, Duke Mathematical Journal 8, 457–459 (1941), cited in Nash's footnote 1. DOI: 10.1215/S0012-7094-41-00838-4.
10 thms4 active usersReviewed
🏆Completed
Algorithmic Game TheoryLinear Optimization·Captain: mikedeng1

Existence of Correlated Equilibria I: Every Finite Game Has a Correlated EquilibriumResearch Paper

Motivation

In a finite game, a referee can recommend one action privately to each player according to a joint distribution. The recommendations may be correlated: learning one's own recommendation can convey information about the others'. A correlated equilibrium is a distribution for which no player gains, in expectation, by replacing a particular recommendation with another action. This solution concept uses the same payoff data as a strategic-form game but allows more joint distributions than independent mixed strategies. Hart and Schmeidler's Theorem 1 establishes that at least one such distribution exists for every finite game, with no assumptions on the payoffs beyond being real-valued. Their paper uses the finite result as the starting point for existence results with infinitely many players and, later, compact strategy spaces. Hart and Schmeidler (1989)

The authors explain that the standard route passes through a mixed Nash equilibrium: independent equilibrium strategies induce a correlated distribution. The finite theorem here is the same existence conclusion expressed directly through recommendation inequalities, which are linear in the joint distribution. That distinction matters for the later sections of the paper, where the authors examine games with infinitely many players, including an example with a countably additive correlated equilibrium but no Nash equilibrium. Hart and Schmeidler (1989), pp. 18, 21–22

Setting

Let NNN be a finite player set. Each player i∈Ni\in Ni∈N has a finite, nonempty set SiS^iSi of pure strategies, and a pure profile is a tuple s=(si)i∈Ns=(s^i)_{i\in N}s=(si)i∈N​ in S=∏i∈NSiS=\prod_{i\in N}S^iS=∏i∈N​Si. The real number hi(s)h^i(s)hi(s) is player iii's payoff at sss. For a player iii, write s−is^{-i}s−i for all coordinates except iii and (s−i,ti)(s^{-i},t^i)(s−i,ti) for the profile obtained by replacing the iiith coordinate with tit^iti. A probability vector on SSS is a function p:S→Rp:S\to\mathbb Rp:S→R with p(s)≥0p(s)\ge0p(s)≥0 for every sss and ∑s∈Sp(s)=1\sum_{s\in S}p(s)=1∑s∈S​p(s)=1. These are exactly the paper's finite-game and probability-vector conventions. Hart and Schmeidler (1989), pp. 18–19

Suppose the referee draws sss with probability p(s)p(s)p(s) and privately tells player iii only sis^isi. For every recommended action ri∈Sir^i\in S^iri∈Si and alternative action ti∈Sit^i\in S^iti∈Si, the incentive inequality is

∑s−i∈S−ip(s−i,ri)[hi(s−i,ri)−hi(s−i,ti)]≥0.\sum_{s^{-i}\in S^{-i}}p(s^{-i},r^i) \bigl[h^i(s^{-i},r^i)-h^i(s^{-i},t^i)\bigr]\ge0.s−i∈S−i∑​p(s−i,ri)[hi(s−i,ri)−hi(s−i,ti)]≥0.

When the recommendation rir^iri has zero probability, this inequality holds automatically. Thus no conditional probability needs to be defined in that case. A probability vector satisfying every such inequality is a correlated equilibrium. The inequalities include ri=tir^i=t^iri=ti, whose left-hand side is zero. Hart and Schmeidler (1989), p. 19, condition (1)

Formalization targets

Theorem 1: existence in every finite game

The mission's goal is the paper's Theorem 1, with its definition of correlated equilibrium kept explicit:

∀(N,(Si)i∈N,h),∃p∈Δ(S)∀i∈N ∀ri,ti∈Si,∑s−ip(s−i,ri)[hi(s−i,ri)−hi(s−i,ti)]≥0.\forall (N,(S^i)_{i\in N},h),\quad \exists p\in\Delta(S)\quad \forall i\in N\ \forall r^i,t^i\in S^i,\quad \sum_{s^{-i}}p(s^{-i},r^i) \bigl[h^i(s^{-i},r^i)-h^i(s^{-i},t^i)\bigr]\ge0.∀(N,(Si)i∈N​,h),∃p∈Δ(S)∀i∈N ∀ri,ti∈Si,s−i∑​p(s−i,ri)[hi(s−i,ri)−hi(s−i,ti)]≥0.

Here Δ(S)\Delta(S)Δ(S) denotes the set of probability vectors on the finite set SSS. The quantified payoffs are arbitrary real functions; the result specifies neither a unique equilibrium nor a particular equilibrium distribution. The milestone list records the paper's auxiliary-game correspondence, its finite minimax criterion, the nonnegative-matrix lemma, equation (2), and the final product-strategy identity. The lemma is linked to the already proved platform theorem CalibratedCE.Forecast.flow_conservation_solvable, which states the equivalent balance equations for a nonnegative matrix indexed by a nonempty finite set. Hart and Schmeidler (1989), pp. 19–20

Significance

The result guarantees feasibility of the complete system of recommendation inequalities for every finite payoff table. It is stronger as a foundation than checking an equilibrium in one game: later arguments can invoke the result after restricting a larger game to finite strategy sets. Hart and Schmeidler do exactly that in their infinite-game existence theorems. The finite theorem is already known mathematically; the task here is to give its particular statement and proof structure reusable, machine-checked declarations. Hart and Schmeidler (1989), pp. 20, 22, 24

The platform already has the general finite-game lottery vocabulary in agt_games and a proved mixed Nash-existence theorem, AGT.nash_existence. It also has AGT.IsCorrelatedEquilibrium in swap-function cost notation, AGT.swap_regret_correlated_equilibrium for approximate equilibria, and Aumann 1987's finite-probability-space model. Those results provide related notions and consequences. With ε=0\varepsilon = 0ε=0 and costs −hi-h^i−hi, the swap-function form of AGT.IsCorrelatedEquilibrium is equivalent to condition (1), since a switching rule can be optimized separately for each recommendation; the mission nevertheless states condition (1) as printed. The finite Minimax Theorem invoked on p. 19 is proved on the platform as AGT.zero_sum_minimax (a saddle-point statement for matrices indexed by Fin (m+1) and Fin (n+1), in another Mathlib environment), so the minimax milestone is the consequence the paper draws from it rather than the theorem itself. This mission fixes Hart and Schmeidler's payoff-maximizing condition (1) directly, with its recommendation-specific inequalities and auxiliary-game steps. The linked flow-conservation theorem was formalized in the Foster–Vohra series; its balance equations have the same content as the lemma on p. 19 after expanding the coefficients of an arbitrary vector uuu. Hart and Schmeidler (1989), p. 19

Difficulty

The inequalities must hold simultaneously for every player and every recommended-action/deviation pair. Choosing a distribution that makes one inequality hold does not ensure the others: the same weights p(s)p(s)p(s) occur in several constraints. An arbitrary product distribution can fail even in a two-player coordination game. Passing through an existing mixed Nash equilibrium proves existence, but gives no formal account of the paper's own finite minimax and nonnegative-matrix claims. The proof obligations here include the exact correspondence between the conditional recommendation constraints and an auxiliary two-person game, plus the algebra of a product of playerwise probability vectors. Hart and Schmeidler (1989), pp. 18–20

Formalization scope

Players are a finite Lean type ι\iotaι; SiS^iSi is a finite, nonempty type, and hi:S→Rh^i:S\to\mathbb Rhi:S→R. The profile space is the dependent product S=∏iSiS=\prod_iS^iS=∏i​Si. The expression (s−i,ti)(s^{-i},t^i)(s−i,ti) is Function.update s i t, and summing over S−iS^{-i}S−i with the iiith coordinate fixed to rir^iri is represented by summing over profiles satisfying si=ris^i=r^isi=ri. Probability vectors use the published AGT.IsLottery: nonnegative real weights whose finite sum is one. No measure-theoretic integral or conditional probability appears in this finite mission. The auxiliary minimizing player's pure strategies form one set of triples (i,ri,ti)(i,r^i,t^i)(i,ri,ti), with one probability vector over all triples. Hart and Schmeidler (1989), p. 19

Nonemptiness of each SiS^iSi is required: an empty strategy set would leave no probability vector on SSS. The player set itself may be empty; then SSS has one profile and the incentive conditions have no instances. The generic minimax milestone separately assumes that both of its pure-strategy sets are nonempty, so solvers must handle the playerless goal directly. Equality decisions are computational instances for finite enumeration, not restrictions on mathematical games. The correlated-equilibrium definition includes normalization and all incentive inequalities; it is not defined to hold automatically. The goal is the existence of a probability vector satisfying condition (1) itself, not a restatement through AGT.nash_existence that would make it a corollary of Nash's theorem. A sorry-free local check exhibits a correlated point mass in a two-player coordination game and another point mass that violates an incentive inequality. Contributions to the finite minimax criterion, its connection to the published balance theorem, and the sum rearrangement in the product-strategy milestone are all useful beyond this one goal.

Selected references

  • Sergiu Hart and David Schmeidler, Existence of Correlated Equilibria, Mathematics of Operations Research 14(1), 1989, pp. 18–25. DOI.
  • Noam Nisan, Tim Roughgarden, Éva Tardos, and Vijay V. Vazirani, eds., Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 1. DOI.
8 thms4 active usersReviewed
🏆Completed
Convex OptimizationOptimizationStochastic Systems·Captain: mikedeng1

Loss Networks 2: The Erlang Fixed Point Is E_j = 1 − exp(−y_j) for the Unique Optimum y of the Strictly Convex Revised Dual ProblemResearch Paper

Motivation

A loss network is a model of a circuit-switched network: telephone networks, and more generally any system in which a request seizes several resources at once and is lost if any of them is unavailable. Exact loss probabilities in such networks are given by a product-form distribution over a state space whose size grows exponentially with the number of routes, so practitioners compute an approximation instead: the Erlang fixed point, also called the reduced-load approximation. It pretends that links block independently, computes the traffic offered to each link after thinning by the other links, and applies Erlang's single-link formula link by link. Reduced-load approximations of this kind recur throughout §§3–4 of Kelly 1991, where they appear as limits of networks with fixed and with alternative routing.

An approximation defined by a fixed point equation raises an immediate question: does the equation have exactly one solution? Under fixed routing it does, and Kelly's Theorem 3.7 (Ann. Appl. Probab. 1991, p. 338, citing Kelly 1986, reference [33] of the paper) proves it by identifying the fixed point with the optimum of a strictly convex program, the revised dual problem. The convex characterization is specific to fixed routing; the paper notes (p. 337) that for networks with dynamic routing and control nonuniquely determined behaviour can occur.

Setting

There are JJJ links, link jjj having Cj≥1C_j \ge 1Cj​≥1 circuits, and a finite set of routes rrr. A call on route rrr uses Ajr∈Z+A_{jr} \in \mathbb Z_+Ajr​∈Z+​ circuits of link jjj, and calls on route rrr arrive as a Poisson stream of rate νr>0\nu_r > 0νr​>0.

Erlang's formula (1.1) gives the blocking probability of a single link with CCC circuits offered Poisson traffic of intensity ν\nuν:

E(ν,C)=νCC![∑n=0Cνnn!]−1.E(\nu, C) = \frac{\nu^C}{C!}\Big[\sum_{n=0}^{C} \frac{\nu^n}{n!}\Big]^{-1}.E(ν,C)=C!νC​[n=0∑C​n!νn​]−1.

The Erlang fixed point equations (3.1)–(3.2) for the vector of link blocking probabilities (E1,…,EJ)(E_1, \dots, E_J)(E1​,…,EJ​) are

Ej=E(ρj,Cj),ρj=(1−Ej)−1∑rAjr νr∏i(1−Ei)Air,j=1,…,J.E_j = E(\rho_j, C_j), \qquad \rho_j = (1 - E_j)^{-1} \sum_r A_{jr}\,\nu_r \prod_i (1 - E_i)^{A_{ir}}, \qquad j = 1, \dots, J.Ej​=E(ρj​,Cj​),ρj​=(1−Ej​)−1r∑​Ajr​νr​i∏​(1−Ei​)Air​,j=1,…,J.

The utilization function U(y,C)U(y, C)U(y,C) is defined by the implicit relation (3.4),

U(−log⁡(1−E(ν,C)), C)=ν (1−E(ν,C)),ν≥0:U\big(-\log(1 - E(\nu, C)),\, C\big) = \nu\,\big(1 - E(\nu, C)\big), \qquad \nu \ge 0:U(−log(1−E(ν,C)),C)=ν(1−E(ν,C)),ν≥0:

the mean number of busy circuits on a single link whose blocking probability is 1−e−y1 - e^{-y}1−e−y.

The revised dual problem (3.5) is

minimize∑rνrexp⁡(−∑jyjAjr)+∑j∫0yjU(z,Cj) dzsubject to y≥0,\text{minimize} \quad \sum_r \nu_r \exp\Big(-\sum_j y_j A_{jr}\Big) + \sum_j \int_0^{y_j} U(z, C_j)\,dz \qquad \text{subject to } y \ge 0,minimizer∑​νr​exp(−j∑​yj​Ajr​)+j∑​∫0yj​​U(z,Cj​)dzsubject to y≥0,

and its stationarity conditions (3.6) are

∑rAjr νrexp⁡(−∑iyiAir)=U(yj,Cj),j=1,…,J.\sum_r A_{jr}\,\nu_r \exp\Big(-\sum_i y_i A_{ir}\Big) = U(y_j, C_j), \qquad j = 1, \dots, J.r∑​Ajr​νr​exp(−i∑​yi​Air​)=U(yj​,Cj​),j=1,…,J.

The revised dual differs from the dual problem (2.3) of §2, whose optimum gives the limiting blocking probabilities of a large network, only in its last term: ∑jyjCj\sum_j y_j C_j∑j​yj​Cj​ becomes ∑j∫0yjU(z,Cj) dz\sum_j \int_0^{y_j} U(z, C_j)\,dz∑j​∫0yj​​U(z,Cj​)dz.

Formalization targets

Goal: Theorem 3.7

The revised dual problem (3.5) has an optimum yyy, every optimum equals yyy, and

E∈[0,1]J solves (3.1)–(3.2)  ⟺  Ej=1−exp⁡(−yj) for every j.E \in [0,1]^J \text{ solves (3.1)–(3.2)} \iff E_j = 1 - \exp(-y_j) \text{ for every } j.E∈[0,1]J solves (3.1)–(3.2)⟺Ej​=1−exp(−yj​) for every j.

The goal states the characterization, not only the existence and uniqueness of the fixed point: the solution is 1−e−y1 - e^{-y}1−e−y for the optimum yyy of (3.5).

Milestones (p. 338, in the order the argument uses them)

  1. (3.4) defines a function: ν↦−log⁡(1−E(ν,C))\nu \mapsto -\log(1 - E(\nu, C))ν↦−log(1−E(ν,C)) is a continuous strictly increasing bijection of [0,∞)[0,\infty)[0,∞) onto itself for C≥1C \ge 1C≥1, UUU satisfies (3.4), and U≥0U \ge 0U≥0.
  2. y↦U(y,C)y \mapsto U(y, C)y↦U(y,C) is strictly increasing on [0,∞)[0, \infty)[0,∞).
  3. y↦∫0yU(z,C) dzy \mapsto \int_0^y U(z, C)\,dzy↦∫0y​U(z,C)dz is strictly convex, and so is the objective of (3.5) on y≥0y \ge 0y≥0.
  4. (3.5) has exactly one optimum.
  5. A vector y≥0y \ge 0y≥0 is optimal for (3.5) if and only if it satisfies (3.6).
  6. A solution of (3.1)–(3.2) in [0,1]J[0,1]^J[0,1]J has all Ej<1E_j < 1Ej​<1; and for y≥0y \ge 0y≥0, Ej=1−e−yjE_j = 1 - e^{-y_j}Ej​=1−e−yj​ solves (3.1)–(3.2) if and only if yyy satisfies (3.6).

Significance

The theorem turns a nonlinear system of JJJ equations into a smooth strictly convex minimization over the nonnegative orthant. Uniqueness of the fixed point follows at once, and the program gives a computational handle: any convex-minimization method computes the Erlang fixed point, without relying on the convergence of repeated substitution. The comparison with the dual problem (2.3) also explains the approximation: (3.6) relaxes the conditions (2.7), which force a link's carried traffic to equal its capacity before it can block, into a smooth relation in which blocking grows with carried traffic as Erlang's formula prescribes (Remark 3.8).

On Prove2Me, existence and uniqueness of the fixed point alone is already the Proved theorem KellyStochasticNetworks.erlang_fixed_point_unique (Kelly–Yudovina, Stochastic Networks, Theorem 3.20), referenced by this mission. Also referenced: KellyStochasticNetworks.erlang_strictMono (Proved: ν↦E(ν,C)\nu \mapsto E(\nu, C)ν↦E(ν,C) and ν↦ν(1−E(ν,C))\nu \mapsto \nu(1 - E(\nu, C))ν↦ν(1−E(ν,C)) are strictly increasing for C≥1C \ge 1C≥1) and KellyStochasticNetworks.erlang_mean_busy_circuits (Proved: the mean number of busy circuits is ν(1−E(ν,C))\nu(1 - E(\nu, C))ν(1−E(ν,C)), the reading of UUU as a utilization). What this mission adds is the revised dual problem itself, the utilization function UUU, and the identification of the fixed point with the optimum of (3.5); none of these is formalized on the platform.

Difficulty

The function UUU is defined only implicitly, through the inverse of ν↦−log⁡(1−E(ν,C))\nu \mapsto -\log(1 - E(\nu, C))ν↦−log(1−E(ν,C)), so every property of the objective of (3.5) passes through properties of Erlang's formula: monotonicity, continuity, and the limit E(ν,C)→1E(\nu, C) \to 1E(ν,C)→1 as ν→∞\nu \to \inftyν→∞. Differentiating ∫0yU\int_0^{y} U∫0y​U needs continuity of UUU, which must be derived from the inverse.

The paper's sentence "strictly convex: it thus has a unique minimum" covers only uniqueness. Existence of a minimizer on the unbounded set y≥0y \ge 0y≥0 is a separate fact, a growth estimate for the integral terms, and it is part of milestone 4. The first term of (3.5) is not strictly convex when AAA has rank less than JJJ, so strict convexity must come from the separable integral terms. Finally, optimality over y≥0y \ge 0y≥0 yields only one-sided conditions at coordinates with yj=0y_j = 0yj​=0; that (3.6) is an equality there uses U(0,C)=0U(0, C) = 0U(0,C)=0.

Formalization scope

Lean namespace KellyLossNetworks.RevisedDual. Links are Fin J, routes Fin R, the incidence matrix is A : Fin J → Fin R → ℕ, rates ν : Fin R → ℝ, capacities C : Fin J → ℕ, following the published Kelly–Yudovina definitions. Every statement assumes νr>0\nu_r > 0νr​>0 and Cj≥1C_j \ge 1Cj​≥1; the paper uses both without stating them, and a link with Cj=0C_j = 0Cj​=0 makes (3.4) meaningless, since E(ν,0)=1E(\nu, 0) = 1E(ν,0)=1.

Erlang's formula is the published KellyStochasticNetworks.erlang and the fixed point equations (3.1)–(3.2) are the published KellyStochasticNetworks.ErlangFixedPoint, whose factor (1−Ej)−1(1 - E_j)^{-1}(1−Ej​)−1 is Lean's total inverse; milestone 6 shows that no solution in [0,1]J[0,1]^J[0,1]J reaches Ej=1E_j = 1Ej​=1. Solutions are sought in [0,1]J[0,1]^J[0,1]J, as on p. 338.

UUU is defined by choice: U(y,C)=ν(1−E(ν,C))U(y, C) = \nu(1 - E(\nu, C))U(y,C)=ν(1−E(ν,C)) for a ν≥0\nu \ge 0ν≥0 with −log⁡(1−E(ν,C))=y-\log(1 - E(\nu, C)) = y−log(1−E(ν,C))=y, and 000 if none exists. For C≥1C \ge 1C≥1, y≥0y \ge 0y≥0 the ν\nuν is unique, and that (3.4) holds is milestone 1, a theorem, not an axiom built into the definition. Values at y<0y < 0y<0 or C=0C = 0C=0 are placeholders that no statement uses. The integral in (3.5) is the interval integral ∫0yj\int_0^{y_j}∫0yj​​. An optimum of (3.5) is a y≥0y \ge 0y≥0 whose objective value is at most that of every z≥0z \ge 0z≥0.

A trivializing formalization is ruled out: replacing UUU by any closed form other than the one fixed by (3.4) (for instance U(z,C)=CU(z, C) = CU(z,C)=C, the fluid utilization of Remark 3.8) would change the problem and reduce (3.5) to the dual (2.3); and the goal asserts the identification E=1−e−yE = 1 - e^{-y}E=1−e−y rather than restating the existence and uniqueness that is already Proved.

A complete development needs: inverse-function arguments for a strictly increasing continuous map of [0,∞)[0, \infty)[0,∞), derivatives of interval integrals with continuous integrands, strict convexity of separable sums, and first-order optimality conditions for convex functions on the nonnegative orthant. The facts about Erlang's formula and about UUU are reusable in any reduced-load analysis. Proofs of individual milestones are welcome independently.

Selected references

  • F. P. Kelly, Loss networks, The Annals of Applied Probability 1(3):319–378, 1991. https://doi.org/10.1214/aoap/1177005872
  • F. P. Kelly, Blocking probabilities in large circuit-switched networks, Advances in Applied Probability 18:473–505, 1986 (reference [33] of Kelly 1991; DOI not verified offline).
  • F. P. Kelly and E. Yudovina, Stochastic Networks, Cambridge University Press, 2014 (the source of the Proved platform items referenced here; DOI not verified offline).
13 thms4 active usersReviewed
PreviousPage 3 of 44Next

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