Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Collections

The OR Formalization Drive

Help us formalize the operations research literature in Lean.

727 completed missions

Missions

681–700 of 727
OpenCompletedAll
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Assortment Optimization under Variants of the Nested Logit Model 6: For δ > 1, the Powers-of-δ LP Optimum Scaled by (δ^(2γ̄+1), δ^(γ̄+1)) Is Feasible for the Full LPResearch Paper

Motivation

Assortment optimization asks which products a retailer should offer when customers choose among the offered products according to a probabilistic choice model, so as to maximize expected revenue. Under the nested logit model the products are grouped into nests: a customer first picks a nest, then a product inside it. The model is the standard relaxation of the independence of irrelevant alternatives property of the multinomial logit, and it is used throughout revenue management and transportation demand modelling.

Davis, Gallego and Topaloglu (Oper. Res. 62(2), 2014) classify the complexity of the assortment problem under four variants of the nested logit model, according to whether the dissimilarity parameters are at most one and whether a customer who picks a nest always buys there. The problem is NP-hard as soon as some dissimilarity parameter exceeds one (their Theorem 5), and also when the nests have positive no-purchase weights (Theorem 8), so for the general variant approximation is the realistic aim. §6.2 of the paper gives an approximation scheme for the most general variant: for any δ>1\delta > 1δ>1 it restricts each nest to a short list of candidate assortments indexed by the powers of δ\deltaδ, solves a small linear program, and loses at most a factor δ2γˉ+1\delta^{2\bar\gamma+1}δ2γˉ​+1 of the optimal revenue. This mission formalizes the guarantee behind that scheme, Theorem 12.

Setting

There are nests MMM and products N={1,…,n}N = \{1, \dots, n\}N={1,…,n} in each nest. Product jjj of nest iii has revenue rij≥0r_{ij} \ge 0rij​≥0 and preference weight vij>0v_{ij} > 0vij​>0; the products are ordered so that ri1≥⋯≥rinr_{i1} \ge \dots \ge r_{in}ri1​≥⋯≥rin​. Nest iii has a no-purchase weight vi0≥0v_{i0} \ge 0vi0​≥0 and a dissimilarity parameter γi>0\gamma_i > 0γi​>0, and v0≥0v_0 \ge 0v0​≥0 is the weight of leaving without choosing a nest. Offering Si⊆NS_i \subseteq NSi​⊆N in nest iii gives

Vi(Si)=vi0+∑j∈Sivij,Ri(Si)=∑j∈SirijvijVi(Si),Π(S1,…,Sm)=∑iVi(Si)γiRi(Si)v0+∑iVi(Si)γi.V_i(S_i) = v_{i0} + \sum_{j \in S_i} v_{ij}, \qquad R_i(S_i) = \frac{\sum_{j \in S_i} r_{ij} v_{ij}}{V_i(S_i)}, \qquad \Pi(S_1, \dots, S_m) = \frac{\sum_i V_i(S_i)^{\gamma_i} R_i(S_i)}{v_0 + \sum_i V_i(S_i)^{\gamma_i}}.Vi​(Si​)=vi0​+j∈Si​∑​vij​,Ri​(Si​)=Vi​(Si​)∑j∈Si​​rij​vij​​,Π(S1​,…,Sm​)=v0​+∑i​Vi​(Si​)γi​∑i​Vi​(Si​)γi​Ri​(Si​)​.

The optimal expected revenue Z∗=max⁡ΠZ^* = \max \PiZ∗=maxΠ is the optimal value of the linear program (3): minimize xxx subject to v0x≥∑iyiv_0 x \ge \sum_i y_iv0​x≥∑i​yi​ and yi≥Vi(Si)γi(Ri(Si)−x)y_i \ge V_i(S_i)^{\gamma_i}(R_i(S_i) - x)yi​≥Vi​(Si​)γi​(Ri​(Si​)−x) for every nest iii and every Si⊆NS_i \subseteq NSi​⊆N. Problem (4) keeps the second family of constraints only for a candidate collection of assortments in each nest.

Let γˉ=max⁡iγi\bar\gamma = \max_i \gamma_iγˉ​=maxi​γi​, assumed >1> 1>1 throughout §6, and fix δ>1\delta > 1δ>1. Put viL=vi0+min⁡jvijv^L_i = v_{i0} + \min_j v_{ij}viL​=vi0​+minj​vij​, viU=vi0+∑jvijv^U_i = v_{i0} + \sum_j v_{ij}viU​=vi0​+∑j​vij​, and let liLl^L_iliL​, liUl^U_iliU​ be the least integers with δl≥viL\delta^{l} \ge v^L_iδl≥viL​, δl≥viU\delta^l \ge v^U_iδl≥viU​. For each level l=liL,…,liUl = l^L_i, \dots, l^U_il=liL​,…,liU​, problem (15) maximizes ∑j∈Srijvij\sum_{j \in S} r_{ij} v_{ij}∑j∈S​rij​vij​ over the assortments with δl−1≤Vi(S)≤δl\delta^{l-1} \le V_i(S) \le \delta^lδl−1≤Vi​(S)≤δl; its value is G^il\hat G_{il}G^il​. An assortment S^il\hat S_{il}S^il​ is feasible for (15) and satisfies δ∑j∈S^ilrijvij≥G^il\delta \sum_{j \in \hat S_{il}} r_{ij} v_{ij} \ge \hat G_{il}δ∑j∈S^il​​rij​vij​≥G^il​. The candidate collection of nest iii is {S^il:l=liL,…,liU}∪{∅}\{\hat S_{il} : l = l^L_i, \dots, l^U_i\} \cup \{\emptyset\}{S^il​:l=liL​,…,liU​}∪{∅}.

Formalization targets

Goal: Theorem 12 (p. 28)

If (x^,y^)(\hat x, \hat y)(x^,y^​) is an optimal solution of problem (4) over the candidate collections {S^il}∪{∅}\{\hat S_{il}\} \cup \{\emptyset\}{S^il​}∪{∅}, then

(δ2γˉ+1x^, δγˉ+1y^) is feasible for problem (3).\big(\delta^{2\bar\gamma+1}\hat x,\ \delta^{\bar\gamma+1}\hat y\big) \text{ is feasible for problem (3).}(δ2γˉ​+1x^, δγˉ​+1y^​) is feasible for problem (3).

Milestones (Appendix A.6, pp. 53–54)

  1. x^≥0\hat x \ge 0x^≥0.
  2. Every nonempty assortment of nest iii lies in some level liL≤l≤liUl^L_i \le l \le l^U_iliL​≤l≤liU​.
  3. If δl−1≤a≤δl\delta^{l-1} \le a \le \delta^lδl−1≤a≤δl, then aγ−1≥(δl)γ−1δ−[γ−1]+a^{\gamma-1} \ge (\delta^l)^{\gamma-1}\delta^{-[\gamma-1]^+}aγ−1≥(δl)γ−1δ−[γ−1]+.
  4. Under the same hypothesis, (δl)γ−1≥δ−[1−γ]+aγ−1(\delta^l)^{\gamma-1} \ge \delta^{-[1-\gamma]^+} a^{\gamma-1}(δl)γ−1≥δ−[1−γ]+aγ−1.
  5. δγˉδ−[γi−1]+δ−[1−γi]+≥1\delta^{\bar\gamma}\delta^{-[\gamma_i-1]^+}\delta^{-[1-\gamma_i]^+} \ge 1δγˉ​δ−[γi​−1]+δ−[1−γi​]+≥1 and δγˉ+γi+1≤δ2γˉ+1\delta^{\bar\gamma+\gamma_i+1} \le \delta^{2\bar\gamma+1}δγˉ​+γi​+1≤δ2γˉ​+1.
  6. The scaled pair satisfies δγˉ+1y^i≥Vi(Si)γi(Ri(Si)−δ2γˉ+1x^)\delta^{\bar\gamma+1}\hat y_i \ge V_i(S_i)^{\gamma_i}(R_i(S_i) - \delta^{2\bar\gamma+1}\hat x)δγˉ​+1y^​i​≥Vi​(Si​)γi​(Ri​(Si​)−δ2γˉ​+1x^) for every nonempty SiS_iSi​.
  7. The same inequality for Si=∅S_i = \emptysetSi​=∅.

Companions

  • The guarantee stated after Theorem 12: with v0>0v_0 > 0v0​>0, the assortment assembled from the candidates solving problem (5) earns at least Z∗/δ2γˉ+1Z^*/\delta^{2\bar\gamma+1}Z∗/δ2γˉ​+1.
  • Proposition 15 (p. 51): when (15) is feasible, one of the explicit assortments S^(JL,JS)\hat S(J_L, J_S)S^(JL​,JS​), built from at most q=⌈δ/(δ−1)⌉q = \lceil \delta/(\delta-1)\rceilq=⌈δ/(δ−1)⌉ large and at most qqq small products by a greedy continuous knapsack, is feasible for (15) and within a factor δ\deltaδ of G^il\hat G_{il}G^il​.
  • The count liU−liL≤1+log⁡δ(viU/viL)l^U_i - l^L_i \le 1 + \log_\delta(v^U_i/v^L_i)liU​−liL​≤1+logδ​(viU​/viL​) (p. 28).

Significance

Theorem 12 is the analytical half of the approximation scheme. Together with the paper's Theorem 1 it shows that a linear program with 1+m1 + m1+m variables and at most 1+m(2+log⁡δ(viU/viL))1 + m(2 + \log_\delta(v^U_i/v^L_i))1+m(2+logδ​(viU​/viL​)) constraints yields an assortment within a factor δ2γˉ+1\delta^{2\bar\gamma+1}δ2γˉ​+1 of the optimum, for the most general variant, which is NP-hard, and Proposition 15 makes the candidate assortments computable. Letting δ↓1\delta \downarrow 1δ↓1 trades accuracy for running time, so the result is the paper's answer to how well the general problem can be approximated by this LP approach.

The result is proved in the paper; the work here is to formalize the known proof. To the best of a search of the Prove2Me library (local index and platform mirror, October 2026), no nested logit approximation result, and no knapsack lemma matching Proposition 15, has a machine-checked statement or proof. The definitions of the shared model (the instance, ViV_iVi​, RiR_iRi​, Π\PiΠ, the linear programs (3) and (4)) are common to the six missions of this series.

Difficulty

The obvious argument compares an arbitrary assortment SiS_iSi​ with the candidate of its level and uses the candidate's constraint in (4). This fails as a direct comparison because the nest weight Vi(⋅)γiV_i(\cdot)^{\gamma_i}Vi​(⋅)γi​ enters twice with different exponents, γi−1\gamma_i - 1γi​−1 in front of the revenue and γi\gamma_iγi​ in front of x^\hat xx^, and within one level ViV_iVi​ may vary by a factor δ\deltaδ. When γi>1\gamma_i > 1γi​>1 and when γi≤1\gamma_i \le 1γi​≤1 the monotonicity of t↦tγi−1t \mapsto t^{\gamma_i - 1}t↦tγi​−1 goes in opposite directions, so the losses must be tracked separately by [γi−1]+[\gamma_i - 1]^+[γi​−1]+ and [1−γi]+[1 - \gamma_i]^+[1−γi​]+, and they are absorbed by the common factor δγˉ\delta^{\bar\gamma}δγˉ​ only because γˉ>1\bar\gamma > 1γˉ​>1. The other half, Proposition 15, concerns a knapsack with both a lower and an upper bound on the total weight, where a feasible solution must be produced as well as a good objective value.

Formalization scope

Products are Fin n (0,…,n−10, \dots, n-10,…,n−1 for 1,…,n1, \dots, n1,…,n), nests a finite type, powers VγV^{\gamma}Vγ real powers, and x/0=0x/0 = 0x/0=0, which gives Ri(∅)=0R_i(\emptyset) = 0Ri​(∅)=0. The shared model carries the standing assumptions of §1 with the disclosed pins vij>0v_{ij} > 0vij​>0, rij≥0r_{ij} \ge 0rij​≥0 and γi>0\gamma_i > 0γi​>0 (the page allows γi=0\gamma_i = 0γi​=0 and zero-weight padding products, under which its convention 0γi=00^{\gamma_i} = 00γi​=0 and its proofs fail). Every statement of the mission also assumes n≥1n \ge 1n≥1 (for viLv^L_iviL​), γˉ\bar\gammaγˉ​ is the greatest of the γi\gamma_iγi​ (so at least one nest exists) with γˉ>1\bar\gamma > 1γˉ​>1, and δ>1\delta > 1δ>1. Integer powers δl\delta^lδl are zpow, and liLl^L_iliL​, liUl^U_iliU​ are written ⌈log⁡δviL⌉\lceil \log_\delta v^L_i\rceil⌈logδ​viL​⌉, ⌈log⁡δviU⌉\lceil \log_\delta v^U_i\rceil⌈logδ​viU​⌉, which equal the minima of the paper. An optimal solution of (4) is a feasible pair whose xxx is minimal among feasible pairs. The companion guarantee adds v0>0v_0 > 0v0​>0, the pin of Theorem 1. In Proposition 15 the capacity row of (33) includes v0v_0v0​, correcting a printed slip, and the running-time claim is not stated.

The assortments S^il\hat S_{il}S^il​ enter Theorem 12 as an arbitrary family with the two properties of p. 28; the theorem is stated for every such family. A level at which (15) has no feasible assortment imposes nothing on S^il\hat S_{il}S^il​, as on the page. Requiring S^il\hat S_{il}S^il​ to lie in its level unconditionally would make the hypothesis unsatisfiable for most instances and the goal vacuous; that encoding, and any goal that assumes displays (34)–(36) or the exponent bounds, is ruled out.

Contributions welcome: proofs of the real-power milestones (3)–(5), which are self-contained, of the two cases (6)–(7), and of Proposition 15, whose fractional knapsack lemma (the greedy solution of a continuous knapsack sorted by ratio is optimal) is reusable beyond this mission.

Selected references

  • J. M. Davis, G. Gallego, H. Topaloglu, Assortment optimization under variants of the nested logit model, Operations Research 62(2), 2014; cited from the revised manuscript of June 18, 2013. https://doi.org/10.1287/opre.2014.1256
  • A. M. Frieze, M. R. B. Clarke, Approximation algorithms for the m-dimensional 0–1 knapsack problem: worst-case and probabilistic analyses, European Journal of Operational Research 15(1), 1984. (cited on p. 50 of the paper for the continuous knapsack (33); link not verified here)
  • M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979.
11 thms2 active usersReviewed
🏆Completed
Algorithmic Game TheoryOperations ResearchOptimization·Captain: mikedeng1

The Bargaining Problem: The Nash Product Maximizer Is the Unique Solution Satisfying Invariance, Symmetry, IIA and Pareto EfficiencyResearch Paper

Motivation

Two parties who can cooperate for mutual benefit must still agree on how to share the benefit. In The Bargaining Problem (Econometrica, 1950) John Nash asked which agreement two rational bargainers of equal skill should reach. His answer is not a model of haggling: it is a list of conditions any reasonable rule should satisfy, together with a proof that exactly one point of the set of feasible agreements is compatible with them. That point maximizes the product of the two parties' utility gains. Known as the Nash bargaining solution, it is the reference point of cooperative bargaining theory. Economics, operations research and networking all use it: in supply contracts, in wage bargaining, and in fair bandwidth allocation, where maximizing a product of gains becomes maximizing a sum of logarithms (proportional fairness).

Timeline:

  • 1944. von Neumann and Morgenstern axiomatize expected utility. A utility is determined up to a positive affine transformation au+bau+bau+b. Nash quotes this on p. 157.
  • 1950. Nash introduces the two-person bargaining problem and the axioms of Pareto efficiency, independence of irrelevant alternatives and symmetry, the solution being invariant under the choice of utility scales. He proves that they force the maximizer of the product u1u2u_1u_2u1​u2​ (doi:10.2307/1907266).
  • 1953. Nash's Two-Person Cooperative Games adds the threat game that fixes the disagreement point.
  • 1975. Kalai and Smorodinsky replace independence of irrelevant alternatives by monotonicity and obtain a different solution.
  • 1986. Binmore, Rubinstein and Wolinsky show that the Nash solution is the limit of equilibria of alternating-offers bargaining as the time between offers vanishes.

Setting

A bargaining problem is a pair ⟨S,d⟩\langle S,d\rangle⟨S,d⟩. Here S⊆R2S\subseteq\mathbb R^2S⊆R2 is the set of utility pairs u=(u1,u2)u=(u_1,u_2)u=(u1​,u2​) the two players can reach by agreement, including lotteries over agreements. d∈Sd\in Sd∈S is the disagreement point, the utilities of no cooperation. As in the platform goal, SSS is compact and convex, and some s∈Ss\in Ss∈S has s1>d1s_1>d_1s1​>d1​ and s2>d2s_2>d_2s2​>d2​ (both individuals could gain). Write B\mathcal BB for the set of such pairs.

A bargaining solution is a map ggg from B\mathcal BB to R2\mathbb R^2R2. Nash requires:

  • Selection. g(S,d)∈Sg(S,d)\in Sg(S,d)∈S.
  • PAR (Nash's assumption 6). If s,t∈Ss,t\in Ss,t∈S and ttt is strictly better than sss for both players, then g(S,d)≠sg(S,d)\neq sg(S,d)=s.
  • IIA (assumption 7). If S⊆TS\subseteq TS⊆T and g(T,d)∈Sg(T,d)\in Sg(T,d)∈S, then g(S,d)=g(T,d)g(S,d)=g(T,d)g(S,d)=g(T,d).
  • SYM (assumption 8). If d1=d2d_1=d_2d1​=d2​ and SSS is symmetric in the line u1=u2u_1=u_2u1​=u2​, then g(S,d)g(S,d)g(S,d) lies on that line.
  • INV. For L(s)=(α1s1+β1, α2s2+β2)L(s)=(\alpha_1s_1+\beta_1,\ \alpha_2s_2+\beta_2)L(s)=(α1​s1​+β1​, α2​s2​+β2​) with α1,α2>0\alpha_1,\alpha_2>0α1​,α2​>0, g(L(S),L(d))=L(g(S,d))g(L(S),L(d))=L(g(S,d))g(L(S),L(d))=L(g(S,d)).

The paper has no separate INV axiom. It normalizes the disagreement utility to 000 and notes that each utility is then determined only up to a positive multiple (p. 158), so the solution must not depend on that choice.

Formalization targets

Goal

The goal is the platform theorem NashBargaining.nash_bargaining_solution_unique, posed by Nickrobbins95 and currently Open. This mission references it and does not restate it. It asserts that there is a solution fff such that a solution ggg satisfies selection, INV, SYM, IIA and PAR if and only if g=fg=fg=f, and that for every ⟨S,d⟩∈B\langle S,d\rangle\in\mathcal B⟨S,d⟩∈B

f(S,d)≥d,(s1−d1)(s2−d2)<(f1−d1)(f2−d2)  for all s∈S, s≥d, s≠f(S,d).f(S,d)\ge d,\qquad (s_1-d_1)(s_2-d_2)<(f_1-d_1)(f_2-d_2)\ \text{ for all } s\in S,\ s\ge d,\ s\neq f(S,d).f(S,d)≥d,(s1​−d1​)(s2​−d2​)<(f1​−d1​)(f2​−d2​)  for all s∈S, s≥d, s=f(S,d).

Nash's paper proves the necessity half: a solution satisfying the conditions must select the maximizer of the Nash product. The sufficiency half, that the maximizer map satisfies the five conditions, is not argued in the paper. It must be supplied by whoever closes the goal.

Milestones

  1. On a compact convex S∋(0,0)S\ni(0,0)S∋(0,0) that contains a point where both players gain, u1u2u_1u_2u1​u2​ has exactly one strict maximizer ppp in the closed first quadrant, and p1,p2>0p_1,p_2>0p1​,p2​>0.
  2. Multiplying the utilities by positive constants maps the maximizer to the maximizer, so ppp may be moved to (1,1)(1,1)(1,1).
  3. If SSS is convex and (1,1)(1,1)(1,1) maximizes u1u2u_1u_2u1​u2​, then u1+u2≤2u_1+u_2\le2u1​+u2​≤2 on all of SSS.
  4. A compact SSS under that line lies in a square Qh={2−2h≤u1+u2≤2, ∣u1−u2∣≤h}Q_h=\{2-2h\le u_1+u_2\le2,\ |u_1-u_2|\le h\}Qh​={2−2h≤u1​+u2​≤2, ∣u1​−u2​∣≤h}.
  5. (1,1)(1,1)(1,1) is the only point of QhQ_hQh​ on the diagonal that no point of QhQ_hQh​ strictly dominates.
  6. Necessity. Under the five conditions, g(S,d)g(S,d)g(S,d) is the strict maximizer of (s1−d1)(s2−d2)(s_1-d_1)(s_2-d_2)(s1​−d1​)(s2​−d2​) over S∩{s≥d}S\cap\{s\ge d\}S∩{s≥d}.

Two further items formalize the paper's examples: the Bill–Jack barter, whose solution is the vertex (12,5)(12,5)(12,5) reached by exactly one exchange, and trade with money, where the solution gives equal money profits.

Significance

The Nash product characterization is used, mostly without proof, wherever a "fair" split of a cooperative surplus is needed. Examples are generalized Nash bargaining in supply-chain contracting and labour economics, the proportional-fairness criterion in network rate control, and the Nash-in-Nash models of bilateral negotiations. Many papers that build on it apply it to a specific feasible set. They therefore rely on the necessity direction, which is the step that makes the maximizer the unique answer rather than one answer among several.

The result has been proved since 1950, while the referenced Prove2Me goal remains Open. This mission supplies the milestones of Nash's own argument in the encoding of that goal, so that the necessity direction can be assembled from them. Sufficiency remains as separate work. The two examples are small, concrete checks of the solution concept.

Difficulty

Each step is elementary. The difficulty is in keeping the bookkeeping honest across the normalizations. The axioms are stated on the class B\mathcal BB, and a solution is a function on a subtype. Every application of INV, SYM or IIA therefore needs a membership proof for a transformed set: the image of SSS under an affine map, or the enclosing square. It also needs the disagreement point to be carried along. The tempting short cut is to argue "without loss of generality d=0d=0d=0 and p=(1,1)p=(1,1)p=(1,1)". That is exactly what INV licenses, but only after compactness, convexity, the point where both gain, and the location of ddd inside the square have been re-established for each transformed problem. Uniqueness of the maximizer also needs care at the boundary of the quadrant, where the product vanishes.

Formalization scope

Utility pairs are ℝ × ℝ, with u.1 player 1's utility and u.2 player 2's. Milestones 1–5 work at d=(0,0)d=(0,0)d=(0,0), the paper's normalization. Milestone 6 has a general ddd and the goal's encoding. Milestones 1–5 make the following readings explicit:

  • "First quadrant" is the closed quadrant u1≥0, u2≥0u_1\ge0,\ u_2\ge0u1​≥0, u2​≥0.
  • "The point where u1u2u_1u_2u1​u2​ is maximized" is the strict maximizer over SSS in that quadrant, in the goal's form. Milestone 1 also states p1,p2>0p_1,p_2>0p1​,p2​>0, which follows from the point where both gain (p. 158).
  • Milestone 3's hypothesis is the weak maximum s1s2≤1s_1s_2\le1s1​s2​≤1. Its conclusion covers every point of SSS, not only first-quadrant points.
  • The square is the explicit set QhQ_hQh​. Its compactness, convexity and literal symmetry (a,b)∈Qh  ⟺  (b,a)∈Qh(a,b)\in Q_h\iff(b,a)\in Q_h(a,b)∈Qh​⟺(b,a)∈Qh​ are part of milestone 4's conclusion.
  • "Satisfying assumptions (6) and (8)" in the square means lying on u1=u2u_1=u_2u1​=u2​ and being strictly dominated by no point of the square.

Milestone 6's five hypotheses are copied verbatim from the goal, and its conclusion is the goal's last conjunct for the given ggg. It does not restate the goal: it has no existence claim and no "if and only if".

Trivializing formalizations are ruled out. The point where both gain is a hypothesis wherever uniqueness is claimed; without it a segment on an axis has many maximizers of u1u2=0u_1u_2=0u1​u2​=0. The square is a concrete set, not "some symmetric compact convex set", and the solution's properties are quantified over the goal's class B\mathcal BB, which is nonempty.

The examples need finite sums, convex hulls of finite sets, and extreme points, all in Mathlib. Contributions are welcome on each milestone and on the sufficiency half of the goal.

Related platform work treats other bargaining models. These are Rubinstein's alternating-offers game (RubinsteinBargaining.PEP) and the Chatterjee–Samuelson sealed-offer double auction (ChatterjeeSamuelson). Neither is used here. The von Neumann–Morgenstern utility theorem behind the normalization is formalized as TheoryOfGames.Utility.utility_existence_uniqueness.

Selected references

  • J. F. Nash, Jr., The Bargaining Problem, Econometrica 18(2), 155–162, 1950. doi:10.2307/1907266
  • J. von Neumann, O. Morgenstern, Theory of Games and Economic Behavior, Princeton University Press, 1944.
  • J. F. Nash, Jr., Two-Person Cooperative Games, Econometrica 21(1), 128–140, 1953. doi:10.2307/1906951
  • E. Kalai, M. Smorodinsky, Other Solutions to Nash's Bargaining Problem, Econometrica 43(3), 513–518, 1975. doi:10.2307/1914280
  • K. Binmore, A. Rubinstein, A. Wolinsky, The Nash Bargaining Solution in Economic Modelling, RAND Journal of Economics 17(2), 176–188, 1986. doi:10.2307/2555382
  • M. J. Osborne, A. Rubinstein, Bargaining and Markets, Academic Press, 1990, Theorem 2.3.
10 thms3 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Scheduling of Vehicles from a Central Depot to a Number of Delivery Points: The Savings Procedure Always Ends in a Feasible Truck Allocation Whose Mileage Is the Initial Less the Linked SavingsResearch Paper

Motivation

Delivering goods from one depot to many customers with a fleet of trucks is the vehicle routing problem. Dantzig and Ramser formulated it in 1959 as the "truck dispatching problem" (Management Sci. 6 (1959), doi:10.1287/mnsc.6.1.80). Five years later Clarke and Wright proposed the savings procedure (Oper. Res. 12 (1964), 568–581, doi:10.1287/opre.12.4.568): start with one truck per customer and repeatedly join two routes where joining saves the most distance, as long as the trucks can still carry the loads. On the twelve-customer example of Dantzig and Ramser it reached 290 units against their 294.

The savings procedure became the standard construction heuristic for vehicle routing. It appears in every textbook treatment of the problem, is the initial solution of many metaheuristics, and is the benchmark against which later construction methods are compared. The paper states the procedure and its bookkeeping (the half matrix, the vector QQQ, Table II) but proves nothing about it. That every run of the procedure ends, and ends in a feasible allocation, is left to the reader.

Setting

A depot P0P_0P0​ serves customers P1,…,PMP_1,\dots,P_MP1​,…,PM​. The distance dy,zd_{y,z}dy,z​ between every two points is given, and customer PjP_jPj​ requires a load qjq_jqj​. Trucks come in nnn capacity classes: xix_ixi​ trucks of capacity CiC_iCi​ are available, with C1<⋯<CnC_1<\dots<C_nC1​<⋯<Cn​, and the trucks of the smallest capacity are unlimited, x1=∞x_1=\inftyx1​=∞ (p. 569).

A run is the ordered list of customers Pa1,…,PakP_{a_1},\dots,P_{a_k}Pa1​​,…,Pak​​ served by one truck, which drives P0Pa1⋯PakP0P_0P_{a_1}\cdots P_{a_k}P_0P0​Pa1​​⋯Pak​​P0​. Its load is ∑iqai\sum_i q_{a_i}∑i​qai​​. A state of the procedure is a list of runs; its mileage is the total length of its runs. A list of runs is an allocation if every customer lies on exactly one run, and it is feasible if each run can be given a truck of capacity at least its load without using more trucks of any class than are available.

The saving of the cell (y:z)(y:z)(y:z) is d0,y+d0,z−dy,zd_{0,y}+d_{0,z}-d_{y,z}d0,y​+d0,z​−dy,z​. The half matrix records ty,z=1t_{y,z}=1ty,z​=1 if PyP_yPy​ and PzP_zPz​ are adjacent on a run, and ty,0∈{0,1,2}t_{y,0}\in\{0,1,2\}ty,0​∈{0,1,2} counts how many ends of runs lie at PyP_yPy​. Table II counts, for each capacity level CiC_iCi​, the runs with load above CiC_iCi​ and the trucks with capacity above CiC_iCi​.

The procedure starts with the runs [P1],…,[PM][P_1],\dots,[P_M][P1​],…,[PM​], so ty,0=2t_{y,0}=2ty,0​=2 for every customer. A cell (y:z)(y:z)(y:z) is admissible if (I) ty,0>0t_{y,0}>0ty,0​>0 and tz,0>0t_{z,0}>0tz,0​>0; (II) PyP_yPy​ and PzP_zPz​ are on different runs; (III) after replacing those two runs by one run of load Qy+QzQ_y+Q_zQy​+Qz​, no column of Table II has more runs than trucks. A step links an admissible cell of maximum saving, ties broken arbitrarily, by joining the two runs end to end at PyP_yPy​ and PzP_zPz​. The procedure stops when no cell is admissible.

Formalization targets

Goal: correctness of the procedure

Assume symmetric distances, C1<⋯<CnC_1<\dots<C_nC1​<⋯<Cn​, x1=∞x_1=\inftyx1​=∞, and that the initial one-truck-per-customer allocation passes the Table II test. Then every run of the procedure is finite whatever the tie-breaks; at every reachable state from which a link is possible a step exists; and every final state SSS is a feasible allocation satisfying relation (A), ∑z≠yty,z=2\sum_{z\ne y}t_{y,z}=2∑z=y​ty,z​=2 for every customer, with

mileage(S)=2∑j=1Md0,j−∑1≤y<z≤Mty,z=1(d0,y+d0,z−dy,z).\text{mileage}(S)=2\sum_{j=1}^M d_{0,j}-\sum_{\substack{1\le y<z\le M\\ t_{y,z}=1}}\bigl(d_{0,y}+d_{0,z}-d_{y,z}\bigr).mileage(S)=2j=1∑M​d0,j​−1≤y<z≤Mty,z​=1​∑​(d0,y​+d0,z​−dy,z​).

Milestones

mileage(link(S,y,z))=mileage(S)−(d0,y+d0,z−dy,z)for admissible (y:z),\text{mileage}(\text{link}(S,y,z))=\text{mileage}(S)-(d_{0,y}+d_{0,z}-d_{y,z})\quad\text{for admissible }(y:z),mileage(link(S,y,z))=mileage(S)−(d0,y​+d0,z​−dy,z​)for admissible (y:z),

relation (A) at every reachable state, the permanence of links between customers, and

#{runs with load>Ci}≤∑k>ixk  (i=1,…,n)  ⟺  the runs can be allocated to trucks,\#\{\text{runs with load}>C_i\}\le\sum_{k>i}x_k\ \ (i=1,\dots,n)\iff\text{the runs can be allocated to trucks},#{runs with load>Ci​}≤k>i∑​xk​  (i=1,…,n)⟺the runs can be allocated to trucks,

which together give feasibility of every reachable state. Two further milestones: when Cn≥∑jqjC_n\ge\sum_j q_jCn​≥∑j​qj​ and the distances are a metric, the optimum equals the traveling salesman optimum (p. 569); and on the data of Table I every run of the procedure ends with total distance 290.

Significance

The goal is the specification the paper's procedure meets: it always terminates, never gets stuck, and outputs routes the fleet can actually drive, with the mileage the half-matrix bookkeeping predicts. The equivalence of the Table II test with truck feasibility is the reason the procedure can check capacities by counting columns instead of solving an assignment problem; it is a nested-class instance of Hall's marriage condition and is reusable for any routing or bin-assignment problem with ordered vehicle classes.

None of these statements is formalized anywhere, and the paper does not prove them. The paper makes no claim of optimality ("near-optimal", p. 568, is not quantified), and the mission does not either. A formal model of the procedure as a nondeterministic transition system is a base on which later results about savings heuristics (worst-case ratios, parallel and sequential variants) can be stated.

Difficulty

The obvious argument for termination, "each link removes a run", needs the invariant that every reachable state is a partition of the customers into runs; the procedure manipulates ordered lists and reverses runs, so the invariant must be carried through every step. Feasibility is not preserved by an arbitrary link but only by one that passes condition (III), and turning the column test into an actual assignment of runs to trucks is a matching argument that fails without both x1=∞x_1=\inftyx1​=∞ and the ordering of the capacities. Because ties are broken arbitrarily, every statement must hold for all runs of a nondeterministic procedure, not for one canonical execution. The worked example requires following every tie-break.

Formalization scope

Points are Fin (M+1) with depot 0, and a run's length is SupplyChainTheory.routeCost from the referenced module SupplyChainTheory_vrp. Capacity class i : Fin (n+1) is the paper's Ci+1C_{i+1}Ci+1​; availabilities are in ℕ∞; loads and capacities are real. A state is a list of runs, each an ordered list of customers; the matrix ttt and the vector QQQ are computed from the state. The procedure is a step relation, and every invariant is stated for reachable states. Termination is Acc of the step relation at the initial state.

Choices committed to:

  • distances are arbitrary real, symmetric numbers (the half matrix, p. 573); no nonnegativity or triangle inequality is assumed in the goal, and savings may be negative;
  • every run: ties are free, as the paper suggests choosing randomly;
  • reachable states: invariants are not claimed for arbitrary lists of runs;
  • Table II is read cumulatively: column "Over CiC_iCi​" compares runs with load >Ci>C_i>Ci​ against all trucks of capacity >Ci>C_i>Ci​, as the printed Tables II, IV and VI show;
  • x1=∞x_1=\inftyx1​=∞ and C1<⋯<CnC_1<\dots<C_nC1​<⋯<Cn​ are hypotheses; qj≤Cnq_j\le C_nqj​≤Cn​ is not separately assumed, since it follows from the initial Table II test;
  • the initial one-truck-per-customer allocation is assumed feasible (p. 572);
  • the metric hypotheses enter only the traveling-salesman milestone.

A correctness claim only about final states, without termination and progress, would hold for a procedure with no moves; a step relation with a fixed tie-break would prove less than the paper; invariants for arbitrary states are false; and a mileage identity for an arbitrary partition says nothing about the procedure's output. None of these is the target.

Not formalized: the informal C1≪∑qjC_1\ll\sum q_jC1​≪∑qj​, the shadow-cost reading of p. 571, the decomposition savings (2)–(5) of the general scheme, the load-splitting reduction of pp. 572–573, the Dantzig–Ramser methods, and the empirical comparisons and appendices.

Contributions welcome: proofs of the milestones, in particular the Table II equivalence, which needs a Hall-type argument for nested classes, and a decision procedure for the worked example.

Selected references

  • G. Clarke and J. W. Wright, Scheduling of vehicles from a central depot to a number of delivery points, Operations Research 12(4) (1964), 568–581. https://doi.org/10.1287/opre.12.4.568
  • G. B. Dantzig and J. H. Ramser, The truck dispatching problem, Management Science 6(1) (1959), 80–91. https://doi.org/10.1287/mnsc.6.1.80
  • P. Hall, On representatives of subsets, Journal of the London Mathematical Society 10 (1935), 26–30. https://doi.org/10.1112/jlms/s1-10.37.26
12 thms4 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimal Transport+1·Captain: mikedeng1

Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations I: Wasserstein Worst-Case Expectations as Finite Convex ProgramsResearch Paper

Motivation

A decision maker who must minimize an expected cost EP[h(x,ξ)]\mathbb E^{\mathbb P}[h(x,\xi)]EP[h(x,ξ)] rarely knows the distribution P\mathbb PP of the uncertain parameter ξ\xiξ; usually only NNN samples ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​ are available. Replacing P\mathbb PP by the empirical distribution (sample average approximation) tends to produce decisions that perform poorly out of sample when NNN is small. Distributionally robust optimization instead minimizes the worst expected cost over a set of distributions that are plausible given the data. Mohajerin Esfahani and Kuhn (arXiv:1505.05116v3, published in Mathematical Programming 171, 2018) take that set to be a ball in the Wasserstein metric around the empirical distribution. Such balls give finite-sample and asymptotic guarantees, but each evaluation of the robust objective is an optimization over infinitely many probability distributions. Section 4.1 of the paper shows that, for a large class of losses, this inner problem is a finite convex program. That result, Theorem 4.2, is the subject of this mission.

Timeline. Wasserstein ambiguity sets for portfolio selection were proposed by Pflug and Wozabal (2007); before this paper, robust problems over such sets were solved with global optimization algorithms (Pflug and Pichler 2014). Strong duality for conic linear and moment problems (Shapiro 2001) underlies the reduction. Mohajerin Esfahani and Kuhn (preprint 2015, journal 2018) proved the convex reduction for piecewise concave losses; Gao and Kleywegt (arXiv:1604.02199) and Blanchet and Murthy (arXiv:1604.01446) proved strong duality for general transport costs in 2016.

Setting

Let EEE be a finite-dimensional real vector space with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥ (the paper's Rm\mathbb R^mRm) and its Borel σ-algebra. Its dual norm is ∥z∥∗=sup⁡∥ξ∥≤1⟨z,ξ⟩\|z\|_* = \sup_{\|\xi\|\le 1}\langle z,\xi\rangle∥z∥∗​=sup∥ξ∥≤1​⟨z,ξ⟩, where ⟨z,ξ⟩\langle z,\xi\rangle⟨z,ξ⟩ is the value of the linear functional zzz at ξ\xiξ. Let Ξ⊆E\Xi\subseteq EΞ⊆E be the support set and ξ^1,…,ξ^N∈Ξ\hat\xi_1,\dots,\hat\xi_N\in\Xiξ^​1​,…,ξ^​N​∈Ξ the samples, with empirical distribution P^N=1N∑i=1Nδξ^i\widehat{\mathbb P}_N=\frac1N\sum_{i=1}^N\delta_{\hat\xi_i}PN​=N1​∑i=1N​δξ^​i​​.

The 1-Wasserstein distance between two distributions is the least transport cost ∫∥ξ−ξ′∥ Π(dξ,dξ′)\int\|\xi-\xi'\|\,\Pi(d\xi,d\xi')∫∥ξ−ξ′∥Π(dξ,dξ′) over all couplings Π\PiΠ with the given marginals. The Wasserstein ball Bε(P^N)\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Bε​(PN​) is the set of probability distributions on Ξ\XiΞ within distance ε≥0\varepsilon\ge 0ε≥0 of P^N\widehat{\mathbb P}_NPN​.

The loss is a pointwise maximum ℓ(ξ)=max⁡k≤Kℓk(ξ)\ell(\xi)=\max_{k\le K}\ell_k(\xi)ℓ(ξ)=maxk≤K​ℓk​(ξ) of measurable functions ℓk:E→R‾=R∪{±∞}\ell_k:E\to\overline{\mathbb R}=\mathbb R\cup\{\pm\infty\}ℓk​:E→R=R∪{±∞}. Its expectation is EQ[ℓ]=EQ[max⁡{ℓ,0}]+EQ[min⁡{ℓ,0}]\mathbb E^{\mathbb Q}[\ell]=\mathbb E^{\mathbb Q}[\max\{\ell,0\}]+\mathbb E^{\mathbb Q}[\min\{\ell,0\}]EQ[ℓ]=EQ[max{ℓ,0}]+EQ[min{ℓ,0}] with ∞−∞=∞\infty-\infty=\infty∞−∞=∞. The worst-case expectation is

sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)].(10)\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)].\tag{10}Q∈Bε​(PN​)sup​EQ[ℓ(ξ)].(10)

The conjugate of f:E→R‾f:E\to\overline{\mathbb R}f:E→R is f∗(z)=sup⁡ξ⟨z,ξ⟩−f(ξ)f^*(z)=\sup_\xi\langle z,\xi\rangle-f(\xi)f∗(z)=supξ​⟨z,ξ⟩−f(ξ), the characteristic function χΞ\chi_\XiχΞ​ is 000 on Ξ\XiΞ and +∞+\infty+∞ off it, and the support function is σΞ(z)=sup⁡ξ∈Ξ⟨z,ξ⟩\sigma_\Xi(z)=\sup_{\xi\in\Xi}\langle z,\xi\rangleσΞ​(z)=supξ∈Ξ​⟨z,ξ⟩. Assumption 4.1 requires Ξ\XiΞ to be convex and closed, each −ℓk-\ell_k−ℓk​ to be proper, convex and lower semicontinuous, and no ℓk\ell_kℓk​ to be identically −∞-\infty−∞ on Ξ\XiΞ.

Formalization targets

Goal: Theorem 4.2 (convex reduction)

Under Assumption 4.1, for every ε≥0\varepsilon\ge0ε≥0, (10) equals

inf⁡λ,si,zik,νik λε+1N∑i=1Nsis.t.[−ℓk]∗(zik−νik)+σΞ(νik)−⟨zik,ξ^i⟩≤si,  ∥zik∥∗≤λ∀i,k.(11)\inf_{\lambda,s_i,z_{ik},\nu_{ik}}\ \lambda\varepsilon+\frac1N\sum_{i=1}^N s_i\quad\text{s.t.}\quad [-\ell_k]^*(z_{ik}-\nu_{ik})+\sigma_\Xi(\nu_{ik})-\langle z_{ik},\hat\xi_i\rangle\le s_i,\ \ \|z_{ik}\|_*\le\lambda\quad\forall i,k.\tag{11}λ,si​,zik​,νik​inf​ λε+N1​i=1∑N​si​s.t.[−ℓk​]∗(zik​−νik​)+σΞ​(νik​)−⟨zik​,ξ^​i​⟩≤si​,  ∥zik​∥∗​≤λ∀i,k.(11)

Milestones, in the order of the paper's proof

  1. (12a)–(12c). Without any convexity, (10) is at most the value of (12c): inf⁡{λε+1N∑isi: sup⁡ξ∈Ξ(ℓ(ξ)−λ∥ξ−ξ^i∥)≤si, λ≥0}\inf\{\lambda\varepsilon+\frac1N\sum_i s_i:\ \sup_{\xi\in\Xi}(\ell(\xi)-\lambda\|\xi-\hat\xi_i\|)\le s_i,\ \lambda\ge0\}inf{λε+N1​∑i​si​: supξ∈Ξ​(ℓ(ξ)−λ∥ξ−ξ^​i​∥)≤si​, λ≥0}.
  2. Corollary 4.3. Without Assumption 4.1, (10) is at most the value of (12f), the program with constraints [−ℓk+χΞ]∗(zik)−⟨zik,ξ^i⟩≤si[-\ell_k+\chi_\Xi]^*(z_{ik})-\langle z_{ik},\hat\xi_i\rangle\le s_i[−ℓk​+χΞ​]∗(zik​)−⟨zik​,ξ^​i​⟩≤si​ and ∥zik∥∗≤λ\|z_{ik}\|_*\le\lambda∥zik​∥∗​≤λ.
  3. (12a) is an equality for ε>0\varepsilon>0ε>0 under Assumption 4.1.
  4. The case ε=0\varepsilon=0ε=0. (10) is the sample average 1N∑iℓ(ξ^i)\frac1N\sum_i\ell(\hat\xi_i)N1​∑i​ℓ(ξ^​i​), the objective of (12b) converges to it as λ→∞\lambda\to\inftyλ→∞, and (12a) is again an equality.
  5. (12e) is an equality. For each constraint, sup⁡ξ∈Ξ(ℓk(ξ)−λ∥ξ−ξ^i∥)=min⁡∥z∥∗≤λsup⁡ξ∈Ξ(ℓk(ξ)−⟨z,ξ−ξ^i⟩)\sup_{\xi\in\Xi}(\ell_k(\xi)-\lambda\|\xi-\hat\xi_i\|)=\min_{\|z\|_*\le\lambda}\sup_{\xi\in\Xi}(\ell_k(\xi)-\langle z,\xi-\hat\xi_i\rangle)supξ∈Ξ​(ℓk​(ξ)−λ∥ξ−ξ^​i​∥)=min∥z∥∗​≤λ​supξ∈Ξ​(ℓk​(ξ)−⟨z,ξ−ξ^​i​⟩).
  6. (10) equals (12f) under Assumption 4.1.
  7. (12f) equals (11) under Assumption 4.1, as optimal values.

Significance

Theorem 4.2 is what makes Wasserstein distributionally robust optimization computable. Once the worst-case expectation is a convex program in (λ,s,z,ν)(\lambda,s,z,\nu)(λ,s,z,ν), minimizing over the decision xxx becomes one larger convex program. Section 5 of the paper derives linear and conic programs from it for piecewise affine losses, uncertainty quantification and two-stage problems. Theorem 4.4 of the same paper (mission II of this series) builds worst-case distributions from the same program. Corollary 4.3 gives a conservative convex bound for losses that are not piecewise concave.

The result is proved on paper; no machine-checked proof of it is known. A formal development needs a working theory of extended-valued conjugates, support functions and inf-convolution in a normed space, Kantorovich-type couplings of an empirical measure, and a minimax theorem over a compact dual ball. Each of these is reusable well beyond this paper.

Difficulty

The weak inequality, (10) ≤\le≤ (12f), is the elementary direction: integrate a pointwise bound against a near-optimal coupling. The difficulty lies in the two equalities. Equality in (12a) is strong duality for an infinite-dimensional moment problem whose loss may take the values ±∞\pm\infty±∞ and may be unbounded on an unbounded Ξ\XiΞ. A Slater point exists only for ε>0\varepsilon>0ε>0, so ε=0\varepsilon=0ε=0 needs a separate limit argument. The equality (12f) === (11) is subtle as well. The conjugate of −ℓk+χΞ-\ell_k+\chi_\Xi−ℓk​+χΞ​ is only the closure of the inf-convolution of [−ℓk]∗[-\ell_k]^*[−ℓk​]∗ and σΞ\sigma_\XiσΞ​, so the two constraint sets differ and only the optimal values agree. The paper's sentence "cl[f]≤0[f]\le 0[f]≤0 iff f≤0f\le0f≤0" is false pointwise and cannot be formalized as written.

Formalization scope

  • Space. EEE is a finite-dimensional real normed space with its Borel σ-algebra. The pairing ⟨z,ξ⟩\langle z,\xi\rangle⟨z,ξ⟩ is application of a continuous linear functional zzz, and ∥z∥∗\|z\|_*∥z∥∗​ is the operator norm. These choices keep the paper's arbitrary norm; §5 of the paper uses the 1- and ∞-norms.
  • Extended reals. Values are in EReal. Mathlib's EReal has ⊤+⊥=⊥\top+\bot=\bot⊤+⊥=⊥, whereas the paper has ∞−∞=∞\infty-\infty=\infty∞−∞=∞, so the expectation treats an infinite positive part separately, and [−ℓk+χΞ]∗(z)[-\ell_k+\chi_\Xi]^*(z)[−ℓk​+χΞ​]∗(z) is written as sup⁡ξ∈Ξ(⟨z,ξ⟩+ℓk(ξ))\sup_{\xi\in\Xi}(\langle z,\xi\rangle+\ell_k(\xi))supξ∈Ξ​(⟨z,ξ⟩+ℓk​(ξ)), with no addition at all. The one EReal sum, [−ℓk]∗+σΞ[-\ell_k]^*+\sigma_\Xi[−ℓk​]∗+σΞ​ in (11), never meets ⊤+⊥\top+\bot⊤+⊥ under Assumption 4.1.
  • Programs. Each optimal value is an infimum over a feasibility predicate with real epigraph variables, so an infeasible program has value +∞+\infty+∞.
  • Ball. The ball is the published WassersteinDRO.Duality.ambiguitySet with p=1p=1p=1 around empiricalDistribution. Its condition Q(Ξc)=0\mathbb Q(\Xi^{\mathrm c})=0Q(Ξc)=0 encodes Q∈M(Ξ)\mathbb Q\in\mathcal M(\Xi)Q∈M(Ξ). The finite first moment is automatic at finite distance from P^N\widehat{\mathbb P}_NPN​.
  • Standing assumptions. Every statement carries N≥1N\ge1N≥1, K≥1K\ge1K≥1, ξ^i∈Ξ\hat\xi_i\in\Xiξ^​i​∈Ξ (§2, p. 5) and measurability of each ℓk\ell_kℓk​ (p. 11). The radius condition is ε≥0\varepsilon\ge0ε≥0, or ε>0\varepsilon>0ε>0 in milestone 3.
  • Assumption 4.1. Convexity of −ℓk-\ell_k−ℓk​ is stated through its real epigraph, because ConvexOn cannot take an EReal codomain.
  • Not trivializable. The statements cannot be made vacuous by an empty ball, because the samples lie in Ξ\XiΞ. They cannot be trivialized by a junk expectation either: the expectation is not guarded by integrability, so a distribution with infinite expected loss makes (10) infinite, exactly as in the paper.

Welcome contributions are reusable lemmas on EReal-valued conjugates and support functions, the decomposition of a coupling with an empirical marginal into conditional distributions, the dual-norm identity max⁡∥z∥∗≤λ⟨z,v⟩=λ∥v∥\max_{\|z\|_*\le\lambda}\langle z,v\rangle=\lambda\|v\|max∥z∥∗​≤λ​⟨z,v⟩=λ∥v∥, and a Sion-type minimax theorem.

Selected references

  • P. Mohajerin Esfahani, D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations, arXiv:1505.05116v3, 2017; Math. Program. 171 (2018) 115–166. https://arxiv.org/abs/1505.05116v3
  • A. Shapiro, On duality theory of conic linear problems, in M. A. Goberna, M. A. López (eds.), Semi-Infinite Programming, Kluwer, 2001.
  • R. T. Rockafellar, R. J.-B. Wets, Variational Analysis, Springer, 2010 (Theorem 11.23(a), p. 493).
  • D. P. Bertsekas, Convex Optimization Theory, Athena Scientific, 2009 (Proposition 5.5.4).
  • G. Ch. Pflug, A. Pichler, Multistage Stochastic Optimization, Springer, 2014.
  • G. Ch. Pflug, D. Wozabal, Ambiguity in portfolio selection, Quantitative Finance 7 (2007) 435–442.
  • R. Gao, A. J. Kleywegt, Distributionally robust stochastic optimization with Wasserstein distance, arXiv:1604.02199, 2016. https://arxiv.org/abs/1604.02199
  • J. Blanchet, K. Murthy, Quantifying distributional model risk via optimal transport, arXiv:1604.01446, 2016. https://arxiv.org/abs/1604.01446
13 thms2 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryOperations Research·Captain: mikedeng1

Matching, Euler Tours and the Chinese Postman II: The Parity Problem Is a Minimum 1-Matching of the Odd Nodes under Shortest-Path LengthsResearch Paper

Motivation

A postal route that must traverse every street and return to its starting point is a Chinese postman tour. In a street network, crossings are nodes, streets are edges, and the cost of a route is the sum of the lengths of the streets it traverses, counted with repetition. The practical question is which streets must be repeated, and how often. Edmonds and Johnson's 1973 paper separates that question from constructing the resulting tour: choose the repeated edges first, then find an Euler tour of the resulting multigraph. This mission concerns their reduction of the first question to a minimum-weight matching of the odd-degree nodes.

The reduction matters because it turns a route problem with arbitrary repeated edge traversals into a finite pairing problem. The graph of odd nodes is complete, with the weight of a pair given by its shortest-path distance in the original network. A matching chooses which odd nodes to pair, and paths realizing those pairs identify edges to repeat. The paper also explains why overlapping paths can be replaced so that no edge needs to be repeated by this construction more than once (§3, pp. 92–93).

Setting

A graph G=(N,E)G=(N,E)G=(N,E) has finite node and edge sets. Each edge has two distinct endpoints. Different edges may join the same pair of nodes, so parallel streets remain distinct. The graph is connected when every pair of nodes is joined by an edge-labelled walk. A walk records both its node sequence and its edge sequence; a tour is a closed walk. An Euler tour uses each edge exactly once, while a postman tour uses each edge at least once. Edge lengths cec_ece​ are real and nonnegative, as in §2, p. 89.

The degree of vvv is the number of named edges meeting it. Let TTT be the set of nodes of odd degree. For every edge eee, let xe∈Nx_e\in\mathbb Nxe​∈N be the number of additional traversals. The parity equations require a nonnegative integer wvw_vwv​ at each node such that

∑e∋vxe=2wv+bv,bv={1v∈T,0v∉T.\sum_{e\ni v}x_e=2w_v+b_v,\qquad b_v=\begin{cases}1&v\in T,\\0&v\notin T.\end{cases}e∋v∑​xe​=2wv​+bv​,bv​={10​v∈T,v∈/T.​

Their objective is z(x)=∑e∈Ecexez(x)=\sum_{e\in E}c_ex_ez(x)=∑e∈E​ce​xe​. These are the paper's (3.1)–(3.4), with natural-number values encoding integrality and nonnegativity (§3, pp. 90–91). The equations express the even-degree condition after adding xex_exe​ copies of each original edge.

For nodes u,vu,vu,v, write d(u,v)d(u,v)d(u,v) for the length of a shortest path in GGG. This distance is backed by an attaining edge-simple path and is a lower bound on the length of every walk from uuu to vvv. Connectivity and nonnegative edge lengths make that specification meaningful. Let GpG_pGp​ be the complete graph on TTT, with edge {u,v}\{u,v\}{u,v} of weight d(u,v)d(u,v)d(u,v). A 1-matching MMM pairs every node of TTT with exactly one distinct node. Its length is L(M)=∑{u,v}∈Md(u,v)L(M)=\sum_{\{u,v\}\in M}d(u,v)L(M)=∑{u,v}∈M​d(u,v), equivalently half the sum of d(v,f(v))d(v,f(v))d(v,f(v)) over v∈Tv\in Tv∈T for the pairing involution fff (§3, p. 92).

Formalization targets

Odd-node matching reduction

The goal asserts the existence of a 1-matching of the odd nodes and both directions of the cost comparison:

∀M  ∃x satisfying the parity equations:xe∈{0,1}, z(x)≤L(M),\forall M\;\exists x\text{ satisfying the parity equations}:\quad x_e\in\{0,1\},\ z(x)\le L(M),∀M∃x satisfying the parity equations:xe​∈{0,1}, z(x)≤L(M), ∀x satisfying the parity equations  ∃M:L(M)≤z(x).\forall x\text{ satisfying the parity equations}\;\exists M:\quad L(M)\le z(x).∀x satisfying the parity equations∃M:L(M)≤z(x).

The existence conclusion and these comparisons identify the two attained minimum values. The goal does not prescribe a particular matching algorithm. Its supporting targets are the paper's uncrossing of overlapping shortest paths, parity of their union, reduction of multiplicities to zero or one, and decomposition of a parity solution into paths between odd nodes (§3, pp. 92–93).

Postman-tour reduction

The companion target relates a tour's edge counts to the parity equations. A postman tour traverses edge eee exactly 1+xe1+x_e1+xe​ times, and its length is

∑e∈Ece(1+xe)=∑e∈Ece+z(x).\sum_{e\in E}c_e(1+x_e) =\sum_{e\in E}c_e+z(x).e∈E∑​ce​(1+xe​)=e∈E∑​ce​+z(x).

Conversely, positive integer edge counts with even incidence at every node can be ordered into a postman tour of a connected graph. The supporting Euler theorem handles a connected even multigraph (§2, p. 89).

Significance

The matching result characterizes the optimal additional cost of an undirected postman route. It says that the parity correction can be chosen from paths pairing odd nodes, and that no feasible choice of repeated traversals can beat the best such pairing. The companion identifies how that correction becomes an actual tour. The distinction is useful when one wants to change the matching method while retaining the mathematical guarantee on route length.

A formal development would provide a reusable account of finite multigraph walks whose edge names distinguish parallel edges, of shortest-path distances with explicit attainment, and of parity subgraphs decomposed into odd-to-odd paths and even-degree residual tours. These pieces support later formal work on route inspection, TTT-joins, and matching-based graph algorithms. The paper proves the mathematical result. The exact multigraph and cost statements drafted here are open formalization targets; the local prior-art search found related results for simple graphs and metric traveling-salesman models, but no published statement with this paper's objects and conclusion.

Difficulty

A direct shortest-path construction can assign the same original edge to two matching pairs. Simply setting xe=1x_e=1xe​=1 for the union then loses the additivity of path lengths, and setting xe=2x_e=2xe​=2 loses the promised zero-or-one form. The uncrossing claim must control both the matching cost and the number of times each original edge appears. In the converse direction, an arbitrary feasible xxx may contain repeated edges and cycles; the argument must account for these without assuming that every supported edge belongs to a path between odd nodes (§3, pp. 92–93).

Formalization scope

Lean uses the published EdmondsMatching65.Polyhedron.Graph for GGG: finite node and edge types and an endpoint map into unordered node pairs. A proof field excludes loops; distinct edge names may have identical endpoints. Walks use lists of nodes and named edges with zero-based indices, and the one-node, zero-edge walk is allowed. Edge multiplicities and parity witnesses are natural numbers. Costs and shortest-path lengths are real. The distance relation requires both an attaining edge-simple path and a bound against all walks; no real infimum over a possibly empty family is used. The matching is a fixed-point-free involution on the odd nodes, extended by the identity elsewhere, and each pair contributes half of its two directed distance terms.

The goal assumes a connected graph and nonnegative edge lengths, exactly as the section does. The tour-only results require a nonempty node type because a list-based tour must have a starting node; without it an edgeless graph on no nodes would satisfy connectivity and even degree vacuously. The path-decomposition statement permits unused even-degree cycles. No independent set of “odd nodes” is accepted as input: it is computed from the degree of GGG.

The development needs finite multigraph incidence, edge-labelled walks, shortest paths, finite matchings, parity arithmetic, path uncrossing, and Euler tours. Proofs or useful intermediate results for these objects are welcome, including results applicable to multigraphs beyond the postman setting.

Selected references

  • Jack Edmonds and Ellis L. Johnson, Matching, Euler tours and the Chinese postman, Mathematical Programming 5 (1973), 88–124. DOI: 10.1007/BF01580113.
8 thms2 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimal Transport+1·Captain: mikedeng1

Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations II: Worst-Case Distributions from a Finite Convex ProgramResearch Paper

Motivation

In data-driven stochastic optimization a decision maker knows the distribution of an uncertain parameter ξ\xiξ only through NNN samples ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​. Wasserstein distributionally robust optimization hedges against this ignorance by evaluating a loss ℓ\ellℓ under the worst distribution in a ball, measured in the Wasserstein metric, around the empirical distribution of the samples. Mohajerin Esfahani and Kuhn (arXiv:1505.05116v3, published in Mathematical Programming 171, 2018) showed that for piecewise concave losses the worst-case expectation is the optimal value of a finite convex program (their Theorem 4.2), which made the approach computationally practical.

Knowing the worst-case value is often not enough. Stress tests of a candidate decision require the extremal distributions themselves: the distributions inside the ball that (nearly) achieve the worst case. Section 4.2 of the paper answers this question. Its Theorem 4.4 shows that the worst case is approached by discrete distributions with at most NKNKNK atoms, read off from near-optimal solutions of a second finite convex program, and its Example 2 shows that a worst-case distribution need not exist at all. This mission formalizes that section. The source is the arXiv preprint version 3 (13 June 2017); all numbering below refers to it.

Setting

Let EEE be a finite-dimensional real vector space with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥ (the paper's Rm\mathbb R^mRm), equipped with its Borel σ\sigmaσ-algebra. Linear functionals zzz on EEE act by ⟨z,ξ⟩\langle z,\xi\rangle⟨z,ξ⟩, and the dual norm is ∥z∥∗=sup⁡∥ξ∥≤1⟨z,ξ⟩\|z\|_* = \sup_{\|\xi\|\le 1}\langle z,\xi\rangle∥z∥∗​=sup∥ξ∥≤1​⟨z,ξ⟩. Extended reals R‾=[−∞,+∞]\overline{\mathbb R} = [-\infty,+\infty]R=[−∞,+∞] follow the paper's conventions 0⋅∞=0/0=00\cdot\infty = 0/0 = 00⋅∞=0/0=0 and ∞−∞=∞\infty - \infty = \infty∞−∞=∞.

  • Samples and empirical distribution. ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​ lie in a set Ξ⊆E\Xi\subseteq EΞ⊆E, and P^N=1N∑iδξ^i\widehat{\mathbb P}_N = \frac1N\sum_i\delta_{\hat\xi_i}PN​=N1​∑i​δξ^​i​​.
  • Wasserstein ball. dW(Q1,Q2)d_W(\mathbb Q_1,\mathbb Q_2)dW​(Q1​,Q2​) is the infimum of ∫∥ξ1−ξ2∥ Π(dξ1,dξ2)\int\|\xi_1-\xi_2\|\,\Pi(d\xi_1,d\xi_2)∫∥ξ1​−ξ2​∥Π(dξ1​,dξ2​) over couplings Π\PiΠ of Q1\mathbb Q_1Q1​ and Q2\mathbb Q_2Q2​, and Bε(P^N)\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Bε​(PN​) is the set of probability distributions supported on Ξ\XiΞ within distance ε\varepsilonε of P^N\widehat{\mathbb P}_NPN​.
  • Loss. ℓ(ξ)=max⁡k≤Kℓk(ξ)\ell(\xi) = \max_{k\le K}\ell_k(\xi)ℓ(ξ)=maxk≤K​ℓk​(ξ) for measurable pieces ℓk:E→R‾\ell_k : E\to\overline{\mathbb R}ℓk​:E→R, and EQ[ℓ(ξ)]=EQ[max⁡{ℓ,0}]+EQ[min⁡{ℓ,0}]\mathbb E^{\mathbb Q}[\ell(\xi)] = \mathbb E^{\mathbb Q}[\max\{\ell,0\}] + \mathbb E^{\mathbb Q}[\min\{\ell,0\}]EQ[ℓ(ξ)]=EQ[max{ℓ,0}]+EQ[min{ℓ,0}].
  • Worst-case expectation (10). sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)]\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)]supQ∈Bε​(PN​)​EQ[ℓ(ξ)].
  • Assumption 4.1. Ξ\XiΞ is convex and closed; every −ℓk-\ell_k−ℓk​ is proper, convex and lower semicontinuous; and no ℓk\ell_kℓk​ is identically −∞-\infty−∞ on Ξ\XiΞ.
  • Program (13). Over weights αik≥0\alpha_{ik}\ge 0αik​≥0 and displacements qik∈Eq_{ik}\in Eqik​∈E,
sup⁡αik,qik 1N∑i=1N∑k=1Kαik ℓk(ξ^i−qikαik)s.t.1N∑i,k∥qik∥≤ε,  ∑kαik=1,  ξ^i−qikαik∈Ξ.\sup_{\alpha_{ik},q_{ik}}\ \frac1N\sum_{i=1}^N\sum_{k=1}^K\alpha_{ik}\,\ell_k\Big(\hat\xi_i-\frac{q_{ik}}{\alpha_{ik}}\Big)\quad\text{s.t.}\quad\frac1N\sum_{i,k}\|q_{ik}\|\le\varepsilon,\ \ \sum_k\alpha_{ik}=1,\ \ \hat\xi_i-\frac{q_{ik}}{\alpha_{ik}}\in\Xi .αik​,qik​sup​ N1​i=1∑N​k=1∑K​αik​ℓk​(ξ^​i​−αik​qik​​)s.t.N1​i,k∑​∥qik​∥≤ε,  k∑​αik​=1,  ξ^​i​−αik​qik​​∈Ξ.

When αik=0\alpha_{ik}=0αik​=0 the last constraint forces qik=0q_{ik}=0qik​=0 and the ikikik-th objective term is 000.

  • Candidate distributions. Q=1N∑i,kαik δξik\mathbb Q = \frac1N\sum_{i,k}\alpha_{ik}\,\delta_{\xi_{ik}}Q=N1​∑i,k​αik​δξik​​ with ξik=ξ^i−qik/αik\xi_{ik} = \hat\xi_i - q_{ik}/\alpha_{ik}ξik​=ξ^​i​−qik​/αik​.

Formalization targets

Goal: Theorem 4.4 (worst-case distributions)

Under Assumption 4.1 and for every ε≥0\varepsilon\ge 0ε≥0,

sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)]=optimal value of (13),\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)] = \text{optimal value of (13)},Q∈Bε​(PN​)sup​EQ[ℓ(ξ)]=optimal value of (13),

and for every feasible sequence (αik(r),qik(r))r(\alpha_{ik}(r),q_{ik}(r))_r(αik​(r),qik​(r))r​ of (13) whose objective values converge to that optimal value, the distributions Qr\mathbb Q_rQr​ lie in Bε(P^N)\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Bε​(PN​) and

sup⁡Q∈Bε(P^N)EQ[ℓ(ξ)]=lim⁡r→∞EQr[ℓ(ξ)]=lim⁡r→∞1N∑i,kαik(r) ℓ(ξik(r)).\sup_{\mathbb Q\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)}\mathbb E^{\mathbb Q}[\ell(\xi)] = \lim_{r\to\infty}\mathbb E^{\mathbb Q_r}[\ell(\xi)] = \lim_{r\to\infty}\frac1N\sum_{i,k}\alpha_{ik}(r)\,\ell(\xi_{ik}(r)).Q∈Bε​(PN​)sup​EQ[ℓ(ξ)]=r→∞lim​EQr​[ℓ(ξ)]=r→∞lim​N1​i,k∑​αik​(r)ℓ(ξik​(r)).

The limits may be +∞+\infty+∞; no finiteness is assumed.

Milestones, in the order of the proof

The proof starts from (10) = (12f) (proof of Theorem 4.2, p. 13), which is posed in mission I of this series, Wasserstein Worst-Case Expectations as Finite Convex Programs, and is not restated here; it will be linked as a milestone once that mission is live.

  1. Lemma 4.5: inf⁡z⟨z,q−αξ^⟩+αf∗(z)\inf_z\langle z,q-\alpha\hat\xi\rangle+\alpha f^*(z)infz​⟨z,q−αξ^​⟩+αf∗(z) is the extended perspective of q↦−f(ξ^−q)q\mapsto -f(\hat\xi-q)q↦−f(ξ^​−q) for proper, convex, lower semicontinuous fff.
  2. (14d)–(14f): the ikikik-th dual term equals αℓk(ξ^−q/α)−χΞ(ξ^−q/α)\alpha\ell_k(\hat\xi-q/\alpha)-\chi_\Xi(\hat\xi-q/\alpha)αℓk​(ξ^​−q/α)−χΞ​(ξ^​−q/α) under the extended-arithmetic conventions.
  3. (12f) = (13), the first part of the proof of Theorem 4.4.
  4. Qr∈Bε(P^N)\mathbb Q_r\in\mathbb B_\varepsilon(\widehat{\mathbb P}_N)Qr​∈Bε​(PN​) for every feasible point of (13).
  5. EQr[ℓ(ξ)]\mathbb E^{\mathbb Q_r}[\ell(\xi)]EQr​[ℓ(ξ)] equals 1N∑i,kαikℓ(ξik)\frac1N\sum_{i,k}\alpha_{ik}\ell(\xi_{ik})N1​∑i,k​αik​ℓ(ξik​) and is at least the objective of (13) for every feasible point.

Companion results

Corollary 4.6: if Ξ\XiΞ is compact or K=1K=1K=1, the sequence has an accumulation point that defines a worst-case distribution. Example 2: for Ξ=R\Xi=\mathbb RΞ=R, N=1N=1N=1, ξ^1=0\hat\xi_1=0ξ^​1​=0, ℓ=max⁡{0,ξ−1}\ell=\max\{0,\xi-1\}ℓ=max{0,ξ−1}, the worst-case expectation is ε\varepsilonε and, for ε>0\varepsilon>0ε>0, is attained by no distribution in the ball.

Significance

Theorem 4.4 turns the abstract supremum over an infinite-dimensional ball of distributions into a finite-dimensional convex program whose near-optimal solutions are near-worst-case distributions. The atoms ξik\xi_{ik}ξik​ sit within total weighted distance ∑i,kαik∥ξik−ξ^i∥≤Nε\sum_{i,k}\alpha_{ik}\|\xi_{ik}-\hat\xi_i\|\le N\varepsilon∑i,k​αik​∥ξik​−ξ^​i​∥≤Nε of the data, and they may lie off the data, which distinguishes Wasserstein balls from ambiguity sets based on the total variation distance or the Kullback–Leibler divergence. Example 2 marks the boundary: the theorem cannot be upgraded to the existence of a maximizer in general, while Corollary 4.6 names two cases where it can.

The results are proved in the paper; to our knowledge none of them has a machine-checked proof. The formalization adds a precise account of the extended-arithmetic conventions the paper relies on (0⋅∞=00\cdot\infty=00⋅∞=0, q/0∉Eq/0\notin Eq/0∈/E, ∞−∞=∞\infty-\infty=\infty∞−∞=∞), each of which is made explicit in the definitions, and a reusable Lean treatment of extended-valued conjugates and perspective functions on a normed space with an arbitrary norm.

Difficulty

The first claim goes through Lagrangian duality for program (12f), whose constraints involve conjugates that may take the value +∞+\infty+∞; the strong duality and the minimax interchange (14c) must be justified for extended-valued convex functions, not just finite ones. Lemma 4.5 needs the Fenchel–Moreau theorem f∗∗=ff^{**}=ff∗∗=f for proper, convex, lower semicontinuous R‾\overline{\mathbb R}R-valued functions on a finite-dimensional normed space, together with its degenerate case α=0\alpha=0α=0. The second claim is a squeeze argument, but it rests on computing an extended expectation of an R‾\overline{\mathbb R}R-valued function under a discrete measure and on an explicit coupling for the Wasserstein distance. A tempting shortcut, attaining the supremum by a limit distribution, fails: Example 2 shows the maximizing atoms can escape to infinity.

Formalization scope

  • The space is a finite-dimensional real normed space E with [BorelSpace E]; the dual space is StrongDual ℝ E, and the dual norm is the operator norm. All values are in EReal.
  • The Wasserstein distance, the ball (6) and P^N\widehat{\mathbb P}_NPN​ are the published WassersteinDRO.Duality.wassersteinDistance, ambiguitySet (with p=1p=1p=1) and empiricalDistribution.
  • The extended expectation is the published DupacovaWets.Consistency.expect; it integrates the positive and negative parts separately and returns +∞+\infty+∞ when the positive part is infinite; there is no integrability guard, so a distribution with infinite expected loss pushes (10) to +∞+\infty+∞ as in the paper.
  • Program values are infima or suprema over feasibility predicates, so an empty feasible set gives ±∞\pm\infty±∞, never a junk 000. Program (13) encodes αik=0\alpha_{ik}=0αik​=0 by the clauses "qik=0q_{ik}=0qik​=0" and "objective term =0=0=0" (p. 14).
  • Standing assumptions carried as hypotheses: N≥1N\ge1N≥1, K≥1K\ge1K≥1, ξ^i∈Ξ\hat\xi_i\in\Xiξ^​i​∈Ξ (§2), measurability of each ℓk\ell_kℓk​ (p. 11).
  • A trivializing formalization is ruled out: dropping the clause αik=0⇒qik=0\alpha_{ik}=0\Rightarrow q_{ik}=0αik​=0⇒qik​=0 or the hypothesis ξ^i∈Ξ\hat\xi_i\in\Xiξ^​i​∈Ξ would change program (13) or make the ball empty, and both are kept explicitly.
  • The objects shared with mission I (extended expectation, worst-case expectation, conjugate, Assumption 4.1, program (12f)) are restated verbatim in this mission's namespace; they will be merged with mission I's copies. Contributions to the convex-analysis groundwork (extended-valued Fenchel–Moreau, perspective functions) are welcome and reusable beyond this mission.

Selected references

  • P. Mohajerin Esfahani and D. Kuhn, Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations, Mathematical Programming 171, 2018. Version formalized: arXiv:1505.05116v3.
  • D. P. Bertsekas, Convex Optimization Theory, Athena Scientific, 2009 (Propositions 1.6.1 and 5.5.4, used in the proofs).
  • R. T. Rockafellar and R. J.-B. Wets, Variational Analysis, Springer, 1998. https://doi.org/10.1007/978-3-642-02431-3
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
11 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimal TransportProbability+1·Captain: mikedeng1

Data-Driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations III: Asymptotic Consistency of Wasserstein Robust SolutionsResearch Paper

Motivation

Many decisions in operations research and machine learning minimize an expected cost EP[h(x,ξ)]\mathbb E^{P}[h(x,\xi)]EP[h(x,ξ)] whose distribution PPP is unknown and is seen only through NNN independent samples. The sample-average approximation replaces PPP by the empirical distribution and is known to produce decisions with poor out-of-sample performance when NNN is small. Distributionally robust optimization instead minimizes the worst-case expected cost over a set of distributions that are plausible given the data. Mohajerin Esfahani and Kuhn (arXiv:1505.05116v3, published in Mathematical Programming 171, 2018) take this set to be a ball in the Wasserstein metric around the empirical distribution, and show that such balls deliver both finite-sample certificates and asymptotic consistency. This mission formalizes the statistical half of that paper: Section 3 and Appendix A.

A data-driven method should, at a minimum, be consistent: as the sample grows, its optimal value and decisions should approach those of the true problem. For Wasserstein balls this requires a measure concentration inequality for empirical distributions in the Wasserstein metric, which was supplied by Fournier and Guillin (PTRF 2015). The paper combines that inequality with the Kantorovich–Rubinstein duality and the Borel–Cantelli lemma.

Setting

Let EEE be Rm\mathbb R^mRm with an arbitrary norm ∥⋅∥\|\cdot\|∥⋅∥ and its Borel σ\sigmaσ-algebra. A decision xxx ranges over a feasible set X⊆RnX\subseteq\mathbb R^nX⊆Rn; the random vector ξ\xiξ has distribution PPP, supported on the uncertainty set Ξ⊆E\Xi\subseteq EΞ⊆E; the loss is h:Rn×E→Rh:\mathbb R^n\times E\to\mathbb Rh:Rn×E→R. The true problem (1) has optimal value

J⋆=inf⁡x∈XEP[h(x,ξ)].J^\star=\inf_{x\in X}\mathbb E^P[h(x,\xi)].J⋆=x∈Xinf​EP[h(x,ξ)].

The Wasserstein distance between distributions Q1,Q2Q_1,Q_2Q1​,Q2​ with finite first moment is

dW(Q1,Q2)=inf⁡{∫∥ξ1−ξ2∥ Π(dξ1,dξ2): Π a coupling of Q1 and Q2}.d_W(Q_1,Q_2)=\inf\Big\{\int\|\xi_1-\xi_2\|\,\Pi(d\xi_1,d\xi_2):\ \Pi\text{ a coupling of }Q_1\text{ and }Q_2\Big\}.dW​(Q1​,Q2​)=inf{∫∥ξ1​−ξ2​∥Π(dξ1​,dξ2​): Π a coupling of Q1​ and Q2​}.

Given samples ξ^1,…,ξ^N\hat\xi_1,\dots,\hat\xi_Nξ^​1​,…,ξ^​N​ drawn independently from PPP (joint law PNP^NPN, and P∞P^\inftyP∞ for the infinite sequence), the empirical distribution is P^N=1N∑i=1Nδξ^i\widehat P_N=\frac1N\sum_{i=1}^N\delta_{\hat\xi_i}PN​=N1​∑i=1N​δξ^​i​​, and the Wasserstein ball Bε(P^N)\mathbb B_\varepsilon(\widehat P_N)Bε​(PN​) is the set of distributions QQQ on Ξ\XiΞ with dW(P^N,Q)≤εd_W(\widehat P_N,Q)\le\varepsilondW​(PN​,Q)≤ε. The distributionally robust program (5) has optimal value

J^N=inf⁡x∈X sup⁡Q∈Bε(P^N)EQ[h(x,ξ)],\widehat J_N=\inf_{x\in X}\ \sup_{Q\in\mathbb B_\varepsilon(\widehat P_N)}\mathbb E^Q[h(x,\xi)],JN​=x∈Xinf​ Q∈Bε​(PN​)sup​EQ[h(x,ξ)],

and an optimizer of it is written x^N\widehat x_NxN​.

The light-tail condition (Assumption 3.3) asks for an exponent a>1a>1a>1 with A=EP[exp⁡(∥ξ∥a)]<∞A=\mathbb E^P[\exp(\|\xi\|^a)]<\inftyA=EP[exp(∥ξ∥a)]<∞. Under it, and for m≠2m\ne2m=2, Theorem 3.4 (Fournier–Guillin) gives constants c1,c2>0c_1,c_2>0c1​,c2​>0 with

PN{dW(P,P^N)≥ε}≤{c1e−c2Nεmax⁡{m,2},ε≤1,c1e−c2Nεa,ε>1,(7)P^N\{d_W(P,\widehat P_N)\ge\varepsilon\}\le\begin{cases}c_1e^{-c_2N\varepsilon^{\max\{m,2\}}},&\varepsilon\le1,\\ c_1e^{-c_2N\varepsilon^{a}},&\varepsilon>1,\end{cases}\tag{7}PN{dW​(P,PN​)≥ε}≤{c1​e−c2​Nεmax{m,2},c1​e−c2​Nεa,​ε≤1,ε>1,​(7)

for all N≥1N\ge1N≥1, ε>0\varepsilon>0ε>0. Solving the right-hand side =β=\beta=β for ε\varepsilonε gives the radius

εN(β)=(log⁡(c1β−1)c2N)1/max⁡{m,2} if N≥log⁡(c1β−1)c2,(log⁡(c1β−1)c2N)1/a otherwise.(8)\varepsilon_N(\beta)=\Big(\frac{\log(c_1\beta^{-1})}{c_2N}\Big)^{1/\max\{m,2\}}\text{ if }N\ge\frac{\log(c_1\beta^{-1})}{c_2},\qquad\Big(\frac{\log(c_1\beta^{-1})}{c_2N}\Big)^{1/a}\text{ otherwise}.\tag{8}εN​(β)=(c2​Nlog(c1​β−1)​)1/max{m,2} if N≥c2​log(c1​β−1)​,(c2​Nlog(c1​β−1)​)1/a otherwise.(8)

Formalization targets

Goal: Theorem 3.6 (asymptotic consistency)

Let βN∈(0,1)\beta_N\in(0,1)βN​∈(0,1) with ∑NβN<∞\sum_N\beta_N<\infty∑N​βN​<∞ and εN(βN)→0\varepsilon_N(\beta_N)\to0εN​(βN​)→0, and use the radius εN(βN)\varepsilon_N(\beta_N)εN​(βN​) in (5).

(i) If h(x,⋅)h(x,\cdot)h(x,⋅) is upper semicontinuous on Ξ\XiΞ and ∣h(x,ξ)∣≤L(1+∥ξ∥)|h(x,\xi)|\le L(1+\|\xi\|)∣h(x,ξ)∣≤L(1+∥ξ∥) on X×ΞX\times\XiX×Ξ, then P∞P^\inftyP∞-almost surely

J^N≥J⋆ for all large NandJ^N→J⋆.\widehat J_N\ge J^\star\ \text{for all large }N\quad\text{and}\quad\widehat J_N\to J^\star.JN​≥J⋆ for all large NandJN​→J⋆.

(ii) If moreover XXX is closed and h(⋅,ξ)h(\cdot,\xi)h(⋅,ξ) is lower semicontinuous on XXX, then P∞P^\inftyP∞-almost surely every accumulation point of (x^N)(\widehat x_N)(xN​) is an optimal solution of (1).

Milestones

  1. Theorem 3.5 (finite sample guarantee). For fixed N≥1N\ge1N≥1 and β∈(0,1)\beta\in(0,1)β∈(0,1), with radius εN(β)\varepsilon_N(\beta)εN​(β),
PN{EP[h(x^N,ξ)]>J^N}≤β.P^N\big\{\mathbb E^P[h(\widehat x_N,\xi)]>\widehat J_N\big\}\le\beta.PN{EP[h(xN​,ξ)]>JN​}≤β.
  1. Lemma A.1. An upper semicontinuous hhh on Ξ\XiΞ with h(ξ)≤L(1+∥ξ∥)h(\xi)\le L(1+\|\xi\|)h(ξ)≤L(1+∥ξ∥) is the pointwise limit on Ξ\XiΞ of a non-increasing sequence of Lipschitz functions.
  2. Lemma 3.7 (convergence of distributions). Any data-dependent Q^N∈BεN(βN)(P^N)\widehat Q_N\in\mathbb B_{\varepsilon_N(\beta_N)}(\widehat P_N)Q​N​∈BεN​(βN​)​(PN​) satisfies
P∞{lim⁡N→∞dW(P,Q^N)=0}=1.P^\infty\Big\{\lim_{N\to\infty}d_W(P,\widehat Q_N)=0\Big\}=1.P∞{N→∞lim​dW​(P,Q​N​)=0}=1.

Theorem 3.2 (Kantorovich–Rubinstein duality, dW(Q1,Q2)=sup⁡{∫f dQ1−∫f dQ2: f 1-Lipschitz}d_W(Q_1,Q_2)=\sup\{\int f\,dQ_1-\int f\,dQ_2:\ f\ 1\text{-Lipschitz}\}dW​(Q1​,Q2​)=sup{∫fdQ1​−∫fdQ2​: f 1-Lipschitz}), which the proof of (i) uses, enters as a reference item: the open platform theorem WassersteinDRO.Duality.kantorovich_rubinstein, stated on the whole space for all Borel probability measures. It is not a milestone, because that statement is more general than the paper's version on M(Ξ)\mathcal M(\Xi)M(Ξ) (the two agree for distributions in M(Ξ)\mathcal M(\Xi)M(Ξ) by extending Lipschitz functions from Ξ\XiΞ to the whole space).

A companion item, Example 1 (1), records that upper semicontinuity cannot be dropped in (i): for Ξ=[0,1]\Xi=[0,1]Ξ=[0,1], P=δ0P=\delta_0P=δ0​ and h=1(0,1](ξ)h=\mathbb 1_{(0,1]}(\xi)h=1(0,1]​(ξ) one has J⋆=0J^\star=0J⋆=0 but J^N≥1\widehat J_N\ge1JN​≥1 for every radius ε>0\varepsilon>0ε>0.

Significance

Theorem 3.5 makes the robust optimal value an upper confidence bound on the out-of-sample cost of the robust decision. Theorem 3.6 shows that this protection does not cost consistency: with radii shrinking at a rate governed by summable confidence levels, such as βN=e−N\beta_N=e^{-\sqrt N}βN​=e−N​, both the certificate and the decisions converge to their true counterparts. Together they are the statistical justification for the Wasserstein ambiguity sets that the rest of the paper reformulates as finite convex programs, and they are cited as the reference consistency results for Wasserstein distributionally robust optimization.

All results here are proved in the paper. None of them, nor the Fournier–Guillin inequality, is formalized on Prove2Me or in Mathlib to our knowledge. The mission adds machine-checked versions of the finite-sample and consistency statements, a monotone Lipschitz approximation lemma for semicontinuous functions with linear growth (useful wherever Lipschitz duality has to be extended to semicontinuous integrands), and a convergence lemma for measures in shrinking Wasserstein balls.

Difficulty

The obvious argument for (i) bounds the worst-case expectation by the true expectation plus a Lipschitz constant times the radius. That fails, because hhh is only upper semicontinuous in ξ\xiξ, not Lipschitz, and has no Lipschitz constant to multiply. The expectations of a merely semicontinuous loss must be controlled uniformly over every distribution in the ball, including data-dependent worst-case distributions, and the almost-sure convergence of the empirical distribution alone does not give this. Example 1 of the paper shows that each regularity hypothesis is needed. On the formal side, the Wasserstein distance is an infimum over couplings on a Polish space; even its triangle inequality (gluing of couplings) and the Kantorovich–Rubinstein duality are substantial.

Formalization scope

EEE is a finite-dimensional real normed space with its Borel σ\sigmaσ-algebra (BorelSpace), and mmm is its dimension; decisions live in EuclideanSpace ℝ (Fin n). The definitions dWd_WdW​ (type p=1p=1p=1), P^N\widehat P_NPN​, Bε(P^N)\mathbb B_\varepsilon(\widehat P_N)Bε​(PN​), EQ\mathbb E^QEQ and the worst-case expectation are the published WassersteinDRO.Duality definitions. The optimal values J⋆J^\starJ⋆ and J^N\widehat J_NJN​ are extended reals. Standing conventions and pinned hypotheses:

  • "Supported on Ξ\XiΞ" is P(Ξc)=0P(\Xi^c)=0P(Ξc)=0; Ξ\XiΞ is neither closed nor convex in general. The samples lie in Ξ\XiΞ almost surely, and optimizers and ball selections are required only for samples in Ξ\XiΞ.
  • The constants c1,c2>0c_1,c_2>0c1​,c2​>0 enter as any constants for which (7) holds, which is how (8) is defined from Theorem 3.4. The theorem of Fournier and Guillin is not part of this mission, and m≠2m\ne2m=2 is assumed because (7) and (8) are printed only for m≠2m\ne2m=2.
  • The loss is real-valued. In Theorem 3.5 it is assumed PPP-integrable on XXX, because the worst-case expectation counts only distributions under which the loss is integrable. In Theorem 3.6 the linear growth bound makes this automatic.
  • Probabilities "at least 1−β1-\beta1−β" are stated as bounds on the outer measure of the failure event, and "P∞P^\inftyP∞-almost surely" as an almost-everywhere statement for the product measure on sequences.
  • The paper's "J^N↓J⋆\widehat J_N\downarrow J^\starJN​↓J⋆" is stated as eventual domination J^N≥J⋆\widehat J_N\ge J^\starJN​≥J⋆ plus convergence, which is what its proof establishes; monotonicity in NNN is not claimed.

A statement in which (7) could not hold for any constants would make the goal vacuous. The concentration inequality is satisfiable (for instance by a Dirac distribution with any constants), and εN(β)\varepsilon_N(\beta)εN​(β) is defined by the paper's formula, not chosen freely.

Welcome contributions: the triangle inequality and Kantorovich–Rubinstein duality for dWd_WdW​, the Borel–Cantelli step for product measures, Lemma A.1, and the Fatou argument of (ii).

Selected references

  • P. Mohajerin Esfahani and D. Kuhn, Data-driven distributionally robust optimization using the Wasserstein metric: performance guarantees and tractable reformulations, Mathematical Programming 171 (2018); source version arXiv:1505.05116v3. https://arxiv.org/abs/1505.05116v3
  • N. Fournier and A. Guillin, On the rate of convergence in Wasserstein distance of the empirical measure, Probability Theory and Related Fields 162 (2015). https://doi.org/10.1007/s00440-014-0583-7
  • L. V. Kantorovich and G. S. Rubinstein, On a space of totally additive functions, Vestnik Leningrad. Univ. 13 (1958).
  • C. Villani, Optimal Transport: Old and New, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
  • D. Bertsimas, V. Gupta and N. Kallus, Robust sample average approximation, Mathematical Programming 171 (2018). https://arxiv.org/abs/1408.4445
12 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Fibonacci Heaps and Their Uses in Improved Network Optimization Algorithms: O(log n) Amortized Time for Delete Min and Delete, O(1) for Every Other F-Heap OperationResearch Paper

Why priority queues with cheap decrease key matter

Many network optimization algorithms spend most of their time in a heap (priority queue): a set of items with real keys that supports inserting an item, finding and deleting an item of minimum key, melding two heaps, decreasing the key of an item, and deleting an arbitrary item. Dijkstra's shortest-path algorithm performs at most one delete min per vertex and may perform a decrease key for each edge, so on a graph with nnn vertices and mmm edges its running time is governed by how cheap decrease key is. Binomial queues support the heap operations in O(log⁡n)O(\log n)O(logn) worst-case time.

Fredman and Tarjan (J. ACM 34 (1987)) introduced Fibonacci heaps (F-heaps), in which delete min and delete take O(log⁡n)O(\log n)O(logn) amortized time and every other operation, decrease key included, takes O(1)O(1)O(1) amortized time. This brings Dijkstra's algorithm to O(nlog⁡n+m)O(n \log n + m)O(nlogn+m) and improves the best bounds then known for all-pairs shortest paths, weighted bipartite matching (the assignment problem) and minimum spanning trees. F-heaps descend from the binomial queues of Vuillemin (1978) and use the potential technique of amortized analysis of Sleator and Tarjan. This mission formalizes the paper's §2 analysis, culminating in THEOREM 1 on p. 604.

Setting

An F-heap is a list of heap-ordered rooted trees: every child's key is at least its parent's key. Each node holds an item, the item's real key and a mark bit; the children of a node are kept in the order in which they were linked to it, earliest first. The rank r(x)r(x)r(x) of a node is its number of children. A collection is a list of heaps, named by position; a run starts with no heaps.

Linking two trees with roots xxx and yyy makes yyy the last child of xxx if the key of xxx is smaller, and otherwise makes xxx the last child of yyy; the root that becomes a child is unmarked. The operations act as follows:

  • make heap adds an empty heap; find min acts on a nonempty heap and returns a root of minimum key; insert adds a one-node tree for a new item; meld concatenates two root lists.
  • delete min removes a root xxx of minimum key, adds the children of xxx to the roots, then repeats the linking step, "find any two trees whose roots have the same rank, and link them", in any order, until all root ranks are distinct.
  • decrease key (Δ,i,h)(\Delta, i, h)(Δ,i,h), Δ≥0\Delta \ge 0Δ≥0, lowers the key of iii and, if the node xxx of iii is not a root, cuts xxx from its parent, making its subtree a new tree. delete (i,h)(i, h)(i,h) cuts xxx the same way, destroys it and adds its children to the roots; a minimum root is deleted as in delete min.
  • After every cut of a child of ppp, if ppp is not a root it is marked if unmarked and cut from its own parent if marked: a cascading cut, which may repeat upwards.

The actual time of an operation is one unit, plus one per linking step, plus one per cut, plus for delete min the scan of the rank array (the largest rank involved). The potential Φ\PhiΦ of a collection is the number of trees plus twice the number of marked nonroot nodes, and the amortized time of an operation is its actual time plus the increase of Φ\PhiΦ.

Formalization targets

Goal: THEOREM 1 (p. 604)

There is an absolute constant C>0C > 0C>0 such that for every sequence of TTT operations started from no heaps, with ntn_tnt​ the number of items in the heap that operation ttt acts on, just before it acts,

∑t<Tcostt  ≤  ∑t<Tbt,bt={C(log⁡2nt+1)delete min or delete,Cotherwise.\sum_{t<T} \mathrm{cost}_t \;\le\; \sum_{t<T} b_t, \qquad b_t = \begin{cases} C(\log_2 n_t + 1) & \text{delete min or delete},\\ C & \text{otherwise.}\end{cases}t<T∑​costt​≤t<T∑​bt​,bt​={C(log2​nt​+1)C​delete min or delete,otherwise.​

The paper's wording is "the total time is at most the total amortized time, where the amortized time is O(log⁡n)O(\log n)O(logn) for each delete min or delete operation and O(1)O(1)O(1) for each of the other operations"; the goal pins the O(⋅)O(\cdot)O(⋅) to one constant and does not name the potential.

Milestones

  1. LEMMA 1: the iiith child of a node, in linking order, has rank at least i−2i - 2i−2.
  2. Fk+2≥φkF_{k+2} \ge \varphi^kFk+2​≥φk, with FkF_kFk​ the Fibonacci numbers and φ=(1+5)/2\varphi = (1+\sqrt5)/2φ=(1+5​)/2.
  3. COROLLARY 1: a node of rank kkk has at least Fk+2≥φkF_{k+2} \ge \varphi^kFk+2​≥φk descendants, itself included.
  4. A node of rank kkk in an nnn-item heap has φk≤n\varphi^k \le nφk≤n, hence k≤log⁡n/log⁡φk \le \log n / \log\varphik≤logn/logφ.
  5. make heap, find min and meld leave Φ\PhiΦ unchanged; insert raises it by one.
  6. delete min raises Φ\PhiΦ by at most log⁡n/log⁡φ\log n / \log \varphilogn/logφ minus the number of linking steps.
  7. decrease key raises Φ\PhiΦ by at most three minus the number of cascading cuts.
  8. From no heaps, the total amortized time bounds the total actual time.

Significance

THEOREM 1 is the data-structure fact behind the paper's algorithmic results: Dijkstra's algorithm in O(nlog⁡n+m)O(n\log n + m)O(nlogn+m), all-pairs shortest paths and the assignment problem in O(n2log⁡n+nm)O(n^2 \log n + nm)O(n2logn+nm), and minimum spanning trees in O(m β(m,n))O(m\,\beta(m,n))O(mβ(m,n)).

The result has been proved since 1987. What the mission adds is a machine-checked version of the paper's own analysis on an operational model with arbitrary linking order, unmarking on link, marking or cascading on every cut, and the paper's unit costs. The proposal states the theorem and its supporting claims; their proofs remain to be formalized.

Difficulty

The obvious argument, that every tree is a binomial tree and so every rank is at most log⁡2n\log_2 nlog2​n, fails as soon as cuts are allowed: decrease key and delete remove subtrees arbitrarily, and the trees of an F-heap need not be binomial. The rank bound has to come from an invariant of the whole history (LEMMA 1), which only holds because a node loses at most one child before it is cut itself; without cascading cuts a node of rank kkk can be left with only k+1k+1k+1 descendants, and no logarithmic rank bound holds. A second difficulty is that the actual cost of one decrease key is unbounded, since a single operation may trigger arbitrarily many cascading cuts; a per-operation worst-case argument cannot give THEOREM 1, and the bound holds only for whole sequences started from no heaps.

Formalization scope

All declarations sit in the namespace FibHeap.Amort. Trees are a nested inductive FTree with item ℕ, key ℝ, a mark bit and a list of children in linking order; a heap is List FTree (its roots) and a collection is List Heap. Operations are a step relation Step s op s' d whose data d records linking steps, cuts, cascading cuts and the scan, so that cost d = 1 + links + cuts + scan is determined by what the operation did. The linking loop allows every order of linking; a link tie makes the first root a child of the second, while delete min may choose any minimum-key root. Runs start from no heaps; reachable collections consist of heap-ordered trees with each item in at most one heap. LEMMA 1, COROLLARY 1 and the delete-min bound are stated for reachable collections only, as the paper's "a node in an F-heap" intends. The paper's standing assumption that an item is in only one heap at a time is enforced by the precondition of insert and is not a hypothesis. The minimum pointer and returned items are not stored in the step relation; find min is a state-preserving step charged one unit. A heap destroyed by meld remains as an empty heap at its index.

Logarithms in the goal are base 2 (footnote 1, p. 600), with a +1+1+1 so that one-item heaps have positive budget. The paper's constant "≤1.4404log⁡n\le 1.4404 \log n≤1.4404logn" on p. 604 is a rounding slip (1/log⁡2φ=1.44042…1/\log_2 \varphi = 1.44042\ldots1/log2​φ=1.44042…); milestones use the exact log⁡φn\log_\varphi nlogφ​n.

The goal is not trivialized: the cost counts every linking step and every cut as fixed by the step relation, CCC is quantified before the run, and a companion theorem (step_exists) shows that every valid operation can be performed, so runs containing delete min, decrease key and cascading cuts exist. A further supporting statement gives an explicit form of the delete potential bound. A complete development needs facts about the nested inductive (sizes, subtree lists, marked counts under list edits), an invariant for LEMMA 1 recording when each child was linked, and the Fibonacci inequality; contributions of any of these as separate lemmas are welcome.

Selected references

  • M. L. Fredman and R. E. Tarjan, Fibonacci heaps and their uses in improved network optimization algorithms, J. ACM 34(3):596–615, 1987. https://doi.org/10.1145/28869.28874
  • J. Vuillemin, A data structure for manipulating priority queues, Comm. ACM 21(4):309–315, 1978. https://doi.org/10.1145/359460.359478
  • R. E. Tarjan, Amortized computational complexity, SIAM J. Algebraic Discrete Methods 6(2):306–318, 1985. https://doi.org/10.1137/0606031
  • E. W. Dijkstra, A note on two problems in connexion with graphs, Numer. Math. 1:269–271, 1959. https://doi.org/10.1007/BF01386390
10 thms2 active usersReviewed
🏆Completed
Graph TheoryOperations ResearchProbability·Captain: mikedeng1

Expected Critical Path Lengths in PERT Networks: With Bundle-Independent Arc Lengths, the Mean-Length Estimate g, Fulkerson's Recursion f and the Expected Critical Path Length e Satisfy g ≤ f ≤ eResearch Paper

Motivation

PERT (Program Evaluation and Review Technique) and the critical path method model a project as a directed acyclic network whose arcs are jobs and whose nodes are events; the duration of the project is the length of a longest path from the origin to the terminal. When job durations are random, the quantity a planner wants is the expected duration. Computing it exactly requires solving one longest-path problem for every joint outcome of the job durations: with mmm jobs each taking two values, 2m2^m2m deterministic problems. Classical PERT practice replaced every random duration by its mean and reported the longest path for the mean durations. That figure is known to be optimistically biased.

D. R. Fulkerson, Expected Critical Path Lengths in PERT Networks (RAND Memorandum RM-3075-PR, 1962; Operations Research 10(6):808–817, 1962, doi:10.1287/opre.10.6.808), proposed a second estimate, computed node by node with work exponential only in the size of a single node's bundle of incoming arcs, and proved that it lies between the classical mean-length figure and the true expectation.

Setting

A project network has events 0,1,…,n0,1,\dots,n0,1,…,n with n≥1n\ge1n≥1, origin 000 and terminal nnn. Its arcs are ordered pairs (i,j)(i,j)(i,j) with i<ji<ji<j, at most one per pair, and every event lies on a directed path from the origin to the terminal. Fulkerson numbers his nodes 1,…,n1,\dots,n1,…,n; his node iii is event i−1i-1i−1 here. The bundle BjB_jBj​ of an event jjj is the set of arcs entering jjj, and pred⁡(j)\operatorname{pred}(j)pred(j) the set of their tails; the origin's bundle is empty.

For arc lengths ttt, let ℓi(t)\ell_i(t)ℓi​(t) be the length of a longest (critical) path from the origin to iii; equivalently ℓ0=0\ell_0=0ℓ0​=0 and ℓj=max⁡i∈pred⁡(j)(ℓi+tij)\ell_j=\max_{i\in\operatorname{pred}(j)}(\ell_i+t_{ij})ℓj​=maxi∈pred(j)​(ℓi​+tij​).

The lengths of the arcs of each bundle BjB_jBj​ form a random vector with a finite distribution: a finite set SjS_jSj​ of bundle vectors vvv, where viv_ivi​ is the length of arc (i,j)(i,j)(i,j), with probabilities pj(v)≥0p_j(v)\ge 0pj​(v)≥0 summing to 111. Arcs within a bundle may be correlated; distinct bundles are independent, so an assignment ω=(ωj)j\omega=(\omega_j)_jω=(ωj​)j​ of one bundle vector per event has probability p(ω)=∏jpj(ωj)p(\omega)=\prod_j p_j(\omega_j)p(ω)=∏j​pj​(ωj​). Three numbers are attached to each event iii:

  1. the expected critical path length ei=∑ωp(ω) ℓi(t(ω))e_i=\sum_\omega p(\omega)\,\ell_i(t(\omega))ei​=∑ω​p(ω)ℓi​(t(ω));
  2. the mean-length estimate gi=ℓi(tˉ)g_i=\ell_i(\bar t)gi​=ℓi​(tˉ), where tˉij=∑v∈Sjpj(v) vi\bar t_{ij}=\sum_{v\in S_j}p_j(v)\,v_itˉij​=∑v∈Sj​​pj​(v)vi​ is the expected length of arc (i,j)(i,j)(i,j);
  3. Fulkerson's numbers f0=0f_0=0f0​=0 and, for j≠0j\neq0j=0,
fj=∑v∈Sjpj(v) max⁡i∈pred⁡(j)(fi+vi).f_j=\sum_{v\in S_j}p_j(v)\,\max_{i\in\operatorname{pred}(j)}\bigl(f_i+v_i\bigr).fj​=v∈Sj​∑​pj​(v)i∈pred(j)max​(fi​+vi​).

Formalization targets

Goal: (4.4)

gi  ≤  fi  ≤  eifor every event i.g_i\;\le\;f_i\;\le\;e_i\qquad\text{for every event } i .gi​≤fi​≤ei​for every event i.

Milestones

In the order of Fulkerson's induction (pp. 10–12):

  1. the recursion for ℓ\ellℓ computes the greatest path length (§3, (3.6), and the display on p. 11);
  2. ℓi(t)\ell_i(t)ℓi​(t) depends only on the arcs of the bundles B0,…,BiB_0,\dots,B_iB0​,…,Bi​ (p. 6);
  3. (4.8): max⁡i∈pred⁡(j)(fi+tˉij)≤fj\max_{i\in\operatorname{pred}(j)}(f_i+\bar t_{ij})\le f_jmaxi∈pred(j)​(fi​+tˉij​)≤fj​;
  4. (4.5)/(4.9): if gk≤fkg_k\le f_kgk​≤fk​ for all k<jk<jk<j, then gj≤fjg_j\le f_jgj​≤fj​;
  5. (4.13): ∑v∈Sjpj(v)max⁡i∈pred⁡(j)(ei+vi)≤ej\sum_{v\in S_j}p_j(v)\max_{i\in\operatorname{pred}(j)}(e_i+v_i)\le e_j∑v∈Sj​​pj​(v)maxi∈pred(j)​(ei​+vi​)≤ej​;
  6. (4.10)/(4.14): if fk≤ekf_k\le e_kfk​≤ek​ for all k<jk<jk<j, then fj≤ejf_j\le e_jfj​≤ej​.

Companion statements

  • gi≤eig_i\le e_igi​≤ei​ under an arbitrary joint distribution of all arc lengths (remark, p. 12).
  • Fig. 4.2: with correlated bundles, e3=g3=1e_3=g_3=1e3​=g3​=1 but f3=5/4f_3=5/4f3​=5/4, so (4.4) fails without bundle independence.
  • (4.17): an independent example with g3=f3=1<e3=5/4g_3=f_3=1<e_3=5/4g3​=f3​=1<e3​=5/4.
  • Fig. 4.1: explicit values g4=3/2g_4=3/2g4​=3/2, f2=1/2f_2=1/2f2​=1/2, f3=9/8f_3=9/8f3​=9/8, f4=55/32f_4=55/32f4​=55/32, and fi=eif_i=e_ifi​=ei​.

Significance

The chain (4.4) says that the classical PERT estimate ggg never overstates the expected project duration, and that the numbers fff are a lower bound at least as tight. The fff computation visits each node once and sums over the support of that node's bundle only, so its cost grows exponentially with bundle size rather than with network size, while the exact expectation eee requires the whole product space. The Fig. 4.2 example shows that the bundle-independence hypothesis cannot be dropped for the upper inequality, while the lower inequality g≤eg\le eg≤e survives arbitrary dependence.

The result has a complete published proof. This mission seeks a machine-checked proof of (4.4) for finite distributions, with the longest-path characterisation of the earliest-event-time recursion and the locality of critical path lengths as reusable lemmas, and machine-checkable versions of the paper's numerical examples, including the counterexample showing the role of independence.

Difficulty

The left inequality compares an average of maxima with a maximum of averages. The right inequality requires more: fjf_jfj​ averages over the bundle entering jjj, while eje_jej​ averages over assignments to every bundle. Taking expectations in ℓj=max⁡i(ℓi+tij)\ell_j=\max_i(\ell_i+t_{ij})ℓj​=maxi​(ℓi​+tij​) yields ej≥max⁡i(ei+tˉij)e_j\ge\max_i(e_i+\bar t_{ij})ej​≥maxi​(ei​+tˉij​), which gives the weaker bound g≤eg\le eg≤e. Fig. 4.2 shows that f≤ef\le ef≤e can fail when the bundles are dependent. In Lean, eee is a sum over a dependent product of finite supports (Fintype.piFinset); its interaction with the local recurrence for fff is the central technical difficulty.

Formalization scope

  • Network: the published CriticalPath.Events.ProjectNetwork (Kelley–Walker 1959): events Fin (n + 1), arcs a Finset of ordered pairs with strictly increasing labels, origin preceding and terminal following every event. This requires n≥1n\ge1n≥1. Fulkerson's numbering condition "i≤ji\le ji≤j" on p. 3 is read as the strict i<ji<ji<j (arcs join distinct nodes of an acyclic network). There is one arc per ordered pair, Fulkerson's own convention in (3.13).
  • Critical path length: the published CriticalPath.Events.earliest, a recursion with Finset.sup' over the nonempty set of incoming arcs. This is the paper's convention that terms of missing arcs are ignored. Nothing uses a default value of 000 or −∞-\infty−∞.
  • Distributions: finite, given as data (a support Finset and a weight function per bundle) plus a predicate IsProb (nonnegative weights on the support, summing to 111, for every event including the origin). Bundle vectors are functions on all events, and coordinates outside pred⁡(j)\operatorname{pred}(j)pred(j) are never read.
  • Arc lengths are arbitrary reals. §3 assumes nonnegative lengths, but its footnote on p. 4 states that nonnegativity "is not essential in this or the following section"; the statements are given in this more general form.
  • No trivialization: eie_iei​ is the sum over every assignment of bundle vectors, weighted by the product probability (3.5). It is not defined by a recursion, and the goal assumes none of the milestones. fff at node jjj uses only the distribution of the bundle of jjj.

Infrastructure that a full development needs, and that is reusable elsewhere, includes the longest-path characterisation of the earliest-event-time recursion, the locality lemma, and the factorisation of sums over Fintype.piFinset along one coordinate. Proofs of any milestone or companion are welcome. Out of scope here: §5 (computational examples) and the general-network analogues of §6.

Selected references

  • D. R. Fulkerson, Expected Critical Path Lengths in PERT Networks, RAND Memorandum RM-3075-PR, March 1962; published in Operations Research 10(6):808–817, 1962. doi:10.1287/opre.10.6.808
  • J. E. Kelley Jr. and M. R. Walker, Critical-Path Planning and Scheduling, Proceedings of the Eastern Joint Computer Conference, 1959, pp. 160–173. doi:10.1145/1460299.1460318
  • D. G. Malcolm, J. H. Roseboom, C. E. Clark and W. Fazar, Application of a Technique for Research and Development Program Evaluation, Operations Research 7(5):646–669, 1959. doi:10.1287/opre.7.5.646
11 thms2 active usersReviewed
🏆Completed
Graph TheoryLinear OptimizationOperations Research·Captain: mikedeng1

A Suggested Computation for Maximal Multi-Commodity Network Flows: With Nonnegative Simplex Multipliers, Shortest-Chain Labels Prove the Arc-Chain Basis Optimal or Find an Entering ChainResearch Paper

Motivation

The maximal multi-commodity flow problem asks how much total flow several commodities, each travelling from its own sources to its own sinks, can send through a network whose arcs have shared capacities. It arises in communication and transportation planning: Kalaba and Juncosa's 1956 study of communication networks (Management Science 3(1)) leads to linear programs of this form. For a single commodity the problem has a clean combinatorial theory: the max-flow min-cut theorem of Ford and Fulkerson (1956, doi:10.4153/CJM-1956-045-5) and the labeling algorithm. With several commodities both fail: the min-cut equality is false, and simplex bases are no longer triangular.

In a short note received in October 1957 and published in Management Science in 1958, L. R. Ford Jr. and D. R. Fulkerson proposed a way to solve the multi-commodity problem with the simplex method anyway (doi:10.1287/mnsc.1040.0269, reprinted 2004). They use the arc-chain formulation, which has one variable per chain from a source to a sink of a commodity. That formulation has far too many variables to write down. The note's point is that the simplex method never needs them explicitly. The "pricing" step (finding a variable to enter the basis, or recognizing that none exists) can be carried out by one shortest-chain computation per commodity, with the simplex multipliers as arc lengths.

Timeline. Ford (1956, RAND P-923) gave the label-correcting shortest-chain procedure the note uses. Ford and Fulkerson (1958) applied it to price the columns of the arc-chain program. Dantzig and Wolfe (1960) generalized the idea into the decomposition principle. Gilmore and Gomory (1961) applied the same pattern to the cutting-stock problem, and it is now called column generation.

Setting

A network has finitely many nodes P1,…,PNP_1,\dots,P_NP1​,…,PN​ and arcs A1,…,AmA_1,\dots,A_mA1​,…,Am​. Each arc ArA_rAr​ joins two nodes, has a capacity brb_rbr​, and is either directed (traversable one way only) or undirected (traversable both ways). There are finitely many commodities; commodity kkk has a set of sources SkS_kSk​ and a set of sinks TkT_kTk​.

A chain from uuu to www is the arc set of a path u=v0,v1,…,vp=wu = v_0, v_1, \dots, v_p = wu=v0​,v1​,…,vp​=w with distinct nodes, each arc traversable from vi−1v_{i-1}vi−1​ to viv_ivi​. A commodity chain of kkk is a chain from a node of SkS_kSk​ to a node of TkT_kTk​. List the commodity chains, for all commodities, as C1,…,CnC_1,\dots,C_nC1​,…,Cn​, and let A=(ars)A = (a_{rs})A=(ars​) be the incidence matrix: ars=1a_{rs} = 1ars​=1 if CsC_sCs​ contains ArA_rAr​ and 000 otherwise. With xsx_sxs​ the flow along CsC_sCs​ and xn+rx_{n+r}xn+r​ the slack of arc ArA_rAr​, the problem is the linear program

maximize ∑s=1nxssubject to∑s=1narsxs+xn+r=br,x1,…,xn+m≥0.(2–3)\text{maximize } \sum_{s=1}^{n} x_s \quad\text{subject to}\quad \sum_{s=1}^{n} a_{rs}x_s + x_{n+r} = b_r,\qquad x_1,\dots,x_{n+m} \ge 0. \tag{2–3}maximize s=1∑n​xs​subject tos=1∑n​ars​xs​+xn+r​=br​,x1​,…,xn+m​≥0.(2–3)

A basis is a set of mmm columns of [A∣I][A \mid I][A∣I] forming an invertible matrix B=(brj)B = (b_{rj})B=(brj​). Its simplex multipliers α1,…,αm\alpha_1,\dots,\alpha_mα1​,…,αm​ satisfy, for every basic column jjj,

∑r=1mαrbrj={1j≤n,0j>n.(4)\sum_{r=1}^{m} \alpha_r b_{rj} = \begin{cases} 1 & j \le n,\\ 0 & j > n.\end{cases} \tag{4}r=1∑m​αr​brj​={10​j≤n,j>n.​(4)

Read as arc lengths, the αr\alpha_rαr​ give each chain CsC_sCs​ the length ∑rαrars\sum_r \alpha_r a_{rs}∑r​αr​ars​. The labeling process for a source set SSS starts with labels πi=0\pi_i = 0πi​=0 on SSS and πi=∞\pi_i = \inftyπi​=∞ elsewhere. It repeatedly finds an arc traversable from PiP_iPi​ to PjP_jPj​ with πi+lij<πj\pi_i + l_{ij} < \pi_jπi​+lij​<πj​ and replaces πj\pi_jπj​ by πi+lij\pi_i + l_{ij}πi​+lij​. In Lean the labels are lab : V → WithTop ℝ, the multipliers are α : E → ℝ, and all objects live in the namespace FordFulkerson58.ArcChain.

Formalization targets

Goal: the shortest-chain pricing test (§3, pp. 1779–1780)

Let BBB be a basis with basic feasible solution zzz and multipliers α≥0\alpha \ge 0α≥0. Then:

(a) for every commodity, every run of the labeling process with lengths α is finite;(b) if all final sink labels are ≥1, then ∑sxs≤∑szs for every feasible x;(c) if a final sink label πt<1, some non-basic chain column to t has length πt and 1−∑rαrars>0.\begin{aligned} &\text{(a) for every commodity, every run of the labeling process with lengths } \alpha \text{ is finite;}\\ &\text{(b) if all final sink labels are } \ge 1, \text{ then } \textstyle\sum_s x_s \le \sum_s z_s \text{ for every feasible } x;\\ &\text{(c) if a final sink label } \pi_t < 1, \text{ some non-basic chain column to } t \text{ has length } \pi_t \text{ and } 1 - \textstyle\sum_r \alpha_r a_{rs} > 0. \end{aligned}​(a) for every commodity, every run of the labeling process with lengths α is finite;(b) if all final sink labels are ≥1, then ∑s​xs​≤∑s​zs​ for every feasible x;(c) if a final sink label πt​<1, some non-basic chain column to t has length πt​ and 1−∑r​αr​ars​>0.​

Milestones (§3, the labeling process and the test)

  1. Termination of the labeling process for non-negative lengths (p. 1780).
  2. Final labels are shortest-chain lengths from SSS; the smallest label on TTT is the SSS-to-TTT distance (p. 1780).
  3. The trace-back: a chain of tight arcs from SSS to every labeled node, of length its label (p. 1780).
  4. If α≥0\alpha \ge 0α≥0 and every commodity chain has length ≥1\ge 1≥1, the basis is optimal (p. 1779).

Further items state the remarks of §3–§4: a negative multiplier lets a slack enter; the slack basis is a feasible start; dominated chains can be ignored; limited supplies reduce to the same problem by adding new directed source arcs; Figure 2 is the incidence matrix of Figure 1; with negative lengths the labeling process may not terminate.

Significance

The result. The test turns a linear program with exponentially many columns into one whose pricing step costs one shortest-path computation per commodity. Only the m×mm \times mm×m basis is ever stored. This is the first instance of column generation, which now underlies solvers for multi-commodity flow, cutting stock, vehicle routing, crew scheduling and many other set-partitioning models, typically inside branch-and-price. Part (a) together with milestones 2–3 also gives the correctness of Ford's label-correcting algorithm with non-negative lengths, started from a source set and with any order of arc scans.

Formalizing it. The results are classical and proved in the paper's informal style. None of them is formalized: the platform has no arc-chain LP, no column pricing, and no formal statement of Ford's label-correcting process. The general LP facts are on the platform (the simplex optimality criterion and weak duality, both proved) and are included as references. This mission adds the network-specific layer: chains as arc sets of simple paths, the labeling process as a relation on labelings, and the link from final labels to reduced costs. One sentence of the paper is corrected. The trace-back "eventually" reaches SSS only along some backward path, because zero-length cycles can trap a naive backward search, and milestone 3 states the true version.

Difficulty

The obvious argument for termination says each step lowers a label and there are finitely many chains. It fails: labels are lengths of walks, not chains, and with zero-length arcs (multipliers are often 000) there are infinitely many walks. Termination needs the finiteness of the set of walk lengths below a bound, not positivity. The correctness of the final labels needs both properties of the labeling: it is produced by the process (so every label is the length of a walk from SSS), and it is terminal. A terminal labeling alone, such as all labels 000, is not a distance labeling. Finally, the optimality claim is an LP statement about the full, never-enumerated column set. It must be derived from (4), α≥0\alpha \ge 0α≥0 and the shortest-chain lengths, with the chain columns indexed abstractly.

Formalization scope

Nodes, arcs and commodities are finite types V, E, ι. Each arc has tail, head, a per-arc directed flag and a capacity b : E → ℝ; commodities have src snk : ι → Finset V. Parallel arcs and mixed directed/undirected networks are allowed. No sign of the capacities and no disjointness of sources and sinks is assumed, except 0 ≤ b in the zero-flow item, where it is disclosed. Chains are arc sets of simple paths. The null chain at a source is a chain, so sources have distance 000. Columns are pairs (commodity, chain), so one arc set used by two commodities gives two columns. The columns of [A∣I][A \mid I][A∣I] are indexed by Col N ⊕ E. A basis is β : E → Col N ⊕ E with IsUnit (basisMatrix N β).det; its basic feasible solution and multipliers (4) are hypotheses about this β. Labels are in WithTop ℝ with ⊤ for ∞\infty∞. Shortest-chain lengths are finite infima (Finset.inf), equal to ⊤ when there is no chain. The process scans arcs, not node pairs, which handles parallel arcs and the undirected case lij=ljil_{ij} = l_{ji}lij​=lji​.

The standing assumption of §3 ("a stage has been reached in the computation where all αr\alpha_rαr​ are non-negative", p. 1779) is a hypothesis of the goal and of milestones 1–4. Milestones 1–3 are stated for any non-negative length function. The paper has no numbered theorems; every milestone is an unnumbered sentence of §3, cited by page and position.

A trivializing formalization is ruled out: the goal does not assume shortest-chain lengths, the trace-back, or any reduced-cost fact beyond (4). Statements about final labels require labelings that are both reachable from the initial labels and terminal, and part (a) shows such labelings exist.

Reusable beyond this mission: the chain and labeling layer (a label-correcting shortest-path algorithm from a source set over mixed networks) and the arc-chain LP. Contributions to the LP layer, which can import the referenced Matoušek–Gärtner results after reindexing, are particularly welcome.

Selected references

  • L. R. Ford Jr., D. R. Fulkerson, A suggested computation for maximal multi-commodity network flows, Management Science 5(1):97–101, 1958; reprinted Management Science 50(12S):1778–1780, 2004. https://doi.org/10.1287/mnsc.1040.0269
  • L. R. Ford Jr., D. R. Fulkerson, Maximal flow through a network, Canadian Journal of Mathematics 8:399–404, 1956. https://doi.org/10.4153/CJM-1956-045-5
  • L. R. Ford Jr., Network Flow Theory, RAND Corporation Paper P-923, 1956. https://www.rand.org/pubs/papers/P923.html
  • G. B. Dantzig, P. Wolfe, Decomposition principle for linear programs, Operations Research 8(1):101–111, 1960. https://doi.org/10.1287/opre.8.1.101
  • P. C. Gilmore, R. E. Gomory, A linear programming approach to the cutting-stock problem, Operations Research 9(6):849–859, 1961. https://doi.org/10.1287/opre.9.6.849
  • J. Matoušek, B. Gärtner, Understanding and Using Linear Programming, Springer, 2007. https://doi.org/10.1007/978-3-540-30717-4
12 thms3 active usersReviewed
🏆Completed
Operations ResearchProbabilityStatistics·Captain: mikedeng1

Residual Life Time at Great Age 4: α₁ ≤ tF′(t)/(1 − F(t)) ≤ α₂ for t ≥ t₀ Sandwiches P{(X − t)/t ≤ x | X > t} Between Γ_{α₁}(x) and Γ_{α₂}(x)Research Paper

Motivation

The residual life time of a lifetime XXX at age ttt is the remaining life X−tX - tX−t given survival past ttt. Its distribution at great age is a basic object in reliability, insurance and the statistics of extremes: excess-of-loss reinsurance prices the part of a claim above a retention level, and peaks-over-threshold methods fit a model to the observations exceeding a high level. Balkema and de Haan (Residual Life Time at Great Age, Ann. Probab. 2 (1974), 792–804, doi:10.1214/aop/1176996548) determined every possible limit law of the suitably normed residual life time as t→∞t \to \inftyt→∞ and the domains of attraction of these laws; Pickands (1975) obtained the continuous part of the same picture, which is the probabilistic basis of the generalized Pareto approximation used in practice.

Limit theorems describe the behaviour only as t→∞t \to \inftyt→∞. Section 4 of the paper gives approximation results for finite ttt. In extreme-value theory, von Mises (1936) gave a sufficient condition for attraction to the Fréchet law Φα\Phi_\alphaΦα​: tF′(t)/(1−F(t))→αtF'(t)/(1 - F(t)) \to \alphatF′(t)/(1−F(t))→α. Theorem 6 of the paper is a non-asymptotic, two-sided counterpart for the residual life time: two-sided bounds on the scaled hazard rate give two-sided bounds on the residual life distribution at every age past a threshold. This mission formalizes Theorem 6 (p. 801).

Setting

Let XXX be a real random variable with law μ\muμ and distribution function F(x)=P{X≤x}F(x) = P\{X \le x\}F(x)=P{X≤x}. For an age ttt with P{X>t}>0P\{X > t\} > 0P{X>t}>0, the residual life distribution function is

Ft(x)=P{X−t≤x∣X>t}=μ((t,t+x])μ((t,∞)),x∈R,F_t(x) = P\{X - t \le x \mid X > t\} = \frac{\mu((t, t + x])}{\mu((t, \infty))}, \qquad x \in \mathbb R,Ft​(x)=P{X−t≤x∣X>t}=μ((t,∞))μ((t,t+x])​,x∈R,

which is 000 for x<0x < 0x<0. For t>0t > 0t>0 the residual life scaled by the age has distribution function P{(X−t)/t≤x∣X>t}=Ft(xt)P\{(X - t)/t \le x \mid X > t\} = F_t(xt)P{(X−t)/t≤x∣X>t}=Ft​(xt).

For α>0\alpha > 0α>0 the Pareto-type law Γα\Gamma_\alphaΓα​ is

Γα(x)=1−(1+x)−α(x≥0),Γα(x)=0(x<0).\Gamma_\alpha(x) = 1 - (1 + x)^{-\alpha} \quad (x \ge 0), \qquad \Gamma_\alpha(x) = 0 \quad (x < 0).Γα​(x)=1−(1+x)−α(x≥0),Γα​(x)=0(x<0).

It is the law of Y−1Y - 1Y−1 when P{Y>y}=y−αP\{Y > y\} = y^{-\alpha}P{Y>y}=y−α for y≥1y \ge 1y≥1. FFF has a positive density F′F'F′ for t≥t0t \ge t_0t≥t0​ if FFF is differentiable at every t≥t0t \ge t_0t≥t0​ with derivative F′(t)>0F'(t) > 0F′(t)>0. The quantity F′(t)/(1−F(t))F'(t)/(1 - F(t))F′(t)/(1−F(t)) is the hazard rate of XXX at ttt, and tF′(t)/(1−F(t))tF'(t)/(1 - F(t))tF′(t)/(1−F(t)) is the hazard rate scaled by the age.

Formalization targets

Goal: Theorem 6 (p. 801)

Let FFF have a positive density F′F'F′ for t≥t0t \ge t_0t≥t0​, and let α1,α2>0\alpha_1, \alpha_2 > 0α1​,α2​>0 satisfy α1≤tF′(t)/(1−F(t))≤α2\alpha_1 \le tF'(t)/(1 - F(t)) \le \alpha_2α1​≤tF′(t)/(1−F(t))≤α2​ for t≥t0t \ge t_0t≥t0​. Then for all t≥t0t \ge t_0t≥t0​ and all real xxx,

Γα1(x)  ≤  P{X−tt≤x  ∣  X>t}  ≤  Γα2(x).\Gamma_{\alpha_1}(x) \;\le\; P\Big\{\frac{X - t}{t} \le x \;\Big|\; X > t\Big\} \;\le\; \Gamma_{\alpha_2}(x).Γα1​​(x)≤P{tX−t​≤x​X>t}≤Γα2​​(x).

The smaller constant gives the lower bound: a smaller scaled hazard rate means a heavier tail and hence a larger chance that the remaining life is long. For a Pareto tail 1−F(t)=Ct−α1 - F(t) = Ct^{-\alpha}1−F(t)=Ct−α one may take α1=α2=α\alpha_1 = \alpha_2 = \alphaα1​=α2​=α, and both inequalities are equalities.

Milestone: the integrated hazard bounds (proof of Theorem 6, p. 801)

For t≥t0t \ge t_0t≥t0​ and x>0x > 0x>0,

α1∫t(1+x)tduu≤∫t(1+x)tF′(u)1−F(u) du≤α2∫t(1+x)tduu.\alpha_1 \int_t^{(1+x)t} \frac{du}{u} \le \int_t^{(1+x)t} \frac{F'(u)}{1 - F(u)}\,du \le \alpha_2 \int_t^{(1+x)t} \frac{du}{u}.α1​∫t(1+x)t​udu​≤∫t(1+x)t​1−F(u)F′(u)​du≤α2​∫t(1+x)t​udu​.

Significance

The theorem turns a pointwise condition on the hazard rate, which can be checked on a density, into a bound on the whole conditional distribution of the residual life, valid at every age t≥t0t \ge t_0t≥t0​ rather than only in the limit. If moreover tF′(t)/(1−F(t))→αtF'(t)/(1 - F(t)) \to \alphatF′(t)/(1−F(t))→α, then α1,α2\alpha_1, \alpha_2α1​,α2​ can be taken arbitrarily close to α\alphaα for large t0t_0t0​, which recovers the convergence P{(X−t)/t≤x∣X>t}→Γα(x)P\{(X - t)/t \le x \mid X > t\} \to \Gamma_\alpha(x)P{(X−t)/t≤x∣X>t}→Γα​(x) with an explicit error at finite ages. Such bounds are what a practitioner fitting a Pareto tail above a threshold needs to quantify the approximation.

The result is classical and its proof is short; it is not open. As far as is known, no machine-checked version exists, and Mathlib has no theory of residual life distributions or of the limit laws of Balkema and de Haan. A formal proof would provide reusable pieces: the identity between the integrated hazard rate and −log⁡(1−F)-\log(1 - F)−log(1−F) for a distribution function with a density, and the comparison of a residual life distribution with a Pareto law. The other missions of this series formalize the paper's limit theorems, for which this mission's objects (the residual life distribution and Γα\Gamma_\alphaΓα​) are shared.

Difficulty

The mathematics is elementary; the work lies in the regularity bookkeeping that the printed proof leaves implicit. The density is only assumed to exist pointwise, so the fundamental theorem of calculus must be applied to −log⁡(1−F)-\log(1 - F)−log(1−F) with a derivative that is not assumed continuous, and its integrability on [t,(1+x)t][t, (1+x)t][t,(1+x)t] has to come from the hazard bounds themselves. That 1−F1 - F1−F stays positive, that t0>0t_0 > 0t0​>0, and that the case x≤0x \le 0x≤0 is trivial all have to be derived from the hypotheses rather than assumed. Finally, the conditional probability must be identified with 1−R((1+x)t)/R(t)1 - R((1+x)t)/R(t)1−R((1+x)t)/R(t), where R=1−FR = 1 - FR=1−F, through the measure of intervals.

Formalization scope

The law of XXX is a probability measure μ\muμ on R\mathbb RR, and FFF is Mathlib's ProbabilityTheory.cdf μ. The probability P{(X−t)/t≤x∣X>t}P\{(X - t)/t \le x \mid X > t\}P{(X−t)/t≤x∣X>t} is residualLife μ t (x * t) =μ((t,t+xt])/μ((t,∞))= \mu((t, t + xt])/\mu((t, \infty))=μ((t,t+xt])/μ((t,∞)). Γα\Gamma_\alphaΓα​ is a real function defined by cases, with Real.rpow for the power. The density is an explicit function fff with FFF having derivative f(t)>0f(t) > 0f(t)>0 at every t≥t0t \ge t_0t≥t0​, the derivative taken within [t0,∞)[t_0, \infty)[t0​,∞). This is a right derivative at t0t_0t0​ and the ordinary derivative for t>t0t > t_0t>t0​. It is the weakest reading of "positive density F′F'F′ for t≥t0t \ge t_0t≥t0​", and it admits the exact Pareto law with t0=1t_0 = 1t0​=1, whose distribution function has no two-sided derivative at 111. The bounds are stated for t⋅f(t)/(1−F(t))t \cdot f(t)/(1 - F(t))t⋅f(t)/(1−F(t)) with Lean's real division.

No hypothesis is added to the printed theorem, and no printed slip was found. The conditions t0>0t_0 > 0t0​>0 and F(t)<1F(t) < 1F(t)<1 follow from the hypotheses: for t≤0t \le 0t≤0 the ratio is not ≥α1>0\ge \alpha_1 > 0≥α1​>0, and a positive derivative on [t0,∞)[t_0, \infty)[t0​,∞) makes FFF strictly increasing there. Lean's convention a/0=0a/0 = 0a/0=0 therefore never acts at the ages concerned. The conclusion is stated for all real xxx, as printed; for x≤0x \le 0x≤0 all three quantities are 000. The milestone does not assume the hazard rate integrable: it is bounded and measurable on [t,(1+x)t][t, (1+x)t][t,(1+x)t], and a non-integrable integrand would make the inequality false rather than trivially true. A formalization that dropped the density hypothesis, replaced F′F'F′ by deriv without differentiability, or let the bounds hold only on a set not containing every t≥t0t \ge t_0t≥t0​ would not be this theorem; all three are excluded by the statement.

A proof needs the fundamental theorem of calculus for derivatives within a half-line (in Mathlib), the identity ∫t(1+x)tdu/u=log⁡(1+x)\int_t^{(1+x)t} du/u = \log(1+x)∫t(1+x)t​du/u=log(1+x), and the chain rule for log⁡(1−F)\log(1 - F)log(1−F). Proofs of the milestone and the goal are welcome, as are sorry-free lemmas showing that Γα\Gamma_\alphaΓα​ is a distribution function and that the Pareto law satisfies the hypotheses with α1=α2\alpha_1 = \alpha_2α1​=α2​.

Selected references

  • A. A. Balkema, L. de Haan, Residual Life Time at Great Age, The Annals of Probability 2 (1974), no. 5, 792–804. https://doi.org/10.1214/aop/1176996548
  • J. Pickands III, Statistical Inference Using Extreme Order Statistics, The Annals of Statistics 3 (1975), no. 1, 119–131. https://doi.org/10.1214/aos/1176343003
  • R. von Mises, La distribution de la plus grande de n valeurs, Revue Mathématique de l'Union Interbalkanique 1 (1936), 141–160.
  • L. de Haan, A. Ferreira, Extreme Value Theory: An Introduction, Springer, 2006. https://doi.org/10.1007/0-387-34471-3
4 thms2 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

On the Power of Robust Solutions in Two-Stage Stochastic and Adaptive Optimization Problems 5: For Hypercube Uncertainty, Even in the Constraints, the Robust and Adaptive Optima CoincideResearch Paper

Motivation

In two-stage optimization under uncertainty, a first-stage decision xxx is taken before the data are known, and a second-stage decision yyy is taken after a scenario ω\omegaω is revealed. The fully adaptive formulation lets yyy depend on ω\omegaω and minimizes the worst-case cost. It is the natural model of recourse, but it optimizes over policies, one decision per scenario, and is computationally hard in general. The static robust formulation fixes one yyy in advance that must be feasible in every scenario. It is a single deterministic mixed integer program and is the standard tractable surrogate (Ben-Tal, Goryashko, Guslitzer, Nemirovski 2004; Bertsimas & Sim 2004).

The question is how much is lost by the surrogate. Bertsimas and Goyal (2010) bound the gap by 222 against the stochastic problem and by 444 against the adaptive problem when the uncertainty set is symmetric. Their §5.3 identifies a case with no gap at all: when the uncertainty set is a hypercube (a box), the static robust optimum equals the adaptive optimum, and this holds even when the constraint matrices themselves are uncertain. Box uncertainty is the simplest and most common uncertainty model in practice (interval data on every coefficient), so the result says that for it, adaptivity buys nothing.

This mission formalizes that theorem, Theorem 5.4, together with Theorem 2.4, which shows that under right-hand-side uncertainty the robust problem is a single deterministic problem with the coordinatewise worst right-hand side.

Setting

Fix dimensions m,n1,n2m,n_1,n_2m,n1​,n2​ and sets I1,I2I_1,I_2I1​,I2​ of integer coordinates. The decision domains are

DI={x∈Rn:x≥0, xi∈Z for i∈I},D_{I}=\{x\in\mathbb R^n : x\ge0,\ x_i\in\mathbb Z\ \text{for } i\in I\},DI​={x∈Rn:x≥0, xi​∈Z for i∈I},

which is R+n−p×Z+p\mathbb R_+^{n-p}\times\mathbb Z_+^{p}R+n−p​×Z+p​ up to relabelling coordinates, p=∣I∣p=|I|p=∣I∣.

A scenario set Ω\OmegaΩ is given. In scenario ω\omegaω the data are a constraint matrix A(ω)∈Rm×n1A(\omega)\in\mathbb R^{m\times n_1}A(ω)∈Rm×n1​, a recourse matrix B(ω)∈Rm×n2B(\omega)\in\mathbb R^{m\times n_2}B(ω)∈Rm×n2​, a right-hand side b(ω)∈Rmb(\omega)\in\mathbb R^mb(ω)∈Rm and a second-stage cost d(ω)∈R+n2d(\omega)\in\mathbb R^{n_2}_+d(ω)∈R+n2​​. The first-stage cost c∈R+n1c\in\mathbb R^{n_1}_+c∈R+n1​​ is fixed.

  • The adaptive problem ΠAdapt(A,B,b,d)\Pi_{\mathrm{Adapt}}(A,B,b,d)ΠAdapt​(A,B,b,d) (5.6) chooses x∈DI1x\in D_{I_1}x∈DI1​​ and y(ω)∈DI2y(\omega)\in D_{I_2}y(ω)∈DI2​​ for every ω\omegaω with A(ω)x+B(ω)y(ω)≥b(ω)A(\omega)x+B(\omega)y(\omega)\ge b(\omega)A(ω)x+B(ω)y(ω)≥b(ω) for all ω\omegaω, and has value
zAdapt=inf⁡ cTx+sup⁡ω∈Ωd(ω)Ty(ω).z_{\mathrm{Adapt}}=\inf\ c^Tx+\sup_{\omega\in\Omega}d(\omega)^Ty(\omega).zAdapt​=inf cTx+ω∈Ωsup​d(ω)Ty(ω).
  • The robust problem ΠRob(A,B,b,d)\Pi_{\mathrm{Rob}}(A,B,b,d)ΠRob​(A,B,b,d) (5.7) chooses one x∈DI1x\in D_{I_1}x∈DI1​​, y∈DI2y\in D_{I_2}y∈DI2​​ with A(ω)x+B(ω)y≥b(ω)A(\omega)x+B(\omega)y\ge b(\omega)A(ω)x+B(ω)y≥b(ω) for all ω\omegaω, and has value
zRob=inf⁡ cTx+sup⁡ω∈Ωd(ω)Ty.z_{\mathrm{Rob}}=\inf\ c^Tx+\sup_{\omega\in\Omega}d(\omega)^Ty.zRob​=inf cTx+ω∈Ωsup​d(ω)Ty.

The uncertainty set is U={(A(ω),B(ω),b(ω),d(ω)):ω∈Ω}\mathcal U=\{(A(\omega),B(\omega),b(\omega),d(\omega)) : \omega\in\Omega\}U={(A(ω),B(ω),b(ω),d(ω)):ω∈Ω}, a subset of RN\mathbb R^NRN with N=mn1+mn2+m+n2N=mn_1+mn_2+m+n_2N=mn1​+mn2​+m+n2​. Following Definition 1.1, U\mathcal UU is a hypercube if U=[l1,u1]×⋯×[lN,uN]\mathcal U=[l_1,u_1]\times\cdots\times[l_N,u_N]U=[l1​,u1​]×⋯×[lN​,uN​] for some li≤uil_i\le u_ili​≤ui​.

For Theorem 2.4, AAA, BBB and ddd are fixed and only b(ω)∈R+mb(\omega)\in\mathbb R^m_+b(ω)∈R+m​ varies; ΠRob(b)\Pi_{\mathrm{Rob}}(b)ΠRob​(b) (1.2) is the robust problem above, and Π\PiΠ is the deterministic problem with right-hand side bjh=max⁡ωbj(ω)b^h_j=\max_\omega b_j(\omega)bjh​=maxω​bj​(ω).

Formalization targets

Goal: Theorem 5.4 (p. 31)

If U\mathcal UU is a hypercube, then

zRob(A,B,b,d)=zAdapt(A,B,b,d).z_{\mathrm{Rob}}(A,B,b,d)=z_{\mathrm{Adapt}}(A,B,b,d).zRob​(A,B,b,d)=zAdapt​(A,B,b,d).

The integer coordinates I1,I2I_1,I_2I1​,I2​ are arbitrary, and nothing is assumed about the signs of AAA, BBB, bbb.

Milestones

  1. Theorem 2.4 (p. 17). Under right-hand-side uncertainty, (x,y)(x,y)(x,y) is feasible for ΠRob(b)\Pi_{\mathrm{Rob}}(b)ΠRob​(b) if and only if Ax+By≥bhAx+By\ge b^hAx+By≥bh; hence zRob(b)=z(Π)z_{\mathrm{Rob}}(b)=z(\Pi)zRob​(b)=z(Π).
  2. p. 31 display. zAdapt(A,B,b,d)≤zRob(A,B,b,d)z_{\mathrm{Adapt}}(A,B,b,d)\le z_{\mathrm{Rob}}(A,B,b,d)zAdapt​(A,B,b,d)≤zRob​(A,B,b,d) for every uncertainty set.
  3. Eqs. (5.8)–(5.10). If U\mathcal UU is a hypercube, some scenario ωˉ\bar\omegaωˉ has A(ωˉ)A(\bar\omega)A(ωˉ), B(ωˉ)B(\bar\omega)B(ωˉ) entrywise minimal and b(ωˉ)b(\bar\omega)b(ωˉ), d(ωˉ)d(\bar\omega)d(ωˉ) entrywise maximal over Ω\OmegaΩ.
  4. Eqs. (5.11)–(5.13). For such ωˉ\bar\omegaωˉ, if (x,y(⋅))(x,y(\cdot))(x,y(⋅)) is adaptive feasible, then (x,y(ωˉ))(x,y(\bar\omega))(x,y(ωˉ)) is robust feasible.
  5. Eq. (5.14). For such ωˉ\bar\omegaωˉ, the robust worst-case cost of (x,y(ωˉ))(x,y(\bar\omega))(x,y(ωˉ)) is at most the adaptive worst-case cost of (x,y(⋅))(x,y(\cdot))(x,y(⋅)).

Significance

The result. Theorem 5.4 says that for interval uncertainty on every coefficient, the static robust program, whose size does not grow with the number of scenarios, solves the adaptive problem exactly. Combined with Theorem 2.4 for right-hand-side uncertainty, the adaptive problem collapses to one deterministic mixed integer program with worst-case data. It marks the boundary case of the paper's adaptability-gap bounds: the gap is at most 444 for symmetric sets, and exactly 111 for boxes.

Formalizing it. The result is proved in the paper; to our knowledge it has no machine-checked proof. The mission produces a Lean model of two-stage robust and adaptive mixed integer programs with uncertain constraint matrices, with values as extended-real infima, which other formalizations of adjustable robust optimization can build on.

Difficulty

The mathematics is elementary; the care is in the statement. The step that fails for a general uncertainty set is the existence of a single worst scenario ωˉ\bar\omegaωˉ that is simultaneously entrywise smallest in AAA, BBB and entrywise largest in bbb, ddd. For a set that is only contained in a box, the box's worst corner need not be realized. With two scenarios b=(1,0)b=(1,0)b=(1,0) and b=(0,1)b=(0,1)b=(0,1), B=IB=IB=I, d=(1,1)d=(1,1)d=(1,1), the adaptive value is 111 and the robust value is 222. A formalization therefore has to state the hypercube hypothesis as an equality of sets. A second point is the arithmetic of extended reals: the paper argues from optimal solutions, which need not exist, so the inequalities must be transported through infima over feasible sets that may be empty and through suprema that may be infinite.

Formalization scope

  • Decisions are vectors Fin n → ℝ; matrices are Matrix (Fin m) (Fin n) ℝ; constraints use Mathlib's componentwise order and mulVec.
  • Mixed-integer domains are "nonnegative, integer on a designated coordinate set III", the paper's R+n−p×Z+p\mathbb R_+^{n-p}\times\mathbb Z_+^pR+n−p​×Z+p​ up to relabelling.
  • Optimal values are EReal infima over the feasible set, +∞+\infty+∞ when infeasible; worst-case costs are EReal suprema over Ω\OmegaΩ. No optimal solution is assumed.
  • A scenario datum is a structure with the four blocks (A,B,b,d)(A,B,b,d)(A,B,b,d); the box and the hypercube predicate are written entrywise on these blocks, which is Definition 1.1 in RN\mathbb R^NRN.
  • The hypercube hypothesis is IsHypercube (uncertaintySet A B b d), i.e. the realized data are exactly a box. Assuming only that the data lie inside a box would make the statement false (example above); assuming fixed AAA, BBB would state Corollary 5.1 instead of Theorem 5.4.
  • Typos corrected in the Lean: (5.6)–(5.7) print Z+n2\mathbb Z^{n_2}_+Z+n2​​ for the second-stage integer block, read as Z+p2\mathbb Z^{p_2}_+Z+p2​​; §5.3's opening sentence names ΠAdapt(b,d)\Pi_{\mathrm{Adapt}}(b,d)ΠAdapt​(b,d) twice where the first is ΠRob(b,d)\Pi_{\mathrm{Rob}}(b,d)ΠRob​(b,d).
  • In Theorem 2.4 the paper's max⁡ωbj(ω)\max_\omega b_j(\omega)maxω​bj​(ω) is a real supremum under the hypothesis that the right-hand sides are bounded above, and the second stage is continuous (p2=0p_2=0p2​=0), as in the problem Π\PiΠ on the page.

Contributions welcome: proofs of the milestones and of the goal, and lemmas on monotonicity of mulVec for nonnegative vectors and on EReal infima over feasible sets, which are reusable across the other missions of this series.

Selected references

  • D. Bertsimas, V. Goyal, On the power of robust solutions in two-stage stochastic and adaptive optimization problems, Mathematics of Operations Research 35(2), 2010. https://doi.org/10.1287/moor.1090.0440 (cited from the authors' manuscript, MIT DSpace).
  • A. Ben-Tal, A. Goryashko, E. Guslitzer, A. Nemirovski, Adjustable robust solutions of uncertain linear programs, Mathematical Programming 99, 2004. https://doi.org/10.1007/s10107-003-0454-y
  • D. Bertsimas, M. Sim, The price of robustness, Operations Research 52(1), 2004. https://doi.org/10.1287/opre.1030.0065
11 thms2 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Distributed Optimization and Statistical Learning via the Alternating Direction Method of Multipliers V: Sharing ADMM — the z-Update Reduces to One n-Variable Problem and the Dual Variables AgreeTextbook

Why consensus and sharing

Many large optimization problems arising in statistics, machine learning, signal processing and resource allocation have an objective that is a sum of terms, each depending on data held by a different processor, or a coupling term that depends on the sum of the agents' decisions. Chapter 7 of Boyd, Parikh, Chu, Peleato and Eckstein's monograph on the alternating direction method of multipliers (ADMM) (Found. Trends Mach. Learn. 3(1), 2011) introduces two templates that turn such problems into distributed algorithms: consensus and sharing. Nearly every distributed application in the rest of the monograph (distributed lasso, distributed logistic regression, splitting across examples and across features in Chapter 8) is an instance of one of the two. Consensus problems in the context of ADMM go back to Bertsekas and Tsitsiklis (Parallel and Distributed Computation, 1989).

The value of the templates lies in a handful of exact algebraic facts about the ADMM subproblems: the global update is an average, the dual variables average to zero, and the sharing update, which looks like a problem in NnNnNn variables, is really a problem in nnn variables. These facts are what this mission formalizes.

Setting

There are N≥1N\ge1N≥1 agents. Vectors live in Rn\mathbb R^nRn with the Euclidean inner product, and an overline denotes an average over agents, vˉ=1N∑i=1Nvi\bar v=\frac1N\sum_{i=1}^N v_ivˉ=N1​∑i=1N​vi​. Each local cost fif_ifi​ and the shared cost ggg are functions into R∪{+∞}\mathbb R\cup\{+\infty\}R∪{+∞}. The penalty parameter is ρ>0\rho>0ρ>0.

Global variable consensus (§7.1) is the problem

minimize ∑i=1Nfi(xi)subject to xi−z=0, i=1,…,N,\text{minimize }\sum_{i=1}^N f_i(x_i)\quad\text{subject to } x_i-z=0,\ i=1,\dots,N,minimize i=1∑N​fi​(xi​)subject to xi​−z=0, i=1,…,N,

with local variables xi∈Rnx_i\in\mathbb R^nxi​∈Rn and a global variable zzz. ADMM alternates a parallel xix_ixi​-update, an averaging zzz-update and a dual update of the multipliers yiy_iyi​. With a regularizer g(z)g(z)g(z) added (7.2), the zzz-update (7.4) becomes a minimization involving ggg.

General form consensus (§7.2) lets local variable xi∈Rnix_i\in\mathbb R^{n_i}xi​∈Rni​ copy only some entries of zzz: entry jjj of xix_ixi​ corresponds to entry zG(i,j)z_{\mathcal G(i,j)}zG(i,j)​, and z~i∈Rni\tilde z_i\in\mathbb R^{n_i}z~i​∈Rni​ is defined by (z~i)j=zG(i,j)(\tilde z_i)_j=z_{\mathcal G(i,j)}(z~i​)j​=zG(i,j)​. The number of local entries copying zgz_gzg​ is kgk_gkg​.

Sharing (§7.3) is the problem

minimize ∑i=1Nfi(xi)+g(∑i=1Nxi),(7.11)\text{minimize }\sum_{i=1}^N f_i(x_i)+g\Big(\sum_{i=1}^N x_i\Big),\tag{7.11}minimize i=1∑N​fi​(xi​)+g(i=1∑N​xi​),(7.11)

written for ADMM with copies ziz_izi​ of the xix_ixi​ (7.12). In scaled form, with ai=uik+xik+1a_i=u_i^k+x_i^{k+1}ai​=uik​+xik+1​, its zzz-update is

(z1k+1,…,zNk+1)∈argmin⁡z1,…,zN g(∑i=1Nzi)+(ρ/2)∑i=1N∥zi−ai∥22,(z_1^{k+1},\dots,z_N^{k+1})\in\operatorname*{argmin}_{z_1,\dots,z_N}\ g\Big(\sum_{i=1}^N z_i\Big)+(\rho/2)\sum_{i=1}^N\|z_i-a_i\|_2^2,(z1k+1​,…,zNk+1​)∈z1​,…,zN​argmin​ g(i=1∑N​zi​)+(ρ/2)i=1∑N​∥zi​−ai​∥22​,

followed by uik+1=uik+xik+1−zik+1u_i^{k+1}=u_i^k+x_i^{k+1}-z_i^{k+1}uik+1​=uik​+xik+1​−zik+1​.

Formalization targets

Goal: the sharing zzz-update reduction (§7.3, p. 57)

For every a1,…,aNa_1,\dots,a_Na1​,…,aN​: (z1,…,zN)(z_1,\dots,z_N)(z1​,…,zN​) solves the NnNnNn-variable zzz-update iff zˉ\bar zzˉ solves

minimize⁡zˉ∈Rn g(Nzˉ)+(ρ/2)∑i=1N∥zˉ−aˉ∥22\operatorname*{minimize}_{\bar z\in\mathbb R^n}\ g(N\bar z)+(\rho/2)\sum_{i=1}^N\|\bar z-\bar a\|_2^2zˉ∈Rnminimize​ g(Nzˉ)+(ρ/2)i=1∑N​∥zˉ−aˉ∥22​

and

zi=ai+zˉ−aˉ(7.13);z_i=a_i+\bar z-\bar a\quad (7.13);zi​=ai​+zˉ−aˉ(7.13);

and along every run of sharing ADMM,

uik+1=uˉk+xˉk+1−zˉk+1(7.14),u_i^{k+1}=\bar u^k+\bar x^{k+1}-\bar z^{k+1}\quad(7.14),uik+1​=uˉk+xˉk+1−zˉk+1(7.14),

so all scaled dual variables agree after one step.

Milestones

  • §7.1: the consensus zzz-update is zk+1=xˉk+1+(1/ρ)yˉkz^{k+1}=\bar x^{k+1}+(1/\rho)\bar y^kzk+1=xˉk+1+(1/ρ)yˉ​k; then yˉk+1=0\bar y^{k+1}=0yˉ​k+1=0, zk=xˉkz^k=\bar x^kzk=xˉk and the simplified iteration.
  • (7.4), §7.1.1: with a regularizer, the zzz-update is averaging followed by a proximal step with weight NρN\rhoNρ; the soft-threshold (g=λ∥⋅∥1g=\lambda\|\cdot\|_1g=λ∥⋅∥1​) and positive-part (ggg the indicator of R+n\mathbb R^n_+R+n​) examples.
  • §7.2: the general form zzz-update is local averaging, and the dual entries attached to each global index sum to zero after the first iteration.
  • (7.13): with zˉ\bar zzˉ fixed, zi=ai+zˉ−aˉz_i=a_i+\bar z-\bar azi​=ai​+zˉ−aˉ is the unique minimizer.

Significance

The reduction is what makes sharing ADMM scale: the central step needs only the averages xˉk+1\bar x^{k+1}xˉk+1, uˉk\bar u^kuˉk and one nnn-dimensional proximal problem, regardless of the number of agents, and the dual state collapses to a single vector. The same reduction underlies exchange ADMM (§7.3.2) and the splitting-across-features algorithms of §8.3. The consensus facts explain why the fusion center only averages and why the dual variables can be dropped from its update.

All results of the chapter are proved, informally, in the monograph; they are elementary. To our knowledge none has a machine-checked proof. The mission produces checked statements of the update formulas that later chapters of the series and distributed-optimization developments can cite instead of re-deriving.

Difficulty

The statements are exact identities between minimizer sets of nonsmooth problems in which ggg may be any extended-real-valued function: there is no first-order condition to use, so each step must be argued by comparing objective values, and the iff requires producing, for an arbitrary competitor, a competitor of the reduced problem with no larger value. The index bookkeeping is the other half: averages of sums of sequences indexed by agents and by iterations, the off-by-one in "after the first iteration", and in §7.2 sums over the fibres {(i,j):G(i,j)=g}\{(i,j):\mathcal G(i,j)=g\}{(i,j):G(i,j)=g} of an index map between local vectors of different dimensions.

Formalization scope

  • Vectors are EuclideanSpace ℝ (Fin n); agents are indexed by Fin N, so the book's i=1,…,Ni=1,\dots,Ni=1,…,N is Lean's i−1i-1i−1; components are 0-based as well.
  • An extended-real-valued function is encoded by its effective domain (a set) and its finite values; every minimization is over the domain. Convexity is not assumed: none of the stated identities needs it, so the statements are slightly more general than the chapter's standing assumption that each fif_ifi​ is convex.
  • Iterates are hypotheses: a run is any sequence satisfying the update rules (argmin properties, not chosen minimizers). The consensus run uses the averaging formula exactly as printed on p. 49; the general form and sharing runs use the argmin form printed on pp. 55–56.
  • Explicit hypotheses that the book leaves implicit: N≥1N\ge1N≥1, ρ>0\rho>0ρ>0, λ>0\lambda>0λ>0 (named lam), kg≥1k_g\ge1kg​≥1 for every global index ggg in §7.2, and the index ranges k≥1k\ge1k≥1 for yˉk=0\bar y^{k}=0yˉ​k=0 and k≥2k\ge2k≥2 for zk=xˉkz^k=\bar x^kzk=xˉk (the starting y0y^0y0 is arbitrary).
  • Corrected misprints: p. 52 prints xˉk+1−(1/ρ)yˉk\bar x^{k+1}-(1/\rho)\bar y^kxˉk+1−(1/ρ)yˉ​k in the soft-threshold and positive-part examples, while the proximal form gives xˉk+1+(1/ρ)yˉk\bar x^{k+1}+(1/\rho)\bar y^kxˉk+1+(1/ρ)yˉ​k; p. 55 prints ∑i=1m\sum_{i=1}^m∑i=1m​ for ∑i=1N\sum_{i=1}^N∑i=1N​; p. 57 writes u∈Rmu\in\mathbf R^mu∈Rm for a vector of Rn\mathbb R^nRn.
  • The goal is about minimizers of the NnNnNn-variable zzz-subproblem, not the algebraic identity (7.13) alone, and (7.14) is derived for every run rather than built into a single-dual-variable definition; either shortcut would make the goal trivial.
  • Not included: the consensus residual norms (p. 51), the duality discussion of §7.3.1 and exchange ADMM (§7.3.2). Contributions formalizing them on top of these definitions are welcome.

Selected references

  • S. Boyd, N. Parikh, E. Chu, B. Peleato, J. Eckstein, Distributed Optimization and Statistical Learning via the Alternating Direction Method of Multipliers, Foundations and Trends in Machine Learning 3(1), 1–122, 2011. https://doi.org/10.1561/2200000016
  • D. P. Bertsekas, J. N. Tsitsiklis, Parallel and Distributed Computation: Numerical Methods, Prentice Hall, 1989. https://web.mit.edu/dimitrib/www/pdc.html
11 thms2 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

A Linear Programming Approach to the Cutting-Stock Problem: If No Slack and No Knapsack Pattern Prices Out, the Current Basic Solution Is a Minimum of the Cutting-Stock LPResearch Paper

Motivation

A cutting-stock shop receives orders for pieces of several lengths and cuts them from a limited menu of longer stock lengths. Each stock length has a cost. The shop can repeat any cutting pattern, so the central optimization question is which patterns meet the demand at least cost. The direct linear program has a variable for every possible pattern. Even a modest menu of piece lengths can yield too many columns to list before optimization begins. Gilmore and Gomory's 1961 article addresses this large-column obstacle by testing whether an as-yet-unlisted pattern could lower the cost of a current basic solution.

The article studies the linear programming relaxation: cutting activities may have nonnegative real weights rather than integer repetition counts. It does not claim that the resulting fractional optimum is always an integer cutting plan. Its worked example happens to have an integer optimum of cost 170; the authors explicitly note that this integrality is fortuitous (Gilmore and Gomory 1961, p. 858). The target here is the exact stopping condition for the relaxation.

Setting

An instance has mmm ordered piece lengths ℓi\ell_iℓi​, demand Ni∈NN_i\in\mathbb NNi​∈N for each piece length, and kkk stock lengths LjL_jLj​ with real costs cjc_jcj​. A cutting pattern for stock jjj is a vector of nonnegative integer counts aia_iai​ with ∑iℓiai≤Lj\sum_i\ell_i a_i\le L_j∑i​ℓi​ai​≤Lj​. An activity consists of that stock choice and its fitting pattern. Its demand column is a=(ai)a=(a_i)a=(ai​) and its cost is cjc_jcj​. A surplus column for demand row iii has coefficient −1-1−1 in that row, zero elsewhere, and zero cost. The paper uses such columns to turn its demand inequalities into equations (Gilmore and Gomory 1961, p. 850, (1)–(3)).

A feasible solution assigns nonnegative real weights to finitely many activities and surplus columns so that activity output minus surplus equals NiN_iNi​ in every row. Its cost is the weighted sum of stock costs. A basis β\betaβ lists mmm columns with invertible coefficient matrix AAA and cost row CCC. The associated bordered matrix, demand column, tableau column, and multipliers are

B=(1−C0A),N′=(0,N1,…,Nm)T,Nˉ=B−1N′,bi=(B−1)0,i+1.B=\begin{pmatrix}1&-C\\0&A\end{pmatrix},\qquad N'=(0,N_1,\ldots,N_m)^T,\qquad \bar N=B^{-1}N',\qquad b_i=(B^{-1})_{0,i+1}.B=(10​−CA​),N′=(0,N1​,…,Nm​)T,Nˉ=B−1N′,bi​=(B−1)0,i+1​.

A feasible basis has nonnegative basic values, the last mmm entries of Nˉ\bar NNˉ. Those values on the basic columns, with zero on every other column, form the current basic solution. The first entry of Nˉ\bar NNˉ is its cost. These definitions follow the matrix and tableau of routine steps (2)–(4) (Gilmore and Gomory 1961, pp. 854–855).

Formalization targets

The goal is the stopping statement of step (4). If no nonbasic surplus column has a negative multiplier, and no available stock jjj has a fitting pattern satisfying ∑ibiai>cj\sum_i b_i a_i>c_j∑i​bi​ai​>cj​, then the current solution is feasible and minimizes cost across all feasible activity and surplus assignments:

(∀i with surplus i∉β, bi≥0)∧(∀j,a, ∑iℓiai≤Lj⇒∑ibiai≤cj)⟹cost⁡(zβ)=Nˉ0≤cost⁡(z)for every feasible z.\bigl(\forall i\text{ with surplus }i\notin\beta,\ b_i\ge0\bigr) \quad\land\quad \bigl(\forall j,a,\ \sum_i\ell_i a_i\le L_j\Rightarrow\sum_i b_i a_i\le c_j\bigr) \quad\Longrightarrow\quad \operatorname{cost}(z_\beta)=\bar N_0\le\operatorname{cost}(z) \quad\text{for every feasible }z.(∀i with surplus i∈/β, bi​≥0)∧(∀j,a, i∑​ℓi​ai​≤Lj​⇒i∑​bi​ai​≤cj​)⟹cost(zβ​)=Nˉ0​≤cost(z)for every feasible z.

The six milestones record the paper's ingredients: the first row of B−1B^{-1}B−1 and the meaning of Nˉ\bar NNˉ; the entering-column price test (4)–(5); the surplus-column test of step (3); the integer-pattern form (6)–(7); the maximum-pattern test; and the dynamic programming recurrence for Fs(x)F_s(x)Fs​(x) (Gilmore and Gomory 1961, pp. 852–855). The paper has no numbered theorems or lemmas; each milestone is drawn from a sentence or display on those pages.

Significance

The result makes a finite tableau a certificate for an optimization problem whose set of potential cutting activities is much larger than the current basis. A failed pricing search is meaningful only when it covers every fitting pattern for every stock length; the goal makes that full scope explicit. In the example, the final multipliers are (2,3,5)(2,3,5)(2,3,5) and the relevant knapsack maxima for stock lengths 555, 666, and 999 are 555, 777, and 101010, matching their stopping prices and the cost 170 (Gilmore and Gomory 1961, p. 858).

The mathematical argument is known from the 1961 article. This mission asks for a machine-checked Lean proof of its particular cutting-stock formulation, including the bounded-pattern search, bordered tableau, surplus columns, and global optimality conclusion. The proposal statements compile with proof placeholders; they are not already proved by those placeholders. Published general LP results are listed as references, but their finite-indexed formulations do not directly state the cutting-stock theorem.

Difficulty

Checking only the columns already in a tableau cannot establish optimality: an unlisted pattern might still fit a stock length and have a price greater than its cost. The article reduces this large search to an integer knapsack maximum for each stock length (Gilmore and Gomory 1961, pp. 852–853). Formalization must retain the distinction between a basis of mmm columns and the full collection of possible columns. Strict improvement also needs care at a degenerate basic solution. The paper directs zero-ratio pivots to a separate degeneracy procedure (Gilmore and Gomory 1961, p. 855); the sufficient directions of the pricing milestones therefore require positive basic values, while the goal's optimality direction does not.

Formalization scope

Lean indexes piece types from zero and uses a separate initial cost coordinate followed by the mmm demand coordinates for BBB. Thus the paper's (i+1)(i+1)(i+1)st bordered row corresponds to Lean demand index iii. Patterns are vectors in Nm\mathbb N^mNm; the zero pattern is included. A solution is a finitely supported real weighting of all activity and surplus columns. Global minimality quantifies over every such feasible weighting, including activities not in the current basis. No sign condition is imposed on stock costs or stock lengths in the goal; the goal is a conditional optimality statement and remains valid whenever its hypotheses hold.

The knapsack value Fs(x)F_s(x)Fs​(x) uses extended real numbers, giving −∞-\infty−∞ when no pattern fits, rather than an accidental real value from an empty supremum. The maximum-pattern milestone assumes positive piece lengths and nonnegative stock length, so the feasible set is finite and nonempty. The recursion milestone assumes positive lengths for all types through the newly added one; without the earlier positivity, a negative earlier length could let the new piece count exceed the displayed upper bound. The nondegeneracy hypotheses are confined to the sufficient directions of the three improvement milestones.

Reusable contributions include lemmas connecting the bordered inverse with CA−1C A^{-1}CA−1, finite-support linear program identities, and the integer knapsack recurrence. The source's rounding discussion, heuristic search, and under-specified anti-cycling device are outside this mission. An encoding that compares the current solution only with basis columns or generated columns would miss the paper's stopping claim.

Selected references

  • P. C. Gilmore and R. E. Gomory, A linear programming approach to the cutting-stock problem, Operations Research 9(6):849–859, 1961. DOI: 10.1287/opre.9.6.849.
13 thms5 active usersReviewed
🏆Completed
CombinatoricsLinear OptimizationOperations Research·Captain: mikedeng1

A Linear Programming Approach to the Cutting Stock Problem—Part II 1: The Lexicographic Knapsack Method Terminates, and M_1 Equals max(c_1, the Knapsack Optimum for the Longest Stock Length L_1)Research Paper

Motivation

The cutting stock problem asks how to cut standard stock rolls of length LLL into pieces of demanded lengths l1,…,lml_1,\dots,l_ml1​,…,lm​ so that the demands are met at least cost. Gilmore and Gomory solved its linear programming relaxation by column generation (Part I, Opns. Res. 9 (1961)): every cutting pattern is a column, and the column to bring into the basis is found by solving an integer knapsack problem whose objective is given by the current dual prices. In Part II (Opns. Res. 11 (1963)) they replaced the dynamic-programming knapsack solver of Part I by a lexicographic enumeration with a bound test, the Knapsack Method, and reported it to be about five times as fast as dynamic programming on their problem set (p. 866). The method is an early enumeration-with-bounds (branch-and-bound type) procedure for the integer knapsack, and the same pricing problem remains the inner loop of column generation for cutting stock, bin packing and their many variants.

Setting

There are mmm demanded lengths l1,…,lm>0l_1,\dots,l_m>0l1​,…,lm​>0 with linear programming prices b1,…,bm≥0b_1,\dots,b_m\ge0b1​,…,bm​≥0, and kkk standard stock lengths L1,…,LkL_1,\dots,L_kL1​,…,Lk​ with costs c1,…,ckc_1,\dots,c_kc1​,…,ck​. A column for LjL_jLj​ is a vector (α)m=(a1,…,am)(\alpha)_m=(a_1,\dots,a_m)(α)m​=(a1​,…,am​) of nonnegative integers with ∑iliai≤Lj\sum_i l_ia_i\le L_j∑i​li​ai​≤Lj​. The knapsack problem (1) for LjL_jLj​ is

Mˉj=max⁡{∑i=1mbiai:ai∈Z≥0, ∑i=1mliai≤Lj},\bar M_j=\max\Big\{\sum_{i=1}^m b_ia_i : a_i\in\mathbb Z_{\ge0},\ \sum_{i=1}^m l_ia_i\le L_j\Big\},Mˉj​=max{i=1∑m​bi​ai​:ai​∈Z≥0​, i=1∑m​li​ai​≤Lj​},

and the quantity to compute is Mj=max⁡(cj,Mˉj)M_j=\max(c_j,\bar M_j)Mj​=max(cj​,Mˉj​): a column improves the linear program exactly when Mˉj>cj\bar M_j>c_jMˉj​>cj​.

For a prefix (α)s=(a1,…,as)(\alpha)_s=(a_1,\dots,a_s)(α)s​=(a1​,…,as​) write λ⋅(α)s=∑i≤sliai\lambda\cdot(\alpha)_s=\sum_{i\le s}l_ia_iλ⋅(α)s​=∑i≤s​li​ai​ and β⋅(α)s=∑i≤sbiai\beta\cdot(\alpha)_s=\sum_{i\le s}b_ia_iβ⋅(α)s​=∑i≤s​bi​ai​. Step (1) sorts the data, b1/l1≥⋯≥bm/lmb_1/l_1\ge\dots\ge b_m/l_mb1​/l1​≥⋯≥bm​/lm​ and L1>⋯>LkL_1>\dots>L_kL1​>⋯>Lk​, and appends a slack item am+1a_{m+1}am+1​ with bm+1=0b_{m+1}=0bm+1​=0, lm+1=1l_{m+1}=1lm+1​=1. The method then generates vectors in decreasing lexicographic order:

  • Steps (2) and (7) fill the coefficients after a prefix greedily, ai=[(L−used)/li]a_i=[(L-\text{used})/l_i]ai​=[(L−used)/li​], for L=L1L=L_1L=L1​ at the start and L=LtL=L_tL=Lt​ later.
  • Step (3) records β⋅(α)m\beta\cdot(\alpha)_mβ⋅(α)m​ as the new MjM_jMj​ for each j≥tj\ge tj≥t with Lj≥λ⋅(α)mL_j\ge\lambda\cdot(\alpha)_mLj​≥λ⋅(α)m​ and β⋅(α)m>Mj\beta\cdot(\alpha)_m>M_jβ⋅(α)m​>Mj​.
  • Step (4) finds the last nonzero coefficient asa_sas​.
  • Step (5) lowers asa_sas​ by one and looks for the smallest jjj with Lj≥λ⋅(α)sL_j\ge\lambda\cdot(\alpha)_sLj​≥λ⋅(α)s​ and (Lj−λ⋅(α)s)bs+1>(Mj−β⋅(α)s)ls+1(L_j-\lambda\cdot(\alpha)_s)b_{s+1}>(M_j-\beta\cdot(\alpha)_s)l_{s+1}(Lj​−λ⋅(α)s​)bs+1​>(Mj​−β⋅(α)s​)ls+1​. This is the bound obtained by relaxing the integrality of as+1a_{s+1}as+1​.
  • Step (6) backs up to the previous nonzero coefficient when no such jjj exists, and stops when there is none.

In Lean the method is a transition system Step on states (a, s, t, M, phase). Reachable means reachable from the start state of Step (2).

Formalization targets

Goal: the method terminates and computes M1M_1M1​

Under Step (1)'s ordering, with li>0l_i>0li​>0 and bi≥0b_i\ge0bi​≥0:

every run is finite,a non-final state has a successor,M1final=max⁡(c1,Mˉ1),\text{every run is finite},\quad \text{a non-final state has a successor},\quad M_1^{\text{final}}=\max\big(c_1,\bar M_1\big),every run is finite,a non-final state has a successor,M1final​=max(c1​,Mˉ1​),

and at the end every MjM_jMj​ is cjc_jcj​ or the price of a column for LjL_jLj​, with cj≤Mjc_j\le M_jcj​≤Mj​. With one stock length (k=1k=1k=1) this is the paper's correctness claim in full: the method solves the knapsack problem (1).

Milestones

  1. Steps (2)/(7): the greedy completion is the lexicographically largest extension of a prefix that fits the capacity.
  2. Step (4): the lexicographic predecessor of a fitting vector extends (α1)s(\alpha^1)_s(α1)s​.
  3. The relaxation bound β⋅(α′)m≤β⋅(α)s+bs+1(L−λ⋅(α)s)/ls+1\beta\cdot(\alpha')_m\le\beta\cdot(\alpha)_s+b_{s+1}(L-\lambda\cdot(\alpha)_s)/l_{s+1}β⋅(α′)m​≤β⋅(α)s​+bs+1​(L−λ⋅(α)s​)/ls+1​ for every fitting extension.
  4. After the inequality of Step (5)'s test fails, no vector between (α)s(\alpha)_s(α)s​ and the successor of Step (6) improves MMM.
  5. The vectors tested in Step (3) strictly decrease lexicographically.
  6. The invariant on entry to Step (3).
  7. Identical prices: among lengths with equal prices only the shortest is needed (p. 869).

Significance

The goal certifies the pricing oracle of the Gilmore–Gomory column-generation method: the knapsack solver it calls returns the true optimum. The pricing step is exact only if that holds, and so is the conclusion "no improving column exists, the LP is solved". Milestones 1–4 are reusable on their own. They are the textbook ingredients of lexicographic and depth-first branch-and-bound for the integer knapsack: the greedy completion, the density-ordered LP bound, and the pruning rule.

The paper's argument is a short paragraph, "clear from the order in which the mmm-vectors are generated". Writing it out shows that the claim is false for several stock lengths as the steps are printed. With m=1m=1m=1, l1=b1=1l_1=b_1=1l1​=b1​=1, L=(5,2)L=(5,2)L=(5,2) and c=(0,0)c=(0,0)c=(0,0), the method tests (5)(5)(5). The test of Step (5) at (4)(4)(4) then fails for j=2j=2j=2 only because 4>L24>L_24>L2​, Step (6) stops, and the run ends with M2=0M_2=0M2​=0 while the column (2)(2)(2) has price 2. This mission therefore states what the printed algorithm does achieve. The result is the full claim for k=1k=1k=1 and for the longest stock length in general. A sorry-free Lean proof of the counterexample run accompanies the mission. No part of the method or its correctness has been formalized before, as far as a search of the platform shows.

Difficulty

The method skips large parts of the lexicographic order in three ways:

  • Step (7) jumps to the greedy completion for LtL_tLt​ rather than L1L_1L1​.
  • Step (6) jumps past every smaller value of asa_sas​ once one test fails.
  • Step (3) updates only j≥tj\ge tj≥t.

Each skip has to be justified by a bound that holds for every vector skipped, and the justifications interact. A skipped vector may fit a longer stock length but not LtL_tLt​, and the bound for L1L_1L1​ must cover exactly those vectors. The invariant that survives all three moves is not the naive "every vector above the current one has been examined": the vectors are not examined, only bounded. Termination needs the lexicographic decrease together with finiteness of the fitting vectors, and progress needs the reachability invariants 1≤s≤m1\le s\le m1≤s≤m and as≠0a_s\ne0as​=0 that make Step (5) meaningful.

Formalization scope

  • Items are Fin m from 0. The paper's level sss is a natural number, and the prefix (α)s(\alpha)_s(α)s​ is the coordinates with index < s. Stock lengths are Fin k, and L1L_1L1​ is index 0. The slack item enters only through bs+1b_{s+1}bs+1​ and ls+1l_{s+1}ls+1​ at s=ms=ms=m. The lexicographic order is Mathlib's Pi.Lex, and [x][x][x] is Nat.floor.

  • Mj=max⁡(cj,Mˉj)M_j=\max(c_j,\bar M_j)Mj​=max(cj​,Mˉj​) is the predicate IsKnapsackMax, never a real supremum, which would be 0 on an empty set. The algorithm's output is never defined as the maximum. The goal includes termination and progress, so its correctness clause is not vacuous. Every invariant is stated for reachable states only.

  • The goal adds two disclosed hypotheses:

    • li>0l_i>0li​>0: demanded lengths.
    • bi≥0b_i\ge0bi​≥0: with a negative price the method is wrong, and the paper applies it to cutting-stock prices, which are nonnegative.

    Step (1) is a hypothesis on the data, not a step.

  • The goal also makes these corrections:

    • The claim is narrowed. For every jjj it states cj≤Mjc_j\le M_jcj​≤Mj​ and attainment, and the upper bound for L1L_1L1​ only (see Significance).
    • The lexicographic order is repaired. The page's definition misses vectors that differ in their first coefficient.
    • Step (7) reads λ·(α)_m. The page's "satisfies Lt≥λ⋅(α)sL_t\ge\lambda\cdot(\alpha)_sLt​≥λ⋅(α)s​" is read as λ⋅(α)m\lambda\cdot(\alpha)_mλ⋅(α)m​.
    • Step (4) gets a stopping case. On the zero vector, where the page has no case, the method stops.
    • Milestone 4 is stated for the failed inequality, not for a failed test, because the failed test is what makes the page's successor claim false.
  • Not formalized:

    • Step (3′), the variant computing max⁡j(Mj−cj)\max_j(M_j-c_j)maxj​(Mj​−cj​).
    • The record of patterns.
    • The dynamic-programming recursion and the timing estimates.

Contributions welcome: proofs of the milestones, and a corrected multi-length variant of the method with a proof that it computes every MjM_jMj​.

Selected references

  • P. C. Gilmore, R. E. Gomory, A linear programming approach to the cutting stock problem—Part II, Operations Research 11(6) (1963), 863–888. https://doi.org/10.1287/opre.11.6.863
  • P. C. Gilmore, R. E. Gomory, A linear programming approach to the cutting-stock problem, Operations Research 9(6) (1961), 849–859. https://doi.org/10.1287/opre.9.6.849
  • G. B. Dantzig, Discrete-variable extremum problems, Operations Research 5(2) (1957), 266–288. https://doi.org/10.1287/opre.5.2.266
10 thms2 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

On the Relation Between Integer and Noninteger Solutions to Linear Programs: Deep in the Optimal-Basis Cone, z₂(b) = z₁(b) + φ(b) and the Group Problem Gives an Integer OptimumResearch Paper

Motivation

An integer program is a linear program whose variables must take integer values. Its linear relaxation can be solved efficiently, while the integer program itself is NP-hard in general, so a recurring question in integer programming is how much the optimal solution of the relaxation says about the integer optimum. Simple rounding of the fractional optimum does not answer it: examples show that the integer optimum need not lie within distance one of the LP optimum, even when the right-hand side is large.

R. E. Gomory's 1965 note in the Proceedings of the National Academy of Sciences (doi:10.1073/pnas.53.2.260) showed that, for right-hand sides lying deep inside the cone of an optimal LP basis, the integer program is solved exactly by the LP solution plus a correction computed in a finite abelian group. The resulting group relaxation (the "corner polyhedron" of Gomory's later work, Gomory 1969) underlies a large body of work on cutting planes, the master group problem, Gomory–Johnson functions and asymptotic integer programming.

Timeline. Gomory's fractional cutting-plane algorithm (Gomory 1958) introduced the "fractional rows" of the simplex tableau; the 1965 note identifies the group they generate with M(I)/M(B)M(I)/M(B)M(I)/M(B) and proves the asymptotic theorem formalized here. Gomory 1969 develops the corner polyhedron; Gomory and Johnson (1972) study the continuous valid functions of the corner polyhedron.

Setting

Let AAA be an integer m×(m+n)m\times(m+n)m×(m+n) matrix of the form (A′,I)(A',I)(A′,I), let b∈Zmb\in\mathbb Z^mb∈Zm and c∈Rm+nc\in\mathbb R^{m+n}c∈Rm+n. Problem P1 is

max⁡ z1=cxs.t.Ax=b, x≥0,\max\ z_1=cx\quad\text{s.t.}\quad Ax=b,\ x\ge0,max z1​=cxs.t.Ax=b, x≥0,

and P2 is P1 with xxx integer. A basis is a nonsingular m×mm\times mm×m submatrix BBB of AAA; after rearranging, A=(B,N)A=(B,N)A=(B,N) with B=(α1,…,αm)B=(\alpha_1,\dots,\alpha_m)B=(α1​,…,αm​) and N=(αm+1,…,αm+n)N=(\alpha_{m+1},\dots,\alpha_{m+n})N=(αm+1​,…,αm+n​), and c=(cB,cN)c=(c_B,c_N)c=(cB​,cN​). The relative cost of a nonbasic column is ci∗=ci−cBB−1αic^*_i=c_i-c_BB^{-1}\alpha_ici∗​=ci​−cB​B−1αi​, and BBB is an optimal basis when all ci∗≤0c^*_i\le0ci∗​≤0. The cone of the basis is KB={β∈Rm:B−1β≥0}K^B=\{\beta\in\mathbb R^m: B^{-1}\beta\ge0\}KB={β∈Rm:B−1β≥0}; removing from it all points within Euclidean distance ddd of its boundary gives the reduced cone KB(d)K^B(d)KB(d).

Let M(I)=ZmM(I)=\mathbb Z^mM(I)=Zm and M(B)=LBM(B)=\mathfrak L_BM(B)=LB​ the lattice of integer combinations of α1,…,αm\alpha_1,\dots,\alpha_mα1​,…,αm​. The factor module M(I)/M(B)M(I)/M(B)M(I)/M(B) is a finite abelian group with D=∣det⁡B∣D=|\det B|D=∣detB∣ elements; write αˉi\bar\alpha_iαˉi​, bˉ\bar bbˉ for the classes of αi\alpha_iαi​, bbb. The group problem (4) is

max⁡ ∑i=1nci+m∗yis.t.∑i=1nαˉi+myi=bˉ,yi≥0 integer,\max\ \sum_{i=1}^n c^*_{i+m}y_i\quad\text{s.t.}\quad\sum_{i=1}^n\bar\alpha_{i+m}y_i=\bar b,\quad y_i\ge0\text{ integer},max i=1∑n​ci+m∗​yi​s.t.i=1∑n​αˉi+m​yi​=bˉ,yi​≥0 integer,

with optimal value φB(b)\varphi^B(b)φB(b). Finally l=max⁡i>m∥αi∥l=\max_{i>m}\|\alpha_i\|l=maxi>m​∥αi​∥.

Formalization targets

Goal: THEOREM 1 (p. 261)

If b∈KB(l(D−1))b\in K^B(l(D-1))b∈KB(l(D−1)), then P1, P2 and (4) attain their optima, the value z2(b)z_2(b)z2​(b) of P2 is

z2(b)=z1(b)+φB(b),z_2(b)=z_1(b)+\varphi^B(b),z2​(b)=z1​(b)+φB(b),

an optimal solution of P2 is

x(b)=(B−1(b−NyB(b)), yB(b))x(b)=\big(B^{-1}(b-Ny^B(b)),\ y^B(b)\big)x(b)=(B−1(b−NyB(b)), yB(b))

for an optimal solution yB(b)y^B(b)yB(b) of (4) with ∑iyiB(b)≤D−1\sum_iy^B_i(b)\le D-1∑i​yiB​(b)≤D−1, and φB\varphi^BφB, yBy^ByB are mmm-periodic: φB(b+αi)=φB(b)\varphi^B(b+\alpha_i)=\varphi^B(b)φB(b+αi​)=φB(b).

Milestones

In the order of the paper's proof: ∣M(I)/M(B)∣=D|M(I)/M(B)|=D∣M(I)/M(B)∣=D (p. 262); periodicity of (4) (p. 263); the cost identity (5)–(6); "cBB−1bc_BB^{-1}bcB​B−1b is z1(b)z_1(b)z1​(b)", the simplex optimality criterion (a published, proved theorem); the projection of a solution of P2 to a solution of (4); the bound (7), z2(b)≤z1(b)+φ(b)z_2(b)\le z_1(b)+\varphi(b)z2​(b)≤z1​(b)+φ(b); the extension of a solution of (4) to an integer solution; the LEMMA (an optimal solution of (4) with ∑yi≤D−1\sum y_i\le D-1∑yi​≤D−1); and the bound ∥Ny∥≤(D−1)l\|Ny\|\le(D-1)l∥Ny∥≤(D−1)l that places b−Nyb-Nyb−Ny in KBK^BKB.

Companions

THEOREM 2: the optimal x(b)x(b)x(b) satisfies ∑i>mxi=∑iyi≤D−1\sum_{i>m}x_i=\sum_iy_i\le D-1∑i>m​xi​=∑i​yi​≤D−1. THEOREM 4 (with the bound corrected, see below): if an optimal yyy of (4) has ∏i(yi+1)>D\prod_i(y_i+1)>D∏i​(yi​+1)>D, the optimum of (4) is not unique.

Significance

THEOREM 1 reduces integer programming, for right-hand sides far from the boundary of an optimal cone, to a shortest-path-type problem over a group of order DDD: the integer optimum is determined by the LP optimum and a periodic correction, and it can be computed in time polynomial in nnn and DDD (THEOREM 3, not formalized here). It explains why rounding fails while a structured correction succeeds, and it is the starting point of the corner-polyhedron and cutting-plane theory built on the group relaxation. THEOREM 2 bounds how far the integer optimum lies from a lattice point of LB\mathfrak L_BLB​, an early proximity result.

The results are classical and proved in the paper; none of them has a machine-checked proof that this mission is aware of. The mission produces a Lean statement and proof of the asymptotic theorem, together with reusable statements about the group Zm/BZm\mathbb Z^m/B\mathbb Z^mZm/BZm and the zero-sum shortening argument of the LEMMA.

Difficulty

The decomposition z2≤z1+φz_2\le z_1+\varphiz2​≤z1​+φ is a direct computation. The difficulty is the converse: an optimal solution yyy of the group problem extends to an integer point xB=B−1(b−Ny)x_B=B^{-1}(b-Ny)xB​=B−1(b−Ny), but nothing in (4) forces xB≥0x_B\ge0xB​≥0. Optimality of yyy alone does not bound yyy: an optimal solution may carry zero-cost cycles of arbitrary length, and then b−Nyb-Nyb−Ny can leave the cone KBK^BKB. The theorem therefore depends on choosing the right optimal solution of (4), one whose total size is bounded by the group order, and on relating that combinatorial bound to the Euclidean geometry of the cone.

Formalization scope

  • The basis is fixed: BBB is an integer m×mm\times mm×m matrix and NNN an integer m×nm\times nm×n matrix; column jjj of NNN (000-based) is the paper's αm+1+j\alpha_{m+1+j}αm+1+j​. The costs cBc_BcB​, cNc_NcN​ are real.
  • The standing assumptions of pp. 260–262 are hypotheses of the goal: det⁡B≠0\det B\neq0detB=0; every unit vector of Zm\mathbb Z^mZm is a column of BBB or of NNN (the paper's A=(A′,I)A=(A',I)A=(A′,I), without which P2 can be infeasible); all relative costs ci∗≤0c^*_i\le0ci∗​≤0 (BBB is optimal, without which (4) is unbounded).
  • P2's variables are natural numbers (integer and nonnegative). The group problem is written as "b−Ny∈BZmb-Ny\in B\mathbb Z^mb−Ny∈BZm", which is equivalent to ∑αˉi+myi=bˉ\sum\bar\alpha_{i+m}y_i=\bar b∑αˉi+m​yi​=bˉ.
  • Optimal values are greatest elements of the sets of objective values, never suprema; the goal asserts that they are attained.
  • The norm in lll and in KB(d)K^B(d)KB(d) is Euclidean. KB(d)K^B(d)KB(d) is the set of points whose closed ball of radius ddd lies in KBK^BKB. l=0l=0l=0 when n=0n=0n=0.
  • In part (3) of the goal, yB(b)y^B(b)yB(b) ranges over optimal solutions of (4) with ∑iyi≤D−1\sum_iy_i\le D-1∑i​yi​≤D−1, the solutions the paper's LEMMA and dynamic program produce.
  • THEOREM 4 is stated with the hypothesis ∏(yi+1)>D\prod(y_i+1)>D∏(yi​+1)>D: the printed >D−1>D-1>D−1 is false (m=n=1m=n=1m=n=1, B=(2)B=(2)B=(2), N=(1)N=(1)N=(1), c=(2,0)c=(2,0)c=(2,0), b=1b=1b=1 has the unique optimum y=1y=1y=1 with ∏(yi+1)=2\prod(y_i+1)=2∏(yi​+1)=2).
  • A trivializing formalization is ruled out: the goal assumes none of the LEMMA, the inequality (7), integrality of B−1(b−Ny)B^{-1}(b-Ny)B−1(b−Ny) or the norm bound, and it states the existence of the optima instead of assuming them.
  • Not in scope: the operation counts of THEOREM 3 and the recursion (8), which need a machine model the paper does not define.

Needed infrastructure: the cardinality of Zm/BZm\mathbb Z^m/B\mathbb Z^mZm/BZm (available in Mathlib through determinants of basis changes), a zero-sum/pigeonhole argument in a finite abelian group, the simplex optimality criterion (published), and elementary Euclidean estimates. The group-theoretic lemmas are reusable for other group-relaxation and proximity missions. Proofs of the milestones, alternative arguments and the extension to the open-ball reading of KB(d)K^B(d)KB(d) are welcome.

Selected references

  • R. E. Gomory, On the relation between integer and noninteger solutions to linear programs, Proc. Natl. Acad. Sci. USA 53(2):260–265, 1965. https://doi.org/10.1073/pnas.53.2.260
  • R. E. Gomory, Outline of an algorithm for integer solutions to linear programs, Bull. Amer. Math. Soc. 64:275–278, 1958. https://doi.org/10.1090/S0002-9904-1958-10224-4
  • R. E. Gomory, Some polyhedra related to combinatorial problems, Linear Algebra Appl. 2:451–558, 1969. https://doi.org/10.1016/0024-3795(69)90017-2
  • R. E. Gomory and E. L. Johnson, Some continuous functions related to corner polyhedra, Math. Programming 3:23–85, 1972.
  • J. Matoušek and B. Gärtner, Understanding and Using Linear Programming, Springer, 2007 (simplex optimality criterion). https://doi.org/10.1007/978-3-540-30717-4
11 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Scheduling Deteriorating Jobs on a Single Processor II: If E(X_j)/α_j and α_j/[c_j(1+α_j)] Both Increase in j, the Order 1, …, N Minimizes the Weighted Expected Completion Time (Proposition 2)Research Paper

Why deteriorating jobs need a scheduling rule

On one processor, the completion time of a job normally depends on how much work precedes it. In the model of Browne and Yechiali (1990), waiting also changes the job's own processing requirement: a job that starts later takes longer. The sequence therefore changes both when each job starts and how long subsequent jobs must wait. This matters when the goal is a weighted completion cost, because a delay to one job can raise the completion costs of many others.

The paper gives an expected-makespan ordering for this linear deterioration model and, in Proposition 2, a sufficient condition under which the original job order minimizes weighted expected completion cost. The latter is the target of this mission. Related platform work on Delayed SWPT and the AvgCompletionSched family treats weighted completion scheduling without this job-specific linear deterioration. Their additive processing-time models do not supply the completion-time object used here.

Jobs, schedules, and cost

There are NNN jobs, all available at time zero, processed one at a time on a single machine without idle time or preemption. A schedule π\piπ is a permutation of the jobs: π(k)\pi(k)π(k) is the job processed in position kkk. The paper labels positions and jobs from 111 to NNN; the Lean development labels them from 000 to N−1N-1N−1. The identity schedule π0\pi_0π0​ processes jobs in label order.

For job iii, XiX_iXi​ is its random initial processing requirement, αi\alpha_iαi​ its deterministic growth rate, and cic_ici​ its waiting cost rate. If the job starts at time ttt, its actual processing time is Yi(t)=Xi+αitY_i(t)=X_i+\alpha_i tYi​(t)=Xi​+αi​t. Deterioration stops once processing starts. Write Sk(π)S_k(\pi)Sk​(π) for the time at which the first kkk scheduled jobs have all finished. The model sets S0(π)=0S_0(\pi)=0S0​(π)=0 and

Sk+1(π)=Sk(π)+Xπ(k+1)+απ(k+1)Sk(π)S_{k+1}(\pi)=S_k(\pi)+X_{\pi(k+1)}+\alpha_{\pi(k+1)}S_k(\pi)Sk+1​(π)=Sk​(π)+Xπ(k+1)​+απ(k+1)​Sk​(π)

in the paper's one-based position notation. Thus the completion time of the job in position kkk is Sk(π)S_k(\pi)Sk​(π). Its cost is its own rate cπ(k)c_{\pi(k)}cπ(k)​ times that completion time, giving

C(π)=∑k=1Ncπ(k)Sk(π).C(\pi)=\sum_{k=1}^{N}c_{\pi(k)}S_k(\pi).C(π)=k=1∑N​cπ(k)​Sk​(π).

All of these are random quantities until an expectation is taken. Equation (2) of the paper writes SkS_kSk​ as a sum of the initial requirements multiplied by the later growth factors. Equation (8) substitutes that expression into C(π0)C(\pi_0)C(π0​). Both equations are included as milestones, stated along an arbitrary schedule by relabelling the jobs. The third milestone is the exact change in CCC from swapping two adjacent jobs. These three statements are pathwise identities, so their mathematical content does not depend on a probability distribution.

Formalization targets

The principal target is Proposition 2: if both sequences of job-indexed ratios are strictly increasing,

E(X1)α1<⋯<E(XN)αN,α1c1(1+α1)<⋯<αNcN(1+αN),\frac{E(X_1)}{\alpha_1}<\cdots<\frac{E(X_N)}{\alpha_N}, \qquad \frac{\alpha_1}{c_1(1+\alpha_1)} <\cdots< \frac{\alpha_N}{c_N(1+\alpha_N)},α1​E(X1​)​<⋯<αN​E(XN​)​,c1​(1+α1​)α1​​<⋯<cN​(1+αN​)αN​​,

then, for every permutation σ\sigmaσ,

E[C(π0)]≤E[C(σ)].E[C(\pi_0)]\le E[C(\sigma)].E[C(π0​)]≤E[C(σ)].

The first ratio compares an initial expected requirement with its growth rate. The second couples growth and the cost rate. The conclusion is global optimality over the paper's whole class of nonpreemptive, non-idling permutations. It does not assert that the identity order is the unique minimizer; strict input ratios do not by themselves justify a uniqueness claim.

The attack path records exactly the supporting statements printed in the paper: the closed completion-time formula (2), the weighted cost formula (8), and the unnumbered adjacent-interchange identity after (8). The milestone quotations preserve the paper's printed display, while the Lean statements use an arbitrary permutation where relabelling permits it. The interchange display has a multiplication dot before its second bracket; expansion for two jobs shows that the term is added. The formal statement records that correction, and the source quotation retains the printed symbol.

What the result establishes

The proposition identifies a directly checkable pair of ordering conditions under which the natural job-label order solves a weighted stochastic scheduling problem. A condition involving only E(Xi)/αiE(X_i)/\alpha_iE(Xi​)/αi​, enough for the paper's expected-makespan target, does not determine this weighted objective. The cost rates introduce another ordering requirement. The result gives a sufficient rule, not a characterization of every optimal schedule or of every parameter choice.

The mathematical result was published in 1990; this mission asks for its machine-checked formalization. A complete development will connect the processing-time recursion, the pathwise cost identities, and the expected optimality statement in Lean. The recursion and cost definitions can be reused for other finite single-machine problems in which a job's processing time depends on its start time. The milestone identities are also useful independently of the final sufficient condition, including for studying other choices of weights and ordering indices.

Where the argument is difficult

Sorting by expected initial requirement alone cannot settle the problem, because processing a job changes later start times and hence later processing times. Even sorting by the expected-makespan index leaves the cost rates unaccounted for. The value of an adjacent swap depends on the elapsed time before the pair and on the completion costs of jobs after the pair. It is not enough to compare the two jobs' own completion costs in isolation.

The source states the sufficient condition after its interchange display but does not present a full proof of the global claim. Closing the Lean goal requires connecting local comparisons to every schedule and handling the expected value of the recursively defined cost. The identities are finite, but their indices change between zero-based Lean positions and the paper's one-based display, especially at the first position and at an empty suffix.

Formalization scope

Jobs are Fin N\mathrm{Fin}\,NFinN, and a policy is an equivalence permutation with π(k)\pi(k)π(k) equal to the job in position kkk. Completion time is defined by the processing rule Yi(t)=Xi+αitY_i(t)=X_i+\alpha_i tYi​(t)=Xi​+αi​t, not by the closed form (2). At positions beyond the NNN jobs it stays constant, and theorems about the closed form restrict kkk to 0≤k≤N0\le k\le N0≤k≤N. The total cost is defined from job-weighted completion times, not from equation (8). This keeps both identities substantive.

The proposition uses a probability space and the Bochner integral of the real-valued cost. Every XiX_iXi​ is integrable, so its expectation and the finite linear combinations appearing in the cost are meaningful. Initial requirements are nonnegative at every outcome, reflecting the paper's standing positive-processing convention; strict positivity is unnecessary for the claim. Growth rates and cost rates are strictly positive. Those two assumptions make the printed ratios well-defined and support the ordering rule. The paper's common independence convention is not required for these expectations and is not assumed.

The two strict orderings are over the labels of jobs in π0\pi_0π0​, not positions of an arbitrary schedule. The conclusion compares π0\pi_0π0​ with every permutation, not only with schedules obtained by one adjacent swap. The N=0N=0N=0 and N=1N=1N=1 cases are allowed: the order conditions have no pair to compare, and there is only one permutation. Solvers may contribute the finite-sum, interchange, and integrability facts needed to link the milestones to Proposition 2. The pathwise identities require no probability assumptions and can support later variants.

Selected references

  • Browne, Sid, and Uri Yechiali, Scheduling Deteriorating Jobs on a Single Processor, Operations Research 38(3), 495–498 (1990). DOI: 10.1287/opre.38.3.495.
6 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Bounds on Multiprocessing Timing Anomalies 2: Scheduling the k Longest Independent Tasks Optimally First Gives ω(k)/ω₀ ≤ 1 + (1 − 1/n)/(1 + ⌊k/n⌋)Research Paper

Motivation

Parallel processing poses a basic allocation question: given tasks of known lengths and several identical processors, how much time is lost when tasks are assigned by a simple list rule instead of an optimal allocation? The finishing time is the moment the last processor completes its work. For independent tasks, a list rule starts each next task on a processor that becomes free first. Such a rule is easy to execute, but the resulting allocation can be worse than the best partition of tasks among processors. Graham's 1969 paper studies precise worst-case ratios for this model. Its Theorem 3 asks what guarantee follows when the first kkk tasks of the list are chosen among the longest and scheduled optimally before the remaining tasks are appended.

The paper also notes two endpoints of this family. With k=0k=0k=0, the rule is ordinary list scheduling and has ratio at most 2−1/n2-1/n2−1/n. With k=nk=nk=n, the nnn longest tasks can start one per processor, giving ratio at most 3/2−1/(2n)3/2-1/(2n)3/2−1/(2n). Theorem 3 expresses these as instances of one bound, including the integer jump at each multiple of nnn Graham, pp. 427–428.

Setting

There are r>0r>0r>0 independent tasks, indexed by jin{0,…,r−1}jin\{0,\ldots,r-1\}jin{0,…,r−1}, and n>0n>0n>0 identical processors, indexed by p∈{0,…,n−1}p\in\{0,\ldots,n-1\}p∈{0,…,n−1}. Task jjj takes a strictly positive time μj\mu_jμj​. A priority list LLL contains every task exactly once. Its first kkk tasks are kkk of the longest tasks; equal lengths may be ordered either way. As a processor becomes available, it takes the next task in the list. Once started, a task runs without interruption. With no precedence constraints, every unstarted task is ready, so a processor runs its assigned tasks consecutively from time zero.

An assignment σ\sigmaσ records the processor that executes each task. The load ℓp(σ)\ell_p(\sigma)ℓp​(σ) of processor ppp is the sum of its assigned task lengths. The finishing time is the largest load, ω(k)=max⁡pℓp(σ)\omega(k)=\max_p\ell_p(\sigma)ω(k)=maxp​ℓp​(σ). For a list assignment, each task is assigned to a processor whose load from earlier list tasks is smallest at that step. If two processors are tied, either can be selected without changing the finishing time. For any assignment τ\tauτ, let ωk(τ)\omega_k(\tau)ωk​(τ) be the largest load contributed by only the first kkk list tasks. The algorithm requires its own first kkk assignments to minimize ωk(τ)\omega_k(\tau)ωk​(τ) over all assignments τ\tauτ; the remaining tasks may occur in any list order.

Write ω0\omega_0ω0​ for the smallest finishing time achievable for all rrr tasks. The paper introduces it as the minimum over possible lists and later describes the same problem as minimizing the largest part sum over partitions of the task lengths Graham, pp. 421, 428. The formalization uses the partition or assignment form of ω0\omega_0ω0​.

Formalization targets

Theorem 3

For 0≤k≤r0\le k\le r0≤k≤r, when the first kkk longest tasks have an optimal prefix schedule, Graham's bound is

ω(k)ω0≤1+1−1/n1+⌊k/n⌋.\frac{\omega(k)}{\omega_0} \le 1+\frac{1-1/n}{1+\lfloor k/n\rfloor}.ω0​ω(k)​≤1+1+⌊k/n⌋1−1/n​.

Here ⌊k/n⌋\lfloor k/n\rfloor⌊k/n⌋ is the greatest integer at most k/nk/nk/n. The theorem also says the bound is best possible when kkk is divisible by nnn Graham, Theorem 3, p. 427. The equality examples are a separate companion statement in this mission.

Source milestones

The milestones state the finite-volume lower bound on ω0\omega_0ω0​, the case in which completing all tasks takes no longer than completing the first kkk, and the paper's numbered inequalities (14), (15), and (16). They use α∗\alpha^*α∗ for the greatest task length after the first kkk positions. These are individual mathematical claims from the proof on p. 427, with their original wording and formulas recorded alongside the formal statements.

Significance

The theorem gives a quantitative tradeoff between work spent optimizing a prefix and the worst-case finishing time of the full list. Its denominator is 1+⌊k/n⌋1+\lfloor k/n\rfloor1+⌊k/n⌋, so the guarantee improves when the optimized prefix contains another full processor's worth of long tasks. The example at multiples of nnn shows that the stated coefficient cannot be uniformly reduced for the algorithm as specified Graham, p. 427.

The result is proved in the paper. This mission's remaining work is a machine-checked proof of its exact statement and the source's intermediate inequalities. The published identical-machine makespan definition is reused, while the list-assignment rule, optimal prefix, and longest-remaining-task quantity are made explicit here. Those definitions can also support later work on list scheduling without precedence constraints. No machine-checked proof of Theorem 3 is claimed by this proposal.

Difficulty

An optimal schedule for the first kkk long tasks does not make the entire list optimal: short tasks appended later can affect which processor finishes last. A bound based only on average total work ignores this final imbalance; a bound based only on the largest remaining task ignores how many long tasks every assignment must place together. The proof must relate both constraints to one finishing time while preserving the floor ⌊k/n⌋\lfloor k/n\rfloor⌊k/n⌋. Replacing that floor with the real quotient changes the claim, and allowing an arbitrary prefix arrangement loses the algorithm's required optimality.

Formalization scope

Tasks and processors are finite indexed sets Fin r and Fin n; their zero-based indices correspond to the paper's one-based TjT_jTj​ and PiP_iPi​. Task lengths are positive real numbers, and both rrr and nnn are positive. The list is a permutation, not merely a sequence that might omit or repeat a task. The condition k≤rk\le rk≤r is explicit because choosing kkk tasks from rrr requires it; the paper treats r>kr>kr>k inside the proof and the case k=rk=rk=r is covered by the theorem. There is no precedence relation in this mission.

The list rule is a predicate on assignments: each next task goes to a processor with least current load. It omits the paper's smaller-index tie convention, since tied identical processors can be interchanged without changing the finishing time. The first kkk positions must contain kkk longest tasks, and their assignment must minimize the prefix finishing time among all assignments of those tasks. Those conditions are part of the goal; the inequalities (14)–(16) are conclusions to establish, not assumptions of the goal. A separate existence statement and a checked concrete instance ensure the list predicate is satisfiable.

All maxima and minima range over finite nonempty processor or assignment sets. The optimum is a minimum over assignments, equivalent to the paper's minimum over lists in the independent-task model. The quantity α∗\alpha^*α∗ is the largest duration outside the prefix when k<rk<rk<r, and is defined as zero when none remains; statements using it require k<rk<rk<r. Division is by n>0n>0n>0 and by ω0>0\omega_0>0ω0​>0. Lean's natural-number quotient represents ⌊k/n⌋\lfloor k/n\rfloor⌊k/n⌋; real subtraction is used for coefficients such as n−1n-1n−1. Contributions toward the finite load identities, the optimum-over-lists equivalence, and proofs of the listed bounds are within scope.

Selected references

  • R. L. Graham, Bounds on Multiprocessing Timing Anomalies, SIAM Journal on Applied Mathematics 17(2), 416–429, 1969. DOI: 10.1137/0117039.
8 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Bounds on Multiprocessing Timing Anomalies 1: Changing the List, Relaxing the Order, Shortening the Tasks and Using n′ Processors Multiplies the Finishing Time by at Most 1 + (n − 1)/n′Research Paper

Motivation

Scheduling work on several identical processors creates a plausible expectation: completing tasks sooner, removing constraints, or adding a processor should not delay the overall finish. A fixed priority-list rule defeats that expectation. When a task becomes ready earlier, it can occupy a processor that would otherwise have run another task; that decision changes later availability. Graham gives explicit schedules in which changing only the list raises the finishing time from 12 to 14, removing two precedence constraints raises it to 16, shortening every task raises it to 13, or adding one processor raises it to 15. These examples establish that the effect is a property of the scheduling rule, rather than of a change in the total set of tasks. See Graham, §2, pp. 417–419.

This mission concerns the upper limit of that effect. An operations researcher comparing a list schedule before and after a change in available processors or task data needs a bound that survives all four changes at once. The result is also a compact benchmark for formalizing algorithms whose behavior depends on changing availability: the model must describe when tasks become ready, when processors are idle, and which ready task a processor takes next. Graham's Theorem 1, proved in the 1969 paper, supplies the bound.

Setting

There are rrr tasks T1,…,TrT_1,\ldots,T_rT1​,…,Tr​ and nnn identical processors. Each task TjT_jTj​ has a positive processing time μ(Tj)\mu(T_j)μ(Tj​). A strict precedence order ≺\prec≺ specifies tasks that must be completed first: Ti≺TjT_i\prec T_jTi​≺Tj​ means TjT_jTj​ cannot start before TiT_iTi​ ends. A priority list LLL orders all tasks once each. It may place a successor before a predecessor, because the processor skips any task that is not ready. These conventions are those of Graham's system in §2, p. 416.

A schedule gives each task a processor and a start time Sj≥0S_j\ge0Sj​≥0. Once started, the task occupies that processor continuously on [Sj,Sj+μ(Tj))[S_j,S_j+\mu(T_j))[Sj​,Sj​+μ(Tj​)). Two tasks on one processor cannot overlap, while tasks may meet at an endpoint. Precedence means Si+μ(Ti)≤SjS_i+\mu(T_i)\le S_jSi​+μ(Ti​)≤Sj​ whenever Ti≺TjT_i\prec T_jTi​≺Tj​. The finishing time ω\omegaω is the largest completion time Sj+μ(Tj)S_j+\mu(T_j)Sj​+μ(Tj​). The paper's list rule starts the first currently ready task in LLL whenever a processor can take a task. A ready task that has not started cannot coexist with an idle processor. If one task starts while another ready task waits, the started task is earlier in LLL.

The same task set is run a second time, with processing times μ′\mu'μ′, order ≺′\prec'≺′, list L′L'L′, processor count n′n'n′, and finishing time ω′\omega'ω′. The data satisfy μ′(Tj)≤μ(Tj)\mu'(T_j)\le\mu(T_j)μ′(Tj​)≤μ(Tj​) for every jjj and ≺′⊆≺\prec'\subseteq\prec≺′⊆≺. Thus the second run may have shorter tasks and fewer precedence relations; both lists may differ arbitrarily. Both runs obey the same list-scheduling rule Graham, §3, p. 419.

Formalization targets

General anomaly bound

For r,n,n′≥1r,n,n'\ge1r,n,n′≥1, positive processing times in both runs, and the two list schedules just described, the target is Graham's Theorem 1:

ω′ω≤1+n−1n′.\frac{\omega'}{\omega}\le 1+\frac{n-1}{n'}.ωω′​≤1+n′n−1​.

The numerator and denominator refer to the actual runs, with potentially different lists and processor counts. The conclusion does not require the new schedule to finish earlier. Its factor permits the anomalies shown in §2 while preventing an arbitrarily large increase for fixed n,n′n,n'n,n′. The supporting targets follow the proof's numbered displays: a precedence chain covering idle times in the second run (1), an idle-time estimate for that chain (2), a comparison of its length with the first run (3)–(4), and the work-volume bound used in (5) Graham, pp. 419–420.

Significance

The theorem places a quantitative limit on the damage caused by a list rule after simultaneous changes in task durations, precedence, ordering, and capacity. When n′=nn'=nn′=n, the factor is 2−1/n2-1/n2−1/n; when the first run has one processor, it is 111. The statement applies to every finite task set and every pair of lists, so it can be reused when a scheduling method produces a list without additional structural guarantees. Graham states that the bound is best possible, citing earlier examples; this mission formalizes the inequality in this paper and does not claim to formalize those external examples Graham, p. 420.

The result is proved in the source paper. The work here is to give its objects precise Lean definitions and to supply machine-checked proofs of the bound and its supporting claims. A formal development needs to account for continuous real start times, processor assignments, half-open execution intervals, and the behavior of the list rule when several tasks or processors become available together. The resulting model of a nonpreemptive list schedule and the basic volume and chain estimates can serve later formalizations of parallel scheduling. The present proposal contains statements and definitions; its theorem bodies are open proof obligations.

Difficulty

Total work alone does not control the anomaly: processors can be idle while precedence keeps available work from starting, and changing precedence can alter which tasks occupy the processors later. A direct comparison of corresponding task completion times between the two runs also fails in Graham's §2 examples. The central difficulty is expressing the second run's idle periods through work on a single precedence chain and then relating that chain to the first run's finishing time. In Lean, the chain and the time intervals must be represented without silently changing endpoint conventions or treating a ready but unstarted task as running.

Formalization scope

Tasks are Fin r and processors are Fin n, with zero-based Lean indices corresponding to Graham's one-based subscripts. Processing times and start times are real. A priority list is a bijection between positions and tasks, so it contains every task exactly once and need not respect precedence. The order is strict. Feasible schedules are nonpreemptive and use half-open running intervals. The finishing time is a finite maximum of completion times; for no tasks it is defined as zero, while the ratio theorem assumes r>0r>0r>0 so its denominator is positive. Both processor counts are positive. The strict positivity of both time functions is inherited from the paper's μ:T→(0,∞)\mu:T\to(0,\infty)μ:T→(0,∞) convention.

The model captures Graham's rule by no unforced idleness and list priority. It does not encode the smaller-index tie rule for identical processors, since the tie affects only processor labels and not start times or ω\omegaω. The covering-chain milestone represents Graham's set BBB as times before ω′\omega'ω′ when not all processors are busy; all-idle times before the finish cannot occur under the list rule. The idle-time milestone writes the total duration of empty tasks as n′ω′−∑jμ′(Tj)n'\omega'-\sum_j\mu'(T_j)n′ω′−∑j​μ′(Tj​) using display (5). Natural-number subtraction is not used in the constants: n−1n-1n−1 and n′−1n'-1n′−1 are real differences. The companion existence statement and a concrete two-task sanity check rule out a vacuous list-schedule predicate. Contributions can address that existence theorem, the chain construction, interval accounting, the volume bound, and the final ratio.

Selected references

  • R. L. Graham, Bounds on Multiprocessing Timing Anomalies, SIAM Journal on Applied Mathematics 17(2), 416–429, 1969. DOI: 10.1137/0117039.
7 thms2 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryOperations Research·Captain: mikedeng1

On Representatives of Subsets: Two Partitions into m Classes Have a Common System of Representatives When Any k Classes of One Meet at Least k Classes of the OtherResearch Paper

Motivation

Many assignment questions reduce to one combinatorial question: given finitely many sets, can one choose a different element from each? Workers are matched to jobs they are qualified for, rows of a matrix to columns with nonzero entries. The criterion for when this is possible is Hall's marriage theorem, first stated and proved by P. Hall in a five-page note in 1935 (DOI 10.1112/jlms/s1-10.37.26). It underlies bipartite matching, the integrality of the assignment polytope, the Birkhoff–von Neumann theorem on doubly stochastic matrices, and transversal theory in matroids.

Hall's note was written with a second question in view. In 1916 D. König proved, in the language of bipartite graphs, that if a set of mnmnmn things is divided into mmm classes of nnn things in two ways, then one can choose mmm things that represent every class of both divisions at once ("Über Graphen und ihre Anwendungen", Math. Annalen 77 (1916), 453). Van der Waerden (1927) and Sperner (1927) gave the set-theoretic form and a short proof. Hall's contribution was a criterion for a common system of representatives of two divisions in which the classes need not have equal sizes, obtained from the marriage theorem in two short steps.

Setting

Let SSS be any set, finite or infinite, and let

T1,T2,…,Tm(1)T_1, T_2, \dots, T_m \tag{1}T1​,T2​,…,Tm​(1)

be a finite system of subsets of SSS. The sets TiT_iTi​ may be infinite and need not be distinct; when one speaks of kkk of the sets, kkk indices are meant, so a repeated set is counted with multiplicity. A complete set of distinct representatives, or C.D.R., of (1) is a choice of pairwise distinct elements a1,…,ama_1, \dots, a_ma1​,…,am​ of SSS with

ai∈Ti(i=1,…,m).a_i \in T_i \qquad (i = 1, \dots, m).ai​∈Ti​(i=1,…,m).

The system satisfies Hall's condition when any kkk of the sets contain between them at least kkk elements of SSS, for k=1,…,mk = 1, \dots, mk=1,…,m. The meet of all C.D.R.s, written RRR, is the set of elements of SSS that occur as a representative in every C.D.R. of (1).

A division of SSS into classes is a family of pairwise disjoint sets S1,S2,…S_1, S_2, \dotsS1​,S2​,… whose union is SSS. The paper writes A∧BA \wedge BA∧B and A∨BA \vee BA∨B for intersection and union; this mission writes A∩BA \cap BA∩B and A∪BA \cup BA∪B.

In Lean the system is T : ι → Set α over a finite index type, a C.D.R. is an injective a : ι → α with a i ∈ T i (IsCDR), Hall's condition is HallCondition, and the meet of all C.D.R.s is cdrMeet, all in the namespace HallReps.CDR.

Formalization targets

Goal: Theorem 3 (pp. 29–30)

Let SSS be divided into mmm classes in two ways, S=S1∪⋯∪Sm=S1′∪⋯∪Sm′S = S_1 \cup \dots \cup S_m = S_1' \cup \dots \cup S_m'S=S1​∪⋯∪Sm​=S1′​∪⋯∪Sm′​, each a division into pairwise disjoint classes. If, for each kkk, any kkk of the classes Sj′S_j'Sj′​ contain between them elements from at least kkk of the classes SiS_iSi​, then for some permutation σ\sigmaσ of {1,…,m}\{1, \dots, m\}{1,…,m} there are elements

ai∈Si∩Sσ(i)′(i=1,…,m).a_i \in S_i \cap S'_{\sigma(i)} \qquad (i = 1, \dots, m).ai​∈Si​∩Sσ(i)′​(i=1,…,m).

The set SSS and the classes may be infinite, and no class is assumed non-empty.

Milestones

  1. Lemma (p. 27). If aaa is a C.D.R. of (1) and RRR is the meet of all C.D.R.s, the sets TiT_iTi​ whose representative aia_iai​ lies in RRR contain between them exactly the elements of RRR, and there are ∣R∣|R|∣R∣ of them.
  2. Induction step, p. 28. With (4) the system T1,…,Tm−1T_1, \dots, T_{m-1}T1​,…,Tm−1​ and R∗R^*R∗ the meet of its C.D.R.s: if Tm⊈R∗T_m \not\subseteq R^*Tm​⊆R∗, then (1) has a C.D.R.
  3. Induction step, p. 29. If (4) has a C.D.R. and Tm⊆R∗T_m \subseteq R^*Tm​⊆R∗, then some ρ+1\rho + 1ρ+1 of the sets, including TmT_mTm​, have union exactly R∗R^*R∗, where ρ=∣R∗∣\rho = |R^*|ρ=∣R∗∣.
  4. Theorem 1 (p. 27). Hall's condition is sufficient for a C.D.R. of (1).
  5. Theorem 2 (p. 29). If SSS is divided into any number of classes and any kkk of the sets TiT_iTi​ contain between them elements from at least kkk classes, there are ai∈Tia_i \in T_iai​∈Ti​ lying in pairwise different classes.

A companion item states König's theorem (§1, p. 26), which the paper deduces from Theorem 3 on p. 30.

Significance

Theorem 3 gives a necessary and sufficient criterion for two partitions of a set into mmm classes to admit a common system of representatives. Necessity is immediate, and the paper proves sufficiency. It contains König's theorem, and through it the statement that a regular bipartite multigraph has a perfect matching, as the case of equal class sizes. Hall remarks that R. Rado's generalization of König's theorem (1933) also follows. Theorem 2, the passage from "distinct elements" to "elements of distinct classes", is the form used for transversals of partitions and is the first instance of what later became the theory of common transversals and matroid intersection.

On the formal side, Hall's theorem for finite sets is in Mathlib as Finset.all_card_le_biUnion_card_iff_existsInjective' (in Mathlib/Combinatorics/Hall/Finite.lean), and the platform already has a proved equivalence for arbitrary sets with a finite index type (YogeshwaranDM.sdr_iff, included in this mission as a reference item) as well as finite bipartite-graph forms. For that reason Theorem 1 is a milestone and not the goal. What this mission adds is Hall's own proof structure, namely the meet of all C.D.R.s and the Lemma about it, which has not been formalized; Theorems 2 and 3 for divisions of a possibly infinite set; and König's theorem in its set-partition form. To our knowledge none of these statements has a machine-checked proof on the platform.

Difficulty

Theorem 3 does not follow from Theorem 1 applied to the classes Sj′S_j'Sj′​ directly. Theorem 1 produces distinct elements, but the conclusion needs elements in distinct classes SiS_iSi​, and two distinct elements of Sj′S_j'Sj′​ may lie in the same SiS_iSi​. The paper's route goes through Theorem 2, which allows any number of classes. That route needs Theorem 1 for systems whose sets can be infinite, because a single TiT_iTi​ may meet infinitely many classes, so the finite-set version of Hall's theorem in Mathlib is not enough on its own. In Hall's own proof of Theorem 1, the work lies in the Lemma. It is an exchange statement about all C.D.R.s at once, whose object RRR is defined by a universal quantifier over C.D.R.s, and it must be established over an arbitrary finite index type with possibly infinite sets.

Formalization scope

  • The ground set is a type α, with no finiteness or decidability assumed. The system (1) is T : ι → Set α with [Finite ι] (or Fin (m + 1) in the two induction steps, where the paper's mmm is the Lean m + 1, its last set is T (Fin.last m), and (4) is fun i : Fin m => T i.castSucc).
  • Cardinalities of unions of the TiT_iTi​ are Set.encard in ℕ∞, so an infinite union counts as infinite. Set.ncard is used only for subsets of Fin m, for the finite set R∗R^*R∗ (with its finiteness stated), and in König's theorem.
  • "kkk of the sets" is a Finset ι of indices, so repeated sets count with multiplicity.
  • Divisions into classes are class maps: cls : α → κ in Theorem 2, with κ arbitrary, and p q : α → Fin m in Theorem 3 and König's theorem. A class map makes the classes cover SSS and be pairwise disjoint by construction. Empty classes are allowed.
  • In Theorem 3 the permutation is existential and chosen together with the representatives. ai∈Si∩Sσ(i)′a_i \in S_i \cap S'_{\sigma(i)}ai​∈Si​∩Sσ(i)′​ is p (a i) = i ∧ q (a i) = σ i.
  • Added or dropped hypotheses: the Lemma assumes a C.D.R. exists, as the page does (without one, cdrMeet is all of α). The first induction step omits the page's C.D.R. of (4), because its hypothesis already implies one. König's theorem adds 0<n0 < n0<n, which the page presumes and without which the statement is false.
  • The trivializing formalizations are ruled out. Typing the TiT_iTi​ as Finset α would reduce Theorem 1 to Mathlib and lose the page's "It is not necessary that the sets TiT_iTi​ shall be finite". Measuring unions by ncard would make Hall's condition fail exactly when a union is infinite. An infinite index type would make Theorem 1 and the Lemma false. None of these is used.
  • Useful contributions include proofs of the Lemma and of the induction steps, a proof of Theorem 1 either from them or from Mathlib's Hall theorem via a reduction to finite sets, and the reductions Theorem 1 → Theorem 2 → Theorem 3 → König.

Selected references

  • P. Hall, On representatives of subsets, J. London Math. Soc. 10 (1935), 26–30. https://doi.org/10.1112/jlms/s1-10.37.26
  • D. König, Über Graphen und ihre Anwendungen auf Determinantentheorie und Mengenlehre, Math. Annalen 77 (1916), 453–465. https://doi.org/10.1007/BF01456961
  • B. L. van der Waerden, Ein Satz über Klasseneinteilungen von endlichen Mengen, Abh. Math. Sem. Hamburg 5 (1927), 185–188. https://doi.org/10.1007/BF02952519
  • R. Rado, Bemerkungen zur Kombinatorik im Anschluss an Untersuchungen von Herrn D. König, Sitzungsber. Berliner Math. Ges. 32 (1933), 60–75.
  • Mathlib, Mathlib/Combinatorics/Hall/Finite.lean and Mathlib/Combinatorics/Hall/Basic.lean. https://github.com/leanprover-community/mathlib4
8 thms3 active usersReviewed
PreviousNext

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