Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Operations Research

2,210 missions · 1,090 completed

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

Missions

Open1120Completed1090All2210
🏆Completed
Bandit AlgorithmsDynamic ProgrammingProbability·Captain: mikedeng1

A Short Proof of the Gittins Index Theorem: For Finite-State Semi-Markov Bandits, Every Priority Policy Ordering States by the Index Algorithm's Indices Is OptimalResearch Paper

Motivation

The multi-armed bandit problem with discounted rewards asks how to allocate effort among nnn independent projects, only one of which can be worked on at a time, when the project worked on evolves randomly and the others stay frozen. It models job scheduling, research planning, search, and sequential clinical experimentation. Gittins and Jones showed in 1974 that the problem has an index solution: each state of each project has a number, computed from that project alone, and it is optimal always to work on the project whose current state has the largest number. The result turns an nnn-dimensional dynamic program into nnn one-dimensional computations.

Several proofs followed, each with its own model and its own definition of the index:

  • Gittins and Jones (1974) and Gittins (1979): the original interchange proofs, with the index as a supremum over stopping times of a reward-to-time ratio.
  • Whittle (1980): a proof through the retirement option and the dynamic-programming equation of the multi-armed problem.
  • Varaiya, Walrand and Buyukkoc (1985): the largest-remaining-index algorithm for finite-state Markov bandits, which computes the indices by removing states one at a time.
  • Weber (1992): the "prevailing charge" proof.
  • Tsitsiklis (1994): the short proof formalized here, for semi-Markov bandits with finite state spaces, by induction on the total number of states, with the indices produced by an index algorithm of the largest-remaining-index type.

Setting

There are n≥1n\ge1n≥1 bandit processes. Bandit iii has a finite nonempty state space Xi\mathcal X_iXi​, and X=X1∪⋯∪Xn\mathcal X=\mathcal X_1\cup\cdots\cup\mathcal X_nX=X1​∪⋯∪Xn​ is their disjoint union. When bandit iii at state x∈Xix\in\mathcal X_ix∈Xi​ is played, a random reward R(x)R(x)R(x) is received, the bandit is busy for a random time T(x)≥0T(x)\ge0T(x)≥0, and it then moves to a random state Y(x)∈XiY(x)\in\mathcal X_iY(x)∈Xi​; the other bandits do not move. The joint law of (T(x),R(x),Y(x))(T(x),R(x),Y(x))(T(x),R(x),Y(x)) depends only on xxx, and different plays are independent.

A policy is a map π:X1×⋯×Xn→{1,…,n}\pi:\mathcal X_1\times\cdots\times\mathcal X_n\to\{1,\dots,n\}π:X1​×⋯×Xn​→{1,…,n}: at time zero and at every play completion time it chooses the bandit to play from the current states. With tit_iti​ the start time and RiR_iRi​ the reward of the iii-th play and a discount rate β>0\beta>0β>0, the expected discounted reward from the initial joint state zzz is

Jπ(z)=E[∑i=1∞Rie−βti].J_\pi(z)=\mathbb E\Big[\sum_{i=1}^{\infty}R_i e^{-\beta t_i}\Big].Jπ​(z)=E[i=1∑∞​Ri​e−βti​].

A policy is optimal if it maximizes Jπ(z)J_\pi(z)Jπ​(z) for every initial state zzz. A priority rule is a policy for which some ordering of X\mathcal XX makes it always play the bandit whose current state is ordered highest.

The reward rate of a state is

r(x)=E[R(x)]E[∫0T(x)e−βt dt].(2.1)r(x)=\frac{\mathbb E[R(x)]}{\mathbb E\big[\int_0^{T(x)}e^{-\beta t}\,dt\big]}. \tag{2.1}r(x)=E[∫0T(x)​e−βtdt]E[R(x)]​.(2.1)

Reducing bandit i∗i^*i∗ by removing a state s∗s^*s∗ merges every play that ends in s∗s^*s∗ with the following run of plays at s∗s^*s∗ into one composite play, whose reward rate is r^(x)\hat r(x)r^(x) of (2.3). The index algorithm repeatedly picks a state s∗s^*s∗ of maximal current rate, sets its index γ(s∗)\gamma(s^*)γ(s∗) to that rate, and reduces its bandit by removing s∗s^*s∗ (or removes the bandit if s∗s^*s∗ was its last state).

Formalization targets

Goal: Theorem 2.2

Let γ\gammaγ be the indices of a run of the index algorithm. Then every priority rule whose ordering satisfies

γ(y)<γ(x) ⟹ y is ordered below x\gamma(y)<\gamma(x)\ \Longrightarrow\ y \text{ is ordered below } xγ(y)<γ(x) ⟹ y is ordered below x

is optimal. Ties in γ\gammaγ may be ordered either way, and the run may break ties in its own choices arbitrarily.

Milestones, in the order the proof uses them

  1. (2.2), the interchange inequality E[(1−e−βτ)∫0T(s∗)r(s∗)e−βtdt]≥E[(1−e−βT(s∗))∫0τrˉ(t)e−βtdt]\mathbb E\big[(1-e^{-\beta\tau})\int_0^{T(s^*)}r(s^*)e^{-\beta t}dt\big]\ge\mathbb E\big[(1-e^{-\beta T(s^*)})\int_0^{\tau}\bar r(t)e^{-\beta t}dt\big]E[(1−e−βτ)∫0T(s∗)​r(s∗)e−βtdt]≥E[(1−e−βT(s∗))∫0τ​rˉ(t)e−βtdt] when rˉ≤r(s∗)\bar r\le r(s^*)rˉ≤r(s∗).
  2. Lemma 2.1: if r(s∗)=max⁡xr(x)r(s^*)=\max_{x}r(x)r(s∗)=maxx​r(x), some optimal policy always plays bandit i∗i^*i∗ when it is at s∗s^*s∗.
  3. Reduction step: optimizing within the policies giving s∗s^*s∗ top priority is a bandit problem with one state fewer, the reduced bandit with rates (2.3).
  4. Theorem 2.1: some priority rule is optimal.
  5. Pick-order optimality: a priority rule that orders the states as a run of the index algorithm picks them is optimal.
  6. Index monotonicity: along a run, γ(s∗)≥γ(q∗)\gamma(s^*)\ge\gamma(q^*)γ(s∗)≥γ(q∗) for consecutive picks s∗,q∗s^*,q^*s∗,q∗.
  7. Picked-before characterization: xxx can be picked before yyy (in a run with the same indices) if and only if γ(x)≥γ(y)\gamma(x)\ge\gamma(y)γ(x)≥γ(y).

Significance

The theorem shows that the optimal priority order is determined by numbers that, by the reduction formulas, depend only on the statistics of each bandit separately. It is the basis of index policies in scheduling (the cμc\mucμ rule and its semi-Markov generalizations), of Klimov's problem and of branching bandits, which the paper's Section 3 obtains by modifying the same argument.

The result has been proved many times, but not in this generality on Prove2Me. The platform has a discrete-time Gittins index theorem for arms sharing one transition kernel and one reward function, with the index defined as a stopping-time supremum. This mission adds semi-Markov dynamics with random play durations and continuous discounting, heterogeneous finite bandits, priority rules, and the index algorithm as the definition of the index. A complete development would also give a machine-checked proof of correctness of a state-elimination algorithm for computing Gittins indices.

Difficulty

Lemma 2.1 compares an optimal stationary policy with a modified policy that is not stationary, and closes the gap by the optimality of stationary policies, which itself requires the dynamic-programming theory of discounted semi-Markov decision problems with finite state spaces. The reduction step requires an exact identification of the values of all top-priority policies with values in a different problem whose plays are composite and may never end. Theorem 2.1 is an induction over a family of problems with shrinking state spaces that are no longer raw semi-Markov bandits. Theorem 2.2 adds ties: a priority order compatible with the indices need not be the order of the given run, and one needs another run with the same indices.

Formalization scope

  • Bandits are indexed by Fin n (0,…,n−10,\dots,n-10,…,n−1), with n≥1n\ge1n≥1 and each state type finite and nonempty. X\mathcal XX is the sigma type Σ i, X i, disjoint by construction.
  • The law of (T(x),R(x),Y(x))(T(x),R(x),Y(x))(T(x),R(x),Y(x)) is a probability measure on R×R×Xi\mathbb R\times\mathbb R\times\mathcal X_iR×R×Xi​ with T≥0T\ge0T≥0 almost surely and RRR integrable. The model also assumes P(T(x)>0)>0\mathbb P(T(x)>0)>0P(T(x)>0)>0, which the page leaves implicit: it makes the denominator of (2.1) nonzero.
  • JπJ_\piJπ​ is computed from the moments E[R(x)]\mathbb E[R(x)]E[R(x)] and D(x,y)=E[e−βT(x);Y(x)=y]D(x,y)=\mathbb E[e^{-\beta T(x)};Y(x)=y]D(x,y)=E[e−βT(x);Y(x)=y]: it is the limit of the expected discounted reward of the first kkk plays, given by the first-step recursion. No path space is constructed. The row sums of DDD are below 111, so the limit exists; it never mentions rates, indices or reductions.
  • Policies are the paper's stationary deterministic maps of the current joint state, and optimality is within that class, for every initial state. An ordering of X\mathcal XX is an injective ranking into N\mathbb NN.
  • The reduced bandit is given by explicit formulas for its expected discounted reward, discounted duration and discounted transition data. These make the page's "transition probabilities are suitably modified" concrete, and the reduced rate is (2.3). Removing a bandit is the reduction of its last state.
  • The index is that of any run of the index algorithm, with arbitrary tie choices.

A formalization in which the value of a policy is defined through rates or indices, or in which γ\gammaγ is any function compatible with some order rather than the output of the algorithm, would make the goal trivial or empty; both are excluded by the definitions above.

Needed infrastructure: the convergence of the kkk-play values and the first-step (Bellman) equation for JπJ_\piJπ​; existence of an optimal stationary policy for finite discounted semi-Markov problems; the value identity for composite plays. The last two are reusable for any finite semi-Markov decision problem. Proofs of individual milestones, alternative arguments (Weber's prevailing charge, the retirement formulation), and the separability statement of p. 198 ("the index algorithm can be carried out separately for each different bandit") are welcome.

Selected references

  • J. N. Tsitsiklis, A Short Proof of the Gittins Index Theorem, Annals of Applied Probability 4(1) (1994), 194–199.
  • J. C. Gittins and D. M. Jones, A dynamic allocation index for the sequential design of experiments, in Progress in Statistics (J. Gani et al., eds.), North-Holland, 1974, 241–266.
  • J. C. Gittins, Bandit processes and dynamic allocation indices, J. Roy. Statist. Soc. Ser. B 41 (1979), 148–177. https://doi.org/10.1111/j.2517-6161.1979.tb01068.x
  • P. Whittle, Multi-armed bandits and the Gittins index, J. Roy. Statist. Soc. Ser. B 42 (1980), 143–149. https://doi.org/10.1111/j.2517-6161.1980.tb01111.x
  • P. P. Varaiya, J. C. Walrand and C. Buyukkoc, Extensions of the multiarmed bandit problem: the discounted case, IEEE Trans. Automat. Control 30 (1985), 426–439. https://doi.org/10.1109/TAC.1985.1103989
  • R. Weber, On the Gittins index for multiarmed bandits, Annals of Applied Probability 2(4) (1992), 1024–1033. https://doi.org/10.1214/aoap/1177005588
11 thms3 active usersReviewed
🏆Completed
Complexity TheoryLinear OptimizationOptimization·Captain: mikedeng1

On Adaptive-Step Primal-Dual Interior-Point Algorithms for Linear Programming 2: The Adaptive-Step Algorithm in N∞(β) or N∞⁻(β) with γ ≤ 2(1 − β) Attains Precision t in O(nt) IterationsResearch Paper

Why wide neighbourhoods

Primal-dual interior-point methods solve a linear program by following, approximately, the central path of strictly feasible primal-dual pairs whose complementarity products xjsjx_js_jxj​sj​ are all equal. Every such method confines its iterates to a neighbourhood of that path, and the neighbourhood governs both the theory and the practice. The first primal-dual path-following algorithm, by Kojima, Mizuno and Yoshise (1989), used the one-sided neighbourhood {xjsj≥12 xTs/n}\{x_js_j \ge \tfrac12\,x^Ts/n\}{xj​sj​≥21​xTs/n} and attained precision ttt in O(nt)O(nt)O(nt) iterations. Kojima–Mizuno–Yoshise and Monteiro–Adler then switched to the narrow Euclidean neighbourhood N2(β)\mathcal N_2(\beta)N2​(β) and improved the bound to O(n t)O(\sqrt n\,t)O(n​t). Practical codes nevertheless favour wide neighbourhoods, which allow long steps.

Mizuno, Todd and Ye (Cornell ORIE Technical Report 944, 1990, revised 1991; published in Mathematics of Operations Research 18(4), 1993) analyse adaptive-step algorithms, which at every iteration take the longest step that keeps the iterate in the neighbourhood. This mission formalizes their §4: the adaptive-step algorithm in the wide neighbourhoods N∞(β)\mathcal N_\infty(\beta)N∞​(β) and N∞−(β)\mathcal N_\infty^-(\beta)N∞−​(β) attains precision ttt in O(nt)O(nt)O(nt) iterations. With β\betaβ close to 111, N∞−(β)\mathcal N_\infty^-(\beta)N∞−​(β) contains almost all of the strictly feasible set.

Setting

Fix n≥1n\ge1n≥1, m≥0m\ge0m≥0, A∈Rm×nA\in\mathbb R^{m\times n}A∈Rm×n, b∈Rmb\in\mathbb R^mb∈Rm, c∈Rnc\in\mathbb R^nc∈Rn, and consider

(P) min⁡ cTx  s.t. Ax=b, x≥0,(D) max⁡ bTy  s.t. ATy+s=c, s≥0.\text{(P)}\ \min\ c^Tx\ \text{ s.t. } Ax=b,\ x\ge0,\qquad \text{(D)}\ \max\ b^Ty\ \text{ s.t. } A^Ty+s=c,\ s\ge0 .(P) min cTx  s.t. Ax=b, x≥0,(D) max bTy  s.t. ATy+s=c, s≥0.

The strictly feasible pairs F0\mathcal F^0F0 are the (x,s)(x,s)(x,s) with x>0x>0x>0, s>0s>0s>0, Ax=bAx=bAx=b, and ATy+s=cA^Ty+s=cATy+s=c for some yyy. For such a pair the duality gap is xTsx^TsxTs, and the duality measure is μ=xTs/n\mu=x^Ts/nμ=xTs/n. Write X=diag⁡(x)X=\operatorname{diag}(x)X=diag(x), S=diag⁡(s)S=\operatorname{diag}(s)S=diag(s) and e=(1,…,1)Te=(1,\dots,1)^Te=(1,…,1)T.

Norms: ∥⋅∥\|\cdot\|∥⋅∥ is the Euclidean norm, ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ the maximum norm, and ∥z∥∞−:=∥z−∥∞\|z\|^-_\infty:=\|z^-\|_\infty∥z∥∞−​:=∥z−∥∞​, ∥z∥∞+:=∥z+∥∞\|z\|^+_\infty:=\|z^+\|_\infty∥z∥∞+​:=∥z+∥∞​ with (z−)j=min⁡{zj,0}(z^-)_j=\min\{z_j,0\}(z−)j​=min{zj​,0} and (z+)j=max⁡{zj,0}(z^+)_j=\max\{z_j,0\}(z+)j​=max{zj​,0}. For β∈(0,1)\beta\in(0,1)β∈(0,1) the wide neighbourhoods are

N∞(β)={(x,s)∈F0: ∥Xs−μe∥∞≤βμ},N∞−(β)={(x,s)∈F0: ∥Xs−μe∥∞−≤βμ}.\mathcal N_\infty(\beta)=\{(x,s)\in\mathcal F^0:\ \|Xs-\mu e\|_\infty\le\beta\mu\},\qquad \mathcal N^-_\infty(\beta)=\{(x,s)\in\mathcal F^0:\ \|Xs-\mu e\|^-_\infty\le\beta\mu\}.N∞​(β)={(x,s)∈F0: ∥Xs−μe∥∞​≤βμ},N∞−​(β)={(x,s)∈F0: ∥Xs−μe∥∞−​≤βμ}.

The second says only that xjsj≥(1−β)μx_js_j\ge(1-\beta)\muxj​sj​≥(1−β)μ for every jjj.

The search direction d=(dx,ds)d=(d_x,d_s)d=(dx​,ds​) with centering parameter γ\gammaγ solves, for some dyd_ydy​,

Sdx+Xds=γμe−Xs,Adx=0,ATdy+ds=0,(2)Sd_x+Xd_s=\gamma\mu e-Xs,\qquad Ad_x=0,\qquad A^Td_y+d_s=0, \tag{2}Sdx​+Xds​=γμe−Xs,Adx​=0,ATdy​+ds​=0,(2)

and the step is x(θ)=x+θdxx(\theta)=x+\theta d_xx(θ)=x+θdx​, s(θ)=s+θdss(\theta)=s+\theta d_ss(θ)=s+θds​. The scaled quantities p=X−1/2S1/2dxp=X^{-1/2}S^{1/2}d_xp=X−1/2S1/2dx​, q=X1/2S−1/2dsq=X^{1/2}S^{-1/2}d_sq=X1/2S−1/2ds​, r=(XS)−1/2(γμe−Xs)r=(XS)^{-1/2}(\gamma\mu e-Xs)r=(XS)−1/2(γμe−Xs) satisfy p+q=rp+q=rp+q=r and pTq=0p^Tq=0pTq=0. The componentwise product Pq=(pjqj)jPq=(p_jq_j)_jPq=(pj​qj​)j​ is the second-order term DxdsD_xd_sDx​ds​.

Algorithm 2 with neighbourhood N\mathcal NN and γ∈(0,1)\gamma\in(0,1)γ∈(0,1) starts at (x0,s0)∈N(x^0,s^0)\in\mathcal N(x0,s0)∈N with (x0)Ts0≤2t(x^0)^Ts^0\le2^t(x0)Ts0≤2t. While (xk)Tsk>2−t(x^k)^Ts^k>2^{-t}(xk)Tsk>2−t, it computes ddd from (2), takes the largest θˉ\bar\thetaθˉ such that (x(θ),s(θ))∈N(x(\theta),s(\theta))\in\mathcal N(x(θ),s(θ))∈N for all θ∈[0,θˉ]\theta\in[0,\bar\theta]θ∈[0,θˉ], and sets (xk+1,sk+1)=(x(θˉ),s(θˉ))(x^{k+1},s^{k+1})=(x(\bar\theta),s(\bar\theta))(xk+1,sk+1)=(x(θˉ),s(θˉ)).

Formalization targets

Goal: Theorem 2 with an explicit iteration count

Let β,γ∈(0,1)\beta,\gamma\in(0,1)β,γ∈(0,1) with γ≤2(1−β)\gamma\le2(1-\beta)γ≤2(1−β), and let N\mathcal NN be N∞(β)\mathcal N_\infty(\beta)N∞​(β) or N∞−(β)\mathcal N_\infty^-(\beta)N∞−​(β). Every run of Algorithm 2 reaches (xk)Tsk≤2−t(x^k)^Ts^k\le 2^{-t}(xk)Tsk≤2−t for some

k ≤ ⌈ln⁡2⋅n t2βγ(1−γ)⌉.k\ \le\ \Big\lceil\frac{\ln2\cdot n\,t}{2\beta\gamma(1-\gamma)}\Big\rceil .k ≤ ⌈2βγ(1−γ)ln2⋅nt​⌉.

The paper states "O(nt)O(nt)O(nt) iterations"; the count above is the one its inequality (15) yields.

Milestones, in the order the proof uses them

  • Lemma 1(b): −∥r∥2/4≤pjqj≤rj2/4-\|r\|^2/4\le p_jq_j\le r_j^2/4−∥r∥2/4≤pj​qj​≤rj2​/4 for each jjj.
  • Lemma 1(c): ∥Pq∥∞−≤∥r∥2/4≤n∥r∥∞2/4\|Pq\|^-_\infty\le\|r\|^2/4\le n\|r\|^2_\infty/4∥Pq∥∞−​≤∥r∥2/4≤n∥r∥∞2​/4, ∥Pq∥∞+≤∥r∥∞2/4\|Pq\|^+_\infty\le\|r\|^2_\infty/4∥Pq∥∞+​≤∥r∥∞2​/4, ∥Pq∥∞≤∥r∥2/4\|Pq\|_\infty\le\|r\|^2/4∥Pq∥∞​≤∥r∥2/4.
  • Lemma 2(c): if γ≤2(1−β)\gamma\le2(1-\beta)γ≤2(1−β) and (x,s)∈N∞−(β)(x,s)\in\mathcal N_\infty^-(\beta)(x,s)∈N∞−​(β) then ∥r∥2≤nμ\|r\|^2\le n\mu∥r∥2≤nμ; in N∞(β)\mathcal N_\infty(\beta)N∞​(β), ∥r∥∞2≤(1+β)μ\|r\|_\infty^2\le(1+\beta)\mu∥r∥∞2​≤(1+β)μ.
  • Lemma 5: θˉ≥θ2=min⁡{1,βγμ/∥Pq∥∞}\bar\theta\ge\theta_2=\min\{1,\beta\gamma\mu/\|Pq\|_\infty\}θˉ≥θ2​=min{1,βγμ/∥Pq∥∞​} in N∞(β)\mathcal N_\infty(\beta)N∞​(β), and θˉ≥θ2−=min⁡{1,βγμ/∥Pq∥∞−}\bar\theta\ge\theta_2^-=\min\{1,\beta\gamma\mu/\|Pq\|^-_\infty\}θˉ≥θ2−​=min{1,βγμ/∥Pq∥∞−​} in N∞−(β)\mathcal N_\infty^-(\beta)N∞−​(β).
  • Proof of Theorem 2: θ2−≥θ2≥4βγ/n\theta_2^-\ge\theta_2\ge4\beta\gamma/nθ2−​≥θ2​≥4βγ/n (for n≥2n\ge2n≥2).
  • (15): μk+1≤(1−4βγ(1−γ)/n)μk\mu^{k+1}\le\big(1-4\beta\gamma(1-\gamma)/n\big)\mu^kμk+1≤(1−4βγ(1−γ)/n)μk.

Significance

Theorem 2 shows that the adaptive long-step method in a neighbourhood covering almost all of F0\mathcal F^0F0 keeps the worst-case complexity of the original Kojima–Mizuno–Yoshise algorithm. Its per-iteration analysis (Lemma 5, Lemma 1(c)) is also what the paper reuses for its potential-reduction variant (§5, Theorem 3) and for its probabilistic explanation of why such methods take far fewer iterations in practice (§6). Lemma 1(b)–(c) are the standard bounds on the second-order Newton term, and they recur throughout the interior-point literature.

The results are proved in the paper. As far as the platform's corpus shows, none of them has a machine-checked proof: there is no formalization of the wide neighbourhoods N∞\mathcal N_\inftyN∞​, N∞−\mathcal N_\infty^-N∞−​, of the Newton system (2), or of an adaptive-step iteration. A complete development yields a reusable layer for primal-dual interior-point analysis in standard form (the neighbourhoods, the scaled direction, the second-order bounds) and the first formally verified iteration bound for a long-step primal-dual method.

Difficulty

Most of the steps are finite-dimensional inequalities. The sticking points are the following.

  • The bound pjqj≥−∥r∥2/4p_jq_j\ge-\|r\|^2/4pj​qj​≥−∥r∥2/4 uses the orthogonality pTq=0p^Tq=0pTq=0, which comes from Adx=0Ad_x=0Adx​=0 and ds=−ATdyd_s=-A^Td_yds​=−ATdy​. Those relations hold only for a solution of the full system (2), not for the first equation alone.
  • Lemma 5 needs every point of the segment [0,θ2][0,\theta_2][0,θ2​] to lie in the neighbourhood, including strict positivity of x(θ)x(\theta)x(θ) and s(θ)s(\theta)s(θ) and dual feasibility. Positivity of the products alone does not give positivity of the factors without a continuity argument along the segment.
  • "The largest θˉ\bar\thetaθˉ" is a maximum over a set defined by infinitely many conditions. The theorem needs only that θˉ\bar\thetaθˉ dominates θ2\theta_2θ2​, but the formal run must say what θˉ\bar\thetaθˉ is.
  • Converting the per-iteration contraction (15) into the explicit count needs (1−δ)k≤e−kδ(1-\delta)^k\le e^{-k\delta}(1−δ)k≤e−kδ, real powers of 222, and a ceiling.

Formalization scope

Vectors are Fin n → ℝ, with coordinates indexed 0,…,n−10,\dots,n-10,…,n−1, and A : Matrix (Fin m) (Fin n) ℝ. Mathlib's default norm on Fin n → ℝ is the sup norm, so the Euclidean norm norm2 and the norms normInf, normInfNeg, normInfPos are defined explicitly. μ\muμ divides by nnn as a real number. Here log⁡\loglog is the natural logarithm and 2t2^t2t is a real power with t∈Rt\in\mathbb Rt∈R.

Committed conventions and repairs:

  • The direction is "any (dx,dy,ds)(d_x,d_y,d_s)(dx​,dy​,ds​) solving (2)". No rank assumption on AAA is made.
  • "The largest θˉ\bar\thetaθˉ" is IsGreatest of the set of admissible step lengths, and θˉ\bar\thetaθˉ is not capped at 111. When no maximum exists (always the case for n=1n=1n=1, where Pq=0Pq=0Pq=0), no iteration exists. A run is then possible only if it has already stopped, and the theorem holds trivially. A sorry-free check confirms that an iteration exists for n=2n=2n=2.
  • A run is a pair of sequences that starts as required and makes one iteration from every iterate with (xk)Tsk>2−t(x^k)^Ts^k>2^{-t}(xk)Tsk>2−t. Its behaviour after the stopping test is unconstrained.
  • In θ2\theta_2θ2​ and θ2−\theta_2^-θ2−​, a zero norm makes the quotient +∞+\infty+∞ and the minimum 111. Since Lean's real division by zero is 000, this case is defined explicitly.
  • The bound θ2≥4βγ/n\theta_2\ge4\beta\gamma/nθ2​≥4βγ/n is stated for n≥2n\ge2n≥2. At n=1n=1n=1 it can fail (e.g. β=1/2\beta=1/2β=1/2, γ=0.9\gamma=0.9γ=0.9), and Algorithm 2 makes no iterations there.
  • The goal covers both neighbourhoods. A goal for N∞−\mathcal N^-_\inftyN∞−​ alone would be weaker than the paper.
  • Lemma 1 assumes only x,s>0x,s>0x,s>0 and γ∈[0,1]\gamma\in[0,1]γ∈[0,1] of the pair, which is all its statement uses.

The goal is not to be read with a hidden constant. A statement of the form "there is CCC with at most CntCntCnt iterations", with CCC allowed to depend on the instance, would be trivially true and is ruled out by the explicit count. Lemma 1(a) and Lemma 2(a), 2(b) belong to the paper's predictor–corrector analysis, which is a separate mission.

Contributions are welcome at every level: proofs of the milestones, helper lemmas about the norms on Fin n → ℝ, and the run-to-count argument.

Selected references

  • S. Mizuno, M. J. Todd, Y. Ye, On adaptive-step primal-dual interior-point algorithms for linear programming, Cornell ORIE Technical Report No. 944 (1990, rev. 1991); Mathematics of Operations Research 18(4):964–981, 1993. https://doi.org/10.1287/moor.18.4.964
  • M. Kojima, S. Mizuno, A. Yoshise, A primal-dual interior point algorithm for linear programming, in N. Megiddo (ed.), Progress in Mathematical Programming, Springer, 1989, pp. 29–47. https://doi.org/10.1007/978-1-4613-9617-8_2
  • R. D. C. Monteiro, I. Adler, Interior path following primal-dual algorithms. Part I: Linear programming, Mathematical Programming 44:27–41, 1989. https://doi.org/10.1007/BF01587075
  • S. J. Wright, Primal-Dual Interior-Point Methods, SIAM, 1997. https://doi.org/10.1137/1.9781611971453
11 thms3 active usersReviewed
🏆Completed
Convex OptimizationFunctional AnalysisNumerical Analysis+1·Captain: mikedeng1

Régularisation d'inéquations variationnelles par approximations successives II: The Proximal Regularization of a Convex Minimization Problem Is a Minimizing SequenceResearch Paper

Motivation

The proximal point algorithm replaces a hard optimization or equilibrium problem by a sequence of better-conditioned ones: from the current point xnx^nxn it solves the original problem with a quadratic penalty ∥x−xn∥2\|x-x^n\|^2∥x−xn∥2 added, and takes the solution as xn+1x^{n+1}xn+1. The method is a building block of modern convex optimization. Augmented Lagrangian methods, Douglas–Rachford and ADMM splitting, and many bundle methods are proximal point iterations applied to suitable problems (Rockafellar 1976; Eckstein–Bertsekas 1992).

The algorithm was introduced by B. Martinet in a five-page note in the Revue française d'informatique et de recherche opérationnelle in 1970 (Martinet 1970). The note treats three cases: monotone variational inequalities on a bounded convex set (§II), convex–concave min–max problems (§III), and convex minimization (§IV). This mission formalizes §IV.

Timeline.

  • 1970, Martinet: the regularization (13) for convex minimization over a closed convex set in a Hilbert space; Théorème 3 (weak cluster points are minimizers, the sequence is minimizing), stated without proof.
  • 1976, Rockafellar (SIAM J. Control Optim. 14): the proximal point algorithm for maximal monotone operators, with inexact steps and weak convergence of the whole sequence when a zero exists.
  • 1991, Güler (SIAM J. Control Optim. 29): the rate f(xn)−inf⁡f=O(1/n)f(x^n)-\inf f = O(1/n)f(xn)−inff=O(1/n) for convex minimization, and an example in which the iterates converge weakly but not strongly.

Setting

Let HHH be a real Hilbert space with inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle⟨⋅,⋅⟩ and norm ∥⋅∥\|\cdot\|∥⋅∥. Let C⊆HC\subseteq HC⊆H be a nonempty, closed, convex set, and let f:H→Rf:H\to\mathbb Rf:H→R be a convex, lower semicontinuous function such that, for every a∈Ra\in\mathbb Ra∈R, the sublevel set {x∈C∣f(x)≤a}\{x\in C \mid f(x)\le a\}{x∈C∣f(x)≤a} is bounded. These are the standing hypotheses of §4.1 (Lean: Standing f C). The problem is

(12)min⁡ { f(x)∣x∈C },(12)\qquad \min\,\{\,f(x)\mid x\in C\,\},(12)min{f(x)∣x∈C},

and its solution set (solSet f C) is the set of xˉ∈C\bar x\in Cxˉ∈C with f(xˉ)≤f(x)f(\bar x)\le f(x)f(xˉ)≤f(x) for all x∈Cx\in Cx∈C.

The regularization algorithm (13) starts from x0∈Cx^0\in Cx0∈C and, given xnx^nxn, takes

(13)xn+1∈C  the minimizer of  f(x)+∥x−xn∥2  over x∈C.(13)\qquad x^{n+1}\in C\ \text{ the minimizer of } \ f(x)+\|x-x^n\|^2\ \text{ over } x\in C .(13)xn+1∈C  the minimizer of  f(x)+∥x−xn∥2  over x∈C.

Lean encodes one step as IsProxStep f C xn y (y∈Cy\in Cy∈C and f(y)+∥y−xn∥2≤f(x)+∥x−xn∥2f(y)+\|y-x^n\|^2\le f(x)+\|x-x^n\|^2f(y)+∥y−xn∥2≤f(x)+∥x−xn∥2 for all x∈Cx\in Cx∈C) and a run as IsProxSeq f C x.

A point x~\tilde xx~ is a weak cluster point of (xn)(x^n)(xn) (IsWeakClusterPt) if every neighbourhood of x~\tilde xx~ in the weak topology of HHH contains xnx^nxn for infinitely many nnn. A sequence is minimizing if f(xn)→inf⁡x∈Cf(x)f(x^n)\to\inf_{x\in C} f(x)f(xn)→infx∈C​f(x).

Formalization targets

Existence for (12) and well-posedness of (13)

∃ xˉ∈C  ∀x∈C: f(xˉ)≤f(x),∀xn∈C  ∃! y∈C: y minimizes f(x)+∥x−xn∥2 over C.\exists\,\bar x\in C\ \ \forall x\in C:\ f(\bar x)\le f(x), \qquad \forall x^n\in C\ \ \exists!\,y\in C:\ y \text{ minimizes } f(x)+\|x-x^n\|^2 \text{ over } C .∃xˉ∈C  ∀x∈C: f(xˉ)≤f(x),∀xn∈C  ∃!y∈C: y minimizes f(x)+∥x−xn∥2 over C.

These are the paper's claims in §4.1 ("Ces hypothèses assurent l'existence d'une solution pour (12)") and §4.2 ("solution unique").

Goal: Théorème 3

For every sequence generated by (13),

x~ a weak cluster point of (xn) ⟹ x~∈sol⁡(12),lim⁡n→∞f(xn)=inf⁡x∈Cf(x)∈R.\tilde x \text{ a weak cluster point of } (x^n)\ \Longrightarrow\ \tilde x\in \operatorname{sol}(12), \qquad \lim_{n\to\infty} f(x^n)=\inf_{x\in C} f(x)\in\mathbb R .x~ a weak cluster point of (xn) ⟹ x~∈sol(12),n→∞lim​f(xn)=x∈Cinf​f(x)∈R.

The goal asserts no rate and no constant. It is the statement the paper makes, with both conclusions in one theorem.

Stronger: Remarque 1

If in addition fff is uniformly convex, i.e. f(ax+by)≤af(x)+bf(y)−ab φ(∥x−y∥)f(ax+by)\le af(x)+bf(y)-ab\,\varphi(\|x-y\|)f(ax+by)≤af(x)+bf(y)−abφ(∥x−y∥) for a,b≥0a,b\ge0a,b≥0, a+b=1a+b=1a+b=1, with φ(t)>0\varphi(t)>0φ(t)>0 for t>0t>0t>0, then (12) has a unique solution xˉ\bar xxˉ and ∥xn−xˉ∥→0\|x^n-\bar x\|\to0∥xn−xˉ∥→0.

Significance

The result. Théorème 3 says that the proximal iterates make progress on the objective, not only on the distance to the solution set. A user of the method can stop on a value criterion. The convergence also needs no step-size tuning, no smoothness of fff, and no bound on fff beyond the boundedness of the sublevel sets. The well-posedness of (13) is what makes the method an algorithm. Each step is a strongly convex subproblem with a unique solution, and later inexact and splitting variants rely on that.

Formalizing it. The note gives no proof of Théorème 3 ("On peut faire une démonstration directe de ce théorème") and none of Remarque 1. The mission asks for a complete machine-checked proof of the convex minimization case of the original proximal point paper. To our knowledge, none of these statements has a machine-checked proof. Mathlib has convexity, lower semicontinuity, the weak topology of a normed space and uniform convexity of functions, but no proximal point algorithm.

Difficulty

Each iterate xn+1x^{n+1}xn+1 is defined only implicitly, as the minimizer of a problem that changes with nnn. Monotonicity of f(xn)f(x^n)f(xn) follows at once from comparing xn+1x^{n+1}xn+1 with xnx^nxn. Monotonicity alone gives convergence of f(xn)f(x^n)f(xn) to some limit, but not to inf⁡Cf\inf_C finfC​f. Closing that gap needs information about the minimizers of (12) and their distance to the iterates.

The cluster-point statement is about the weak topology. A norm-continuity argument does not apply: fff is only lower semicontinuous in norm, and passing to weak limits requires the weak lower semicontinuity of convex lower semicontinuous functions. The boundedness that makes weak cluster points exist comes from the sublevel-set hypothesis, not from CCC, which may be unbounded.

For Remarque 1, the obvious argument controls φ(∥xn−xˉ∥)\varphi(\|x^n-\bar x\|)φ(∥xn−xˉ∥), and the hypothesis on φ\varphiφ is only positivity. Passing from φ(∥xn−xˉ∥)→0\varphi(\|x^n-\bar x\|)\to0φ(∥xn−xˉ∥)→0 to ∥xn−xˉ∥→0\|x^n-\bar x\|\to0∥xn−xˉ∥→0 is not immediate without a monotone modulus.

Formalization scope

All statements live in MartinetReg.ConvexMin. The conventions the formalization commits to:

  • HHH is a real complete inner product space (InnerProductSpace ℝ H, CompleteSpace H). The paper says "espace de Hilbert", and its inequalities make it real.
  • C≠∅C\neq\emptysetC=∅ is a standing hypothesis. The paper leaves it implicit, but its existence claim for (12) is false for C=∅C=\emptysetC=∅.
  • fff is real-valued, convex and lower semicontinuous on all of HHH, as printed. The constraint x∈Cx\in Cx∈C stays explicit in (12) and (13). It is not absorbed into an extended-valued indicator.
  • The penalty in (13) has weight 111, as printed, not 12\tfrac1221​.
  • The algorithm is a relation on sequences: IsProxSeq accepts any sequence with x0∈Cx^0\in Cx0∈C satisfying (13) at every step. Existence and uniqueness of the step are a separate milestone, not built into a definition by choice.
  • "Minimisante" is stated as: some real mmm is the greatest lower bound of f(C)f(C)f(C) and f(xn)→mf(x^n)\to mf(xn)→m. This avoids the junk value sInf takes on sets unbounded below. As a side effect, the theorem asserts that fff is bounded below on CCC.
  • Weak cluster points are cluster points in WeakSpace ℝ H. A norm cluster point would weaken the conclusion and is not used.
  • Remarque 1 uses Mathlib's UniformConvexOn Set.univ φ f with φ(t)>0\varphi(t)>0φ(t)>0 for t>0t>0t>0. It keeps every hypothesis of §4.1.

The goal does not assume that (12) has a solution, that fff is bounded below on CCC, or that the iterates are bounded. Each of these would remove part of the content of Théorème 3, and the first two are consequences proved as milestones.

Not formalized here: Remarque 2 (p. 158), a comment that convexity seems indispensable; and the Exemple (p. 158). The Exemple's linear system (A∗A+2I)xn+1=A∗b+2xn(A^*A+2I)x^{n+1}=A^*b+2x^n(A∗A+2I)xn+1=A∗b+2xn corresponds to f=12∥Ax−b∥2f=\tfrac12\|Ax-b\|^2f=21​∥Ax−b∥2. For the printed f=∥Ax−b∥2f=\|Ax-b\|^2f=∥Ax−b∥2, (13) gives (A∗A+I)xn+1=A∗b+xn(A^*A+I)x^{n+1}=A^*b+x^n(A∗A+I)xn+1=A∗b+xn. The variational inequality case (§II) is the companion mission I of this series.

Reusable beyond this mission: the existence of minimizers of convex lower semicontinuous functions with bounded sublevel sets on closed convex subsets of a Hilbert space, and the weak lower semicontinuity it rests on. Contributions of these general lemmas, and of strong-convexity facts for x↦f(x)+∥x−xn∥2x\mapsto f(x)+\|x-x^n\|^2x↦f(x)+∥x−xn∥2, are welcome.

Selected references

  • B. Martinet, Brève communication. Régularisation d'inéquations variationnelles par approximations successives, Revue française d'informatique et de recherche opérationnelle, série rouge, 4(R-3), 154–158, 1970. https://doi.org/10.1051/m2an/197004R301541
  • R. T. Rockafellar, Monotone operators and the proximal point algorithm, SIAM Journal on Control and Optimization 14(5), 877–898, 1976. https://doi.org/10.1137/0314056
  • O. Güler, On the convergence of the proximal point algorithm for convex minimization, SIAM Journal on Control and Optimization 29(2), 403–419, 1991. https://doi.org/10.1137/0329022
  • J. Eckstein and D. P. Bertsekas, On the Douglas–Rachford splitting method and the proximal point algorithm for maximal monotone operators, Mathematical Programming 55, 293–318, 1992. https://doi.org/10.1007/BF01581204
  • J. L. Lions and G. Stampacchia, Variational inequalities, Communications on Pure and Applied Mathematics 20, 493–519, 1967. https://doi.org/10.1002/cpa.3160200302
6 thms3 active usersReviewed
🏆Completed
Dynamic ProgrammingMarkov ChainStochastic Systems·Captain: mikedeng1

Quality Control under Markovian Deterioration 3: Sufficient Conditions for a Three-Region Optimal Policy and for an Optimal Policy That Never InspectsResearch Paper

Motivation

Inspection and revision cost money, but continued production can allow a deteriorating process to remain in a costly state. A controller therefore needs a rule that converts incomplete information about the process into an action. Ross's two-state model makes that decision precise: the process can be good or bad, the bad state persists until revision, and inspection reveals the current state. The observable state for decision making is a probability rather than the underlying process state. This setup is useful when quality is inferred from occasional inspection and actions must be chosen before the state is known. Ross proved structural results for discounted control in this model, including sufficient conditions for a policy with one inspection interval and for a policy with no inspection at all. Ross (1971)

The conditions in Theorem 3.7 use the model's optimal value itself. They are therefore structural tests for the shape of an optimal rule, rather than parameter-only design formulas. The preceding concavity, monotonicity and Lipschitz estimates explain which features of that value function support the tests. The mission records those estimates alongside the main result, so the target is a coherent part of the paper rather than an isolated inequality. Ross (1971), pp. 589–593

Setting

The belief P∈[0,1]P\in[0,1]P∈[0,1] is the probability that the production process is in the bad state at the beginning of a period. A good process becomes bad during a period with probability π∈[0,1]\pi\in[0,1]π∈[0,1] if it is not revised. A bad process remains bad. Thus producing without inspection changes the next belief to T(P)=P+π−πPT(P)=P+\pi-\pi PT(P)=P+π−πP. The discount factor is β∈(0,1)\beta\in(0,1)β∈(0,1). Producing without inspection has cost 000 in the good state and cost CCC in the bad state, so its expected current cost is CPCPCP. Inspection costs III in either state, and revision costs RRR in either state. The standing order is 0<C<I<R0<C<I<R0<C<I<R. The explicit C>0C>0C>0 records that CCC is a cost and makes the quotient in Theorem 3.7 meaningful.

Write Vβ(P)V_\beta(P)Vβ​(P) for the discounted value starting from belief PPP. Inspection reveals the current state: the next belief is π\piπ after observing a good process and 111 after observing a bad one. Revision resets the next belief to π\piπ. The three current-plus-continuation costs are

qP(P)=CP+βVβ(T(P)),qI(P)=I+βPVβ(1)+β(1−P)Vβ(π),qR(P)=R+βVβ(π).\begin{aligned} q_{\mathrm P}(P)&=CP+\beta V_\beta(T(P)),\\ q_{\mathrm I}(P)&=I+\beta P V_\beta(1)+\beta(1-P)V_\beta(\pi),\\ q_{\mathrm R}(P)&=R+\beta V_\beta(\pi). \end{aligned}qP​(P)qI​(P)qR​(P)​=CP+βVβ​(T(P)),=I+βPVβ​(1)+β(1−P)Vβ​(π),=R+βVβ​(π).​

The Bellman equation is Vβ(P)=min⁡{qP(P),qI(P),qR(P)}V_\beta(P)=\min\{q_{\mathrm P}(P),q_{\mathrm I}(P),q_{\mathrm R}(P)\}Vβ​(P)=min{qP​(P),qI​(P),qR​(P)}. A stationary rule is β\betaβ-optimal here when it chooses an action attaining this minimum at every admissible belief. This is the paper's decision rule criterion associated with equation (3). Ross (1971), p. 590, equation (3)

Formalization targets

The first target is the sufficient condition for an optimal three-region rule. Set Δ=Vβ(1)−Vβ(π)\Delta=V_\beta(1)-V_\beta(\pi)Δ=Vβ​(1)−Vβ​(π). If

(1−β)(R+βVβ(π))C≤R−IβΔ,\frac{(1-\beta)(R+\beta V_\beta(\pi))}{C}\le\frac{R-I}{\beta\Delta},C(1−β)(R+βVβ​(π))​≤βΔR−I​,

there are thresholds π≤P1≤P2\pi\le P_1\le P_2π≤P1​≤P2​ such that an optimal rule produces for P<P1P<P_1P<P1​, inspects for P1≤P<P2P_1\le P<P_2P1​≤P<P2​, and revises for P≥P2P\ge P_2P≥P2​. The revise interval may be empty: if no admissible belief has revision as an optimal action, P2P_2P2​ may exceed 111. If revision is optimal somewhere, the conclusion includes P2≤1P_2\le1P2​≤1. This is a repair to the printed bound in Theorem 3.7(a); the proof on p. 593 explicitly lets a missing threshold be infinite. Ross (1971), pp. 592–593, Theorem 3.7(a)

The second target gives an optimal no-inspection rule. If

I+βΔ≥C1−β(1−π)orR−IβΔ≤RC(1−β(1−π)),I+\beta\Delta\ge\frac{C}{1-\beta(1-\pi)} \quad\text{or}\quad \frac{R-I}{\beta\Delta}\le\frac{R}{C}\bigl(1-\beta(1-\pi)\bigr),I+βΔ≥1−β(1−π)C​orβΔR−I​≤CR​(1−β(1−π)),

then some P1≥πP_1\ge\piP1​≥π gives an optimal rule that produces below P1P_1P1​ and revises from P1P_1P1​ onward. A threshold above 111 is allowed and means that the rule produces throughout the admissible belief interval. Both alternatives in the source's condition are retained. Ross (1971), p. 592, Theorem 3.7(b)

Significance

The theorem identifies two kinds of simple stationary rule that can be optimal despite the value function depending on an unobserved process state. It says more than the existence of an optimal action at each belief: the selected actions can be arranged in belief intervals, and in the second regime inspection can be omitted entirely. These statements provide a compact description of decisions over the full continuum P∈[0,1]P\in[0,1]P∈[0,1]. Ross (1971), Theorem 3.7

The result was proved in the 1971 paper. This mission asks for machine-checked Lean proofs of its two repaired clauses, the value equation, and the stated shape estimates. The definitions and finite-horizon bound can also support later formalizations of related belief-state control models. No proof of this mission's draft theorem is claimed merely by compiling its statement.

Difficulty

The action costs have different shapes as functions of belief: inspection and revision give affine and constant expressions, while the production alternative includes the value at an updated belief. The apparent order of their pairwise crossings does not by itself establish that one selected rule attains the minimum at every belief. Equalities at a threshold also matter, since the rule must be optimal at the boundary points. The printed upper bound on the last threshold fails when revision never minimizes the Bellman equation; imposing it without qualification would make the formal target false.

Formalization scope

Lean represents a belief as a real number and restricts all claims to [0,1][0,1][0,1]. It defines V0=0V^0=0V0=0 and obtains Vn+1V^{n+1}Vn+1 by taking the minimum of the three action costs with continuation VnV^nVn, exactly as in equation (4). The value VβV_\betaVβ​ is the limit of these iterates; convergence and boundedness are part of the equation (3) milestone. This prevents an arbitrary function satisfying a convenient fixed-point hypothesis from replacing the value the paper studies. The rule types are total real-to-action functions, while optimality is checked for every admissible belief, including P=1P=1P=1 and both thresholds.

The paper's general Lemma 2.1 is represented by its scalar two-state instance. The finite-horizon Lipschitz bound and its limiting corollary use P1,P2∈[0,1]P_1,P_2\in[0,1]P1​,P2​∈[0,1]. The last quotient in Corollary 3.6 divides by π\piπ, so that second inequality is stated under π>0\pi>0π>0; the first inequality, and the main theorem, cover π=0\pi=0π=0. If π=1\pi=1π=1, then Δ=0\Delta=0Δ=0. Lean's real division gives a zero quotient in that case; the two implications in Theorem 3.7 remain valid under this convention. The development needs reusable results about convergence of discounted value iteration, concavity and monotonicity on an interval, and elementary estimates for affine belief updates. Contributions establishing those results or proving either sufficient-condition clause are within scope.

Selected references

  • Sheldon M. Ross, Quality Control under Markovian Deterioration, Management Science 17(9), Theory Series, 587–596, 1971. DOI: 10.1287/mnsc.17.9.587
8 thms3 active usersReviewed
🏆Completed
Dynamic ProgrammingMarkov ChainStochastic Systems·Captain: mikedeng1

Quality Control under Markovian Deterioration 2: Never Inspecting or Revising Is Optimal Exactly When R ≥ C/(1 − β(1 − π))Research Paper

Motivation

A production process can deteriorate without an operator seeing its current condition. Producing a unit, inspecting the process, and revising the process have different immediate costs and different effects on what can be known or controlled next period. The operator therefore needs a rule based on a belief about deterioration, rather than on the hidden physical state. Ross's two-state model asks when the simplest rule, producing every period without inspection, is actually optimal over an unlimited discounted horizon Ross 1971.

The question matters whenever an action has a cost now but may reduce future losses. Paying for inspection only supplies information; paying for revision restores a deteriorated process. The answer depends on the bad-state production cost, the deterioration probability, the revision charge, and the weight assigned to future periods. A comparison of immediate costs alone cannot settle whether revision is worthwhile. Ross's Theorem 3.4 gives an exact boundary between a regime where producing forever is optimal from every initial belief and a regime where revision is forced when deterioration is nearly certain Ross 1971, Theorem 3.4.

Setting

There are two underlying states: good and bad. The current state is hidden, and P∈[0,1]P\in[0,1]P∈[0,1] is the probability that it is bad at the beginning of a period. Producing without inspection costs zero in the good state and CCC in the bad state, so its expected immediate cost is CPCPCP. A good process becomes bad with probability π\piπ in one period; a bad process remains bad until revision. Thus a period of production without inspection changes the belief to T(P)=P+π−πPT(P)=P+\pi-\pi PT(P)=P+π−πP. These are the conventions of the paper's Section 3 Ross 1971, p. 590.

The other actions are inspection, at cost III, and revision, at cost RRR. Inspection reveals the current state: the next belief is 111 when the state was bad and π\piπ when it was good. Revision returns the process to the good state before its next transition, so the next belief is π\piπ. The standing parameter conditions are 0<β<10<\beta<10<β<1, 0≤π≤10\le\pi\le10≤π≤1, and 0<C<I<R0<C<I<R0<C<I<R; β\betaβ is the discount factor. The paper explicitly assumes C<I<RC<I<RC<I<R and a discount factor in (0,1)(0,1)(0,1). Positive CCC states the intended positive bad-state cost and makes the threshold comparison meaningful Ross 1971, pp. 588, 590.

For a future-cost function WWW, the three Bellman alternatives at belief PPP are CP+βW(TP)CP+\beta W(TP)CP+βW(TP), I+βPW(1)+β(1−P)W(π)I+\beta P W(1)+\beta(1-P)W(\pi)I+βPW(1)+β(1−P)W(π), and R+βW(π)R+\beta W(\pi)R+βW(π). Their minimum defines one step of finite-horizon value iteration, beginning with V0=0V^0=0V0=0. The limit Vβ(P)V_\beta(P)Vβ​(P) is the optimal discounted cost. Write R0R^0R0 for the rule that always produces without inspection, and define its cost from the actual discounted series ψ(P)=∑n=0∞βnCTnP\psi(P)=\sum_{n=0}^{\infty}\beta^n C T^nPψ(P)=∑n=0∞​βnCTnP Ross 1971, equations (3)–(5).

Formalization targets

The first target establishes that value iteration converges on [0,1][0,1][0,1], gives a bounded solution to the two-state Bellman equation, and identifies that solution uniquely among bounded functions. The iterated update and Ross's equation (5) then evaluate the cost of R0R^0R0:

TnP=1−(1−P)(1−π)n,ψ(P)=C1−β−C(1−P)1−β(1−π).T^nP=1-(1-P)(1-\pi)^n,\qquad \psi(P)=\frac{C}{1-\beta}-\frac{C(1-P)}{1-\beta(1-\pi)}.TnP=1−(1−P)(1−π)n,ψ(P)=1−βC​−1−β(1−π)C(1−P)​.

The sensitivity milestones retain the exact finite-horizon factor in Lemma 3.5 and the infinite-horizon bound in Corollary 3.6. In particular, for P1,P2∈[0,1]P_1,P_2\in[0,1]P1​,P2​∈[0,1],

∣Vβ(P1)−Vβ(P2)∣≤C∣P1−P2∣1−β(1−π).|V_\beta(P_1)-V_\beta(P_2)|\le \frac{C|P_1-P_2|}{1-\beta(1-\pi)}.∣Vβ​(P1​)−Vβ​(P2​)∣≤1−β(1−π)C∣P1​−P2​∣​.

The mission goal is both clauses of Theorem 3.4. The always-produce rule is optimal from every initial belief exactly at and above the threshold

R≥C1−β(1−π).R\ge\frac{C}{1-\beta(1-\pi)}.R≥1−β(1−π)C​.

Below that threshold, revision is the unique minimizing action for beliefs sufficiently near 111 from the left Ross 1971, pp. 591–592.

Significance

The theorem gives a parameter test for omitting both inspection and revision from an optimal policy in this model. Its second clause adds a local statement when that test fails: near certain deterioration, merely allowing revision as one optimal choice is insufficient; any optimal choice must revise. The sensitivity bounds quantify the effect of imperfect knowledge of the state and supply continuity of the value function used in the paper's treatment of that neighborhood Ross 1971, Theorem 3.4 and Corollary 3.6.

Ross proved these results in 1971. This mission asks for machine-checked proofs of the paper's exact statements in a concrete two-state discounted model. The reusable formal objects are the belief update, the three-action Bellman operator, finite-horizon values, and the always-produce cost series. The goal and milestones here are open formalization targets; their mathematical status as published theorems is distinct from their proof status in Lean.

Difficulty

The cost of always producing can be computed explicitly, but equality with the optimal value is a global assertion about all beliefs and all three available actions. A comparison at one belief does not certify optimality everywhere. The reverse implication also has to recover a parameter inequality from optimality of a policy, rather than from its immediate cost alone. The strict conclusion near P=1P=1P=1 requires control of the value as the belief varies; pointwise action comparison at P=1P=1P=1 does not itself establish an interval Ross 1971, pp. 591–592.

Formalization scope

The Lean model uses real parameters and a real belief restricted to [0,1][0,1][0,1]. It has three explicit actions and the exact right-hand sides of equation (3). Its value is the limit of iteration from V0=0V^0=0V0=0, so V1=min⁡{CP,I,R}V^1=\min\{CP,I,R\}V1=min{CP,I,R} matches the paper. Convergence, boundedness, and Bellman uniqueness are stated as a milestone. The always-produce cost is the infinite series of actual stage costs, with its closed form reserved for a separate milestone. Consequently, defining the cost by equation (5) cannot make that milestone true by definition.

The discounted-optimality claim for R0R^0R0 means ψ(P)=Vβ(P)\psi(P)=V_\beta(P)ψ(P)=Vβ​(P) for every P∈[0,1]P\in[0,1]P∈[0,1]. The phrase “every optimal policy revises” is represented by revision being strictly cheaper in the Bellman equation than both other actions; this expresses a unique minimizing action for a stationary decision at that belief. “Near 111” means a one-sided neighborhood within [0,1][0,1][0,1]. The second inequality in Corollary 3.6 is stated only when π>0\pi>0π>0, because division by π=0\pi=0π=0 has a default value in Lean. The first inequality and Theorem 3.4 retain the π=0\pi=0π=0 case.

The development needs real series, limits, finite-horizon recursion, elementary inequalities, and bounded fixed-point reasoning. Proofs of the model-specific Bellman equation, cost identity, exact sensitivity bounds, and Theorem 3.4 are welcome. General tools for discounted Bellman operators or real-series identities would also be useful beyond this mission. No policy class is smuggled in as an arbitrary hypothesis: the value and the cost of R0R^0R0 are computed from the model data.

Selected references

  • Sheldon M. Ross, Quality Control under Markovian Deterioration, Management Science 17(9), Theory Series, 587–596, 1971. DOI: 10.1287/mnsc.17.9.587.
8 thms3 active usersReviewed
🏆Completed
CombinatoricsLinear OptimizationTheoretical Computer Science·Captain: mikedeng1

Approximation Algorithms for Scheduling Unrelated Parallel Machines 2: Enumerating Long Assignments and Rounding the LP Gives a (1 + ε)-Approximation for MakespanResearch Paper

Motivation

Scheduling independent jobs on unrelated parallel machines to minimize the makespan is one of the basic NP-hard problems of scheduling theory: each job has its own processing time on each machine, with no relation between machines, and the goal is to finish all jobs as early as possible. When the number of machines is part of the input, Lenstra, Shmoys and Tardos showed that no polynomial algorithm can come within a factor below 3/2 of the optimum unless P = NP. When the number of machines mmm is a fixed constant, the picture is different: the problem admits a polynomial approximation scheme, a family of algorithms that reach any accuracy 1+ε1+\varepsilon1+ε.

Such a scheme was already known. Horowitz and Sahni (1976) gave a fully polynomial approximation scheme for fixed mmm, but its space requirement grows like (nm/ε)m(nm/\varepsilon)^m(nm/ε)m. The second application of the Rounding Theorem in the 1987 report of Lenstra, Shmoys and Tardos is a scheme whose space is polynomial in the input size, in mmm, and in log⁡(1/ε)\log(1/\varepsilon)log(1/ε). This mission formalizes the approximation guarantee of that scheme (Theorem 3 of the report).

Timeline:

  • 1976. Horowitz and Sahni, a fully polynomial approximation scheme for a fixed number of unrelated machines, with exponential space in mmm.
  • 1985. Potts, a 2-approximation for unrelated machines whose running time is mm−1m^{m-1}mm−1 times a polynomial, based on LP rounding with enumeration.
  • 1987. Lenstra, Shmoys and Tardos, the Rounding Theorem, a polynomial 2-approximation for arbitrary mmm, and, for fixed mmm, the scheme formalized here (FOCS 1987; journal version in Mathematical Programming 46, 1990).

Setting

There are mmm machines and nnn jobs. If job jjj is scheduled on machine iii it takes pijp_{ij}pij​ time units, a positive integer; P=(pij)P=(p_{ij})P=(pij​) is the processing-time matrix. A schedule σ\sigmaσ assigns every job to one machine. The load of machine iii is ∑j:σ(j)=ipij\sum_{j:\sigma(j)=i} p_{ij}∑j:σ(j)=i​pij​, the makespan is the largest load, and OPT\mathrm{OPT}OPT is the smallest makespan over all schedules.

Fix an integer deadline d≥0d\ge0d≥0 and an accuracy ε>0\varepsilon>0ε>0. Assigning job jjj to machine iii is long if pij>εdp_{ij}>\varepsilon dpij​>εd and short otherwise. A schedule of long assignments LLL is a partial assignment of jobs to machines using only long assignments; its long load on machine iii is tit_iti​, and LLL is admissible if ti≤dt_i\le dti​≤d for every iii.

For a threshold ttt and deadlines d1,…,dmd_1,\dots,d_md1​,…,dm​, the linear program (LP) of the Rounding Theorem has a variable xij≥0x_{ij}\ge0xij​≥0 for every pair with pij≤tp_{ij}\le tpij​≤t, the constraints ∑ixij=1\sum_i x_{ij}=1∑i​xij​=1 for each job, and ∑jpijxij≤di\sum_j p_{ij}x_{ij}\le d_i∑j​pij​xij​≤di​ for each machine. The residual LP of (d,L)(d,L)(d,L) is (LP) for the jobs left unassigned by LLL, with di=d−tid_i=d-t_idi​=d−ti​ and t=εdt=\varepsilon dt=εd.

The procedure AεA_\varepsilonAε​, on input ddd, tries every admissible LLL; if the residual LP is feasible it takes a vertex x~\tilde xx~, rounds it to a 0-1 solution of the integer program (IP) of the Rounding Theorem, and combines the result with LLL. It answers 'no' if no residual LP is feasible. A ρ\rhoρ-relaxed decision procedure answers 'no' only when no schedule has makespan at most ddd, and otherwise returns a schedule of makespan at most ρd\rho dρd. The binary search of Lemma 1 runs such a procedure on deadlines between ⌈t/m⌉\lceil t/m\rceil⌈t/m⌉ and ttt, where ttt is the makespan of the greedy schedule, and returns the best schedule found.

Formalization targets

Goal: Theorem 3

For every m≥1m\ge1m≥1, every positive integer matrix PPP, every ε>0\varepsilon>0ε>0, every LP solver VVV, the procedure AεA_\varepsilonAε​ run with VVV exists, and the binary search driven by any such procedure returns a schedule σ\sigmaσ with

makespan(σ)≤(1+ε) OPT.\mathrm{makespan}(\sigma)\le(1+\varepsilon)\,\mathrm{OPT}.makespan(σ)≤(1+ε)OPT.

Milestones (§3, p. 6)

  1. Every machine in an admissible LLL carries fewer than 1/ε1/\varepsilon1/ε long assignments, and for n,m≥1n,m\ge1n,m≥1
#{L admissible}<(n+1)m/ε.\#\{L\text{ admissible}\}<(n+1)^{m/\varepsilon}.#{L admissible}<(n+1)m/ε.
  1. If some schedule has makespan at most ddd, its long part is admissible and its short part is a feasible solution of the residual LP.
  2. If the short assignments take at most d−ti+εdd-t_i+\varepsilon dd−ti​+εd on machine iii, the combined schedule has load at most (1+ε)d(1+\varepsilon)d(1+ε)d on every machine.
  3. AεA_\varepsilonAε​ exists for every LP solver and is a (1+ε)(1+\varepsilon)(1+ε)-relaxed decision procedure.

Significance

Theorem 3 shows that for a fixed number of unrelated machines, the makespan can be approximated to any accuracy in polynomial time while keeping the memory polynomial in log⁡(1/ε)\log(1/\varepsilon)log(1/ε). It is an early instance of the pattern "enumerate the large items, solve an LP for the small ones, round", which recurs in later approximation schemes for scheduling and packing. Together with the 2-approximation of the same paper (mission 1 of this series) and the 3/2 hardness bound (mission 3), it delimits what is achievable for unrelated machines.

The theorem is proved in the paper; none of it is known to have a machine-checked proof. Formalizing it requires a precise account of the enumeration of long assignments, the residual LP, and the binary search, and it exercises the Rounding Theorem, which this series poses in mission 1, outside its original setting (with a non-integral threshold t=εdt=\varepsilon dt=εd).

Difficulty

The arithmetic of the scheme is short; the content lies in the Rounding Theorem, which turns a vertex of the residual LP into a 0-1 schedule exceeding each deadline by at most the threshold. The obvious argument, rounding an arbitrary feasible LP solution, fails: a non-vertex solution may split many jobs across many machines, and rounding them can overload a machine by far more than ttt. The bound depends on the structure of vertices of (LP), which an arbitrary feasible point does not have. A second difficulty is the count of milestone 1, which must be done with a real exponent m/εm/\varepsilonm/ε and a strict inequality.

Formalization scope

  • Machines are Fin m, jobs Fin n, processing times a matrix P : Matrix (Fin m) (Fin n) ℕ with all entries positive. Load, makespan and optimal schedules are those of the published MatousekLP.Scheduling.Schedule, applied to the real cast of P.
  • A vertex of an LP is a point of Set.extremePoints of its feasible region. Variables absent from the paper's (LP) are kept as matrix entries fixed to 000, which leaves the vertices unchanged.
  • The LP solver is a parameter (a vertex selector) and AεA_\varepsilonAε​ is a predicate on procedures: each answer must extend an admissible schedule of long assignments, round the selected vertex within its support, and satisfy the (IP) load bound. The guarantee is proved for every such procedure. The output is thereby tied to what the algorithm computes, so the bound is not witnessed by an optimal schedule.
  • The binary search is a definition: greedy start, l=⌈t/m⌉l=\lceil t/m\rceill=⌈t/m⌉ (the paper's t/mt/mt/m rounded up because makespans are integers), d=⌊(u+l)/2⌋d=\lfloor(u+l)/2\rfloord=⌊(u+l)/2⌋, best stored schedule as output.
  • Not formalized: that mmm is fixed, the polynomial running time, and the space bound polynomial in mmm, log⁡(1/ε)\log(1/\varepsilon)log(1/ε) and the input size. The guarantee is stated for every m≥1m\ge1m≥1. The count (n+1)m/ε(n+1)^{m/\varepsilon}(n+1)m/ε of milestone 1, on which the running-time claim rests, is formalized, with the real power Real.rpow.
  • The constants are exact: 1+ε1+\varepsilon1+ε, (n+1)m/ε(n+1)^{m/\varepsilon}(n+1)m/ε, d−ti+εdd-t_i+\varepsilon dd−ti​+εd. Milestone 1 needs n≥1n\ge1n≥1 and m≥1m\ge1m≥1 for strictness.
  • Theorem 1 (the Rounding Theorem) and Lemma 1 are milestones of mission 1 of this series and are not restated here.

Welcome contributions: a proof of the Rounding Theorem in the generality of real deadlines and thresholds, proofs of the counting bound, and lemmas on the binary search that are reusable for any relaxed decision procedure.

Selected references

  • J.K. Lenstra, D.B. Shmoys, É. Tardos, Approximation algorithms for scheduling unrelated parallel machines, CWI Report OS-R8714, Centre for Mathematics and Computer Science, Amsterdam, 1987 (the source; Theorem 3, p. 6). Journal version: Mathematical Programming 46 (1990) 259–271. https://doi.org/10.1007/BF01585745
  • E. Horowitz, S. Sahni, Exact and approximate algorithms for scheduling nonidentical processors, Journal of the ACM 23 (1976) 317–327. https://doi.org/10.1145/321941.321951
  • C.N. Potts, Analysis of a linear programming heuristic for scheduling unrelated parallel machines, Discrete Applied Mathematics 10 (1985) 155–164. https://doi.org/10.1016/0166-218X(85)90009-5
  • D.S. Hochbaum, D.B. Shmoys, Using dual approximation algorithms for scheduling problems: theoretical and practical results, Journal of the ACM 34 (1987) 144–162. https://doi.org/10.1145/7531.7535
10 thms3 active usersReviewed
🏆Completed
Linear algebraOptimization·Captain: mikedeng1

Strongly Regular Generalized Equations IV: Strong Second-Order Sufficiency and Linearly Independent Binding Gradients Make the KKT Generalized Equation Strongly RegularResearch Paper

Motivation

A nonlinear program is rarely solved once. Its data are estimated, rounded, or varied on purpose in a parametric study, and an algorithm such as sequential quadratic programming replaces it at every iteration by a nearby linearised problem. Both uses need the same fact: near a solution, the Karush–Kuhn–Tucker (KKT) system should have exactly one solution for every small perturbation, and that solution should move Lipschitz-continuously with the perturbation. For problems with equality constraints only, or with strict complementary slackness, the classical implicit-function theorem gives this, as in Fiacco's sensitivity analysis (Fiacco 1976, reference [4] of the paper). Without strict complementarity the KKT system is not a smooth equation, and the classical theorem does not apply.

S. M. Robinson's paper Strongly regular generalized equations, Math. Oper. Res. 5 (1980) 43–62 introduced strong regularity to handle exactly this case. §2 of the paper proves an implicit-function theorem for generalized equations, §3 characterises strong regularity of linear generalized equations through a Schur complement, and §4, the subject of this mission, applies both to nonlinear programming. Its Theorem 4.1 identifies the conditions under which the KKT system is strongly regular. These conditions (strong second-order sufficiency and linearly independent binding gradients) became standard hypotheses in the stability theory of nonlinear programs and in the local convergence analysis of Newton-type methods.

Setting

Let Ω⊆Rn\Omega\subseteq\mathbb R^nΩ⊆Rn be open and let θ:Ω→R\theta:\Omega\to\mathbb Rθ:Ω→R, g:Ω→Rpg:\Omega\to\mathbb R^pg:Ω→Rp, h:Ω→Rqh:\Omega\to\mathbb R^qh:Ω→Rq be Fréchet differentiable. The program is

minimize θ(x)subject tog(x)≤0, h(x)=0.(4.1)\text{minimize } \theta(x)\quad\text{subject to}\quad g(x)\le0,\ h(x)=0.\qquad(4.1)minimize θ(x)subject tog(x)≤0, h(x)=0.(4.1)

The Lagrangian is L(x,u,v)=θ(x)+⟨u,g(x)⟩+⟨v,h(x)⟩\mathcal L(x,u,v)=\theta(x)+\langle u,g(x)\rangle+\langle v,h(x)\rangleL(x,u,v)=θ(x)+⟨u,g(x)⟩+⟨v,h(x)⟩, and L′\mathcal L'L′ is its gradient in xxx.

For a set CCC and a point zzz, the normal-cone operator ∂ψC(z)\partial\psi_C(z)∂ψC​(z) is the set of vectors yyy with ⟨y,c−z⟩≤0\langle y,c-z\rangle\le0⟨y,c−z⟩≤0 for all c∈Cc\in Cc∈C when z∈Cz\in Cz∈C, and the empty set when z∉Cz\notin Cz∈/C. The KKT conditions of (4.1) are the generalized equation

0∈F(x,u,v)+∂ψRn×R+p×Rq(x,u,v),F(x,u,v)=(L′(x,u,v), −g(x), −h(x)).(4.3)0\in F(x,u,v)+\partial\psi_{\mathbb R^n\times\mathbb R^p_+\times\mathbb R^q}(x,u,v),\qquad F(x,u,v)=\big(\mathcal L'(x,u,v),\,-g(x),\,-h(x)\big).\qquad(4.3)0∈F(x,u,v)+∂ψRn×R+p​×Rq​(x,u,v),F(x,u,v)=(L′(x,u,v),−g(x),−h(x)).(4.3)

Its middle block says g(x)≤0g(x)\le0g(x)≤0, u≥0u\ge0u≥0 and ⟨u,g(x)⟩=0\langle u,g(x)\rangle=0⟨u,g(x)⟩=0.

A generalized equation 0∈F(z)+∂ψC(z)0\in F(z)+\partial\psi_C(z)0∈F(z)+∂ψC​(z) is strongly regular at a solution z0z_0z0​ (DEFINITION, p. 45) if its linearisation T(z)=F(z0)+F′(z0)(z−z0)+∂ψC(z)T(z)=F(z_0)+F'(z_0)(z-z_0)+\partial\psi_C(z)T(z)=F(z0​)+F′(z0​)(z−z0​)+∂ψC​(z) satisfies the following. There are neighbourhoods UUU of 000 and VVV of z0z_0z0​ and a constant λ\lambdaλ such that, for every y∈Uy\in Uy∈U, the inclusion y∈T(z)y\in T(z)y∈T(z) has exactly one solution z=s(y)z=s(y)z=s(y) in VVV, and sss is λ\lambdaλ-Lipschitz on UUU.

At a solution (x0,u0,v0)(x_0,u_0,v_0)(x0​,u0​,v0​) the inequality constraints split into three groups:

  • g+g^+g+, with gi(x0)=0g_i(x_0)=0gi​(x0​)=0 and u0,i>0u_{0,i}>0u0,i​>0;
  • g0g^0g0, the weakly active ones, with gi(x0)=0=u0,ig_i(x_0)=0=u_{0,i}gi​(x0​)=0=u0,i​;
  • g−g^-g−, with gi(x0)<0g_i(x_0)<0gi​(x0​)<0.

Write L′′=L′′(x0,u0,v0)\mathcal L''=\mathcal L''(x_0,u_0,v_0)L′′=L′′(x0​,u0​,v0​) for the Hessian of the Lagrangian in xxx, H=h′(x0)H=h'(x_0)H=h′(x0​), G+=g+′(x0)G^+=g^{+\prime}(x_0)G+=g+′(x0​) and G0=g0′(x0)G^0=g^{0\prime}(x_0)G0=g0′(x0​). A square matrix is a P-matrix if all its principal minors are positive.

Formalization targets

Goal: Theorem 4.1 (p. 56)

Assume θ,g,h\theta,g,hθ,g,h are twice differentiable at x0x_0x0​ and (x0,u0,v0)(x_0,u_0,v_0)(x0​,u0​,v0​) solves (4.3). Assume also:

  • (a′) strong second-order sufficiency: ⟨y,L′′y⟩>0\langle y,\mathcal L''y\rangle>0⟨y,L′′y⟩>0 for all y≠0y\ne0y=0 with G+y=0G^+y=0G+y=0 and Hy=0Hy=0Hy=0;
  • (b) linear independence: the matrix [G+G0H]\begin{bmatrix}G^+\\G^0\\H\end{bmatrix}​G+G0H​​ has full row rank.

Then

(4.3) is strongly regular at (x0,u0,v0).\text{(4.3) is strongly regular at }(x_0,u_0,v_0).(4.3) is strongly regular at (x0​,u0​,v0​).

The Lipschitz constant is not fixed; the goal asserts that one exists.

Milestones

  1. The matrix K=[L′′HTG+T−H00−G+00]K=\begin{bmatrix}\mathcal L''&H^T&G^{+T}\\-H&0&0\\-G^+&0&0\end{bmatrix}K=​L′′−H−G+​HT00​G+T00​​ of (4.5) is nonsingular.
  2. The equations (4.8) define V,A,BV,A,BV,A,B uniquely, and the Schur complement S=[G0 0 0] K−1 [G0 0 0]TS=[G^0\ 0\ 0]\,K^{-1}\,[G^0\ 0\ 0]^TS=[G0 0 0]K−1[G0 0 0]T of (4.6) satisfies S=G0V=VTL′′VS=G^0V=V^T\mathcal L''VS=G0V=VTL′′V, so SSS is symmetric.
  3. A symmetric matrix is a P-matrix if and only if it is positive definite.
  4. SSS is positive definite.
  5. The §4 criterion (p. 55): (4.3) is strongly regular at (x0,u0,v0)(x_0,u_0,v_0)(x0​,u0​,v0​) if and only if KKK is nonsingular and SSS is a P-matrix.

A further item formalizes the example (4.9)–(4.10) on pp. 56–57: a linear generalized equation in R4\mathbb R^4R4 whose unique solution satisfies the ordinary second-order sufficient condition and (b), yet is not strongly regular.

Significance

Strong regularity is the hypothesis of Robinson's implicit-function theorem (Theorem 2.1 of the paper). Theorem 4.1 therefore yields, for a parametrised nonlinear program, a locally unique and Lipschitz-continuous KKT point together with its multipliers, without strict complementary slackness. The same property underlies the local quadratic convergence of Josephy–Newton and SQP methods, and the criterion of milestone 5 is the form in which it is usually checked. The example of (4.10) shows that the ordinary second-order sufficient condition is not enough; the weakly active constraints have to be dropped from the cone on which L′′\mathcal L''L′′ must be positive.

All statements are proved in the paper. None of them, nor the notion of strong regularity, has a machine-checked proof on this platform. The matrix milestones (1–4) are self-contained linear algebra and can be proved independently. Milestone 3 for arbitrary symmetric matrices is a variant of Sylvester's criterion, which Mathlib does not currently state. Milestone 5 rests on §3 and the appendix of the paper (the Schur-complement criterion and the reduction of a linear generalized equation over a polyhedral set), which are the subjects of the companion missions II and III of this series.

Difficulty

The obvious argument would apply the classical implicit-function theorem to the active KKT equations. It fails because of the weakly active constraints. Near (x0,u0,v0)(x_0,u_0,v_0)(x0​,u0​,v0​) a constraint with gi(x0)=0=u0,ig_i(x_0)=0=u_{0,i}gi​(x0​)=0=u0,i​ can become active or inactive under arbitrarily small perturbations, so the solution map is piecewise smooth, not smooth. Uniqueness has to hold across all the pieces simultaneously, which is a combinatorial condition: the P-matrix property of a Schur complement, not the nonsingularity of a single Jacobian. Example (4.10) shows that the natural guess (nonsingularity of every piece, guaranteed by ordinary second-order sufficiency) is insufficient: three distinct KKT points can coalesce at the origin.

The analytic part is also not routine. Strong regularity concerns the linearised problem with an arbitrary small perturbation on the right-hand side, including perturbations of the complementarity block. The criterion needs the reduction of §3 and the appendix, which localises the polyhedral set Rn×R+p×Rq\mathbb R^n\times\mathbb R^p_+\times\mathbb R^qRn×R+p​×Rq around the solution.

Formalization scope

  • Spaces. Points of Rn\mathbb R^nRn are EuclideanSpace ℝ (Fin n). The triple (x,u,v)(x,u,v)(x,u,v) lives in EuclideanSpace ℝ (Fin n ⊕ (Fin p ⊕ Fin q)), the Euclidean Rn+p+q\mathbb R^{n+p+q}Rn+p+q, so the normal cone uses the standard inner product. A product type, which carries the sup norm and no inner product, is deliberately not used.
  • Normal cone. The operator includes the clause z∈Cz\in Cz∈C, so it is empty off CCC.
  • Strong regularity. It is stated on the linearisation data, with a real Lipschitz constant λ\lambdaλ, and requires existence, uniqueness in VVV and the Lipschitz bound. Strong regularity at a point bundles a Fréchet derivative of FFF there.
  • Twice differentiable at x0x_0x0​. This is encoded as θ\thetaθ, gig_igi​, hjh_jhj​ differentiable on the open set Ω\OmegaΩ (the standing assumption of (4.1)), together with differentiability at x0x_0x0​ of their gradients. It is not C2C^2C2 on Ω\OmegaΩ, and symmetry of L′′\mathcal L''L′′ is not assumed; it follows.
  • Matrix conventions. Positive definite means ⟨w,Mw⟩>0\langle w,Mw\rangle>0⟨w,Mw⟩>0 for w≠0w\ne0w=0, without symmetry. P-matrix quantifies over all nonempty principal index sets. The Schur complement is used only together with nonsingularity of (4.5), because Mathlib's inverse of a singular matrix is 000.
  • What must not be formalized. Replacing (a′) by the ordinary second-order sufficient condition, or restricting (b) to G+G^+G+ and HHH, gives a false or a different theorem. The milestones state exactly which constraints enter each condition: (a′) uses G+G^+G+ and HHH, and (b) uses G+G^+G+, G0G^0G0 and HHH. A formalization that drops the weakly active constraints from (b), or assumes strict complementarity, trivializes the goal to the classical implicit-function theorem.
  • Infrastructure. A complete development needs the normal cone of a product of orthants, block-matrix inversion and Schur-complement identities, Sylvester-type criteria for symmetric matrices, and the reduction of a linear generalized equation over a polyhedral set to its reduced form. The linear-algebra milestones are reusable beyond this mission. Proofs of any milestone, and of the general P-matrix/positive-definite equivalence, are welcome.

Selected references

  • S. M. Robinson, Strongly regular generalized equations, Mathematics of Operations Research 5(1) (1980) 43–62. https://doi.org/10.1287/moor.5.1.43
  • A. V. Fiacco and G. P. McCormick, Nonlinear Programming: Sequential Unconstrained Minimization Techniques, Wiley, 1968 (reference [3] of the paper; second-order sufficient condition, Chapter 2).
  • A. V. Fiacco, Sensitivity analysis for nonlinear programming using penalty methods, Mathematical Programming 10 (1976) 287–311 (reference [4] of the paper). https://doi.org/10.1007/BF01580379
  • R. W. Cottle, Manifestations of the Schur complement, Linear Algebra and its Applications 8 (1974) 189–211 (reference [1] of the paper). https://doi.org/10.1016/0024-3795(74)90055-4
  • A. L. Dontchev and R. T. Rockafellar, Implicit Functions and Solution Mappings, 2nd ed., Springer, 2014 (modern account of strong regularity). https://doi.org/10.1007/978-1-4939-1037-3
9 thms3 active usersReviewed
🏆Completed
CombinatoricsOptimization·Captain: mikedeng1

Application of the Branch and Bound Technique to Some Flow-Shop Scheduling Problems 3: Shifting and Scaling the Processing Times Changes Neither the Optimal Sequence nor the Branch-and-Bound PathResearch Paper

Motivation

Branch and bound was introduced for integer programming by Land and Doig (1960) and for the travelling salesman problem by Little, Murty, Sweeney and Karel (1963). Ignall and Schrage (1965) were among the first to apply it to machine scheduling. They give lower bounds for two permutation flow-shop problems: the makespan on three machines, and the mean completion time on two. Their Appendix then asks how the method depends on the units and the origin of the data. Its THEOREM says that changing the location and the scale of all processing times changes neither the optimal sequence nor the path the branch-and-bound procedure takes.

The statement matters for computational experiments of the kind the paper reports. Run times and node counts measured on one jobset carry over to every jobset obtained from it by a positive affine change of the processing times, so a test family need only vary the shape of the data, not its location and scale. It is also a correctness property of the procedure: a branch-and-bound method whose behaviour depended on the time unit would be suspect.

Setting

There are nnn jobs, and every job visits the machines in the same order: AAA, then BBB (two-machine problem), or AAA, BBB, then CCC (three-machine problem). Job iii has nonnegative processing times ai,bia_i, b_iai​,bi​ (and cic_ici​). Following Johnson (1954), both problems are restricted to permutation schedules. A full sequence σ\sigmaσ lists the jobs in the order in which every machine processes them, and each operation starts as early as possible. The makespan of σ\sigmaσ is the time machine CCC finishes its last job. The completion time did_idi​ of job iii is the time machine BBB finishes it, and the two-machine objective is ∑idi\sum_i d_i∑i​di​, which is nnn times the mean completion time.

A node JrJ_rJr​ is a partial sequence of rrr distinct jobs, and Jˉr\bar J_rJˉr​ is the set of the n−rn-rn−r jobs it has not scheduled. For three machines, TIMEA,TIMEB,TIMEC(Jr)\mathrm{TIMEA}, \mathrm{TIMEB}, \mathrm{TIMEC}(J_r)TIMEA,TIMEB,TIMEC(Jr​) are the times the machines finish JrJ_rJr​, and the lower bound (p. 401) is

LB(Jr)=max⁡[TIMEA+∑Jˉrai+min⁡Jˉr(bi+ci), TIMEB+∑Jˉrbi+min⁡Jˉrci, TIMEC+∑Jˉrci].LB(J_r)=\max\Big[\mathrm{TIMEA}+\sum_{\bar J_r}a_i+\min_{\bar J_r}(b_i+c_i),\ \mathrm{TIMEB}+\sum_{\bar J_r}b_i+\min_{\bar J_r}c_i,\ \mathrm{TIMEC}+\sum_{\bar J_r}c_i\Big].LB(Jr​)=max[TIMEA+Jˉr​∑​ai​+Jˉr​min​(bi​+ci​), TIMEB+Jˉr​∑​bi​+Jˉr​min​ci​, TIMEC+Jˉr​∑​ci​].

For two machines, T^r\hat T_rT^r​ and S^r\hat S_rS^r​ are the minima over orderings of Jˉr\bar J_rJˉr​ of two explicit sums TrT_rTr​, SrS_rSr​ (pp. 405–406), and the lower bound is LB(Jr)=∑i∈Jrdi+max⁡(T^r,S^r)LB(J_r)=\sum_{i\in J_r}d_i+\max(\hat T_r,\hat S_r)LB(Jr​)=∑i∈Jr​​di​+max(T^r​,S^r​).

The branch-and-bound procedure (p. 402) keeps a list of nodes ranked by LBLBLB, starting from the root alone. At each step it removes the first node and inserts each of its children Jr jJ_r\,jJr​j ranked into the list. On ties a new node goes before an old one (p. 403). It stops when the first node has scheduled n−1n-1n−1 jobs, which fixes the whole sequence. The list after kkk steps is runLB(k)\mathrm{run}_{LB}(k)runLB​(k).

Problems P′P'P′ (data ai′,bi′,ci′a'_i,b'_i,c'_iai′​,bi′​,ci′​) and P~\tilde PP~ are related by a change of location and scale when

a~i=H(ai′+G),b~i=H(bi′+G),c~i=H(ci′+G),H,G>0.\tilde a_i = H(a'_i+G),\qquad \tilde b_i=H(b'_i+G),\qquad \tilde c_i = H(c'_i+G),\qquad H,G>0.a~i​=H(ai′​+G),b~i​=H(bi′​+G),c~i​=H(ci′​+G),H,G>0.

Formalization targets

Goal: the Appendix THEOREM (p. 411)

For both the three-machine makespan problem and the two-machine sum-of-completion-times problem:

σ is optimal for P~  ⟺  σ is optimal for P′,runLBP~(k)=runLBP′(k)  for all k.\sigma \text{ is optimal for } \tilde P \iff \sigma \text{ is optimal for } P', \qquad \mathrm{run}_{LB_{\tilde P}}(k)=\mathrm{run}_{LB_{P'}}(k)\ \text{ for all } k .σ is optimal for P~⟺σ is optimal for P′,runLBP~​​(k)=runLBP′​​(k)  for all k.

Milestones, in the order of the paper's proof

  1. Adding GGG to every processing time raises the completion time of the rrr-th job on machine MMM by G(r+M−1)G(r+M-1)G(r+M−1).
  2. On two machines, ∑idi\sum_i d_i∑i​di​ rises by 12Gn(n+3)\tfrac12 Gn(n+3)21​Gn(n+3) for every sequence.
  3. On two machines, T^r\hat T_rT^r​ and S^r\hat S_rS^r​ rise by G[r(n−r)+12(n−r)(n−r+1)+(n−r)]G[r(n-r)+\tfrac12(n-r)(n-r+1)+(n-r)]G[r(n−r)+21​(n−r)(n−r+1)+(n−r)], ∑Jrdi\sum_{J_r}d_i∑Jr​​di​ by 12Gr(r+3)\tfrac12Gr(r+3)21​Gr(r+3), and LB(Jr)LB(J_r)LB(Jr​) by 12Gn(n+3)\tfrac12Gn(n+3)21​Gn(n+3), for 1≤r≤n−11\le r\le n-11≤r≤n−1.
  4. On three machines, every makespan and every LB(Jr)LB(J_r)LB(Jr​) with 1≤r≤n−11\le r\le n-11≤r≤n−1 rises by G(n+2)G(n+2)G(n+2).
  5. Multiplying all processing times by H>0H>0H>0 multiplies all these quantities by HHH.
  6. If LB′=φ∘LBLB'=\varphi\circ LBLB′=φ∘LB on the nodes with 1≤r≤n−11\le r\le n-11≤r≤n−1, for a strictly increasing φ\varphiφ, the two runs coincide at every step.

Significance

The THEOREM makes the method's behaviour a function of the shape of the data alone, not of its location or scale. This justifies normalizing test data, comparing running times across jobsets that differ by a change of units, and reporting results for one representative of each class. The proof also isolates a general principle: a deterministic best-first search depends on its bound only through the order the bound induces on the nodes it compares. Milestone 6 states that principle for the procedure of p. 402 with an arbitrary bound, so it applies to any other bound plugged into the same procedure.

As far as is known, no machine-checked version of this result or of the two lower bounds exists. The formalization needs the paper's procedure, with its tie rule, as an explicit deterministic function, and both lower bounds as functions of a node. The mission produces both, along with exact shift identities for every quantity the procedure uses.

Difficulty

The obvious argument is "adding GGG adds a constant to everything", and it is not literally true. The constant depends on the position of a job and on the machine, so the identities must be computed term by term: maxima over machine-availability times commute with the shift only because both arguments move by the same amount, and that fails at the first job if processing times may be negative. The paper's own accounting contains a slip, the missing factor GGG in 12r(r+3)\tfrac12 r(r+3)21​r(r+3). Its claim that "all lower bounds" of the three-machine problem rise by G(n+2)G(n+2)G(n+2) is false at the root, where TIMEB=0\mathrm{TIMEB}=0TIMEB=0 does not move. The run equality therefore has to use the fact that the root is never compared with another node. The minima T^r\hat T_rT^r​, S^r\hat S_rS^r​ range over all orderings of Jˉr\bar J_rJˉr​, so their shift requires every ordering to move by the same amount. Finally, "the same path" has to be shown for the procedure's insertion with ties, step by step.

Formalization scope

  • Jobs are Fin n, numbered from 000. Processing times are real, and the shift statements and the goal assume them nonnegative, the paper's standing convention for durations. With negative times the goal is false (a three-job counterexample is recorded in the goal's statement). Scaling needs no sign condition.
  • The schedules of full sequences are Johnson's published as-soon-as-possible schedules (JohnsonFlowShop.ThreeStage.asapDone, JohnsonFlowShop.TwoStage.asapC2). Node attributes are computed by the same recursion on lists.
  • The two-machine objective is ∑idi\sum_i d_i∑i​di​ instead of the mean; the two have the same minimizers.
  • T^r\hat T_rT^r​ and S^r\hat S_rS^r​ are minima over all orderings of Jˉr\bar J_rJˉr​, not values at a sorted order.
  • Terminal nodes have depth n−1n-1n−1. The procedure inserts children one at a time in increasing job index, each before every node of equal bound. Dominance discarding is not part of it.
  • Explicit readings. "The same sequence is optimal for both problems" means the sets of optimal sequences are equal, stated as an iff for every σ\sigmaσ. "Will follow the same path" means run(k)\mathrm{run}(k)run(k) is equal for both problems at every kkk. The paper's "all lower bounds" in the three-machine shift is restricted to nodes with 1≤r≤n−11\le r\le n-11≤r≤n−1. The hypotheses H>0H>0H>0 and G>0G>0G>0 are kept as stated.
  • Trivializations ruled out. A goal asserting only that some common optimal sequence exists, or only that the optimal values are related, would be weaker than the THEOREM. The goal states the iff and the equality of runs, with the procedure fixed independently of the data except through the bound.
  • The procedure, the node attributes and the lower bounds are also drafted in missions 1 and 2 of this series. Milestone 6 is reusable for any bound used with the same procedure. Proofs of any milestone are welcome. Generalizations, such as arbitrary real GGG in the shift identities, are welcome as separate items.

Credit: Johnson (1954) for the reduction to permutation schedules and the published schedule definitions. No platform item treats flow-shop lower bounds or branch and bound over sequences. The nearest is the branch-and-bound mission BiconvexProg.BranchBound (Al-Khayyal and Falk), an unrelated algorithm for biconvex programs.

Selected references

  • E. Ignall, L. Schrage, Application of the branch and bound technique to some flow-shop scheduling problems, Operations Research 13(3), 400–412, 1965. https://doi.org/10.1287/opre.13.3.400
  • S. M. Johnson, Optimal two- and three-stage production schedules with setup times included, Naval Research Logistics Quarterly 1(1), 61–68, 1954. https://doi.org/10.1002/nav.3800010110
  • A. H. Land, A. G. Doig, An automatic method of solving discrete programming problems, Econometrica 28(3), 497–520, 1960. https://doi.org/10.2307/1910129
  • J. D. C. Little, K. G. Murty, D. W. Sweeney, C. Karel, An algorithm for the traveling salesman problem, Operations Research 11(6), 972–989, 1963. https://doi.org/10.1287/opre.11.6.972
15 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryOptimization·Captain: mikedeng1

Sequencing a One State-Variable Machine: A Solvable Case of the Traveling Salesman Problem 2: For g = 0 ≤ f, the Tour ψ′ Minimizes the Largest Changeover CostResearch Paper

Motivation

A machine whose condition is described by one real number — the temperature of a furnace, the setting of a cutting knife — must process NNN jobs in some order. Job iii must be started in state AiA_iAi​ and leaves the machine in state BiB_iBi​; moving the state between jobs costs money. Ordering the jobs so that the machine returns to its starting job after the last one is a traveling salesman problem whose distance matrix has a special structure. P. C. Gilmore and R. E. Gomory showed in 1964 (Oper. Res. 12(5), 655–679) that this special traveling salesman problem can be solved exactly with O(N2)O(N^2)O(N2) operations, one of the first nontrivial polynomially solvable cases of the problem.

The same paper also treats a second objective: instead of the total changeover cost, minimize the largest single changeover cost of the cycle. This is the bottleneck traveling salesman problem, relevant whenever the binding constraint is the worst transition (a maximal temperature swing, a longest retooling) rather than the total. Without the tour constraint it is the bottleneck assignment problem solved by O. Gross (RAND, 1959). Gilmore and Gomory solve the bottleneck tour problem for the cost matrix of their model when only increases of the state cost anything. This mission formalizes that solution.

Timeline: Gross (1959) solves the bottleneck assignment problem; Gilmore and Gomory (1964) solve the sum and bottleneck traveling salesman problems for one state-variable costs; Gilmore, Lawler and Shmoys survey the well-solved special cases of the traveling salesman problem in The Traveling Salesman Problem (Wiley, 1985), where this case is a standard entry.

Setting

There are N=n+1N = n+1N=n+1 jobs. Job iii has a starting state Ai∈RA_i\in\mathbb RAi​∈R and a final state Bi∈RB_i\in\mathbb RBi​∈R, and the jobs are numbered so that B1≤B2≤⋯≤BNB_1\le B_2\le\dots\le B_NB1​≤B2​≤⋯≤BN​. Given two cost densities f,g:R→Rf, g:\mathbb R\to\mathbb Rf,g:R→R, the cost of having job jjj follow job iii is

cij=∫BiAjf(x) dx  if Aj≥Bi,cij=∫AjBig(x) dx  if Bi>Aj.c_{ij} = \int_{B_i}^{A_j} f(x)\,dx \ \text{ if } A_j\ge B_i,\qquad c_{ij} = \int_{A_j}^{B_i} g(x)\,dx \ \text{ if } B_i > A_j .cij​=∫Bi​Aj​​f(x)dx  if Aj​≥Bi​,cij​=∫Aj​Bi​​g(x)dx  if Bi​>Aj​.

A permutation ψ\psiψ of the jobs means "job ψ(i)\psi(i)ψ(i) follows job iii". It is a tour if ψ(s)≠s\psi(s)\ne sψ(s)=s for every nonempty proper subset sss of the jobs, i.e. if ψ\psiψ is a single cycle. The bottleneck cost of ψ\psiψ is

m(ψ)=max⁡1≤i≤Nciψ(i).m(\psi) = \max_{1\le i\le N} c_{i\psi(i)} .m(ψ)=1≤i≤Nmax​ciψ(i)​.

The bottleneck case of the paper is g=0g = 0g=0 and f≥0f\ge 0f≥0: lowering the state is free, raising it costs ∫f\int f∫f.

A permutation φ\varphiφ ranks the AAA's if j>ij>ij>i implies Aφ(j)≥Aφ(i)A_{\varphi(j)}\ge A_{\varphi(i)}Aφ(j)​≥Aφ(i)​. An interchange αij\alpha_{ij}αij​ is the transposition of iii and jjj; ψαij\psi\alpha_{ij}ψαij​ means "first apply αij\alpha_{ij}αij​, then ψ\psiψ". The graph GφG_\varphiGφ​ has the jobs as nodes and an undirected arc Riφ(i)R_{i\varphi(i)}Riφ(i)​ for each iii; Rq,q+1R_{q,q+1}Rq,q+1​ is the arc joining consecutive nodes qqq and q+1q+1q+1. A spanning tree of GφG_\varphiGφ​ is a set TTT of arcs Rq,q+1R_{q,q+1}Rq,q+1​ such that Gφ∪TG_\varphi\cup TGφ​∪T is connected and no proper subset of TTT connects GφG_\varphiGφ​. In the bottleneck case the arc Rq,q+1R_{q,q+1}Rq,q+1​ is given the cost cqφ(q+1)c_{q\varphi(q+1)}cqφ(q+1)​, and a minimum spanning tree minimizes the sum of these costs. If its arcs are Rj1,j1+1,…,Rjm,jm+1R_{j_1,j_1+1},\dots,R_{j_m,j_m+1}Rj1​,j1​+1​,…,Rjm​,jm​+1​ with j1<⋯<jmj_1<\dots<j_mj1​<⋯<jm​, the paper's candidate tour is

ψ′=φ αj1j1+1 αj2j2+1⋯αjmjm+1.\psi' = \varphi\,\alpha_{j_1 j_1+1}\,\alpha_{j_2 j_2+1}\cdots\alpha_{j_m j_m+1}.ψ′=φαj1​j1​+1​αj2​j2​+1​⋯αjm​jm​+1​.

Formalization targets

Goal: ψ′\psi'ψ′ solves the bottleneck traveling salesman problem

For BBB sorted, f≥0f\ge0f≥0 locally integrable, g=0g=0g=0, φ\varphiφ ranking the AAA's and TTT a minimum spanning tree as above,

ψ′ is a tourandm(ψ′)≤m(ψ)  for every tour ψ.\psi' \text{ is a tour}\quad\text{and}\quad m(\psi')\le m(\psi)\ \text{ for every tour } \psi .ψ′ is a tourandm(ψ′)≤m(ψ)  for every tour ψ.

The goal fixes no numerical constant. It asserts both that the construction produces a tour and that the tour is optimal, so it is a statement about the paper's algorithm, not only about the optimal value.

Milestones

  1. Lemma 8 (p. 668): for a fixed qqq, the number of iii with i≤q<φ−1ψ(i)i\le q<\varphi^{-1}\psi(i)i≤q<φ−1ψ(i) equals the number of jjj with φ−1ψ(j)≤q<j\varphi^{-1}\psi(j)\le q<jφ−1ψ(j)≤q<j.
  2. Lemma 7 (p. 668): for a tour ψ\psiψ, the graph Gψ∗G_\psi^*Gψ∗​ — GφG_\varphiGφ​ plus the arcs Rq,q+1R_{q,q+1}Rq,q+1​ selected by these two conditions — is connected.
  3. Eq. (30) (p. 670): if Rq,q+1R_{q,q+1}Rq,q+1​ is an arc of Gψ∗G_\psi^*Gψ∗​ not in GφG_\varphiGφ​, then m(ψ)≥cqφ(q+1)m(\psi)\ge c_{q\varphi(q+1)}m(ψ)≥cqφ(q+1)​.
  4. φ\varphiφ minimizes mmm (p. 671): m(φ)≤m(ψ)m(\varphi)\le m(\psi)m(φ)≤m(ψ) for every permutation ψ\psiψ.
  5. The value of m(ψ′)m(\psi')m(ψ′) (p. 671): m(ψ′)m(\psi')m(ψ′) equals some cjφ(j)c_{j\varphi(j)}cjφ(j)​ or the cost cqφ(q+1)c_{q\varphi(q+1)}cqφ(q+1)​ of an arc of TTT.
  6. Theorem 6, corrected (p. 671): for a directed graph with nested out-neighbourhoods Γ1⊆⋯⊆ΓN={1,…,N}\Gamma_1\subseteq\dots\subseteq\Gamma_N=\{1,\dots,N\}Γ1​⊆⋯⊆ΓN​={1,…,N} and φ\varphiφ listing them as initial segments, a Hamiltonian circuit exists iff φ(q)∈Γq\varphi(q)\in\Gamma_qφ(q)∈Γq​ for all qqq and the graph Gφ′G'_\varphiGφ′​ is connected.

Significance

The result gives an exact solution of a bottleneck traveling salesman problem by one minimum spanning tree computation and a fixed sequence of transpositions. Since general bottleneck traveling salesman problems are NP-hard, cases with an exact algorithm are the reference points against which heuristics and approximation results are compared. Theorem 6, an application, characterizes Hamiltonicity for directed graphs whose out-neighbourhoods form a chain, a class on which the general Hamiltonian circuit problem becomes a connectivity test.

The result is proved in the paper; the mission formalizes the proof. To our knowledge none of it has a machine-checked proof. The formalization adds two things to the paper. First, the statements are made explicit: the order in which interchanges are applied, the reading of "spanning tree", the integrability of fff. Second, Theorem 6 as printed is false (see below), and the mission states and asks for a proof of the corrected version. Machine-checked statements of Gψ∗G_\psi^*Gψ∗​ and Lemmas 7–8 are also the shared core of the companion mission on the minimal sum tour.

Difficulty

The obvious argument — every tour must "cross" each gap between consecutive components of GφG_\varphiGφ​, so it pays at least the cheapest crossing — fails because the cost of a crossing is not intrinsic to the gap: a tour may cross between components using arcs that are not of the form Rq,q+1R_{q,q+1}Rq,q+1​, and mmm looks at one arc at a time, not at a sum. The connection between an arbitrary tour and the spanning trees of GφG_\varphiGφ​ goes through the auxiliary graph Gψ∗G_\psi^*Gψ∗​ and a counting argument (Lemma 8), and the sum-minimizing tree must be shown to be bottleneck-optimal as well. For the upper bound, the transpositions in ψ′\psi'ψ′ cascade along runs of consecutive tree arcs, so ψ′(i)\psi'(i)ψ′(i) need not be φ(i)\varphi(i)φ(i) or φ(i+1)\varphi(i+1)φ(i+1); only the maximum m(ψ′)m(\psi')m(ψ′) has that form, and showing it needs the monotonicity of cijc_{ij}cij​ in AjA_jAj​ and BiB_iBi​, which holds because f≥0f\ge0f≥0 and g=0g=0g=0.

Formalization scope

Jobs are Fin (n + 1) (0-based; the paper's job iii is index i−1i-1i−1). A,B:Fin(n+1)→RA, B : \text{Fin}(n+1)\to\mathbb RA,B:Fin(n+1)→R with Monotone B. The cost keeps the general two-density form (1); the bottleneck hypotheses are f≥0f\ge0f≥0 everywhere, ggg identically 000, and fff locally integrable, so that every interval integral is genuine. Permutations are Equiv.Perm, and ψαij\psi\alpha_{ij}ψαij​ is ψ * Equiv.swap i j. mmm is a Finset.sup' over all jobs, including those that ψ′\psi'ψ′ leaves unchanged. The arc Rq,q+1R_{q,q+1}Rq,q+1​ is indexed by q : Fin n.

Explicit readings of the paper's phrases:

  • "tour": ψ(s)≠s\psi(s)\ne sψ(s)=s for every nonempty proper subset sss (the empty set is always fixed);
  • "a minimal set of additional arcs that connect": a connecting set of arcs Rq,q+1R_{q,q+1}Rq,q+1​ none of whose proper subsets connects;
  • "minimum spanning tree … with these new costs": minimum sum of cqφ(q+1)c_{q\varphi(q+1)}cqφ(q+1)​ over all such trees, not a bottleneck tree;
  • "j1,…,jmj_1,\dots,j_mj1​,…,jm​ in increasing order": the interchanges are applied to φ\varphiφ in increasing index, lowest first;
  • "ψ′\psi'ψ′ minimizes m(ψ′)m(\psi')m(ψ′)": ψ′\psi'ψ′ is a tour and m(ψ′)≤m(ψ)m(\psi')\le m(\psi)m(ψ′)≤m(ψ) for every tour ψ\psiψ;
  • Theorem 6: the condition φ(q)∈Γq\varphi(q)\in\Gamma_qφ(q)∈Γq​ for all qqq is added, without which sufficiency fails (for N=3N=3N=3, Γ1=Γ2={3}\Gamma_1=\Gamma_2=\{3\}Γ1​=Γ2​={3}, Γ3={1,2,3}\Gamma_3=\{1,2,3\}Γ3​={1,2,3}, φ=(3,1,2)\varphi=(3,1,2)φ=(3,1,2), Gφ′G'_\varphiGφ′​ is connected but no Hamiltonian circuit exists); the existence of φ\varphiφ is a hypothesis, not a claim.

Not formalized: the remark that the results hold for f=0f=0f=0, g≥0g\ge0g≥0; the remark that ψ′=ψ∗\psi'=\psi^*ψ′=ψ∗ when Bi≥Aφ(i)B_i\ge A_{\varphi(i)}Bi​≥Aφ(i)​; the O(N2)O(N^2)O(N2) operation count.

Trivializing formalizations are ruled out: with a Bochner integral and no integrability hypothesis every cost could collapse to 000 and every claim would hold; dropping the tour conjunct of the goal would let φ\varphiφ itself be "optimal"; and a maximum that ignored the unchanged arcs cjφ(j)c_{j\varphi(j)}cjφ(j)​ would make the goal false.

The traveling salesman items already on the platform (metric and symmetric models with tours as visiting orders, e.g. MetricTSP, TSPHeuristics.Shared.TSPModel) describe a different model and are not used. A complete development needs permutation cycle structure (Mathlib's Equiv.Perm.SameCycle), connectivity of finite simple graphs, and interval integrals of nonnegative functions; the lemmas on Gψ∗G_\psi^*Gψ∗​ and Lemma 8 are reusable for the sum objective. Proofs of any milestone are welcome independently.

Selected references

  • P. C. Gilmore and R. E. Gomory, Sequencing a one state-variable machine: a solvable case of the traveling salesman problem, Operations Research 12(5) (1964), 655–679. https://doi.org/10.1287/opre.12.5.655
  • O. Gross, The bottleneck assignment problem, RAND Corporation P-1630, 1959. https://www.rand.org/pubs/papers/P1630.html
  • P. C. Gilmore, E. L. Lawler and D. B. Shmoys, Well-solved special cases, in E. L. Lawler et al. (eds.), The Traveling Salesman Problem, Wiley, 1985, 87–143. ISBN 978-0-471-90413-7
9 thms3 active usersReviewed
🏆Completed
Markov ChainProbabilityStochastic Systems·Captain: mikedeng1

Contact Interactions on a Lattice II: If λₖ/μ < k/(2d − 1), the Expected Size of a Contact Process Is Integrable in TimeResearch Paper

Motivation

The contact process is the basic model of an infection spreading on a graph: infected sites recover at a constant rate, and healthy sites are infected at a rate that depends on how many of their neighbours are infected. T. E. Harris introduced it in Contact Interactions on a Lattice (Ann. Probab. 2, 1974, doi:10.1214/aop/1176996493), and it became one of the central examples of the theory of interacting particle systems (Liggett, Interacting Particle Systems, 1985, Ch. VI; Liggett, Stochastic Interacting Systems, 1999, Part I). Its questions are those of epidemiology and population dynamics on a spatial grid: does a finite infection die out, and how large does it get on the way?

Harris's paper gives the first rigorous subcritical bounds. Section 7 treats two quantities for a process started from a finite set: the probability p∞(ξ)p_\infty(\xi)p∞​(ξ) of surviving forever, and the expected size mt(ξ)m_t(\xi)mt​(ξ) at time ttt. This mission formalizes the second, Theorem 7.6: under an explicit condition on the rates, the expected size is integrable in time. The companion mission (Contact Interactions on a Lattice I) formalizes Theorem 7.1, extinction under the same condition.

A short timeline. Harris (1974) defined the process, proved monotonicity, subadditivity and submodularity by coupling, and gave the bounds of §7 and a survival result for large rates (§9). Holley and Liggett (Ann. Probab. 3, 1975) developed duality for such systems. Holley and Liggett's paper also proves, for a discrete-time branching process with interference, the analogue PF(An≠∅)≤EF∣An∣≤λn∣F∣P_F(A_n\ne\varnothing)\le E_F|A_n|\le\lambda^n|F|PF​(An​=∅)≤EF​∣An​∣≤λn∣F∣ of the size bounds studied here; it is a different process, related but not reused.

Setting

Fix d≥1d \ge 1d≥1 and the lattice ZdZ_dZd​ of integer points x=(x1,…,xd)x = (x^1, \dots, x^d)x=(x1,…,xd). Sites x,yx, yx,y are neighbours, x∼yx \sim yx∼y, if ∑i∣xi−yi∣=1\sum_i |x^i - y^i| = 1∑i​∣xi−yi∣=1; NxN_xNx​ is the set of the 2d2d2d neighbours of xxx. A configuration is a finite set ξ⊂Zd\xi \subset Z_dξ⊂Zd​ (the set Ξ0\Xi_0Ξ0​); ∣ξ∣|\xi|∣ξ∣ is its number of points, ξ(Nx)\xi(N_x)ξ(Nx​) is the number of neighbours of xxx in ξ\xiξ, and x∼ξx \sim \xix∼ξ means x∉ξx \notin \xix∈/ξ and xxx has a neighbour in ξ\xiξ.

The parameters are a death rate μ≥0\mu \ge 0μ≥0 and birth rates λ0=0,λ1,…,λ2d≥0\lambda_0 = 0, \lambda_1, \dots, \lambda_{2d} \ge 0λ0​=0,λ1​,…,λ2d​≥0. The contact process is the continuous-time Markov chain on finite configurations that, from ξ\xiξ, removes a point x∈ξx \in \xix∈ξ at rate μ\muμ and adds a site x∼ξx \sim \xix∼ξ at rate λξ(Nx)\lambda_{\xi(N_x)}λξ(Nx​)​. Its total jump rate is

qξ=μ∣ξ∣+∑x∼ξλξ(Nx).q_\xi = \mu|\xi| + \sum_{x \sim \xi} \lambda_{\xi(N_x)} .qξ​=μ∣ξ∣+x∼ξ∑​λξ(Nx​)​.

The empty configuration is absorbing. Pt(ξ,η)P_t(\xi, \eta)Pt​(ξ,η) is its transition function, r(ξ,η)=qξη/qξr(\xi,\eta) = q_{\xi\eta}/q_\xir(ξ,η)=qξη​/qξ​ the transition matrix of its jump chain, and

mt(ξ)=Eξ ∣ξt∣=∑ηPt(ξ,η) ∣η∣m_t(\xi) = \mathscr E_\xi\, |\xi_t| = \sum_{\eta} P_t(\xi, \eta)\, |\eta|mt​(ξ)=Eξ​∣ξt​∣=η∑​Pt​(ξ,η)∣η∣

the expected size at time ttt. In the Lean development these are trans μ lam t ξ η, jump μ lam ξ η and meanSize μ lam t ξ, where lam k is λk\lambda_kλk​.

Formalization targets

Goal: Theorem 7.6 (p. 982)

If μ>0\mu > 0μ>0 and

λkμ<k2d−1,k=1,…,2d,\frac{\lambda_k}{\mu} < \frac{k}{2d-1}, \qquad k = 1, \dots, 2d,μλk​​<2d−1k​,k=1,…,2d,

then for every finite ξ\xiξ,

∫0∞mt(ξ) dt<∞.\int_0^\infty m_t(\xi)\, dt < \infty .∫0∞​mt​(ξ)dt<∞.

Milestones

In the paper's proof order:

  1. Lemma 4.7: mt(ξ)≤∣ξ∣ e(2dΛ−μ)tm_t(\xi) \le |\xi|\, e^{(2d\Lambda - \mu)t}mt​(ξ)≤∣ξ∣e(2dΛ−μ)t with Λ=max⁡iλi\Lambda = \max_i \lambda_iΛ=maxi​λi​.
  2. Lemma 5.8, its mtm_tmt​ half: λk≤min⁡j≥kλj′\lambda_k \le \min_{j \ge k} \lambda'_jλk​≤minj≥k​λj′​ implies mt≤mt′m_t \le m'_tmt​≤mt′​.
  3. The change of time scale: multiplying all rates by ccc replaces mtm_tmt​ by mctm_{ct}mct​.
  4. Remark 5.5, three times. mtm_tmt​ is increasing in ξ\xiξ when λk↑\lambda_k \uparrowλk​↑; it is subadditive when also λk/k↓\lambda_k / k \downarrowλk​/k↓; and it is submodular when λ\lambdaλ is concave and non-decreasing.
  5. The first-jump equation (7.7) for a pair of neighbours, with K=2+(4d−2)λK = 2 + (4d-2)\lambdaK=2+(4d−2)λ.
  6. The bound after (7.11): M2(T)−M1(T)≤1/(1−(2d−1)λ)M_2(T) - M_1(T) \le 1/(1 - (2d-1)\lambda)M2​(T)−M1​(T)≤1/(1−(2d−1)λ).
  7. Lemma 7.5: if ∫0∞mt({x}) dt=∞\int_0^\infty m_t(\{x\})\,dt = \infty∫0∞​mt​({x})dt=∞, then ∫0∞(mt(ξ)−mt({x})) dt=∞\int_0^\infty (m_t(\xi) - m_t(\{x\}))\,dt = \infty∫0∞​(mt​(ξ)−mt​({x}))dt=∞ for ∣ξ∣≥2|\xi| \ge 2∣ξ∣≥2.

After the goal come two consequences: Lemma 4.11, mt+h(ξ)≥e−μhmt(ξ)m_{t+h}(\xi) \ge e^{-\mu h} m_t(\xi)mt+h​(ξ)≥e−μhmt​(ξ), and Remark 7.12, mt(ξ)→0m_t(\xi) \to 0mt​(ξ)→0.

Significance

The theorem says that the total expected infection time, summed over all sites, is finite. That is stronger than extinction (Theorem 7.1), and it quantifies how fast the process dies out on average. With Lemma 4.11 it gives mt(ξ)→0m_t(\xi) \to 0mt​(ξ)→0. Bounds on the expected size are the standard route to subcritical estimates for spatial epidemics and branching systems with interference. The milestones are also the paper's general tools. Monotonicity, subadditivity and submodularity of mtm_tmt​, comparison of rate sequences, and time scaling hold for every contact process and are reusable beyond this mission.

The theorem has been known since 1974, and the formalization of the contact process is new work: the platform has no machine-checked development of an interacting particle system on ZdZ_dZd​, nor of a continuous-time chain with unbounded rates. The mission produces a formal model of the contact process from a finite set, a Lean proof of the subcritical bound, and the coupling inequalities (stated here for mtm_tmt​) that any further work on the process will need.

Difficulty

The obvious argument fails. One would bound the growth rate of ∣ξt∣|\xi_t|∣ξt​∣ by its worst case: a site is born at rate at most λk\lambda_kλk​ for each of at most 2d∣ξ∣2d|\xi|2d∣ξ∣ boundary sites. This gives only Lemma 4.7, an exponential bound whose exponent 2dΛ−μ2d\Lambda - \mu2dΛ−μ is positive in most of the regime of the theorem. The factor 2d−12d - 12d−1 instead of 2d2d2d comes from correlations: a newly born site always has an occupied neighbour, so it adds at most 2d−12d - 12d−1 new boundary sites. Capturing this needs the comparison between a single site and a pair of neighbours in (7.7)–(7.11), together with submodularity, which is a coupling statement about the whole process. Lemma 7.5 then has to turn a bound on the difference M2−M1M_2 - M_1M2​−M1​ into a bound on M1M_1M1​, and the paper omits its proof.

In the formal setting the chain has unbounded rates (since qξq_\xiqξ​ grows with ∣ξ∣|\xi|∣ξ∣), so its transition function is not a matrix exponential. Uniformization does not apply either, and every statement goes through the minimal solution of the backward equations.

Formalization scope

  • The chain model. The process is the countable-state chain on finite configurations that the paper itself uses from §4 on. Theorems 4.1 and 4.3 show that the infinite-volume process started in Ξ0\Xi_0Ξ0​ is this chain. No process on infinite configurations and no probability space is constructed, and PξP_\xiPξ​, Eξ\mathscr E_\xiEξ​ enter only through PtP_tPt​.
  • The transition function. PtP_tPt​ is the minimal transition function of the rates (4.4)–(4.5), Pt=sup⁡nPt(n)P_t = \sup_n P^{(n)}_tPt​=supn​Pt(n)​, where Pt(n)P^{(n)}_tPt(n)​ is defined by Feller's backward recursion over at most nnn jumps.
  • Finite initial sets. Statements the paper makes for all ξ∈Ξ\xi \in \Xiξ∈Ξ (Lemmas 4.11 and 5.8, Remark 5.5) are drafted for finite ξ\xiξ.
  • Values. PtP_tPt​, ptp_tpt​ and mtm_tmt​ take values in [0,∞][0, \infty][0,∞]. Integrals of mtm_tmt​ are Lebesgue integrals of [0,∞][0,\infty][0,∞]-valued functions.
  • Lattice. Sites are Fin d → ℤ with the ℓ1\ell^1ℓ1 adjacency of the paper.
  • Standing hypotheses. Every statement carries d≥1d \ge 1d≥1, μ≥0\mu \ge 0μ≥0, λ0=0\lambda_0 = 0λ0​=0 and λk≥0\lambda_k \ge 0λk​≥0 for k≤2dk \le 2dk≤2d. Conditions on λ\lambdaλ range over k≤2dk \le 2dk≤2d only, since λk\lambda_kλk​ for k>2dk > 2dk>2d never enters the model. The goal adds μ>0\mu > 0μ>0, which the paper's ratio λk/μ\lambda_k/\muλk​/μ presupposes.

Several trivializing formalizations are excluded:

  • mtm_tmt​ is not a real tsum, which would be 000 when the series diverges;
  • the integral is not a real Bochner integral, which would be 000 for a non-integrable function;
  • the rate condition does not range over all k∈Nk \in \mathbb Nk∈N;
  • μ>0\mu > 0μ>0 is not left implicit: in Lean λk/0=0\lambda_k / 0 = 0λk​/0=0, and at μ=0\mu = 0μ=0 the conclusion is false;
  • the goal is not stated for singletons only.

A complete development needs the backward equation and non-explosion for PtP_tPt​ (Theorem 4.3, formalized in the companion mission), Fubini–Tonelli for ∑\sum∑ and ∫\int∫ in [0,∞][0,\infty][0,∞], and couplings of contact processes. The couplings are the paper's auxiliary multi-type processes (§§5–6), or an equivalent argument on the generator. Contributions are welcome at every level. The coupling lemmas and the backward and forward equations for minimal chains are the parts most reusable beyond this mission.

Selected references

  • T. E. Harris, Contact interactions on a lattice, Ann. Probab. 2(6), 969–988, 1974. https://doi.org/10.1214/aop/1176996493
  • R. Holley, T. M. Liggett, Ergodic theorems for weakly interacting infinite systems and the voter model, Ann. Probab. 3(4), 643–663, 1975. https://doi.org/10.1214/aop/1176996306
  • T. M. Liggett, Interacting Particle Systems, Springer, 1985. https://doi.org/10.1007/978-1-4613-8542-4
  • W. Feller, On the integro-differential equations of purely discontinuous Markoff processes, Trans. Amer. Math. Soc. 48, 488–515, 1940. https://doi.org/10.1090/S0002-9947-1940-0002697-3
  • J. R. Norris, Markov Chains, Cambridge University Press, 1997, §2.8. https://doi.org/10.1017/CBO9780511810633
13 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph Theory·Captain: mikedeng1

Sequencing Jobs to Minimize Total Weighted Completion Time Subject to Precedence Constraints 2: Near the Optimal Ratio, a Maximum-Weight Initial Set Is ρ-MaximalResearch Paper

Motivation

The single-machine sequencing problem with precedence constraints, written 1∣prec∣∑wjCj1\mid\mathrm{prec}\mid\sum w_jC_j1∣prec∣∑wj​Cj​, asks for an order of nnn jobs on one machine that respects a given acyclic digraph of precedences and minimizes the weighted sum of completion times. It is NP-hard in general (Lawler 1978; Lenstra and Rinnooy Kan 1978), and much of its structural theory goes through a decomposition due to Sidney (Sidney 1975): find an initial set of jobs of maximum weight-to-processing-time ratio, schedule it first, and recurse on the rest. Sidney's decomposition underlies the series-parallel algorithm of the same report, the 2-approximation algorithms for the general problem, and the vertex-cover view of Chudak–Hochbaum, Correa–Schulz and Ambühl–Mastrolilli.

The decomposition is only usable if a ratio-maximal initial set can be found efficiently. Section 7 of E. L. Lawler's report Sequencing jobs to minimize total weighted completion time subject to precedence constraints (IRIA-LABORIA Rapport de Recherche No. 205, December 1976; journal version in Annals of Discrete Mathematics 2, 1978) gives the polynomial algorithm: a binary search on the ratio, where each trial value is tested by one minimum-cut computation in an auxiliary network. This mission formalizes the correctness of that procedure.

Timeline.

  • 1970: Rhys (Management Science 17) solves the selection problem, the bipartite case of a maximum-weight closed set, by minimum cut.
  • 1975: Sidney introduces the decomposition into ratio-maximal initial sets.
  • 1976: Lawler (this report) reduces the search for a ratio-maximal initial set to O(log⁡n+log⁡w∗+log⁡p∗)O(\log n + \log w^* + \log p^*)O(logn+logw∗+logp∗) minimum-cut computations.
  • 1976: Picard (Management Science 22) treats the maximal closure of a general graph by the same network.

Setting

A finite set NNN of n=∣N∣n=|N|n=∣N∣ jobs carries an acyclic digraph G=(N,A)G=(N,A)G=(N,A); job iii must precede job jjj when GGG has a directed path from iii to jjj. Job jjj has an integer processing time pj≥1p_j\ge1pj​≥1 and an integer weight wjw_jwj​ of either sign.

An initial set of NNN is a set I⊆NI\subseteq NI⊆N that contains, with each of its jobs, every predecessor of that job. The ratio of a nonempty set is

ρ(I)=∑j∈Iwj∑j∈Ipj,\rho(I)=\frac{\sum_{j\in I}w_j}{\sum_{j\in I}p_j},ρ(I)=∑j∈I​pj​∑j∈I​wj​​,

and a nonempty initial set I∗I^*I∗ is ρ-maximal if ρ(I∗)≥ρ(I)\rho(I^*)\ge\rho(I)ρ(I∗)≥ρ(I) for every nonempty initial set III. Its ratio ρ∗\rho^*ρ∗ is the optimal ratio.

For a trial value ρ\rhoρ, the trial weights are wˉj=wj−ρpj\bar w_j=w_j-\rho p_jwˉj​=wj​−ρpj​. A maximum-weight initial set for wˉ\bar wwˉ is computed in the network G∗G^*G∗: add a source sss and a sink ttt, give the arc (s,j)(s,j)(s,j) capacity max⁡(0,−wj)\max(0,-w_j)max(0,−wj​), the arc (j,t)(j,t)(j,t) capacity max⁡(0,wj)\max(0,w_j)max(0,wj​), and every arc of GGG capacity +∞+\infty+∞. An (s,t)(s,t)(s,t) cutset is a partition (S,T)(S,T)(S,T) of the nodes with s∈Ss\in Ss∈S, t∈Tt\in Tt∈T, of capacity c(S,T)=∑i∈S∑j∈Tcijc(S,T)=\sum_{i\in S}\sum_{j\in T}c_{ij}c(S,T)=∑i∈S​∑j∈T​cij​.

The integer data satisfy −w∗≤wj≤w∗-w^*\le w_j\le w^*−w∗≤wj​≤w∗ and 1≤pj≤p∗1\le p_j\le p^*1≤pj​≤p∗, and ε=1/(np∗)2\varepsilon=1/(np^*)^2ε=1/(np∗)2.

Formalization targets

Goal: the last step of the binary search

If ρ≤ρ∗≤ρ+ε\rho\le\rho^*\le\rho+\varepsilonρ≤ρ∗≤ρ+ε, then every nonempty initial set III of maximum trial weight,

∑j∈I′(wj−ρpj)≤∑j∈I(wj−ρpj)for all initial sets I′,\sum_{j\in I'}(w_j-\rho p_j)\le\sum_{j\in I}(w_j-\rho p_j)\quad\text{for all initial sets } I',j∈I′∑​(wj​−ρpj​)≤j∈I∑​(wj​−ρpj​)for all initial sets I′,

is ρ-maximal. This is the paper's sentence "At this point the smallest value in the interval is chosen for a trial value ρ. … In either case, the maximum weight initial set I which is determined is ρ-maximal" (pp. 16–17).

Milestones

  1. Finite-capacity cutsets of G∗G^*G∗ correspond to initial sets I=T−{t}I=T-\{t\}I=T−{t} (p. 14).
  2. A finite cutset has capacity ∑j∈Nmax⁡(0,wj)−∑j∈Iwj\sum_{j\in N}\max(0,w_j)-\sum_{j\in I}w_j∑j∈N​max(0,wj​)−∑j∈I​wj​ (p. 15).
  3. A minimum cutset yields a maximum-weight initial set (p. 15).
  4. Cases 1–3: a maximum-weight set of positive, negative or zero trial weight shows that ρ\rhoρ is too small, too large, or optimal (pp. 15–16).
  5. Every attainable ratio lies in [−w∗,w∗][-w^*,w^*][−w∗,w∗] (p. 16).
  6. Two distinct attainable ratios differ by at least 1/(np∗)21/(np^*)^21/(np∗)2 (p. 16).

Significance

The goal is what makes Sidney's decomposition algorithmic: a ρ-maximal initial set can be found by a polynomial number of minimum-cut computations, with the bound 2log⁡2n+log⁡2w∗+2log⁡2p∗+12\log_2 n+\log_2 w^*+2\log_2 p^*+12log2​n+log2​w∗+2log2​p∗+1 on the number of trial values. Ratio-maximal initial sets are the first step of every Sidney-decomposition-based algorithm for 1∣prec∣∑wjCj1\mid\mathrm{prec}\mid\sum w_jC_j1∣prec∣∑wj​Cj​, and the cut network is the standard reduction of maximum-weight closure to minimum cut, used across open-pit mining, project selection and parametric optimization.

The results are classical and proved in the report. No machine-checked version of the closure–cut correspondence, the ratio-separation bound, or the binary-search correctness is known to exist in Lean or on Prove2Me. The mission produces a reusable formal account of initial sets, the network G∗G^*G∗ with infinite capacities, and the parametric test of a ratio.

Difficulty

Each step is short on paper; the difficulty is in the corners the paper does not discuss. The paper's "maximum weight initial set" ranges over all initial sets, and the empty set has weight 000. At ρ=ρ∗\rho=\rho^*ρ=ρ∗ the empty set is a maximizer and is not ρ-maximal, so the final step needs a nonempty maximizer; and Case 2, read literally over all initial sets, can never occur. The argument at the left end of the interval also needs the separation bound in the right direction: the printed display ends with "<<<", while the argument needs "≥\ge≥". Finally, initial sets are closed under predecessors along paths, while a cut only sees single arcs, so the correspondence between finite cuts and initial sets needs the arcs of GGG to stay inside NNN.

Formalization scope

Jobs are a Finset N in a type ι; the precedence digraph is a relation G with every arc inside N and no directed cycle, and "must precede" is Relation.TransGen G. Weights and processing times are real in the general statements and integers cast to reals in the integer-data statements. Lean evaluates ρ(∅)=0/0\rho(\emptyset)=0/0ρ(∅)=0/0 as 000; ρ-maximality and every statement about attainable ratios therefore range over nonempty sets. Capacities take values in WithTop ℝ, with +∞=⊤+\infty=\top+∞=⊤; a pair of nodes that is not an arc of G∗G^*G∗ has capacity 000, and an infinite cut has capacity ⊤\top⊤. A cutset is given by its sink side T⊆{s,t}∪NT\subseteq\{s,t\}\cup NT⊆{s,t}∪N.

Added hypotheses and corrected slips, all disclosed in the items:

  • the goal assumes the maximum-weight initial set III is nonempty (the empty-set corner above);
  • Cases 2 and 3 maximize over nonempty initial sets;
  • the separation bound is stated with ≥\ge≥, against the printed "<<<";
  • the capacity display's first line, printed ∑j∈Scsj\sum_{j\in S}c_{sj}∑j∈S​csj​, is read as ∑j∈Tcsj\sum_{j\in T}c_{sj}∑j∈T​csj​, as its second line shows;
  • the interval [−w∗,w∗][-w^*,w^*][−w∗,w∗] and the separation bound are stated for every nonempty subset of NNN, a slight generalisation.

A trivializing formalization is ruled out: the goal assumes neither Case 1 nor Case 3, nor the separation bound, nor anything about cuts; those appear only as milestones. The running-time statements of §7 and the binary search loop itself are out of scope.

A complete development needs finite sums over finsets, path closure of initial sets, and extended-real arithmetic in WithTop ℝ. The cut network with infinite capacities and the closure correspondence are reusable for any maximum-weight closure problem. Proofs of the milestones, and of the goal from Cases 1 and 3 with the separation bound, are welcome.

Selected references

  • E. L. Lawler, Sequencing jobs to minimize total weighted completion time subject to precedence constraints, IRIA-LABORIA Rapport de Recherche No. 205, 1976. https://hal.science/hal-04716371v1 ; journal version Annals of Discrete Mathematics 2 (1978) 75–90, https://doi.org/10.1016/S0167-5060(08)70323-6
  • J. B. Sidney, Decomposition algorithms for single-machine sequencing with precedence relations and deferral costs, Operations Research 23 (1975) 283–298. https://doi.org/10.1287/opre.23.2.283
  • J. M. W. Rhys, A selection problem of shared fixed costs and network flows, Management Science 17 (1970) 200–207. https://doi.org/10.1287/mnsc.17.3.200
  • J.-C. Picard, Maximal closure of a graph and applications to combinatorial problems, Management Science 22 (1976) 1268–1272. https://doi.org/10.1287/mnsc.22.11.1268
11 thms3 active usersReviewed
🏆Completed
Convex OptimizationOptimization·Captain: mikedeng1

Nonlinear Proximal Point Algorithms Using Bregman Functions, with Applications to Convex Programming 3: The Nonquadratic Method of Multipliers for Linear Equality Constraints ConvergesResearch Paper

Motivation

The method of multipliers (augmented Lagrangian method) of Hestenes and Powell is one of the standard algorithms for constrained convex optimization. Each iteration minimizes the Lagrangian plus a quadratic penalty on the constraint residual, then updates the multiplier estimate. Rockafellar showed in 1976 that this method is the proximal point algorithm applied to the dual problem (Rockafellar, Math. Oper. Res. 1976), which explains its global convergence for convex programs without differentiability or constraint qualifications on the primal side.

The quadratic penalty is not the only one used in practice. Exponential and other nonquadratic penalties produce twice-differentiable augmented Lagrangians and were studied by Kort and Bertsekas and by Tseng and Bertsekas. Eckstein (Math. Oper. Res. 18(1), 1993, 202–226) gave a uniform convergence theory for such methods. He replaces the squared Euclidean distance in the proximal point algorithm by the D-function of a Bregman function hhh, proves convergence of the resulting algorithm for every maximal monotone operator (Theorem 1), and then derives nonquadratic multiplier methods by applying it to the dual of a convex program. This mission covers the linear-equality-constrained case, §4.1 and Theorem 6 of that paper.

Setting

Let f:Rn→(−∞,+∞]f : \mathbb R^n \to (-\infty, +\infty]f:Rn→(−∞,+∞] be convex and lower semicontinuous, let AAA be an m×nm \times nm×n matrix, b∈Rmb \in \mathbb R^mb∈Rm, and X⊆RnX \subseteq \mathbb R^nX⊆Rn closed and convex, with inf⁡{f(x)∣x∈X}<∞\inf\{f(x) \mid x \in X\} < \inftyinf{f(x)∣x∈X}<∞. The problem is

minimize f(x)such thatAx=b, x∈X.(7)\text{minimize } f(x) \quad\text{such that}\quad Ax = b,\ x \in X. \tag{7}minimize f(x)such thatAx=b, x∈X.(7)

Write δX\delta_XδX​ for the indicator function of XXX (000 on XXX, +∞+\infty+∞ off XXX) and fX=f+δXf_X = f + \delta_XfX​=f+δX​. The dual functional is

d(p)=inf⁡x∈X{f(x)+⟨p,Ax−b⟩},p∈Rm,d(p) = \inf_{x \in X}\bigl\{ f(x) + \langle p, Ax - b\rangle \bigr\}, \qquad p \in \mathbb R^m,d(p)=x∈Xinf​{f(x)+⟨p,Ax−b⟩},p∈Rm,

assumed not identically −∞-\infty−∞. An optimal multiplier (Lagrange multiplier) is a maximizer of ddd over Rm\mathbb R^mRm.

For an open set SSS, a Bregman function with zone SSS is a function h:Sˉ→Rh : \bar S \to \mathbb Rh:Sˉ→R that is continuously differentiable on SSS, strictly convex and continuous on Sˉ\bar SSˉ, and satisfies the level-set and limit conditions (iv)–(vi) of Definition 1 on its D-function Dh(x,y)=h(x)−h(y)−⟨∇h(y),x−y⟩D_h(x, y) = h(x) - h(y) - \langle \nabla h(y), x - y \rangleDh​(x,y)=h(x)−h(y)−⟨∇h(y),x−y⟩. Here the zone is all of Rm\mathbb R^mRm, and ∇h\nabla h∇h is assumed onto Rm\mathbb R^mRm. Let h∗(z)=sup⁡p{⟨p,z⟩−h(p)}h^*(z) = \sup_p\{\langle p, z\rangle - h(p)\}h∗(z)=supp​{⟨p,z⟩−h(p)} be the convex conjugate of hhh, and let ck>0c_k > 0ck​>0 with inf⁡kck>0\inf_k c_k > 0infk​ck​>0. The nonquadratic method of multipliers generates {(xk,pk)}\{(x^k, p^k)\}{(xk,pk)} by

xk+1∈arg min⁡x∈X{f(x)+1ck h∗(∇h(pk)+ck(Ax−b))},pk+1=∇h∗(∇h(pk)+ck(Axk+1−b)).(9)x^{k+1} \in \operatorname*{arg\,min}_{x \in X}\Bigl\{ f(x) + \tfrac{1}{c_k}\, h^*\bigl(\nabla h(p^k) + c_k(Ax - b)\bigr)\Bigr\}, \qquad p^{k+1} = \nabla h^*\bigl(\nabla h(p^k) + c_k(Ax^{k+1} - b)\bigr). \tag{9}xk+1∈x∈Xargmin​{f(x)+ck​1​h∗(∇h(pk)+ck​(Ax−b))},pk+1=∇h∗(∇h(pk)+ck​(Axk+1−b)).(9)

For h(p)=12∥p∥2h(p) = \frac12\|p\|^2h(p)=21​∥p∥2 this is the classical method of multipliers. A run of the general Bregman proximal point algorithm for an operator TTT is a sequence with 1ck(∇h(xk)−∇h(xk+1))∈T(xk+1)\frac{1}{c_k}(\nabla h(x^k) - \nabla h(x^{k+1})) \in T(x^{k+1})ck​1​(∇h(xk)−∇h(xk+1))∈T(xk+1) for all kkk.

Formalization targets

Goal: Theorem 6 (pp. 212–213)

Under the assumptions above:

∃ p⋆ optimal  ⟹  pk→some optimal multiplier, and every limit point of {xk} solves (7);\exists\, p^\star \text{ optimal} \;\Longrightarrow\; p^k \to \text{some optimal multiplier, and every limit point of } \{x^k\} \text{ solves (7)};∃p⋆ optimal⟹pk→some optimal multiplier, and every limit point of {xk} solves (7); ∄ p⋆ optimal  ⟹  {pk} is unbounded.\nexists\, p^\star \text{ optimal} \;\Longrightarrow\; \{p^k\} \text{ is unbounded}.∄p⋆ optimal⟹{pk} is unbounded.

The statement fixes no penalty: it holds for every Bregman function with zone Rm\mathbb R^mRm and surjective gradient. It makes no claim that {xk}\{x^k\}{xk} converges, which is false in general.

Milestones

  1. Theorem 1 (pp. 206–207): for a maximal monotone TTT and a Bregman function hhh with zone SSS, Sˉ⊇dom⁡T\bar S \supseteq \operatorname{dom} TSˉ⊇domT, a run of the Bregman proximal point algorithm converges to a zero of TTT when one exists, under either (C1) S⊇dom⁡T‾S \supseteq \overline{\operatorname{dom} T}S⊇domT or (C2) T=∂fT = \partial fT=∂f for a closed proper convex fff. If TTT has no zero and (C1) holds, the run is unbounded.
  2. Proof of Theorem 6, p. 213: the multipliers produced by (9) form a Bregman proximal point run on ∂(−d)\partial(-d)∂(−d),
pk+1=(∇h+ck∂(−d))−1(∇h(pk)).p^{k+1} = \bigl(\nabla h + c_k \partial(-d)\bigr)^{-1}\bigl(\nabla h(p^k)\bigr).pk+1=(∇h+ck​∂(−d))−1(∇h(pk)).
  1. Proof of Theorem 6, p. 214: if pk→p⋆p^k \to p^\starpk→p⋆ with p⋆p^\starp⋆ optimal, then Axk→bAx^k \to bAxk→b, and every limit point x∞x^\inftyx∞ of {xk}\{x^k\}{xk} satisfies Ax∞=bAx^\infty = bAx∞=b, −ATp⋆∈∂fX(x∞)-A^{\mathsf T}p^\star \in \partial f_X(x^\infty)−ATp⋆∈∂fX​(x∞), and solves (7).

An additional item states the existence clause of Theorem 6: if the row space of AAA meets ri⁡(im⁡∂(f+δX))\operatorname{ri}(\operatorname{im} \partial(f + \delta_X))ri(im∂(f+δX​)), or fff and XXX are polyhedral and the row space meets im⁡∂(f+δX)\operatorname{im} \partial(f + \delta_X)im∂(f+δX​), then (9) has an infinite run from every starting point (x0,p0)(x^0, p^0)(x0,p0).

Significance

Theorem 6 gives global convergence of a whole family of augmented Lagrangian methods at once, with the penalty chosen through hhh. For instance, Example 5 of the paper obtains the method with penalty 1rck∑i∣μi+ck(Aix−bi)∣r\frac{1}{r c_k}\sum_i |\mu_i + c_k(A_i x - b_i)|^rrck​1​∑i​∣μi​+ck​(Ai​x−bi​)∣r for any r>1r > 1r>1. Its multiplier sequence behaves exactly as the dual proximal point iterates do, and it detects dual unsolvability through divergence of {pk}\{p^k\}{pk}. Primal limit points are optimal without any assumption beyond existence of a Lagrange multiplier.

The result has a published proof (Eckstein 1993) but, to our knowledge, no machine-checked proof. Formalizing it requires a formal treatment of Bregman functions and of the Bregman proximal point algorithm (Theorem 1). It also requires the subdifferential calculus of the dual functional: conjugates, the chain rule ∂(g∘AT)\partial(g \circ A^{\mathsf T})∂(g∘AT), and the inverse relation between ∇h\nabla h∇h and ∇h∗\nabla h^*∇h∗. The milestones isolate the reduction of (9) to Theorem 1 and the primal recovery argument, each of which can be proved independently of the others.

Difficulty

The reduction step is where a direct argument fails. Showing that pk+1p^{k+1}pk+1 is a proximal point of ∂(−d)\partial(-d)∂(−d) needs the inclusion −(Axk+1−b)∈∂(−d)(pk+1)-(Ax^{k+1} - b) \in \partial(-d)(p^{k+1})−(Axk+1−b)∈∂(−d)(pk+1), where −d(p)=(fX)∗(−ATp)+⟨b,p⟩-d(p) = (f_X)^*(-A^{\mathsf T}p) + \langle b, p\rangle−d(p)=(fX​)∗(−ATp)+⟨b,p⟩ is a composition of a conjugate with a linear map. The subdifferential chain rule holds with equality only under a qualification condition. The argument must therefore use only the inclusion that holds unconditionally, together with the optimality condition for the xxx-subproblem, which needs differentiability of h∗h^*h∗ everywhere (supplied by im⁡∇h=Rm\operatorname{im} \nabla h = \mathbb R^mim∇h=Rm and strict convexity of hhh). On the primal side, {xk}\{x^k\}{xk} need not be bounded or convergent, so primal optimality can only be asserted for limit points, through closedness of the graph of ∂fX\partial f_X∂fX​. Theorem 1 itself rests on the Bregman conditions (iv)–(vi), which replace the Fejér monotonicity of the Euclidean proximal point argument.

Formalization scope

  • Rk\mathbb R^kRk is EuclideanSpace ℝ (Fin k). AAA is a continuous linear map Rn→Rm\mathbb R^n \to \mathbb R^mRn→Rm (equivalent to an m×nm \times nm×n matrix), and ATA^{\mathsf T}AT is its adjoint. Theorem 1 is stated on any finite-dimensional real inner product space.
  • Functions into (−∞,+∞](-\infty, +\infty](−∞,+∞] are EReal-valued with "never −∞-\infty−∞" as a hypothesis. ∂f\partial f∂f uses the published IsSubgradient; convexity is convexity of the epigraph (IsConvexFn). Maximal monotonicity, dom and zer are the published ThreeOpSplitting.Convergence definitions. The conjugate h∗h^*h∗ is the published fenchelConjugate, an EReal supremum.
  • (9) uses the real value of h∗h^*h∗. This is faithful because im⁡∇h=Rm\operatorname{im}\nabla h = \mathbb R^mim∇h=Rm makes h∗h^*h∗ finite everywhere. Finiteness of h∗h^*h∗ is a consequence, never a hypothesis. The arg min in (9) is a minimality predicate, not a choice function, since the minimizer need not be unique.
  • Recursion (3) is encoded through its equivalent form (4). Condition (vi) of Definition 1 is stated on the natural domain Sˉ×S\bar S \times SSˉ×S of DhD_hDh​.
  • "Limit point" means subsequential limit, and "unbounded" means the range of the sequence is not bounded. In the existence clause, ri is Mathlib's intrinsicInterior, and polyhedral sets and functions are finite intersections of closed half-spaces (for functions, of the epigraph).
  • The paper's typo "monontone" in Theorem 1 is read as "monotone".
  • The convergence claims must not be weakened to their trivial instances. A formalization that assumes {xk}\{x^k\}{xk} converges, or adds finiteness of h∗h^*h∗ or boundedness of {pk}\{p^k\}{pk} as a hypothesis, or encodes (9) with a choice function, does not state Theorem 6.
  • Reusable beyond this mission: the Bregman function structure and Theorem 1 (shared with the other missions of this series), and the dual-functional and conjugate facts for linearly constrained programs. Contributions toward the conjugate calculus (∇h∗=(∇h)−1\nabla h^* = (\nabla h)^{-1}∇h∗=(∇h)−1, the chain rule inclusion) are welcome.

Selected references

  • J. Eckstein, Nonlinear proximal point algorithms using Bregman functions, with applications to convex programming, Mathematics of Operations Research 18(1) (1993) 202–226. https://doi.org/10.1287/moor.18.1.202
  • R. T. Rockafellar, Augmented Lagrangians and applications of the proximal point algorithm in convex programming, Mathematics of Operations Research 1(2) (1976) 97–116. https://doi.org/10.1287/moor.1.2.97
  • R. T. Rockafellar, Convex Analysis, Princeton University Press, 1970. https://doi.org/10.1515/9781400873173
  • Y. Censor, S. A. Zenios, Proximal minimization algorithm with D-functions, Journal of Optimization Theory and Applications 73(3) (1992) 451–464. https://doi.org/10.1007/BF00940051
  • P. Tseng, D. P. Bertsekas, On the convergence of the exponential multiplier method for convex programming, Mathematical Programming 60 (1993) 1–19. https://doi.org/10.1007/BF01580598
9 thms3 active usersReviewed
🏆Completed
ProbabilityStatistics·Captain: mikedeng1

Residual Life Time at Great Age 5: If |c − ((1 − F)/F′)′| ≤ ε for t ≥ t₀, the Residual Life Normed by (1 − F(t))/F′(t) Is Within ε of Π_{0,c} for t ≥ t₀Research Paper

Motivation

The residual life time of a lifetime XXX at age ttt is the excess X−tX - tX−t given survival, X>tX > tX>t. How it behaves at great ages is a question in reliability (remaining life of an item that has already lasted long), in insurance and demography (remaining life at old age), and in the peaks-over-threshold method of extreme value statistics, where exceedances over a high threshold are modelled by a generalized Pareto law.

Balkema and de Haan (Residual Life Time at Great Age, Ann. Probab. 2 (1974) 792–804) determined every possible limit law of the suitably normed residual life as t→∞t \to \inftyt→∞, and their domains of attraction. For continuous limits, the classical sufficient conditions are von Mises' conditions (1936) on the derivative of (1−F)/F′(1 - F)/F'(1−F)/F′. Section 4 of the paper goes further: it gives inequalities that hold at every finite age t≥t0t \ge t_0t≥t0​, not only in the limit. This mission formalizes that finite-ttt result, the Corollary to Theorem 7.

Timeline: von Mises (1936) gives sufficient conditions for domains of attraction of extreme value laws; Balkema and de Haan (1974) prove the limit theorems for residual life and the finite-ttt bounds formalized here; Pickands (1975, Ann. Statist. 3, 119–131) proves the corresponding approximation by the generalized Pareto law for excesses, the result now known as the Pickands–Balkema–de Haan theorem.

Setting

Let XXX be a real random variable with distribution function FFF. The residual life distribution function at age ttt is

Ft(x)=P{X−t≤x∣X>t}.F_t(x) = P\{X - t \le x \mid X > t\}.Ft​(x)=P{X−t≤x∣X>t}.

Assume FFF has a positive, differentiable density F′F'F′ for t≥t0t \ge t_0t≥t0​, and define the norming function

a(t)=1−F(t)F′(t)(t≥t0),a(t) = \frac{1 - F(t)}{F'(t)} \qquad (t \ge t_0),a(t)=F′(t)1−F(t)​(t≥t0​),

the reciprocal of the hazard rate. The normed residual life is (X−t)/a(t)(X - t)/a(t)(X−t)/a(t) given X>tX > tX>t, with distribution function P{(X−t)/a(t)≤x∣X>t}=Ft(x a(t))P\{(X - t)/a(t) \le x \mid X > t\} = F_t(x\,a(t))P{(X−t)/a(t)≤x∣X>t}=Ft​(xa(t)).

The comparison laws are the distribution functions Π0,c\Pi_{0,c}Π0,c​, c∈Rc \in \mathbb Rc∈R, all vanishing for x<0x < 0x<0:

  • for c>0c > 0c>0, Π0,c(x)=1−(1+cx)−1/c\Pi_{0,c}(x) = 1 - (1 + cx)^{-1/c}Π0,c​(x)=1−(1+cx)−1/c for x≥0x \ge 0x≥0 (a generalized Pareto law);
  • for c=0c = 0c=0, Π0,0(x)=Π(x)=1−e−x\Pi_{0,0}(x) = \Pi(x) = 1 - e^{-x}Π0,0​(x)=Π(x)=1−e−x for x≥0x \ge 0x≥0 (the exponential law);
  • for c<0c < 0c<0, Π0,c(x)=1−(1+cx)−1/c\Pi_{0,c}(x) = 1 - (1 + cx)^{-1/c}Π0,c​(x)=1−(1+cx)−1/c for 0≤x≤∣c∣−10 \le x \le |c|^{-1}0≤x≤∣c∣−1, and 111 beyond (bounded support).

Formalization targets

Goal: the Corollary to Theorem 7

If c≥0c \ge 0c≥0 and ε≥0\varepsilon \ge 0ε≥0 satisfy ∣c−a′(t)∣≤ε|c - a'(t)| \le \varepsilon∣c−a′(t)∣≤ε for t≥t0t \ge t_0t≥t0​, then

∣Π0,c(x)−P{X−ta(t)≤x | X>t}∣≤εfor all x and all t≥t0.\left|\Pi_{0,c}(x) - P\left\{\frac{X - t}{a(t)} \le x \,\middle|\, X > t\right\}\right| \le \varepsilon \qquad \text{for all } x \text{ and all } t \ge t_0 .​Π0,c​(x)−P{a(t)X−t​≤x​X>t}​≤εfor all x and all t≥t0​.

Milestones

  1. The bounds (13): if c1≤a′≤c2c_1 \le a' \le c_2c1​≤a′≤c2​ on [t0,∞)[t_0, \infty)[t0​,∞), then 1+c1x≤a(t+xa(t))/a(t)≤1+c2x1 + c_1 x \le a(t + x a(t))/a(t) \le 1 + c_2 x1+c1​x≤a(t+xa(t))/a(t)≤1+c2​x for t≥t0t \ge t_0t≥t0​, x≥0x \ge 0x≥0.
  2. The exponential representation
P{X−ta(t)>x | X>t}=1−F(t+xa(t))1−F(t)=exp⁡(−∫0xa(t)a(t+sa(t)) ds).P\left\{\frac{X - t}{a(t)} > x \,\middle|\, X > t\right\} = \frac{1 - F(t + x a(t))}{1 - F(t)} = \exp\left(-\int_0^x \frac{a(t)}{a(t + s a(t))}\, ds\right).P{a(t)X−t​>x​X>t}=1−F(t)1−F(t+xa(t))​=exp(−∫0x​a(t+sa(t))a(t)​ds).
  1. Theorem 7: if c1≤a′(t)≤c2c_1 \le a'(t) \le c_2c1​≤a′(t)≤c2​ for t≥t0t \ge t_0t≥t0​, then
Π0,c2(x)≤P{X−ta(t)≤x | X>t}≤Π0,c1(x)(t≥t0, x∈R).\Pi_{0,c_2}(x) \le P\left\{\frac{X - t}{a(t)} \le x \,\middle|\, X > t\right\} \le \Pi_{0,c_1}(x) \qquad (t \ge t_0,\ x \in \mathbb R).Π0,c2​​(x)≤P{a(t)X−t​≤x​X>t}≤Π0,c1​​(x)(t≥t0​, x∈R).
  1. σ(u)=u−2(e−u−1+u)=∫01∫0te−us ds dt\sigma(u) = u^{-2}(e^{-u} - 1 + u) = \int_0^1\int_0^t e^{-us}\,ds\,dtσ(u)=u−2(e−u−1+u)=∫01​∫0t​e−usdsdt is positive and decreasing.
  2. Lemma 4: 0≤−(∂/∂c)Π0,c(x)<10 \le -(\partial/\partial c)\Pi_{0,c}(x) < 10≤−(∂/∂c)Π0,c​(x)<1 for c>−1c > -1c>−1, x≠0x \ne 0x=0, cx≠−1cx \ne -1cx=−1.
  3. ∣Π0,c(x)−Π0,c0(x)∣≤∣c−c0∣|\Pi_{0,c}(x) - \Pi_{0,c_0}(x)| \le |c - c_0|∣Π0,c​(x)−Π0,c0​​(x)∣≤∣c−c0​∣ for c≥0c \ge 0c≥0 and all real c0c_0c0​, xxx.

The goal is the Corollary because it is the paper's final statement of Section 4: a single parameter ccc and a single error ε\varepsilonε, with no limit taken. Theorem 7 is the stronger two-parameter sandwich it rests on.

Significance

The result. Theorem 7 and its Corollary are a quantitative, non-asymptotic form of the von Mises condition ddt1−F(t)F′(t)→c\frac{d}{dt}\frac{1-F(t)}{F'(t)} \to cdtd​F′(t)1−F(t)​→c. If the derivative of the reciprocal hazard stays within ε\varepsilonε of ccc from age t0t_0t0​ on, then at every such age the normed excess distribution is uniformly within ε\varepsilonε of the generalized Pareto (or exponential) law Π0,c\Pi_{0,c}Π0,c​. Letting ε→0\varepsilon \to 0ε→0 along t0→∞t_0 \to \inftyt0​→∞ recovers convergence to Π0,c\Pi_{0,c}Π0,c​, and the bound itself quantifies the error of the generalized Pareto approximation used in threshold-exceedance modelling.

Formalizing it. The result is proved in the paper (1974), with short proofs. To our knowledge no part of it has a machine-checked proof. The mission produces checked versions of the theorem, the corollary and the elementary lemmas about the family Π0,c\Pi_{0,c}Π0,c​: its monotonicity and Lipschitz dependence on the parameter ccc, including across the case change at c=0c = 0c=0. Those facts about the generalized Pareto family are reusable in any formal development of extreme value statistics.

Difficulty

The analytic content is elementary, but several steps hide case analysis. The Lipschitz bound in ccc requires the derivative of Π0,c(x)\Pi_{0,c}(x)Π0,c​(x) in ccc across c=0c = 0c=0, where the formula changes from 1−(1+cx)−1/c1 - (1+cx)^{-1/c}1−(1+cx)−1/c to 1−e−x1 - e^{-x}1−e−x, and across the boundary cx=−1cx = -1cx=−1 of the support when c<0c < 0c<0, where the function is not differentiable. The bound −∂cΠ0,c<1-\partial_c \Pi_{0,c} < 1−∂c​Π0,c​<1 is not a crude estimate: it reduces to the comparison σ(u)<σ(−ψ)\sigma(u) < \sigma(-\psi)σ(u)<σ(−ψ) for the function σ(u)=u−2(e−u−1+u)\sigma(u) = u^{-2}(e^{-u} - 1 + u)σ(u)=u−2(e−u−1+u), which needs its strict monotonicity on all of R\mathbb RR, including u=0u = 0u=0 where the closed form is undefined. In Theorem 7 the lower bound 1+c1x1 + c_1 x1+c1​x in (13) becomes negative for c1<0c_1 < 0c1​<0 and large xxx; this is exactly where the comparison law Π0,c1\Pi_{0,c_1}Π0,c1​​ reaches 111, and the argument must handle it. The orientation is easy to get wrong: the upper bound c2c_2c2​ on the derivative gives the lower bound Π0,c2\Pi_{0,c_2}Π0,c2​​, since Π0,c(x)\Pi_{0,c}(x)Π0,c​(x) decreases in ccc.

Formalization scope

The source is the published Annals of Probability article (DOI 10.1214/aop/1176996548); page numbers are the journal's.

  • The law of XXX is a probability measure μ on ℝ, FFF is Mathlib's cdf μ, and Ft(x)=μ((t,t+x])/μ((t,∞))F_t(x) = \mu((t, t+x]) / \mu((t, \infty))Ft​(x)=μ((t,t+x])/μ((t,∞)). The normed probability P{(X−t)/a(t)≤x∣X>t}P\{(X-t)/a(t) \le x \mid X > t\}P{(X−t)/a(t)≤x∣X>t} is Ft(x a(t))F_t(x\,a(t))Ft​(xa(t)).
  • "Positive, differentiable density for t≥t0t \ge t_0t≥t0​" is: for t≥t0t \ge t_0t≥t0​, cdf μ has derivative f(t)>0f(t) > 0f(t)>0 and fff has derivative f′(t)f'(t)f′(t), both within [t0,∞)[t_0, \infty)[t0​,∞); nothing is assumed to the left of t0t_0t0​.
  • The derivative ddta(t)\frac{d}{dt}a(t)dtd​a(t) is a named function a′a'a′ with HasDerivWithinAt on [t0,∞)[t_0, \infty)[t0​,∞); it is the derivative the density hypothesis already provides, so this adds no assumption. Bare deriv is not used.
  • Completion of Π0,c\Pi_{0,c}Π0,c​ for c<0c < 0c<0. The paper (p. 801) prints the formula only for 0≤x≤∣c∣−10 \le x \le |c|^{-1}0≤x≤∣c∣−1. The formalization sets Π0,c(x)=1\Pi_{0,c}(x) = 1Π0,c​(x)=1 for x>∣c∣−1x > |c|^{-1}x>∣c∣−1, as "distribution function" requires and as the proof of Lemma 4 uses ("Π0,c(x)\Pi_{0,c}(x)Π0,c​(x) is constant on both components of {c>−1}∖R\{c > -1\}\setminus R{c>−1}∖R"). The formula gives 111 at x=∣c∣−1x = |c|^{-1}x=∣c∣−1, so the completion is continuous.
  • Π0,0\Pi_{0,0}Π0,0​ is a separate branch (1−e−x1 - e^{-x}1−e−x), not the formula with 1/01/01/0.
  • σ\sigmaσ is defined as ∫01∫0te−us ds dt\int_0^1\int_0^t e^{-us}\,ds\,dt∫01​∫0t​e−usdsdt, and the closed form u−2(e−u−1+u)u^{-2}(e^{-u} - 1 + u)u−2(e−u−1+u) for u≠0u \ne 0u=0 is part of milestone 4. "Decreasing" is stated as strictly decreasing, which is what the proof of Lemma 4 uses (σ(u)<σ(−ψ)\sigma(u) < \sigma(-\psi)σ(u)<σ(−ψ)).
  • Lemma 4 states the differentiability of c↦Π0,c(x)c \mapsto \Pi_{0,c}(x)c↦Π0,c​(x) at ccc together with the bound 0≤−d<10 \le -d < 10≤−d<1 on its derivative ddd.
  • The bounds (13) are stated in both printed forms.
  • No sign condition is added on c1,c2c_1, c_2c1​,c2​ in Theorem 7; c1c_1c1​ may be any real number, and c−εc - \varepsilonc−ε in the Corollary may be negative.

A trivializing formalization is ruled out: the conclusion is a bound at every real xxx and every t≥t0t \ge t_0t≥t0​ with a(t)>0a(t) > 0a(t)>0, the conditional probability divides by μ((t,∞))>0\mu((t,\infty)) > 0μ((t,∞))>0 (which the density hypothesis implies), and the hypotheses are satisfied by, for example, the exponential law (a≡1a \equiv 1a≡1, c=0c = 0c=0) and the Pareto law 1−(1+x)−α1 - (1+x)^{-\alpha}1−(1+x)−α (a(t)=(1+t)/αa(t) = (1+t)/\alphaa(t)=(1+t)/α, c=1/αc = 1/\alphac=1/α).

A complete development needs the fundamental theorem of calculus with one-sided derivatives, a change of variables in interval integrals, and calculus of Real.rpow in the exponent parameter. The lemmas on Π0,c\Pi_{0,c}Π0,c​ and σ\sigmaσ are reusable beyond this mission; proofs of any milestone are welcome independently.

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
  • R. von Mises, La distribution de la plus grande de n valeurs, Revue Mathématique de l'Union Interbalkanique 1 (1936), 141–160.
  • 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
  • L. de Haan, On Regular Variation and Its Application to the Weak Convergence of Sample Extremes, Mathematical Centre Tracts 32, Amsterdam, 1970.
10 thms3 active usersReviewed
🏆Completed
Algorithmic Game TheoryOptimizationTheoretical Computer Science·Captain: mikedeng1

Assortment Optimisation Under a General Discrete Choice Model: A Tight Analysis of Revenue-Ordered Assortments IV: Uniform Pricing Earns OPT/(1 + ln(v_m/v_1)) in Unit-Demand Min-PricingResearch Paper

Pricing with unit-demand consumers

A seller with nnn distinct items faces mmm consumers, each of whom wants at most one item. Choosing item prices to maximise revenue in this setting is the unit-demand envy-free pricing problem, introduced by Rusmevichientong and studied in algorithmic game theory and revenue management since the mid-2000s. Optimal prices are hard to compute in general, so the guarantees of simple pricing rules matter. The simplest such rule is uniform pricing: put one price qqq on every item and choose qqq to maximise revenue.

Aggarwal, Feder, Motwani and Zhu (ICALP 2004) and Guruswami, Hartline, Karlin, Kempe, Kenyon and McSherry (SODA 2005) analysed uniform pricing; in the min-buying model it recovers a 1/(1+ln⁡m)1/(1+\ln m)1/(1+lnm) fraction of the optimum, a bound Berbeglia and Joret attribute to Aggarwal et al. Berbeglia and Joret (arXiv:1606.01371, Algorithmica 2020) observed that the min-buying problem is a special case of assortment optimisation under a regular discrete choice model, and that uniform pricing then coincides with the revenue-ordered assortments heuristic. Their general guarantee for that heuristic yields a second bound for uniform pricing, in terms of the spread of the valuations rather than the number of consumers. This mission formalizes that bound (Corollary 4.7) together with the reduction it rests on (Theorem 4.6).

Setting

Unit-demand min-pricing (UDPmin⁡\mathrm{UDP}_{\min}UDPmin​). There are items [n][n][n] and consumers [m][m][m], m≥1m\ge 1m≥1. Consumer iii is interested in a set Bi⊆[n]B_i\subseteq[n]Bi​⊆[n] and has a valuation vi>0v_i>0vi​>0. Given a price assignment p:[n]→R>0p:[n]\to\mathbb R_{>0}p:[n]→R>0​, consumer iii buys a cheapest item of BiB_iBi​ if its price is at most viv_ivi​, and nothing otherwise. The seller's revenue is

revUDP(p)=∑i: Bi≠∅, min⁡x∈Bip(x)≤vi min⁡x∈Bip(x),\mathrm{rev}_{\mathrm{UDP}}(p)=\sum_{i:\ B_i\ne\emptyset,\ \min_{x\in B_i}p(x)\le v_i}\ \min_{x\in B_i}p(x),revUDP​(p)=i: Bi​=∅, minx∈Bi​​p(x)≤vi​∑​ x∈Bi​min​p(x),

the optimum is OPTUDP=sup⁡p>0revUDP(p)\mathrm{OPT}_{\mathrm{UDP}}=\sup_{p>0}\mathrm{rev}_{\mathrm{UDP}}(p)OPTUDP​=supp>0​revUDP​(p), and uniform pricing earns UP=sup⁡q>0revUDP(q,…,q)\mathrm{UP}=\sup_{q>0}\mathrm{rev}_{\mathrm{UDP}}(q,\dots,q)UP=supq>0​revUDP​(q,…,q). Write vmax⁡=vmv_{\max}=v_mvmax​=vm​ and vmin⁡=v1v_{\min}=v_1vmin​=v1​ for the extreme valuations.

Regular choice models. A finite product set C\mathcal CC carries choice probabilities P(x,S)\mathcal P(x,S)P(x,S) for x∈Cx\in\mathcal Cx∈C, S⊆CS\subseteq\mathcal CS⊆C, with no-purchase probability P(0,S)=1−∑x∈SP(x,S)\mathcal P(0,S)=1-\sum_{x\in S}\mathcal P(x,S)P(0,S)=1−∑x∈S​P(x,S). The model is regular if (i) all probabilities are nonnegative, (ii) P(x,S)=0\mathcal P(x,S)=0P(x,S)=0 for x∉Sx\notin Sx∈/S, (iii) ∑x∈SP(x,S)≤1\sum_{x\in S}\mathcal P(x,S)\le1∑x∈S​P(x,S)≤1, and (iv) P(x,S)≥P(x,S′)\mathcal P(x,S)\ge\mathcal P(x,S')P(x,S)≥P(x,S′) for S⊆S′S\subseteq S'S⊆S′ and every x∈S∪{0}x\in S\cup\{0\}x∈S∪{0}. With revenues r:C→R>0r:\mathcal C\to\mathbb R_{>0}r:C→R>0​, an assortment earns rev(S)=∑x∈SP(x,S)r(x)\mathrm{rev}(S)=\sum_{x\in S}\mathcal P(x,S)r(x)rev(S)=∑x∈S​P(x,S)r(x) and OPT=max⁡Srev(S)\mathrm{OPT}=\max_S\mathrm{rev}(S)OPT=maxS​rev(S). If r1<⋯<rkr_1<\dots<r_kr1​<⋯<rk​ are the distinct revenues and Si={x:r(x)≥ri}S_i=\{x: r(x)\ge r_i\}Si​={x:r(x)≥ri​}, revenue-ordered assortments earn RO=max⁡irev(Si)\mathrm{RO}=\max_i\mathrm{rev}(S_i)RO=maxi​rev(Si​).

The reduction. From a UDPmin⁡\mathrm{UDP}_{\min}UDPmin​ instance the paper builds C=[n]×{v1,…,vm}\mathcal C=[n]\times\{v_1,\dots,v_m\}C=[n]×{v1​,…,vm​}, r((x,v))=m vr((x,v))=m\,vr((x,v))=mv, and P=1m∑iPi\mathcal P=\frac1m\sum_i\mathcal P_iP=m1​∑i​Pi​, where Pi\mathcal P_iPi​ spreads probability one over the set Qi(S)Q_i(S)Qi​(S) of pairs (x,v)∈S(x,v)\in S(x,v)∈S with x∈Bix\in B_ix∈Bi​, v≤viv\le v_iv≤vi​ and vvv minimal among the pairs of SSS whose item lies in BiB_iBi​.

Formalization targets

Goal: Corollary 4.7

OPTUDP ≤ (1+ln⁡vmax⁡vmin⁡)⋅UP.\mathrm{OPT}_{\mathrm{UDP}}\ \le\ \Big(1+\ln\frac{v_{\max}}{v_{\min}}\Big)\cdot\mathrm{UP}.OPTUDP​ ≤ (1+lnvmin​vmax​​)⋅UP.

The bound is the paper's "approximates the optimum revenue to within a factor of 1/(1+ln⁡ρ)1/(1+\ln\rho)1/(1+lnρ), ρ:=vm/v1\rho:=v_m/v_1ρ:=vm​/v1​", stated in product form.

Milestones

  1. Lemma 4.5. Some optimal price assignment takes only valuations as prices; in particular OPTUDP\mathrm{OPT}_{\mathrm{UDP}}OPTUDP​ is attained.
  2. Regularity of the reduction's choice model (proof of Theorem 4.6, pp. 17–18).
  3. Assortments to prices: rev(S)=revUDP(pS)\mathrm{rev}(S)=\mathrm{rev}_{\mathrm{UDP}}(p_S)rev(S)=revUDP​(pS​) with pS(x)=min⁡{v:(x,v)∈S}p_S(x)=\min\{v:(x,v)\in S\}pS​(x)=min{v:(x,v)∈S} (p. 19).
  4. Prices to assortments: for valuation-valued ppp, rev(Sp)=revUDP(p)\mathrm{rev}(S_p)=\mathrm{rev}_{\mathrm{UDP}}(p)rev(Sp​)=revUDP​(p) with Sp={(x,v):v≥p(x)}S_p=\{(x,v): v\ge p(x)\}Sp​={(x,v):v≥p(x)} (p. 19).
  5. Theorem 4.6 for the explicit instance: regularity, positive revenues, equal optima, and the two-way correspondence between threshold sets and uniform valuation prices.
  6. Theorem 3.2 for an arbitrary regular model:
OPT≤(∑i=1kri−ri−1ri)RO,∑i=1kri−ri−1ri≤1+ln⁡rkr1,r0:=0.\mathrm{OPT}\le\Big(\sum_{i=1}^k\frac{r_i-r_{i-1}}{r_i}\Big)\mathrm{RO},\qquad \sum_{i=1}^k\frac{r_i-r_{i-1}}{r_i}\le 1+\ln\frac{r_k}{r_1},\qquad r_0:=0.OPT≤(i=1∑k​ri​ri​−ri−1​​)RO,i=1∑k​ri​ri​−ri−1​​≤1+lnr1​rk​​,r0​:=0.

Significance

The corollary gives a uniform-pricing guarantee that is independent of the number of consumers and items: when valuations lie within a factor ρ\rhoρ of each other, a single price recovers a 1/(1+ln⁡ρ)1/(1+\ln\rho)1/(1+lnρ) fraction of the optimum, which improves on 1/(1+ln⁡m)1/(1+\ln m)1/(1+lnm) whenever ρ<m\rho<mρ<m. More broadly, Theorem 4.6 places UDPmin⁡\mathrm{UDP}_{\min}UDPmin​ inside the class of regular choice models, so every guarantee proved for revenue-ordered assortments under regularity transfers to uniform pricing.

All results here are proved in the paper. Nothing in this mission is formalized elsewhere as far as a search of the platform shows: there is no regular choice model, no UDPmin⁡\mathrm{UDP}_{\min}UDPmin​ problem and no revenue-ordered guarantee on Prove2Me. The mission produces the reduction as reusable infrastructure, a machine-checked version of the paper's Lemma 4.5 (whose appendix proof is an informal repair argument), and the first formal guarantee for uniform pricing.

Difficulty

The reduction is where the work sits. Regularity hinges on the no-purchase case of axiom (iv): enlarging an assortment can only make QiQ_iQi​ nonempty, never empty, and this must be checked for the specific sets Qi(S)Q_i(S)Qi​(S) whose definition depends on the whole of SSS. The revenue identities require tracking the minimum over BiB_iBi​ of a price function obtained from an assortment, including items absent from SSS, which receive the paper's "+∞+\infty+∞" price. Lemma 4.5 is needed to make the optimum of the uncountable pricing problem coincide with that of a finite assortment problem, and the statement is about a supremum over a continuum of price vectors whose attainment is not obvious. Theorem 3.2 has to relate the optimum to threshold sets of an arbitrary regular model, where products may share revenues and the optimal assortment need not be a threshold set.

The naive route of comparing uniform pricing to the optimum directly, consumer by consumer, does not give a bound in terms of vm/v1v_m/v_1vm​/v1​; the reduction to a regular model is what supplies it.

Formalization scope

  • Items and consumers are finite types X and M, with Nonempty M (m≥1m\ge1m≥1). Valuations satisfy vi>0v_i>0vi​>0 as a field of the instance; the paper says "non-negative", but its reduction (r=m v>0r=m\,v>0r=mv>0) and its ratio vm/v1v_m/v_1vm​/v1​ need positivity.
  • A consumer with Bi=∅B_i=\emptysetBi​=∅ pays 000. Ties among cheapest items do not affect payments, so payments are defined directly.
  • OPTUDP\mathrm{OPT}_{\mathrm{UDP}}OPTUDP​ and UP\mathrm{UP}UP are real suprema over positive price assignments and positive uniform prices; both index sets are nonempty and the revenues are bounded by ∑ivi\sum_i v_i∑i​vi​. Uniform pricing ranges over all q>0q>0q>0, not only valuations.
  • The no-purchase option is not a product: it is P(0,S)=1−∑x∈SP(x,S)\mathcal P(0,S)=1-\sum_{x\in S}\mathcal P(x,S)P(0,S)=1−∑x∈S​P(x,S), and regularity includes axiom (iv) for it. OPT is a maximum over all Finset C; RO is a maximum over the kkk threshold sets only. Distinct revenues are sorted 0-based (Fin k), with r0=0r_0=0r0​=0 handled as a separate case.
  • The paper's +∞+\infty+∞ price for pSp_SpS​ is the real 1+∑ivi1+\sum_i v_i1+∑i​vi​, which exceeds every valuation, as its Remark on p. 18 allows. The valuation set collapses equal valuations.
  • Approximation factors are in product form, OPT≤D⋅RO\mathrm{OPT}\le D\cdot\mathrm{RO}OPT≤D⋅RO; ln⁡\lnln is Real.log applied to ratios ≥1\ge1≥1.
  • Trivializing readings are excluded: Theorem 4.6 is stated for the explicit instance of its proof, not as the bare existence of a regular instance with the same optimum (a single product of revenue OPTUDP\mathrm{OPT}_{\mathrm{UDP}}OPTUDP​ would satisfy that); OPTUDP\mathrm{OPT}_{\mathrm{UDP}}OPTUDP​ ranges over all positive price assignments, not uniform ones; valuations are positive, so no logarithm takes a junk value.
  • Theorem 3.2 is restated here for this mission's copy of the regular model; it is also the goal of mission I of this series. Reusable pieces: the regular choice model and revenue-ordered value, and the UDPmin⁡\mathrm{UDP}_{\min}UDPmin​ model. Contributions of any milestone, and alternative proofs of Lemma 4.5, are welcome.

Selected references

  • G. Berbeglia and G. Joret, Assortment Optimisation Under a General Discrete Choice Model: A Tight Analysis of Revenue-Ordered Assortments, arXiv:1606.01371v3, 2019; Algorithmica 82 (2020). https://arxiv.org/abs/1606.01371
  • G. Aggarwal, T. Feder, R. Motwani and A. Zhu, Algorithms for multi-product pricing, ICALP 2004. https://doi.org/10.1007/978-3-540-27836-8_8
  • V. Guruswami, J. D. Hartline, A. R. Karlin, D. Kempe, C. Kenyon and F. McSherry, On profit-maximizing envy-free pricing, SODA 2005. https://dl.acm.org/doi/10.5555/1070432.1070598
  • P. Rusmevichientong, B. Van Roy and P. W. Glynn, A nonparametric approach to multiproduct pricing, Operations Research 54(1), 2006. https://doi.org/10.1287/opre.1050.0236
  • A. Aouad, V. Farias, R. Levi and D. Segev, The approximability of assortment optimization under ranking preferences, Operations Research 66(6), 2018. https://doi.org/10.1287/opre.2018.1754
13 thms3 active usersReviewed
🏆Completed
OptimizationProbability·Captain: mikedeng1

Inventory Control and Price Theory 2: For Style Goods with Uniform Demand Linear in Unit Profit, Expected Profit Is Maximized at P* = ((P₀ − 3L) + √((3L − P₀)² + 16P₀L))/4Research Paper

Pricing and stocking a perishable good

A retailer of style goods — seasonal clothing, newspapers, anything that loses most of its value when the selling period ends — must decide before the season how many units to stock, knowing demand only as a probability distribution. Units left over are liquidated at a loss; units short are sales forgone. This single-period trade-off is the newsvendor problem, and its solution, the critical-fractile rule, is one of the first results of stochastic inventory theory.

In practice the retailer also sets the price, and the price moves the demand distribution. T. M. Whitin's 1955 paper Inventory Control and Price Theory (DOI 10.1287/mnsc.2.1.61) is one of the first to put the two decisions into one model. Its Section 3 restates the critical fractile for a given price, then lets the demand distribution depend on the unit profit and asks for the unit profit and stock that jointly maximize expected profit. For one explicit family of demand laws it solves the problem in closed form. This joint price-setting newsvendor problem later grew into a large literature (Mills 1959, Karlin and Carr 1962, and the survey of Petruzzi and Dada 1999), which cites Whitin's model as its starting point.

Setting

There is one selling period. Stock x≥0x \ge 0x≥0 is on hand at its start. Each unit sold earns the unit profit PPP; each unit left over at the close is liquidated at the unit liquidation loss L>0L > 0L>0.

Demand depends on the unit profit through its mean. The mean demand is the linear function

μ(P)=k (P−P0),\mu(P) = k\,(P - P_0),μ(P)=k(P−P0​),

where P0>0P_0 > 0P0​>0 is the unit profit at which demand falls to zero and kkk is the reciprocal of the slope of the line relating unit profit and amount demanded. Demand decreases in PPP, so k<0k < 0k<0, and the admissible unit profits are 0<P<P00 < P < P_00<P<P0​. At unit profit PPP, demand XXX has the rectangular (uniform) distribution on [0,2μ(P)][0, 2\mu(P)][0,2μ(P)].

The expected marginal profit of the xxx-th unit is f(x)=P Pr⁡(X≥x)f(x) = P\,\Pr(X \ge x)f(x)=PPr(X≥x), the probability that it sells weighted by the unit profit, and the expected marginal loss is g(x)=L Pr⁡(X<x)g(x) = L\,\Pr(X < x)g(x)=LPr(X<x), the probability that it does not sell weighted by the liquidation loss. The expected profit of stocking xxx units at unit profit PPP is the area between them,

E(P,x)=∫0x[f(t)−g(t)] dt,E(P, x) = \int_0^x \big[f(t) - g(t)\big]\,dt,E(P,x)=∫0x​[f(t)−g(t)]dt,

which is the expected profit on sales minus the expected liquidation loss. The equilibrium stock is

xM(P)=−2kP(P0−P)P+L.x_M(P) = -\frac{2kP(P_0 - P)}{P + L}.xM​(P)=−P+L2kP(P0​−P)​.

Formalization targets

Goal: the optimal unit profit (Eq. (16))

With

P∗=(P0−3L)+(3L−P0)2+16P0L4,P^* = \frac{(P_0 - 3L) + \sqrt{(3L - P_0)^2 + 16P_0L}}{4},P∗=4(P0​−3L)+(3L−P0​)2+16P0​L​​,

one has 0<P∗<P00 < P^* < P_00<P∗<P0​, and for all 0<P<P00 < P < P_00<P<P0​ and all x≥0x \ge 0x≥0

E(P,x)≤E(P∗,xM(P∗)),E(P, x) \le E\big(P^*, x_M(P^*)\big),E(P,x)≤E(P∗,xM​(P∗)),

with equality only at (P,x)=(P∗,xM(P∗))(P, x) = (P^*, x_M(P^*))(P,x)=(P∗,xM​(P∗)). The formula for P∗P^*P∗ involves only P0P_0P0​ and LLL: the optimal unit profit is independent of the demand slope kkk.

Milestones, in the order of the paper

  1. Eq. (8) — for a general demand law, profit is maximized at the stock whose probability of being sold is L/(G+P+L)L/(G + P + L)L/(G+P+L) (GGG a goodwill loss per unit short). This is already proved on the platform as SupplyChainTheory.chain_optimal_fractile and enters as a reference.
  2. Eq. (11) — on 0≤x≤2μ(P)0 \le x \le 2\mu(P)0≤x≤2μ(P), f(x)=P2k(P0−P)x+Pf(x) = \frac{P}{2k(P_0 - P)}x + Pf(x)=2k(P0​−P)P​x+P and g(x)=−L2k(P0−P)xg(x) = \frac{-L}{2k(P_0 - P)}xg(x)=2k(P0​−P)−L​x.
  3. Eqs. (10), (13) — on the same range, E(P,x)=P+L4k(P0−P)x2+PxE(P, x) = \frac{P + L}{4k(P_0 - P)}x^2 + PxE(P,x)=4k(P0​−P)P+L​x2+Px.
  4. Eqs. (9), (12) — xM(P)x_M(P)xM​(P) lies in (0,2μ(P))(0, 2\mu(P))(0,2μ(P)), is the only stock with f=gf = gf=g, and is the unique maximizer of E(P,⋅)E(P, \cdot)E(P,⋅) over x≥0x \ge 0x≥0.
  5. Eq. (14) — E(P,xM(P))=−kP2(P0−P)/(P+L)E(P, x_M(P)) = -kP^2(P_0 - P)/(P + L)E(P,xM​(P))=−kP2(P0​−P)/(P+L).
  6. Eq. (15) — the derivative of P↦E(P,xM(P))P \mapsto E(P, x_M(P))P↦E(P,xM​(P)) vanishes exactly when 2P2+(3L−P0)P−2P0L=02P^2 + (3L - P_0)P - 2P_0L = 02P2+(3L−P0​)P−2P0​L=0.
  7. Footnote 7 — the elasticity of mean demand at P∗P^*P∗ equals P∗/(P0−P∗)P^*/(P_0 - P^*)P∗/(P0​−P∗), and it tends to 111 as P0→∞P_0 \to \inftyP0​→∞ with LLL fixed.

Significance

The goal is a complete closed-form solution of a joint pricing-and-stocking problem under uncertainty: one price and one stock level, explicitly, with a proof that no other pair does as well. The independence of the optimal unit profit from kkk says that, in this family, the scale of the market does not affect the optimal margin; only the ratio of the zero-demand margin to the liquidation loss does. Footnote 7 relates the optimum to the classical monopoly rule (unit elasticity) in the limit of a negligible liquidation loss.

Whitin's derivation is calculus on closed forms and was never stated as a theorem with hypotheses. He calls the stationary point of (15) "the optimal PPP" without checking that it is a maximum, that it is global, or that the stock beyond the support of demand cannot do better. The formalization fixes all three: the goal is a statement of global, unique optimality over the whole admissible region. No machine-checked proof of this result, of the price-setting newsvendor, or of the uniform-demand newsvendor exists on the platform; the general critical-fractile rule (8) is the only part of Section 3 already proved there.

Difficulty

The expected profit is defined from the demand law, so the closed forms (11) and (13) must be derived from the uniform distribution — probabilities of half-lines under a conditioned Lebesgue measure, and an interval integral of the resulting piecewise-linear functions. They hold only on the support of demand; beyond 2μ(P)2\mu(P)2μ(P) the marginal profit is 000 and the marginal loss is LLL, and the global statement must cover that region too.

The pricing step is where the paper is loose. Setting the derivative of (14) to zero gives a quadratic with two real roots, and a stationary point of a function on an open interval need not be its maximum. The goal asks for the global maximum over 0<P<P00 < P < P_00<P<P0​ and its uniqueness, and asks that it be the global maximum of the joint problem, not only of the reduced function P↦E(P,xM(P))P \mapsto E(P, x_M(P))P↦E(P,xM​(P)).

Formalization scope

All quantities are real numbers; stock is continuous, as in the paper's calculus. Mean demand is meanDemand k P₀ P = k * (P - P₀) and the paper's sign convention is kept: k<0k < 0k<0 is a hypothesis of every statement, as are L>0L > 0L>0 and 0<P<P00 < P < P_00<P<P0​ (or P0>0P_0 > 0P0​>0 where PPP is not fixed). The demand law is ProbabilityTheory.cond volume (Set.Icc 0 (2 * μ)); fff and ggg use Pr⁡(X≥x)\Pr(X \ge x)Pr(X≥x) and Pr⁡(X<x)\Pr(X < x)Pr(X<x); EEE is an interval integral defined for every xxx.

The paper's loose phrases are read as follows. "Equation (9) may be solved for xxx" becomes uniqueness of the root of f−gf - gf−g on x≥0x \ge 0x≥0; "the equilibrium value of xxx" becomes the unique maximizer of E(P,⋅)E(P, \cdot)E(P,⋅) over x≥0x \ge 0x≥0; "differentiating (14)" becomes a HasDerivAt statement with the explicit derivative for P↦E(P,xM(P))P \mapsto E(P, x_M(P))P↦E(P,xM​(P)), together with the equivalence with (15); "solving (15) gives the optimal PPP" becomes the goal's joint global maximum with equality case; "independent of kkk" is the shape of the formula for P∗P^*P∗; "as P0P_0P0​ becomes large relative to LLL, the optimal elasticity approaches unity" becomes a limit as P0→∞P_0 \to \inftyP0​→∞ with LLL fixed.

Defining EEE by the closed form (13) instead of from the demand law would make milestones (11) and (13) tautologies and would change the model beyond the support of demand; this formalization rules that out. The paper's goodwill loss GGG belongs to the fixed-price model of (8) and does not appear in EEE.

A complete development needs the uniform distribution's tail probabilities, interval integrals of piecewise-linear functions, and one-variable calculus for the quadratic and the cubic P2(P0−P)/(P+L)P^2(P_0 - P)/(P + L)P2(P0​−P)/(P+L); the uniform-law lemmas are reusable for any newsvendor problem with uniform demand. Proofs of the milestones, and alternative arguments for the goal, are welcome.

Selected references

  • T. M. Whitin, Inventory Control and Price Theory, Management Science 2(1), 61–68, 1955. https://doi.org/10.1287/mnsc.2.1.61
  • E. S. Mills, Uncertainty and Price Theory, Quarterly Journal of Economics 73(1), 116–130, 1959. https://doi.org/10.2307/1883828
  • S. Karlin and C. R. Carr, Prices and Optimal Inventory Policy, in Arrow, Karlin and Scarf (eds.), Studies in Applied Probability and Management Science, Stanford University Press, 159–172, 1962.
  • N. C. Petruzzi and M. Dada, Pricing and the Newsvendor Problem: A Review with Extensions, Operations Research 47(2), 183–194, 1999. https://doi.org/10.1287/opre.47.2.183
  • L. V. Snyder and Z.-J. M. Shen, Fundamentals of Supply Chain Theory, 2nd ed., Wiley, 2019, Eq. (14.8) (the critical fractile, formalized on the platform as SupplyChainTheory.chain_optimal_fractile).
9 thms3 active usersReviewed
🏆Completed
AnalysisOptimization·Captain: mikedeng1

Inventory Control and Price Theory 1: With Linear Demand and Economic Lot Sizes, the Profit-Maximizing Price Satisfies the Cubic (7)Research Paper

Motivation

Inventory calculations often take the selling price as fixed, while price calculations often treat the cost of supplying demand as independent of the order policy. Whitin's 1955 model connects the two decisions in one annual-profit calculation. A merchant chooses both the price charged to customers and the size of each replenishment order. Changing the price changes annual demand; changing demand changes the number of orders, inventory carrying cost, and therefore the economic lot size. This makes the selling price and the inventory decision parts of the same optimization problem. Whitin's paper gives a compact example in which the connection can be written down explicitly.

The mission concentrates on Section 2, the stationary-demand model for a stable item. Section 3 of the paper studies style goods under uncertain sales and belongs to a separate mission. The result here concerns a deterministic annual demand curve and continuous order quantities, so a solver can focus on the interaction between a classical economic order quantity calculation and a price first-order condition.

Setting

The price is a real number ppp. Annual demand is the linear function D(p)=ap+bD(p)=ap+bD(p)=ap+b, where aaa and bbb are given real constants. A feasible price has D(p)>0D(p)>0D(p)>0. The paper does not require a<0a<0a<0 in its displayed model, so the formal statements leave the slope unrestricted. Negative aaa is the economically usual decreasing-demand case; in other regimes a joint maximum may simply fail to exist.

The merchant pays a fixed setup cost SSS whenever an order is placed. The purchase cost per unit is CCC, and the annual carrying charge for one unit kept in stock is ICICIC, where III is a carrying-rate factor. If Q>0Q>0Q>0 units are ordered each time, average stock is Q/2Q/2Q/2 and the annual number of orders is D/QD/QD/Q. A per-unit operating cost kkk is incurred on annual demand, and fff is an annual fixed cost. The resulting total variable cost and two-variable annual profit are

TVC⁡(D,Q)=Q2IC+DQS+kD,Π(p,Q)=D(p)p−TVC⁡(D(p),Q)−f.\operatorname{TVC}(D,Q)=\frac Q2 IC+\frac DQ S+kD, \qquad \Pi(p,Q)=D(p)p-\operatorname{TVC}(D(p),Q)-f.TVC(D,Q)=2Q​IC+QD​S+kD,Π(p,Q)=D(p)p−TVC(D(p),Q)−f.

Only pairs with D(p)>0D(p)>0D(p)>0 and Q>0Q>0Q>0 are feasible. For a fixed demand level, the economic lot size is Q∗(D)=2DS/(IC)Q^*(D)=\sqrt{2DS/(IC)}Q∗(D)=2DS/(IC)​. Substituting it into profit gives Whitin's reduced profit

P(p)=ap2+bp−2SIC(ap+b)−k(ap+b)−f.P(p)=ap^2+bp-\sqrt{2SIC(ap+b)}-k(ap+b)-f.P(p)=ap2+bp−2SIC(ap+b)​−k(ap+b)−f.

The paper uses PPP for annual profit in this section. The Lean development calls the two-variable function profit and the function after optimizing QQQ reducedProfit.

Formalization targets

The first target is the unique lot-size minimum in Eq. (3), followed by its value in Eq. (4):

TVC⁡(D,Q∗(D))≤TVC⁡(D,Q)(Q>0),TVC⁡(D,Q∗(D))=2DSIC+kD.\operatorname{TVC}(D,Q^*(D))\leq\operatorname{TVC}(D,Q) \quad(Q>0),\qquad \operatorname{TVC}(D,Q^*(D))=\sqrt{2DSIC}+kD.TVC(D,Q∗(D))≤TVC(D,Q)(Q>0),TVC(D,Q∗(D))=2DSIC​+kD.

Equality in the inequality holds only at Q=Q∗(D)Q=Q^*(D)Q=Q∗(D). The next target is the necessary stationarity condition in Eqs. (6)–(7): when D(p)>0D(p)>0D(p)>0 and the derivative of PPP at ppp is zero,

8a3p3+(16a2b−8ka3)p2+(10ab2−12ka2b+2k2a3)p+2b3−4kab2+2k2a2b−SICa2=0.8a^3p^3+(16a^2b-8ka^3)p^2 +(10ab^2-12ka^2b+2k^2a^3)p +2b^3-4kab^2+2k^2a^2b-SICa^2=0.8a3p3+(16a2b−8ka3)p2+(10ab2−12ka2b+2k2a3)p+2b3−4kab2+2k2a2b−SICa2=0.

The goal joins these steps at a global joint maximum. If a feasible pair (p,Q)(p,Q)(p,Q) maximizes Π\PiΠ over all feasible price and lot-size pairs, then Q=Q∗(D(p))Q=Q^*(D(p))Q=Q∗(D(p)) and ppp satisfies the cubic. The goal is an implication about any joint maximizer; it does not assert that one exists for every demand curve. The cubic is a necessary condition only. Its algebraic roots may include prices that fail the original first-order equation or fail to maximize profit.

Significance

The result gives a concrete relation between a price chosen to maximize annual profit and the ordering cost and carrying charge of the inventory system. The lot-size formula alone optimizes cost at a fixed demand rate. The cubic makes the demand response to price and the resulting inventory cost visible in the price condition. It also specifies what can be inferred from the calculation: an optimal price must satisfy the equation, while selecting an optimum from candidate roots remains a separate question.

The paper already supplies the mathematical result. The formalization task is to represent the joint optimization and verify its necessary conditions in Lean, together with the cost identity on which the reduced-profit expression rests. The published Prove2Me definition InventoryControl_eoq already provides the classical EOQ cost and square-root quantity; this mission uses its cost function and adds Whitin's demand curve and profit. Related inventory results for backorders and multilevel systems describe different models and do not replace the targets here.

Difficulty

At a fixed price, choosing the lot size involves both a term proportional to QQQ and one proportional to 1/Q1/Q1/Q. The optimality statement needs a global inequality and a unique equality case, not merely the observation that a derivative vanishes. After substituting that quantity, the reduced profit contains a square root of the demand curve. Its derivative is meaningful on positive demand, and turning its stationarity equation into the displayed cubic loses information when an equation is squared. A proof therefore has to preserve the implication from optimality to the cubic without promoting all cubic roots to optima.

Formalization scope

The model uses real prices, real demands, and real lot sizes; it does not round order quantities to integers. The hypotheses S,I,C>0S,I,C>0S,I,C>0 make explicit the positive cost and carrying-charge conventions of Section 2. Neither kkk nor fff is assigned a sign, and no sign is imposed on aaa or bbb. The conditions Q>0Q>0Q>0 and D(p)>0D(p)>0D(p)>0 apply to every cost or profit comparison. They exclude Lean's total value for division by zero and the zero value assigned by Real.sqrt to a negative argument. The goal quantifies over every feasible pair in a joint maximum of the original profit, so optimizing QQQ is part of its content. Defining profit only by the reduced formula would erase that claim.

The definitions comprise linear demand, total variable cost, two-variable profit, and reduced profit. The classical EOQ cost comes from the existing InventoryControl_eoq definition; the model-specific layer is small and can be reused in further work on pricing with inventory costs. The theorem targets welcome proofs of the global lot-size inequality, the minimized-cost identity, the stationary cubic, and their combination at a joint maximizer. The paper's quantity-discount footnote is outside this scope because it leaves the revised purchase and carrying-cost model unspecified.

Selected references

  • T. M. Whitin, Inventory Control and Price Theory, Management Science 2(1), 1955, pp. 61–68. DOI: 10.1287/mnsc.2.1.61.
6 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph Theory·Captain: mikedeng1

An Introduction to Timetabling 2: When Every Teacher Is Available in at Most Two Periods, Limited Backtracking Finds a Timetable or Correctly Reports That None ExistsResearch Paper

Motivation

School and university timetabling is one of the oldest applications of combinatorial optimization. In the class–teacher model, classes and teachers must be brought together for a prescribed number of lectures, each lecture occupies one period, and nobody can be in two places at once. With no further side constraints the model reduces to edge colouring of a bipartite multigraph and is solved exactly by König's theorem. Real instances, however, come with preassignments (a class and a teacher must meet at a fixed period) and unavailabilities (a teacher or a class cannot be scheduled at some periods). With these, deciding whether a daily timetable exists is NP-complete, as the paper records citing Even, Itai and Shamir (1976).

D. de Werra's invited review An introduction to timetabling (European Journal of Operational Research 19, 1985) surveys this landscape. In its §2.2 it isolates one restricted case that is easy: when every teacher is available during at most two periods, a limited backtracking method finds a timetable or proves that none exists (Proposition 2.4, attributed to [9], Even–Itai–Shamir). The Remark that follows recasts the procedure as a decision method for stable sets of half the vertices in graphs with a perfect matching, which is the 2-satisfiability problem in graph form.

Setting

There are mmm classes c1,…,cmc_1,\dots,c_mc1​,…,cm​, nnn teachers t1,…,tnt_1,\dots,t_nt1​,…,tn​ and ppp periods of one day. After removing the preassigned lectures, rˉij∈N\bar r_{ij}\in\mathbb Nrˉij​∈N lectures of class cic_ici​ with teacher tjt_jtj​ remain; bˉik∈{0,1}\bar b_{ik}\in\{0,1\}bˉik​∈{0,1} is 111 exactly when class cic_ici​ is available and not preassigned at period kkk; cˉjk∈{0,1}\bar c_{jk}\in\{0,1\}cˉjk​∈{0,1} is 111 exactly when teacher tjt_jtj​ is available and not preassigned at period kkk. A timetable (a solution of CT4) is a 0/10/10/1 array xˉijk\bar x_{ijk}xˉijk​ with

∑kxˉijk=rˉij,∑jxˉijk≤bˉik,∑ixˉijk≤cˉjk.\sum_{k}\bar x_{ijk}=\bar r_{ij},\qquad \sum_{j}\bar x_{ijk}\le\bar b_{ik},\qquad \sum_{i}\bar x_{ijk}\le\bar c_{jk}.k∑​xˉijk​=rˉij​,j∑​xˉijk​≤bˉik​,i∑​xˉijk​≤cˉjk​.

A possible schedule of tjt_jtj​ is the slice yik=xˉijky_{ik}=\bar x_{ijk}yik​=xˉijk​ of a candidate array that satisfies the constraints involving tjt_jtj​ alone. The conflict graph GGG has one node per pair (teacher, possible schedule); two nodes are linked when they are different schedules of the same teacher or put the same class in the same period. When each teacher has exactly two schedules, they are written xjx_jxj​ and xˉj\bar x_jxˉj​, and in Lean the nodes are (j, true) and (j, false) of Fin n × Bool.

The limited backtracking works on such a graph. The implications cl(S)\mathrm{cl}(S)cl(S) of a set SSS of chosen nodes form the least set containing SSS such that whenever uuu is in it and uuu is linked to a node www of another teacher, the other node of www's teacher is in it. A state is either run(A)\mathrm{run}(A)run(A), with AAA the nodes fixed so far, or fail\mathrm{fail}fail. From run(A)\mathrm{run}(A)run(A), for any teacher not yet fixed and any first choice bbb of its node:

  1. if cl(A∪{(j,b)})\mathrm{cl}(A\cup\{(j,b)\})cl(A∪{(j,b)}) is independent, the procedure moves there;
  2. otherwise, if cl(A∪{(j,¬b)})\mathrm{cl}(A\cup\{(j,\lnot b)\})cl(A∪{(j,¬b)}) is independent, it moves there;
  3. otherwise it fails.

Formalization targets

Goal: correctness of the limited backtracking

For every nnn and every graph GGG on Fin n×Bool\mathrm{Fin}\,n\times\mathrm{Bool}Finn×Bool in which xjx_jxj​ and xˉj\bar x_jxˉj​ are linked for all jjj:

(1) the move relation is well founded from run(∅);(2) every reachable run(A) with an unfixed teacher has a move;(3) a reachable run(A) with all teachers fixed has A a set of n pairwise non-adjacent nodes;(4) if fail is reachable, G has no set of n pairwise non-adjacent nodes.\begin{aligned} &\text{(1) the move relation is well founded from } \mathrm{run}(\emptyset);\\ &\text{(2) every reachable } \mathrm{run}(A) \text{ with an unfixed teacher has a move};\\ &\text{(3) a reachable } \mathrm{run}(A) \text{ with all teachers fixed has } A \text{ a set of } n \text{ pairwise non-adjacent nodes};\\ &\text{(4) if } \mathrm{fail} \text{ is reachable, } G \text{ has no set of } n \text{ pairwise non-adjacent nodes.} \end{aligned}​(1) the move relation is well founded from run(∅);(2) every reachable run(A) with an unfixed teacher has a move;(3) a reachable run(A) with all teachers fixed has A a set of n pairwise non-adjacent nodes;(4) if fail is reachable, G has no set of n pairwise non-adjacent nodes.​

All four clauses range over every run of the nondeterministic procedure.

Milestones

  1. A teacher available in at most 222 periods has at most 222 possible schedules.
  2. CT4 has a solution iff its conflict graph has nnn pairwise non-adjacent nodes.
  3. The implications of chosen nodes lie inside every timetable that contains those nodes.
  4. If AAA is independent and closed under implications, GGG has a timetable iff it has one containing AAA.
  5. In a graph G=(X,E)G=(X,E)G=(X,E) with a perfect matching MMM, a stable set has at most ∣X∣/2|X|/2∣X∣/2 nodes, and one of exactly ∣X∣/2|X|/2∣X∣/2 nodes contains one endpoint of every edge of MMM.

Significance

Proposition 2.4 identifies a polynomial special case inside a scheduling problem that the paper cites as NP-complete in general (Even–Itai–Shamir [9]). The correctness of the procedure is what makes that special case tractable. Milestones 1 and 2 reduce the timetabling instance to a graph question, and the goal settles the graph question. Milestone 4 is the reason the method needs to undo only the last decision. It is the graph form of the autarky principle of 2-SAT solving: a closed, consistent partial assignment can always be kept. Milestone 5 extends the method from timetables to any graph with a perfect matching.

On the formal side, no machine-checked treatment of this reduction or of the backtracking argument exists on the platform; 2-SAT, unit propagation and autarky have no items there either. The statements are proved in the paper only in prose, and the propagation and autarky arguments are compressed into a few sentences. A formal proof makes the invariants explicit: what is closed, what is independent, and why a contradiction after a reversed decision is global.

Difficulty

Soundness of a successful run is an invariant argument. Soundness of failure is the hard part. The naive argument "both choices for tjt_jtj​ lead to a contradiction, hence no timetable" is wrong in general backtracking, because an earlier decision might be at fault, and full backtracking would revisit it. The proof has to show that an earlier permanent decision never needs revisiting. This requires that the set of fixed nodes is closed under implications and independent, so that no unscheduled teacher is linked to it. This invariant must be maintained through both the keep and the reverse moves. Termination and progress are routine but must be stated: without them the correctness clauses hold for a procedure that never moves. On the CT4 side, the reduction must check that the class constraint (13)(13)(13) with bˉik∈{0,1}\bar b_{ik}\in\{0,1\}bˉik​∈{0,1} splits exactly into per-teacher availability and pairwise disjointness of schedules.

Formalization scope

  • Data. rˉ,bˉ,cˉ\bar r,\bar b,\bar crˉ,bˉ,cˉ are taken as data; the preassignments that produce them are not modelled. Indices are Fin m, Fin n, Fin p; 0/10/10/1 variables are Bool.
  • Schedules. The page's "each teacher has exactly 2 possible schedules" holds only after its normalisation. The milestone states the faithful bound ≤2\le 2≤2. The CT4-to-graph equivalence is stated for every instance, so its graph has ∑j#{schedules of tj}\sum_j\#\{\text{schedules of }t_j\}∑j​#{schedules of tj​} nodes rather than 2n2n2n.
  • Procedure. The implications are an inductive predicate with no iteration bound. A contradiction is a non-independent set of implications, checked against previously fixed nodes as well. The move relation is an inductive Step with one constructor for each of keep, reverse and fail, so the choice of teacher and of first schedule stays arbitrary.
  • Not formalized. The O(n2)O(n^2)O(n2) running time of Proposition 2.4 and of the Remark has no machine model or constant on the page; termination stands in for it.
  • Ruled out. A goal with only clauses (3)–(4) would be satisfied by a relation with no moves, and a fixed choice rule would prove a weaker statement. The goal therefore includes termination and progress and quantifies over every run.
  • Needed infrastructure. Mathlib's SimpleGraph, IsIndepSet, IsNIndepSet, Subgraph.IsPerfectMatching, Relation.ReflTransGen and Acc. The autarky lemma (Milestone 4) and the propagation lemma (Milestone 3) are reusable for any 2-SAT-type development. Proofs of the milestones, and a bridge from the CT4 instance to the abstract graph on Fin n × Bool in the exactly-two-schedules case, are welcome.

Selected references

  • D. de Werra, An introduction to timetabling, European Journal of Operational Research 19 (1985) 151–162. https://doi.org/10.1016/0377-2217(85)90167-5
  • S. Even, A. Itai, A. Shamir, On the complexity of timetable and multicommodity flow problems, SIAM Journal on Computing 5 (1976) 691–703. https://doi.org/10.1137/0205048
  • B. Aspvall, M. F. Plass, R. E. Tarjan, A linear-time algorithm for testing the truth of certain quantified boolean formulas, Information Processing Letters 8 (1979) 121–123. https://doi.org/10.1016/0020-0190(79)90002-4
8 thms3 active usersReviewed
🏆Completed
Optimization·Captain: mikedeng1

Some Theoretical Aspects of Road Traffic Research IV: Optimum Phase Times of a Two-Phase Fixed-Time Signal — When the Minimum Cycle Minimizes Average Delay, and the Optimum OtherwiseResearch Paper

Motivation

A fixed-time traffic signal is set by two numbers per phase: how long the green lasts and, through the other phase's green, how long the red lasts. Traffic engineers in the early 1950s set signals by Adams' formula, the shortest cycle that can clear the arriving traffic, on the working assumption that the shortest feasible cycle also gives the least delay. J. G. Wardrop's 1952 paper Some theoretical aspects of road traffic research (DOI 10.1680/ipeds.1952.11259), the paper that also introduced the two Wardrop principles of route choice, tested that assumption analytically for a two-phase signal with uniform arrivals. Appendix IV shows that the shortest cycle is optimal only under an explicit condition on the flows, and gives the optimal cycle when the condition fails. Its numerical example (p. 339) lengthens the cycle by 75 per cent and reduces the overall mean delay by 11 per cent, a case that arises when one phase serves a minor road.

The question was taken up by F. V. Webster's 1958 delay formula and optimum-cycle rule for random arrivals, which became the standard practice; the deterministic two-phase analysis here is its uniform-flow precursor.

Setting

A two-phase signal serves two streams. For phase k∈{1,2}k \in \{1,2\}k∈{1,2}:

  • qkq_kqk​ is the arriving flow (vehicles per unit time);
  • pkp_kpk​ is the saturation flow, the rate at which a queue discharges at minimum headway;
  • aka_kak​ is the lost time, the delay of the first vehicle at the start of green;
  • gkg_kgk​ is the green time and rkr_krk​ the red time, with r1=g2r_1 = g_2r1​=g2​ and r2=g1r_2 = g_1r2​=g1​.

The totals are Q=q1+q2Q = q_1 + q_2Q=q1​+q2​, A=a1+a2A = a_1 + a_2A=a1​+a2​, and the cycle time c=g1+g2c = g_1 + g_2c=g1​+g2​. Vehicles do not accumulate indefinitely on phase kkk when the green, less its lost time, can clear one cycle's arrivals: qkc≤pk(gk−ak)q_k c \le p_k(g_k - a_k)qk​c≤pk​(gk​−ak​). Equality on both phases (both greens saturated) gives Adams' formula

c=A1−q1/p1−q2/p2.(12)c = \frac{A}{1 - q_1/p_1 - q_2/p_2}. \tag{12}c=1−q1​/p1​−q2​/p2​A​.(12)

The flow-weighted average delay at the intersection is

T=12Qc{q1(r1+a1)21−q1/p1+q2(r2+a2)21−q2/p2}.(16)T = \frac{1}{2Qc}\left\{\frac{q_1(r_1+a_1)^2}{1 - q_1/p_1} + \frac{q_2(r_2+a_2)^2}{1 - q_2/p_2}\right\}. \tag{16}T=2Qc1​{1−q1​/p1​q1​(r1​+a1​)2​+1−q2​/p2​q2​(r2​+a2​)2​}.(16)

Appendix IV changes variables to the effective-red fractions x=(r1+a1)/cx = (r_1+a_1)/cx=(r1​+a1​)/c and y=(r2+a2)/cy = (r_2+a_2)/cy=(r2​+a2​)/c. With

ξ=1−q1p1,η=1−q2p2,λ=Aq12Qξ,μ=Aq22Qη,\xi = 1 - \frac{q_1}{p_1},\quad \eta = 1 - \frac{q_2}{p_2},\quad \lambda = \frac{Aq_1}{2Q\xi},\quad \mu = \frac{Aq_2}{2Q\eta},ξ=1−p1​q1​​,η=1−p2​q2​​,λ=2QξAq1​​,μ=2QηAq2​​,

one has c=A/(x+y−1)c = A/(x+y-1)c=A/(x+y−1), the no-accumulation conditions become x≤ξx \le \xix≤ξ and y≤ηy \le \etay≤η, and

T(x,y)=λx2+μy2x+y−1.T(x,y) = \frac{\lambda x^2 + \mu y^2}{x + y - 1}.T(x,y)=x+y−1λx2+μy2​.

The feasible region is F={(x,y):x≤ξ, y≤η, x+y>1}F = \{(x,y) : x \le \xi,\ y \le \eta,\ x + y > 1\}F={(x,y):x≤ξ, y≤η, x+y>1}. Its corner (ξ,η)(\xi,\eta)(ξ,η) is the minimum cycle (12). The phases are labelled so that λ≥μ\lambda \ge \muλ≥μ.

Formalization targets

Goal: the optimum phase times

Put

D=μλη2+2ξ(1−η)−ξ2,x0=1−η+(1−η)2+μλη2.D = \frac{\mu}{\lambda}\eta^2 + 2\xi(1-\eta) - \xi^2, \qquad x_0 = 1 - \eta + \sqrt{(1-\eta)^2 + \frac{\mu}{\lambda}\eta^2}.D=λμ​η2+2ξ(1−η)−ξ2,x0​=1−η+(1−η)2+λμ​η2​.

For λ≥μ>0\lambda \ge \mu > 0λ≥μ>0, 0<ξ,η<10 < \xi, \eta < 10<ξ,η<1 and ξ+η>1\xi + \eta > 1ξ+η>1:

D>0  ⟹  T(ξ,η)=min⁡FT,D≤0  ⟹  (x0,η)∈F and T(x0,η)=min⁡FT.D > 0 \implies T(\xi,\eta) = \min_{F} T, \qquad D \le 0 \implies (x_0,\eta) \in F \text{ and } T(x_0,\eta) = \min_F T.D>0⟹T(ξ,η)=Fmin​T,D≤0⟹(x0​,η)∈F and T(x0​,η)=Fmin​T.

At D=0D = 0D=0, x0=ξx_0 = \xix0​=ξ, so the second formula gives the minimum cycle. This boundary case belongs to the page's final “if this condition is not satisfied” clause.

Milestones (Appendix IV, in the order of the argument)

  1. The partial derivatives at the corner:
[∂T∂x]ξ,η=λξ2−μη2−2λξ(1−η)(ξ+η−1)2,[∂T∂y]ξ,η=μη2−λξ2−2μη(1−ξ)(ξ+η−1)2.\left[\frac{\partial T}{\partial x}\right]_{\xi,\eta} = \frac{\lambda\xi^2 - \mu\eta^2 - 2\lambda\xi(1-\eta)}{(\xi+\eta-1)^2},\qquad \left[\frac{\partial T}{\partial y}\right]_{\xi,\eta} = \frac{\mu\eta^2 - \lambda\xi^2 - 2\mu\eta(1-\xi)}{(\xi+\eta-1)^2}.[∂x∂T​]ξ,η​=(ξ+η−1)2λξ2−μη2−2λξ(1−η)​,[∂y∂T​]ξ,η​=(ξ+η−1)2μη2−λξ2−2μη(1−ξ)​.
  1. If both are negative, (ξ,η)(\xi,\eta)(ξ,η) minimizes TTT over FFF.
  2. When λ≥μ\lambda \ge \muλ≥μ, (ξ+η−1)2[∂T/∂y]ξ,η=−μ{2η(1−η)+(ξ−η)2}−(λ−μ)ξ2<0(\xi+\eta-1)^2[\partial T/\partial y]_{\xi,\eta} = -\mu\{2\eta(1-\eta) + (\xi-\eta)^2\} - (\lambda-\mu)\xi^2 < 0(ξ+η−1)2[∂T/∂y]ξ,η​=−μ{2η(1−η)+(ξ−η)2}−(λ−μ)ξ2<0.
  3. [∂T/∂x]ξ,η<0[\partial T/\partial x]_{\xi,\eta} < 0[∂T/∂x]ξ,η​<0 if and only if D>0D > 0D>0.
  4. If D<0D < 0D<0, x0x_0x0​ is the unique root of λx2−μη2−2λx(1−η)=0\lambda x^2 - \mu\eta^2 - 2\lambda x(1-\eta) = 0λx2−μη2−2λx(1−η)=0 in 0<x<ξ0 < x < \xi0<x<ξ.

Companions

Adams' formula (12) and the minimality of its cycle; the change of variables from (16) to T(x,y)T(x,y)T(x,y); and the translation into the original quantities: λ≥μ\lambda \ge \muλ≥μ iff 1/q1−1/p1≤1/q2−1/p21/q_1 - 1/p_1 \le 1/q_2 - 1/p_21/q1​−1/p1​≤1/q2​−1/p2​, D>0D > 0D>0 iff q1(1−q1/p1)−q2(1−q2/p2)<2q1q2/p2q_1(1 - q_1/p_1) - q_2(1 - q_2/p_2) < 2q_1q_2/p_2q1​(1−q1​/p1​)−q2​(1−q2​/p2​)<2q1​q2​/p2​, and the delay-minimizing cycle c=A/(q2/p2)2+(q2/q1)(1−q1/p1)(1−q2/p2)c = A/\sqrt{(q_2/p_2)^2 + (q_2/q_1)(1 - q_1/p_1)(1 - q_2/p_2)}c=A/(q2​/p2​)2+(q2​/q1​)(1−q1​/p1​)(1−q2​/p2​)​ when D≤0D \le 0D≤0.

Significance

The result gives a closed-form test for whether the minimum cycle is the delay-optimal cycle of a two-phase fixed-time signal with uniform flows, and the optimal cycle when it is not. It shows that the common assumption, shortest cycle equals best cycle, can fail, and identifies when: the test depends on the flow ratios and on which phase is the heavier one in the sense of 1/q−1/p1/q - 1/p1/q−1/p. In the failing case the optimum keeps the minor phase saturated and lengthens only the major phase's green.

The result is proved on the page by a short calculus argument. It has not been machine-checked anywhere known to this mission. The formal work is to establish the global optimality claims behind the page's local reasoning, to pin down the hypotheses the page uses silently (positivity of flows and lost times, the capacity condition, the phase labelling), and to correct the printed slips listed under Formalization scope. The reparametrization and the original-quantity forms tie the abstract statement back to signal settings.

Difficulty

The page argues locally: at the corner both partial derivatives are negative, and "the only possible changes in xxx and yyy are reductions", so TTT is a minimum. Negative partial derivatives at a corner of the region show that no small reduction helps; they do not by themselves exclude a better point far from the corner. The global claim needs a property of TTT on the whole region x+y>1x + y > 1x+y>1, not just at one point. The second case has the same issue: the page locates a critical point on the edge y=ηy = \etay=η and needs, in addition, that no interior or other boundary point does better. The algebra of the corner criterion is routine; the global minimality is the step that carries the content.

Formalization scope

All quantities are real numbers. The objects are delayT lam mu x y =T(x,y)= T(x,y)=T(x,y), feasibleXY xi eta =F= F=F, cornerD =D= D=D, edgeRoot =x0= x_0=x0​, the maps xiOf, etaOf, lamOf, muOf from the flows to ξ,η,λ,μ\xi,\eta,\lambda,\muξ,η,λ,μ, and avgDelay16, the right side of (16). Derivatives are stated with HasDerivAt on the one-variable sections of TTT; minimality is the explicit inequality T(⋅)≤T(z)T(\cdot) \le T(z)T(⋅)≤T(z) for every z∈Fz \in Fz∈F.

Conventions and added hypotheses, each presupposed by the page:

  • x+y>1x + y > 1x+y>1 is part of FFF: it is c>0c > 0c>0 through c=A/(x+y−1)c = A/(x+y-1)c=A/(x+y−1). Without it, TTT would take Lean's junk value 000 on the line x+y=1x + y = 1x+y=1 and negative values beyond it, and the minimum would be meaningless.
  • ξ+η>1\xi + \eta > 1ξ+η>1, i.e. q1/p1+q2/p2<1q_1/p_1 + q_2/p_2 < 1q1​/p1​+q2​/p2​<1: the minimum cycle is positive and FFF is nonempty. Without it both parts of the goal hold vacuously.
  • 0<ξ0 < \xi0<ξ, 0<η0 < \eta0<η (qk<pkq_k < p_kqk​<pk​), λ,μ>0\lambda, \mu > 0λ,μ>0, and the labelling λ≥μ\lambda \ge \muλ≥μ, which the page imposes by interchanging the phases. Case 1 of the goal is false without λ≥μ\lambda \ge \muλ≥μ.
  • In the companions: 0<qk<pk0 < q_k < p_k0<qk​<pk​, Q=q1+q2>0Q = q_1 + q_2 > 0Q=q1​+q2​>0, and positive total lost time AAA (or A≠0A \ne 0A=0 for Adams' formula), which keeps the divisions in (12) and in c=A/(x+y−1)c = A/(x+y-1)c=A/(x+y−1) from being junk.

The goal is stated in λ,μ,ξ,η\lambda,\mu,\xi,\etaλ,μ,ξ,η alone, which is all Appendix IV uses; the companions connect them to the flows.

Printed slips, corrected in the Lean and named in each item: (ξ+η)2(\xi+\eta)^2(ξ+η)2 for (ξ−η)2(\xi-\eta)^2(ξ−η)2 in the expression for ∂T/∂y\partial T/\partial y∂T/∂y (p. 359); the range "0<x<η0 < x < \eta0<x<η" for 0<x<ξ0 < x < \xi0<x<ξ (p. 359); "≥\ge≥" for ≤\le≤ in the original-quantity form of λ≥μ\lambda \ge \muλ≥μ (p. 359); and "c+ac + ac+a", "a/(x+y−1)a/(x+y-1)a/(x+y−1)", "η=1−q1/p1\eta = 1 - q_1/p_1η=1−q1​/p1​" for c+Ac + Ac+A, A/(x+y−1)A/(x+y-1)A/(x+y−1), η=1−q2/p2\eta = 1 - q_2/p_2η=1−q2​/p2​ (p. 358).

Stating the goal as "the partial derivatives at (ξ,η)(\xi,\eta)(ξ,η) are negative" would replace the theorem by its mechanism; the goal is minimality over the whole feasible region. Not covered: the delay formula (13) and its heuristic derivation in Appendix III, the approximation (14), and the rounded numerical example of p. 339.

Contributions are welcome on every milestone and companion. General facts about functions of the form (λx2+μy2)/(x+y−1)(\lambda x^2 + \mu y^2)/(x+y-1)(λx2+μy2)/(x+y−1) on the half-plane x+y>1x + y > 1x+y>1 are reusable beyond traffic signals.

Selected references

  • J. G. Wardrop, Some theoretical aspects of road traffic research, Proceedings of the Institution of Civil Engineers, Part II, 1 (1952), 325–362. https://doi.org/10.1680/ipeds.1952.11259
  • A. J. H. Clayton, Road traffic calculations, Journal of the Institution of Civil Engineers 16 (1941), p. 247. Cited by Wardrop (his ref. 7) as the source of Adams' formula and of the delay formulae.
  • F. V. Webster, Traffic signal settings, Road Research Technical Paper No. 39, HMSO, London, 1958.
7 thms3 active usersReviewed
🏆Completed
Optimization·Captain: mikedeng1

Revenue Management Under a General Discrete Choice Model of Consumer Behavior 3: The Multinomial Logit Model Has the Nesting-by-Fare-Order PropertyResearch Paper

Motivation

Airline and hotel revenue management sells one perishable resource (seats on a flight, rooms on a night) through several fare products at different prices. The classical models of Littlewood (1972), Belobaba (1989) and Lee and Hersh (1993) assume independent demand: a customer who wants fare class jjj either buys class jjj or leaves, whatever else is on offer. Under that assumption the optimal booking policy is nested by fare order: at any time the firm opens a top segment {1,…,k}\{1, \dots, k\}{1,…,k} of the fare ladder, and closes classes from the cheapest upwards as capacity becomes scarce.

Real customers substitute. If the cheap fare is closed, some buy up; if a mid-priced fare is open, some buy down. Talluri and van Ryzin (working paper 2001; published as Management Science 50(1), 2004) model this with a general discrete choice model: the firm chooses which set SSS of fares to offer, and a customer buys product jjj with probability Pj(S)P_j(S)Pj​(S). Their §3 asks when the fare-order nesting of the independent model survives under choice behaviour. They give a characterization (Theorem 2, the subject of mission 2 of this series) and verify it for two models: the independent demand model (Proposition 5) and the multinomial logit (MNL) model (Proposition 6). The MNL model is the standard choice model in travel demand forecasting and marketing (Ben-Akiva and Lerman, 1985), so Proposition 6 says that the fare-order structure airlines already implement remains optimal under the most widely used substitution model.

Setting

There are nnn fare products N={1,…,n}N = \{1, \dots, n\}N={1,…,n} with revenues r1≥r2≥⋯≥rn≥0r_1 \ge r_2 \ge \dots \ge r_n \ge 0r1​≥r2​≥⋯≥rn​≥0. A choice model assigns to each offer set S⊆NS \subseteq NS⊆N numbers Pj(S)≥0P_j(S) \ge 0Pj​(S)≥0 with ∑j∈SPj(S)≤1\sum_{j\in S} P_j(S) \le 1∑j∈S​Pj​(S)≤1 and Pj(S)=0P_j(S) = 0Pj​(S)=0 for j∉Sj \notin Sj∈/S; the remainder P0(S)=1−∑j∈SPj(S)P_0(S) = 1 - \sum_{j\in S} P_j(S)P0​(S)=1−∑j∈S​Pj​(S) is the no-purchase probability. Write Q(S)=∑j∈SPj(S)Q(S) = \sum_{j\in S} P_j(S)Q(S)=∑j∈S​Pj​(S) for the purchase probability and R(S)=∑j∈SrjPj(S)R(S) = \sum_{j \in S} r_j P_j(S)R(S)=∑j∈S​rj​Pj​(S) for the expected revenue.

The complete sets are Ak={1,…,k}A_k = \{1, \dots, k\}Ak​={1,…,k}, k=0,1,…,nk = 0, 1, \dots, nk=0,1,…,n, with A0=∅A_0 = \emptysetA0​=∅. A choice model has the nesting-by-fare-order property (Definition 4) if

  1. QQQ is increasing: Q(S)≤Q(T)Q(S) \le Q(T)Q(S)≤Q(T) whenever S⊆TS \subseteq TS⊆T; and
  2. for every x1≥x2≥⋯≥xnx_1 \ge x_2 \ge \dots \ge x_nx1​≥x2​≥⋯≥xn​, the problem max⁡S⊆N∑jxjPj(S)\max_{S\subseteq N} \sum_j x_j P_j(S)maxS⊆N​∑j​xj​Pj​(S) has an optimal solution that is complete.

In the single-resource dynamic program, xj=rj−ΔVx_j = r_j - \Delta Vxj​=rj​−ΔV for the marginal value ΔV\Delta VΔV of capacity, so condition 2 says that the optimal offer set is always a top segment of the fare ladder.

The MNL model with preference weights wj=euj>0w_j = e^{u_j} > 0wj​=euj​>0 and no-purchase weight w0=1w_0 = 1w0​=1 is

Pj(S)=wj∑i∈Swi+1,j∈S.(14)P_j(S) = \frac{w_j}{\sum_{i\in S} w_i + 1}, \qquad j \in S. \qquad (14)Pj​(S)=∑i∈S​wi​+1wj​​,j∈S.(14)

The independent model is Pj(S)=qjP_j(S) = q_jPj​(S)=qj​ for j∈Sj \in Sj∈S. A set TTT is dominated (Definition 1) if some randomization over offer sets has no larger expected purchase probability and strictly larger expected revenue, or strictly smaller purchase probability and no smaller revenue.

Formalization targets

Goal: Proposition 6, in the form its proof establishes

∀ w∈R>0n:P=MNL(w) has the nesting-by-fare-order property.\forall\, w \in \mathbb{R}_{>0}^n:\quad P = \mathrm{MNL}(w) \text{ has the nesting-by-fare-order property.}∀w∈R>0n​:P=MNL(w) has the nesting-by-fare-order property.

This leaves the fares unrestricted: condition 2 quantifies over all ordered value vectors xxx, so the goal holds for every fare ladder at once.

Milestones

  • Lemma 5: if θf(y1)+(1−θ)f(y3)=f(y2)\theta f(y_1) + (1-\theta) f(y_3) = f(y_2)θf(y1​)+(1−θ)f(y3​)=f(y2​) for f(y)=y/(y+1)f(y) = y/(y+1)f(y)=y/(y+1), the same holds for g(y)=1/(y+1)g(y) = 1/(y+1)g(y)=1/(y+1).
  • The MNL purchase probability Q(S)=W(S)/(W(S)+1)Q(S) = W(S)/(W(S)+1)Q(S)=W(S)/(W(S)+1), W(S)=∑i∈SwiW(S) = \sum_{i\in S} w_iW(S)=∑i∈S​wi​, is increasing.
  • For an incomplete TTT: an index k∗k^*k∗ with W(Ak∗)≤W(T)<W(Ak∗+1)W(A_{k^*}) \le W(T) < W(A_{k^*+1})W(Ak∗​)≤W(T)<W(Ak∗+1​), and a weight θ∈[0,1]\theta \in [0,1]θ∈[0,1] solving (15).
  • With the weights θ\thetaθ on Ak∗A_{k^*}Ak∗​ and 1−θ1-\theta1−θ on Ak∗+1A_{k^*+1}Ak∗+1​: Pˉj(α)≥Pj(T)\bar P_j(\alpha) \ge P_j(T)Pˉj​(α)≥Pj​(T) for j≤k∗j \le k^*j≤k∗, and the prefix sums beyond k∗k^*k∗ equal Q(T)Q(T)Q(T).
  • Theorem 2, sufficiency direction: increasing QQQ plus such majorizing mixtures for every incomplete TTT give the nesting-by-fare-order property.

Companions

  • Proposition 6, first sentence, under strictly decreasing fares: every nondominated set is complete.
  • Proposition 5: the independent model has the nesting-by-fare-order property.

Significance

The result. Proposition 6 turns a structural question about an exponentially large dynamic program (the firm chooses among 2n2^n2n offer sets in every period) into the familiar one-dimensional policy of opening fares from the top. For MNL demand, the optimal control is described by nnn protection levels, which is how airline reservation systems already operate; the paper's later remark (17) gives the opening condition for fare k+1k+1k+1. Without it, a firm whose customers substitute according to MNL would have no guarantee that fare-ordered nesting is not leaving revenue on the table.

Formalizing it. The result is proved in the paper; no machine-checked version exists. The mission produces a checked proof of Proposition 6, a checked sufficiency direction of Theorem 2 that applies to any choice model, and the independent-demand case (Proposition 5). The literal wording of Proposition 6 ("the only nondominated sets are the complete sets") is false when fares tie; the mission records the corrected statement under strictly decreasing fares.

Difficulty

The obvious approach compares an incomplete set TTT directly with a single complete set, and it fails: under MNL, adding a fare changes every other fare's probability through the common denominator, so no single complete set need match TTT's purchase probability while selling at least as much of every high fare. A comparison through randomizations over complete sets is needed, and a weight that matches TTT's total purchase probability does not, for a general choice model, match the individual product probabilities as well. The final comparison must also hold for every ordered value vector xxx, including vectors with negative entries, for which the empty set can be the only optimum.

Formalization scope

Products are Fin n (index j−1j-1j−1 for fare jjj); a choice model is P : Finset (Fin n) → Fin n → ℝ with the published RevenueManagement.IsChoiceModel (nonnegativity, total at most one) plus SupportedOn P (Pj(S)=0P_j(S) = 0Pj​(S)=0 off SSS, the model's convention on p. 5). AkA_kAk​ is complete n k = {j | j.val < k} for k∈{0,…,n}k \in \{0, \dots, n\}k∈{0,…,n}; the empty set A0A_0A0​ counts as complete, and the mixture weights α\alphaα are indexed by {0,…,n}\{0, \dots, n\}{0,…,n}. The page indexes complete sets as k=1,…,nk = 1, \dots, nk=1,…,n; without A0A_0A0​, condition 2 fails for every model when all xj<0x_j < 0xj​<0, where only ∅\emptyset∅ is optimal. The order x1≥⋯≥xnx_1 \ge \dots \ge x_nx1​≥⋯≥xn​ is Antitone x. The paper's weight λ\lambdaλ is written θ\thetaθ, since λ is reserved in Lean.

Standing hypotheses and pins: MNL weights wj>0w_j > 0wj​>0 (wj=eujw_j = e^{u_j}wj​=euj​); for the independent model qj≥0q_j \ge 0qj​≥0 and ∑jqj≤1\sum_j q_j \le 1∑j​qj​≤1, so that it is a probability function; strictly decreasing fares StrictAnti r for the nondominated-set companion only, because with r1=r2>0r_1 = r_2 > 0r1​=r2​>0 and w1=w2w_1 = w_2w1​=w2​ the incomplete set {2}\{2\}{2} is nondominated.

The goal is the full Definition 4 with both conditions; it may not be weakened to condition 1 alone, to condition 2 for nonnegative xxx, or to a statement that assumes condition (ii) of Theorem 2 or the existence of k∗k^*k∗. The "Moreover" sentence of Propositions 5 and 6 (nested allocation policies, Definition 3) is not formalized. Theorem 2's sufficiency half is restated here because draft items cannot import the drafts of mission 2; the definitions of complete sets and the property are shared verbatim with that mission.

Contributions welcome: proofs of the milestones, a general summation-by-parts lemma for majorized vectors (reusable beyond this mission), and the converse of Theorem 2 via Farkas' lemma.

Selected references

  • K. Talluri, G. van Ryzin, Revenue management under a general discrete choice model of consumer behavior, working paper, October 21, 2001 (UPF Economics Working Paper 533); published in Management Science 50(1):15–33, 2004. https://doi.org/10.1287/mnsc.1030.0147
  • M. Ben-Akiva, S. Lerman, Discrete Choice Analysis: Theory and Application to Travel Demand, MIT Press, 1985. https://mitpress.mit.edu/9780262536400/
  • T. C. Lee, M. Hersh, A model for dynamic airline seat inventory control with multiple seat bookings, Transportation Science 27(3):252–265, 1993. https://doi.org/10.1287/trsc.27.3.252
  • A. W. Marshall, I. Olkin, B. C. Arnold, Inequalities: Theory of Majorization and Its Applications, 2nd ed., Springer, 2011. https://doi.org/10.1007/978-0-387-68276-1
11 thms3 active usersReviewed
🏆Completed
Algorithmic Game TheoryCombinatoricsMechanism Design·Captain: mikedeng1

On Cores and Indivisibility 2: Gale's Top Trading Cycles Give a Core Allocation Supported by Competitive PricesResearch Paper

Motivation

Markets for indivisible goods, in which each participant owns one unit and wants one unit (houses, kidneys in paired donation, dormitory rooms, school seats), cannot be analysed with the convexity assumptions of classical general equilibrium theory. Shapley and Scarf (1974) introduced the housing market to ask whether the two central solution concepts of exchange economies survive indivisibility: the core (allocations no coalition can improve upon by trading among itself) and competitive equilibrium (allocations supported by prices at which every trader optimizes within his budget). Their paper (doi:10.1016/0304-4068(74)90033-0) gives two proofs that the core is nonempty. The first (Section 4) shows that the associated game without side payments is balanced and invokes Scarf's theorem; that is the companion mission of this series. The second (Section 6) is a constructive argument the authors attribute to David Gale, the top trading cycles method, which also produces competitive prices. This mission formalizes the second.

Timeline.

  • 1967: Scarf proves that balanced games without side payments have nonempty cores (doi:10.2307/1909383).
  • 1974: Shapley and Scarf define the housing market, prove that it has a nonempty core by both arguments, and give Gale's top-trading-cycle construction with competitive prices, allowing indifferences.
  • 1977: Roth and Postlewaite show that with strict preferences the competitive allocation is unique and is the unique allocation in the strong core (doi:10.1016/0304-4068(77)90004-0).
  • 1982: Roth shows the top-trading-cycles mechanism is strategy-proof under strict preferences (doi:10.1016/0165-1765(82)90003-9).
  • 2003: Abdulkadiroğlu and Sönmez adapt top trading cycles to school choice (doi:10.1257/000282803322157061).

Setting

A finite set NNN of traders each brings one indivisible good; "item jjj" is the good of trader jjj. Preferences are a real matrix A=(aij)i,j∈NA = (a_{ij})_{i,j\in N}A=(aij​)i,j∈N​: trader iii prefers item jjj to item kkk when aij>aika_{ij} > a_{ik}aij​>aik​ and is indifferent when aij=aika_{ij} = a_{ik}aij​=aik​. Ties are allowed, and only comparisons matter.

An allocation is a bijection σ:N→N\sigma : N\to Nσ:N→N; trader iii receives item σ(i)\sigma(i)σ(i). For a coalition SSS, an SSS-permutation τ\tauτ reshuffles the items of SSS among the members of SSS. The allocation σ\sigmaσ is a core allocation if there is no nonempty SSS and SSS-permutation τ\tauτ with aiτ(i)>aiσ(i)a_{i\tau(i)} > a_{i\sigma(i)}aiτ(i)​>aiσ(i)​ for every i∈Si \in Si∈S.

Prices price:N→R\mathrm{price}: N \to \mathbb Rprice:N→R are competitive for σ\sigmaσ if each trader iii, selling his own item for price(i)\mathrm{price}(i)price(i), can afford σ(i)\sigma(i)σ(i), i.e. price(σ(i))≤price(i)\mathrm{price}(\sigma(i)) \le \mathrm{price}(i)price(σ(i))≤price(i), and no item kkk with price(k)≤price(i)\mathrm{price}(k) \le \mathrm{price}(i)price(k)≤price(i) is better for him than σ(i)\sigma(i)σ(i).

For R⊆NR \subseteq NR⊆N, a top trading cycle for RRR is a nonempty S⊆RS \subseteq RS⊆R whose members can be arranged in a cycle i1→i2→⋯→is→i1i_1 \to i_2 \to \cdots \to i_s \to i_1i1​→i2​→⋯→is​→i1​ so that each iri_rir​ likes the good of ir+1i_{r+1}ir+1​ at least as well as any other good in RRR. A top-trading-cycle partition is

N=S1∪S2∪⋯∪Sp,N = S^1 \cup S^2 \cup \cdots \cup S^p,N=S1∪S2∪⋯∪Sp,

with S1S^1S1 a top trading cycle for NNN and each SjS^jSj a top trading cycle for N−(S1∪⋯∪Sj−1)N - (S^1\cup\cdots\cup S^{j-1})N−(S1∪⋯∪Sj−1). In Lean the partition carries stage : N → Fin p and the successor map next : N → N.

Formalization targets

Goal: Section 6, assertions (1) and (2), p. 114

For every market AAA and every top-trading-cycle partition with successor map next\mathrm{next}next, the allocation i↦next(i)i \mapsto \mathrm{next}(i)i↦next(i) is a core allocation, and for every choice of prices

π1>π2>⋯>πp>0\pi^1 > \pi^2 > \cdots > \pi^p > 0π1>π2>⋯>πp>0

on the goods of S1,…,SpS^1,\dots,S^pS1,…,Sp it is competitive. The paper asserts that "a set of competitive prices exists"; its argument works for every such choice, and the goal states that.

Milestones (Section 6, p. 114)

  1. Every nonempty R⊆NR\subseteq NR⊆N has a top trading cycle.
  2. A top-trading-cycle partition of NNN exists (so the goal is not vacuous and every market has a competitive core allocation).
  3. If jjj is the first index with S∩Sj≠∅S \cap S^j \ne \emptysetS∩Sj=∅ and i∈S∩Sji \in S\cap S^ji∈S∩Sj, then aik≤ai next(i)a_{ik} \le a_{i\,\mathrm{next}(i)}aik​≤ainext(i)​ for all k∈Sk \in Sk∈S.
  4. Under the prices πstage(k)\pi^{\mathrm{stage}(k)}πstage(k), the successor's item costs the same as one's own, and every affordable item lies in one's own cycle or a later one.

Example (Section 7, pp. 115–116)

For the matrix (01210−1−110)\begin{pmatrix}0&1&2\\1&0&-1\\-1&1&0\end{pmatrix}​01−1​101​2−10​​ the unique competitive payoff is (2,1,1)(2,1,1)(2,1,1) at equal prices, while the allocation with payoff (1,1,0)(1,1,0)(1,1,0) is a core allocation that is competitive at no prices.

Significance

The result gives the existence of a core allocation of every housing market by an explicit construction, and shows that this allocation is competitive, so the competitive solution is nonempty even though goods are indivisible and preferences may have ties. The Section 7 example shows that the inclusion of competitive allocations in the core is strict in general. Under strict preferences, the outcome of the construction is the basis of the matching-market literature: uniqueness of the strong core (Roth–Postlewaite), strategy-proofness (Roth), and the school-choice and kidney-exchange mechanisms built on top trading cycles.

The mathematics is classical and proved. The formalization adds a machine-checked statement of the weak-preference version with the paper's strict blocking notion and its price argument, which existing formal developments do not cover. The closest platform items are AGT.house_core_unique, the strict-preference refinement (Roth–Postlewaite: with strict preferences and weak blocking the core is exactly one allocation), and the school-choice items SchoolChoice.TTC.*. Neither is this statement: the first assumes strict total orders and a different blocking notion, under which the core can be empty once ties are allowed, and says nothing about prices; the second concerns another model with priorities.

Difficulty

Each step is short on paper; the work is in the bookkeeping. The cycle allocation must be shown to be a bijection of NNN from the stage-by-stage cycle structure; the "chain of best-liked goods that eventually must come back to some earlier element" must be turned into a cycle whose members each get a best good in RRR, with ties handled by a choice rather than by a unique top choice; and the first-stage argument must be carried out with the coalition's reshuffling restricted to its own goods. A tempting shortcut, assuming strict preferences or using a union of cycles at a stage, proves a different statement and is ruled out by the definitions.

Formalization scope

  • Traders form an arbitrary finite type N with decidable equality; no nonemptiness is assumed (the empty market has the empty partition). The matrix A : N → N → ℝ has no hypothesis, so ties are allowed.
  • Allocations are bijections σ : N → N rather than zero-one matrices. This loses nothing: a coalition in which all members are strictly better off gives each member exactly one item of the coalition (owning nothing is ranked below everything), and an allocation leaving a trader without an item is blocked by that trader alone.
  • Blocking is strict for every member of the coalition, as on p. 107; the weak notion (all weakly, one strictly better off) makes assertion (1) false with ties.
  • The paper gives no displayed definition of competitive prices. The Lean notion is: σ\sigmaσ is a bijection, price(σ(i))≤price(i)\mathrm{price}(\sigma(i)) \le \mathrm{price}(i)price(σ(i))≤price(i), and price(k)≤price(i)⇒aik≤aiσ(i)\mathrm{price}(k)\le\mathrm{price}(i) \Rightarrow a_{ik}\le a_{i\sigma(i)}price(k)≤price(i)⇒aik​≤aiσ(i)​. This transcribes "can sell his own item for πj\pi^jπj dollars", "cannot afford", and "his utility is maximized" (p. 114).
  • A top trading cycle is a single cycle of the successor map: nonempty, inside RRR, closed under next, every member reaching every other by iterating next. A one-trader cycle with next i = i is allowed (footnote, p. 114).
  • Explicit readings of loose phrases: "it is evident" (milestone 1) is an existence statement; "the highest possible payoff available to him in SSS" (milestone 3) is aik≤ai next(i)a_{ik} \le a_{i\,\mathrm{next}(i)}aik​≤ainext(i)​ for all k∈Sk\in Sk∈S; "cannot afford any items from S1,…,Sj−1S^1,\dots,S^{j-1}S1,…,Sj−1" (milestone 4) is: price at most πj\pi^jπj implies stage at least jjj; "a set of competitive prices exists" (goal) is strengthened to every strictly decreasing positive π\piπ, as the proof gives.
  • Trivializing formalizations are ruled out: the partition is quantified over all choices and its existence is a milestone, cycles are required to be nonempty and single, and the budget clause is part of the price notion, so competitiveness does not reduce to "everyone gets a best good".
  • Contributions welcome: proofs of the milestones, a computable top-trading-cycle algorithm with a proof that it produces a partition, and a proof of the paper's remark that no other competitive prices exist up to ties.

Selected references

  • L. Shapley and H. Scarf, On cores and indivisibility, Journal of Mathematical Economics 1 (1974) 23–37. https://doi.org/10.1016/0304-4068(74)90033-0
  • H. Scarf, The core of an N person game, Econometrica 35 (1967) 50–69. https://doi.org/10.2307/1909383
  • A. E. Roth and A. Postlewaite, Weak versus strong domination in a market with indivisible goods, Journal of Mathematical Economics 4 (1977) 131–137. https://doi.org/10.1016/0304-4068(77)90004-0
  • A. E. Roth, Incentive compatibility in a market with indivisible goods, Economics Letters 9 (1982) 127–132. https://doi.org/10.1016/0165-1765(82)90003-9
  • A. Abdulkadiroğlu and T. Sönmez, School choice: a mechanism design approach, American Economic Review 93 (2003) 729–747. https://doi.org/10.1257/000282803322157061
8 thms3 active usersReviewed
🏆Completed
CombinatoricsProbability·Captain: mikedeng1

Concentration of Measure and Isoperimetric Inequalities in Product Spaces VII: Bin Packing — P(|B_N − M| ≥ 1 + u) ≤ 8 exp(−u²/(64 N E X₁²))Textbook

Motivation

Bin packing asks for the minimum number of unit-capacity bins into which a list of items with sizes in [0,1][0,1][0,1] can be packed. It is one of the basic NP-hard problems of combinatorial optimization and operations research, and its stochastic version, where the item sizes are random, has a large literature (Coffman and Lueker, Probabilistic Analysis of Packing and Partitioning Algorithms, 1991). A first question about the random optimum is how strongly it concentrates around its typical value.

A short history of that question, as Talagrand recounts it on p. 151 of the source:

  • Late 1980s. Martingale methods (Rhee–Talagrand; McDiarmid, On the method of bounded differences, 1989) give P(∣BN−EBN∣≥t)≤2exp⁡(−2t2/N)P(|B_N - \mathbb E B_N| \ge t) \le 2\exp(-2t^2/N)P(∣BN​−EBN​∣≥t)≤2exp(−2t2/N) for NNN i.i.d. items. The exponent ignores the item sizes.
  • 1994. Since BNB_NBN​ behaves like ∑iXi\sum_i X_i∑i​Xi​ when the items are small, the right exponent should be of order t2/(Nvar⁡X1)t^2/(N\operatorname{var} X_1)t2/(NvarX1​), or at least t2/(N EX12)t^2/(N\,\mathbb E X_1^2)t2/(NEX12​). The second form was proved by W. Rhee (Inequalities for the Bin Packing Problem III, Optimization 29 (1994), 381–385) using non-trivial bin-packing theory.
  • 1995. Talagrand (Publ. Math. IHÉS 81, Chapter 6) derives the t2/(N EX12)t^2/(N\,\mathbb E X_1^2)t2/(NEX12​) bound in a few lines from his convex hull distance inequality, using only trivial facts about bin packing.

This mission formalizes that chapter.

Setting

Let Ω=[0,1]\Omega = [0,1]Ω=[0,1] and N≥0N \ge 0N≥0. A point x=(x1,…,xN)∈ΩNx = (x_1,\dots,x_N) \in \Omega^Nx=(x1​,…,xN​)∈ΩN is a list of item sizes. A packing into kkk bins is a map σ:{1,…,N}→{1,…,k}\sigma : \{1,\dots,N\} \to \{1,\dots,k\}σ:{1,…,N}→{1,…,k} with ∑i:σ(i)=jxi≤1\sum_{i:\sigma(i)=j} x_i \le 1∑i:σ(i)=j​xi​≤1 for every bin jjj. The bin packing number BN(x)B_N(x)BN​(x) is the least kkk for which a packing exists (NNN bins always suffice; BN=0B_N = 0BN​=0 when N=0N = 0N=0).

Further notation, as in Lean (TalagrandConc.BinPacking):

  • ∥x∥2=(∑i≤Nxi2)1/2\|x\|_2 = (\sum_{i \le N} x_i^2)^{1/2}∥x∥2​=(∑i≤N​xi2​)1/2 (l2Norm);
  • for real aaa, the level set A(a)={y∈ΩN:BN(y)≤a}A(a) = \{y \in \Omega^N : B_N(y) \le a\}A(a)={y∈ΩN:BN​(y)≤a} (levelSet);
  • for A⊆ΩNA \subseteq \Omega^NA⊆ΩN and x∈ΩNx \in \Omega^Nx∈ΩN, UA(x)={s∈{0,1}N:∃y∈A, si=0⇒xi=yi}U_A(x) = \{s \in \{0,1\}^N : \exists y \in A,\ s_i = 0 \Rightarrow x_i = y_i\}UA​(x)={s∈{0,1}N:∃y∈A, si​=0⇒xi​=yi​}, its convex hull VA(x)⊆RNV_A(x) \subseteq \mathbb R^NVA​(x)⊆RN, and the convex hull distance fc(A,x)f_c(A,x)fc​(A,x), the Euclidean distance from 000 to VA(x)V_A(x)VA​(x), valued in [0,+∞][0,+\infty][0,+∞] (U, V, convexDist);
  • μ\muμ a probability measure on [0,1][0,1][0,1], P=μ⊗NP = \mu^{\otimes N}P=μ⊗N the product probability on [0,1]N[0,1]^N[0,1]N, whose coordinates X1,…,XNX_1,\dots,X_NX1​,…,XN​ are i.i.d. items with law μ\muμ, and EX12=∫ω2 dμ(ω)\mathbb E X_1^2 = \int \omega^2\,d\mu(\omega)EX12​=∫ω2dμ(ω) (secondMoment);
  • MMM is a median of BNB_NBN​ if P(BN≤M)≥1/2P(B_N \le M) \ge 1/2P(BN​≤M)≥1/2 and P(BN≥M)≥1/2P(B_N \ge M) \ge 1/2P(BN​≥M)≥1/2 (IsMedian).

Formalization targets

Goal: Theorem 6.5 (p. 152)

For every median MMM of BNB_NBN​ and every uuu with 0≤u≤82 N EX120 \le u \le 8\sqrt2\,N\,\mathbb E X_1^20≤u≤82​NEX12​,

P(∣BN(X1,…,XN)−M∣≥1+u)≤8exp⁡(−u264 N EX12).P\big(|B_N(X_1,\dots,X_N) - M| \ge 1 + u\big) \le 8\exp\Big(-\frac{u^2}{64\,N\,\mathbb E X_1^2}\Big).P(∣BN​(X1​,…,XN​)−M∣≥1+u)≤8exp(−64NEX12​u2​).

Milestones

  1. Lemma 6.1 (p. 151): BN(x1,…,xN)≤2∑i≤Nxi+1B_N(x_1,\dots,x_N) \le 2\sum_{i\le N} x_i + 1BN​(x1​,…,xN​)≤2∑i≤N​xi​+1.
  2. Lemma 6.2, Eq. (6.2) (p. 151): for a>0a > 0a>0 and all xxx, BN(x)≤a+2∥x∥2 fc(A(a),x)+1B_N(x) \le a + 2\|x\|_2\, f_c(A(a),x) + 1BN​(x)≤a+2∥x∥2​fc​(A(a),x)+1.
  3. Lemma 6.3, Eq. (6.3) (p. 152): P(∥x∥2≥2N(EX12)1/2)≤exp⁡(−2N EX12)P(\|x\|_2 \ge 2\sqrt N(\mathbb E X_1^2)^{1/2}) \le \exp(-2N\,\mathbb E X_1^2)P(∥x∥2​≥2N​(EX12​)1/2)≤exp(−2NEX12​).
  4. Proposition 6.4, Eq. (6.4) (p. 152): for all t>0t > 0t>0, a>0a > 0a>0,
P(BN≤a) P(BN≥a+4tN(EX12)1/2+1)≤e−t2/4+e−2N EX12.P(B_N \le a)\,P\big(B_N \ge a + 4t\sqrt N(\mathbb E X_1^2)^{1/2} + 1\big) \le e^{-t^2/4} + e^{-2N\,\mathbb E X_1^2}.P(BN​≤a)P(BN​≥a+4tN​(EX12​)1/2+1)≤e−t2/4+e−2NEX12​.

The goal keeps the paper's explicit constants 888, 646464 and 828\sqrt282​.

Significance

The result. Theorem 6.5 shows that the random optimum BNB_NBN​ fluctuates on the scale N EX12\sqrt{N\,\mathbb E X_1^2}NEX12​​ rather than N\sqrt NN​. For small items (EX12→0\mathbb E X_1^2 \to 0EX12​→0) this is much sharper than the martingale bound, and it is the scale of the fluctuations of ∑iXi\sum_i X_i∑i​Xi​, which is a lower bound on BNB_NBN​. Chapter 6 is also the first application in Part II of the paper, and its scheme recurs in the later chapters: a deterministic lemma relating the functional to fcf_cfc​ of a level set, a tail bound for an auxiliary factor, and Theorem 4.1.1 to finish.

Formalizing it. The result is proved (Talagrand 1995; Rhee 1994 by another route). No machine-checked proof is known to exist: the platform has no random bin packing statement and no general-Ω\OmegaΩ form of Talagrand's convex distance inequality. A complete development gives a checked concentration bound for an NP-hard combinatorial optimum, plus a bin-packing layer (the optimum as a minimum over assignments, Lemma 6.1, monotonicity in the item set) that other formalizations can reuse.

Difficulty

The obvious route is a bounded-differences argument: changing one item changes BNB_NBN​ by at most one. That route yields only the exponent t2/Nt^2/Nt2/N, because it cannot see that small items change little. Replacing the Hamming geometry by one weighted by item sizes is the point. The weights xix_ixi​ depend on the point xxx itself, so no fixed weighted Hamming distance works. The convex hull distance fcf_cfc​ controls every weighting at once, and the resulting factor ∥x∥2\|x\|_2∥x∥2​ is random and must be controlled separately (Lemma 6.3). In Lean, the further difficulty is the probabilistic input: Theorem 4.1.1 / Eq. (4.1.2) for a general (non-finite) Ω=[0,1]\Omega = [0,1]Ω=[0,1] is not available, and the convex-hull minimax step (Lemma 4.1.2) behind Lemma 6.2 must be formalized too.

Formalization scope

  • Ω=[0,1]\Omega = [0,1]Ω=[0,1] is Mathlib's unitInterval. Coordinates are Fin N (0-based). PPP is Measure.pi (fun _ : Fin N => μ) for μ : Measure unitInterval with IsProbabilityMeasure μ. No density is assumed.
  • BNB_NBN​ is sInf {k : ℕ | IsPacking x k}, an exact minimum over assignments Fin N → Fin k, not a heuristic such as First Fit. Zero-size items are allowed, as in the paper.
  • fcf_cfc​ is an infimum in ℝ≥0∞ with the Euclidean norm written out (+∞+\infty+∞ for an empty set; Mathlib's default norm on Fin N → ℝ is the sup norm). Lemma 6.2 is stated in ℝ≥0∞.
  • Probabilities are ℝ≥0∞-valued. Every event in the statements ({BN≤a}\{B_N \le a\}{BN​≤a}, {∥x∥2≥c}\{\|x\|_2 \ge c\}{∥x∥2​≥c}) is Borel. The paper's measurability convention matters only inside the proofs.
  • Theorem 6.5 makes the paper's implicit u≥0u \ge 0u≥0 explicit, and it is stated for every median, not for a chosen one. Lean's u2/0=0u^2/0 = 0u2/0=0 matters only in the degenerate case N EX12=0N\,\mathbb E X_1^2 = 0NEX12​=0, which forces u=0u = 0u=0. There the bound is 888.
  • Not admissible: weakening the range of uuu (the bound fails for large uuu when EX12\mathbb E X_1^2EX12​ is small), replacing EX12\mathbb E X_1^2EX12​ by 111, or defining BNB_NBN​ through a heuristic or a real-valued sInf.
  • Infrastructure needed: Talagrand's inequality (4.1.2) on a general product probability space (posed on the platform only in a finite-alphabet form) and Lemma 4.1.2. Both are welcome as separate contributions. A Chebyshev/exponential-moment bound gives Lemma 6.3.

Selected references

  • M. Talagrand, Concentration of measure and isoperimetric inequalities in product spaces, Publ. Math. IHÉS 81 (1995), 73–205, Chapter 6, pp. 151–152. https://doi.org/10.1007/BF02699376
  • W. Rhee, Inequalities for the Bin Packing Problem III, Optimization 29 (1994), 381–385.
  • C. McDiarmid, On the method of bounded differences, Surveys in Combinatorics 1989, LMS Lecture Note Series 141, Cambridge Univ. Press, 148–188. https://doi.org/10.1017/CBO9781107359949.008
  • E. G. Coffman Jr., G. S. Lueker, Probabilistic Analysis of Packing and Partitioning Algorithms, Wiley, 1991.
6 thms3 active usersReviewed
🏆Completed
Complexity TheoryLinear OptimizationOptimization·Captain: mikedeng1

On Adaptive-Step Primal-Dual Interior-Point Algorithms for Linear Programming 1: The Predictor–Corrector Algorithm Between N₂(1/4) and N₂(1/2) Attains Precision t in O(√n·t) IterationsResearch Paper

Motivation

Linear programming asks for the best value of a linear objective subject to linear equations and inequalities. Primal-dual interior-point methods seek feasible primal and dual solutions while keeping every constrained coordinate positive. The resulting pair has a measurable gap between its objective values, so an algorithm can stop when the gap is below a chosen precision. Mizuno, Todd, and Ye studied methods that adjust the length of each step according to the current point. Their technical report gives a predictor–corrector algorithm whose worst-case iteration count grows on the scale of the square root of the number of variables times the requested precision parameter Mizuno, Todd, and Ye, Cornell ORIE Technical Report No. 944, pp. 6–9.

The result matters to readers who need a mathematical guarantee for an adaptive step rule. The algorithm takes one predictor step that reduces the gap and then one corrector step that recenters the pair. Its step length is defined by remaining inside a specified neighborhood, rather than by a fixed schedule. The theorem connects that local rule to a global termination bound.

Setting

Fix an integer n≥1n\ge1n≥1 of variables, an arbitrary number mmm of equality constraints, a real matrix A∈Rm×nA\in\mathbb R^{m\times n}A∈Rm×n, and vectors b∈Rmb\in\mathbb R^mb∈Rm and c∈Rnc\in\mathbb R^nc∈Rn. The primal problem minimizes cTxc^TxcTx over Ax=bAx=bAx=b, x≥0x\ge0x≥0. Its dual problem maximizes bTyb^TybTy over ATy+s=cA^Ty+s=cATy+s=c, s≥0s\ge0s≥0. The dual slack is sss. The development reuses a published general-form LP model and specializes it to this pair.

The strictly feasible pairs F0F^0F0 are the pairs (x,s)(x,s)(x,s) satisfying the two feasibility systems for some dual multiplier yyy, with every coordinate of xxx and sss strictly positive. The multiplier is allowed to vary with the pair. Write X=diag⁡(x)X=\operatorname{diag}(x)X=diag(x), S=diag⁡(s)S=\operatorname{diag}(s)S=diag(s), and eee for the vector of ones. The duality measure is μ=xTs/n\mu=x^Ts/nμ=xTs/n. For 0<β<10<\beta<10<β<1, the Euclidean central-path neighborhood is

N2(β)={(x,s)∈F0:∥Xs−μe∥2≤βμ}.N_2(\beta)=\{(x,s)\in F^0:\|Xs-\mu e\|_2\le\beta\mu\}.N2​(β)={(x,s)∈F0:∥Xs−μe∥2​≤βμ}.

The search direction (dx,dy,ds)(d_x,d_y,d_s)(dx​,dy​,ds​) at (x,s)(x,s)(x,s) with parameter γ\gammaγ solves the three equations Sdx+Xds=γμe−XsSd_x+Xd_s=\gamma\mu e-XsSdx​+Xds​=γμe−Xs, Adx=0Ad_x=0Adx​=0, and ATdy+ds=0A^Td_y+d_s=0ATdy​+ds​=0. A step of length θ\thetaθ yields (x+θdx,s+θds)(x+\theta d_x,s+\theta d_s)(x+θdx​,s+θds​). Algorithm 1 begins in N2(1/4)N_2(1/4)N2​(1/4). It takes a predictor direction with γ=0\gamma=0γ=0 to the greatest step whose entire path remains in N2(1/2)N_2(1/2)N2​(1/2), then takes one full corrector direction with γ=1\gamma=1γ=1. The resulting pair starts the next iteration. The algorithm stops when xTs≤2−tx^Ts\le2^{-t}xTs≤2−t; its starting gap is at most 2t2^t2t report, pp. 4 and 6–7.

Formalization targets

Theorem 1: termination

For every real precision parameter ttt, every run following Algorithm 1 from an allowed starting pair reaches the stopping threshold at some iteration kkk with

k≤⌈2(log⁡2)81/4n t⌉,(xk)Tsk≤2−t.k\le\left\lceil2(\log2)8^{1/4}\sqrt n\,t\right\rceil, \qquad (x^k)^Ts^k\le2^{-t}.k≤⌈2(log2)81/4n​t⌉,(xk)Tsk≤2−t.

The paper states the iteration order as O(n t)O(\sqrt n\,t)O(n​t). The explicit ceiling records the count given by its proof without allowing an unspecified constant to depend on the LP instance report, Theorem 1, pp. 8–9.

Source milestones

The supporting targets are equations (4)–(5), Lemma 1(a), Lemma 2(a)–(b), Lemma 3, Lemma 4, and the contraction displayed in the proof of Theorem 1. They cover the duality measure along a step, bounds on the scaled second-order term, preservation of the inner neighborhood, the predictor step length, and the per-iteration reduction. The milestone list follows the order in which these facts enter the report's analysis report, pp. 4–9.

Significance

Theorem 1 gives a stopping guarantee for a fully specified adaptive predictor–corrector method on a feasible primal-dual LP pair. In particular, the requested precision can grow while the iteration bound scales with n\sqrt nn​, rather than with nnn, in this neighborhood model. It also gives a quantitative reason to track two neighborhoods: the predictor may leave the inner one, while the corrector brings the iterate back for the next round.

The report proves this mathematical claim, but this mission does not assert that its proof has already been machine checked. A completed formalization would supply reusable Lean definitions for strictly feasible LP pairs, Euclidean centrality, search directions, and algorithmic step relations. Solvers may formalize the report's argument or another proof of the same statements; the audited goal and milestones fix the mathematical contract.

Difficulty

The predictor direction is aimed at reducing the duality measure, but a long step can move the componentwise products xjsjx_js_jxj​sj​ away from their common average or make a coordinate nonpositive. The corrector recenters the pair, yet its effect must be controlled in the same Euclidean neighborhood. A gap decrease alone therefore does not imply that another iteration can be taken. The central difficulty is to establish both a nonzero admissible predictor length and preservation of strict feasibility and centrality under the full corrector step.

Formalization scope

Vectors are functions on Fin n, and AAA is a finite matrix. The report's indices 1,…,n1,\ldots,n1,…,n correspond to Lean indices 0,…,n−10,\ldots,n-10,…,n−1. The norm in N2N_2N2​ and in Lemmas 1–2 is explicitly ℓ2\ell_2ℓ2​: Lean's default norm on functions is a supremum norm. All powers of two use real exponents, and log⁡\loglog is natural logarithm. The hypothesis n≥1n\ge1n≥1 gives meaning to μ=xTs/n\mu=x^Ts/nμ=xTs/n; no sign condition on ttt is imposed, since for t≤0t\le0t≤0 the starting pair already meets the stopping test.

The source's “largest” predictor step is represented as an attained greatest element of the admissible set, with admissibility required throughout the step interval. Some interior points have admissible intervals without a greatest member. In particular, at n=1n=1n=1 there may be no continuing run under this literal algorithm rule; the goal retains n≥1n\ge1n≥1 and makes this limitation explicit. The denominator ∥Pq∥2\|Pq\|_2∥Pq∥2​ in Lemma 4 can vanish. The formal lower bound uses its limiting value 1/21/21/2 in that case, avoiding a zero returned by Lean's total division. The separate contraction milestone assumes n≥2n\ge2n≥2, because its printed lower bound on the predictor length fails at n=1n=1n=1.

The definitions keep primal feasibility, an existential dual multiplier, coordinatewise strict positivity, and the three direction equations visible. A sequence is constrained by the transition relation whenever its gap exceeds 2−t2^{-t}2−t; values after stopping play no role. These conditions exclude trivial encodings in which the gap threshold is built into the run or centrality is measured with the wrong norm. The remaining work includes Euclidean finite-sum estimates, positivity along steps, and the iteration-count argument. The LP specialization and norm infrastructure can be reused in further interior-point developments.

Selected references

  • Shinji Mizuno, Michael J. Todd, and Yinyu Ye, On Adaptive-Step Primal-Dual Interior-Point Algorithms for Linear Programming, Cornell ORIE Technical Report No. 944, 1990, revised 1991; published in Mathematics of Operations Research 18(4), 1993. Technical-report PDF. The PDF used here is the technical report, so all page and result indices refer to that version.
12 thms3 active usersReviewed
🏆Completed
Stochastic Systems·Captain: mikedeng1

A Proof of the Optimality of the Shortest Remaining Processing Time Discipline: SRPT Minimizes the Number of Jobs in System at Every Time, for Every Arrival Stream and Every ScheduleResearch Paper

Motivation

A single processor receives jobs over time, each with a known amount of work, and may interrupt a job at any moment to work on another. Which rule should decide what to process? For the number of jobs waiting or in service, the answer is the Shortest Remaining Processing Time (SRPT) rule: at every moment, work on the job in system that is closest to completion. Its optimality is pathwise. It holds for every sequence of arrival times and processing times, not on average under a probabilistic model, so it applies to any single-server queue whatever the distribution of interarrival and processing times. By Little's law it also minimizes mean response time, which is why SRPT and its approximations are the reference policy in the analysis of size-based scheduling for web servers and networks (Harchol-Balter et al., 2003).

Timeline:

  • 1966. Schrage and Miller analyse the M/G/1 queue under SRPT and state, without proof, that SRPT minimizes the number in system at every time for every arrival sequence (Schrage–Miller, 1966).
  • 1968. Schrage publishes a letter giving a proof by an interchange argument (Schrage, 1968). This mission formalizes that letter.
  • 1978. D. R. Smith gives a new proof of the same statement (Smith, 1978) by a different argument.

Setting

An arrival stream is a sequence of pairs (A(n),P(n))(A(n), P(n))(A(n),P(n)), n=0,1,2,…n = 0, 1, 2, \dotsn=0,1,2,…, of real numbers: A(n)A(n)A(n) is the arrival time and P(n)P(n)P(n) the processing time of job nnn. A schedule is a family of measurable functions δ(n,⋅):R→{0,1}\delta(n, \cdot) : \mathbb R \to \{0, 1\}δ(n,⋅):R→{0,1}, with δ(n,t)=1\delta(n, t) = 1δ(n,t)=1 meaning that the processor works on job nnn at time ttt. No job is processed before it arrives (δ(n,t)=0\delta(n, t) = 0δ(n,t)=0 for t<A(n)t < A(n)t<A(n)), and the processor works on at most one job at a time.

The remaining processing time of job nnn at time ttt is

S(n,t)=P(n)−∫A(n)tδ(n,x) dx,S(n, t) = P(n) - \int_{A(n)}^{t} \delta(n, x)\,dx,S(n,t)=P(n)−∫A(n)t​δ(n,x)dx,

and its completion time is

C(n)=min⁡{x≥A(n):∫A(n)xδ(n,t) dt≥P(n)},C(n) = \min\Big\{x \ge A(n) : \int_{A(n)}^{x} \delta(n, t)\,dt \ge P(n)\Big\},C(n)=min{x≥A(n):∫A(n)x​δ(n,t)dt≥P(n)},

or +∞+\infty+∞ if the job never receives its processing time. The set of jobs in system at time ttt is θ(t)={n:A(n)≤t, S(n,t)>0}\theta(t) = \{n : A(n) \le t,\ S(n, t) > 0\}θ(t)={n:A(n)≤t, S(n,t)>0}, and N(t)N(t)N(t) is its cardinality.

A schedule follows SRPT if, at every time ttt with θ(t)≠∅\theta(t) \ne \emptysetθ(t)=∅, the processor works on a job k∈θ(t)k \in \theta(t)k∈θ(t) with S(k,t)≤S(j,t)S(k, t) \le S(j, t)S(k,t)≤S(j,t) for all j∈θ(t)j \in \theta(t)j∈θ(t). Ties may be broken arbitrarily.

Formalization targets

Goal: SRPT minimizes the number in system at every time

For every locally finite arrival stream, every SRPT schedule δs\delta_sδs​ and every schedule δ\deltaδ of the same stream,

Ns(t)≤N(t)for all t∈R.N_s(t) \le N(t) \qquad \text{for all } t \in \mathbb R.Ns​(t)≤N(t)for all t∈R.

The goal has no constants and no distributional assumptions. It is the statement quoted on p. 687 and concluded at the end of the PROOF on p. 689.

Milestones: the steps of the letter's interchange argument

All five come from the PROOF on p. 689. They compare an original schedule δo\delta_oδo​ with a revised schedule δr\delta_rδr​.

  1. Idle case (b1). If the processor is idle on [t,t+v][t, t+v][t,t+v] while job jjj waits, processing jjj there gives Cr(j)<Co(j)C_r(j) < C_o(j)Cr​(j)<Co​(j) and Cr(i)=Co(i)C_r(i) = C_o(i)Cr​(i)=Co​(i) for i≠ji \ne ji=j.
  2. Max identity. Reassigning the capacity that two jobs j,kj, kj,k share after time ttt, in any way, leaves max⁡{C(k),C(j)}\max\{C(k), C(j)\}max{C(k),C(j)} unchanged.
  3. SRPT minimizes the minimum. Giving that capacity first to the job with the smaller remaining time minimizes min⁡[C(k),C(j)]\min[C(k), C(j)]min[C(k),C(j)].
  4. Relation (2). If kkk is served on [t,t+v][t, t+v][t,t+v] while jjj with So(j,t)<So(k,t)S_o(j,t) < S_o(k,t)So​(j,t)<So​(k,t) waits, the SRPT reassignment gives min⁡[Cr(k),Cr(j)]<min⁡[Co(k),Co(j)]\min[C_r(k), C_r(j)] < \min[C_o(k), C_o(j)]min[Cr​(k),Cr​(j)]<min[Co​(k),Co​(j)].
  5. Counting. Relations (1)–(3) on completion times give Nr(y)=No(y)−1N_r(y) = N_o(y) - 1Nr​(y)=No​(y)−1 for Cr(j)≤y<min⁡[Co(k),Co(j)]C_r(j) \le y < \min[C_o(k), C_o(j)]Cr​(j)≤y<min[Co​(k),Co​(j)], and Nr(y)=No(y)N_r(y) = N_o(y)Nr​(y)=No​(y) otherwise.

Significance

The result. The goal is a sample-path dominance. Each consequence for averages follows by taking expectations or time averages: SRPT minimizes the mean number in system and, through Little's law (Little, 1961), the mean response time in every G/G/1 queue with known job sizes. It makes SRPT the benchmark against which other preemptive disciplines, size-based or size-oblivious, are measured.

Formalizing it. The statement has been proved on paper since 1968 and given a complete proof in 1978. No machine-checked proof of it is known to this mission. A formalization contributes three things: a precise continuous-time model of preemptive single-server schedules with measurable service indicators and possibly infinite completion times; checked proofs of the exchange steps of the 1968 letter, each of which needs a hypothesis the letter leaves implicit; and a checked proof of the pathwise optimality theorem itself.

Difficulty

The letter argues that a non-SRPT schedule contains an interval on which SRPT is violated, and that swapping service on that interval improves the schedule. The first step fails for measurable schedules. A schedule can violate SRPT on a set of positive measure that contains no interval (a fat Cantor set), or only on a null set. So the "interval of non-SRPT behaviour" need not exist, and a single interchange does not turn an arbitrary schedule into an SRPT one. Repeating interchanges also gives no obvious termination or limit argument, because the improvements can accumulate at a point. The goal therefore cannot be reached by formalizing the letter's induction literally. The milestones are the letter's local claims, which are true under the hypotheses stated with them. The goal needs an argument that compares an SRPT schedule with an arbitrary one at every time directly.

Formalization scope

All declarations live in the namespace SchrageSRPT.Opt. Jobs are indexed by ℕ from 000, and times, arrival times and processing times are real. A schedule is δ : ℕ → ℝ → ℝ with values in {0,1}\{0,1\}{0,1}, each δ n measurable, δ(n,t)=0\delta(n,t) = 0δ(n,t)=0 before arrival, and at most one job served at a time. The letter's ∑nδ(n,t)≤1\sum_n \delta(n,t) \le 1∑n​δ(n,t)≤1 is stated as "two served jobs are equal", not as a series. Assumption (I) of the letter (the arrival stream does not depend on the discipline) is encoded by comparing schedules of one fixed stream. Assumption (II) (preemption wastes no work) is the formula for S(n,t)S(n,t)S(n,t), which has no setup term. Completion times take values in WithTop ℝ, with +∞+\infty+∞ for a job that never completes. A job is in system on [A(n),C(n))[A(n), C(n))[A(n),C(n)). N(t)N(t)N(t) is Set.ncard, and the goal assumes local finiteness ({n:A(n)≤t}\{n : A(n) \le t\}{n:A(n)≤t} is finite for every ttt) so that it is a genuine count. SRPT is the verbal rule of p. 687, required at every ttt.

Two encodings would trivialize the goal, and both are ruled out. The displayed condition of p. 688 ("S(k,t)>S(j,t)S(k,t) > S(j,t)S(k,t)>S(j,t) for j∈θ(t)j \in \theta(t)j∈θ(t) implies δ(k,t)=0\delta(k,t)=0δ(k,t)=0") is satisfied by the schedule that never works, so it is not used as the definition of SRPT. The competitor class is every schedule of the stream: it is not restricted to work-conserving schedules, to finitely many jobs, or to schedules in which every job completes.

The milestones add disclosed hypotheses that the letter uses silently:

  • finiteness of Co(j)C_o(j)Co​(j) in the idle case;
  • no service on a job after it completes in the max identity;
  • that one of the two jobs completes under δo\delta_oδo​ in relation (2).

The counting milestone uses the half-open interval, since the letter's closed right endpoint is a slip.

A complete development needs:

  • continuity and monotonicity of x↦∫A(n)xδ(n,t) dtx \mapsto \int_{A(n)}^x \delta(n,t)\,dtx↦∫A(n)x​δ(n,t)dt;
  • the characterization n∈θ(t)  ⟺  A(n)≤t<C(n)n \in \theta(t) \iff A(n) \le t < C(n)n∈θ(t)⟺A(n)≤t<C(n);
  • interval integrals of schedules modified on sets.

All of this is reusable for other continuous-time preemptive scheduling results. Contributions are welcome in particular for this infrastructure, for proofs of the milestones, and for a complete proof of the goal.

Selected references

  • L. Schrage, A proof of the optimality of the shortest remaining processing time discipline, Operations Research 16(3):687–690, 1968. https://doi.org/10.1287/opre.16.3.687
  • L. E. Schrage and L. W. Miller, The queue M/G/1 with the shortest remaining processing time discipline, Operations Research 14(4):670–684, 1966. https://doi.org/10.1287/opre.14.4.670
  • D. R. Smith, A new proof of the optimality of the shortest remaining processing time discipline, Operations Research 26(1):197–199, 1978. https://doi.org/10.1287/opre.26.1.197
  • J. D. C. Little, A proof for the queuing formula L = λW, Operations Research 9(3):383–387, 1961. https://doi.org/10.1287/opre.9.3.383
  • M. Harchol-Balter, B. Schroeder, N. Bansal and M. Agrawal, Size-based scheduling to improve web performance, ACM Transactions on Computer Systems 21(2):207–233, 2003. https://doi.org/10.1145/762483.762486
7 thms3 active usersReviewed
🏆Completed
Machine LearningTheoretical Computer Science·Captain: mikedeng1

The Weighted Majority Algorithm 2: On Any Partition into Segments, WML Makes at Most Σ min(l_i, (log(n/(βγ)) + m_i log(1/β))/log(1/u)) MistakesResearch Paper

Motivation

Prediction with expert advice asks a master algorithm to combine the binary predictions of a pool of nnn prediction algorithms, trial after trial, so that it makes few more mistakes than the best member of the pool, without any probabilistic assumption on the data. Littlestone and Warmuth's Weighted Majority Algorithm WM (Littlestone and Warmuth 1994) keeps a weight per member, predicts with the weighted vote, and multiplies the weights of the wrong members by a factor β<1\beta<1β<1 after each of its own mistakes. Its mistake bound is of order log⁡n+m\log n + mlogn+m, where mmm is the number of mistakes of the best member on the whole sequence.

That bound compares the master with a single fixed member. In many applications the member that predicts well changes over time: one algorithm is accurate for a while, then a second one, then a third. Against a shifting target of this kind, WM can do badly, because the weight of a member that was wrong for a long time has become so small that it takes many mistakes to recover it. Section 3 of the paper introduces the variant WML, which never decreases a weight that is already small relative to the total, and proves that it pays only a logarithmic cost per change of target. This was the first result of what is now called tracking the best expert; it was later refined by Herbster and Warmuth's Fixed-Share algorithm (Herbster and Warmuth 1998).

Timeline. 1989: a conference version of the paper appears at FOCS. 1994: the journal version, the source of this mission, gives Lemma 3.1 and Theorem 3.1 in their present form. 1998: Herbster and Warmuth's Tracking the Best Expert generalizes the shifting bound to other loss functions.

Setting

A run takes place over TTT trials t=0,…,T−1t = 0, \dots, T-1t=0,…,T−1. In trial ttt each member i∈{1,…,n}i \in \{1,\dots,n\}i∈{1,…,n} of the pool predicts xi(t)∈{0,1}x_i^{(t)} \in \{0,1\}xi(t)​∈{0,1}, the master predicts λ(t)∈{0,1}\lambda^{(t)} \in \{0,1\}λ(t)∈{0,1}, and the label ρ(t)∈{0,1}\rho^{(t)} \in \{0,1\}ρ(t)∈{0,1} is revealed. The predictions of the pool and the labels are arbitrary.

The master keeps weights wi(t)>0w_i^{(t)} > 0wi(t)​>0, the weights at the beginning of trial ttt. Let W(t)=∑jwj(t)W^{(t)} = \sum_j w_j^{(t)}W(t)=∑j​wj(t)​ be the total weight and qb(t)q_b^{(t)}qb(t)​ the total weight of the members predicting bbb. WML has parameters 0<β<10 < \beta < 10<β<1 and 0≤γ<120 \le \gamma < \tfrac120≤γ<21​:

  1. it predicts 000 if q0(t)>q1(t)q_0^{(t)} > q_1^{(t)}q0(t)​>q1(t)​, 111 if q1(t)>q0(t)q_1^{(t)} > q_0^{(t)}q1(t)​>q0(t)​, and either value on a tie;
  2. if λ(t)≠ρ(t)\lambda^{(t)} \ne \rho^{(t)}λ(t)=ρ(t), each member iii with xi(t)≠ρ(t)x_i^{(t)} \ne \rho^{(t)}xi(t)​=ρ(t) and wi(t)>γnW(t)w_i^{(t)} > \frac{\gamma}{n} W^{(t)}wi(t)​>nγ​W(t) has its weight multiplied by β\betaβ; all other weights stay;
  3. if λ(t)=ρ(t)\lambda^{(t)} = \rho^{(t)}λ(t)=ρ(t), no weight changes.

With γ=0\gamma = 0γ=0 this is WM. Write mmm for the number of mistakes of the master and

u=1+β2+(1−β)γ,u = \frac{1+\beta}{2} + (1-\beta)\gamma ,u=21+β​+(1−β)γ,

which lies in [12,1)[\tfrac12, 1)[21​,1) for the stated parameter ranges.

Formalization targets

Goal: Theorem 3.1 (p. 224)

Split the sequence into consecutive segments S1,…,Sk\mathcal S_1, \dots, \mathcal S_kS1​,…,Sk​, with lil_ili​ trials in Si\mathcal S_iSi​, and let mim_imi​ be the smallest number of mistakes any single pool member makes on Si\mathcal S_iSi​. If γ>0\gamma > 0γ>0 and every initial weight is at least βγ/n\beta\gamma/nβγ/n times the total initial weight, then

m≤∑i=1kmin⁡(li, log⁡(n/(βγ))+milog⁡(1/β)log⁡(1/u)).m \le \sum_{i=1}^{k} \min\left( l_i,\ \frac{\log\big(n/(\beta\gamma)\big) + m_i \log(1/\beta)}{\log(1/u)} \right).m≤i=1∑k​min(li​, log(1/u)log(n/(βγ))+mi​log(1/β)​).

The partition is arbitrary and unknown to the algorithm; the bound holds for all partitions simultaneously.

Milestone: Lemma 3.1 (pp. 223–224)

The single-segment case, k=1k = 1k=1, together with the statement that the weight floor survives the run: if every initial weight is at least βγ/n\beta\gamma/nβγ/n times the total, then

m≤log⁡(n/(βγ))+m0log⁡(1/β)log⁡(1/u),m \le \frac{\log\big(n/(\beta\gamma)\big) + m_0 \log(1/\beta)}{\log(1/u)},m≤log(1/u)log(n/(βγ))+m0​log(1/β)​,

and every final weight is at least βγ/n\beta\gamma/nβγ/n times the total final weight.

Milestone: the contraction step (p. 224, proof of Lemma 3.1)

On every mistake trial, W(t+1)≤u W(t)W^{(t+1)} \le u\, W^{(t)}W(t+1)≤uW(t).

Significance

The result. Theorem 3.1 shows that an online algorithm with no knowledge of when or how often the best predictor changes can compete with the best sequence of predictors, at a price of O(log⁡(n/(βγ)))O(\log(n/(\beta\gamma)))O(log(n/(βγ))) mistakes per segment. The min⁡\minmin with lil_ili​ says that a segment never costs more than its length. The bound is the template for later tracking and adaptive-regret results in online learning and for algorithms whose weights are kept bounded away from zero.

Formalizing it. The result is proved in the paper; no machine-checked proof of a shifting-target bound exists on Prove2Me or, to our knowledge, in Mathlib. This mission produces a formal model of WML in which ties are arbitrary (a run is a relation, so the bounds cover every tie-breaking rule), the per-mistake contraction, the single-sequence bound with its preserved invariant, and the segment bound. The model of trials, majority votes and mistake counts is reusable for the other algorithms of the paper.

Difficulty

The standard argument for WM compares the decrease of the total weight with the final weight of the best member. For a shifting target this fails twice. First, the best member of a later segment may have been wrong during all earlier segments; under WM its weight has shrunk by β\betaβ per mistake, and the master has to make many mistakes before that member regains influence. Second, the floor that prevents this also prevents some wrong members from being penalized, so the total weight shrinks by less on each mistake than under WM. The statement has to control both effects at once, and the per-segment accounting has to restart from whatever weights the previous segments left behind. A natural first idea, applying the single-sequence bound to each part of an arbitrary (interleaved) partition, does not work: for interleaved subsequences the inequality is false, and the theorem is about consecutive segments.

Formalization scope

The pool is Fin n with n>0n > 0n>0; trials are Fin T; binary values are Bool; weights are real, w : ℕ → Fin n → ℝ, with w t the weights at the beginning of trial ttt, w 0 the initial and w T the final weights. A run is the relation IsWMLRun β γ x ρ w lam; it fixes positive initial weights, the majority rule with arbitrary ties, and the update, whose threshold is strict and uses the total weight at the beginning of the trial. Logarithms are natural logarithms; the base cancels in every ratio. The minimum over the pool is an infimum in ℕ over Fin n. Segments are given by monotone boundaries b : Fin (k+1) → ℕ with b 0 = 0 and b (Fin.last k) = T; empty segments are allowed and contribute 000.

The paper allows γ=0\gamma = 0γ=0 for the algorithm, but then the bounds read log⁡(n/0)=+∞\log(n/0) = +\inftylog(n/0)=+∞. In Lean, n / 0 = 0, so the bounds assume γ>0\gamma > 0γ>0; the contraction milestone holds for 0≤γ<120 \le \gamma < \tfrac120≤γ<21​ and is stated so. The hypothesis γ<12\gamma < \tfrac12γ<21​ is kept as stated in the paper, not replaced by u<1u < 1u<1. A trivializing formalization, such as fixing the tie-breaking rule, dropping the strict weight test, letting the floor hypothesis be unsatisfiable, or allowing interleaved subsequences (which makes the goal false), is ruled out: a run exists for every input from every positive initial weights, and equal initial weights satisfy the floor.

Contributions welcome: proofs of the three statements, and lemmas on restricting a WML run to a block of trials, which the goal needs and which apply to any segment-wise analysis.

Selected references

  • N. Littlestone, M. K. Warmuth, The Weighted Majority Algorithm, Information and Computation 108(2), 212–261, 1994. https://doi.org/10.1006/inco.1994.1009
  • N. Littlestone, M. K. Warmuth, The Weighted Majority Algorithm, Proc. 30th IEEE FOCS, 256–261, 1989. https://doi.org/10.1109/SFCS.1989.63487
  • M. Herbster, M. K. Warmuth, Tracking the Best Expert, Machine Learning 32, 151–178, 1998. https://doi.org/10.1023/A:1007424614876
4 thms3 active usersReviewed
🏆Completed
CombinatoricsOptimization·Captain: mikedeng1

A Functional Equation and Its Application to Resource Allocation and Sequencing Problems 2: Under Precedence Constraints, All Deadlines Can Be Met iff They Are Met in Order of Modified DeadlinesResearch Paper

Motivation

A single machine must process nnn jobs, each with a processing time and a deadline, and some jobs must be finished before others may start. The first question of any planner is whether the deadlines can be met at all. Without precedence constraints the answer is classical: Jackson's rule (J. R. Jackson, 1955, reported by W. E. Smith, 1956) says that all jobs can be completed on time if and only if they are completed on time when sequenced by earliest deadline first. Precedence constraints break this rule, because the earliest-deadline order may put a job before one of its required predecessors.

E. L. Lawler and J. M. Moore (Management Science 16 (1969) 77–84) repair the rule by replacing each deadline by a modified deadline that accounts for the deadlines of the job's successors. Their §2 Theorem says that a single sequence, the one in increasing order of modified deadlines, decides feasibility. They use it as the first step of their dynamic programming method for sequencing with deadlines and precedence constraints: because the sequence does not depend on processing times, the jobs to be scheduled on time can always be taken in this one fixed order.

Setting

There are nnn jobs 1,…,n1,\dots,n1,…,n. Job jjj has a processing time aj≥0a_j \ge 0aj​≥0 and a deadline dj∈Rd_j \in \mathbb Rdj​∈R. A sequence σ\sigmaσ lists every job exactly once; the machine starts at time 000 and processes the jobs in the order of σ\sigmaσ, one after another, without idle time. The completion time Cj(σ)C_j(\sigma)Cj​(σ) of job jjj is the sum of the processing times of jjj and of all jobs before it in σ\sigmaσ. Job jjj is on time in σ\sigmaσ if Cj(σ)≤djC_j(\sigma) \le d_jCj​(σ)≤dj​.

Precedence constraints are a partial order ρ\rhoρ on the jobs (reflexive, antisymmetric, transitive). If iρji\rho jiρj and i≠ji \ne ji=j, job iii must precede job jjj; such a jjj is a successor of iii, and every job counts as one of its own successors. A sequence is consistent with ρ\rhoρ if no job appears before a job that must precede it. The jobs are numbered so that iρji\rho jiρj implies i≤ji \le ji≤j.

For a number ε\varepsilonε the modified deadline of job jjj is

dˉj=min⁡{ dk∣jρk }+jε,\bar d_j = \min\{\, d_k \mid j\rho k \,\} + j\varepsilon ,dˉj​=min{dk​∣jρk}+jε,

the earliest deadline among jjj and its successors, plus a tie-breaking term. The paper takes ε\varepsilonε to be "a small number"; here that means ε>0\varepsilon > 0ε>0 and nε<dl−dkn\varepsilon < d_l - d_knε<dl​−dk​ whenever dk<dld_k < d_ldk​<dl​.

Formalization targets

Goal: the §2 Theorem (p. 78)

Let σ∗\sigma^*σ∗ be the sequence in which dˉj\bar d_jdˉj​ increases. Then

(∃ σ consistent with ρ: Cj(σ)≤dj  ∀j)  ⟺  Cj(σ∗)≤dj  ∀j.\Big(\exists\,\sigma \text{ consistent with } \rho:\ C_j(\sigma) \le d_j\ \ \forall j\Big)\iff C_j(\sigma^*) \le d_j\ \ \forall j .(∃σ consistent with ρ: Cj​(σ)≤dj​  ∀j)⟺Cj​(σ∗)≤dj​  ∀j.

Milestones (from §2 and the proof of the Theorem, p. 78)

  1. For distinct jobs, iρj⇒dˉi<dˉji\rho j \Rightarrow \bar d_i < \bar d_jiρj⇒dˉi​<dˉj​.
  2. The sequence σ∗\sigma^*σ∗ is consistent with ρ\rhoρ (the "if" part of the Theorem).
  3. If dˉj<dˉi\bar d_j < \bar d_idˉj​<dˉi​, then jjj or some successor kkk of jjj has dk≤did_k \le d_idk​≤di​.
  4. In an on-time sequence consistent with ρ\rhoρ, two adjacent jobs i,ji, ji,j (in this order) with dˉi>dˉj\bar d_i > \bar d_jdˉi​>dˉj​ can be interchanged, and the result is again on time and consistent with ρ\rhoρ.

Significance

The Theorem reduces a question over all n!n!n! sequences consistent with ρ\rhoρ to the evaluation of one sequence, and the sequence depends only on the deadlines and on ρ\rhoρ, not on the processing times. This independence is what the paper's later sections rely on: it lets a subset-selection dynamic program (Eq. (1) of the paper) process jobs in a fixed order. Without precedence constraints (ρ\rhoρ the identity) the Theorem is Jackson's rule. The operational form, "always take next, from among the available jobs, a job which has a successor with the earliest possible deadline", is a list-scheduling rule of the same kind as the backward rule of Lawler (1973) for 1∣prec∣fmax⁡1\mid prec\mid f_{\max}1∣prec∣fmax​.

The result has been proved on paper since 1969. As far as is known it has no machine-checked proof. This mission produces a formal proof of the Theorem and of the exchange step behind it, stated on the same sequence and completion-time model as the platform's existing single-machine scheduling missions.

Difficulty

The obvious argument is the exchange argument for Jackson's rule: swap an adjacent pair that is out of order and check that nothing becomes late. Two things fail without care. First, the swap must not violate precedence; this is why the deadline of a job is replaced by the minimum over its successors. Second, after the swap, job iii completes when job jjj used to complete, but did_idi​ need not be at least djd_jdj​: one must find a successor of jjj that is later in the sequence, on time, and due no later than iii. That step uses the smallness of ε\varepsilonε: with a large ε\varepsilonε the tie-breaking term outweighs a difference of deadlines, and the Theorem fails (three jobs without precedence, a=(2,4,3)a = (2,4,3)a=(2,4,3), d=(7,9,8)d = (7,9,8)d=(7,9,8), ε=3\varepsilon = 3ε=3). Finally, the exchange step must be turned into a terminating transformation of an arbitrary feasible sequence into σ∗\sigma^*σ∗, a bubble-sort argument over lists.

Formalization scope

  • Jobs are Fin n, 0-based: the Lean job j is the paper's job j+1j+1j+1, and the tie-break is ((j:N)+1)ε((j:\mathbb N)+1)\varepsilon((j:N)+1)ε. Processing times and deadlines are real.
  • Sequences and completion times are the published platform definitions MooreLateJobs.Shared.IsSchedule and MooreLateJobs.Shared.completionTime (a duplicate-free list of all jobs; start at time 000, no idle time). Idle time never helps meet a deadline, so this loses nothing. Consistency with ρ\rhoρ is the published LawlerPrec.MinMax.IsFeasible.
  • The modified deadline minimizes over insert j {k | ρ j k}, which is nonempty; for the reflexive ρ\rhoρ of the paper this is {k∣jρk}\{k \mid j\rho k\}{k∣jρk} ("considering a job to be one of its own successors").
  • Explicit readings of the paper's phrases:
    • "ε\varepsilonε is a small number": ε>0\varepsilon > 0ε>0 and nε<dl−dkn\varepsilon < d_l - d_knε<dl​−dk​ whenever dk<dld_k < d_ldk​<dl​. A fixed ε\varepsilonε is quantified universally, not hidden under an existential.
    • "the sequence obtained by ordering jobs according to increasing values of dˉj\bar d_jdˉj​": any duplicate-free list of all jobs along which dˉj\bar d_jdˉj​ strictly increases. Under the hypotheses the dˉj\bar d_jdˉj​ are distinct, so exactly one such list exists.
    • "iρj implies dˉi<dˉj\bar d_i < \bar d_jdˉi​<dˉj​": stated for i≠ji \ne ji=j, since ρ\rhoρ is reflexive.
    • The pair condition "a consecutive pair with dˉi>dˉj\bar d_i > \bar d_jdˉi​>dˉj​" of milestone 3 is dropped, since the claim does not use it.
  • Added hypothesis: aj≥0a_j \ge 0aj​≥0. The paper uses it tacitly ("jjj will remain on time since it will be earlier in the sequence") and the Theorem is false without it.
  • The milestones assume only what they use (for instance, milestone 1 needs transitivity, the numbering and ε>0\varepsilon > 0ε>0). The goal assumes the full partial order of the paper.
  • Trivializing formalizations ruled out: ε=0\varepsilon = 0ε=0 or an unconstrained ε\varepsilonε; a minimum over a possibly empty set, which Lean would assign a junk value; completion times not tied to the order of the list; and dropping "consistent with the precedence constraints" from the left-hand side, which turns the Theorem into a false variant of Jackson's rule.
  • Not in scope: the "order of computational steps" remarks, §3 and the later sections (other missions of this series).

Related platform items: Jackson's rule for unrestricted jobs is already posed as MooreLateJobs.NumLate.jackson (Moore 1968) and is not re-posed here; Lawler's 1∣prec∣fmax⁡1\mid prec\mid f_{\max}1∣prec∣fmax​ theorem is posed as LawlerPrec.MinMax.sequencing_theorem. Contributions welcome: general list-exchange lemmas (adjacent swaps, bubble-sort termination toward a sorted list) are reusable well beyond this mission.

Selected references

  • E. L. Lawler, J. M. Moore, A Functional Equation and Its Application to Resource Allocation and Sequencing Problems, Management Science 16(1) (1969) 77–84. https://doi.org/10.1287/mnsc.16.1.77
  • J. R. Jackson, Scheduling a Production Line to Minimize Maximum Tardiness, Research Report 43, Management Science Research Project, UCLA, 1955.
  • W. E. Smith, Various Optimizers for Single-Stage Production, Naval Research Logistics Quarterly 3 (1956) 59–66. https://doi.org/10.1002/nav.3800030106
  • E. L. Lawler, Optimal Sequencing of a Single Machine Subject to Precedence Constraints, Management Science 19(5) (1973) 544–546. https://doi.org/10.1287/mnsc.19.5.544
8 thms3 active usersReviewed
PreviousPage 10 of 44Next

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me