Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Operations Research

889 missions · 484 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

Open405Completed484All889
🏆Completed
CombinatoricsGraph TheoryOptimization+1·Captain: mikedeng1

An Analysis of Several Heuristics for the Traveling Salesman Problem I: Nearest Neighbor Tours Can Be Far from OptimalResearch Paper

Motivation

The traveling salesman problem with the triangle inequality asks for a shortest closed tour through nnn points whose distances form a metric. It is NP-hard, so in practice tours are built by fast construction heuristics, and the natural question is how far such a tour can be from optimal in the worst case. Rosenkrantz, Stearns and Lewis (SIAM J. Comput. 6(3), 1977) gave the first systematic worst-case analysis of the standard heuristics. Their results are reproduced in textbooks on approximation algorithms and combinatorial optimization, and they are the reference point against which later guarantees (Christofides' 3/23/23/2 algorithm, the double-tree 222-approximation) are compared.

The simplest heuristic studied is the nearest neighbor algorithm (Bellmore and Nemhauser, 1968; the "next best method" of Gavett, 1965): from the current node, always move to the closest node not yet visited, and return to the start at the end. The paper shows that this greedy rule is never worse than logarithmic (Theorem 1) and that the logarithm cannot be removed (Theorem 2). This mission is about Theorem 2, the lower bound.

Setting

A traveling salesman graph on nnn nodes is a complete graph with a distance d(a,b)∈Rd(a,b)\in\mathbb Rd(a,b)∈R that is symmetric, d(a,b)=d(b,a)d(a,b)=d(b,a)d(a,b)=d(b,a), nonnegative, d(a,b)≥0d(a,b)\ge 0d(a,b)≥0, and satisfies the triangle inequality d(a,c)≤d(a,b)+d(b,c)d(a,c)\le d(a,b)+d(b,c)d(a,c)≤d(a,b)+d(b,c). A tour lists the nodes in a visiting order τ(0),…,τ(n−1)\tau(0),\dots,\tau(n-1)τ(0),…,τ(n−1) and returns to τ(0)\tau(0)τ(0); its length is the sum of the nnn distances along it. OPTIMAL is the least length of a tour.

The nearest neighbor algorithm starts at an arbitrary node τ(0)\tau(0)τ(0); having reached τ(k)\tau(k)τ(k), it moves to a node τ(k+1)\tau(k+1)τ(k+1) that minimizes d(τ(k),⋅)d(\tau(k),\cdot)d(τ(k),⋅) over the nodes not yet visited, breaking ties arbitrarily; after the last node it returns to τ(0)\tau(0)τ(0). The length of the resulting tour is written NEARNEIBER. Because the start node and the ties are free, one instance has in general several nearest-neighbor tours. A lower bound needs only one of them; an upper bound must hold for all.

The instances of the proof are built from a recursive family of weighted graphs. With li=16(4⋅2i−(−1)i+3)l_i=\frac16(4\cdot 2^i-(-1)^i+3)li​=61​(4⋅2i−(−1)i+3) (so l1,l2,l3,l4=2,3,6,11l_1,l_2,l_3,l_4=2,3,6,11l1​,l2​,l3​,l4​=2,3,6,11), the graph F1F_1F1​ is a triangle with unit weights, and Fi+1F_{i+1}Fi+1​ consists of two copies of FiF_iFi​ joined through one new node by two edges of length 111 and two edges of length lil_ili​. Each FiF_iFi​ has 2i+1−12^{i+1}-12i+1−1 nodes and a path PiP_iPi​ from its start node to its middle node through every node, of length LiL_iLi​ with L1=2L_1=2L1​=2, Li+1=2Li+2liL_{i+1}=2L_i+2l_iLi+1​=2Li​+2li​. The graph GiG_iGi​ adds two closing edges to FiF_iFi​, and Gˉi\bar G_iGˉi​ is the complete graph on the same nodes whose distance is the shortest-path distance of GiG_iGi​.

Formalization targets

Goal: Theorem 2 (p. 566)

For each m>3m>3m>3 there is a traveling salesman graph with n=2m−1n=2^m-1n=2m−1 nodes and a nearest-neighbor tour on it such that

NEARNEIBEROPTIMAL>13lg⁡(n+1)+49.\frac{\mathrm{NEARNEIBER}}{\mathrm{OPTIMAL}}>\frac13\lg(n+1)+\frac49 .OPTIMALNEARNEIBER​>31​lg(n+1)+94​.

The statement is existential in both the instance and the run of the algorithm, exactly as in the paper.

Milestones, in the order the proof uses them

  1. (2.12): the difference equation Li+1=2Li+2liL_{i+1}=2L_i+2l_iLi+1​=2Li​+2li​, L1=2L_1=2L1​=2, has the solution Li=19(6 i 2i+8⋅2i+(−1)i−9)L_i=\frac19(6\,i\,2^i+8\cdot2^i+(-1)^i-9)Li​=91​(6i2i+8⋅2i+(−1)i−9).
  2. Gˉi\bar G_iGˉi​ is a traveling salesman graph: the shortest-path distance of GiG_iGi​ is symmetric, nonnegative and satisfies the triangle inequality.
  3. (2.13)–(2.17): the shortest-path distances in Fi+1F_{i+1}Fi+1​ between the seven named nodes A,…,GA,\dots,GA,…,G of Fig. 1, e.g. AG‾=li+2−2\overline{AG}=l_{i+2}-2AG=li+2​−2.
  4. Property a): every edge of GiG_iGi​ is a shortest path between its endpoints.
  5. Property b): the nearest neighbor algorithm started at the start node of Gˉi\bar G_iGˉi​ can follow PiP_iPi​ and return along the edge of length li−1l_i-1li​−1.
  6. The optimal tour: OPTIMAL(Gˉi)=2i+1−1\mathrm{OPTIMAL}(\bar G_i)=2^{i+1}-1OPTIMAL(Gˉi​)=2i+1−1.
  7. The exact ratio: the tour along PiP_iPi​ has length Li+li−1L_i+l_i-1Li​+li​−1, so its ratio is (Li+li−1)/n(L_i+l_i-1)/n(Li​+li​−1)/n.
  8. The inequality: (Li+li−1)/n>13lg⁡(n+1)+49(L_i+l_i-1)/n>\frac13\lg(n+1)+\frac49(Li​+li​−1)/n>31​lg(n+1)+94​ for i≥3i\ge3i≥3.

The instance for mmm is Gˉm−1\bar G_{m-1}Gˉm−1​.

Significance

Theorem 1 of the same paper shows NEARNEIBER/OPTIMAL≤12⌈lg⁡n⌉+12\mathrm{NEARNEIBER}/\mathrm{OPTIMAL}\le\frac12\lceil\lg n\rceil+\frac12NEARNEIBER/OPTIMAL≤21​⌈lgn⌉+21​ for every nearest-neighbor tour on every traveling salesman graph. Theorem 2 shows that this bound has the right order: no constant-factor guarantee holds for the nearest neighbor rule, and the gap between the two constants (13\frac1331​ against 12\frac1221​) is all that remains. This separates the nearest neighbor rule from the insertion rules analysed later in the same paper, of which nearest and cheapest insertion are within a factor 222 of optimal. It is the standard example of a natural greedy heuristic whose approximation ratio grows with nnn.

The upper bound, Theorem 1, is already on Prove2Me with a machine-checked proof (SupplyChainTheory.nearest_neighbor_bound); its statement notes that the lower-bound instances are not formalized there. This mission supplies them: an explicit recursive family of metric instances, the shortest-path computations that certify it, and the arithmetic of its ratio. The result is proved in the paper; to our knowledge it has not been formalized in any proof assistant. The construction (a recursively defined weighted graph with a closed-form shortest-path table) is also a reusable pattern for other worst-case lower bounds of greedy heuristics.

Difficulty

The arithmetic ((2.12) and the final inequality) is routine. The content is in properties a) and b). A shortest-path distance is an infimum over all walks, and property a) asks that no detour through the recursive structure is shorter than the direct edge, at every level of the recursion. The paper handles this by an induction on (2.13)–(2.17) that tracks only seven nodes per level, and argues that distances inside a copy of FiF_iFi​ are not shortened by embedding it into Fi+1F_{i+1}Fi+1​. Property b) then needs that at each step of PiP_iPi​ the chosen node is at least as close as every unvisited node, including nodes in the other copy and nodes reached through the start or right nodes; ties occur, and the claim is only that some resolution of them follows PiP_iPi​. Checking small cases by computer does not give either property for all iii.

Formalization scope

Nodes of an instance are Fin n, a tour is a permutation of Fin n, the tour length is the sum over consecutive pairs including the closing edge, and OPTIMAL is a minimum over the finite set of permutations. The model is the paper's: symmetric, nonnegative distances with the triangle inequality. The distance structure also carries d(a,a)=0d(a,a)=0d(a,a)=0, a normalization not in the paper; the diagonal never enters a tour length. A nearest-neighbor tour is a permutation in which each step goes to a node at least as close as every unvisited node, from an arbitrary start with arbitrary ties.

Ratios are multiplied out: the goal is (13log⁡2(n+1)+49)⋅OPTIMAL<NEARNEIBER(\frac13\log_2(n+1)+\frac49)\cdot\mathrm{OPTIMAL}<\mathrm{NEARNEIBER}(31​log2​(n+1)+94​)⋅OPTIMAL<NEARNEIBER together with OPTIMAL>0\mathrm{OPTIMAL}>0OPTIMAL>0, the paper's standing assumption (1.1). lg⁡(n+1)\lg(n+1)lg(n+1) is Real.logb 2 of n+1n+1n+1, as printed. Because of the strict inequality and the conjunct OPTIMAL>0\mathrm{OPTIMAL}>0OPTIMAL>0, the all-zero distance does not satisfy the goal, so the statement cannot be met by a degenerate instance.

In the construction the nodes of FiF_iFi​, GiG_iGi​, Gˉi\bar G_iGˉi​ are numbered 0,…,2i+1−20,\dots,2^{i+1}-20,…,2i+1−2 from left to right (start node 000, middle node 2i−12^i-12i−1, right node 2i+1−22^{i+1}-22i+1−2); in Fi+1F_{i+1}Fi+1​ the left copy comes first, then the new node, then the right copy. Graphs are edge lists with real weights and lil_ili​ is defined in R\mathbb RR exactly as in (2.11). The shortest-path distance is the infimum of walk weights over an inductive walk predicate; it would be 000 for two nodes with no connecting walk, a case that does not arise because every GiG_iGi​ and FiF_iFi​ is connected. LiL_iLi​ is defined by its difference equation; its identification with the length of the tour along PiP_iPi​ is milestone 7. All construction statements assume i≥1i\ge1i≥1.

A complete development needs a small library for shortest-path distances of finite weighted edge lists (symmetry, triangle inequality, attainment, behaviour under relabelling and under gluing two graphs at a few nodes); this part is reusable beyond the mission. Contributions welcome: proofs of any milestone, and such general shortest-path lemmas as separate theorems. Theorem 1 is not part of this mission.

Selected references

  • D. J. Rosenkrantz, R. E. Stearns, P. M. Lewis II, An Analysis of Several Heuristics for the Traveling Salesman Problem, SIAM J. Comput. 6(3):563–581, 1977. https://doi.org/10.1137/0206041
  • M. Bellmore, G. L. Nemhauser, The Traveling Salesman Problem: A Survey, Operations Research 16(3):538–558, 1968. https://doi.org/10.1287/opre.16.3.538
  • J. W. Gavett, Three Heuristic Rules for Sequencing Jobs to a Single Production Facility, Management Science 11(8):B166–B176, 1965. https://doi.org/10.1287/mnsc.11.8.B166
  • N. Christofides, Worst-Case Analysis of a New Heuristic for the Travelling Salesman Problem, Report 388, Graduate School of Industrial Administration, Carnegie Mellon University, 1976.
12 thms4 active usersReviewed
🏆Completed
CombinatoricsOptimizationTheoretical Computer Science·Captain: mikedeng1

Worst-Case Performance Bounds for Simple One-Dimensional Packing Algorithms 2: First-Fit and Best-Fit with Bounded Item SizesResearch Paper

Motivation

Bin packing asks for the fewest unit-capacity bins that hold a given list of item sizes. It models cutting stock, memory allocation, file placement and the loading of trucks, and it is NP-hard, so in practice lists are packed by simple rules that look at one item at a time. The two most widely used rules are First-Fit and Best-Fit, and the question that Johnson, Demers, Ullman, Garey and Graham answered in 1974 is how far from optimal they can be in the worst case.

Their headline answer is that both rules use at most about 1710\tfrac{17}{10}1017​ times the optimal number of bins, and that 1710\tfrac{17}{10}1017​ is asymptotically attained. The lists that force this ratio use items larger than 12\tfrac1221​. When all items are known to be small, which is typical of memory and storage applications, the guarantee is much better, and this mission is about that refinement: the paper's Theorem 2.3 and its corollary, which determine the asymptotic worst-case ratio of First-Fit and Best-Fit exactly as a function of the largest allowed item size α≤12\alpha\le\tfrac12α≤21​.

Timeline. Ullman (1971) introduced the worst-case analysis of First-Fit with a 1710L∗+3\tfrac{17}{10}L^*+31017​L∗+3 bound. Garey, Graham and Ullman (1972) and Johnson's thesis (MIT, 1973) extended it to Best-Fit and to the decreasing variants. The 1974 SIAM paper collects these results; Theorem 2.3 there is the parametric bound for items of size at most α\alphaα. The additive constants in the unrestricted 1710\tfrac{17}{10}1017​ bound were sharpened over the following four decades, culminating in Dósa and Sgall's proof (2013) that FF(L)≤⌊1710L∗⌋FF(L)\le\lfloor\tfrac{17}{10}L^*\rfloorFF(L)≤⌊1017​L∗⌋.

Setting

A list is a finite sequence L=(a1,…,an)L=(a_1,\dots,a_n)L=(a1​,…,an​) of real numbers in (0,1](0,1](0,1]. Its optimum L∗L^*L∗ is the least number of bins into which the elements of LLL can be placed so that no bin contains numbers whose sum exceeds 111. The level of a bin is the sum of the numbers in it. For a real α>0\alpha>0α>0, write L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α] when every element of LLL is at most α\alphaα.

First-Fit (FFFFFF) considers bins B1,B2,…B_1,B_2,\dotsB1​,B2​,…, all initially empty, and places a1,a2,…,ana_1,a_2,\dots,a_na1​,a2​,…,an​ in that order: aia_iai​ goes into the bin BjB_jBj​ of least index whose level β\betaβ satisfies β≤1−ai\beta\le 1-a_iβ≤1−ai​. Best-Fit (BFBFBF) is the same except that, among the bins with β≤1−ai\beta\le 1-a_iβ≤1−ai​, it chooses one of largest level β\betaβ (least index among ties). FF(L)FF(L)FF(L) and BF(L)BF(L)BF(L) denote the numbers of nonempty bins at the end.

The restricted worst-case ratios are

RFFα(k)=max⁡{FF(L)L∗:L⊆(0,α], L∗=k},RBFα(k)=max⁡{BF(L)L∗:L⊆(0,α], L∗=k}.R^\alpha_{FF}(k)=\max\Big\{\frac{FF(L)}{L^*}: L\subseteq(0,\alpha],\ L^*=k\Big\},\qquad R^\alpha_{BF}(k)=\max\Big\{\frac{BF(L)}{L^*}: L\subseteq(0,\alpha],\ L^*=k\Big\}.RFFα​(k)=max{L∗FF(L)​:L⊆(0,α], L∗=k},RBFα​(k)=max{L∗BF(L)​:L⊆(0,α], L∗=k}.

Throughout, 0<α≤120<\alpha\le\tfrac120<α≤21​ and m=⌊α−1⌋m=\lfloor\alpha^{-1}\rfloorm=⌊α−1⌋, an integer with m≥2m\ge 2m≥2 and 1m+1<α≤1m\tfrac1{m+1}<\alpha\le\tfrac1mm+11​<α≤m1​.

Formalization targets

Goal: the asymptotic ratio (Corollary of Theorem 2.3, p. 308)

lim⁡k→∞RFFα(k)=lim⁡k→∞RBFα(k)=1+1⌊α−1⌋.\lim_{k\to\infty}R^\alpha_{FF}(k)=\lim_{k\to\infty}R^\alpha_{BF}(k)=1+\frac{1}{\lfloor\alpha^{-1}\rfloor}.k→∞lim​RFFα​(k)=k→∞lim​RBFα​(k)=1+⌊α−1⌋1​.

The goal is stated as a limit, which is the stable form of the result: it is unaffected by any improvement of the additive constants below.

Theorem 2.3(i): the lower bound (p. 307)

For each k≥1k\ge1k≥1 there is a list L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α] with L∗=kL^*=kL∗=k and FF(L)≥m+1mL∗−1mFF(L)\ge\frac{m+1}{m}L^*-\frac1mFF(L)≥mm+1​L∗−m1​; likewise for BFBFBF.

Two steps of the First-Fit upper bound (p. 308)

If no element of LLL exceeds 1m\frac1mm1​, then in the First-Fit packing every bin except possibly the last contains at least mmm elements, and all but at most two bins have level at least mm+1\frac{m}{m+1}m+1m​.

Theorem 2.3(ii): the upper bounds (p. 307)

For every list L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α],

FF(L)≤m+1mL∗+2,BF(L)≤m+1mL∗+2.FF(L)\le\frac{m+1}{m}L^*+2,\qquad BF(L)\le\frac{m+1}{m}L^*+2.FF(L)≤mm+1​L∗+2,BF(L)≤mm+1​L∗+2.

Significance

The theorem gives an exact, parametric description of how the worst case of the two greedy rules improves as items shrink: the asymptotic ratio is 32\tfrac3223​ when items are at most 12\tfrac1221​, 43\tfrac4334​ when at most 13\tfrac1331​, and tends to 111 as the maximum item size tends to 000. Combined with the 1710\tfrac{17}{10}1017​ bound for unrestricted lists, it shows that the bad behaviour of First-Fit is caused entirely by items larger than 12\tfrac1221​. Such parametric bounds are the standard way bin-packing heuristics are compared in the literature on online and semi-online packing, and the construction in part (i) is a reusable template for lower-bound lists.

The paper proves the First-Fit upper bound and the lower bound (the verification of the lower-bound construction is left to the reader). The Best-Fit upper bound is stated but not proved: the paper says only that "a similar, but slightly more complicated, argument can be used". A formal proof of the goal therefore requires supplying that argument. None of these results is known to have a machine-checked proof; Mathlib contains no bin-packing development.

Difficulty

For First-Fit the upper bound is a counting argument, but it rests on a property of the run, not of the final packing: an item that went into a later bin did not fit into an earlier bin at the moment it was placed. Turning that into a statement about the final levels requires an invariant maintained through the whole sequence of placements.

The Best-Fit upper bound is harder because that property fails: Best-Fit may put a small item into a fuller, later bin while an earlier, lighter bin still has room, so a light early bin and a light later bin can coexist longer than under First-Fit. The paper gives no argument for this case.

The lower bound requires computing the exact behaviour of both algorithms on a specific interleaved list with item sizes perturbed by powers of mmm, and computing L∗L^*L∗ exactly for that list, which needs a matching lower bound on the optimum.

Formalization scope

A list is L : List ℝ with the hypothesis IsList L (every element in (0,1](0,1](0,1]); L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α] is the additional hypothesis ∀ a ∈ L, a ≤ α. L∗L^*L∗ is optBins L, a sInf in ℕ over numbers of bins admitting a feasible assignment; the hypothesis IsList makes the set nonempty. The runs ffPack L and bfPack L are folds over the list that keep the nonempty bins in the order they were opened, each with its contents; an item that fits nowhere opens a new bin at the end, which is the paper's "least jjj" over infinitely many empty bins. Comparisons are exact (classical decidability on ℝ), and FF(L)FF(L)FF(L), BF(L)BF(L)BF(L) are the lengths of the final bin lists. mmm is Nat.floor α⁻¹, cast before any division.

The ratios RFFα(k)R^\alpha_{FF}(k)RFFα​(k), RBFα(k)R^\alpha_{BF}(k)RBFα​(k) are suprema taken in ℝ≥0∞: an unbounded family would give +∞+\infty+∞, never a default value, and at k=0k=0k=0 the only admissible list is empty and the value is 000. The goal is a Tendsto … atTop (𝓝 (1 + (⌊α⁻¹⌋₊)⁻¹)) statement in ℝ≥0∞. A real-valued sSup would have returned 000 on an unbounded family and made a false bound look provable; that encoding is ruled out. The upper bounds keep the additive constant 222 and the lower bound the subtractive 1m\frac1mm1​ exactly as printed.

The two proof steps are stated under the proof's own hypothesis "no element exceeding 1/m1/m1/m", which is weaker than L⊆(0,α]L\subseteq(0,\alpha]L⊆(0,α].

A complete development needs invariants of the First-Fit and Best-Fit folds, a lower bound L∗≥∑iaiL^*\ge\sum_i a_iL∗≥∑i​ai​, and exact evaluation of both runs on the construction of part (i). Lemmas about the fold encoding of First-Fit and Best-Fit and about L∗L^*L∗ are reusable in the companion missions on the 1710\tfrac{17}{10}1017​, 119\tfrac{11}{9}911​ and 7160\tfrac{71}{60}6071​ bounds of the same paper. Contributions on the Best-Fit upper bound are especially welcome, since the source gives no proof.

Selected references

  • D. S. Johnson, A. Demers, J. D. Ullman, M. R. Garey, R. L. Graham, Worst-Case Performance Bounds for Simple One-Dimensional Packing Algorithms, SIAM Journal on Computing 3(4):299–325, 1974. https://doi.org/10.1137/0203025
  • J. D. Ullman, The Performance of a Memory Allocation Algorithm, Technical Report 100, Princeton University, 1971.
  • M. R. Garey, R. L. Graham, J. D. Ullman, Worst-Case Analysis of Memory Allocation Algorithms, Proc. 4th ACM Symposium on Theory of Computing, 143–150, 1972. https://doi.org/10.1145/800152.804907
  • D. S. Johnson, Near-Optimal Bin Packing Algorithms, PhD thesis, Massachusetts Institute of Technology, 1973. http://hdl.handle.net/1721.1/57819
  • G. Dósa, J. Sgall, First Fit Bin Packing: A Tight Analysis, Proc. 30th STACS, LIPIcs 20:538–549, 2013. https://doi.org/10.4230/LIPIcs.STACS.2013.538
7 thms4 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine LearningProbability·Captain: mikedeng1

Stochastic Linear Optimization under Bandit Feedback 1: The Regret Bound of ConfidenceBallResearch Paper

Motivation

In stochastic linear optimization under bandit feedback a learner repeatedly chooses a decision xtx_txt​ from a fixed set D⊆RnD\subseteq\mathbb R^nD⊆Rn and observes only the noisy cost of that one decision, whose expectation is a fixed but unknown linear function μ⊤xt\mu^\top x_tμ⊤xt​. The model covers online routing, ad and product selection with feature vectors, and any sequential decision problem whose decision set is too large to enumerate but whose expected cost is linear in a known representation. The multi-armed bandit is the special case where DDD is the set of standard basis vectors.

Dani, Hayes and Kakade (COLT 2008) analysed the algorithm ConfidenceBall₂, a generalization of Auer's LinRel (JMLR 2002), and proved that its regret is O∗(nT)O^*(n\sqrt T)O∗(nT​) with high probability for an arbitrary compact decision set, and that this is optimal up to logarithmic factors. Their confidence-ellipsoid construction became the template for later linear bandit algorithms (OFUL, LinUCB), and the ellipsoid-plus-potential analysis is the standard argument of the field (Lattimore and Szepesvári, Bandit Algorithms, Chapters 19–20).

Timeline: Auer (2002) introduced LinRel for finite decision sets; Dani, Hayes and Kakade (2008) extended it to arbitrary compact sets with the O∗(nT)O^*(n\sqrt T)O∗(nT​) bound and a matching Ω(nT)\Omega(n\sqrt T)Ω(nT​) lower bound; Rusmevichientong and Tsitsiklis (Math. Oper. Res. 2010) studied linearly parameterized bandits with dimension-dependent regret bounds; Abbasi-Yadkori, Pál and Szepesvári (NeurIPS 2011) sharpened the confidence ellipsoids with self-normalized martingale bounds.

Setting

Fix n≥1n\ge1n≥1 and a compact decision set D⊆RnD\subseteq\mathbb R^nD⊆Rn whose standard basis e1,…,ene_1,\dots,e_ne1​,…,en​ is a barycentric spanner: each ei∈De_i\in Dei​∈D and every x∈Dx\in Dx∈D lies in the cube [−1,1]n[-1,1]^n[−1,1]n. The paper's Section 5 adopts these coordinates without loss of generality. An unknown vector μ∈Rn\mu\in\mathbb R^nμ∈Rn satisfies ∣μ⊤x∣≤1|\mu^\top x|\le1∣μ⊤x∣≤1 for x∈Dx\in Dx∈D, and x∗∈Dx^*\in Dx∗∈D minimises μ⊤x\mu^\top xμ⊤x.

On round t=1,2,…t=1,2,\dotst=1,2,… the learner plays xt∈Dx_t\in Dxt​∈D, measurable with respect to the information Ft\mathcal F_tFt​ before round ttt, and observes a loss ℓt∈[−1,1]\ell_t\in[-1,1]ℓt​∈[−1,1] with E[ℓt∣Ft]=μ⊤xt\mathbb E[\ell_t\mid\mathcal F_t]=\mu^\top x_tE[ℓt​∣Ft​]=μ⊤xt​. The regret after TTT rounds is

RT=∑t=1T(μ⊤xt−μ⊤x∗).R_T=\sum_{t=1}^T\big(\mu^\top x_t-\mu^\top x^*\big).RT​=t=1∑T​(μ⊤xt​−μ⊤x∗).

ConfidenceBall₂(D,δ)(D,\delta)(D,δ) maintains the design matrix At=I+∑τ<txτxτ⊤A_t=I+\sum_{\tau<t}x_\tau x_\tau^\topAt​=I+∑τ<t​xτ​xτ⊤​, the least-squares estimate μ^t=At−1∑τ<tℓτxτ\hat\mu_t=A_t^{-1}\sum_{\tau<t}\ell_\tau x_\tauμ^​t​=At−1​∑τ<t​ℓτ​xτ​, the radius

βt=max⁡(128 nln⁡tln⁡(t2/δ), (83ln⁡(t2/δ))2),\beta_t=\max\Big(128\,n\ln t\ln(t^2/\delta),\ \big(\tfrac83\ln(t^2/\delta)\big)^2\Big),βt​=max(128nlntln(t2/δ), (38​ln(t2/δ))2),

and the confidence ellipsoid Bt2={ν:(ν−μ^t)⊤At(ν−μ^t)≤βt}B^2_t=\{\nu:(\nu-\hat\mu_t)^\top A_t(\nu-\hat\mu_t)\le\beta_t\}Bt2​={ν:(ν−μ^​t​)⊤At​(ν−μ^​t​)≤βt​}. It plays the optimistic decision xt∈argmin⁡x∈Dmin⁡ν∈Bt2ν⊤xx_t\in\operatorname{argmin}_{x\in D}\min_{\nu\in B^2_t}\nu^\top xxt​∈argminx∈D​minν∈Bt2​​ν⊤x. The analysis uses the width wt=xt⊤At−1xtw_t=\sqrt{x_t^\top A_t^{-1}x_t}wt​=xt⊤​At−1​xt​​, the error Zt=(μ^t−μ)⊤At(μ^t−μ)Z_t=(\hat\mu_t-\mu)^\top A_t(\hat\mu_t-\mu)Zt​=(μ^​t​−μ)⊤At​(μ^​t​−μ), and the noise ηt=ℓt−μ⊤xt\eta_t=\ell_t-\mu^\top x_tηt​=ℓt​−μ⊤xt​.

Formalization targets

Goal: Theorem 2, ConfidenceBall₂ bullet (corrected)

For 0<δ<10<\delta<10<δ<1 with n≤β1n\le\beta_1n≤β1​ and noise ∣ηt∣≤1|\eta_t|\le1∣ηt​∣≤1,

Pr⁡(∀T≥1, RT≤8nTβTln⁡(T+1))≥1−δ.\Pr\Big(\forall T\ge1,\ R_T\le\sqrt{8nT\beta_T\ln(T+1)}\Big)\ge1-\delta.Pr(∀T≥1, RT​≤8nTβT​ln(T+1)​)≥1−δ.

A single event covers every horizon, so the bound is anytime.

Milestones

  • Lemma 8. If μ∈Bt2\mu\in B^2_tμ∈Bt2​ then rt≤2min⁡(βtwt,1)r_t\le2\min(\sqrt{\beta_t}w_t,1)rt​≤2min(βt​​wt​,1).
  • Lemma 10. det⁡At+1=∏τ=1t(1+wτ2)\det A_{t+1}=\prod_{\tau=1}^t(1+w_\tau^2)detAt+1​=∏τ=1t​(1+wτ2​).
  • Lemma 9 (corrected). ∑τ=1tmin⁡(wτ2,1)≤2nln⁡(t+1)\sum_{\tau=1}^t\min(w_\tau^2,1)\le2n\ln(t+1)∑τ=1t​min(wτ2​,1)≤2nln(t+1).
  • Theorem 6 (corrected). If μ∈Bt2\mu\in B^2_tμ∈Bt2​ for all t≤Tt\le Tt≤T, then ∑t≤Trt2≤8nβTln⁡(T+1)\sum_{t\le T}r_t^2\le8n\beta_T\ln(T+1)∑t≤T​rt2​≤8nβT​ln(T+1).
  • Theorem 4 (Freedman). Pr⁡(∑Xi≥a, V≤v)≤exp⁡(−a2/(2v+2ab/3))\Pr(\sum X_i\ge a,\ V\le v)\le\exp(-a^2/(2v+2ab/3))Pr(∑Xi​≥a, V≤v)≤exp(−a2/(2v+2ab/3)) for martingale differences bounded above by bbb.
  • Lemma 12. Zt≤n+2∑τ<tητxτ⊤(μ^τ−μ)1+wτ2+∑τ<tητ2wτ21+wτ2Z_t\le n+2\sum_{\tau<t}\eta_\tau\frac{x_\tau^\top(\hat\mu_\tau-\mu)}{1+w_\tau^2}+\sum_{\tau<t}\eta_\tau^2\frac{w_\tau^2}{1+w_\tau^2}Zt​≤n+2∑τ<t​ητ​1+wτ2​xτ⊤​(μ^​τ​−μ)​+∑τ<t​ητ2​1+wτ2​wτ2​​.
  • Lemma 14. Pr⁡(∀t, ∑τ<tMτ≤βt/2)≥1−δ\Pr(\forall t,\ \sum_{\tau<t}M_\tau\le\beta_t/2)\ge1-\deltaPr(∀t, ∑τ<t​Mτ​≤βt​/2)≥1−δ.
  • Theorem 5 (Confidence). Pr⁡(∀t, μ∈Bt2)≥1−δ\Pr(\forall t,\ \mu\in B^2_t)\ge1-\deltaPr(∀t, μ∈Bt2​)≥1−δ.

Significance

The result gives a regret bound for linear bandits over an arbitrary compact decision set that depends on the dimension nnn rather than on ∣D∣|D|∣D∣, holds uniformly over horizons, and requires no gap between the best and second-best decision. With the paper's lower bound it shows that the price of bandit feedback, compared with full information, is a factor Θ∗(n)\Theta^*(\sqrt n)Θ∗(n​). The two components, a confidence theorem for a least-squares ellipsoid under martingale noise and a deterministic potential argument on log⁡det⁡At\log\det A_tlogdetAt​, are reused in the analysis of most optimistic linear and generalized-linear bandit algorithms.

The theorem has a published proof but, to our knowledge, no machine-checked one. The platform already has the elliptical potential lemma (BanditAlgorithm.elliptical_potential_lemma, Lattimore–Szepesvári Lemma 19.4), the matrix determinant lemma and the Woodbury identity, which cover the linear-algebra layer; the LinUCB regret theorem there (BanditAlgorithm.linear_bandit_linucb_regret_bound) is pathwise given confidence, for a different algorithm, so the probabilistic half is new. Formalization also settles the printed constants, three of which need correction (below).

Difficulty

The deterministic half is linear algebra. The difficulty is the confidence theorem. Hoeffding–Azuma applied to ∑τMτ\sum_\tau M_\tau∑τ​Mτ​ would need a deterministic step bound, and the natural one gives only a T3/4T^{3/4}T3/4 regret. The step sizes of MtM_tMt​ are bounded in terms of the random widths wtw_twt​, so the argument must control the conditional variances pathwise and apply Freedman's inequality, whose event {V≤v}\{V\le v\}{V≤v} is random. The escape indicator EtE_tEt​, which switches the martingale off after the first failure of confidence, is what makes the variance bound hold on every path, and the induction that turns Lemma 14 into Theorem 5 must be carried out on a single event for all ttt simultaneously. Freedman's inequality itself is not in Mathlib.

Formalization scope

Vectors are Fin n → ℝ, matrices Matrix (Fin n) (Fin n) ℝ, rounds are indexed t=1,2,…t=1,2,\dotst=1,2,… in ℕ. The spanner is the standard basis, as in Section 5 of the paper (the algorithm is equivariant under the linear change of coordinates). The probability model is a probability space with a general filtration (Ft)(\mathcal F_t)(Ft​); xtx_txt​ is Ft\mathcal F_tFt​-measurable and ℓt\ell_tℓt​ is Ft+1\mathcal F_{t+1}Ft+1​-measurable. The argmin is encoded as a joint minimiser over D×Bt2D\times B^2_tD×Bt2​, which admits every tie-break and is required on every outcome; measurability of xtx_txt​ is a hypothesis, not derived from the selection. The optimum x∗x^*x∗ is a hypothesis (x∗∈Dx^*\in Dx∗∈D, minimising), not an sInf.

Corrections of the printed statements, each labelled in the item's Formalization Note:

  1. ln⁡(T+1)\ln(T+1)ln(T+1) for ln⁡T\ln TlnT in Lemma 9, Theorem 6 and Theorem 2. The printed bounds are false at T=1T=1T=1 (with n=1n=1n=1, D=[−1,1]D=[-1,1]D=[−1,1], μ>0\mu>0μ>0, the tie-break x1=1x_1=1x1​=1 gives R1=2μ>0R_1=2\mu>0R1​=2μ>0 against a bound of 000); the proof of Lemma 9 gives 2ln⁡det⁡At+1≤2nln⁡(t+1)2\ln\det A_{t+1}\le2n\ln(t+1)2lndetAt+1​≤2nln(t+1).
  2. n≤β1=(83ln⁡(1/δ))2n\le\beta_1=(\tfrac83\ln(1/\delta))^2n≤β1​=(38​ln(1/δ))2 is added to Theorems 5 and 2: the proof of Theorem 5 claims Z1≤n<β1Z_1\le n<\beta_1Z1​≤n<β1​, which fails for δ\deltaδ near 111. Theorem 6 takes the proof's "1<β11<\beta_11<β1​" as the hypothesis β1≥1\beta_1\ge1β1​≥1.
  3. ∣ℓt−μ⊤xt∣≤1|\ell_t-\mu^\top x_t|\le1∣ℓt​−μ⊤xt​∣≤1 is added to Lemma 14, Theorems 5 and 2: Section 5.2 uses ∣ηt∣≤1|\eta_t|\le1∣ηt​∣≤1, while the model gives only ∣ηt∣≤2|\eta_t|\le2∣ηt​∣≤2. It holds when costs lie in [0,1][0,1][0,1].
  4. Theorem 5's "δ>0\delta>0δ>0" is stated with 0<δ<10<\delta<10<δ<1; Lemma 10's index typo (wtw_twt​ for wτw_\tauwτ​) and Theorem 4's ∑i=1n\sum_{i=1}^n∑i=1n​ (for TTT) are corrected.

A regret bound for an arbitrary decision sequence under the assumption μ∈Bt2\mu\in B^2_tμ∈Bt2​ for all ttt is Theorem 6, not the goal; the goal carries the ConfidenceBall₂ selection rule, the conditional-mean and measurability hypotheses, and δ\deltaδ as the algorithm's own parameter. The hypotheses are jointly satisfiable, for example by a finite DDD with a fixed tie-break and i.i.d. costs in [0,1][0,1][0,1].

Needed infrastructure: Freedman's inequality for a filtration (reusable across all of bandit theory), the potential lemma (available), and measurability of the algorithm's statistics. Contributions of alternative proofs of Theorem 5, for example via self-normalized bounds, are welcome.

Selected references

  • V. Dani, T. P. Hayes, S. M. Kakade, Stochastic Linear Optimization under Bandit Feedback, COLT 2008. http://colt2008.cs.helsinki.fi/papers/80-Dani.pdf
  • P. Auer, Using Confidence Bounds for Exploitation-Exploration Trade-offs, JMLR 3, 2002. https://www.jmlr.org/papers/v3/auer02a.html
  • D. A. Freedman, On Tail Probabilities for Martingales, Annals of Probability 3(1), 1975. https://doi.org/10.1214/aop/1176996452
  • B. Awerbuch, R. Kleinberg, Adaptive Routing with End-to-End Feedback, STOC 2004. https://doi.org/10.1145/1007352.1007367
  • P. Rusmevichientong, J. N. Tsitsiklis, Linearly Parameterized Bandits, Mathematics of Operations Research 35(2), 2010. https://doi.org/10.1287/moor.1100.0446
  • Y. Abbasi-Yadkori, D. Pál, Cs. Szepesvári, Improved Algorithms for Linear Stochastic Bandits, NeurIPS 2011. https://arxiv.org/abs/1102.2670
  • T. Lattimore, Cs. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020. https://doi.org/10.1017/9781108571401
12 thms4 active usersReviewed
🏆Completed
CombinatoricsOptimizationTheoretical Computer Science·Captain: mikedeng1

Local Search Heuristics for k-Median and Facility Location Problems III: Add-Drop-Swap Local Search for Uncapacitated Facility Location Has Locality Gap 3Research Paper

Motivation

The uncapacitated facility location (UFL) problem is one of the basic models of location theory and operations research: a firm chooses which warehouses, plants or servers to open, paying a fixed cost for each open site and a service cost for every client according to its distance to the nearest open site. It is also a standard test case for approximation algorithms.

Local search is the simplest of these and the one most used in practice: start from any set of open facilities and repeatedly add, drop or exchange one facility while this lowers the cost. The question is how bad a solution can be when no such move helps. Arya, Garg, Khandekar, Meyerson, Munagala and Pandit (SIAM J. Comput. 33(3), 2004) answered it for UFL with an exact constant.

Timeline. Korupolu, Plaxton and Rajaraman (SODA 1998, J. Algorithms 2000) analysed local search with add, drop and swap moves and proved a locality gap of at most 5; their analysis contains the service cost bound restated here as Lemma 4.1. Charikar and Guha (FOCS 1999) proved a locality gap of 3 for a different local search, in which one facility is added and any number are dropped. Arya et al. (STOC 2001; journal version 2004) proved that the add/drop/swap neighbourhood itself has locality gap at most 3, and gave an instance showing that 3 cannot be improved (§4.3).

Setting

A metric instance consists of a finite set CCC of clients, a finite set FFF of facilities, and a distance ddd on C∪FC \cup FC∪F that is nonnegative, symmetric and satisfies the triangle inequality. The cost of serving client jjj by facility iii is cji=d(j,i)c_{ji} = d(j,i)cji​=d(j,i); the distance cii′c_{ii'}cii′​ between two facilities is also available. Each facility i∈Fi \in Fi∈F has an opening cost fi≥0f_i \ge 0fi​≥0.

A solution is a nonempty set S⊆FS \subseteq FS⊆F of open facilities. Every client is served by its nearest open facility, so

costf(S)=∑i∈Sfi,costs(S)=∑j∈Cmin⁡i∈Scji,cost(S)=costf(S)+costs(S).\mathrm{cost}_f(S) = \sum_{i \in S} f_i, \qquad \mathrm{cost}_s(S) = \sum_{j \in C} \min_{i \in S} c_{ji}, \qquad \mathrm{cost}(S) = \mathrm{cost}_f(S) + \mathrm{cost}_s(S).costf​(S)=i∈S∑​fi​,costs​(S)=j∈C∑​i∈Smin​cji​,cost(S)=costf​(S)+costs​(S).

The neighbourhood of SSS is the set of solutions reachable by adding one facility, dropping one facility, or swapping one open facility for another:

B(S)={S+{s′}}∪{S−{s}∣s∈S}∪{S−{s}+{s′}∣s∈S}.\mathcal B(S) = \{S + \{s'\}\} \cup \{S - \{s\} \mid s \in S\} \cup \{S - \{s\} + \{s'\} \mid s \in S\}.B(S)={S+{s′}}∪{S−{s}∣s∈S}∪{S−{s}+{s′}∣s∈S}.

SSS is locally optimum if cost(S)≤cost(S′)\mathrm{cost}(S) \le \mathrm{cost}(S')cost(S)≤cost(S′) for every S′∈B(S)S' \in \mathcal B(S)S′∈B(S). The locality gap is the supremum, over all instances, of the ratio between the cost of a worst local optimum and the cost of a global optimum.

The proofs use the following notation, which appears in the milestones but not in the goal. Fix a second solution OOO and nearest-facility assignments σS:C→S\sigma_S : C \to SσS​:C→S, σO:C→O\sigma_O : C \to OσO​:C→O; write Sj=cjσS(j)S_j = c_{j\sigma_S(j)}Sj​=cjσS​(j)​, Oj=cjσO(j)O_j = c_{j\sigma_O(j)}Oj​=cjσO​(j)​, NS(s)=σS−1(s)N_S(s) = \sigma_S^{-1}(s)NS​(s)=σS−1​(s), NO(o)=σO−1(o)N_O(o) = \sigma_O^{-1}(o)NO​(o)=σO−1​(o) and Nso=NO(o)∩NS(s)N^o_s = N_O(o) \cap N_S(s)Nso​=NO​(o)∩NS​(s). A facility s∈Ss \in Ss∈S captures o∈Oo \in Oo∈O if ∣Nso∣>12∣NO(o)∣|N^o_s| > \tfrac12 |N_O(o)|∣Nso​∣>21​∣NO​(o)∣; sss is good if it captures no facility of OOO and bad otherwise. The proof of the facility cost bound uses a permutation π\piπ of the clients that maps each NO(o)N_O(o)NO​(o) onto itself, moves every client of a non-capturing block NsoN^o_sNso​ out of that block (Property 3.1), and fixes every client of a capturing block that it would map into the same block.

Formalization targets

Goal: Theorem 4.3

cost(S)≤3⋅cost(O)for every locally optimum S and every solution O.\mathrm{cost}(S) \le 3 \cdot \mathrm{cost}(O) \quad \text{for every locally optimum } S \text{ and every solution } O.cost(S)≤3⋅cost(O)for every locally optimum S and every solution O.

This is the locality gap bound of Theorem 4.3 (p. 557) in its strongest printed form: OOO is any solution, not only an optimal one.

Milestones

  1. Lemma 4.1 (service cost), p. 554: costs(S)≤costf(O)+costs(O)\mathrm{cost}_s(S) \le \mathrm{cost}_f(O) + \mathrm{cost}_s(O)costs​(S)≤costf​(O)+costs​(O).
  2. The refined mapping π\piπ of the proof of Lemma 4.2, p. 555: such a permutation exists for any two assignments.
  3. Inequality (5), p. 555: the drop move for a good facility sss,
−fs+∑j∈NS(s), π(j)≠j(Oj+Oπ(j)+Sπ(j)−Sj)+2∑j∈NS(s), π(j)=jOj≥0.-f_s + \sum_{j \in N_S(s),\ \pi(j) \neq j} (O_j + O_{\pi(j)} + S_{\pi(j)} - S_j) + 2 \sum_{j \in N_S(s),\ \pi(j) = j} O_j \ge 0.−fs​+j∈NS​(s), π(j)=j∑​(Oj​+Oπ(j)​+Sπ(j)​−Sj​)+2j∈NS​(s), π(j)=j∑​Oj​≥0.
  1. Inequality (6), pp. 555–556: the swap of a bad facility sss with the facility ooo it captures that is nearest to it.
  2. Inequality (8), p. 556: for a bad facility sss capturing the set P⊆OP \subseteq OP⊆O, the analogue of (5) with ∑o′∈Pfo′−fs\sum_{o' \in P} f_{o'} - f_s∑o′∈P​fo′​−fs​ in place of −fs-f_s−fs​.
  3. Lemma 4.2 (facility cost), p. 555: costf(S)≤costf(O)+2⋅costs(O)\mathrm{cost}_f(S) \le \mathrm{cost}_f(O) + 2 \cdot \mathrm{cost}_s(O)costf​(S)≤costf​(O)+2⋅costs​(O).

A companion item, not a milestone, states the bound in the proof of Theorem 4.4 with α=2\alpha = \sqrt2α=2​: a local optimum of the instance with facility costs 2fi\sqrt2 f_i2​fi​ costs at most (1+2) cost(O)(1+\sqrt2)\,\mathrm{cost}(O)(1+2​)cost(O) in the original instance.

Significance

The result. Theorem 4.3 shows that the simplest local search for metric UFL is within a factor 3 of optimal at every local optimum, with no LP and no rounding, and the tight example of §4.3 shows the analysis cannot be improved for this neighbourhood. Because Lemmas 4.1 and 4.2 hold against every solution OOO, scaling the facility costs before running local search trades the two bounds against each other and gives the 1+2+ϵ1 + \sqrt2 + \epsilon1+2​+ϵ guarantee of Theorem 4.4. The same capture-and-reassign technique is used for k-median (§3) and capacitated facility location (§5).

Formalizing it. The theorem is proved on paper; no machine-checked proof of it or of any locality gap bound for facility location is known to this mission. A formal development would check the reassignment arguments, which are stated case by case in the paper, and would produce reusable Lean infrastructure for metric facility location instances, nearest-facility costs and neighbourhood-based local optimality.

Difficulty

The service cost bound is routine; the facility cost bound is where the work lies. The natural first idea, closing a facility s∈Ss \in Ss∈S and sending each of its clients to the facility of SSS nearest to that client's optimal facility, fails when sss serves most of the clients of some o∈Oo \in Oo∈O: the nearest facility of SSS to ooo may be sss itself, so the client has nowhere to go. The proof separates good facilities, which can be dropped, from bad ones, which must be swapped with a captured facility, and pays for the clients that cannot be moved through the distance between sss and its nearest captured facility. The combinatorial core is the construction of a permutation within each NO(o)N_O(o)NO​(o) that avoids every non-capturing block and has fixed points only where they are unavoidable.

Formalization scope

Clients and facilities are finite types Cl and Fa. The distance is a real-valued function on Cl ⊕ Fa that is nonnegative, symmetric and satisfies the triangle inequality; d(x,x)=0d(x,x) = 0d(x,x)=0 is not assumed, since the paper neither states nor uses it. Opening costs are a function f : Fa → ℝ with 0 ≤ f i, and demands are unit, as in the paper.

Solutions are nonempty Finsets. The service cost is ∑jmin⁡i∈Scji\sum_j \min_{i \in S} c_{ji}∑j​mini∈S​cji​ (Finset.inf') and is defined only for nonempty sets, so no junk value for ∅\emptyset∅ enters. Accordingly the drop move is considered only when a facility remains open; with at least one client, ∅\emptyset∅ cannot serve anyone and is not a solution. Local optimality is required for all moves of B(S)\mathcal B(S)B(S): every added facility, every dropped facility and every swap, not only the moves used in the proof. The goal is stated as the multiplied-out inequality cost(S)≤3 cost(O)\mathrm{cost}(S) \le 3\,\mathrm{cost}(O)cost(S)≤3cost(O) for every nonempty OOO, never as a ratio, since cost(O)\mathrm{cost}(O)cost(O) may be 000.

In the milestones, the nearest-facility assignments σS\sigma_SσS​, σO\sigma_OσO​ are arbitrary among the nearest ones (ties broken arbitrarily), and the family of bijections π:NO(o)→NO(o)\pi : N_O(o) \to N_O(o)π:NO​(o)→NO​(o) is a single permutation of the clients with σO∘π=σO\sigma_O \circ \pi = \sigma_OσO​∘π=σO​. Inequality (5) assumes at least one client, which the paper assumes implicitly: with no clients and S={s}S = \{s\}S={s} it would read −fs≥0-f_s \ge 0−fs​≥0. The goal and Lemma 4.2 need no such assumption.

A statement that assumes local optimality only for the moves the proof uses, that fixes OOO to be a global optimum defined by hypotheses, or that allows the empty set a zero service cost would be a different theorem; none of these is used.

Needed infrastructure: sums over nearest-facility assignments and their fibers NO(o)N_O(o)NO​(o), the permutation π\piπ, and bookkeeping of the three kinds of moves. The instance, cost and local optimality definitions are reusable for other local search analyses of metric location problems. Proofs of any milestone are welcome, as are alternative proofs of the goal.

Selected references

  • V. Arya, N. Garg, R. Khandekar, A. Meyerson, K. Munagala, V. Pandit, Local Search Heuristics for k-Median and Facility Location Problems, SIAM J. Comput. 33(3):544–562, 2004. https://doi.org/10.1137/S0097539702416402
  • M. R. Korupolu, C. G. Plaxton, R. Rajaraman, Analysis of a Local Search Heuristic for Facility Location Problems, J. Algorithms 37(1):146–188, 2000. https://doi.org/10.1006/jagm.2000.1100
  • M. Charikar, S. Guha, Improved Combinatorial Algorithms for the Facility Location and k-Median Problems, FOCS 1999, 378–388. https://doi.org/10.1109/SFFCS.1999.814609
10 thms4 active usersReviewed
🏆Completed
Bandit AlgorithmsOptimizationProbability·Captain: naimengye

Multi-armed Bandit Allocation Indices I: The Gittins Index, Optimal Stopping and MonotonicityTextbook

Motivation

A decision-maker has nnn projects, each a Markov reward process, and at every decision time may advance exactly one of them; the others stay frozen. Which project to advance so as to maximize the expected total discounted reward? Posed as a dynamic program the problem has a state space that is the product of the nnn state spaces, and the size of that product defeats every general method. The index theorem of Gittins and Jones (1974) says the dynamic program is solved exactly by an index policy: there is a real number ν(B,x)\nu(B, x)ν(B,x), computable for each bandit process BBB from its own data and its own current state xxx, such that always advancing a process of greatest index is optimal. Chapter 2 of Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (2nd ed., doi:10.1002/9780470980033), introduces the index, proves the theorem three times, and works out the properties of the index that the rest of the book, from jobs and superprocesses to restless bandits, is built on: which stopping time attains it, how it is computed, how it moves with the discount factor, and when it collapses to the myopic rule.

The index theorem itself is already on the platform, proved, as BanditAlgorithm.gittins_index_theorem in the Bandit Algorithms series (Lattimore and Szepesvári, Theorem 35.9). This mission cites it and formalizes what Chapter 2 establishes around it.

Setting

A bandit process BBB (§2.3–2.4) is a Markov reward process on a countable state space EEE: transition probabilities P(y∣x)P(y \mid x)P(y∣x), a bounded reward r(x)r(x)r(x) received each time the continuation control is applied in state xxx, and a discount factor a∈(0,1)a \in (0, 1)a∈(0,1); the freeze control leaves the state unchanged and yields nothing. The law of the process started at xxx is Px\mathbb{P}_xPx​ and x(t)x(t)x(t) is its state at process time t=0,1,2,…t = 0, 1, 2, \dotst=0,1,2,…. A stopping time τ\tauτ is a past-measurable rule for switching from continuation to freezing, taking values in {1,2,… }∪{∞}\{1, 2, \dots\} \cup \{\infty\}{1,2,…}∪{∞}. For such τ\tauτ, Rτ(B,x)=Ex[∑t<τatr(x(t))]R_\tau(B, x) = \mathbb{E}_x[\sum_{t < \tau} a^t r(x(t))]Rτ​(B,x)=Ex​[∑t<τ​atr(x(t))] is the expected discounted reward and Wτ(B,x)=Ex[∑t<τat]W_\tau(B, x) = \mathbb{E}_x[\sum_{t < \tau} a^t]Wτ​(B,x)=Ex​[∑t<τ​at] the expected discounted time; their ratio ντ(B,x)\nu_\tau(B, x)ντ​(B,x) (2.7) is the equivalent constant reward rate of that portion of BBB. The Gittins index is

ν(B,x)=sup⁡τ>0Rτ(B,x)Wτ(B,x)(2.6)\nu(B, x) = \sup_{\tau > 0} \frac{R_\tau(B, x)}{W_\tau(B, x)} \tag{2.6}ν(B,x)=τ>0sup​Wτ​(B,x)Rτ​(B,x)​(2.6)

and, equivalently, the fair charge (2.5): the greatest rent λ\lambdaλ per period for which continuing BBB for one or more periods, paying λ\lambdaλ each period, can be done without expected loss. A simple family of alternative bandit processes (SFABP) is nnn such processes with a common discount factor, one of which is continued at each decision time; an index policy continues a process of greatest index. In the Lean development the single-arm model is the platform's (GittinsIndex): the chain law is built by the Ionescu–Tulcea construction, stopping times are adapted N∪{∞}\mathbb{N}\cup\{\infty\}N∪{∞}-valued maps on trajectories, and gittinsIndex P r a x is (2.6).

Formalization targets

Goal: Lemma 2.2, the optimal stopping set

The supremum in (2.6) is attained. For the initial state ξ\xiξ, the attaining stopping rule may be taken to be "stop at the first time t≥1t \ge 1t≥1 at which the state lies in Σ0\Sigma_0Σ0​" for any set Σ0\Sigma_0Σ0​ with

{x:ν(B,x)<ν(B,ξ)}⊆Σ0⊆{x:ν(B,x)≤ν(B,ξ)},\{x : \nu(B, x) < \nu(B, \xi)\} \subseteq \Sigma_0 \subseteq \{x : \nu(B, x) \le \nu(B, \xi)\},{x:ν(B,x)<ν(B,ξ)}⊆Σ0​⊆{x:ν(B,x)≤ν(B,ξ)},

and every such rule has ντ(B,ξ)=ν(B,ξ)\nu_\tau(B, \xi) = \nu(B, \xi)ντ​(B,ξ)=ν(B,ξ).

Milestones

Theorem 2.1 as a reference to the proved platform theorem; Eq. (2.5), the fair-charge characterization of the index; the restart-in-state formulation of §2.6.4 as the convergence of the Katehakis–Veinott value iteration; Theorem 2.3, monotonicity in the discount factor; Lemma 2.4, the interchange of two bandit portions; Propositions 2.5–2.8, the monotone-index cases in which the index is the immediate reward, or is attained only after the first step, or only at τ=∞\tau = \inftyτ=∞.

Significance

Lemma 2.2 is the working form of the index: it turns the supremum over all stopping times into a specific rule, the first time the index falls below its starting value, and it is what the interchange proof of §2.7, the modified-forwards-induction policies of §2.6.6, the monotone-index propositions of §2.11 and the treatment of jobs in Chapter 3 all use. The fair-charge form (2.5) is the prevailing-charge proof of the theorem (Weber 1992) and the interpretation that carries over to superprocesses and restless bandits. The restart formulation is how indices are computed in practice (Katehakis and Veinott 1987), and Theorem 2.3 is the first of the comparative statics used throughout Chapters 7 and 8. Lemma 2.4 is the elementary inequality behind the original proof of Gittins and Jones.

Of these, only the index theorem has a machine-checked proof today. Formalizing the rest gives the platform the index as a usable object: a characterization of the optimal stopping rule, a convergent algorithm for it, and the monotonicity facts, all stated against the existing model so that every later mission of this series and every future use of the L&S model can build on them.

Difficulty

The obvious first move for Lemma 2.2, "take the stopping time that achieves the supremum", is what has to be proved: the supremum is over an uncountable family, and attainment comes from the optimal stopping problem with charge λ=ν(B,ξ)\lambda = \nu(B, \xi)λ=ν(B,ξ), whose value function satisfies φ(x)=max⁡{0,r(x)−λ+aE[φ(x(1))∣x(0)=x]}\varphi(x) = \max\{0, r(x) - \lambda + a\mathbb{E}[\varphi(x(1)) \mid x(0) = x]\}φ(x)=max{0,r(x)−λ+aE[φ(x(1))∣x(0)=x]}, together with the fact that its optimal stopping set is characterized by the strict and non-strict inequalities λ>ν(B,x)\lambda > \nu(B, x)λ>ν(B,x) and λ≥ν(B,x)\lambda \ge \nu(B, x)λ≥ν(B,x). That last step is the content: it identifies the local decision "stop or continue" with a comparison of indices, which is why any set between the two level sets works. On the platform's model this requires the dynamic-programming theory of discounted optimal stopping on a countable space (Theorem 2.10 of the book), the identification of fairChargeProfit with that value function, and the strong Markov property of markovChainMeasure at a trajectory stopping time. Theorem 2.3 needs randomized stopping times (a geometric kill) and the fact that they do not enlarge the supremum. The restart iteration is monotone and bounded but its operator is not a contraction in the restart value, so its limit has to be identified with the restart problem's value directly; that value is max⁡(0,ν/(1−a))\max(0, \nu/(1-a))max(0,ν/(1−a)), not ν/(1−a)\nu/(1-a)ν/(1−a), because restarting forever is free.

Formalization scope

The state space is a countable type with measurable singletons, so every subset is measurable; rewards are bounded; a∈(0,1)a \in (0, 1)a∈(0,1). The chain law, stopping times, the discounted stopped sums and the index are the platform's, unchanged. Expectations are Bochner integrals; with bounded rewards they are finite and no total-function default value enters. IsPositiveStoppingTime fixes τ≥1\tau \ge 1τ≥1 everywhere, so Wτ≥1W_\tau \ge 1Wτ​≥1 and the ratio (2.7) is a genuine quotient. The stopping rule of Lemma 2.2 is the hitting time from time 111 of a set, with ∞\infty∞ when the set is never hit. The fair-charge profit is a real supremum over the nonempty bounded family of positive stopping times, and (2.5) is stated with the outer supremum over {λ:profit(λ)≥0}\{\lambda : \text{profit}(\lambda) \ge 0\}{λ:profit(λ)≥0}, a nonempty set bounded above. The restart iteration is stated as a limit, with the value max⁡(0,ν(B,ξ)/(1−a))\max(0, \nu(B, \xi)/(1-a))max(0,ν(B,ξ)/(1−a)): for a nonnegative index this is the book's ν/(1−a)\nu/(1-a)ν/(1−a), and the maximum is forced by a one-state example with negative reward. The propositions' hypotheses are almost-sure events under Px\mathbb{P}_xPx​, written as events of measure one.

Two trivializing readings are excluded: the index is never taken over all N∪{∞}\mathbb{N}\cup\{\infty\}N∪{∞}-valued maps but over adapted stopping times, and the stopping set of the goal is not restricted to the two extreme level sets. Contributions welcome: the optimal-stopping dynamic program on markovChainMeasure (value iteration, the strong Markov property at a stopping time), the equivalence of randomized and non-randomized stopping times for the supremum, and the monotone convergence of the restart iteration.

Selected references

  • J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011, Chapter 2. doi:10.1002/9780470980033
  • J. C. Gittins, D. M. Jones, A dynamic allocation index for the sequential design of experiments, in Progress in Statistics (Gani, ed.), North-Holland, 1974.
  • R. Weber, On the Gittins index for multiarmed bandits, Annals of Applied Probability 2(4), 1992. doi:10.1214/aoap/1177005588
  • M. N. Katehakis, A. F. Veinott, The multi-armed bandit problem: decomposition and computation, Mathematics of Operations Research 12(2), 1987. doi:10.1287/moor.12.2.262
  • T. Lattimore, C. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 35. doi:10.1017/9781108571401
12 thms4 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: naimengye

Robust Optimization X: Globalized Robust Counterparts of Uncertain Conic Problems (retired)Textbook

Motivation

A robust counterpart draws a hard line. Inside the uncertainty set the constraint must hold; outside it, nothing is promised — and in a real problem the perturbation does sometimes land outside. Chapter 3 answered this for linear problems with the globalized robust counterpart: keep the constraint exactly on the normal range Z\mathcal{Z}Z, and let it degrade at a controlled rate outside, proportionally to the distance from Z\mathcal{Z}Z. That mission published Proposition 3.2.1, which says the GRC of an uncertain linear inequality is equivalent to two ordinary robust counterparts.

Chapter 11 of Ben-Tal, El Ghaoui and Nemirovski, Robust Optimization (Princeton, 2009) does the same for conic constraints, and the move is not routine. The left hand side of a conic constraint is a vector, not a scalar, so "the constraint is violated by at most α dist(ζ,Z)\alpha \,\mathrm{dist}(\zeta, \mathcal{Z})αdist(ζ,Z)" has no direct meaning. What replaces it is the observation that a scalar inequality aTy−b≤0a^Ty - b \le 0aTy−b≤0 is the inclusion aTy−b∈Q≡R−a^Ty - b \in \mathbf{Q} \equiv \mathcal{R}_-aTy−b∈Q≡R−​, and that the violation is the distance from the left hand side to Q\mathbf{Q}Q. In that form the notion lifts verbatim, and the whole chapter follows.

Setting

Definition 11.1.2. Consider an uncertain convex constraint

[P0+∑ℓ=1LζℓPℓ]y−[p0+∑ℓ=1Lζℓpℓ] ∈ Q,(11.1.4)\Bigl[P^0 + \sum_{\ell=1}^L \zeta_\ell P^\ell\Bigr]y - \Bigl[p^0 + \sum_{\ell=1}^L \zeta_\ell p^\ell\Bigr] \ \in\ \mathbf{Q}, \tag{11.1.4}[P0+ℓ=1∑L​ζℓ​Pℓ]y−[p0+ℓ=1∑L​ζℓ​pℓ] ∈ Q,(11.1.4)

with Q⊆Rk\mathbf{Q} \subseteq \mathcal{R}^kQ⊆Rk nonempty, closed and convex. Let the perturbation space split as RL=RL1×⋯×RLS\mathcal{R}^L = \mathcal{R}^{L_1}\times\cdots\times\mathcal{R}^{L_S}RL=RL1​×⋯×RLS​, each factor carrying a normal range Zs\mathcal{Z}^sZs, a closed convex cone Ls\mathcal{L}^sLs and a norm ∥⋅∥s\|\cdot\|_s∥⋅∥s​, and let ∥⋅∥Q\|\cdot\|_{\mathbf{Q}}∥⋅∥Q​ be a norm on Rk\mathcal{R}^kRk. A candidate yyy is robust feasible with global sensitivities αs\alpha_sαs​ if

dist(P(y,ζ),Q) ≤ ∑s=1Sαs dist(ζs,Zs∣Ls)∀ ζ∈Z+L,(11.1.6)\mathrm{dist}\bigl(P(y,\zeta), \mathbf{Q}\bigr) \ \le\ \sum_{s=1}^S \alpha_s\, \mathrm{dist}(\zeta^s, \mathcal{Z}^s|\mathcal{L}^s) \qquad \forall\, \zeta \in \mathcal{Z} + \mathcal{L}, \tag{11.1.6}dist(P(y,ζ),Q) ≤ s=1∑S​αs​dist(ζs,Zs∣Ls)∀ζ∈Z+L,(11.1.6)

where dist(u,Q)=min⁡v∈Q∥u−v∥Q\mathrm{dist}(u,\mathbf{Q}) = \min_{v\in\mathbf{Q}}\|u - v\|_{\mathbf{Q}}dist(u,Q)=minv∈Q​∥u−v∥Q​ and dist(ζs,Zs∣Ls)=min⁡{∥ζs−v∥s:v∈Zs, ζs−v∈Ls}\mathrm{dist}(\zeta^s,\mathcal{Z}^s|\mathcal{L}^s) = \min\{\|\zeta^s - v\|_s : v \in \mathcal{Z}^s,\ \zeta^s - v \in \mathcal{L}^s\}dist(ζs,Zs∣Ls)=min{∥ζs−v∥s​:v∈Zs, ζs−v∈Ls}.

The object that makes the analysis work is the recessive cone of Q\mathbf{Q}Q (Definition 11.3.1): for any xˉ∈Q\bar x \in \mathbf{Q}xˉ∈Q,

Rec(Q)={h:xˉ+th∈Q  ∀t≥0},\mathrm{Rec}(\mathbf{Q}) = \{h : \bar x + th \in \mathbf{Q}\ \ \forall t \ge 0\},Rec(Q)={h:xˉ+th∈Q  ∀t≥0},

which does not depend on xˉ\bar xxˉ and is a nonempty closed convex cone.

Formalization targets

Goal — Proposition 11.3.3, the decomposition of the conic GRC

A candidate yyy is feasible for the GRC (11.1.6) if and only if it satisfies the system

(a)[P0+∑ℓζℓPℓ]y−[p0+∑ℓζℓpℓ]∈Q∀ζ∈Z=Z1×⋯×ZS,\text{(a)}\quad \Bigl[P^0 + \sum_\ell \zeta_\ell P^\ell\Bigr]y - \Bigl[p^0 + \sum_\ell \zeta_\ell p^\ell\Bigr] \in \mathbf{Q} \qquad \forall \zeta \in \mathcal{Z} = \mathcal{Z}^1\times \cdots\times\mathcal{Z}^S,(a)[P0+ℓ∑​ζℓ​Pℓ]y−[p0+ℓ∑​ζℓ​pℓ]∈Q∀ζ∈Z=Z1×⋯×ZS, (bs)dist(∑ℓ[Pℓy−pℓ](Esζs)ℓ, Rec(Q)) ≤ αs∀ζs∈Ls with ∥ζs∥s≤1,s=1,…,S.\text{(b}_s)\quad \mathrm{dist}\Bigl(\sum_{\ell} [P^\ell y - p^\ell](E_s\zeta^s)_\ell,\ \mathrm{Rec}(\mathbf{Q})\Bigr) \ \le\ \alpha_s \qquad \forall \zeta^s \in \mathcal{L}^s \text{ with } \|\zeta^s\|_s \le 1, \quad s = 1,\ldots,S .(bs​)dist(ℓ∑​[Pℓy−pℓ](Es​ζs)ℓ​, Rec(Q)) ≤ αs​∀ζs∈Ls with ∥ζs∥s​≤1,s=1,…,S.

Line (a) is the ordinary robust counterpart over the normal range. Each line (bs_ss​) is a bounded semi-infinite constraint — the perturbation ranges over the unit ball of a cone, not over an unbounded set — measuring the distance to the recessive cone rather than to Q\mathbf{Q}Q itself.

Supporting targets

(Def 11.3.1)Rec(Q) is independent of the base point and is a nonempty closed convex cone,\text{(Def 11.3.1)}\quad \mathrm{Rec}(\mathbf{Q}) \text{ is independent of the base point and is a nonempty closed convex cone},(Def 11.3.1)Rec(Q) is independent of the base point and is a nonempty closed convex cone, (Ex 11.3.2)Q bounded⇒Rec(Q)={0};Q a cone⇒Rec(Q)=Q;Rec{u:Au−b∈K}={h:Ah∈K},\text{(Ex 11.3.2)}\quad \mathbf{Q} \text{ bounded} \Rightarrow \mathrm{Rec}(\mathbf{Q}) = \{0\}; \quad \mathbf{Q} \text{ a cone} \Rightarrow \mathrm{Rec}(\mathbf{Q}) = \mathbf{Q}; \quad \mathrm{Rec}\{u : Au - b \in \mathbf{K}\} = \{h : Ah \in \mathbf{K}\},(Ex 11.3.2)Q bounded⇒Rec(Q)={0};Q a cone⇒Rec(Q)=Q;Rec{u:Au−b∈K}={h:Ah∈K}, (Prop 11.4.1)ΨΞ(M)=ΨΞ∗(M∗),Ψ(M)=max⁡{dist∥⋅∥F(Me,KF):e∈KE, ∥e∥E≤1}.\text{(Prop 11.4.1)}\quad \Psi_\Xi(\mathcal{M}) = \Psi_{\Xi_*}(\mathcal{M}^*), \qquad \Psi(\mathcal{M}) = \max\{\mathrm{dist}_{\|\cdot\|_F}(\mathcal{M}e, \mathbf{K}^F) : e \in \mathbf{K}^E,\ \|e\|_E \le 1\} .(Prop 11.4.1)ΨΞ​(M)=ΨΞ∗​​(M∗),Ψ(M)=max{dist∥⋅∥F​​(Me,KF):e∈KE, ∥e∥E​≤1}.

Significance

The goal is the chapter's structural result and it does exactly what Proposition 3.2.1 did one level down: it converts a single semi-infinite constraint over an unbounded perturbation set into a robust counterpart over the bounded normal range plus finitely many constraints over unit balls. That matters because every tractability result of Chapters 6 to 9 is about bounded uncertainty sets; without the decomposition none of them applies to a GRC.

The two halves of the decomposition are genuinely different objects. Line (a) is familiar. Lines (bs_ss​) are not: they measure the distance from a linear image of a ball to the recessive cone, and that is the function

Ψ(M)=max⁡{dist(Me,KF):e∈KE, ∥e∥E≤1}\Psi(\mathcal{M}) = \max\bigl\{\mathrm{dist}(\mathcal{M}e, \mathbf{K}^F) : e \in \mathbf{K}^E,\ \|e\|_E \le 1\bigr\}Ψ(M)=max{dist(Me,KF):e∈KE, ∥e∥E​≤1}

of §11.4, which is almost a norm on linear maps — nonnegative, positively homogeneous, subadditive, but neither symmetric nor strictly positive. Proposition 11.4.1 says this function is self-dual in the precise sense that Ψ\PsiΨ of a map with respect to a setup equals Ψ\PsiΨ of the adjoint map with respect to the dual setup: dual norms, dual cones, source and destination exchanged. That single identity is what lets every bound on Ψ\PsiΨ be computed on whichever side of the duality is tractable, and it is the engine of §11.4's tractability results.

The recessive cone results are the vocabulary. The one that earns its place is Rec{u:Au−b∈K}={h:Ah∈K}\mathrm{Rec}\{u : Au - b \in \mathbf{K}\} = \{h : Ah \in \mathbf{K}\}Rec{u:Au−b∈K}={h:Ah∈K}: the conic sets of this book are all of that form, so it says the recessive cone of every constraint in sight is computed by deleting the constant term.

Difficulty

The goal is an equivalence and the two directions are asymmetric.

Forward — GRC implies the system — is where the recessive cone is discovered rather than used. Fix ζˉ∈Z\bar\zeta \in \mathcal{Z}ζˉ​∈Z and ζs\zeta^sζs in the unit ball of Ls\mathcal{L}^sLs, and run ζi=ζˉ+i ζs\zeta_i = \bar\zeta + i\,\zeta^sζi​=ζˉ​+iζs out along the cone. The GRC bounds the distance to Q\mathbf{Q}Q by αsi\alpha_s iαs​i, so there are qi∈Qq_i \in \mathbf{Q}qi​∈Q with ∥P(y,ζˉ)+iΦ(y)Esζs−qi∥Q≤αsi\|P(y,\bar\zeta) + i\Phi(y)E_s\zeta^s - q_i\|_{\mathbf{Q}} \le \alpha_s i∥P(y,ζˉ​)+iΦ(y)Es​ζs−qi​∥Q​≤αs​i; the rescaled points qi/iq_i/iqi​/i stay bounded, and a limit point of them lies in Rec(Q)\mathrm{Rec}(\mathbf{Q})Rec(Q) by the limit characterization of the recessive cone. This is a genuine compactness argument, and it is why the recessive cone — not Q\mathbf{Q}Q — is what appears in lines (bs_ss​).

Backward is a decomposition-and-assemble: split each ζs=ζˉs+δs\zeta^s = \bar\zeta^s + \delta^sζs=ζˉ​s+δs with ζˉs∈Zs\bar\zeta^s \in \mathcal{Z}^sζˉ​s∈Zs, δs∈Ls\delta^s \in \mathcal{L}^sδs∈Ls realizing the distance, get a point of Q\mathbf{Q}Q from line (a) and a recession direction from each line (bs_ss​), and add them — using that Q+Rec(Q)⊆Q\mathbf{Q} + \mathrm{Rec}(\mathbf{Q}) \subseteq \mathbf{Q}Q+Rec(Q)⊆Q.

Proposition 11.4.1 is a chain of polarity identities: the polar of X+KX + KX+K is Xo∩(−K∗)X^o \cap (-K_*)Xo∩(−K∗​) for compact convex XXX containing the origin, the polar of a norm ball of radius α\alphaα is the dual-norm ball of radius 1/α1/\alpha1/α, and bipolarity. Each step is standard and the composition is not.

Formalization scope

Built on the module published by the third mission of this series, which carries the linear-case globalized robust counterpart and the dual cone. New here: norms as functions with their defining properties, dual norms, the two distances, the recessive cone, the conic GRC, and the function Ψ\PsiΨ.

Conventions committed to:

  • Norms are functions carrying an explicit predicate, not typeclass instances. Chapter 11 quantifies over arbitrary norms ∥⋅∥Q\|\cdot\|_{\mathbf{Q}}∥⋅∥Q​ and ∥⋅∥s\|\cdot\|_s∥⋅∥s​ on fixed coordinate spaces, and a statement must be able to range over them; a typeclass instance would fix one norm per type. IsNormOn bundles definiteness, absolute homogeneity and the triangle inequality, and nonnegativity follows from them.
  • The dual norm is a predicate, not a construction. ∥f∥∗=sup⁡{fTe:∥e∥≤1}\|f\|^* = \sup\{f^Te : \|e\| \le 1\}∥f∥∗=sup{fTe:∥e∥≤1} is asserted as a least upper bound of the set of values, so no supremum is taken on faith.
  • Distances are infima, not minima. The source writes min⁡\minmin, which is correct because the sets are closed; writing inf⁡\infinf avoids carrying an attainment proof into every statement, and agrees with the minimum whenever the source's own hypotheses hold.
  • The recessive cone is indexed by a base point. Definition 11.3.1 defines it at an arbitrary xˉ∈Q\bar x \in \mathbf{Q}xˉ∈Q and then asserts independence of the choice; that assertion is one of the published items, so the definition cannot presuppose it.
  • The perturbation is carried as a family of blocks, ζ=(ζ1,…,ζS)\zeta = (\zeta^1,\ldots,\zeta^S)ζ=(ζ1,…,ζS) with ζs∈RLs\zeta^s \in \mathcal{R}^{L_s}ζs∈RLs​, rather than as a single vector in RL\mathcal{R}^LRL together with the embeddings EsE_sEs​. This is the same data and removes the index bookkeeping of EsE_sEs​ from every statement.
  • Ψ\PsiΨ is a predicate on a real number, as for the dual norm and for the same reason.
  • §11.2 and §11.5 are out of scope: the definition of a tight safe approximation of a GRC and the worked analysis of nonexpansive dynamical systems. The first is a definition the chapter uses only to phrase §11.4's programme, the second an application.

Selected references

  • A. Ben-Tal, L. El Ghaoui and A. Nemirovski, Robust Optimization, Princeton University Press, 2009. Chapter 11, §§11.1, 11.3-11.4, pp. 281-294; Chapter 3 for the linear case. https://doi.org/10.1515/9781400831050
  • A. Ben-Tal, S. Boyd and A. Nemirovski, Extending scope of robust optimization: comprehensive robust counterparts of uncertain problems, Mathematical Programming 107 (2006), 63-89. https://doi.org/10.1007/s10107-005-0679-z
  • R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970. https://doi.org/10.1515/9781400873173
8 thms4 active usersReviewed
🏆Completed
Markov ChainStochastic Systems·Captain: naimengye

Stochastic Networks III: Loss Networks and the Erlang Fixed PointTextbook

Motivation

Erlang's formula, the subject of mission I of this series, sizes a single telephone link. Real networks are not single links: a call occupies a circuit on every link of its route simultaneously, and it is lost unless every one of those links has a free circuit. That is the loss network, the model of Chapter 3 of Frank Kelly and Elena Yudovina's Stochastic Networks (Cambridge University Press, 2014), and it describes not only circuit-switched telephony but any system in which a request must acquire several resources at once or be refused: wavelength assignment in optical networks, radio channel allocation under interference constraints, slot booking, and admission control generally. The term used in those application areas is circuit-switched: before a request is accepted it is checked that enough resource is available for each stage of it.

The exact equilibrium distribution of a loss network is known and has product form. It is also useless for computation — its normalizing constant is a sum over the feasible states, and for a general resource matrix computing it is NP-hard. What practitioners use instead is the Erlang fixed point: pretend the links block independently, so that the traffic offered to link jjj is the traffic on the routes through it thinned by the blocking probability of every other link on each route, and then apply Erlang's formula link by link. The result is a system of coupled copies of Erlang's formula. The chapter's aim, in its own words, is to give insight into why that approximation works as well as it does; the first step is to show that it is well posed at all.

Setting

The links are J={1,…,J}\mathcal{J} = \{1,\dots,J\}J={1,…,J}, link jjj carrying CjC_jCj​ circuits. A route rrr belongs to a set R\mathcal{R}R of RRR routes, and the link-route incidence matrix AAA records how much of each link a route needs: a call on route rrr requires AjrA_{jr}Ajr​ circuits from link jjj and is lost if any link has fewer than AjrA_{jr}Ajr​ free. (The classical case is AAA a 000–111 matrix and Ajr=1A_{jr}=1Ajr​=1 exactly when j∈rj\in rj∈r; from section 3.3 the book allows any non-negative integers.)

Calls requesting route rrr arrive as a Poisson process of rate νr\nu_rνr​, independently across routes, and hold their circuits for an exponentially distributed time of unit mean. Writing nrn_rnr​ for the number of calls in progress on route rrr, the process n=(nr)n=(n_r)n=(nr​) is Markov on

S(C)={n∈Z+R:An≤C},S(C)=\{n\in\mathbb{Z}_+^{R} : An\le C\},S(C)={n∈Z+R​:An≤C},

and is called a loss network with fixed routing.

Write E(ν,C)E(\nu,C)E(ν,C) for Erlang's formula, E(ν,C)=νC/C!∑j=0Cνj/j!E(\nu,C)=\dfrac{\nu^{C}/C!}{\sum_{j=0}^{C}\nu^{j}/j!}E(ν,C)=∑j=0C​νj/j!νC/C!​, published in mission I of this series. The Erlang fixed point equations are

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

The factor (1−Ej)−1(1-E_j)^{-1}(1−Ej​)−1 removes link jjj's own thinning from the product, so in the 000–111 case the argument is ∑r∋jνr∏i∈r∖{j}(1−Ei)\sum_{r\ni j}\nu_r\prod_{i\in r\setminus\{j\}}(1-E_i)∑r∋j​νr​∏i∈r∖{j}​(1−Ei​), the reduced load offered to link jjj.

Formalization targets

Goal — Theorem 3.20, existence and uniqueness of the Erlang fixed point

∃! (E1,…,EJ)∈[0,1]J satisfying (3.7).\exists!\,(E_1,\dots,E_J)\in[0,1]^J \text{ satisfying } (3.7).∃!(E1​,…,EJ​)∈[0,1]J satisfying (3.7).

The goal fixes no formula for EEE and no rate of convergence: it asserts only that the approximation the field has used since the 1960s names a single, well-defined object. Existence alone is a short argument from Brouwer's theorem, since (3.7) defines a continuous self-map of the compact convex cube [0,1]J[0,1]^J[0,1]J; uniqueness is the substance.

Supporting levels

The exact theory that the fixed point approximates: Lemma 3.4 on truncating a reversible process; the uncapacitated network as an instance of the open migration product form of mission II; equation (3.3), the exact equilibrium distribution π(n)=G(C)∏rνrnr/nr!\pi(n)=G(C)\prod_r \nu_r^{n_r}/n_r!π(n)=G(C)∏r​νrnr​​/nr​! on S(C)S(C)S(C); and the acceptance probability 1−Lr=G(C)/G(C−Aer)1-L_r=G(C)/G(C-Ae_r)1−Lr​=G(C)/G(C−Aer​). Then the optimization side: that E(ν,C)E(\nu,C)E(ν,C) and the utilization ν(1−E(ν,C))\nu(1-E(\nu,C))ν(1−E(ν,C)) are strictly increasing in ν\nuν, which is what makes the revised dual objective strictly convex; and Theorem 3.10, that a minimizer of the Dual problem (3.5) over the positive orthant satisfies the conditions on BBB, equation (3.6).

Significance

The result itself. Without Theorem 3.20 the phrase "the Erlang fixed point" is not well formed, and neither is any engineering procedure that computes one — repeated substitution converges to a solution, and damped iteration is guaranteed to converge to one, but "the blocking probabilities predicted by the reduced-load approximation" names a unique vector only because of this theorem. The proof is also the interesting part: the fixed point equations are re-read as the stationary conditions of a strictly convex minimization, the revised dual (3.8), which is the Dual problem (3.5) of the maximum-probability analysis with its linear term replaced by ∫0yjU(z,Cj) dz\int_0^{y_j}U(z,C_j)\,dz∫0yj​​U(z,Cj​)dz. That connection is what later lets the book prove the approximation asymptotically exact in a limiting regime: Corollary 3.22 says the Erlang fixed point converges to the vector BBB coming from the maximum-probability problem.

Formalizing it. Nothing here is open. What the mission produces is the loss network model in Lean — state space, truncated rates, normalizing constant, incidence matrix — and a machine-checked statement of the object the reduced-load approximation computes. It is also where this series' earlier missions pay off: the uncapacitated network is literally the open migration process of mission II with λ≡0\lambda\equiv 0λ≡0, μ≡1\mu\equiv 1μ≡1, φj(n)=n\varphi_j(n)=nφj​(n)=n, and the exact distribution (3.3) is its truncation by Lemma 3.4 to the feasible set, using the DetailedBalance layer of mission I. Mathlib has no loss network theory and no Erlang formula beyond what mission I published.

Difficulty

Existence of a fixed point is easy and is not where the difficulty lies. Uniqueness resists every direct attack: the map defined by (3.7) is not a contraction in any obvious metric, its monotonicity structure is not the kind that forces a unique fixed point, and iterating it undamped can cycle. The book's route is indirect — exhibit a strictly convex function whose stationary conditions are exactly (3.7) — and finding that function is the whole content. Its strict convexity comes from a monotonicity fact about Erlang's formula, that the utilization ν(1−E(ν,C))\nu\bigl(1-E(\nu,C)\bigr)ν(1−E(ν,C)) is strictly increasing in ν\nuν, which is itself a milestone here.

A second, formal difficulty: the equations involve (1−Ej)−1(1-E_j)^{-1}(1−Ej​)−1, so a solution with Ej=1E_j=1Ej​=1 would be meaningless. It is worth checking before starting that no such solution exists for Cj≥1C_j\ge 1Cj​≥1, rather than assuming it.

Formalization scope

Routes and links are indexed by finite types, the incidence matrix has natural-number entries (the general case of section 3.3, not only 000–111), capacities are natural numbers, and arrival rates are positive reals. The feasible set S(C)S(C)S(C) is a subset of the state space, and a truncated process is the rate matrix restricted to that subset — which is exactly the book's truncation, since a transition leaving the set simply has no target.

Conventions: holding times have unit mean throughout, matching the book, so the departure rate from route rrr is nrn_rnr​ and no separate service-rate parameter appears. Normalizing constants are introduced through summability hypotheses that assert convergence and the value together, rather than as possibly-infinite quantities; G(C)G(C)G(C) is the reciprocal of the sum in the book's notation. Capacities are assumed at least 111 in the goal: a link with no circuits blocks everything, E(ν,0)=1E(\nu,0)=1E(ν,0)=1 identically, and the factor (1−Ej)−1(1-E_j)^{-1}(1−Ej​)−1 would then be undefined rather than merely large.

The goal cannot be satisfied trivially: it is a uniqueness statement, so a vacuous or degenerate reading would have to produce no solution, and existence is half of what is asserted.

Contributions welcome beyond the listed items: the Brouwer argument for existence of a solution to the 000–111 equations (3.1) of section 3.2; the utilization function U(y,C)U(y,C)U(y,C) and the revised dual (3.8); the central limit theorem 3.14 and Corollary 3.17; Lemma 3.21 and Corollary 3.22 on the limiting regime; and the diverse-routing models of section 3.7.

Selected references

  • Frank Kelly and Elena Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 3 (pp. 49–82); Lemma 3.4, equation (3.3), Theorems 3.10 and 3.20, equations (3.1), (3.5)–(3.9). DOI 10.1017/cbo9781139565363
  • F. P. Kelly, Loss networks, Annals of Applied Probability 1 (1991), 319–378. DOI 10.1214/aoap/1177005872
  • F. P. Kelly, Blocking probabilities in large circuit-switched networks, Advances in Applied Probability 18 (1986), 473–505. DOI 10.2307/1427303
  • R. B. Cooper and S. Katz, Analysis of alternate routing networks with account taken of the nonrandomness of overflow traffic, Bell Telephone Laboratories memorandum, 1964.
  • Frank Kelly, Reversibility and Stochastic Networks, Cambridge University Press, 2011 (reissue of the 1979 edition), Chapter 1 on truncation.
14 thms4 active usersReviewed
🏆Completed
Convex OptimizationLinear OptimizationOptimization+1·Captain: mikedeng1

Introduction to Stochastic Programming I: Convexity, Attainment and Optimality of the Two-Stage Recourse ProblemTextbook

Motivation

Two-stage stochastic linear programming with recourse models a decision made before uncertainty resolves (the first-stage variables xxx) followed by a corrective decision made after (the second-stage, or recourse, variables yyy). Solving such a program means minimizing cTx+Q(x)c^{\mathsf T}x + Q(x)cTx+Q(x), where Q(x)Q(x)Q(x) is the expected cost of the best recourse action given xxx -- an object defined only implicitly, as the value of an embedded linear program that must be solved (or bounded) for every realization of the uncertain data. Before any algorithm for this problem can be justified -- the L-shaped method, stochastic decomposition, scenario decomposition, all developed in later chapters of Birge & Louveaux, Introduction to Stochastic Programming (Springer, 2011) -- one needs to know that QQQ is well-behaved enough to optimize over at all: that the feasible region is closed and convex, that QQQ itself is a finite, Lipschitz, convex function on it, that an optimal solution is actually attained rather than only approached in the limit, and finally what an optimality condition for the resulting nonsmooth convex program even looks like. This mission formalizes exactly that foundational layer, Chapter 3, Section 3.1 of the book.

Setting

Fix natural numbers n1,n2,m1,m2n_1, n_2, m_1, m_2n1​,n2​,m1​,m2​ and a finite scenario count KKK. A two-stage recourse instance consists of first-stage data A∈Rm1×n1A \in \mathbb{R}^{m_1 \times n_1}A∈Rm1​×n1​, b∈Rm1b \in \mathbb{R}^{m_1}b∈Rm1​, c∈Rn1c \in \mathbb{R}^{n_1}c∈Rn1​, a fixed recourse matrix W∈Rm2×n2W \in \mathbb{R}^{m_2 \times n_2}W∈Rm2​×n2​, and, for each scenario k=1,…,Kk = 1,\dots,Kk=1,…,K, a cost vector qk∈Rn2q_k \in \mathbb{R}^{n_2}qk​∈Rn2​, a right-hand side hk∈Rm2h_k \in \mathbb{R}^{m_2}hk​∈Rm2​, a technology matrix Tk∈Rm2×n1T_k \in \mathbb{R}^{m_2 \times n_1}Tk​∈Rm2​×n1​, and a probability pk≥0p_k \ge 0pk​≥0 with ∑kpk=1\sum_k p_k = 1∑k​pk​=1 (Eq. (1.1)). The first-stage feasible region is K1={x∣Ax=b, x≥0}K_1 = \{x \mid Ax = b,\ x \ge 0\}K1​={x∣Ax=b, x≥0}.

For a fixed xxx and scenario kkk, the second-stage value is

Q(x,ξk)=min⁡y{qkTy∣Wy=hk−Tkx, y≥0}Q(x,\xi_k) = \min_{y}\{q_k^{\mathsf T}y \mid Wy = h_k - T_k x,\ y \ge 0\}Q(x,ξk​)=ymin​{qkT​y∣Wy=hk​−Tk​x, y≥0}

(Eq. (1.6)), taken as an extended real: +∞+\infty+∞ if no feasible yyy exists, −∞-\infty−∞ if the inner program is unbounded below. The expected recourse value is Q(x)=∑kpk Q(x,ξk)Q(x) = \sum_k p_k\, Q(x,\xi_k)Q(x)=∑k​pk​Q(x,ξk​) (Eq. (1.3)), combined so that +∞+(−∞)=+∞+\infty + (-\infty) = +\infty+∞+(−∞)=+∞ -- the book's own convention (p. 109): infeasibility in one scenario is treated as fatal even if another scenario is unboundedly favorable. The second-stage feasibility set is K2={x∣Q(x)<∞}K_2 = \{x \mid Q(x) < \infty\}K2​={x∣Q(x)<∞}, and the deterministic-equivalent objective is z(x)=cTx+Q(x)z(x) = c^{\mathsf T}x + Q(x)z(x)=cTx+Q(x) (Eq. (1.2)). For xxx with Q(x)Q(x)Q(x) finite, the subdifferential ∂Q(x)\partial Q(x)∂Q(x) is the set of η\etaη satisfying Q(x)+ηT(y−x)≤Q(y)Q(x) + \eta^{\mathsf T}(y-x) \le Q(y)Q(x)+ηT(y−x)≤Q(y) for every yyy (p. 115).

A simple-recourse instance is the special case W=[I,−I]W = [I,-I]W=[I,−I]: the recourse cost splits as q=(q+,q−)q = (q^+,q^-)q=(q+,q−), and Q(x)Q(x)Q(x) decomposes componentwise via the closed form of Eq. (1.9)-(1.10) using the (left- and right-limit) distribution functions Fi−,Fi+F_i^-, F_i^+Fi−​,Fi+​ of each hih_ihi​.

Formalization targets

Goal -- Chapter 3, Theorem 9 (p. 116)

x∗∈K1 is optimal in (1.2)  ⟺  ∃ λ∗∈Rm1, μ∗∈R≥0n1, (μ∗)Tx∗=0,  s.t. −c+ATλ∗+μ∗∈∂Q(x∗),x^* \in K_1 \text{ is optimal in (1.2)} \iff \exists\, \lambda^* \in \mathbb{R}^{m_1},\ \mu^* \in \mathbb{R}^{n_1}_{\ge 0},\ (\mu^*)^{\mathsf T}x^* = 0,\ \text{ s.t. } -c + A^{\mathsf T}\lambda^* + \mu^* \in \partial Q(x^*),x∗∈K1​ is optimal in (1.2)⟺∃λ∗∈Rm1​, μ∗∈R≥0n1​​, (μ∗)Tx∗=0,  s.t. −c+ATλ∗+μ∗∈∂Q(x∗),

given that (1.2) has a finite optimal value. This is the KKT-style necessary and sufficient optimality condition for the two-stage recourse LP, and the weakest of the mission's targets in the sense that everything else supports it: convexity and finiteness of QQQ (Theorem 6) are what make the left-to-right implication meaningful, closedness/convexity of K2K_2K2​ (Theorem 5) makes the feasible region well-posed, and attainment (Theorem 8) is what makes "x∗x^*x∗ is optimal" a statement about a point that exists rather than an infimum that may not be reached.

Supporting milestones

  • Theorem 5(a) (p. 111): K2K_2K2​ is closed and convex.
  • Theorem 6(a) (p. 112): QQQ is finite on K2K_2K2​, and Lipschitzian and convex there.
  • Theorem 8 (p. 115): under boundedness of K1∩K2K_1 \cap K_2K1​∩K2​ or eventual linearity of QQQ along recession directions, a finite optimal value is attained.
  • Corollary 10 (p. 116): Theorem 9 specialized to simple recourse, with ∂Q(x∗)\partial Q(x^*)∂Q(x∗) replaced by its explicit componentwise description.

Significance

Theorem 9 is the hinge on which the rest of the book's algorithmic chapters turn. The L-shaped method (Chapter 5) is a cutting-plane scheme whose cuts are literally elements of ∂Q(x)\partial Q(x)∂Q(x); stochastic decomposition and sampling-based methods use the same subdifferential structure with estimated cuts; the differentiable specialization (Eq. (1.14), c+∇Q(x∗)=ATλ∗+μ∗c + \nabla Q(x^*) = A^{\mathsf T}\lambda^* + \mu^*c+∇Q(x∗)=ATλ∗+μ∗) underlies nonlinear-programming approaches to the smooth case. None of this is meaningful without first knowing QQQ is convex, finite where it needs to be, and that a minimizer exists to characterize. Formalizing this mission's four milestones from the actual definition of QQQ as an embedded linear program's value -- rather than assuming these properties -- is exactly the content the book itself proves (or, for Theorem 6, explicitly cites to Wets [1972] and Kall [1976] rather than proving); this mission asks for genuine Lean proofs of Theorems 5, 8, 9 and Corollary 10 from the LP structure of QQQ, and records Theorem 6 as a stated (not re-derived) input, matching the book's own presentation.

Difficulty

The obvious shortcut is to treat QQQ as an opaque convex function and apply a textbook convex-KKT theorem off the shelf. This fails to capture what Theorem 9 actually is: a statement about the specific function Q(x)=∑kpkmin⁡y{qkTy∣Wy=hk−Tkx, y≥0}Q(x) = \sum_k p_k \min_y\{q_k^{\mathsf T}y \mid Wy = h_k - T_k x,\ y \ge 0\}Q(x)=∑k​pk​miny​{qkT​y∣Wy=hk​−Tk​x, y≥0}, built from finitely many parametric linear programs, each of which can be infeasible (Q(x,ξk)=+∞Q(x,\xi_k) = +\inftyQ(x,ξk​)=+∞) or unbounded (Q(x,ξk)=−∞Q(x,\xi_k) = -\inftyQ(x,ξk​)=−∞) depending on xxx. Convexity of QQQ must come from convexity of the value function of a parametric LP in its right-hand side (the book's Theorem 2 argument: a convex combination of optimal solutions at two right-hand sides is feasible, hence suboptimal, at the combined right-hand side) -- not from an assumed hypothesis. Handling ±∞\pm\infty±∞ correctly is a second, easy-to-miss source of error: the book fixes an explicit, non-default convention (+∞+\infty+∞ dominates −∞-\infty−∞) for combining per-scenario values, the opposite of the convention Mathlib's own extended-real arithmetic uses, so any formalization that reaches for EReal's built-in addition to aggregate QQQ silently states a different theorem. Theorem 8's attainment condition is a genuine existence result, not an automatic consequence of convexity: continuity alone does not give attainment on an unbounded feasible region, and the book's own counterexample (Eq. (1.11), a negative-exponential tail with infimum 000 attained by no finite xxx) shows the boundedness/recession hypotheses are load-bearing.

Formalization scope

The scenario set is modeled as Fin K, a finite discrete random variable, matching Section 3.1b's development; under this model "ξ\xiξ has finite second moments" (the standing hypothesis of Theorems 4-11 in the general, possibly-continuous case) holds automatically and so does not appear as a separate hypothesis anywhere in this mission. Q(x,\xi_k) is defined as an EReal via sInf of the second-stage LP's feasible objective values -- sInf of the empty set is ⊤, and of a set unbounded below is ⊥ -- and is genuinely derived from that inner minimization rather than assumed convex; this rules out the chapter's trivializing formalization, which the paper-level triage explicitly warns against: taking Q(x) as an opaque convex-function hypothesis instead of deriving its properties from the inner LP's structure. Aggregating the KKK per-scenario values into Q(x)Q(x)Q(x) uses a bespoke bookAdd operation implementing the book's stated convention +∞+(−∞)=+∞+\infty+(-\infty)=+\infty+∞+(−∞)=+∞, since Mathlib's EReal addition is defined with the opposite convention (⊥+⊤=⊤+⊥=⊥\bot+\top=\top+\bot=\bot⊥+⊤=⊤+⊥=⊥). ∂Q(x)\partial Q(x)∂Q(x) is the ordinary subgradient-inequality set for this extended-real-valued function.

Theorem 8's condition (b) is stated with the book's own quantifier structure: the threshold λˉ\bar\lambdaλˉ and the recession value depend on the point xxx and direction vvv exactly as written, with no strengthening. Theorem 6(a)'s Lipschitz bound is stated, not derived -- the book itself cites it to Wets [1972] and Kall [1976] without proof -- so a faithful Lean proof of that milestone is expected to remain out of scope for this mission. Corollary 10 similarly takes the closed form of ∂Qi(x)\partial Q_i(x)∂Qi​(x) from Eq. (1.10) as a hypothesis on an abstract QQQ, matching how the book itself uses (1.10) as an already-established fact rather than re-deriving it from the second-stage LP in the corollary's own proof. Theorem 11's subdifferential-decomposition result (∂Q(x)=Eω[∂Q(x,ξ(ω))]+N(K2,x)\partial Q(x) = E_\omega[\partial Q(x,\xi(\omega))] + N(K_2,x)∂Q(x)=Eω​[∂Q(x,ξ(ω))]+N(K2​,x)) is deliberately left out of this mission's scope: it is not needed by Theorem 9's own proof, and its normal-cone term would require relatively-complete-recourse machinery this mission does not otherwise need. No prior-art match was found on the platform: VectorSpaceOpt.fenchel_duality and the Luenberger-derived VectorSpaceOpt.generalized_kuhn_tucker / kkt_complementary_slackness family use a differentiable (Gateaux-derivative) or conjugate-function KKT model over general normed spaces, not this chapter's finite-dimensional, possibly-nondifferentiable subgradient formulation over the specific polyhedral set K1K_1K1​, so none is a faithful match and all items here are original drafts.

Selected references

  • J.R. Birge and F. Louveaux, Introduction to Stochastic Programming, 2nd ed., Springer Series in Operations Research and Financial Engineering, Springer, 2011. https://doi.org/10.1007/978-1-4614-0237-4
  • R.J-B. Wets, "Programming Under Uncertainty: The Equivalent Convex Program," SIAM Journal on Applied Mathematics 14 (1966), 89-105 (Lipschitz continuity of the recourse function, cited by the book as Wets [1972] for the closely related result used in Theorem 6). https://doi.org/10.1137/0114008
  • D.P. Walkup and R.J-B. Wets, "Stochastic Programs with Recourse," SIAM Journal on Applied Mathematics 15 (1967), 1299-1314 (finiteness of the recourse function and coincidence of the possibility and expectation feasibility sets, underlying Proposition 3 and Theorem 4). https://doi.org/10.1137/0115113
8 thms4 active usersReviewed
🏆Completed
Control TheoryDynamic ProgrammingProbability·Captain: Shuze Chen

Dynamic Programming and Optimal Control V: LQG and Certainty EquivalenceTextbook

Motivation

The separation theorem — certainty equivalence for linear-quadratic control with imperfect state information — is one of the celebrated structural results of stochastic control: the optimal controller splits into a least-squares estimator and the deterministic LQR actuator, designed independently. It underlies every LQG autopilot and Kalman-filter-based regulator. Section 5.2 of Bertsekas, Dynamic Programming and Optimal Control, Vol. I (3rd ed., 2005) proves it from the DP algorithm over information vectors, with Lemma 5.2.1 supplying the key fact that the estimation error is beyond the controller's influence. No formal analogue exists in Mathlib.

Setting

Linear dynamics and measurements

xk+1=Akxk+Bkuk+wk,zk=Ckxk+vk,x_{k+1} = A_k x_k + B_k u_k + w_k, \qquad z_k = C_k x_k + v_k,xk+1​=Ak​xk​+Bk​uk​+wk​,zk​=Ck​xk​+vk​,

with quadratic cost E[xN⊤QNxN+∑k<N(xk⊤Qkxk+uk⊤Rkuk)]\mathbb{E}\big[x_N^\top Q_N x_N + \sum_{k<N}(x_k^\top Q_k x_k + u_k^\top R_k u_k)\big]E[xN⊤​QN​xN​+∑k<N​(xk⊤​Qk​xk​+uk⊤​Rk​uk​)], Qk⪰0Q_k \succeq 0Qk​⪰0, Rk≻0R_k \succ 0Rk​≻0. The initial state and the zero-mean disturbances/noises are independent with finite ranges; independence is structural — the sample space is the product of an initial-state coordinate and per-stage noise coordinates (BertsekasLQGModel, BertsekasLQGSample, BertsekasLQGProb). A policy maps the realized measurement history (z0,…,zk)(z_0,\dots,z_k)(z0​,…,zk​) to uku_kuk​; the closed-loop process is BertsekasLQGTraj, the expected cost BertsekasLQGCost. The estimator E[xk∣Ik]\mathbb{E}[x_k \mid I_k]E[xk​∣Ik​] is an explicit conditional average (BertsekasCondExpVec, BertsekasLQGEstimate); the gains LkL_kLk​ come from the time-varying Riccati recursion (BertsekasLQGRiccati, BertsekasLQGGain).

Target

π∗(Ik)=Lk E[xk∣Ik]  along its own trajectories⟹J(π∗)≤J(π)  ∀π,\pi^*(I_k) = L_k\, \mathbb{E}[x_k \mid I_k] \ \text{ along its own trajectories} \quad\Longrightarrow\quad J(\pi^*) \le J(\pi)\ \ \forall \pi,π∗(Ik​)=Lk​E[xk​∣Ik​]  along its own trajectories⟹J(π∗)≤J(π)  ∀π,

— BertsekasDP.lqg_certainty_equivalence (goal). Milestone: Lemma 5.2.1 in pointwise form — the error xk−E[xk∣Ik]x_k - \mathbb{E}[x_k \mid I_k]xk​−E[xk​∣Ik​] is the same under any two policies, outcome by outcome (lqg_estimation_error_policy_independent).

Significance

This is the theorem that justifies designing estimator and controller separately — remove it and the entire LQG methodology loses its warrant. The formalization also yields the first machine-checked instance of the informational decomposition (control-dependent part + policy-independent error) that recurs throughout imperfect-information control. Notably the result needs no Gaussian assumption — only zero mean and independence — and the finite-support model makes that generality exact. The result is classical (Joseph–Tou 1961, Gunckel–Franklin 1963; the book's §5.2); the formal proof is new.

Difficulty

The heart is Lemma 5.2.1: showing the estimation error coincides, sample by sample, with the error of the control-free system — which requires proving that the observation-history σ-events under any policy coincide with those of the control-free system (controls are determined by the history, so they shift observations by a known amount). Then the DP argument over information histories must carry the quadratic decomposition through the backward recursion. Bookkeeping over histories-as-lists is the main formal burden; probability theory stays finite.

Formalization scope

Finite-support randomness (all expectations are finite sums); conditional expectation with the explicit junk value 0 on zero-probability events — the goal's hypothesis is accordingly restricted to outcomes of positive probability. Policies are functions of the measurement list only (equivalent to the book's information vector for deterministic policies, since past controls are recoverable from past measurements). Matrices are time-varying; positive definiteness of RkR_kRk​ makes every matrix inverse in the gains genuine. Measurement noise covariance is not assumed positive definite — the estimator is the abstract conditional expectation, not the Kalman filter (whose recursive form, §5.2.1, would be a natural follow-up mission).

Selected references

  • D. P. Bertsekas, Dynamic Programming and Optimal Control, Vol. I, 3rd ed., Athena Scientific, 2005. (§5.2, Lemma 5.2.1.) http://www.athenasc.com/dpbook.html
  • P. D. Joseph, J. T. Tou, On linear control theory, Trans. AIEE 80 (1961), 193–196. https://doi.org/10.1109/TAI.1961.6371743
  • T. L. Gunckel, G. F. Franklin, A general solution for linear sampled-data control, J. Basic Eng. 85 (1963), 197–201. https://doi.org/10.1115/1.3656559
5 thms4 active usersReviewed
🏆Completed
Graph Theory·Captain: Shuze Chen

Dynamic Programming and Optimal Control II: Label Correcting MethodsTextbook

Motivation

Label correcting methods are the workhorse family of shortest-path algorithms — Dijkstra's method, Bellman–Ford, SLF/LLL variants and A* all fit the template analyzed in §2.3.1 of Bertsekas, Dynamic Programming and Optimal Control, Vol. I (3rd ed., 2005), where shortest paths appear as the purely deterministic face of dynamic programming. The correctness proof (Prop. 2.3.1) is short on paper but genuinely nondeterministic — any node may be removed from the candidate list, children processed in any order — so a formal proof certifies a whole family of concrete algorithms at once.

Setting

A finite directed graph with arc set A\mathcal{A}A, real arc lengths aija_{ij}aij​, origin sss and destination t≠st \ne st=s (BertsekasSPGraph). Walks are nonempty node lists whose consecutive pairs are arcs (BertsekasIsWalkFrom), with length the sum of arc lengths (BertsekasWalkLength); the shortest distance is the infimum of walk lengths in the extended reals, +∞+\infty+∞ if no walk exists (BertsekasShortestDistance). The standing assumption of §2.3: every cycle has nonnegative length (negative arcs allowed).

The algorithm state (BertsekasLCState) carries labels dj∈R‾d_j \in \overline{\mathbb{R}}dj​∈R, the scalar UPPER, and the candidate list OPEN. Initially ds=0d_s = 0ds​=0, all other labels ∞\infty∞, UPPER =∞= \infty=∞, OPEN ={s}= \{s\}={s}. One iteration (BertsekasLCStep, nondeterministic): remove any iii from OPEN; for each child jjj of iii in any order, if di+aij<min⁡{dj,UPPER}d_i + a_{ij} < \min\{d_j, \text{UPPER}\}di​+aij​<min{dj​,UPPER} set dj:=di+aijd_j := d_i + a_{ij}dj​:=di​+aij​, and put jjj in OPEN if j≠tj \ne tj=t, or update UPPER if j=tj = tj=t. The algorithm terminates when OPEN is empty.

Target

OPEN=∅  ⟹  UPPER=dist⁡(s,t)∈R‾,\text{OPEN} = \varnothing \implies \text{UPPER} = \operatorname{dist}(s, t) \in \overline{\mathbb{R}},OPEN=∅⟹UPPER=dist(s,t)∈R,

for every execution, under the nonnegative arc length assumption of §2.3 (aij≥0a_{ij} \ge 0aij​≥0 for every arc) — BertsekasDP.label_correcting_correctness_of_nonneg_arcs (goal). Milestones: termination — no infinite execution exists, which needs only the weaker nonnegative-cycle assumption (label_correcting_terminates) — and the workhorse invariant that every finite label is the length of an actual walk from sss, which needs neither (label_correcting_invariant).

The nonnegative-arc hypothesis is essential and not a formalization artifact: the algorithm prunes with the test di+aij<min⁡{dj,UPPER}d_i + a_{ij} < \min\{d_j, \mathrm{UPPER}\}di​+aij​<min{dj​,UPPER}, and with a negative arc a longer prefix can still reach ttt more cheaply, so the pruned node is never entered into OPEN. An earlier version of this mission's goal carried only the nonnegative-cycle assumption of §2.1 and was disproved by the counterexample s=0s=0s=0, t=2t=2t=2, a02=1a_{02}=1a02​=1, a01=2a_{01}=2a01​=2, a12=−2a_{12}=-2a12​=−2 (a graph with no cycles at all), where the algorithm terminates with UPPER=1\mathrm{UPPER}=1UPPER=1 while the shortest distance is 000. Exercise 2.7 of the source treats the nonnegative-cycle case, which requires a modified algorithm.

Significance

Prop. 2.3.1 certifies simultaneously breadth-first search, Dijkstra (best-first), depth-first and small-label-first variants — every removal discipline is one refinement of the nondeterministic relation. Formally, the development contributes a reusable small-step framework for label-setting/correcting algorithms on which sharper results (Dijkstra's single-pass property, A* admissibility, §2.3.3) can later be built. The result is classical; the formal content is the induction along the nondeterministic step relation.

Difficulty

Termination is the subtle half: labels do not decrease monotonically along the run in an obvious well-founded way; the book's argument counts the finitely many distinct walk lengths below a bound — this needs the nonnegative-cycle assumption and a careful bound relating labels to simple-path lengths. The invariant proof must thread through the fold over children within a single step.

Formalization scope

Finite node type with decidable equality; arcs as a Finset of ordered pairs; lengths total on V×VV \times VV×V (only arc values matter). The step relation is fully nondeterministic in pivot choice and child order (a permutation quantifier); correctness quantifies over all reachable terminal states — there is no fixed schedule to exploit. Distances live in EReal, so the no-path case is the honest empty infimum, not a sentinel. The trivializing risk of restricting to nonnegative arcs is avoided: only cycles are constrained.

Selected references

  • D. P. Bertsekas, Dynamic Programming and Optimal Control, Vol. I, 3rd ed., Athena Scientific, 2005. (Prop. 2.3.1, §2.3.) http://www.athenasc.com/dpbook.html
  • E. W. Dijkstra, A note on two problems in connexion with graphs, Numer. Math. 1 (1959), 269–271. https://doi.org/10.1007/BF01386390
  • R. Bellman, On a routing problem, Quart. Appl. Math. 16 (1958), 87–90. https://doi.org/10.1090/qam/102435
6 thms4 active users
🏆Completed
Experimental DesignProbabilityReinforcement Learning+1·Captain: Shuze Chen

Treatment Locality in A/B TestingResearch Paper

Modern A/B tests must infer lifetime treatment effects — e.g. customer lifetime value under a new feature — from short-horizon experiment data. Chen, Simchi-Levi and Wang (arXiv:2407.19618) model the experiment as a Markov decision process and exploit a structural fact of many practical interventions: the treatment is local, modifying the system at a single crucial state only. This mission formalizes the core asymptotic theory of the paper: for any differentiable estimator built from the experiment's transition and reward statistics, information sharing — pooling across test arms the samples collected away from the treated state — keeps the estimator asymptotically normal with the same asymptotic bias and never increases its asymptotic variance (Theorem 9), and is asymptotically efficient among unbiased estimators (Theorem 5). The route runs through a Markov chain central limit theorem with the asymptotic variance identified as the autocovariance series, and the linearization/delta method for functionals of chain statistics.

42 thms4 active users
🏆Completed
Convex OptimizationOptimization·Captain: Shuze Chen

Convex Optimization V: Newton's MethodTextbook

The classical convergence theory of smooth convex minimization. For a function that is mmm-strongly convex and MMM-smooth (mI⪯∇2f(x)⪯MImI \preceq \nabla^2 f(x) \preceq MImI⪯∇2f(x)⪯MI), gradient descent converges linearly, while Newton's method exhibits its famous two phases: a damped phase in which every backtracking step decreases the objective by a fixed amount γ\gammaγ, and a quadratically convergent phase in which the scaled gradient norm squares at each step, L2m2∥∇f(x+)∥2≤(L2m2∥∇f(x)∥2)2\tfrac{L}{2m^2}\lVert \nabla f(x^{+})\rVert_2 \le \bigl(\tfrac{L}{2m^2}\lVert \nabla f(x)\rVert_2\bigr)^22m2L​∥∇f(x+)∥2​≤(2m2L​∥∇f(x)∥2​)2. Together they give the iteration count of B&V (9.36),

#iterations  ≤  f(x(0))−p⋆γ  +  log⁡2log⁡2(ε0/ε),γ=αβη2mM2,ε0=2m3L2,\#\text{iterations} \;\le\; \frac{f(x^{(0)}) - p^{\star}}{\gamma} \;+\; \log_2\log_2(\varepsilon_0/\varepsilon), \qquad \gamma = \frac{\alpha\beta\eta^2 m}{M^2}, \quad \varepsilon_0 = \frac{2m^3}{L^2},#iterations≤γf(x(0))−p⋆​+log2​log2​(ε0​/ε),γ=M2αβη2m​,ε0​=L22m3​,

with LLL the Lipschitz constant of the Hessian and α,β\alpha,\betaα,β the backtracking parameters. This mission formalizes Chapters 9–10 of Boyd & Vandenberghe with every constant exactly as printed — a quantitative theory entirely absent from Mathlib.

12 thms4 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: Shuze Chen

Convex Optimization II: KKT ConditionsTextbook

The Karush–Kuhn–Tucker conditions are the central result of convex optimization: for a convex differentiable problem satisfying Slater's condition, a point is optimal exactly when primal feasibility, dual feasibility, complementary slackness and Lagrangian stationarity hold. This mission formalizes Chapters 4–5 of Boyd & Vandenberghe end to end — the first-order optimality criterion, concavity of the Lagrange dual, weak duality, Slater's strong-duality theorem with dual attainment (via the separating-hyperplane argument of §5.3.2), the saddle-point characterization, sensitivity bounds and Pareto scalarization — culminating in the full KKT characterization.

15 thms4 active usersReviewed
🏆Completed
Linear OptimizationOptimization·Captain: Shuze Chen

Introduction to Linear Optimization XIII: Lagrangean Duality and Integer ProgrammingTextbook

Linear programming has a complete duality theory; integer programming does not — and the Lagrangean dual measures exactly how far duality reaches. This mission formalizes the duality theory of integer programming from Section 11.4 of Bertsimas–Tsitsiklis, built on the general linear programming duality of Section 4.10. For the integer program

ZIP=min⁡{c′x:Ax≥b, Dx≥d, x integer}Z_{IP} = \min\{c'x : Ax \ge b,\ Dx \ge d,\ x \text{ integer}\}ZIP​=min{c′x:Ax≥b, Dx≥d, x integer}

with integer data, the complicating constraints Ax≥bAx \ge bAx≥b are dualized with multipliers p≥0p \ge 0p≥0 over the tractable set X={x integer∣Dx≥d}X = \{x \text{ integer} \mid Dx \ge d\}X={x integer∣Dx≥d}: the dual function is

Z(p)=min⁡x∈X(c′x+p′(b−Ax))Z(p) = \min_{x \in X}\big(c'x + p'(b - Ax)\big)Z(p)=x∈Xmin​(c′x+p′(b−Ax))

and the Lagrangean dual is ZD=max⁡p≥0Z(p)Z_D = \max_{p \ge 0} Z(p)ZD​=maxp≥0​Z(p). Weak duality ZD≤ZIPZ_D \le Z_{IP}ZD​≤ZIP​ (Theorem 11.2) always holds, but strong duality can fail. The convex hull CH(X)CH(X)CH(X) of the integer points of a polyhedron with integer data is itself a polyhedron (Theorem 11.3, Meyer's theorem), and the capstone — Theorem 11.4, the central result of Section 11.4 — identifies the Lagrangean dual exactly: ZDZ_DZD​ equals the optimal cost of the linear program

min⁡{c′x:Ax≥b, x∈CH(X)}\min\{c'x : Ax \ge b,\ x \in CH(X)\}min{c′x:Ax≥b, x∈CH(X)}

. This is the geometric explanation of the strength of Lagrangean relaxation, yields the bound ordering ZLP≤ZD≤ZIPZ_{LP} \le Z_D \le Z_{IP}ZLP​≤ZD​≤ZIP​, and Corollary 11.1 characterizes exactly when the bounds collapse. The polyhedral engine is the general weak/strong duality pair (Theorems 4.17/4.18) over a primal min⁡c′x\min c'xminc′x s.t. Ax≥bAx \ge bAx≥b, x∈P={x∣Dx≥d}x \in P = \{x \mid Dx \ge d\}x∈P={x∣Dx≥d}, and the formulation-strength comparison Psub⊆PcutP_{sub} \subseteq P_{cut}Psub​⊆Pcut​ of Theorem 10.1 supplies the motivating principle that tighter relaxations of the same integer set give sharper bounds.

18 thms4 active usersReviewed
🏆Completed
Linear OptimizationOptimization·Captain: Shuze Chen

Introduction to Linear Optimization VII: Cones, Extreme Rays, and the Resolution TheoremTextbook

How can an unbounded polyhedron be described by finitely many geometric objects? Sections 4.8-4.9 of Bertsimas-Tsitsiklis build the cone machinery: recession cones {d∣Ad≥0}\{d \mid Ad \ge 0\}{d∣Ad≥0} and their rays, extreme rays (defined, like basic solutions, by n−1n-1n−1 linearly independent active constraints), the pointedness criterion (Theorem 4.12: 000 is an extreme point of a polyhedral cone iff the cone contains no line iff nnn of the constraint vectors are linearly independent), and the characterization of unbounded linear programs (Theorems 4.13-4.14: over a pointed polyhedral cone, and then over any polyhedron with an extreme point, the optimal cost is −∞-\infty−∞ iff some extreme ray ddd has c′d<0c'd < 0c′d<0). The capstone is the resolution theorem (Theorem 4.15): a nonempty polyhedron PPP with at least one extreme point equals Q={∑iλixi+∑jθjwj∣λi≥0,θj≥0,∑iλi=1}Q = \{\sum_i \lambda_i x^i + \sum_j \theta_j w^j \mid \lambda_i \ge 0, \theta_j \ge 0, \sum_i \lambda_i = 1\}Q={∑i​λi​xi+∑j​θj​wj∣λi​≥0,θj​≥0,∑i​λi​=1} — the convex hull of its extreme points plus the cone generated by a complete set of its extreme rays. It specializes to Theorem 2.9 / Corollary 4.4 (a nonempty bounded polyhedron is the convex hull of its extreme points) and Corollary 4.5 (a pointed polyhedral cone is generated by its extreme rays). The converse, Theorem 4.16, states that every finitely generated set is a polyhedron — in particular the convex hull of finitely many vectors is a polyhedron. Together these form the Minkowski-Weyl equivalence of the two representations of polyhedra, verified absent from Mathlib and the genuine content of this mission.

21 thms4 active usersReviewed
🏆Completed
Machine LearningOptimizationStatistics·Captain: Shuze Chen

Matrix Completion has No Spurious Local MinimumResearch Paper

Matrix completion — recovering a low-rank matrix M=ZZ⊤M = ZZ^\topM=ZZ⊤ from a small random subset of its entries — powers recommender systems and collaborative filtering. In practice it is solved by running (stochastic) gradient descent on the non-convex objective

f(X)=min⁡X12∥PΩ(M−XX⊤)∥F2+λR(X)f(X)=\min_X\frac12\|P_\Omega(M-XX^\top)\|_F^2+\lambda R(X)f(X)=Xmin​21​∥PΩ​(M−XX⊤)∥F2​+λR(X)

where Ω={(i,j)∣Mi,j is observed}\Omega=\{(i,j)|M_{i,j} \text{ is observed}\}Ω={(i,j)∣Mi,j​ is observed} and R(X)R(X)R(X) is a certain regularizer. from a random starting point, and it just works.

Ge, Lee and Ma (NeurIPS 2016 Best student paper award) explained why: the regularized objective has no spurious local minima — every local minimum is global and exactly recovers MMM. This mission formalizes that landmark theorem in Lean 4, in its strongest known form and along its simplest known proof: the unified landscape analysis of Ge–Jin–Zheng (ICML 2017) and an improved sampling bound in Chen–Li (JMLR 2019). Conditional on an explicit good-sample predicate (which holds with high probability under Bernoulli sampling), every local minimum XXX of fff satisfies XX⊤=ZZ⊤XX^\top = ZZ^\topXX⊤=ZZ⊤.

14 thms4 active users
🏆Completed
Bandit AlgorithmsMachine Learning·Captain: Shuze Chen

Bandit Algorithms XV: Partial MonitoringTextbook

Bandit feedback is only one point on a spectrum: a learner might see more than its own loss (full information) or less (a spam filter never learns what happened to mail it deleted). Chapter 37 of Lattimore–Szepesvári studies finite adversarial games G=(L,Φ)G = (\mathcal{L}, \Phi)G=(L,Φ) where the loss matrix and the feedback matrix are decoupled. The goal theorem is the celebrated classification theorem: every finite partial-monitoring game has minimax regret exactly 000, Θ(n)\Theta(\sqrt{n})Θ(n​), Θ(n2/3)\Theta(n^{2/3})Θ(n2/3) or Ω(n)\Omega(n)Ω(n) — determined by two purely combinatorial conditions, global and local observability, on the game's neighbourhood structure. A single geometric dichotomy thus governs the price of information in every online decision problem with finite actions and feedback.

16 thms4 active users
🏆Completed
Bandit AlgorithmsMachine Learning·Captain: Shuze Chen

Bandit Algorithms X: Stochastic Linear Bandits and LinUCBTextbook

When actions are feature vectors and the mean reward is linear — Xt=⟨θ∗,At⟩+ηtX_t = \langle \theta_*, A_t\rangle + \eta_tXt​=⟨θ∗​,At​⟩+ηt​ — a bandit can generalize across arms: pulling one arm reveals information about all of them. Chapter 19 of Lattimore–Szepesvári carries the optimism principle into this setting: LinUCB (a.k.a. OFUL) plays the action maximizing max⁡θ∈Ct⟨θ,a⟩\max_{\theta\in\mathcal{C}_t}\langle\theta, a\ranglemaxθ∈Ct​​⟨θ,a⟩ over the confidence ellipsoid Ct\mathcal{C}_tCt​ of Mission IX. The goal theorem: with probability 1−δ1-\delta1−δ, R^n≤8nβnlog⁡det⁡Vndet⁡V0≤8dnβnlog⁡dλ+nL2dλ\hat R_n \le \sqrt{8n\beta_n \log\frac{\det V_n}{\det V_0}} \le \sqrt{8dn\beta_n\log\frac{d\lambda + nL^2}{d\lambda}}R^n​≤8nβn​logdetV0​detVn​​​≤8dnβn​logdλdλ+nL2​​ — regret O~(dn)\tilde O(d\sqrt{n})O~(dn​) independent of the number of actions. The combinatorial engine is the elliptical potential lemma, bounding how many times adaptively chosen directions can be surprising. Chapter 22's phased elimination with G-optimal design (Mission IX) sharpens this to O~(dnlog⁡k)\tilde O(\sqrt{dn\log k})O~(dnlogk​) for finite action sets.

7 thms4 active usersReviewed
🏆Completed
Bandit AlgorithmsMachine Learning·Captain: Shuze Chen

Bandit Algorithms IX: Self-Normalized Concentration and Optimal DesignTextbook

Least-squares estimation from adaptively collected data is the statistical heart of linear bandits: the actions AtA_tAt​ depend on past noise, so classical fixed-design theory does not apply. Chapter 20 of Lattimore–Szepesvári resolves this with the method of mixtures: the process Mt(x)=exp⁡(⟨x,St⟩−12∥x∥Vt(λ)2)M_t(x) = \exp(\langle x, S_t\rangle - \frac{1}{2}\|x\|^2_{V_t(\lambda)})Mt​(x)=exp(⟨x,St​⟩−21​∥x∥Vt​(λ)2​) is a supermartingale, and integrating over a Gaussian mixture yields the self-normalized bound — the goal theorem — P(∃t:∥St∥Vt(λ)−12≥2log⁡1δ+log⁡det⁡Vt(λ)λd)≤δ\mathbb{P}\big(\exists t : \|S_t\|^2_{V_t(\lambda)^{-1}} \ge 2\log\frac{1}{\delta} + \log\frac{\det V_t(\lambda)}{\lambda^d}\big) \le \deltaP(∃t:∥St​∥Vt​(λ)−12​≥2logδ1​+logλddetVt​(λ)​)≤δ, valid uniformly over all times. The resulting confidence ellipsoids for the regularized least-squares estimator (Abbasi-Yadkori et al.) calibrate every algorithm of Mission X. The mission also formalizes the Kiefer–Wolfowitz theorem of Chapter 21: G-optimal and D-optimal experimental designs coincide, with optimal value exactly ddd — the classical equivalence theorem of optimal design theory.

9 thms4 active usersReviewed
🏆Completed
Markov ChainOptimizationProbability+1·Captain: mikedeng1

Reversibility and Stochastic Networks V: Optimal Capacity Allocation in a Network of QueuesTextbook

Motivation

Chapter 4 of F. P. Kelly's Reversibility and Stochastic Networks (Wiley, 1979) applies the product-form theory of Chapter 3 to concrete systems. Two of its results have numbered statements, and they answer two practical questions.

The first comes from the design of store-and-forward communication networks (telegraph and packet-switched data networks). Messages queue at channels; the designer chooses each channel's capacity subject to a budget, and wants to minimize the delay messages suffer. Because the equilibrium law at every channel is geometric under several different modelling assumptions (§4.1, pp. 95–96), the mean delay has a closed form, and the budget allocation problem becomes a small convex program with an explicit solution. This square-root capacity assignment goes back to L. Kleinrock's work on communication nets (Communication Nets, McGraw-Hill, 1964) and remains the textbook example of optimal design for a network of queues.

The second comes from compartmental models in biology, birth–illness–death processes and manpower planning (§4.5, pp. 113–115). Individuals enter a system as a Poisson stream and move through it independently. Equilibrium results follow from Chapter 3; Theorem 4.2 describes the transient behaviour exactly, starting from an empty system.

Setting

Capacity allocation (§4.1). A network has J≥1J \ge 1J≥1 channels. Channel jjj receives traffic at average rate aj>0a_j > 0aj​>0 and is given capacity ϕj\phi_jϕj​. In equilibrium the number njn_jnj​ of messages at channel jjj has the geometric law (4.1),

P(nj=n)=(1−ajϕj)(ajϕj)n,n=0,1,2,…,P(n_j = n) = \Big(1 - \frac{a_j}{\phi_j}\Big)\Big(\frac{a_j}{\phi_j}\Big)^n, \qquad n = 0, 1, 2, \dots,P(nj​=n)=(1−ϕj​aj​​)(ϕj​aj​​)n,n=0,1,2,…,

which requires ϕj>aj\phi_j > a_jϕj​>aj​. Its mean is aj/(ϕj−aj)a_j/(\phi_j - a_j)aj​/(ϕj​−aj​). Capacity on channel jjj costs fj>0f_j > 0fj​>0 per unit and the total budget is FFF, giving the cost constraint (4.2)

∑jfjϕj=F.\sum_j f_j\phi_j = F.j∑​fj​ϕj​=F.

The mean number of customers in the network is

N(ϕ)=∑jajϕj−aj,N(\phi) = \sum_j \frac{a_j}{\phi_j - a_j},N(ϕ)=j∑​ϕj​−aj​aj​​,

and the feasible set is the set of ϕ∈RJ\phi \in \mathbb{R}^Jϕ∈RJ with ϕj>aj\phi_j > a_jϕj​>aj​ for every jjj that satisfy (4.2). In Lean these are meanNumberInNetwork a φ and FeasibleCapacities a f F. The proof works with the Lagrangian lagrangian a f F y φ =N(ϕ)+y(∑jfjϕj−F)= N(\phi) + y(\sum_j f_j\phi_j - F)=N(ϕ)+y(∑j​fj​ϕj​−F).

Compartmental model (§4.5). Individuals arrive in a Poisson stream of rate ν>0\nu > 0ν>0 at a system of JJJ compartments that is empty at time 000. Let pj(s)p_j(s)pj​(s) be the probability that an individual is in compartment jjj a time sss after its arrival; pj(s)≥0p_j(s) \ge 0pj​(s)≥0 and ∑jpj(s)≤1\sum_j p_j(s) \le 1∑j​pj​(s)≤1, since individuals may leave. Let nj(t)n_j(t)nj​(t) be the number of individuals in compartment jjj at time t>0t > 0t>0, and

αj(t)=∫0tpj(u) du.\alpha_j(t) = \int_0^t p_j(u)\,du.αj​(t)=∫0t​pj​(u)du.

In Lean the model is the predicate IsCompartmentModel P ν t p M T Loc, the counts are compartmentCount M Loc j, and αj(t)\alpha_j(t)αj​(t) is alpha p j t.

Formalization targets

Goal: Theorem 4.1 (p. 97)

If J≥1J \ge 1J≥1, aj>0a_j > 0aj​>0, fj>0f_j > 0fj​>0 and F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​, then

ϕj∗=aj+ajfj∑kakfk⋅F−∑kakfkfj\phi^*_j = a_j + \frac{\sqrt{a_j f_j}}{\sum_k \sqrt{a_k f_k}}\cdot\frac{F - \sum_k a_k f_k}{f_j}ϕj∗​=aj​+∑k​ak​fk​​aj​fj​​​⋅fj​F−∑k​ak​fk​​

is feasible and minimizes NNN over the feasible set, and every other feasible ϕ\phiϕ has N(ϕ)>N(ϕ∗)N(\phi) > N(\phi^*)N(ϕ)>N(ϕ∗).

Milestones toward the goal

  1. The mean of the geometric law (4.1) is aj/(ϕj−aj)a_j/(\phi_j - a_j)aj​/(ϕj​−aj​) (p. 97).
  2. For y>0y > 0y>0 the Lagrangian is minimized over {ϕj>aj}\{\phi_j > a_j\}{ϕj​>aj​} by ϕj=aj+aj/(yfj)\phi_j = a_j + \sqrt{a_j/(y f_j)}ϕj​=aj​+aj​/(yfj​)​ (proof of Theorem 4.1).
  3. The choice 1/y=(F−∑kakfk)/∑kakfk1/\sqrt y = (F - \sum_k a_k f_k)/\sum_k\sqrt{a_k f_k}1/y​=(F−∑k​ak​fk​)/∑k​ak​fk​​ makes that minimizer equal to ϕ∗\phi^*ϕ∗ and feasible for (4.2).

Second result: Theorem 4.2 (pp. 114–115)

The proof's generating-function identity, for zj∈[0,1]z_j \in [0,1]zj​∈[0,1],

E(z1n1(t)⋯zJnJ(t))=∏j=1Jexp⁡[−(1−zj)ναj(t)],E\big(z_1^{n_1(t)}\cdots z_J^{n_J(t)}\big) = \prod_{j=1}^J \exp\big[-(1 - z_j)\nu\alpha_j(t)\big],E(z1n1​(t)​⋯zJnJ​(t)​)=j=1∏J​exp[−(1−zj​)ναj​(t)],

and the theorem itself: n1(t),…,nJ(t)n_1(t), \dots, n_J(t)n1​(t),…,nJ​(t) are independent and nj(t)n_j(t)nj​(t) is Poisson with mean ναj(t)\nu\alpha_j(t)ναj​(t).

Significance

Theorem 4.1 is a closed-form design rule. Every channel first receives the capacity aja_jaj​ needed to carry its traffic; the remaining budget is shared in proportion to ajfj\sqrt{a_j f_j}aj​fj​​, not to the traffic aja_jaj​. Sizing capacity in proportion to the load, which is the obvious rule, is therefore not optimal. The same calculation applies to any network whose stations have the geometric law (4.1), for example a manufacturing job shop (p. 97). The mean number in the network and the mean time a customer spends in it are minimized together.

Theorem 4.2 is the exact transient law of a network of infinite-server queues started empty. It holds however complicated the motion of an individual is, provided individuals move independently, and letting t→∞t \to \inftyt→∞ it recovers the equilibrium Poisson law of §4.5.

Both results are classical and proved in the book. Neither is formalized on Prove2Me. The platform has the geometric equilibrium law of the M/M/1 queue (KellyStochasticNetworks.mm1_equilibrium) but not its mean, and no result on Poisson thinning or marking by independent random locations. The formal work for Theorem 4.1 is a strict-convexity and Lagrangian-sufficiency argument in RJ\mathbb{R}^JRJ. For Theorem 4.2 it is a Poisson marking theorem in measure-theoretic probability. Both pieces are reusable.

Difficulty

For Theorem 4.1, the book's proof sets the partial derivatives of the Lagrangian to zero. A stationary point is not a global minimizer in general, so the formal proof must show that LLL is (strictly) convex on the open region ϕj>aj\phi_j > a_jϕj​>aj​, and it must use Lagrangian sufficiency, not first-order conditions alone. The region is open and the objective is unbounded near its boundary. Feasibility of ϕ∗\phi^*ϕ∗ needs F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​, which the book leaves implicit.

For Theorem 4.2, the steps of the proof that read "conditional on MMM" have to be carried out with measure-theoretic independence. One step averages a product over MMM independent uniform instants. Another sums the Poisson mixture into an exponential. The last turns a factorized generating function into mutual independence of JJJ counts with Poisson marginals. Mathlib has the Poisson distribution (ProbabilityTheory.poissonMeasure) but no marking or thinning theorem, and no uniqueness theorem for multivariate probability generating functions.

Formalization scope

Channels and compartments are indexed by Fin J; all rates, costs and capacities are real numbers.

Theorem 4.1. The statement carries the book's implicit hypotheses explicitly: J≥1J \ge 1J≥1, aj>0a_j > 0aj​>0, fj>0f_j > 0fj​>0, F>∑kakfkF > \sum_k a_k f_kF>∑k​ak​fk​. Stability ϕj>aj\phi_j > a_jϕj​>aj​ is part of the feasible set. The conclusion is global optimality over the feasible set (IsMinOn) together with feasibility of ϕ∗\phi^*ϕ∗, plus strict optimality against every other feasible point. Uniqueness is a slight strengthening of the book's "the optimal allocation is", and it holds by strict convexity. A statement that ϕ∗\phi^*ϕ∗ satisfies (4.2), or that it is a stationary point of the Lagrangian, is not the theorem: those are one-line computations or the proof method, and the goal is stated as global optimality to rule them out.

Theorem 4.2. The model is pinned down as in the proof on p. 115:

  • the number MMM of arrivals in (0,t)(0,t)(0,t) is Poisson with mean νt\nu tνt;
  • an i.i.d. sequence of (arrival instant, location at time ttt) pairs is independent of MMM, and only its first MMM entries are used;
  • each instant is uniform on (0,t)(0,t)(0,t), and an individual arriving at uuu is in compartment jjj at time ttt with probability pj(t−u)p_j(t-u)pj​(t−u), or has left.

"Individuals move independently" is formalized as this conditional independence. The pjp_jpj​ are measurable sub-probabilities, not assumed to sum to one. The conclusion is mutual independence of the JJJ counts (iIndepFun) together with the Poisson probability mass function of each. Infinite time horizons and the point-process description of the system are out of scope.

Useful contributions: a reusable Lagrangian-sufficiency lemma for separable convex objectives under one linear constraint; a Poisson marking (colouring) theorem for finitely many colours; the multivariate generating-function uniqueness lemma for NJ\mathbb{N}^JNJ-valued random vectors.

Selected references

  • F. P. Kelly, Reversibility and Stochastic Networks, John Wiley & Sons, 1979, Chapter 4 (§4.1, pp. 95–97; §4.5, pp. 113–115).
  • L. Kleinrock, Communication Nets: Stochastic Message Flow and Delay, McGraw-Hill, 1964 (reprinted Dover, 1972).
  • J. F. C. Kingman, Poisson Processes, Oxford University Press, 1993 (colouring and marking theorems).
8 thms3 active usersReviewed
🏆Completed
Optimization·Captain: mikedeng1

One-Machine Sequencing to Minimize Certain Functions of Job Tardiness II: EDD Order Minimizes Any Sum of Convex Nondecreasing Tardiness Penalties When No Job Starts After Its Due DateResearch Paper

Motivation

A single machine must process a set of jobs, each with a processing time and a due date, and the cost of a schedule depends on how late the jobs finish. Total tardiness is the classical criterion, but in many applications lateness is penalised more than proportionally: a job one week late costs more than twice a job half a week late, and a quadratic or other convex penalty describes this better. Hamilton Emmons's 1969 paper in Operations Research (DOI 10.1287/opre.17.4.701) derives dominance rules for total tardiness and then asks which of them survive when total tardiness is replaced by ∑Jg(Ti)\sum_J g(T_i)∑J​g(Ti​) for an arbitrary convex nondecreasing loss ggg.

Timeline of the relevant results:

  • 1955 — Jackson shows that ordering jobs by earliest due date (EDD) minimises the maximum lateness, and hence produces a schedule without late jobs whenever one exists.
  • 1956 — Smith gives the ratio rule for weighted completion time and an adjacent-interchange criterion for pairs of jobs.
  • 1969 — Emmons proves the precedence theorems for total tardiness that underlie later branch-and-bound and dynamic programming algorithms for 1 ∣∣ ∑Tj1\,||\,\sum T_j1∣∣∑Tj​, and shows (p. 713) that Theorems 2 and 3 and part of Theorem 1 extend to any sum of identical convex nondecreasing tardiness penalties.
  • 1977 — Lawler's pseudo-polynomial algorithm for total tardiness builds on Emmons's conditions; the problem is later shown NP-hard (Du and Leung, 1990).

Setting

A finite set JJJ of jobs is to be sequenced on one machine. Job JiJ_iJi​ has a processing time pi≥0p_i\ge 0pi​≥0 and a due date did_idi​. All jobs are available at time 000, and the machine processes them one after another without idle time. A schedule is an ordering lll of the jobs of JJJ. The completion time CiC_iCi​ of JiJ_iJi​ in lll is the sum of the processing times of JiJ_iJi​ and of every job before it; its waiting (starting) time is Wi=Ci−piW_i=C_i-p_iWi​=Ci​−pi​, and its tardiness is

Ti=max⁡(0, Ci−di).T_i=\max(0,\,C_i-d_i).Ti​=max(0,Ci​−di​).

A loss function g:R→Rg:\mathbb R\to\mathbb Rg:R→R, convex and nondecreasing on [0,∞)[0,\infty)[0,∞), is fixed, the same for every job. The objective is ∑i∈Jg(Ti)\sum_{i\in J} g(T_i)∑i∈J​g(Ti​), and a schedule is optimal if no schedule of JJJ has a smaller objective. With g(T)=Tg(T)=Tg(T)=T this is total tardiness.

Where the paper uses job indices, the jobs are indexed in SPT order: j<kj<kj<k implies pj<pkp_j<p_kpj​<pk​, or pj=pkp_j=p_kpj​=pk​ and dj≤dkd_j\le d_kdj​≤dk​. The notation j←kj\leftarrow kj←k means that some optimal schedule has JjJ_jJj​ before JkJ_kJk​; for a set AkA_kAk​ of jobs, k←Akk\leftarrow A_kk←Ak​ means that some optimal schedule has JkJ_kJk​ before every job of AkA_kAk​, and Ak′A_k'Ak′​ is the set of jobs of JJJ not in AkA_kAk​. An EDD schedule sequences the jobs in nondecreasing order of due dates.

Formalization targets

Goal: Corollary 2.2* (p. 713)

If an EDD schedule lll of JJJ satisfies

Wi≤difor every i∈J,W_i\le d_i\qquad\text{for every } i\in J,Wi​≤di​for every i∈J,

then lll minimises ∑Jg(Ti)\sum_J g(T_i)∑J​g(Ti​) over all schedules of JJJ, for every ggg convex and nondecreasing on [0,∞)[0,\infty)[0,∞).

The goal fixes no constant and no particular ggg: it is a statement about the whole class of convex nondecreasing penalties.

Milestones (in attack order)

  1. Convex exchange condition (p. 713): if Tja≤TjbT_{ja}\le T_{jb}Tja​≤Tjb​, Tkb≤TkaT_{kb}\le T_{ka}Tkb​≤Tka​ (all nonnegative), Tka−Tkb≤Tjb−TjaT_{ka}-T_{kb}\le T_{jb}-T_{ja}Tka​−Tkb​≤Tjb​−Tja​ and Tjb≥TkaT_{jb}\ge T_{ka}Tjb​≥Tka​, then g(Tka)−g(Tkb)≤g(Tjb)−g(Tja)g(T_{ka})-g(T_{kb})\le g(T_{jb})-g(T_{ja})g(Tka​)−g(Tkb​)≤g(Tjb​)−g(Tja​).
  2. Theorem 1* (p. 713): for j<kj<kj<k, if dj≤dkd_j\le d_kdj​≤dk​ then j←kj\leftarrow kj←k.
  3. Theorem 2* (p. 713): for j<kj<kj<k, if k←Akk\leftarrow A_kk←Ak​, dj>dkd_j>d_kdj​>dk​ and dj+pj≥∑Ak′pid_j+p_j\ge\sum_{A_k'}p_idj​+pj​≥∑Ak′​​pi​, then k←jk\leftarrow jk←j.
  4. Corollary 2.1* (p. 713): if dj=max⁡idid_j=\max_i d_idj​=maxi​di​ and dj+pj≥∑Jpid_j+p_j\ge\sum_J p_idj​+pj​≥∑J​pi​, then some optimal schedule ends with JjJ_jJj​.
  5. Last-job reduction (proof of Corollary 2.2, p. 706): if some optimal schedule ends with JjJ_jJj​, any optimal schedule of J∖{Jj}J\setminus\{J_j\}J∖{Jj​} followed by JjJ_jJj​ is optimal for JJJ.

Two further statements of the same section are included as items: Corollary 1.3* (the SPT schedule is optimal if it coincides with the EDD schedule) and Theorem 3 for the generalised objective.

Significance

The goal says that EDD is optimal for every convex nondecreasing tardiness penalty as long as no job starts after its due date. The classical sufficient condition, that at most one job is tardy, follows from Jackson's rule; Emmons's condition allows any or all jobs to be tardy, provided each is tardy by at most its own processing time. Because the conclusion holds for the whole class of penalties at once, an instance satisfying it needs no knowledge of ggg: total tardiness, total squared tardiness, and any other convex nondecreasing cost are minimised by the same sequence. Theorems 1* and 2* are the dominance rules that the paper's ordering procedure applies pairwise; they reduce the search space of branch-and-bound methods for convex tardiness objectives.

The results are proved in the paper (for ∑g(Ti)\sum g(T_i)∑g(Ti​) the proofs are said to be "easily established" and omitted). None of them has, to our knowledge, a machine-checked proof. The mission produces formal statements and proofs of the generalised results, including the omitted ones, on top of a reusable single-machine model.

Difficulty

The total-tardiness proofs compare changes in tardiness additively: an interchange is good if the decrease in one job's tardiness is at least the increase in another's. For a convex ggg this comparison is not enough, because a unit of tardiness costs more at higher tardiness levels; the changes must also occur at the right height on the curve, and part (b) of the proof of Theorem 1 fails for this reason. Each generalised argument therefore has to check, for every job whose tardiness changes, both the size and the location of the change, including jobs whose tardiness changes from zero to positive. Ties for the latest due date are a further obstacle: the printed proof of Corollary 2.1 cites Theorem 2, whose hypothesis dj>dkd_j>d_kdj​>dk​ is strict, so a job sharing the maximum due date is not covered by the argument as written, although the corollary is stated without excluding ties.

Formalization scope

Jobs are elements of a type ι\iotaι; the job set is a Finset JJJ, processing times and due dates are real functions p,d:ι→Rp,d:\iota\to\mathbb Rp,d:ι→R. Where the paper's index matters, ι\iotaι is linearly ordered and its order is the job index, together with the SPT-indexing hypothesis. A schedule is a duplicate-free list whose elements are exactly JJJ, and completion times are the published single-machine definition MooreLateJobs.Shared.completionTime (Moore 1968), which starts the machine at time 000 with no idle time. Optimality is against every schedule of JJJ. The relation j←kj\leftarrow kj←k is formalised as the existence of an optimal schedule with JjJ_jJj​ before JkJ_kJk​ (keeping the premise k←Akk\leftarrow A_kk←Ak​ in the conclusion where the theorem has one); the paper's cumulative reading of the notation is not formalised.

Standing assumptions and deviations:

  • ggg is convex and nondecreasing on [0,∞)[0,\infty)[0,∞) only; the page's "increasing" is read as nondecreasing, as in the abstract. No smoothness, strict monotonicity or g(0)=0g(0)=0g(0)=0 is assumed.
  • Processing times are assumed nonnegative; this is added (they are durations).
  • The reduction di<∑Jpid_i<\sum_J p_idi​<∑J​pi​ of p. 703 is not assumed, which makes the statements apply to more instances.
  • "The EDD schedule" is any schedule with nondecreasing due dates; ties are arbitrary.

A trivializing formalization is ruled out: the goal requires optimality of the given EDD list against every schedule of JJJ, not of some EDD list, and a sorry-free check shows its hypotheses hold on a two-job instance in which both jobs are tardy.

A complete development needs list lemmas for moving one job to a later position, the effect of such moves on completion times, and slope inequalities for convex functions on [0,∞)[0,\infty)[0,∞). The schedule-manipulation lemmas are reusable for other single-machine sequencing results. Proofs of any milestone, of the two further items, and of general interchange lemmas are welcome.

Selected references

  • H. Emmons, One-Machine Sequencing to Minimize Certain Functions of Job Tardiness, Operations Research 17(4):701–715, 1969. https://doi.org/10.1287/opre.17.4.701
  • J. R. Jackson, Scheduling a Production Line to Minimize Maximum Tardiness, Research Report 43, Management Science Research Project, UCLA, 1955.
  • W. E. Smith, Various Optimizers for Single-Stage Production, Naval Research Logistics Quarterly 3:59–66, 1956. https://doi.org/10.1002/nav.3800030106
  • E. L. Lawler, A "Pseudopolynomial" Algorithm for Sequencing Jobs to Minimize Total Tardiness, Annals of Discrete Mathematics 1:331–342, 1977. https://doi.org/10.1016/S0167-5060(08)70742-8
  • J. M. Moore, An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Late Jobs, Management Science 15(1):102–109, 1968. https://doi.org/10.1287/mnsc.15.1.102
  • J. Du and J. Y.-T. Leung, Minimizing Total Tardiness on One Machine is NP-Hard, Mathematics of Operations Research 15(3):483–495, 1990. https://doi.org/10.1287/moor.15.3.483
9 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryOptimization·Captain: mikedeng1

Maximal Flow Through a Network I: The Minimal Cut Theorem — the Maximal Flow Value Equals the Minimum Value of a Disconnecting SetResearch Paper

Motivation

The question behind this mission was posed by T. E. Harris to L. R. Ford, Jr. and D. R. Fulkerson at RAND, in the setting of rail transport: given a rail network linking two cities, with a capacity on every link, find the largest steady flow from one city to the other. Ford and Fulkerson's answer, the minimal cut theorem, published in the Canadian Journal of Mathematics in 1956 (DOI 10.4153/CJM-1956-045-5), says that the obvious upper bound, the total capacity of a set of links whose removal separates the two cities, is always achieved by some flow.

The theorem became the starting point of network flow theory, and through it of a large part of combinatorial optimization and operations research: transportation, assignment, scheduling and network reliability problems are routinely reduced to it.

Timeline.

  • 1927: K. Menger proves that the minimum number of vertices separating two vertex sets of a graph equals the maximum number of disjoint paths joining them (Fund. Math. 10), the unit-capacity ancestor of the theorem.
  • 1955: Harris and Ross study the Soviet rail network as a capacity problem in a RAND report; Harris formulates the maximal flow problem (Schrijver's historical account: Math. Program. 91, 2002).
  • 1956: Ford and Fulkerson publish the minimal cut theorem for undirected networks, with a non-constructive proof based on maximal flows (this paper). Independently, Elias, Feinstein and Shannon state and prove the max-flow min-cut theorem for directed networks (IRE Trans. Inf. Theory 2, 1956), and Dantzig and Fulkerson obtain it from linear programming duality.
  • 1956–1962: Ford and Fulkerson's labelling (augmenting path) algorithm, collected in Flows in Networks (Princeton, 1962).
  • 1972: Edmonds and Karp give polynomial bounds for augmenting-path methods (J. ACM 19).

Setting

A network NNN consists of a finite set of vertices VVV, a finite set of arcs EEE, two distinct vertices, the source aaa and the sink bbb, and a positive capacity c(e)>0c(e)>0c(e)>0 on every arc. Each arc eee has two distinct end vertices; arcs are undirected, and several arcs may join the same pair of vertices.

A chain joining uuu and www is a set of distinct arcs that can be arranged as α1(v0v1),α2(v1v2),…,αm(vm−1vm)\alpha_1(v_0v_1),\alpha_2(v_1v_2),\dots,\alpha_m(v_{m-1}v_m)α1​(v0​v1​),α2​(v1​v2​),…,αm​(vm−1​vm​) with v0=uv_0=uv0​=u, vm=wv_m=wvm​=w and the vertices v0,…,vmv_0,\dots,v_mv0​,…,vm​ pairwise distinct; each arc may be traversed in either direction. The null chain (m=0m=0m=0) joins uuu to itself.

A flow fff assigns a number f(C)≥0f(C)\ge 0f(C)≥0 to each chain CCC joining aaa and bbb (and 000 to every other set of arcs) such that the load ℓf(e)=∑C∋ef(C)\ell_f(e)=\sum_{C\ni e}f(C)ℓf​(e)=∑C∋e​f(C) satisfies ℓf(e)≤c(e)\ell_f(e)\le c(e)ℓf​(e)≤c(e) for every arc. Its value is val(f)=∑Cf(C)\mathrm{val}(f)=\sum_C f(C)val(f)=∑C​f(C). An arc is saturated by fff if ℓf(e)=c(e)\ell_f(e)=c(e)ℓf​(e)=c(e). A maximal flow is a flow of largest value.

A set DDD of arcs is a disconnecting set if every chain joining aaa and bbb contains an arc of DDD; its value is v(D)=∑e∈Dc(e)v(D)=\sum_{e\in D}c(e)v(D)=∑e∈D​c(e). A cut is a disconnecting set no proper subset of which is disconnecting.

The proof introduces two further objects: the set SSS of arcs saturated by every maximal flow, and the set L⊆SL\subseteq SL⊆S of left arcs, those arcs of SSS whose left vertex (the end vertex met first by a positive chain flow of a maximal flow, travelling from aaa) can be reached from aaa by a chain with no arc saturated by some maximal flow.

Formalization targets

Goal: Theorem 1 (Minimal cut theorem), p. 400

∃ m∈R:m=max⁡f flowval(f)=min⁡D disconnectingv(D),\exists\, m\in\mathbb R:\quad m=\max_{f\ \text{flow}}\mathrm{val}(f)=\min_{D\ \text{disconnecting}}v(D),∃m∈R:m=f flowmax​val(f)=D disconnectingmin​v(D),

with both the maximum and the minimum attained. The statement mentions only flows and disconnecting sets, not the proof objects SSS and LLL.

Milestones, in the order of the paper's proof

  1. A maximal flow exists, and the set of maximal flows is convex (p. 400).
  2. Lemma 1: SSS is a disconnecting set (p. 400).
  3. Every arc of SSS receives the same orientation from all positive chain flows of all maximal flows: its left vertex is unique (pp. 400–401).
  4. Lemma 2: LLL is a disconnecting set (p. 401).
  5. Lemma 3: no positive chain flow of a maximal flow contains more than one arc of LLL (p. 401).
  6. val(f)≤v(D)\mathrm{val}(f)\le v(D)val(f)≤v(D) for every flow fff and every disconnecting set DDD (p. 402).
  7. LLL is a cut of minimal value, and every maximal flow has value v(L)v(L)v(L) (p. 402).

Two further statements of the paper are included as items without being milestones: the remark that a disconnecting set of minimal value is a cut (p. 400), and the Corollary (p. 402): if a set AAA of arcs meets every cut in exactly one arc, adding kkk to the capacity of each arc of AAA raises the maximal flow value by kkk.

Significance

The minimal cut theorem turns a maximization over flows into a minimization over finite sets of arcs, so an optimal flow comes with a short certificate of optimality. It implies Menger's theorem (unit capacities), and through it König's theorem on bipartite matchings and Hall's marriage theorem. The Corollary is the tool behind the paper's own computing procedure for source–sink planar networks (§2, formalized in a companion mission).

The theorem is classical and proved. What this mission adds is a machine-checked proof of the paper's own formulation: undirected arcs, parallel arcs, flows decomposed along chains (path flows, with no circulations), and the minimum taken over arc sets meeting every chain, together with the proof's intermediate claims. Max-flow min-cut theorems already on the platform (Applied Combinatorics VIII, AppliedComb.Flows.max_flow_min_cut; Introduction to Linear Optimization X, LinearOptimization.max_flow_min_cut) concern directed networks with edge flows obeying conservation and cuts given by vertex sets. They are related results, not this statement, and connecting the two models is itself welcome work.

Difficulty

Weak duality (milestone 6) is immediate; the content is the reverse inequality. The obvious first step, taking a maximal flow and observing that its saturated arcs separate aaa from bbb, does not finish the proof: a positive chain flow may pass through several saturated arcs, so the total capacity of the saturated arcs can exceed the flow value. One has to single out a disconnecting subset that every positive chain flow crosses exactly once, and there is no canonical choice from a single flow. The paper's sets SSS and LLL are defined from all maximal flows at once, and the work consists in showing that these sets are well behaved. The orientation claim in particular needs an exchange argument on two chains that cross at an arc, where the recombined arc sequences may revisit vertices and must be reduced to chains. In a formal development this "a walk contains a chain" step and the averaging of maximal flows over finitely many chains are the main bookkeeping costs.

Formalization scope

  • A network is a structure on a vertex type V and an arc type E, both Fintype with decidable equality, with end-vertex maps tail, head (labels only, no direction), tail e ≠ head e, a source and a sink with source ≠ sink, and capacities cap : E → ℝ with 0 < cap e. These are the paper's standing assumptions; there are no others in §1. In particular, no planarity is assumed and an arc may join aaa and bbb directly.
  • A chain is a Finset E that is the arc set of some arrangement (list of arcs, list of pairwise distinct vertices, each arc joining consecutive vertices in either order).
  • A flow is a function f : Finset E → ℝ, non-negative, zero off the chains joining source and sink, with every arc load at most the capacity. A collection of chain flows that lists a chain twice merges into this form without changing the value or any load.
  • "Maximal" means of maximum value. The goal is stated with IsGreatest and IsLeast on the sets of flow values and of values of disconnecting sets, so no supremum of a real set appears and both extrema must be attained.
  • A trivializing formalization is ruled out: chains must be self-avoiding and must join the source and the sink, the disconnecting condition quantifies over exactly these chains, and the minimum ranges over all disconnecting sets rather than over a family chosen to match a given flow.
  • Needed infrastructure: finite sums over Finset (Finset E), convexity in Finset E → ℝ, compactness of the flow polytope (for existence), and lemmas on lists (extracting a chain from a walk). The walk-to-chain lemma and weak duality are reusable for the companion mission and for any path-flow model.

Selected references

  • L. R. Ford, Jr. and D. R. Fulkerson, Maximal Flow Through a Network, Canadian Journal of Mathematics 8 (1956), 399–404. https://doi.org/10.4153/CJM-1956-045-5
  • P. Elias, A. Feinstein and C. E. Shannon, A note on the maximum flow through a network, IRE Transactions on Information Theory 2 (1956), 117–119. https://doi.org/10.1109/TIT.1956.1056816
  • K. Menger, Zur allgemeinen Kurventheorie, Fundamenta Mathematicae 10 (1927), 96–115. https://doi.org/10.4064/fm-10-1-96-115
  • L. R. Ford, Jr. and D. R. Fulkerson, Flows in Networks, Princeton University Press, 1962.
  • J. Edmonds and R. M. Karp, Theoretical improvements in algorithmic efficiency for network flow problems, Journal of the ACM 19 (1972), 248–264. https://doi.org/10.1145/321694.321699
  • A. Schrijver, On the history of the transportation and maximum flow problems, Mathematical Programming 91 (2002), 437–445. https://doi.org/10.1007/s101070100259
13 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryLinear Optimization+1·Captain: mikedeng1

Maximum Matching and a Polyhedron With 0,1-Vertices: The Vertices of the Matching Polyhedron Are Exactly the Matching VectorsResearch Paper

Motivation

A matching in a graph is a set of edges no two of which share a node. Given a real weight on every edge, the maximum-weight matching problem asks for a matching of largest total weight. It is one of the basic problems of combinatorial optimization: assignment, pairing and scheduling problems reduce to it, and it is the standard example of a combinatorial problem that is solvable in polynomial time although it is not obviously a linear program.

For bipartite graphs the problem is a linear program in disguise: the polytope cut out by nonnegativity and the node-degree inequalities has only 0–1 vertices (the Birkhoff–von Neumann theorem in the square case; Mathlib has it as extremePoints_doublyStochastic). For general graphs this fails already on a triangle, where the vector with every coordinate 1/21/21/2 satisfies all degree inequalities but is not a combination of matchings. Edmonds' 1965 paper (DOI 10.6028/jres.069b.013) adds one family of inequalities, one for each odd set of nodes, and proves that the resulting polyhedron has exactly the matching vectors as its vertices. The companion paper Paths, trees, and flowers gives the cardinality algorithm on which the weighted algorithm of §7 is built.

Timeline:

  • 1931: König and Egerváry prove the min–max theorems for bipartite matching; 1946: Birkhoff shows that the doubly stochastic matrices are the convex hull of the permutation matrices (the bipartite perfect-matching polytope).
  • 1947: Tutte characterizes graphs with a perfect matching.
  • 1965: Edmonds, Paths, trees, and flowers: the blossom algorithm for maximum-cardinality matching.
  • 1965: Edmonds, this paper: Theorem (P) (the matching polyhedron) and Theorem (M) (blossom-shrinking optimality certificates), with a weighted matching algorithm.

Setting

Let GGG be a finite graph with node set VVV and edge set EEE; each edge meets two different nodes, its ends. Real variables xex_exe​ correspond to the edges e∈Ee\in Ee∈E. The polyhedron C⊆REC\subseteq\mathbb R^EC⊆RE is the set of vectors xxx satisfying

  1. xe≥0x_e\ge 0xe​≥0 for every edge eee;
  2. ∑e meets vxe≤1\sum_{e \text{ meets } v} x_e\le 1∑e meets v​xe​≤1 for every node vvv;
  3. ∑e has both ends in Sxe≤r\sum_{e \text{ has both ends in } S} x_e\le r∑e has both ends in S​xe​≤r for every set SSS of 2r+12r+12r+1 nodes, rrr a strictly positive integer.

The matching vectors PPP are the vectors with every component 000 or 111 that satisfy (2); they are the incidence vectors of matchings. For edge weights c∈REc\in\mathbb R^Ec∈RE, the linear form (4) is W(c,x)=∑ecexeW(c,x)=\sum_e c_e x_eW(c,x)=∑e​ce​xe​.

The dual program has a variable yvy_vyv​ for each node and zSz_SzS​ for each odd set SSS (∣S∣=2rS+1|S|=2r_S+1∣S∣=2rS​+1, rS≥1r_S\ge1rS​≥1). Its objective is (5) U(y,z)=∑vyv+∑SrSzSU(y,z)=\sum_v y_v+\sum_S r_S z_SU(y,z)=∑v​yv​+∑S​rS​zS​, subject to (6) y,z≥0y,z\ge0y,z≥0 and (7) yv1+yv2+∑S∋v1,v2zS≥cey_{v_1}+y_{v_2}+\sum_{S\ni v_1,v_2}z_S\ge c_eyv1​​+yv2​​+∑S∋v1​,v2​​zS​≥ce​ for every edge eee with ends v1,v2v_1,v_2v1​,v2​. For a matching MMM, conditions (8)–(10) are the complementary slackness conditions: yv=0y_v=0yv​=0 at nodes not covered by MMM, equality in (7) on MMM, and every odd set with zS>0z_S>0zS​>0 contains exactly rSr_SrS​ edges of MMM.

A blossom sequence {Gi}i=0n\{G_i\}_{i=0}^n{Gi​}i=0n​ (Theorem (M)) starts from G0=GG_0=GG0​=G with matching M0=MM_0=MM0​=M and repeatedly shrinks an odd circuit BiB_iBi​ (a blossom, 2ai+12a_i+12ai​+1 edges of which aia_iai​ are matched) to a single node, carrying node weights w(vi)w(v^i)w(vi) and edge weights w(ei)w(e^i)w(ei) that obey conditions (a)–(k) of p. 127.

In the Lean development these are Graph, IsMatching, incidence, matchingPolyhedron (CCC), matchingVectors (PPP), W, U, DualFeasible ((6)–(7)), CompSlack ((8)–(10)) and BlossomSequence, all in the namespace EdmondsMatching65.Polyhedron.

Formalization targets

Goal: Theorem (P)

ext⁡(C)=P.\operatorname{ext}(C)=P.ext(C)=P.

The vertices (extreme points) of CCC are exactly the matching vectors of GGG. Hence the maximum weight of a matching equals max⁡{W(c,x):x∈C}\max\{W(c,x):x\in C\}max{W(c,x):x∈C} for every ccc.

Milestones

  1. P⊆ext⁡(C)P\subseteq\operatorname{ext}(C)P⊆ext(C) (§2, p. 126).
  2. If for every ccc some 0–1 point of CCC maximizes W(c,⋅)W(c,\cdot)W(c,⋅) over CCC, then ext⁡(C)=P\operatorname{ext}(C)=Pext(C)=P (§2, p. 126).
  3. Weak duality: W(c,x)≤U(y,z)W(c,x)\le U(y,z)W(c,x)≤U(y,z) for x∈Cx\in Cx∈C and ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfying (6)–(7) (§3, p. 126).
  4. If MMM is a matching and ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfies (6)–(10), then W(c,χM)=U(y,z)W(c,\chi^M)=U(y,z)W(c,χM)=U(y,z) (§3, p. 127).
  5. A blossom sequence for MMM yields ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfying (6)–(10) (§5, pp. 127–128).
  6. For every ccc some maximum matching has a blossom sequence (§6, p. 128).
  7. Theorem (M): a matching is maximum if and only if a blossom sequence for it exists (§4, p. 127).
  8. For every ccc there are a matching MMM and ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ satisfying (6)–(10) (§3, p. 127).

Significance

The result. Theorem (P) turns maximum-weight matching in general graphs into a linear program over an explicitly described polyhedron, and Theorem (M) with the §5 translation gives a short certificate of optimality for every maximum matching. Together they established the template of polyhedral combinatorics: describe the convex hull of the combinatorial objects by inequalities, and prove the description through linear programming duality and an algorithm. The matching polytope underlies the analysis of the weighted blossom algorithm, separation over odd-set inequalities (Padberg–Rao), and many later integrality results; Edmonds' own §8 states the extension to degree-constrained subgraphs.

Formalizing it. The theorem has been proved since 1965 and appears in every text on combinatorial optimization; this mission asks for a machine-checked proof of the polytope statement for general finite graphs, including parallel edges, together with the duality certificate and the blossom-sequence characterization. The prove2me platform has a proved form of Edmonds' perfect matching polytope theorem on complete graphs in convex-decomposition form (MetricTSP.pm_polytope_decomposition), a different polytope with a different conclusion; nothing states Theorem (P) or Theorem (M).

Difficulty

The inclusion P⊆ext⁡(C)P\subseteq\operatorname{ext}(C)P⊆ext(C) and weak duality are routine. The difficulty is the reverse inclusion: showing that no fractional point of CCC is a vertex. The bipartite argument (a fractional point has a cycle of fractional edges along which it can be perturbed both ways) breaks on odd cycles: perturbing along an odd circuit violates a degree inequality, and the odd-set inequalities that cut off the half-integral points are exponentially many and overlap. The paper's route needs, for every weight vector, an optimal matching together with a dual solution satisfying (6)–(10), and the existence of that certificate is the substance of the weighted matching algorithm: the blossom sequence of Theorem (M) must be constructed, and the translation (11)–(16) from node and edge weights of the contracted graphs to ⟨y,z⟩\langle y,z\rangle⟨y,z⟩ must be verified through the whole shrinking history.

Formalization scope

  • The graph is a finite node type V, a finite edge type E and an end map ends : E → Sym2 V with no loops. Parallel edges are allowed: the contracted graphs of Theorem (M) have them, and Theorem (P) holds for multigraphs; simple graphs are the case of an injective end map.
  • Vectors are E → ℝ, one coordinate per edge. Vertices are Mathlib's Set.extremePoints ℝ. Odd sets carry an explicit r : ℕ with 1 ≤ r and |S| = 2r + 1; even sets and singletons carry no inequality.
  • Edge weights are arbitrary reals; matchings need not be perfect and may be empty. No connectivity, no parity of |V|.
  • The dual variable z is a function on all node sets of which only odd sets are read.
  • A contracted graph Gᵢ is a partition of V into blocks; an edge of G is an edge of Gᵢ when its ends lie in different blocks. Each Mᵢ must be a matching of Gᵢ, and all of (a)–(k) appear as fields of BlossomSequence; a sequence missing any of them would make milestone 6 trivial or milestone 5 false.
  • A trivializing formalization is ruled out: coordinates indexed by node pairs (Sym2 V → ℝ) leave non-edge coordinates free and give a polyhedron with no extreme points, and the goal is stated as equality of extreme points, not as a convex-hull identity or as the existence of a dual certificate.
  • Needed infrastructure: extreme points of polyhedra as unique maximizers of linear forms, finite LP weak duality over these index sets, and the weighted blossom algorithm (or another proof of milestone 8). The polyhedral lemmas are reusable for other integrality results; contributions on any milestone are welcome.

Selected references

  • J. Edmonds, Maximum Matching and a Polyhedron With 0,1-Vertices, J. Res. Nat. Bur. Standards Sect. B 69B (1965), 125–130. https://doi.org/10.6028/jres.069b.013
  • J. Edmonds, Paths, Trees, and Flowers, Canad. J. Math. 17 (1965), 449–467. https://doi.org/10.4153/CJM-1965-045-4
  • W. T. Tutte, The Factorization of Linear Graphs, J. London Math. Soc. 22 (1947), 107–111. https://doi.org/10.1112/jlms/s1-22.2.107
  • M. W. Padberg, M. R. Rao, Odd Minimum Cut-Sets and b-Matchings, Math. Oper. Res. 7 (1982), 67–80. https://doi.org/10.1287/moor.7.1.67
  • A. Schrijver, Combinatorial Optimization: Polyhedra and Efficiency, Springer, 2003, Chapter 25.
13 thms3 active usersReviewed
🏆Completed
Algorithmic Game Theory·Captain: mikedeng1

The Price of Anarchy of Finite Congestion Games I: The Pure Price of Anarchy of the Average Social Cost Is 5/2Research Paper

Motivation

When many independent users share a resource whose cost grows with use (links of a network, servers, machines), each user chooses for itself, and the outcome is a Nash equilibrium rather than a socially optimal allocation. The price of anarchy, introduced by Koutsoupias and Papadimitriou (STACS 1999), measures the cost of this decentralisation: the worst ratio between the social cost of an equilibrium and the optimal social cost. It has become a standard yardstick in algorithmic game theory, network routing and the design of distributed protocols.

Christodoulou and Koutsoupias (STOC 2005) determined the price of anarchy of finite congestion games with linear latencies, the atomic, unweighted counterpart of selfish routing. This mission formalizes the central entry of their table: pure equilibria, general (asymmetric) strategy sets, and the average social cost.

Timeline:

  • 1973. Rosenthal defines congestion games and shows that they always have pure Nash equilibria (IJGT 2).
  • 1999. Koutsoupias and Papadimitriou define the price of anarchy, for load balancing on parallel links (STACS 1999).
  • 2002. Roughgarden and Tardos prove that the price of anarchy of non-atomic selfish routing with linear latencies is 4/34/34/3 (J. ACM 49).
  • 2005. Christodoulou and Koutsoupias prove that for finite (atomic) congestion games with linear latencies the pure price of anarchy of the average social cost is exactly 5/25/25/2; independently, Awerbuch, Azar and Epstein obtain 2.52.52.5 for unweighted and (3+5)/2≈2.618(3+\sqrt5)/2\approx2.618(3+5​)/2≈2.618 for weighted games (STOC 2005).
  • 2009. Roughgarden shows that this type of bound extends to mixed, correlated and coarse correlated equilibria (STOC 2009).

Setting

A congestion game has a finite set NNN of players, a finite set EEE of facilities, for every player iii a set Σi⊆2E\Sigma_i\subseteq 2^EΣi​⊆2E of pure strategies (each a set of facilities), and for every facility eee a latency function fef_efe​ giving the cost of eee to each of its users as a function of how many users it has. A pure strategy profile A=(A1,…,An)A=(A_1,\dots,A_n)A=(A1​,…,An​) picks Ai∈ΣiA_i\in\Sigma_iAi​∈Σi​ for each player. The load ne(A)n_e(A)ne​(A) is the number of players iii with e∈Aie\in A_ie∈Ai​, and player iii pays

ci(A)=∑e∈Aife(ne(A)).c_i(A)=\sum_{e\in A_i}f_e\bigl(n_e(A)\bigr).ci​(A)=e∈Ai​∑​fe​(ne​(A)).

The profile AAA is a pure Nash equilibrium if no player can lower its cost by switching alone: ci(A)≤ci(A−i,S)c_i(A)\le c_i(A_{-i},S)ci​(A)≤ci​(A−i​,S) for all iii and all S∈ΣiS\in\Sigma_iS∈Σi​, where (A−i,S)(A_{-i},S)(A−i​,S) replaces AiA_iAi​ by SSS. The social cost is SUM(A)=∑i∈Nci(A)\mathrm{SUM}(A)=\sum_{i\in N}c_i(A)SUM(A)=∑i∈N​ci​(A), which is ∣N∣|N|∣N∣ times the average cost of a player. Latencies are linear: fe(k)=aek+bef_e(k)=a_ek+b_efe​(k)=ae​k+be​ with ae,be≥0a_e,b_e\ge0ae​,be​≥0. The game is asymmetric in the sense that each player has its own strategy set (symmetric games, where all Σi\Sigma_iΣi​ coincide, are a special case).

The pure price of anarchy of the average social cost is

PA=sup⁡A NashSUM(A)opt,opt=min⁡PSUM(P),PA=\sup_{A\text{ Nash}}\frac{\mathrm{SUM}(A)}{\mathrm{opt}},\qquad \mathrm{opt}=\min_{P}\mathrm{SUM}(P),PA=A Nashsup​optSUM(A)​,opt=Pmin​SUM(P),

the minimum taken over pure strategy profiles. In Lean these objects are CongestionGame, load, cost, IsProfile, IsPureNash, sumCost and IsLinear in the namespace CongestionPoA.AsymSum.

Formalization targets

Goal: the pure price of anarchy is exactly 5/2

The goal theorem pure_poa_sum_eq_five_halves is the conjunction of Theorems 1 and 2 of the paper:

for every linear game, Nash A and profile P:SUM(A)≤52 SUM(P),\text{for every linear game, Nash } A \text{ and profile } P:\quad \mathrm{SUM}(A)\le\tfrac52\,\mathrm{SUM}(P),for every linear game, Nash A and profile P:SUM(A)≤25​SUM(P), for every N≥3 there are a linear game with N players, Nash A and profile P:SUM(A)=52 SUM(P).\text{for every } N\ge3 \text{ there are a linear game with } N \text{ players, Nash } A \text{ and profile } P:\quad \mathrm{SUM}(A)=\tfrac52\,\mathrm{SUM}(P).for every N≥3 there are a linear game with N players, Nash A and profile P:SUM(A)=25​SUM(P).

The first part is the upper bound; the second shows that it is attained for every number of players from three on.

Milestones

  1. Lemma 1: β(α+1)≤13α2+53β2\beta(\alpha+1)\le\frac13\alpha^2+\frac53\beta^2β(α+1)≤31​α2+35​β2 for nonnegative integers α,β\alpha,\betaα,β.
  2. Deviation inequality (proof of Theorem 1): at a Nash equilibrium AAA, ci(A)≤ci(A−i,Pi)≤∑e∈Pife(ne(A)+1)c_i(A)\le c_i(A_{-i},P_i)\le\sum_{e\in P_i}f_e(n_e(A)+1)ci​(A)≤ci​(A−i​,Pi​)≤∑e∈Pi​​fe​(ne​(A)+1).
  3. Summing over players (proof of Theorem 1): SUM(A)≤∑e∈Ene(P) fe(ne(A)+1)\mathrm{SUM}(A)\le\sum_{e\in E}n_e(P)\,f_e(n_e(A)+1)SUM(A)≤∑e∈E​ne​(P)fe​(ne​(A)+1).
  4. Theorem 1: the upper bound SUM(A)≤52SUM(P)\mathrm{SUM}(A)\le\frac52\mathrm{SUM}(P)SUM(A)≤25​SUM(P).
  5. Theorem 2: the matching instances for every N≥3N\ge3N≥3.

Significance

The value 5/25/25/2 is the benchmark for atomic congestion with affine costs. It is the reference point for the later results of the paper (the symmetric case (5N−2)/(2N+1)(5N-2)/(2N+1)(5N−2)/(2N+1), the maximum social cost Θ(N)\Theta(\sqrt N)Θ(N​), mixed equilibria (3+5)/2(3+\sqrt5)/2(3+5​)/2) and for a large literature on coordination mechanisms, taxes and the price of stability, which compare their guarantees against it. The bound is also the standard example of what later became the smoothness framework, through which the same constant governs mixed and coarse correlated equilibria and hence no-regret learning outcomes.

Both theorems are proved in the paper; nothing here is open. The proofs for affine latencies, however, are only indicated: the paper displays the identity case fe(k)=kf_e(k)=kfe​(k)=k and states that the arguments extend. The mission states the affine case and asks for complete machine-checked proofs, including the lower-bound construction, which the paper describes and declares "not hard to verify". No machine-checked proof of these results is on the platform.

Difficulty

The Nash conditions give one inequality per player, each mixing the equilibrium loads ne(A)n_e(A)ne​(A) with the strategies PiP_iPi​ of the comparison profile. Bounding the loads crudely, for instance by the number of players, gives a ratio that grows with NNN; the constant 5/25/25/2 requires comparing the cross term ∑ene(P) ne(A)\sum_e n_e(P)\,n_e(A)∑e​ne​(P)ne​(A) with both social costs simultaneously and with the right weights. The integrality of the loads matters at that point: the natural pointwise inequality is false for real arguments, so a proof that treats loads as real numbers cannot reach 5/25/25/2.

For the lower bound, a Nash equilibrium must be verified against every unilateral deviation of every player, for all N≥3N\ge3N≥3 at once, in a construction with cyclic indices. The case N=2N=2N=2 is genuinely different (the paper states that its price of anarchy is 222), so the argument has to use N≥3N\ge3N≥3.

Formalization scope

Players and facilities are finite types; a profile is a map from players to finite sets of facilities, and feasibility (Ai∈ΣiA_i\in\Sigma_iAi​∈Σi​) is a separate predicate. Latencies are real-valued functions of the natural-number load, and "linear" means affine with nonnegative coefficients. The upper bound is stated multiplicatively, for every Nash AAA and every feasible PPP, which is equivalent to PA≤5/2PA\le5/2PA≤5/2 and avoids dividing by opt\mathrm{opt}opt. The lower bound quantifies over players Fin N, N≥3N\ge3N≥3, and existentially over a finite facility type, a linear game, a Nash equilibrium and an optimal feasible profile of positive social cost. The positivity rules out the trivializing witness: in the all-zero latency game every profile is a Nash equilibrium and 0=52⋅00=\frac52\cdot00=25​⋅0. The Nash condition is the paper's cost form; it agrees with the payoff-form AGT.IsPureNash of agt_games for payoffs −ci-c_i−ci​.

Trivializing formalizations are ruled out: the comparison profile PPP must be feasible (otherwise SUM(P)\mathrm{SUM}(P)SUM(P) could be 000 by letting players use no facility), the upper bound covers all affine latencies rather than only fe(k)=kf_e(k)=kfe​(k)=k, and the lower-bound instance must have linear latencies with nonnegative coefficients.

A complete development needs finite double counting (regrouping ∑i∑e∈Pi\sum_i\sum_{e\in P_i}∑i​∑e∈Pi​​ by facilities), monotonicity of affine latencies, and a decidable or explicit check of the lower-bound game. The congestion-game layer is reused by the other missions of this series. Proofs of individual milestones, and alternative proofs of the upper bound, are welcome.

Selected references

  • G. Christodoulou and E. Koutsoupias, The Price of Anarchy of Finite Congestion Games, Proc. 37th ACM STOC, 2005. https://doi.org/10.1145/1060590.1060600
  • B. Awerbuch, Y. Azar and A. Epstein, The Price of Routing Unsplittable Flow, Proc. 37th ACM STOC, 2005. https://doi.org/10.1145/1060590.1060599
  • E. Koutsoupias and C. Papadimitriou, Worst-case Equilibria, STACS 1999, LNCS 1563. https://doi.org/10.1007/3-540-49116-3_38
  • R. W. Rosenthal, A Class of Games Possessing Pure-Strategy Nash Equilibria, International Journal of Game Theory 2, 1973. https://doi.org/10.1007/BF01737559
  • T. Roughgarden and É. Tardos, How Bad Is Selfish Routing?, Journal of the ACM 49(2), 2002. https://doi.org/10.1145/506147.506153
  • T. Roughgarden, Intrinsic Robustness of the Price of Anarchy, Proc. 41st ACM STOC, 2009. https://doi.org/10.1145/1536414.1536485
7 thms3 active usersReviewed
🏆Completed
Linear OptimizationStochastic Systems·Captain: mikedeng1

Optimization of Multiclass Queueing Networks: Polyhedral and Nonlinear Characterizations of Achievable Performance II: An O(n²) Extended Formulation of the Multiclass M/M/1 Performance PolymatroidResearch Paper

Motivation

A single server shared by several classes of customers is the basic model of scheduling under uncertainty: jobs of different types arrive at random, need random amounts of work, and a scheduler decides at every moment which type to serve. A classical way to optimize such a system, the achievable region approach, describes the set of all performance vectors that some scheduling policy can attain, and optimizes a linear cost over that set with linear programming. For the multiclass M/M/1 queue under preemptive, work-conserving scheduling, this set is a polyhedron described by conservation laws (Coffman and Mitrani, 1980; Gelenbe and Mitrani, 1980; Shanthikumar and Yao, 1992): it is the base of a polymatroid, its vertices are the performance vectors of the n!n!n! strict priority rules, and minimizing a linear cost over it is solved greedily, which recovers the cμc\mucμ rule.

That description uses one inequality for every nonempty set of classes, 2n−12^n-12n−1 constraints in all. Bertsimas, Paschalidis and Tsitsiklis (working paper 1992, Annals of Applied Probability 1994) derived performance bounds for general multiclass networks from quadratic potential functions. Specialized to one station, their nonparametric method produces a different polyhedron, in O(n2)O(n^2)O(n2) variables with O(n2)O(n^2)O(n2) constraints, and they show that its projection is exactly the conservation-law polyhedron (Theorem 8.4). The paper remarks that this confirms, for this polymatroid, the belief that problems solvable in polynomial time admit polynomial-size formulations.

Setting

There are nnn customer classes E={1,…,n}E=\{1,\dots,n\}E={1,…,n}. Class iii has arrival rate λi>0\lambda_i>0λi​>0 and service rate μi>0\mu_i>0μi​>0; its traffic intensity is ρi=λi/μi\rho_i=\lambda_i/\mu_iρi​=λi​/μi​, and the queue is stable: ∑i∈Eρi<1\sum_{i\in E}\rho_i<1∑i∈E​ρi​<1. For S⊆ES\subseteq ES⊆E define

b(S)=∑i∈Sρi/μi1−∑i∈Sρi,b(∅)=0.b(S)=\frac{\sum_{i\in S}\rho_i/\mu_i}{1-\sum_{i\in S}\rho_i},\qquad b(\emptyset)=0 .b(S)=1−∑i∈S​ρi​∑i∈S​ρi​/μi​​,b(∅)=0.

In the queue, nin_ini​ is the steady-state mean number of class iii customers and ni/μin_i/\mu_ini​/μi​ their mean remaining work; b(S)b(S)b(S) is the mean work of the classes in SSS when those classes have preemptive priority over the rest.

The performance polymatroid P1 (Theorem 8.3) is the set of (ni)∈R+n(n_i)\in\mathbb R_+^n(ni​)∈R+n​ with

∑i∈Sniμi≥b(S)(S⊂E),∑i∈Eniμi=b(E).\sum_{i\in S}\frac{n_i}{\mu_i}\ge b(S)\quad (S\subset E),\qquad \sum_{i\in E}\frac{n_i}{\mu_i}=b(E).i∈S∑​μi​ni​​≥b(S)(S⊂E),i∈E∑​μi​ni​​=b(E).

For a permutation π=(π1,…,πn)\pi=(\pi_1,\dots,\pi_n)π=(π1​,…,πn​) of EEE, the vector v(π)v(\pi)v(π) is the solution of the triangular system ∑j=1kxπj/μπj=b({π1,…,πk})\sum_{j=1}^{k}x_{\pi_j}/\mu_{\pi_j}=b(\{\pi_1,\dots,\pi_k\})∑j=1k​xπj​​/μπj​​=b({π1​,…,πk​}), k=1,…,nk=1,\dots,nk=1,…,n (Eq. (58) with fiS=1/μif_i^S=1/\mu_ifiS​=1/μi​).

The extended formulation P2 (Theorem 8.4) is the set of nonnegative (ni)i∈E(n_i)_{i\in E}(ni​)i∈E​ and (Iij)i,j∈E(I_{ij})_{i,j\in E}(Iij​)i,j∈E​ satisfying

μiIii−λini=λi,μiIij+μjIji−λjni−λinj=0 (i≠j),∑i∈EIij=nj.\mu_iI_{ii}-\lambda_in_i=\lambda_i,\qquad \mu_iI_{ij}+\mu_jI_{ji}-\lambda_jn_i-\lambda_in_j=0\ (i\neq j),\qquad \sum_{i\in E}I_{ij}=n_j .μi​Iii​−λi​ni​=λi​,μi​Iij​+μj​Iji​−λj​ni​−λi​nj​=0 (i=j),i∈E∑​Iij​=nj​.

In the queue, IijI_{ij}Iij​ is the steady-state mean of the number of class jjj customers on the event that the server is busy with class iii. The projection P2′\mathrm{P2}'P2′ of P2 is the set of (ni)(n_i)(ni​) for which some (Iij)(I_{ij})(Iij​) makes ((ni),(Iij))((n_i),(I_{ij}))((ni​),(Iij​)) a point of P2.

Formalization targets

Goal: Theorem 8.4

P2′=P1.\mathrm{P2}'=\mathrm{P1}.P2′=P1.

Both inclusions are part of the goal. The statement fixes no constants and holds for every nnn, every positive rate vector and every stable load.

Milestones

  1. §8.2, proof of Theorem 8.3. The extreme points of P1 are exactly the vectors v(π)v(\pi)v(π), and P1 is their convex hull:
ext⁡P1={v(π)},P1=conv⁡{v(π)}.\operatorname{ext}\mathrm{P1}=\{v(\pi)\},\qquad \mathrm{P1}=\operatorname{conv}\{v(\pi)\}.extP1={v(π)},P1=conv{v(π)}.
  1. §8.2, proof of Theorem 8.4. The easy inclusion, which the paper obtains from its Theorem 4.4:
P2′⊆P1.\mathrm{P2}'\subseteq\mathrm{P1}.P2′⊆P1.

Significance

The result. Theorem 8.4 replaces 2n−12^n-12n−1 constraints by O(n2)O(n^2)O(n2) constraints in O(n2)O(n^2)O(n2) variables without changing the projected set. Any linear program over the M/M/1 performance region, including problems with side constraints where the greedy cμc\mucμ rule no longer applies, can then be solved with a polynomial-size LP. It also identifies the paper's nonparametric method as exact at a single station: the method loses nothing there, which is the baseline against which its gaps in networks are measured.

Formalizing it. The result is proved in the paper, but the reverse inclusion P1⊆P2′\mathrm{P1}\subseteq\mathrm{P2}'P1⊆P2′ is argued through achievability: every point of P1 is the performance of some (randomized) policy, and every policy's performance satisfies the equations of P2. That argument rests on stochastic objects (invariant distributions under arbitrary policies, and time-0 randomizations over priority rules) that the paper does not define precisely. The paper points to a purely combinatorial derivation in Paschalidis' thesis, which we have not seen. A machine-checked proof of the polyhedral identity is therefore new content: it supplies the deterministic argument the paper delegates. The polymatroid structure of P1 (Milestone 1) is classical for supermodular set functions; this mission requires it for this specific bbb. We know of no formalization of either result.

Difficulty

The inclusion P2′⊆P1\mathrm{P2}'\subseteq\mathrm{P1}P2′⊆P1 only combines the equations of P2 with nonnegativity. The reverse inclusion is the hard half: for each point of P1 one must exhibit a nonnegative matrix (Iij)(I_{ij})(Iij​) satisfying n2n^2n2 linear equations, and the inequalities of P1 say nothing directly about the off-diagonal entries IijI_{ij}Iij​. The paper's own argument does not help here, since it produces III as a steady-state expectation under a scheduling policy, an object defined through a Markov chain and given in no closed form. The sign constraints Iij≥0I_{ij}\ge0Iij​≥0 are where the 2n−12^n-12n−1 inequalities of P1 are encoded, and a proof has to explain how O(n2)O(n^2)O(n2) sign conditions on auxiliary variables carry exactly the information of exponentially many inequalities in the original ones.

Formalization scope

Classes are Fin n; rates are real functions lam mu : Fin n → ℝ with 0 < lam i, 0 < mu i and ∑ i, lam i / mu i < 1. The paper's nin_ini​ is written x i, because n is the number of classes. A point of P2 is a pair (x, I) with I i j =Iij=I_{ij}=Iij​, including the diagonal entries. P1 is the platform definition AllocationIndices.achievablePolytope with the matrix AiS=1/μiA^S_i=1/\mu_iAiS​=1/μi​: inequality for every S≠ES\neq ES=E, equality at S=ES=ES=E, nonnegativity. The paper writes NNN for the class set EEE in (65) and (71); every such sum runs over all classes. The constraints (64)–(65) bound ni/μin_i/\mu_ini​/μi​, not nin_ini​. v(π)v(\pi)v(π) is given by its closed form, v(π)πk=μπk(b({π1,…,πk})−b({π1,…,πk−1}))v(\pi)_{\pi_k}=\mu_{\pi_k}\bigl(b(\{\pi_1,\dots,\pi_k\})-b(\{\pi_1,\dots,\pi_{k-1}\})\bigr)v(π)πk​​=μπk​​(b({π1​,…,πk​})−b({π1​,…,πk−1​})), which solves (58). The standing hypothesis λi>0\lambda_i>0λi​>0 is presupposed by the model (Poisson arrivals at rate λi\lambda_iλi​); the load condition is the paper's stability condition and keeps every denominator of bbb positive.

No statement involves a policy, a Markov chain or an expectation; the queueing meaning above is motivation only. In particular, neither "P1 is the achievable region" nor "the performance vector of each priority rule is achievable" is formalized. The goal is the full set identity: stating only P2′⊆P1\mathrm{P2}'\subseteq\mathrm{P1}P2′⊆P1, or assuming P1=conv⁡{v(π)}\mathrm{P1}=\operatorname{conv}\{v(\pi)\}P1=conv{v(π)} as a hypothesis of the goal, would not be Theorem 8.4.

A complete development needs: supermodularity of bbb under the load condition; the greedy (Edmonds) description of base polytopes of supermodular functions, which is reusable well beyond this mission; and a nonnegative solution of the P2 system at each v(π)v(\pi)v(π). Contributions of any of these as separate lemmas are welcome.

Selected references

  • D. Bertsimas, I. Ch. Paschalidis, J. N. Tsitsiklis, Optimization of Multiclass Queueing Networks: Polyhedral and Nonlinear Characterizations of Achievable Performance, MIT Sloan School WP #3509-92-MSA, 1992; Annals of Applied Probability 4(1):43–75, 1994. https://doi.org/10.1214/aoap/1177005200
  • E. G. Coffman, I. Mitrani, A characterization of waiting time performance realizable by single-server queues, Operations Research 28(3):810–821, 1980. https://doi.org/10.1287/opre.28.3.810
  • J. G. Shanthikumar, D. D. Yao, Multiclass queueing systems: polymatroidal structure and optimal scheduling control, Operations Research 40(S2):S293–S299, 1992. https://doi.org/10.1287/opre.40.3.S293
  • D. Bertsimas, J. Niño-Mora, Conservation laws, extended polymatroids and multiarmed bandit problems; a polyhedral approach to indexable systems, Mathematics of Operations Research 21(2):257–306, 1996. https://doi.org/10.1287/moor.21.2.257
  • J. Edmonds, Submodular functions, matroids, and certain polyhedra, in Combinatorial Structures and Their Applications, Gordon and Breach, 1970, pp. 69–87.
5 thms3 active usersReviewed
PreviousPage 4 of 20Next

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