Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Collections

The OR Formalization Drive

Help us formalize the operations research literature in Lean.

1094 missions

Missions

301–320 of 1094
OpenCompletedAll
Numerical AnalysisOperations ResearchOptimization·Captain: mikedeng1

Pattern Search Algorithms for Bound Constrained Minimization: Generalized Pattern Search Drives the Projected Stationarity Measure to ZeroResearch Paper

Motivation

Pattern search methods minimize a function f:Rn→Rf:\mathbb R^n\to\mathbb Rf:Rn→R by comparing values of fff at points of a structured set of trial points, without evaluating or approximating derivatives. Coordinate search and the method of Hooke and Jeeves (Hooke–Jeeves 1961) are the classical members of the family. Such methods remain in use when derivatives are unavailable, unreliable or expensive, for instance when fff is the output of a simulation, and practical problems of this kind usually carry simple bounds on the variables.

Torczon (SIAM J. Optim. 1997) gave a global convergence theory for pattern search on unconstrained problems: under compactness of the level set and continuous differentiability of fff, lim inf⁡k∥∇f(xk)∥=0\liminf_k\|\nabla f(x_k)\|=0liminfk​∥∇f(xk​)∥=0, and under stronger hypotheses lim⁡k∥∇f(xk)∥=0\lim_k\|\nabla f(x_k)\|=0limk​∥∇f(xk​)∥=0. Lewis and Torczon extended this theory to bound constrained problems (ICASE Report 96-20, 1996; SIAM J. Optim. 1999). The extension is not automatic: the paper exhibits a pattern search method for unconstrained problems (Box's evolutionary operation with factorial designs) that fails on bound constrained ones, and identifies the structural condition on the pattern that restores convergence.

Timeline.

  • 1961: Hooke and Jeeves introduce "direct search" pattern methods.
  • 1987–1988: Calamai and Moré (Math. Program. 1987) and Conn, Gould and Toint (SIAM J. Numer. Anal. 1988) develop the projected-gradient stationarity theory for bound and linear constraints, for methods that use derivatives.
  • 1997: Torczon proves global convergence of generalized pattern search for unconstrained problems.
  • 1996/1999: Lewis and Torczon prove the bound constrained theory formalized here.

Setting

The problem is

min⁡f(x)subject toℓ≤x≤u,\min f(x)\quad\text{subject to}\quad \ell\le x\le u,minf(x)subject toℓ≤x≤u,

with ℓ,u\ell,uℓ,u vectors of extended reals and ℓj<uj\ell_j<u_jℓj​<uj​ for every jjj; ℓj=−∞\ell_j=-\inftyℓj​=−∞ or uj=+∞u_j=+\inftyuj​=+∞ is allowed. The feasible region is Ω={x:ℓ≤x≤u}\Omega=\{x:\ell\le x\le u\}Ω={x:ℓ≤x≤u}, PPP is the coordinatewise projection onto Ω\OmegaΩ, g=∇fg=\nabla fg=∇f, and LΩ(y)={x∈Ω:f(x)≤f(y)}L_\Omega(y)=\{x\in\Omega:f(x)\le f(y)\}LΩ​(y)={x∈Ω:f(x)≤f(y)} is the feasible level set. A stationary point is an x∈Ωx\in\Omegax∈Ω with ⟨g(x),z−x⟩≥0\langle g(x),z-x\rangle\ge0⟨g(x),z−x⟩≥0 for all z∈Ωz\in\Omegaz∈Ω. The stationarity measure is

q(x)=P(x−g(x))−x,q(x)=P\bigl(x-g(x)\bigr)-x,q(x)=P(x−g(x))−x,

which vanishes exactly at stationary points.

A generalized pattern search method is fixed by a nonsingular basis matrix B∈Rn×nB\in\mathbb R^{n\times n}B∈Rn×n, a finite set M\mathcal MM of nonsingular integer matrices, a rational τ>1\tau>1τ>1, an integer w0<0w_0<0w0​<0 and nonnegative integers w1,…,wLw_1,\dots,w_Lw1​,…,wL​. At iteration kkk the generating matrix is Ck=[Mk  −Mk  Lk]=[Γk  Lk]C_k=[M_k\ \ {-M_k}\ \ L_k]=[\Gamma_k\ \ L_k]Ck​=[Mk​  −Mk​  Lk​]=[Γk​  Lk​] with Mk∈MM_k\in\mathcal MMk​∈M, LkL_kLk​ an integer matrix containing a zero column, and BMkBM_kBMk​ diagonal. A trial step is ΔkBc\Delta_kBcΔk​Bc for a column ccc of CkC_kCk​. The step sks_ksk​ is a trial step with xk+sk∈Ωx_k+s_k\in\Omegaxk​+sk​∈Ω, and it must decrease fff whenever some feasible trial step from the core ΔkBΓk\Delta_kB\Gamma_kΔk​BΓk​ does. The iterate moves, xk+1=xk+skx_{k+1}=x_k+s_kxk+1​=xk​+sk​, exactly when f(xk+sk)<f(xk)f(x_k+s_k)<f(x_k)f(xk​+sk​)<f(xk​). The step length Δk\Delta_kΔk​ is multiplied by θ=τw0<1\theta=\tau^{w_0}<1θ=τw0​<1 after an unsuccessful iteration and by some τwi≥1\tau^{w_i}\ge1τwi​≥1 after a successful one. The Strong Hypotheses additionally require f(xk+sk)f(x_k+s_k)f(xk​+sk​) to be no larger than the best feasible core trial value whenever that value is below f(xk)f(x_k)f(xk​).

Formalization targets

Goal: Theorem 3.3

If LΩ(x0)L_\Omega(x_0)LΩ​(x0​) is compact, fff is continuously differentiable, the columns of the CkC_kCk​ are uniformly bounded, Δk→0\Delta_k\to0Δk​→0, and the Strong Hypotheses hold, then

lim⁡k→∞∥q(xk)∥=0.\lim_{k\to\infty}\|q(x_k)\|=0 .k→∞lim​∥q(xk​)∥=0.

Milestones

  • Lemma 2.1, Theorem 2.2, Lemma 2.3: the unconstrained results the paper recalls from Torczon (1997): nonzero steps have length at least ζ∗Δk\zeta_*\Delta_kζ∗​Δk​; the iterates lie on the translated lattice x0+βrLBα−rUBΔ0B Znx_0+\beta^{r_{LB}}\alpha^{-r_{UB}}\Delta_0B\,\mathbb Z^nx0​+βrLB​α−rUB​Δ0​BZn (with τ=β/α\tau=\beta/\alphaτ=β/α); bounded columns give Δk≥ψ∗∥ski∥\Delta_k\ge\psi_*\|s_k^i\|Δk​≥ψ∗​∥ski​∥.
  • Proposition 3.1 (6), (8): ∥q(x)∥≤∥g(x)∥\|q(x)\|\le\|g(x)\|∥q(x)∥≤∥g(x)∥, and xxx is stationary iff q(x)=0q(x)=0q(x)=0.
  • All iterates lie in LΩ(x0)L_\Omega(x_0)LΩ​(x0​) (§4, p. 10).
  • Propositions 4.1–4.3: a descent estimate along short steep directions; a feasible core step with gkTs≤−n−1/2∥qk∥∥s∥g_k^Ts\le-n^{-1/2}\|q_k\|\|s\|gkT​s≤−n−1/2∥qk​∥∥s∥ whenever qk≠0q_k\ne0qk​=0 and the step length is small; a uniform δ\deltaδ (and, under the Strong Hypotheses, a σ\sigmaσ) with f(xk+1)≤f(xk)−σ∥q(xk)∥∥sk∥f(x_{k+1})\le f(x_k)-\sigma\|q(x_k)\|\|s_k\|f(xk+1​)≤f(xk​)−σ∥q(xk​)∥∥sk​∥ when Δk<δ\Delta_k<\deltaΔk​<δ and ∥q(xk)∥>η\|q(x_k)\|>\eta∥q(xk​)∥>η.
  • Corollary 4.4 and Theorem 4.5: lim inf⁡∥q(xk)∥≠0\liminf\|q(x_k)\|\ne0liminf∥q(xk​)∥=0 keeps Δk\Delta_kΔk​ bounded away from zero, whereas compactness alone forces lim inf⁡Δk=0\liminf\Delta_k=0liminfΔk​=0.
  • Theorem 3.2: lim inf⁡k∥q(xk)∥=0\liminf_k\|q(x_k)\|=0liminfk​∥q(xk​)∥=0.

Significance

Theorem 3.2 shows that a method which never computes a gradient still has a subsequence approaching first-order stationarity for the bound constrained problem, even though it cannot enforce a sufficient decrease condition measured by the projected gradient. Theorem 3.3 upgrades this to the whole sequence, so every limit point of the iterates is a KKT point. These results justify the bound constrained variants of coordinate search and Hooke–Jeeves discussed in §5 of the paper, and they are the template for the later theory of pattern search under linear constraints and generating set search.

The results are proved in the paper, and three of the milestones are proved in Torczon (1997). None of them has a machine-checked proof. Formalizing them produces a Lean model of generalized pattern search (patterns, exploratory moves, step-length updates) that later missions on direct search, mesh adaptive direct search or linearly constrained pattern search can reuse, and checks the details the paper handles briefly: the lattice argument, the feasibility of the chosen coordinate step, and uniform constants.

Difficulty

The obvious argument copies the unconstrained proof with ∇f\nabla f∇f replaced by qqq. The step that fails is the existence of a good trial step: in the unconstrained case some pattern direction makes an acute angle with −∇f(xk)-\nabla f(x_k)−∇f(xk​), but near the boundary of Ω\OmegaΩ that direction may leave the feasible region, and a feasible direction may not be a descent direction. For a general pattern no uniform choice exists, and the paper's counterexample in §5.2 shows convergence can fail. The diagonality of BMkBM_kBMk​ is what makes the pattern contain coordinate directions, one of which is both feasible and a descent direction of quality n−1/2∥qk∥n^{-1/2}\|q_k\|n−1/2∥qk​∥ (Proposition 4.2). The second difficulty is Theorem 4.5, which uses no derivatives: it rests on the rationality of τ\tauτ and the integrality of the CkC_kCk​, which confine the iterates to a lattice that meets the compact set LΩ(x0)L_\Omega(x_0)LΩ​(x0​) in finitely many points.

Formalization scope

Points are EuclideanSpace ℝ (Fin n) with the Euclidean norm; the bounds are Fin n → EReal with the hypothesis ℓj<uj\ell_j<u_jℓj​<uj​ for all jjj, so infinite bounds are allowed as in the paper. Paper coordinates 1,…,n1,\dots,n1,…,n are Lean's Fin n. The gradient is Mathlib's gradient f. A run of the method is a structure of sequences (xk,Δk,sk,Mk,Lk)(x_k,\Delta_k,s_k,M_k,L_k)(xk​,Δk​,sk​,Mk​,Lk​) together with a predicate IsGPSRun that encodes §2.1–§2.4 clause by clause; the parameter m≥1m\ge1m≥1 is the number of columns of LkL_kLk​ (the paper's p−2np-2np−2n). τ\tauτ is rational and the CkC_kCk​ are integer matrices, as the lattice argument requires. "min⁡{f(xk+y):… }<f(xk)\min\{f(x_k+y):\dots\}<f(x_k)min{f(xk​+y):…}<f(xk​)" over the finite set of feasible core trial points is encoded as "some feasible core trial step strictly decreases fff". lim inf⁡\liminfliminf statements are encoded with ∃ᶠ, not Filter.liminf. The modulus of continuity ω\omegaω is not formed as a real supremum; Proposition 4.1 takes an explicit radius δ>∥d∥\delta>\|d\|δ>∥d∥.

Standing assumptions and every departure from the page:

  1. Smoothness. The page assumes fff continuously differentiable on LΩ(x0)L_\Omega(x_0)LΩ​(x0​). The mission assumes fff is C1C^1C1 on an open set U⊇ΩU\supseteq\OmegaU⊇Ω. The proofs evaluate ∇f\nabla f∇f along segments to trial points that lie in Ω\OmegaΩ but generally outside LΩ(x0)L_\Omega(x_0)LΩ​(x0​), and LΩ(x0)L_\Omega(x_0)LΩ​(x0​) may have empty interior, so the page's hypothesis does not define what the proofs use.
  2. Strong Hypothesis 3. The page prints f(xk+sk)<min⁡{⋯ }f(x_k+s_k)<\min\{\cdots\}f(xk​+sk​)<min{⋯}. No core step can satisfy the strict form, which would exclude coordinate search, which the paper says satisfies it. The mission uses ≤\le≤, the form of Torczon (1997) and the one the proof of Proposition 4.3 uses. The theorem with ≤\le≤ implies the one with <<<.
  3. The nonemptiness of {w1,…,wL}\{w_1,\dots,w_L\}{w1​,…,wL​} is made explicit.
  4. Proposition 3.1 (7) is omitted: its P(g(x))P(g(x))P(g(x)) is a projected gradient the paper does not define.
  5. Proposition 4.2 quantifies over every step length below νk\nu_kνk​, because νk\nu_kνk​ does not depend on Δk\Delta_kΔk​.

The run predicate is not vacuous: an explicit run of coordinate search on f(x)=xf(x)=xf(x)=x over [0,∞)[0,\infty)[0,∞) satisfies IsGPSRun, the Strong Hypotheses, bounded columns, Δk→0\Delta_k\to0Δk​→0 and compactness of LΩ(x0)L_\Omega(x_0)LΩ​(x0​). That check is proved in Lean without sorry, so the goal cannot be closed by exhibiting an unsatisfiable hypothesis.

A complete development needs the mean value theorem along segments, uniform continuity of ∇f\nabla f∇f near the compact set LΩ(x0)L_\Omega(x_0)LΩ​(x0​), finiteness of a discrete lattice inside a compact set, and elementary facts about the coordinatewise projection. The projection and lattice lemmas are reusable beyond this mission. Proofs of any milestone, alternative proofs, and a general statement of Proposition 3.1 for closed convex Ω\OmegaΩ are welcome.

Selected references

  • R. M. Lewis and V. Torczon, Pattern Search Algorithms for Bound Constrained Minimization, ICASE Report No. 96-20 (NASA CR-198306), 1996; SIAM J. Optim. 9(4):1082–1099, 1999. https://doi.org/10.1137/S1052623496300507
  • V. Torczon, On the Convergence of Pattern Search Algorithms, SIAM J. Optim. 7(1):1–25, 1997. https://doi.org/10.1137/S1052623493250780
  • P. H. Calamai and J. J. Moré, Projected Gradient Methods for Linearly Constrained Problems, Math. Program. 39:93–116, 1987. https://doi.org/10.1007/BF02592073
  • A. R. Conn, N. I. M. Gould and P. L. Toint, Global Convergence of a Class of Trust Region Algorithms for Optimization with Simple Bounds, SIAM J. Numer. Anal. 25(2):433–460, 1988. https://doi.org/10.1137/0725029
  • R. Hooke and T. A. Jeeves, "Direct Search" Solution of Numerical and Statistical Problems, J. ACM 8(2):212–229, 1961. https://doi.org/10.1145/321062.321069
16 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Advance Demand Information, Price Discrimination, and Preorder Strategies: When Preorder Profit Increases with Demand CorrelationResearch Paper

Motivation

Firms that sell new products (consoles, books, films) often take preorders before release. A preorder serves two purposes at once. It lets the firm charge early adopters a different price from later buyers, a form of price discrimination, and the number of preorders is advance demand information: an early signal of how large regular-season demand will be. Li and Zhang (MSOM 15(1), 2013) ask whether better advance information always helps a seller who runs a preorder, when consumers are strategic and anticipate the seller's stocking decision. Their answer is no. The second-period stocking decision improves, but the preorder price can fall. Whether the net effect is positive depends on the low-type margin and the size of the early-adopter segment.

This mission formalizes that answer, §4 of the paper: the preorder profit as a function of the demand correlation ρ\rhoρ.

Setting

A seller sells a perishable product over two periods. High-type consumers, with valuation vHv_HvH​, arrive in the first period and may preorder at price p1p_1p1​. Low-type consumers, with valuation vL<vHv_L < v_HvL​<vH​, arrive in the second period, when the price is p2p_2p2​. A high type who waits values the product at δvH\delta v_HδvH​, where δ≤1\delta \le 1δ≤1 and δvH>vL\delta v_H > v_LδvH​>vL​. The unit cost is ccc, with 0<c<vL0 < c < v_L0<c<vL​. Unsold units have no salvage value and unmet demand carries no penalty. Write Δ=δvH−vL\Delta = \delta v_H - v_LΔ=δvH​−vL​.

The demands are jointly normal with correlation ρ∈[0,1)\rho \in [0,1)ρ∈[0,1). The high-type demand has mean μH\mu_HμH​, and XXX denotes its standardization, a standard normal variable. The low-type demand has mean μL\mu_LμL​, standard deviation σL\sigma_LσL​ and λL=μL/σL\lambda_L = \mu_L/\sigma_LλL​=μL​/σL​. Given X=xX = xX=x, the updated low-type demand X~L(x)\tilde X_L(x)X~L​(x) is normal with mean μ~L(x)=μL+ρσLx\tilde\mu_L(x) = \mu_L + \rho\sigma_L xμ~​L​(x)=μL​+ρσL​x and standard deviation σ~L=σL1−ρ2\tilde\sigma_L = \sigma_L\sqrt{1-\rho^2}σ~L​=σL​1−ρ2​. Φ\PhiΦ and ϕ\phiϕ are the standard normal distribution function and density, and zLz_LzL​ solves Φ(zL)=(vL−c)/vL\Phi(z_L) = (v_L - c)/v_LΦ(zL​)=(vL​−c)/vL​.

In the second period the seller charges p2=vLp_2 = v_Lp2​=vL​ and solves a newsvendor problem. It orders

Q(x)=μ~L(x)+zLσ~L(1)Q(x) = \tilde\mu_L(x) + z_L\tilde\sigma_L \qquad (1)Q(x)=μ~​L​(x)+zL​σ~L​(1)

and earns ΠL(x)=(vL−c)(μL+ρσLx)−vLϕ(zL)σL1−ρ2\Pi_L(x) = (v_L - c)(\mu_L + \rho\sigma_L x) - v_L\phi(z_L)\sigma_L\sqrt{1-\rho^2}ΠL​(x)=(vL​−c)(μL​+ρσL​x)−vL​ϕ(zL​)σL​1−ρ2​ (2). A waiting high type believes half of the remaining consumers will be served before her, so her belief of product availability is

ξ(ρ)=E[Pr⁡(X~L(X)2<Q(X))].(3)\xi(\rho) = \mathbb E\Big[\Pr\Big(\tfrac{\tilde X_L(X)}{2} < Q(X)\Big)\Big]. \qquad (3)ξ(ρ)=E[Pr(2X~L​(X)​<Q(X))].(3)

In the rational-expectations equilibrium every high type preorders at p1=vH−Δξp_1 = v_H - \Delta\xip1​=vH​−Δξ. The preorder profit is

Πp(ρ)=(vH−Δξ(ρ)−c)μH+ΠL(0).(4)\Pi^p(\rho) = (v_H - \Delta\xi(\rho) - c)\mu_H + \Pi_L(0). \qquad (4)Πp(ρ)=(vH​−Δξ(ρ)−c)μH​+ΠL​(0).(4)

The threshold is

μ~(ρ)=−vLϕ(zL)σL2ΔzL ϕ(2zL1−ρ2+λL).(6)\tilde\mu(\rho) = -\frac{v_L\phi(z_L)\sigma_L}{2\Delta z_L\,\phi\big(2z_L\sqrt{1-\rho^2} + \lambda_L\big)}. \qquad (6)μ~​(ρ)=−2ΔzL​ϕ(2zL​1−ρ2​+λL​)vL​ϕ(zL​)σL​​.(6)

Formalization targets

Goal: PROPOSITION 2

(i) c<vL<2c: Πp strictly increases on every interval where μH<μ~(ρ),and strictly decreases on every interval where μH≥μ~(ρ);(ii) vL≥2c: Πp strictly increases on [0,1).\begin{aligned} &\text{(i) } c < v_L < 2c:\ \Pi^p \text{ strictly increases on every interval where } \mu_H < \tilde\mu(\rho),\\ &\qquad\text{and strictly decreases on every interval where } \mu_H \ge \tilde\mu(\rho);\\ &\text{(ii) } v_L \ge 2c:\ \Pi^p \text{ strictly increases on } [0,1). \end{aligned}​(i) c<vL​<2c: Πp strictly increases on every interval where μH​<μ~​(ρ),and strictly decreases on every interval where μH​≥μ~​(ρ);(ii) vL​≥2c: Πp strictly increases on [0,1).​

Milestones

  1. (1)–(2): Q(x)Q(x)Q(x) is the unique maximizer of E[vLmin⁡(Q,X~L(x))−cQ]\mathbb E[v_L\min(Q,\tilde X_L(x)) - cQ]E[vL​min(Q,X~L​(x))−cQ], and its value is ΠL(x)\Pi_L(x)ΠL​(x).
  2. (3): ξ(ρ)=E[Φ((λL+ρX)/1−ρ2+2zL)]\xi(\rho) = \mathbb E\big[\Phi\big((\lambda_L + \rho X)/\sqrt{1-\rho^2} + 2z_L\big)\big]ξ(ρ)=E[Φ((λL​+ρX)/1−ρ2​+2zL​)].
  3. LEMMA 1(i): if c<vL<2cc < v_L < 2cc<vL​<2c, then zL<0z_L < 0zL​<0 and ξ\xiξ is strictly increasing in ρ\rhoρ.
  4. LEMMA 1(ii): if vL≥2cv_L \ge 2cvL​≥2c, then zL≥0z_L \ge 0zL​≥0 and ξ\xiξ is non-increasing in ρ\rhoρ, strictly so when vL>2cv_L > 2cvL​>2c.
  5. After (5): ddρΠL(0)=vLϕ(zL)σL ρ/1−ρ2>0\dfrac{d}{d\rho}\Pi_L(0) = v_L\phi(z_L)\sigma_L\,\rho/\sqrt{1-\rho^2} > 0dρd​ΠL​(0)=vL​ϕ(zL​)σL​ρ/1−ρ2​>0 for ρ∈(0,1)\rho \in (0,1)ρ∈(0,1).
  6. PROPOSITION 2(i), pointwise: for ρ∈(0,1)\rho \in (0,1)ρ∈(0,1), dΠp/dρ>0  ⟺  μH<μ~(ρ)d\Pi^p/d\rho > 0 \iff \mu_H < \tilde\mu(\rho)dΠp/dρ>0⟺μH​<μ~​(ρ) and dΠp/dρ<0  ⟺  μH>μ~(ρ)d\Pi^p/d\rho < 0 \iff \mu_H > \tilde\mu(\rho)dΠp/dρ<0⟺μH​>μ~​(ρ).
  7. LEMMA 2(i): if −λL/2<zL<0-\lambda_L/2 < z_L < 0−λL​/2<zL​<0, then μ~\tilde\muμ~​ is strictly increasing in ρ\rhoρ.
  8. LEMMA 2(ii): if zL≤−λL/2z_L \le -\lambda_L/2zL​≤−λL​/2, then μ~\tilde\muμ~​ is quasi-convex in ρ\rhoρ.

Significance

The proposition splits the value of advance demand information into two effects with opposite signs. Better information always raises the second-period profit (milestone 5). Its effect on the preorder price depends on the margin. When vL<2cv_L < 2cvL​<2c, the seller stocks below the conditional mean. A more precise forecast then raises the stock and the availability ξ\xiξ, and waiting becomes more attractive, which lowers the preorder price. The threshold μ~(ρ)\tilde\mu(\rho)μ~​(ρ) says which effect wins, and LEMMA 2 describes its shape. This is the basis for the paper's later comparisons of preorder, price-guarantee and no-preorder strategies.

The paper states these results and leaves the proofs to an online appendix. None of them has a machine-checked proof. A complete development would also give reusable facts about normal laws: the expectation E[Φ(a+bX)]\mathbb E[\Phi(a + bX)]E[Φ(a+bX)] for standard normal XXX, the normal newsvendor solution with its closed-form optimal profit, and derivatives of Gaussian integrals with respect to a correlation parameter.

Difficulty

The model is explicit, so the difficulty is not in modelling. It is in turning the two expectations into closed forms and differentiating them. The availability ξ\xiξ is an integral over XXX of a normal probability whose mean and variance both move with ρ\rhoρ. The expected newsvendor profit involves E[min⁡(Q,Y)]\mathbb E[\min(Q, Y)]E[min(Q,Y)] for a normal YYY. Neither closed form is in Mathlib, and neither is a derivative in ρ\rhoρ of a Gaussian integral. The obvious route, differentiating under the integral sign in (3), needs domination estimates that are uniform in ρ\rhoρ near each point, and these degenerate as ρ→1\rho \to 1ρ→1.

Signs are the second difficulty. zLz_LzL​ changes sign at vL=2cv_L = 2cvL​=2c, μ~\tilde\muμ~​ carries a leading minus and divides by zLz_LzL​, and the derivative of Πp\Pi^pΠp vanishes at ρ=0\rho = 0ρ=0 and wherever μ~(ρ)=μH\tilde\mu(\rho) = \mu_Hμ~​(ρ)=μH​. Strict monotonicity on an interval has to be recovered from a derivative that is positive except at finitely many points.

Formalization scope

Everything lives in the namespace PreorderADI.Correlation. A structure Params holds vH,vL,c,δ,μH,μL,σL,zLv_H, v_L, c, \delta, \mu_H, \mu_L, \sigma_L, z_LvH​,vL​,c,δ,μH​,μL​,σL​,zL​. The predicate Params.Standing records the model's assumptions: vH>vLv_H > v_LvH​>vL​, c<vLc < v_Lc<vL​, δ≤1\delta \le 1δ≤1 and δvH>vL\delta v_H > v_LδvH​>vL​, together with Φ(zL)=(vL−c)/vL\Phi(z_L) = (v_L-c)/v_LΦ(zL​)=(vL​−c)/vL​. σH\sigma_HσH​ is omitted because nothing in §4 uses it after standardization. Φ\PhiΦ is ProbabilityTheory.cdf (gaussianReal 0 1) and ϕ\phiϕ is gaussianPDFReal 0 1. The normal law with mean mmm and standard deviation sss is gaussianReal m (s^2).

The formalization commits to the following conventions and additions:

  • Added hypotheses. Four hypotheses are added to the page's assumptions:
    • c>0c > 0c>0, so that zLz_LzL​ exists;
    • σL>0\sigma_L > 0σL​>0, so that the conditional law is a genuine normal law;
    • μL>0\mu_L > 0μL​>0, so that λL>0\lambda_L > 0λL​>0, as LEMMA 2 presupposes;
    • μH>0\mu_H > 0μH​>0, which PROPOSITION 2(ii) needs.
  • zLz_LzL​. zLz_LzL​ is a parameter pinned down by Φ(zL)=(vL−c)/vL\Phi(z_L) = (v_L-c)/v_LΦ(zL​)=(vL​−c)/vL​, not an inverse function with junk values.
  • Range of ρ\rhoρ. ρ\rhoρ ranges over [0,1)[0,1)[0,1), the paper's "we will focus on ρ≥0\rho \ge 0ρ≥0" together with ρ<1\rho < 1ρ<1. Derivative statements use (0,1)(0,1)(0,1).
  • ξ\xiξ and Πp\Pi^pΠp. ξ\xiξ is defined as the first expression of (3), the expected probability, so that no closed form is assumed. Πp\Pi^pΠp is defined by (4). PROPOSITION 1, which derives (4) as the unique equilibrium profit, is not formalized: the paper defines the equilibrium only through conditions that already assume every high type preorders.
  • Monotonicity. "Increases in ρ\rhoρ when μH<μ~(ρ)\mu_H < \tilde\mu(\rho)μH​<μ~​(ρ)" is formalized as strict monotonicity on every order-connected I⊆[0,1)I \subseteq [0,1)I⊆[0,1) on which the condition holds. "Decreasing" in LEMMA 1(ii) is non-strict, since ξ\xiξ is constant when vL=2cv_L = 2cvL​=2c. Quasi-convexity is Mathlib's QuasiconvexOn.
  • The ε_v sentence is omitted. PROPOSITION 2(i) also claims that some εv>0\varepsilon_v > 0εv​>0 makes Πp\Pi^pΠp always decrease when vL<c+εvv_L < c + \varepsilon_vvL​<c+εv​. That claim is false in the paper's own model. As vL↓cv_L \downarrow cvL​↓c, μ~(ρ)→∞\tilde\mu(\rho) \to \inftyμ~​(ρ)→∞ for ρ\rhoρ below roughly 3/2\sqrt 3/23​/2, so Πp\Pi^pΠp increases there for every fixed μH\mu_HμH​. The paper's Figure 1 shows the same behaviour.
  • Out of scope. §5 rests on an approximation that treats normal demands as nonnegative, so it is excluded. §§6–7 depend on models given only in the online appendix and are excluded too.

A statement about the closed form Φ(λL+2zL1−ρ2)\Phi(\lambda_L + 2z_L\sqrt{1-\rho^2})Φ(λL​+2zL​1−ρ2​) in place of ξ\xiξ would make LEMMA 1 a one-line monotonicity fact. So would a definition of Πp\Pi^pΠp that bypasses (3). The definitions rule both out.

Welcome contributions include proofs of the milestones, general Mathlib-style lemmas on Gaussian expectations of Φ\PhiΦ and of min⁡(Q,Y)\min(Q, Y)min(Q,Y), and a formalization of PROPOSITION 1 from conditions (i)–(v).

Selected references

  • C. Li and F. Zhang, Advance Demand Information, Price Discrimination, and Preorder Strategies, Manufacturing & Service Operations Management 15(1):57–71, 2013. https://doi.org/10.1287/msom.1120.0398
  • G. P. Cachon and R. Swinney, Purchasing, Pricing, and Quick Response in the Presence of Strategic Consumers, Management Science 55(3):497–511, 2009. https://doi.org/10.1287/mnsc.1080.0948
  • X. Su and F. Zhang, On the Value of Commitment and Availability Guarantees When Selling to Strategic Consumers, Management Science 55(5):713–726, 2009. https://doi.org/10.1287/mnsc.1080.0967
10 thms4 active usersReviewed
🏆Completed
Convex OptimizationNumerical AnalysisOperations Research+1·Captain: mikedeng1

Golden Ratio Algorithms for Variational Inequalities I: The Golden Ratio Algorithm with a Fixed Step Converges to a Solution of a Monotone Variational InequalityResearch Paper

Motivation

A monotone variational inequality asks for a point at which a monotone operator and a convex function are in equilibrium. It unifies convex minimization (where FFF is a gradient), convex–concave saddle-point problems (where FFF is the skew gradient of a Lagrangian), Nash equilibria of monotone games, and complementarity problems in economics and traffic assignment. In operations research, first-order methods for such problems are the workhorse behind large-scale saddle-point formulations of linear and conic programs, where only one operator evaluation and one projection or proximal step per iteration are affordable.

The classical method for Lipschitz monotone operators is Korpelevich's extragradient method (1976) and its proximal variant, Tseng's forward–backward–forward method (2000); both need two evaluations of FFF per iteration. The reflected projected gradient method of Malitsky (SIAM J. Optim., 2015) uses one evaluation of FFF but evaluates it at 2zk−zk−12z^k-z^{k-1}2zk−zk−1, a point that may lie outside the domain of ggg. Malitsky's Golden Ratio Algorithm (GRAAL), introduced in Golden Ratio Algorithms for Variational Inequalities (preprint 2018; published in Mathematical Programming, doi:10.1007/s10107-019-01416-w), uses one evaluation of FFF, always at a feasible point, and one proximal step per iteration. Its fixed-step version, Theorem 1 of that paper, is the subject of this mission; the explicit, adaptive-step version (Theorem 2) is a separate mission of this series.

Setting

Let E\mathcal EE be a finite-dimensional real inner product space with inner product ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle⟨⋅,⋅⟩ and norm ∥⋅∥=⟨⋅,⋅⟩\|\cdot\| = \sqrt{\langle\cdot,\cdot\rangle}∥⋅∥=⟨⋅,⋅⟩​. Let g:E→(−∞,+∞]g:\mathcal E\to(-\infty,+\infty]g:E→(−∞,+∞] and write dom⁡g={x:g(x)<+∞}\operatorname{dom} g = \{x : g(x)<+\infty\}domg={x:g(x)<+∞}. Let F:dom⁡g→EF:\operatorname{dom} g\to\mathcal EF:domg→E. The variational inequality is

find z∗∈Esuch that⟨F(z∗),z−z∗⟩+g(z)−g(z∗) ≥ 0∀z∈E.(1)\text{find } z^*\in\mathcal E \quad\text{such that}\quad \langle F(z^*), z-z^*\rangle + g(z)-g(z^*)\ \ge\ 0\qquad \forall z\in\mathcal E. \tag{1}find z∗∈Esuch that⟨F(z∗),z−z∗⟩+g(z)−g(z∗) ≥ 0∀z∈E.(1)

The standing assumptions are:

  • (C1) the solution set SSS of (1) is nonempty;
  • (C2) ggg is proper (never −∞-\infty−∞, finite somewhere), convex, and lower semicontinuous;
  • (C3) FFF is monotone: ⟨F(u)−F(v),u−v⟩≥0\langle F(u)-F(v),u-v\rangle\ge0⟨F(u)−F(v),u−v⟩≥0 for all u,v∈dom⁡gu,v\in\operatorname{dom} gu,v∈domg.

The proximal operator of ggg is prox⁡g(z)=argmin⁡x{g(x)+12∥x−z∥2}\operatorname{prox}_g(z) = \operatorname{argmin}_x\{g(x)+\tfrac12\|x-z\|^2\}proxg​(z)=argminx​{g(x)+21​∥x−z∥2}. Let φ=5+12\varphi = \frac{\sqrt5+1}{2}φ=25​+1​ be the golden ratio, so that φ2=1+φ\varphi^2 = 1+\varphiφ2=1+φ. For a step λ>0\lambda>0λ>0 and arbitrary starting points z1,zˉ0∈Ez^1,\bar z^0\in\mathcal Ez1,zˉ0∈E, the Golden Ratio Algorithm generates, for k≥1k\ge1k≥1,

zˉk=(φ−1)zk+zˉk−1φ,zk+1=prox⁡λg(zˉk−λF(zk)).(6)\bar z^k = \frac{(\varphi-1)z^k + \bar z^{k-1}}{\varphi},\qquad z^{k+1} = \operatorname{prox}_{\lambda g}\big(\bar z^k - \lambda F(z^k)\big). \tag{6}zˉk=φ(φ−1)zk+zˉk−1​,zk+1=proxλg​(zˉk−λF(zk)).(6)

The first line is a convex combination of the newest iterate and the previous average; the second is a forward–backward step taken from the average rather than from zkz^kzk.

Formalization targets

Goal: Theorem 1

If FFF is LLL-Lipschitz on dom⁡g\operatorname{dom} gdomg (L>0L>0L>0), (C1)–(C3) hold, and λ∈(0,φ2L]\lambda\in\big(0,\frac{\varphi}{2L}\big]λ∈(0,2Lφ​], then there is z∗∈Sz^*\in Sz∗∈S with

zk→z∗andzˉk→z∗(k→∞).z^k\to z^*\qquad\text{and}\qquad \bar z^k\to z^*\qquad(k\to\infty).zk→z∗andzˉk→z∗(k→∞).

Both sequences converge, to one and the same solution. The goal is stated with the paper's exact step range; no rate is claimed, as the paper claims none.

Milestones

  1. Eq. (4), the prox-inequality: for proper convex lsc ggg,
xˉ=prox⁡gz  ⟺  ⟨xˉ−z,x−xˉ⟩≥g(xˉ)−g(x)∀x∈E.\bar x = \operatorname{prox}_g z \iff \langle\bar x - z, x-\bar x\rangle\ge g(\bar x)-g(x)\quad\forall x\in\mathcal E.xˉ=proxg​z⟺⟨xˉ−z,x−xˉ⟩≥g(xˉ)−g(x)∀x∈E.
  1. Eq. (12), an identity using only the averaging step of (6): for every point z∗z^*z∗,
∥zk+1−z∗∥2=(1+φ)∥zˉk+1−z∗∥2−φ∥zˉk−z∗∥2+1φ∥zk+1−zˉk∥2.\|z^{k+1}-z^*\|^2 = (1+\varphi)\|\bar z^{k+1}-z^*\|^2-\varphi\|\bar z^k-z^*\|^2+\tfrac1\varphi\|z^{k+1}-\bar z^k\|^2 .∥zk+1−z∗∥2=(1+φ)∥zˉk+1−z∗∥2−φ∥zˉk−z∗∥2+φ1​∥zk+1−zˉk∥2.
  1. Eq. (14), the energy inequality: for z∗∈Sz^*\in Sz∗∈S and k≥2k\ge2k≥2,
(1+φ)∥zˉk+1−z∗∥2+φ2∥zk+1−zk∥2≤(1+φ)∥zˉk−z∗∥2+φ2∥zk−zk−1∥2−φ∥zk−zˉk∥2.(1+\varphi)\|\bar z^{k+1}-z^*\|^2+\tfrac\varphi2\|z^{k+1}-z^k\|^2\le(1+\varphi)\|\bar z^k-z^*\|^2+\tfrac\varphi2\|z^k-z^{k-1}\|^2-\varphi\|z^k-\bar z^k\|^2 .(1+φ)∥zˉk+1−z∗∥2+2φ​∥zk+1−zk∥2≤(1+φ)∥zˉk−z∗∥2+2φ​∥zk−zk−1∥2−φ∥zk−zˉk∥2.
  1. Lemma 1 (Bauschke–Combettes, Theorem 5.5): a sequence that is Fejér monotone with respect to a nonempty set CCC and whose cluster points all lie in CCC converges to a point of CCC.

Significance

The result. Theorem 1 shows that monotone variational inequalities with a Lipschitz operator can be solved with one operator evaluation and one proximal step per iteration, with FFF evaluated only at points of dom⁡g\operatorname{dom} gdomg, where it is defined. This matters when FFF is expensive (a large matrix–vector product, a simulation) or undefined outside the feasible set (for instance an operator involving log⁡x\log xlogx on the positive orthant). The analysis also explains the constant: the averaging weight φ\varphiφ is the largest ccc with 1/c≥c−11/c\ge c-11/c≥c−1, and the step bound φ/(2L)\varphi/(2L)φ/(2L) follows from it. The fixed-step analysis is the template for the explicit, adaptive-step EGRAAL of the same paper (Theorem 2), which needs only local Lipschitz continuity of FFF.

The formalization. The theorem has a published proof, and no machine-checked version of it or of GRAAL is known. Mathlib contains the golden ratio, Lipschitz conditions, lower semicontinuity and cluster points, but no proximal operator of an extended-valued function, no prox-inequality and no Fejér-monotonicity convergence lemma. This mission produces those pieces and a complete convergence proof for a first-order VI method, which are reusable for projected gradient, forward–backward, extragradient and reflected-gradient analyses.

Difficulty

The naive approach, to show that ∥zk−z∗∥\|z^k-z^*\|∥zk−z∗∥ decreases, fails: GRAAL is not Fejér monotone in zkz^kzk, because the forward step is taken from the average zˉk\bar z^kzˉk and uses F(zk)F(z^k)F(zk) rather than FFF at the new point. The quantity that decreases is an energy mixing ∥zˉk−z∗∥2\|\bar z^k-z^*\|^2∥zˉk−z∗∥2 with the successive difference ∥zk−zk−1∥2\|z^k-z^{k-1}\|^2∥zk−zk−1∥2, and both the averaging identity and the Lipschitz estimate must produce matching coefficients for the cross terms to cancel. The energy inequality alone gives only boundedness and vanishing successive differences; convergence of the whole sequence, and the fact that the limit solves (1) when ggg is merely lower semicontinuous and extended-valued, is a separate step. On the formal side, ggg takes the value +∞+\infty+∞, so the prox-inequality and the variational inequality must be handled in extended arithmetic without letting ∞−∞\infty-\infty∞−∞ decide anything.

Formalization scope

  • E\mathcal EE is a type E with [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E].
  • ggg is E → EReal. (C2) is IsProperConvexLSC g: never ⊥\bot⊥, somewhere finite, convex epigraph {(x,t)∈E×R:g(x)≤t}\{(x,t)\in E\times\mathbb R: g(x)\le t\}{(x,t)∈E×R:g(x)≤t}, and LowerSemicontinuous g on all of E. dom⁡g\operatorname{dom} gdomg is effDom g = {x | g x ≠ ⊤}.
  • FFF is a total function E → E; monotonicity and the Lipschitz bound ∥F(u)−F(v)∥≤L∥u−v∥\|F(u)-F(v)\|\le L\|u-v\|∥F(u)−F(v)∥≤L∥u−v∥ are required on effDom g only. The step range is 0 < λ, λ ≤ φ / (2 * L) with 0 < L and φ = Real.goldenRatio.
  • SSS is solutionSet g F: points of effDom g satisfying (1) for every z∈Ez\in Ez∈E, evaluated in EReal.
  • The proximal step is the argmin predicate IsProxPoint (fun x => λ * g x) w z⁺, not a choice function, so no junk value is involved. A run of (6) is IsGRAALRun g F λ z zbar on sequences ℕ → E indexed as in the paper: z1z^1z1 and zˉ0\bar z^0zˉ0 are free and the entry z0z^0z0 is unused.
  • The conclusion is ∃ zs ∈ solutionSet g F, Tendsto z atTop (𝓝 zs) ∧ Tendsto zbar atTop (𝓝 zs).

The hypotheses of the goal are jointly satisfiable, so the theorem is not vacuous: for g≡0g\equiv0g≡0 and F≡0F\equiv0F≡0 every point is a solution and constant sequences form a run of (6); a formalization under which IsGRAALRun has no instances, or in which SSS may be empty, is ruled out. Two hypotheses are added to printed statements and flagged in their notes: C≠∅C\neq\emptysetC=∅ in Lemma 1, which is false without it, and z1∈dom⁡gz^1\in\operatorname{dom} gz1∈domg in Eq. (14), needed at k=2k=2k=2 because the paper's FFF is only defined on dom⁡g\operatorname{dom} gdomg.

Welcome contributions: existence and uniqueness of the proximal point of a proper convex lsc function in finite dimensions; the prox-inequality; Fejér-monotonicity lemmas; the energy inequality; and the final convergence argument. The prox and Fejér infrastructure is independent of the golden ratio and is shared with the second mission of this series.

Selected references

  • Y. Malitsky, Golden Ratio Algorithms for Variational Inequalities, preprint, Optimization Online 6598, 2018. https://optimization-online.org/wp-content/uploads/2018/05/6598.pdf ; published in Mathematical Programming. https://doi.org/10.1007/s10107-019-01416-w
  • H. H. Bauschke, P. L. Combettes, Convex Analysis and Monotone Operator Theory in Hilbert Spaces, Springer, 2011 (2nd ed. 2017). https://doi.org/10.1007/978-3-319-48311-5
  • G. M. Korpelevich, The extragradient method for finding saddle points and other problems, Ekonomika i Matematicheskie Metody 12 (1976) 747–756.
  • P. Tseng, A modified forward–backward splitting method for maximal monotone mappings, SIAM J. Control Optim. 38 (2000) 431–446. https://doi.org/10.1137/S0363012998338806
  • Y. Malitsky, Projected reflected gradient methods for monotone variational inequalities, SIAM J. Optim. 25 (2015) 502–520. https://doi.org/10.1137/14097238X
8 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimal TransportOptimization·Captain: mikedeng1

Scenario Reduction Algorithms in Stochastic Programming I: Fast Forward Selection Realizes the Forward Selection PrincipleResearch Paper

Why reduce scenarios

Multistage and two-stage stochastic programs are solved numerically on a discrete probability distribution: a finite set of scenarios ω1,…,ωN\omega_1,\dots,\omega_Nω1​,…,ωN​ with probabilities p1,…,pNp_1,\dots,p_Np1​,…,pN​. The size of the resulting optimization problem grows with NNN, and scenario sets produced by sampling or by historical data are often far too large to be solved directly. Scenario reduction replaces the original distribution by one supported on a small subset of the scenarios, chosen so that the optimal value and solutions of the stochastic program change as little as possible.

Stability theory for stochastic programs (Rachev and Römisch, 2002) shows that this change is controlled by a probability distance of Fortet–Mourier type, which for discrete measures is bounded by the value of a transportation problem. Dupačová, Gröwe-Kuska and Römisch (2003) turned this into a combinatorial problem and proposed greedy backward and forward heuristics. Heitsch and Römisch (2003) gave faster versions of both heuristics; the forward version, fast forward selection, is the subject of this mission. Implementations of these reduction heuristics are distributed with the GAMS modelling system (SCENRED) and are used in energy and finance applications of stochastic programming.

Setting

Let EEE be a finite-dimensional real vector space with a norm ∥⋅∥\|\cdot\|∥⋅∥, let ω0∈E\omega_0\in Eω0​∈E, and let h:[0,∞)→[0,∞)h:[0,\infty)\to[0,\infty)h:[0,∞)→[0,∞) be continuous and nondecreasing with h(0)=0h(0)=0h(0)=0. The cost between two points of EEE is

c(ω,ω~)=max⁡{1, h(∥ω−ω0∥), h(∥ω~−ω0∥)} ∥ω−ω~∥.c(\omega,\tilde\omega)=\max\bigl\{1,\,h(\|\omega-\omega_0\|),\,h(\|\tilde\omega-\omega_0\|)\bigr\}\,\|\omega-\tilde\omega\| .c(ω,ω~)=max{1,h(∥ω−ω0​∥),h(∥ω~−ω0​∥)}∥ω−ω~∥.

It is nonnegative, symmetric, and zero on the diagonal.

The original distribution is P=∑i=1NpiδωiP=\sum_{i=1}^N p_i\delta_{\omega_i}P=∑i=1N​pi​δωi​​ with pi>0p_i>0pi​>0 and ∑ipi=1\sum_i p_i=1∑i​pi​=1. Deleting the scenarios in a set J⊂{1,…,N}J\subset\{1,\dots,N\}J⊂{1,…,N} and assigning new weights qj≥0q_j\ge 0qj​≥0, ∑j∉Jqj=1\sum_{j\notin J}q_j=1∑j∈/J​qj​=1, to the kept ones gives Q=∑j∉JqjδωjQ=\sum_{j\notin J}q_j\delta_{\omega_j}Q=∑j∈/J​qj​δωj​​. The distance D(J;q)D(J;q)D(J;q) between PPP and QQQ is the optimal value of the transportation problem

D(J;q)=min⁡{∑i=1N∑j∉Jc(ωi,ωj)ηij: ηij≥0, ∑iηij=qj, ∑j∉Jηij=pi}.D(J;q)=\min\Bigl\{\sum_{i=1}^N\sum_{j\notin J}c(\omega_i,\omega_j)\eta_{ij}:\ \eta_{ij}\ge 0,\ \sum_{i}\eta_{ij}=q_j,\ \sum_{j\notin J}\eta_{ij}=p_i\Bigr\}.D(J;q)=min{i=1∑N​j∈/J∑​c(ωi​,ωj​)ηij​: ηij​≥0, i∑​ηij​=qj​, j∈/J∑​ηij​=pi​}.

The reduction cost of deleting JJJ is

DJ=∑i∈Jpimin⁡j∉Jc(ωi,ωj),D_J=\sum_{i\in J}p_i\min_{j\notin J}c(\omega_i,\omega_j),DJ​=i∈J∑​pi​j∈/Jmin​c(ωi​,ωj​),

and the optimal reduction problem (8) minimizes DJD_JDJ​ over all JJJ with #J=N−n\#J=N-n#J=N−n, where nnn is the number of scenarios to keep.

Forward selection builds the kept set greedily. With J[0]={1,…,N}J^{[0]}=\{1,\dots,N\}J[0]={1,…,N} and J[i]={1,…,N}∖{u1,…,ui}J^{[i]}=\{1,\dots,N\}\setminus\{u_1,\dots,u_i\}J[i]={1,…,N}∖{u1​,…,ui​}, it chooses

ui∈arg⁡min⁡u∈J[i−1]DJ[i−1]∖{u},i=1,…,n.(16)u_i\in\arg\min_{u\in J^{[i-1]}}D_{J^{[i-1]}\setminus\{u\}},\qquad i=1,\dots,n. \tag{16}ui​∈argu∈J[i−1]min​DJ[i−1]∖{u}​,i=1,…,n.(16)

Fast forward selection (Algorithm 2.4) computes the same choices through an updated cost matrix: cku[1]=c(ωk,ωu)c^{[1]}_{ku}=c(\omega_k,\omega_u)cku[1]​=c(ωk​,ωu​), cku[i]=min⁡{cku[i−1],ckui−1[i−1]}c^{[i]}_{ku}=\min\{c^{[i-1]}_{ku},c^{[i-1]}_{ku_{i-1}}\}cku[i]​=min{cku[i−1]​,ckui−1​[i−1]​}, zu[i]=∑k∈J[i−1]∖{u}pkcku[i]z^{[i]}_u=\sum_{k\in J^{[i-1]}\setminus\{u\}}p_kc^{[i]}_{ku}zu[i]​=∑k∈J[i−1]∖{u}​pk​cku[i]​, and ui∈arg⁡min⁡u∈J[i−1]zu[i]u_i\in\arg\min_{u\in J^{[i-1]}}z^{[i]}_uui​∈argminu∈J[i−1]​zu[i]​.

Formalization targets

Goal: Theorem 2.5

For 1≤n≤N1\le n\le N1≤n≤N and every run u1,…,unu_1,\dots,u_nu1​,…,un​ of Algorithm 2.4, with any tie-breaking in the arg min,

ui satisfies (16)andzui[i]=DJ[i](i=1,…,n).u_i\ \text{satisfies (16)}\quad\text{and}\quad z^{[i]}_{u_i}=D_{J^{[i]}}\qquad(i=1,\dots,n).ui​ satisfies (16)andzui​[i]​=DJ[i]​(i=1,…,n).

Milestones

  1. Theorem 2.1 (redistribution). For JJJ with at least one kept scenario, DJ=min⁡qD(J;q)D_J=\min_q D(J;q)DJ​=minq​D(J;q), and the minimum is attained at qˉj=pj+∑i∈J, j(i)=jpi\bar q_j=p_j+\sum_{i\in J,\,j(i)=j}p_iqˉ​j​=pj​+∑i∈J,j(i)=j​pi​ for every choice of nearest kept scenarios j(i)j(i)j(i).
  2. Eq. (10). D{1,…,N}∖{u}=∑i=1Npic(ωi,ωu)D_{\{1,\dots,N\}\setminus\{u\}}=\sum_{i=1}^Np_ic(\omega_i,\omega_u)D{1,…,N}∖{u}​=∑i=1N​pi​c(ωi​,ωu​), so (8) with #J=N−1\#J=N-1#J=N−1 is problem (10).
  3. Eq. (12). The sum lblblb of the N−nN-nN−n smallest single-deletion costs plmin⁡j≠lc(ωl,ωj)p_l\min_{j\neq l}c(\omega_l,\omega_j)pl​minj=l​c(ωl​,ωj​), taken in the greedy order (11), is at most DJD_JDJ​ for every JJJ with #J=N−n\#J=N-n#J=N−n.
  4. Optimality condition (p. 191). If each lil_ili​ has a nearest other scenario outside {l1,…,lN−n}∖{li}\{l_1,\dots,l_{N-n}\}\setminus\{l_i\}{l1​,…,lN−n​}∖{li​}, then {l1,…,lN−n}\{l_1,\dots,l_{N-n}\}{l1​,…,lN−n​} solves (8).
  5. Eq. (17), unrolled recursion. For any index sequence, cku[i]=min⁡j∉J[i−1]∖{u}c(ωk,ωj)c^{[i]}_{ku}=\min_{j\notin J^{[i-1]}\setminus\{u\}}c(\omega_k,\omega_j)cku[i]​=minj∈/J[i−1]∖{u}​c(ωk​,ωj​) for u∈J[i−1]u\in J^{[i-1]}u∈J[i−1].
  6. Eq. (17), conclusion. For any index sequence, zu[i]=DJ[i−1]∖{u}z^{[i]}_u=D_{J^{[i-1]}\setminus\{u\}}zu[i]​=DJ[i−1]∖{u}​ for u∈J[i−1]u\in J^{[i-1]}u∈J[i−1].

Significance

Theorem 2.5 certifies that the cheap update of Algorithm 2.4 (one pairwise minimum per matrix entry and step) produces exactly the greedy forward selection defined through the reduction costs, and that the running objective zui[i]z^{[i]}_{u_i}zui​[i]​ is the reduction cost of the scenarios deleted so far. Combined with Theorem 2.1, zui[i]z^{[i]}_{u_i}zui​[i]​ is the optimal transportation distance between PPP and the best measure on the kept scenarios, which is the quantity practitioners monitor to decide how many scenarios to keep. The lower bound (12) and the optimality condition give a posteriori quality certificates for any reduced set.

All results of this mission are proved in the paper or in the works it cites (Dupačová et al., 2003); none is open. To the best of a platform search, none has been machine-checked. The mission provides a verified specification of a widely deployed algorithm, a formal link between a combinatorial set-covering objective and a finite transportation problem, and definitions (reduction cost, transportation plans with a partially free target marginal, greedy runs with arbitrary tie-breaking) reusable by the regular-tree missions of this series and by later scenario-tree construction papers.

Difficulty

The mathematics is elementary; the difficulty is bookkeeping. The recursion for c[i]c^{[i]}c[i] refers to the previous step's column ui−1u_{i-1}ui−1​, which itself was updated, so unrolling it to a minimum over {u,u1,…,ui−1}\{u,u_1,\dots,u_{i-1}\}{u,u1​,…,ui−1​} is an induction on iii in which the index sets J[i]J^{[i]}J[i], the 1-based step counter and the complement structure all move together. The natural first attempt, identifying cku[i]c^{[i]}_{ku}cku[i]​ with the minimum over the complement of J[i]J^{[i]}J[i], is off by one step: the correct set is the complement of J[i−1]∖{u}J^{[i-1]}\setminus\{u\}J[i−1]∖{u}, which contains uuu itself. For Theorem 2.1 the lower bound requires using that c(ωi,ωi)=0c(\omega_i,\omega_i)=0c(ωi​,ωi​)=0 for kept scenarios and that every plan ships all of pip_ipi​ somewhere outside JJJ; the attainment part requires constructing the plan explicitly from the choice j(⋅)j(\cdot)j(⋅), including scenarios for which several kept scenarios are equally near.

Formalization scope

  • Scenarios are ω : Fin N → E with E a finite-dimensional real normed space; the paper's closed set Ω⊂Rs\Omega\subset\mathbb R^sΩ⊂Rs plays no role beyond containing the scenarios and is omitted. Scenarios need not be distinct.
  • hhh is a function ℝ → ℝ with the paper's assumptions imposed on [0,∞)[0,\infty)[0,∞) (IsGrowthFunction); every theorem carries them, together with pi>0p_i>0pi​>0 and ∑ipi=1\sum_ip_i=1∑i​pi​=1.
  • The functions f0f_0f0​, ggg and the stochastic program (1)–(2) that motivate ccc appear in no statement.
  • D(J;q)D(J;q)D(J;q) is the paper's finite transportation problem (p. 188), not the Kantorovich functional on measures. Weights qqq and plans η\etaη are indexed by all of {1,…,N}\{1,\dots,N\}{1,…,N} with entries at deleted indices fixed to 000.
  • DJD_JDJ​ requires a proof that the complement of JJJ is nonempty; minima are Finset.inf', never a real infimum with a default value.
  • Algorithm 2.4 is a relation on sequences u : ℕ → Fin N with 1-based steps. c[i]c^{[i]}c[i] is the printed recursion, extended to all indices; runs are any sequences satisfying the arg-min conditions, so every tie-breaking rule is covered.
  • The paper's standing restriction n<Nn<Nn<N is relaxed to n≤Nn\le Nn≤N in Theorem 2.5; the statement remains true at n=Nn=Nn=N.
  • A trivializing formalization is ruled out: defining c[i]c^{[i]}c[i] or z[i]z^{[i]}z[i] directly as the minimum over the selected set or as DJ[i−1]∖{u}D_{J^{[i-1]}\setminus\{u\}}DJ[i−1]∖{u}​ would make Theorem 2.5 hold by definition, and proving it for one fixed tie-breaking rule would prove less than the paper; neither is done.
  • Proofs of the milestones, alternative proofs of Theorem 2.1 via LP duality, and a verified executable implementation of Algorithm 2.4 are all welcome.

Selected references

  • H. Heitsch, W. Römisch, Scenario Reduction Algorithms in Stochastic Programming, Computational Optimization and Applications 24 (2003), 187–206. https://doi.org/10.1023/A:1021805924152
  • J. Dupačová, N. Gröwe-Kuska, W. Römisch, Scenario reduction in stochastic programming: an approach using probability metrics, Mathematical Programming 95 (2003), 493–511. https://doi.org/10.1007/s10107-002-0331-0
  • S. T. Rachev, W. Römisch, Quantitative stability in stochastic programming: the method of probability metrics, Mathematics of Operations Research 27 (2002), 792–818. https://doi.org/10.1287/moor.27.4.792.304
12 thms3 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Scheduling with Deadlines and Loss Functions: On One Processor, Decreasing Penalty-to-Length Order Is Optimal When No Task Finishes Before Its DeadlineResearch Paper

Motivation

A processor, a machine shop or a single server must work through a set of jobs one at a time, and each job is costly when it is late. Deciding the order is the single-machine sequencing problem, the simplest and most studied model of scheduling theory. Robert McNaughton's 1959 article Scheduling with Deadlines and Loss Functions (Management Science 6(1):1–12) treats it for a computer that must run several tasks, each with a deadline and a loss that grows linearly with the lateness. Its §2 gives the first sufficient condition under which a simple ratio rule is optimal in the presence of deadlines, and shows that interrupting and resuming tasks ("splitting", now called preemption) never helps on one processor.

Timeline.

  • 1956: W. E. Smith, Various optimizers for single-stage production (Naval Research Logistics Quarterly 3), proves that sequencing jobs by non-increasing weight-to-processing-time ratio minimizes the total weighted completion time over non-preemptive sequences.
  • 1959: McNaughton, §2 of the present paper, proves independently that the same ratio order is optimal against all schedules, split or not and with idle time (Theorem 2.3), and extends it to deadlines when no task finishes early in that order (Theorem 2.4). §3 of the same paper gives the "wrap-around" rule for preemptive makespan on identical processors, and §4 the non-preemptive optimality for weighted completion time on several processors.
  • 1977: J. K. Lenstra, A. H. G. Rinnooy Kan and P. Brucker show that minimizing total weighted tardiness on one machine, the general problem of §2, is strongly NP-hard (Annals of Discrete Mathematics 1); this is why §2 gives a sufficient condition and not an algorithm.

Setting

There are mmm tasks (1),…,(m)(1),\dots,(m)(1),…,(m) for a single processor, and the present is time 000. Task (i)(i)(i) takes ai>0a_i > 0ai​>0 units of processing time, has a deadline did_idi​ and a penalty rate pi≥0p_i \ge 0pi​≥0. If (i)(i)(i) is finished at time Ci≤diC_i \le d_iCi​≤di​ there is no loss; otherwise the loss on (i)(i)(i) is pixp_i xpi​x, where x=Ci−dix = C_i - d_ix=Ci​−di​ is the time from the deadline to the completion. Thus the loss on a task completed at time ttt is

ℓi(t)=pimax⁡(0, t−di).\ell_i(t) = p_i \max(0,\ t - d_i).ℓi​(t)=pi​max(0, t−di​).

The ratio of task (i)(i)(i) is ri=pi/air_i = p_i / a_iri​=pi​/ai​.

A task may be split: part of it may run between times 4 and 6 and the remainder between times 8 and 11, and similarly in any finite number of parts. A schedule SSS is therefore a finite list of pieces, each a task together with a start and a stop time. It is feasible when every piece lies in [0,∞)[0,\infty)[0,∞) with start ≤\le≤ stop, no two pieces overlap in time, and the pieces of each task (i)(i)(i) have total length exactly aia_iai​. The completion time Ci(S)C_i(S)Ci​(S) is the latest stop time of a piece of (i)(i)(i), and the total loss is

c(S)=∑i=1mℓi(Ci(S)).c(S) = \sum_{i=1}^{m} \ell_i\bigl(C_i(S)\bigr).c(S)=i=1∑m​ℓi​(Ci​(S)).

For an order σ\sigmaσ of the tasks (σ(k)\sigma(k)σ(k) in position kkk), the sequenced schedule SσS_\sigmaSσ​ runs the tasks without splits and without unused time: σ(k)\sigma(k)σ(k) occupies [∑l<kaσ(l), ∑l≤kaσ(l)]\bigl[\sum_{l<k} a_{\sigma(l)},\ \sum_{l\le k} a_{\sigma(l)}\bigr][∑l<k​aσ(l)​, ∑l≤k​aσ(l)​]. The order is in decreasing rir_iri​ when k≤lk \le lk≤l implies rσ(l)≤rσ(k)r_{\sigma(l)} \le r_{\sigma(k)}rσ(l)​≤rσ(k)​. Finally c∗(S)c^*(S)c∗(S) denotes the total loss of SSS computed as if d1=⋯=dm=0d_1 = \dots = d_m = 0d1​=⋯=dm​=0.

Formalization targets

Goal: Theorem 2.4 (p. 5)

If σ\sigmaσ is in decreasing rir_iri​ and no task finishes before its deadline in SσS_\sigmaSσ​, i.e. di≤Ci(Sσ)d_i \le C_i(S_\sigma)di​≤Ci​(Sσ​) for every iii, then SσS_\sigmaSσ​ is feasible and

c(Sσ)≤c(S′)for every feasible schedule S′.c(S_\sigma) \le c(S') \qquad \text{for every feasible schedule } S'.c(Sσ​)≤c(S′)for every feasible schedule S′.

The competitors S′S'S′ may split tasks and leave the processor idle. The condition is sufficient but not necessary.

Milestones, in attack order

  1. Theorem 2.1 (p. 4): if both (i)(i)(i) and (j)(j)(j) run in the ai+aja_i + a_jai​+aj​ consecutive units of time after a time ttt past both deadlines and ri>rjr_i > r_jri​>rj​, their joint loss is strictly smaller when (i)(i)(i) goes first:
ℓi(t+ai)+ℓj(t+ai+aj)<ℓj(t+aj)+ℓi(t+aj+ai).\ell_i(t+a_i) + \ell_j(t+a_i+a_j) < \ell_j(t+a_j) + \ell_i(t+a_j+a_i).ℓi​(t+ai​)+ℓj​(t+ai​+aj​)<ℓj​(t+aj​)+ℓi​(t+aj​+ai​).
  1. The reduction in the proof of Theorem 2.2 (pp. 4–5): a feasible schedule with more than mmm pieces can be replaced by a feasible one with fewer pieces and no greater loss.
  2. Theorem 2.2 (p. 4): some optimal schedule, optimal among all feasible schedules, splits no task.
  3. Theorem 2.3 (p. 5): if d1=⋯=dm=0d_1 = \dots = d_m = 0d1​=⋯=dm​=0, the sequenced schedule in decreasing rir_iri​ minimizes the total loss over all feasible schedules.
  4. The display of the proof of Theorem 2.4 (p. 6): if no task finishes early in S=SσS = S_\sigmaS=Sσ​, then for every feasible S′S'S′,
c(S′)−c(S)≥c∗(S′)−c∗(S).c(S') - c(S) \ge c^*(S') - c^*(S).c(S′)−c(S)≥c∗(S′)−c∗(S).

Significance

The result. Theorem 2.3 is the ratio rule for total weighted completion time, in its strongest single-machine form: it holds against preemptive schedules and schedules with idle time, not only against permutations. Theorem 2.4 carries the rule over to deadlines and linear tardiness penalties under a checkable condition on one schedule. Since weighted tardiness is strongly NP-hard in general, a condition of this kind is what one can hope for, and the paper's two-step heuristic for general deadlines (p. 6) is built on it. Theorem 2.2, as the paper remarks (p. 6), "does not depend on the linear loss function": it makes non-preemptive scheduling without loss of generality for single-machine objectives of this kind.

Formalizing it. All results of §2 are proved in the paper and are textbook material; none has a machine-checked proof on the platform. The platform's Scheduling Algorithms V mission formalizes the multi-processor results of §§3–4 (via Brucker's textbook), and nothing there states a single-processor ratio rule with deadlines. This mission supplies a single-processor schedule model with splitting, the interchange lemma, the non-preemption theorem and the ratio rule, each over all feasible schedules.

Difficulty

The interchange argument of Theorem 2.1 compares only two schedules that differ in the order of two adjacent tasks. Turning it into optimality against every feasible schedule requires two further steps, and each fails if done naively. First, a competitor may split tasks and leave gaps; the interchange argument does not apply to such schedules, so a separate argument must remove splits without raising any completion time. Second, with deadlines the loss max⁡(0,t−di)\max(0, t - d_i)max(0,t−di​) is not linear in the completion time, so the ratio order is in general not optimal; the obvious attempt to repeat the interchange argument fails as soon as a task can finish before its deadline, since moving such a task later costs nothing. This is why Theorem 2.4 needs its hypothesis that no task finishes early, and why the paper leaves the general case to a heuristic.

Formalization scope

Tasks and positions are the zero-based indices of Fin m; times, lengths, deadlines and penalties are real numbers. A schedule is a List of pieces (task, start, stop), mirroring the public definition SchedulingAlgorithms_ParallelMachines with one processor. Feasibility requires 0≤0 \le0≤ start ≤\le≤ stop, pairwise disjoint pieces, and exact total length aia_iai​ per task; zero-length pieces and unsorted lists are allowed. The completion time is the maximum stop time of the task's pieces (000 for a task with no pieces, which feasibility excludes). "No split" means exactly one piece per task, so two abutting pieces count as a split. "Decreasing rir_iri​" is non-increasing, with ties in any order. "Minimal" and "optimal" are stated as ≤\le≤ against every feasible schedule, never as an infimum.

Standing assumptions, stated in every item: ai>0a_i > 0ai​>0 (tasks take time, and ri=pi/air_i = p_i/a_iri​=pi​/ai​ needs ai≠0a_i \ne 0ai​=0), and pi≥0p_i \ge 0pi​≥0 for Theorems 2.2–2.4 and the proof steps (penalties are non-negative; with a negative penalty and idle time allowed the loss is unbounded below). Theorem 2.1 carries no sign condition. No condition is placed on the deadlines.

A formalization that restricts the competitors of Theorems 2.2–2.4 to unsplit schedules, or to sequenced schedules of other orders, states a weaker theorem and is ruled out: every statement quantifies over all feasible schedules.

A complete development needs: sums over sublists of pieces, rearrangements of pieces of a schedule and their effect on completion times, and optimality over permutations of a finite set of tasks. The schedule model and the non-preemption argument are reusable for any single-machine regular objective. Contributions of intermediate lemmas on these points are welcome.

Selected references

  • R. McNaughton, Scheduling with Deadlines and Loss Functions, Management Science 6(1):1–12, 1959. https://doi.org/10.1287/mnsc.6.1.1
  • W. E. Smith, Various optimizers for single-stage production, Naval Research Logistics Quarterly 3(1–2):59–66, 1956. https://doi.org/10.1002/nav.3800030106
  • J. K. Lenstra, A. H. G. Rinnooy Kan, P. Brucker, Complexity of machine scheduling problems, Annals of Discrete Mathematics 1:343–362, 1977. https://doi.org/10.1016/S0167-5060(08)70743-X
  • P. Brucker, Scheduling Algorithms, 5th ed., Springer, 2007. https://doi.org/10.1007/978-3-540-69516-5
7 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Scenario Reduction Algorithms in Stochastic Programming II: The Minimal Reduction Distance of a Regular Binary Scenario TreeResearch Paper

Why exact reduction distances matter

Multistage stochastic programs are solved on a finite scenario tree, a discrete probability measure whose atoms are paths of a stochastic process. The size of the deterministic equivalent grows with the number of scenarios, so practitioners replace the original measure P=∑i=1NpiδωiP=\sum_{i=1}^N p_i\delta_{\omega_i}P=∑i=1N​pi​δωi​​ by a measure supported on n<Nn<Nn<N of its scenarios. Stability theory for stochastic programs (Dupačová, Gröwe-Kuska and Römisch, Math. Program. 95 (2003), doi:10.1007/s10107-002-0331-0) bounds the change of the optimal value by a probability metric between the two measures, which leads to the optimal scenario reduction problem: choose which N−nN-nN−n scenarios to delete so that this distance is smallest.

That problem is a set-covering problem and is NP-hard, and the algorithms that Heitsch and Römisch study in the same paper (backward reduction, fast forward selection) are heuristics without error guarantees. To test them one needs original measures whose optimal reduction distance is known exactly. Section 3 of Heitsch and Römisch, Scenario Reduction Algorithms in Stochastic Programming, Comput. Optim. Appl. 24 (2003) (doi:10.1023/A:1021805924152) supplies such instances: regular binary and ternary scenario trees, for which the minimal distance to any reduced tree with at least a fixed fraction of the scenarios is an explicit formula. This mission formalizes the binary case, Proposition 3.1.

Setting

Fix a horizon K∈NK\in\mathbb NK∈N and level parameters δ1,…,δK≥0\delta^1,\dots,\delta^K\ge0δ1,…,δK≥0, with δ0=0\delta^0=0δ0=0. A regular binary scenario tree has N=2KN=2^KN=2K scenarios. A scenario is determined by a branch ik∈{1,2}i_k\in\{1,2\}ik​∈{1,2} at every level k=1,…,Kk=1,\dots,Kk=1,…,K, and is the vector ωi=(ωi0,…,ωiK)∈RK+1\omega_i=(\omega_i^0,\dots,\omega_i^K)\in\mathbb R^{K+1}ωi​=(ωi0​,…,ωiK​)∈RK+1 with

ωik=∑j=0kδijj,δijj=(2ij−3) δj∈{−δj,+δj}.(19)\omega_i^k=\sum_{j=0}^k\delta^j_{i_j},\qquad \delta^j_{i_j}=(2i_j-3)\,\delta^j\in\{-\delta^j,+\delta^j\}.\tag{19}ωik​=j=0∑k​δij​j​,δij​j​=(2ij​−3)δj∈{−δj,+δj}.(19)

All scenarios start at the root ωi0=0\omega_i^0=0ωi0​=0 and carry probability pi=1/Np_i=1/Npi​=1/N. Scenarios are compared in the maximum norm ∥ω−ω~∥∞=max⁡k=0,…,K∣ωk−ω~k∣\|\omega-\tilde\omega\|_\infty=\max_{k=0,\dots,K}|\omega^k-\tilde\omega^k|∥ω−ω~∥∞​=maxk=0,…,K​∣ωk−ω~k∣.

Deleting the scenarios with indices in J⊂{1,…,N}J\subset\{1,\dots,N\}J⊂{1,…,N} and moving each deleted scenario's probability to a nearest kept scenario costs the reduction cost

DJ=∑i∈Jpimin⁡j∉J∥ωi−ωj∥∞,(8)D_J=\sum_{i\in J}p_i\min_{j\notin J}\|\omega_i-\omega_j\|_\infty,\tag{8}DJ​=i∈J∑​pi​j∈/Jmin​∥ωi​−ωj​∥∞​,(8)

which by Theorem 2.1 of the paper is the minimal Kantorovich-type distance between PPP and a measure supported on the kept scenarios. The minimal reduction distance for nnn kept scenarios is Dnmin=min⁡{DJ:#J=N−n}D^{min}_n=\min\{D_J:\#J=N-n\}Dnmin​=min{DJ​:#J=N−n}.

In the Lean development, scenarios are indexed by σ : Fin K → Fin 2 (Fin-index rrr is tree level r+1r+1r+1, value 000 is the branch −δ-\delta−δ, value 111 is +δ+\delta+δ), lev σ k is the branch at level kkk, scenario δ σ : Fin (K+1) → ℝ is ωσ\omega_\sigmaωσ​, and redCost δ J hJ is DJD_JDJ​.

Formalization targets

Goal: Proposition 3.1 (3/4-solution)

Let K≥3K\ge3K≥3, k0∈arg⁡min⁡1≤k≤Kδkk_0\in\arg\min_{1\le k\le K}\delta^kk0​∈argmin1≤k≤K​δk, k0≤K−2k_0\le K-2k0​≤K−2 and max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1},\delta^{k_0+2}\}\le2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​. Then any two distinct scenarios are at distance at least 2δk02\delta^{k_0}2δk0​; there is a set J∗J_*J∗​ of 34N\frac34N43​N scenarios each of which has a partner outside J∗J_*J∗​ at distance exactly 2δk02\delta^{k_0}2δk0​; and for every n∈Nn\in\mathbb Nn∈N with N4≤n<N\frac N4\le n<N4N​≤n<N

Dnmin=min⁡{DJ:#J=N−n}=N−nN 2δk0.(20)D^{min}_n=\min\{D_J:\#J=N-n\}=\frac{N-n}{N}\,2\delta^{k_0}.\tag{20}Dnmin​=min{DJ​:#J=N−n}=NN−n​2δk0​.(20)

Milestones

  1. Two scenarios that first differ at level lll are at distance ≥2δl≥2δk0\ge2\delta^l\ge2\delta^{k_0}≥2δl≥2δk0​.
  2. DJ≥N−nN2δk0D_J\ge\frac{N-n}{N}2\delta^{k_0}DJ​≥NN−n​2δk0​ for every JJJ with #J=N−n\#J=N-n#J=N−n.
  3. The index set I∗I_*I∗​ (branch at k0k_0k0​ opposite to the common branch at k0+1,k0+2k_0+1,k_0+2k0​+1,k0​+2) has #I∗=N/4\#I_*=N/4#I∗​=N/4, so #J∗=34N\#J_*=\frac34N#J∗​=43​N.
  4. Every j∈J∗j\in J_*j∈J∗​ has a partner i∈I∗i\in I_*i∈I∗​ with ∥ωi−ωj∥∞=2δk0\|\omega_i-\omega_j\|_\infty=2\delta^{k_0}∥ωi​−ωj​∥∞​=2δk0​.
  5. Example 4.1: for K=10K=10K=10 and the paper's parameters, Proposition 3.1 applies with k0=1k_0=1k0​=1 and Dnmin=N−nND^{min}_n=\frac{N-n}{N}Dnmin​=NN−n​ for 256≤n<1024256\le n<1024256≤n<1024.

Significance

The result. Proposition 3.1 gives the exact optimum of an NP-hard combinatorial problem on an explicit, parametrized family of instances of every size N=2KN=2^KN=2K. Section 4 of the paper uses it (Example 4.1, N=1024N=1024N=1024) as ground truth for the relative accuracy of backward reduction and fast forward selection. Without it, the quality of a heuristic reduction on a large tree could only be compared with other heuristics or with lower bounds.

The formalization. The proposition is proved in the paper; to our knowledge no machine-checked version exists. A formal proof certifies the benchmark values, and the statement also corrects the printed text in two places. First, "there are 34N\frac34N43​N distinct pairs … at distance exactly 2δk02\delta^{k_0}2δk0​" is false as an exact count (for K=3K=3K=3, δ=(1,1,1)\delta=(1,1,1)δ=(1,1,1) there are twenty such pairs, not six), so the goal states "at least", in the form the proof exhibits. Second, the paper's sign-based definition of I∗I_*I∗​ degenerates when some δk=0\delta^k=0δk=0, although the proposition still holds; the mission defines I∗I_*I∗​ by branch indices.

Difficulty

The lower bound is a direct computation. The content is the matching upper bound: a set JJJ of the prescribed size for which every deleted scenario has a kept scenario at the minimal possible distance. A natural first attempt pairs scenarios that differ only at level k0k_0k0​. That handles only half of the scenarios with a single partner each, and it cannot reach 34N\frac34N43​N deleted scenarios. Once scenarios differ at more than one level, their maximum-norm distance is a maximum of several partial sums, and keeping all of them at most 2δk02\delta^{k_0}2δk0​ is exactly where the hypothesis max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1},\delta^{k_0+2}\}\le2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​ enters. Without it, eq. (20) fails: for K=3K=3K=3, δ=(1,3,3)\delta=(1,3,3)δ=(1,3,3) and n=2n=2n=2 the true minimum is 52\frac5225​, not 32\frac3223​. The passage from n=N/4n=N/4n=N/4 to general n≥N/4n\ge N/4n≥N/4 also needs care: the deleted set must shrink while each remaining deleted scenario keeps its partner among the kept ones.

Formalization scope

  • The index type is Fin K → Fin 2, which has exactly 2K2^K2K elements. The paper's (K+1)(K+1)(K+1)-tuple has a level-0 entry with no choice, so it is dropped, and the vector ω\omegaω keeps its K+1K+1K+1 coordinates with ω0=0\omega^0=0ω0=0.
  • The parameters are δ : ℕ → ℝ, with δk≥0\delta^k\ge0δk≥0 and the arg min stated for k=1,…,Kk=1,\dots,Kk=1,…,K only. δk>0\delta^k>0δk>0 is not assumed, because the paper allows δk∈R+\delta^k\in\mathbb R_+δk∈R+​ and the proposition holds with zeros.
  • The cost is Mathlib's norm on Fin (K+1) → ℝ, which is the maximum norm, and pi=1/2Kp_i=1/2^Kpi​=1/2K is written out.
  • DJD_JDJ​ requires a nonempty set of kept scenarios, and its inner minimum is a finite Finset.inf'.
  • DnminD^{min}_nDnmin​ is stated with IsLeast over the set of attained values DJD_JDJ​, #J=N−n\#J=N-n#J=N−n, so both the lower bound and attainment are part of the goal. A proof of DJ≤N−nN2δk0D_{J}\le\frac{N-n}{N}2\delta^{k_0}DJ​≤NN−n​2δk0​ for a single exhibited JJJ, or a real infimum without attainment, does not prove the goal.
  • "N4≤n\frac N4\le n4N​≤n" is written 2K≤4n2^K\le4n2K≤4n, and 34N\frac34N43​N is 3⋅2K−23\cdot2^{K-2}3⋅2K−2.
  • The pairs claim is "at least 34N\frac34N43​N pairs", expressed as a set J∗J_*J∗​ of that size with a partner outside J∗J_*J∗​ for every member.
  • All hypotheses on k0k_0k0​ appear in the goal; dropping any of them makes (20) false.

Useful infrastructure: sup-norm lemmas for Fin n → ℝ (pi_norm_le_iff_of_nonneg, norm_le_pi_norm), Finset.inf' lemmas, and counting functions Fin K → Fin 2 with prescribed values (Fintype.card_fun, Fintype.card_pi). The tree and reduction-cost definitions are shared in spirit with the ternary-tree mission of this series (Proposition 3.2), and a proof whose structure transfers to d=3d=3d=3 is welcome. Contributions of proofs of the milestones individually, in any order, are welcome.

Selected references

  • H. Heitsch, W. Römisch, Scenario Reduction Algorithms in Stochastic Programming, Computational Optimization and Applications 24 (2003), 187–206. doi:10.1023/A:1021805924152
  • J. Dupačová, N. Gröwe-Kuska, W. Römisch, Scenario reduction in stochastic programming: An approach using probability metrics, Mathematical Programming 95 (2003), 493–511. doi:10.1007/s10107-002-0331-0
9 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimizationTheoretical Computer Science·Captain: mikedeng1

An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Late Jobs I: Moore's Algorithm Yields a Schedule with the Minimum Number of Late JobsResearch Paper

Motivation

A single machine must process a set of jobs, each with a processing time and a due-date, and a job that finishes after its due-date is late. Counting late jobs is the natural objective when a late order is simply lost, whatever its lateness. In the three-field notation of scheduling theory this is the problem 1 ∥ ∑Uj1\,\|\,\sum U_j1∥∑Uj​, and it is one of the few single-machine problems with a due-date objective that a simple greedy rule solves exactly.

J. Michael Moore gave that rule in 1968 (Management Science 15(1):102–109). The only exact method previously available was the Held–Karp dynamic program, which is exponential in the number of jobs. Moore's algorithm is two sorts plus at most n(n+1)/2n(n+1)/2n(n+1)/2 additions and comparisons. The rule, and the variant from the paper's Author's Supplement (credited to T. J. Hodgson and today called the Moore–Hodgson algorithm), is in every scheduling textbook, for example Brucker, Scheduling Algorithms, Ch. 4, and is the base case of later work on weighted and release-date variants.

Timeline:

  • 1955: J. R. Jackson shows that a job set can be scheduled with no late job if and only if the earliest-due-date order has none (Management Science Research Project report 43, UCLA).
  • 1968: Moore publishes the algorithm and its proof of optimality, with Hodgson's variant stated without proof.
  • 1970s onward: the weighted version 1 ∥ ∑wjUj1\,\|\,\sum w_jU_j1∥∑wj​Uj​ is shown NP-hard (Karp 1972, via knapsack), and 1 ∣ rj ∣ ∑Uj1\,|\,r_j\,|\,\sum U_j1∣rj​∣∑Uj​ likewise (Lenstra, Rinnooy Kan and Brucker 1977), so Moore's greedy rule does not extend to them.

Setting

A finite set JJJ of jobs is given. Job jjj has a processing time tj≥0t_j \ge 0tj​≥0 and a due-date DjD_jDj​, and the paper assumes tj≤Djt_j \le D_jtj​≤Dj​ for every job (a job that cannot finish on time even if started at time 000 is removed beforehand). The machine starts at time 000 and processes the jobs one after another, without idle time or preemption.

A schedule SSS of JJJ is an ordering (Ji1,…,Jin)(J_{i_1},\dots,J_{i_n})(Ji1​​,…,Jin​​) of all jobs of JJJ. The job in position kkk completes at Cik=ti1+⋯+tikC_{i_k} = t_{i_1} + \dots + t_{i_k}Cik​​=ti1​​+⋯+tik​​. The late set is L={Ji:Ci>Di}L = \{J_i : C_i > D_i\}L={Ji​:Ci​>Di​} and the early set is E={Ji:Ci≤Di}E = \{J_i : C_i \le D_i\}E={Ji​:Ci​≤Di​}. A schedule is optimal if no schedule of JJJ has fewer late jobs. AAA and RRR denote the early and late jobs of SSS, each kept in their order in SSS.

Moore's algorithm works on a current sequence and a list of rejected jobs.

  • Step 1: order the jobs by non-decreasing processing time (the shortest processing time rule).
  • Step 2: find the first late job JiqJ_{i_q}Jiq​​ of the current sequence. If there is none, stop.
  • Step 3: re-order Ji1,…,JiqJ_{i_1},\dots,J_{i_q}Ji1​​,…,Jiq​​ by non-decreasing due-date. If all of them are then early, keep the re-ordered sequence. Otherwise reject JiqJ_{i_q}Jiq​​ and remove it. Return to Step 2.

The output is the final current sequence sorted by due-dates, followed by the rejected jobs in any order.

In Lean, a schedule is IsSchedule J l, the late set is lateSet t D l, optimality is IsOptimal t D J l, AAA and RRR are earlyPart/latePart, and one pass of Steps 2–3 is the relation MooreStep t D, all in the namespace MooreLateJobs.NumLate.

Formalization targets

Goal: Moore's algorithm is optimal (The Algorithm, Step 2, p. 103)

Let l0l_0l0​ be a shortest-processing-time schedule of JJJ, and let a run of MooreStep from (l0,[ ])(l_0,[\,])(l0​,[]) reach a state (cur,rej)(\mathrm{cur},\mathrm{rej})(cur,rej) in which cur\mathrm{cur}cur has no late job. Then for every due-date ordering ADA_DAD​ of cur\mathrm{cur}cur and every ordering PPP of rej\mathrm{rej}rej,

(AD, P) is an optimal schedule for J.(A_D,\,P)\ \text{is an optimal schedule for } J.(AD​,P) is an optimal schedule for J.

All tie-breaks in both sorts are covered.

Milestones

In attack order:

  1. Lemma 1 (p. 105): every optimal schedule has the same number of late jobs as (A,R)(A,R)(A,R) and as every (A,P)(A,P)(A,P).
  2. Jackson's lemma (p. 105).
  3. Lemma 2 (p. 105): re-ordering AAA by due-dates keeps an optimal (A,R)(A,R)(A,R) schedule optimal.
  4. Lemma 3 (p. 105): a job that is late in some optimal schedule can be removed and appended.
  5. The repeated-elimination claim (p. 106): after removing jobs late in successive optimal schedules until the rest is feasible, (AD,P)(A_D,P)(AD​,P) is optimal.
  6. Cases 2) and 3) of the Selection Algorithm (p. 107): in either case the job JqJ_qJq​ is late in some optimal schedule.
  7. Progress and termination of the algorithm (p. 108).

A companion item states the p. 104 remark that the final current sequence need not be re-sorted: (cur,P)(\mathrm{cur},P)(cur,P) is already optimal.

Significance

The theorem shows that the minimum number of late jobs on one machine can be found in O(nlog⁡n)O(n\log n)O(nlogn) time, by a rule that also produces an optimal schedule of a very particular shape: due-date ordered early jobs first, then the late jobs in any order. Lemma 3's decomposition, that jobs late in some optimal schedule may be discarded one at a time, is the template reused for many related greedy results in scheduling.

The result is classical and fully proved on paper. To our knowledge no machine-checked proof of Moore's algorithm, of the Moore–Hodgson variant, or of Jackson's rule exists in Mathlib. This mission produces a checked proof of the algorithm as stated in the paper, with every tie-break allowed, together with reusable single-machine objects (schedules as lists, completion times, late sets) and Jackson's earliest-due-date feasibility lemma.

Difficulty

Neither ordering rule works alone. Sorting by due-dates alone gives a schedule with no late job whenever one exists, but it can make many jobs late once any must be. Keeping the shortest jobs first does not respect the due-dates at all. The step that fails in a direct greedy argument is the claim that the specific job JiqJ_{i_q}Jiq​​, the one just found late, belongs to the late set of some optimal schedule. That job is not in general the longest job of the prefix, and the paper has to treat separately the two cases in which it is rejected. On top of this, the algorithm re-sorts prefixes on the fly, so the claim has to be tied to the invariants of the run: the prefix is early and due-date sorted, and the jobs after it are at least as long as JiqJ_{i_q}Jiq​​.

Formalization scope

  • Jobs and times. Jobs form a type ι with decidable equality; JJJ is a Finset ι; t,D:ι→Rt, D : ι \to \mathbb{R}t,D:ι→R.
  • Standing hypotheses. Every statement that involves schedules assumes tj≥0t_j \ge 0tj​≥0 and tj≤Djt_j \le D_jtj​≤Dj​ on JJJ. The first is added: processing times are durations, and Jackson's lemma fails for negative times. The second is the paper's assumption on p. 102.
  • Schedules and completion times. A schedule is a duplicate-free list with exactly the jobs of JJJ. Positions are 0-based, and the job in position kkk completes at the sum of the first k+1k+1k+1 processing times. Lateness is strict (Cj>DjC_j > D_jCj​>Dj​).
  • Optimality compares against every schedule of the same job set.
  • Ties. Orderings "by due-dates" and "by processing times" are List.Pairwise with ≤. Ties are arbitrary, and every statement quantifies over all such orderings.
  • The algorithm. Steps 2–3 are the relation MooreStep. The re-ordered prefix is any due-date sorted permutation of the first q+1q+1q+1 jobs, and case 2) rejects the first late job JiqJ_{i_q}Jiq​​ itself, not the longest job of the prefix (that is Hodgson's variant). A run is Relation.ReflTransGen.

The goal must concern runs of this step relation from a shortest-processing-time schedule of JJJ. Replacing the run by an arbitrary set of rejected jobs satisfying invariants would state a different theorem. The goal is not vacuous: the progress and termination milestones show that a terminal state is always reached.

Contributions are welcome at every level. Useful ones include general lemmas on completion times under permutation and filtering of lists, a proof of Jackson's lemma, proofs of the Selection Algorithm cases, and a proof of Hodgson's variant.

Selected references

  • J. M. Moore, An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Late Jobs, Management Science 15(1):102–109, 1968. https://doi.org/10.1287/mnsc.15.1.102
  • J. R. Jackson, Scheduling a Production Line to Minimize Maximum Tardiness, Research Report 43, Management Science Research Project, UCLA, 1955.
  • M. Held and R. M. Karp, A Dynamic Programming Approach to Sequencing Problems, J. SIAM 10(1):196–210, 1962. https://doi.org/10.1137/0110015
  • R. M. Karp, Reducibility among Combinatorial Problems, in Complexity of Computer Computations, 1972. https://doi.org/10.1007/978-1-4684-2001-2_9
  • J. K. Lenstra, A. H. G. Rinnooy Kan and P. Brucker, Complexity of Machine Scheduling Problems, Annals of Discrete Mathematics 1:343–362, 1977. https://doi.org/10.1016/S0167-5060(08)70743-X
  • P. Brucker, Scheduling Algorithms, 5th ed., Springer, 2007. https://doi.org/10.1007/978-3-540-69516-5
15 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Scenario Reduction Algorithms in Stochastic Programming III: The Minimal Reduction Distance of a Regular Ternary Scenario TreeResearch Paper

Motivation

Multistage stochastic programs are solved on a finite scenario tree: a discrete probability distribution whose support points are paths of a random process. Realistic trees have far too many scenarios for the resulting optimization problem, so practitioners reduce the tree, keeping nnn of its NNN scenarios and redistributing the probability of the deleted ones. The reduction should keep the reduced distribution as close as possible to the original one in a probability metric that controls the optimal value of the stochastic program (Dupačová, Gröwe-Kuska, Römisch, Math. Program. 95 (2003)).

Choosing the best nnn scenarios is a set-covering problem and NP-hard, and the algorithms used in practice (backward reduction, fast forward selection) are heuristics without error guarantees. Heitsch and Römisch (2003) therefore derived test instances with an exactly known optimum: regular binary and ternary scenario trees, for which the minimal reduction distance has a closed form once nnn is not too small. This mission formalizes the ternary case, Proposition 3.2 of that paper. The binary case (Proposition 3.1) is a separate mission of the same series.

Setting

Fix a depth K∈NK \in \mathbb{N}K∈N and branch widths δ1,…,δK≥0\delta^1, \dots, \delta^K \ge 0δ1,…,δK≥0, with δ0=0\delta^0 = 0δ0=0. A regular ternary scenario tree has N=3KN = 3^KN=3K scenarios, one for each index tuple (i1,…,iK)∈{1,2,3}K(i_1, \dots, i_K) \in \{1, 2, 3\}^K(i1​,…,iK​)∈{1,2,3}K, where iki_kik​ is the successor chosen at level kkk. Choosing successor iki_kik​ adds the increment δikk=(ik−2) δk∈{−δk,0,δk}\delta^k_{i_k} = (i_k - 2)\,\delta^k \in \{-\delta^k, 0, \delta^k\}δik​k​=(ik​−2)δk∈{−δk,0,δk}, and scenario iii is the vector ωi=(ωi0,…,ωiK)∈RK+1\omega_i = (\omega_i^0, \dots, \omega_i^K) \in \mathbb{R}^{K+1}ωi​=(ωi0​,…,ωiK​)∈RK+1 with

ωik=∑j=0kδijj,k=0,…,K(eq. (19)).\omega_i^k = \sum_{j=0}^{k} \delta^j_{i_j}, \qquad k = 0, \dots, K \quad \text{(eq. (19))}.ωik​=j=0∑k​δij​j​,k=0,…,K(eq. (19)).

All scenarios have probability pi=1/Np_i = 1/Npi​=1/N. The distance between scenarios is the maximum norm c(ωi,ωj)=∥ωi−ωj∥∞=max⁡0≤k≤K∣ωik−ωjk∣c(\omega_i, \omega_j) = \|\omega_i - \omega_j\|_\infty = \max_{0 \le k \le K} |\omega_i^k - \omega_j^k|c(ωi​,ωj​)=∥ωi​−ωj​∥∞​=max0≤k≤K​∣ωik​−ωjk​∣.

Deleting the scenarios of an index set JJJ and moving each deleted scenario's probability to a nearest kept scenario costs the reduction distance

DJ=∑i∈Jpimin⁡j∉J∥ωi−ωj∥∞(eq. (8)),D_J = \sum_{i \in J} p_i \min_{j \notin J} \|\omega_i - \omega_j\|_\infty \quad \text{(eq. (8))},DJ​=i∈J∑​pi​j∈/Jmin​∥ωi​−ωj​∥∞​(eq. (8)),

which by Theorem 2.1 of the paper is the optimal transport-type distance between the original distribution and the best distribution supported on the kept scenarios. The minimal reduction distance to nnn scenarios is Dnmin=min⁡{DJ:#J=N−n}D^{min}_n = \min\{D_J : \#J = N - n\}Dnmin​=min{DJ​:#J=N−n}.

Formalization targets

Goal: Proposition 3.2 (7/9-solution)

Let K≥3K \ge 3K≥3 and let k0∈arg⁡min⁡1≤k≤Kδkk_0 \in \arg\min_{1 \le k \le K} \delta^kk0​∈argmin1≤k≤K​δk with k0≤K−2k_0 \le K - 2k0​≤K−2 and max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1}, \delta^{k_0+2}\} \le 2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​. Then any two distinct scenarios are at distance at least δk0\delta^{k_0}δk0​; there is a set of 79N\tfrac79 N97​N scenarios each paired with a scenario outside it at distance exactly δk0\delta^{k_0}δk0​; and for each n∈Nn \in \mathbb{N}n∈N with 29N≤n<N\tfrac29 N \le n < N92​N≤n<N,

Dnmin=min⁡{DJ:#J=N−n}=N−nN δk0(eq. (21)),D^{min}_n = \min\{D_J : \#J = N - n\} = \frac{N - n}{N}\,\delta^{k_0} \quad \text{(eq. (21))},Dnmin​=min{DJ​:#J=N−n}=NN−n​δk0​(eq. (21)),

with the minimum attained.

Milestones

  1. Distinct scenarios satisfy ∥ωi−ωj∥∞≥δk0\|\omega_i - \omega_j\|_\infty \ge \delta^{k_0}∥ωi​−ωj​∥∞​≥δk0​.
  2. Every JJJ with #J=N−n\#J = N - n#J=N−n has DJ≥N−nNδk0D_J \ge \frac{N-n}{N}\delta^{k_0}DJ​≥NN−n​δk0​.
  3. The index set I∗∗I_{**}I∗∗​ of the proof has #I∗∗=29N\#I_{**} = \tfrac29 N#I∗∗​=92​N, and its complement J∗∗J_{**}J∗∗​ has 79N\tfrac79 N97​N elements.
  4. Every j∈J∗∗j \in J_{**}j∈J∗∗​ has a partner i∈I∗∗i \in I_{**}i∈I∗∗​ with ∥ωi−ωj∥∞=δk0\|\omega_i - \omega_j\|_\infty = \delta^{k_0}∥ωi​−ωj​∥∞​=δk0​.
  5. Example 4.2: for K=6K = 6K=6 and (δ1,…,δ6)=(0.7,0.9,1.2,1.5,2.6,3.3)(\delta^1, \dots, \delta^6) = (0.7, 0.9, 1.2, 1.5, 2.6, 3.3)(δ1,…,δ6)=(0.7,0.9,1.2,1.5,2.6,3.3), Dnmin=0.7 N−nND^{min}_n = 0.7\,\frac{N-n}{N}Dnmin​=0.7NN−n​ for 162≤n<729162 \le n < 729162≤n<729.

Significance

The result gives an exact optimal value for an NP-hard reduction problem on an infinite family of instances. Heitsch and Römisch use it in their numerical section to measure how far the heuristics' reduced trees are from optimal (Examples 4.1 and 4.2 are the binary and ternary test trees of that study). A closed form of this kind is also the only way to certify that a heuristic is exactly optimal on some instances rather than only competitive with other heuristics.

The proposition is proved in the paper, but the published proof of its central step is one sentence: "Similarly as in Proposition 3.1 it can be shown that there exists an index i∈I∗∗i \in I_{**}i∈I∗∗​ for each j∈J∗∗j \in J_{**}j∈J∗∗​ …". A formal proof supplies that case analysis, which is absent from the literature. The formalization also settles two points the printed statement leaves loose (see Formalization scope): the count of pairs at distance δk0\delta^{k_0}δk0​, and the definition of I∗∗I_{**}I∗∗​ when some widths vanish. No machine-checked version of this result or of the reduction distance DJD_JDJ​ is known to exist.

Difficulty

The lower bound is routine: two distinct scenarios first differ at some level lll, where their coordinates differ by δl\delta^lδl or 2δl2\delta^l2δl. The substance is attainment: one must exhibit, for every n≥29Nn \ge \tfrac29 Nn≥92​N, a kept set of size nnn whose every deleted scenario lies at distance exactly δk0\delta^{k_0}δk0​ from some kept one. The obvious candidate, keeping the scenarios that take the middle branch at level k0k_0k0​, has every other scenario at distance exactly δk0\delta^{k_0}δk0​ from a kept one, but it keeps 13N\tfrac13 N31​N scenarios and so covers only n≥13Nn \ge \tfrac13 Nn≥31​N. Going down to 29N\tfrac29 N92​N kept scenarios forces a deleted scenario and its partner to differ at more than one level, and since coordinates are running sums the differences at levels k0+1k_0+1k0​+1 and k0+2k_0+2k0​+2 accumulate on top of the one at level k0k_0k0​. The paper's proof of this step is not written out, and it depends on the widths of the two levels below k0k_0k0​: the hypothesis max⁡{δk0+1,δk0+2}≤2δk0\max\{\delta^{k_0+1}, \delta^{k_0+2}\} \le 2\delta^{k_0}max{δk0​+1,δk0​+2}≤2δk0​ is essential, and the result is false without it (for K=3K = 3K=3 and (δ1,δ2,δ3)=(1,3,3)(\delta^1, \delta^2, \delta^3) = (1, 3, 3)(δ1,δ2,δ3)=(1,3,3) one has D6min=31/27D^{min}_6 = 31/27D6min​=31/27, not 7/97/97/9).

Formalization scope

  • A scenario is an index tuple σ:Fin K→Fin 3\sigma : \mathrm{Fin}\,K \to \mathrm{Fin}\,3σ:FinK→Fin3; σ(r)\sigma(r)σ(r) is the successor at paper level r+1r + 1r+1, with Fin 3\mathrm{Fin}\,3Fin3 values 0,1,20, 1, 20,1,2 standing for the paper's i=1,2,3i = 1, 2, 3i=1,2,3. The widths are δ:N→R\delta : \mathbb{N} \to \mathbb{R}δ:N→R, of which only δ(1),…,δ(K)\delta(1), \dots, \delta(K)δ(1),…,δ(K) are used; the standing assumption δk∈R+\delta^k \in \mathbb{R}_+δk∈R+​ (p. 196) is the hypothesis δ(k)≥0\delta(k) \ge 0δ(k)≥0 for 1≤k≤K1 \le k \le K1≤k≤K. Scenarios live in Fin(K+1)→R\mathrm{Fin}(K+1) \to \mathbb{R}Fin(K+1)→R, whose Mathlib norm is the maximum norm. Probabilities are uniform, 1/3K1/3^K1/3K.
  • DJD_JDJ​ is defined for a general finite index set, probabilities and cost, with the inner minimum a Finset.inf' over the complement of JJJ; the complement must be nonempty, so no default value arises. DnminD^{min}_nDnmin​ is stated as IsLeast of the set of all values DJD_JDJ​ with #J=N−n\#J = N - n#J=N−n: the goal asserts both the lower bound for every JJJ and attainment by some JJJ. A formalization that exhibits a single JJJ with DJ=N−nNδk0D_J = \frac{N-n}{N}\delta^{k_0}DJ​=NN−n​δk0​, or states an infimum without attainment, or drops any hypothesis on k0k_0k0​, is a different (and in the last case false) statement.
  • 29N≤n\tfrac29 N \le n92​N≤n is written 2⋅3K≤9n2 \cdot 3^K \le 9n2⋅3K≤9n, and 79N\tfrac79 N97​N as 7⋅3K−27 \cdot 3^{K-2}7⋅3K−2.
  • Pairs. As printed, "there are 79N\tfrac79 N97​N distinct pairs of scenarios such that the distance between the members of each pair is exactly δk0\delta^{k_0}δk0​" is false as an exact count (for K=3K = 3K=3 and δ=(1,1,1)\delta = (1,1,1)δ=(1,1,1) there are 130 such pairs, not 21). The goal states what the proof constructs: a set J∗∗J_{**}J∗∗​ of 79N\tfrac79 N97​N scenarios, each paired with a scenario outside J∗∗J_{**}J∗∗​ at distance exactly δk0\delta^{k_0}δk0​.
  • I∗∗I_{**}I∗∗​. The paper defines I∗∗I_{**}I∗∗​ by testing whether the increments δikk\delta^k_{i_k}δik​k​ vanish. When one of δk0,δk0+1,δk0+2\delta^{k_0}, \delta^{k_0+1}, \delta^{k_0+2}δk0​,δk0​+1,δk0​+2 is 000 this no longer identifies the middle branch and the count 29N\tfrac29 N92​N fails, although the proposition remains true. The formalization defines I∗∗I_{**}I∗∗​ by branch indices (middle branch versus outer branches), which agrees with the paper whenever these three widths are positive. No positivity hypothesis is added to the goal.
  • Welcome contributions: a reusable library for regular scenario trees (first differing level, distance of paths), and the case analysis of milestone 4. The binary mission of this series needs the same lower-bound argument with the constant 2δk02\delta^{k_0}2δk0​.

Selected references

  • H. Heitsch, W. Römisch, Scenario Reduction Algorithms in Stochastic Programming, Computational Optimization and Applications 24 (2003), 187–206. https://doi.org/10.1023/A:1021805924152
  • J. Dupačová, N. Gröwe-Kuska, W. Römisch, Scenario reduction in stochastic programming: An approach using probability metrics, Mathematical Programming 95 (2003), 493–511. https://doi.org/10.1007/s10107-002-0331-0
9 thms3 active usersReviewed
Markov ChainOperations ResearchStochastic Systems·Captain: mikedeng1

Jobshop-Like Queueing Systems: The Equilibrium Distribution with State-Dependent Arrival and Service RatesResearch Paper

Motivation

A jobshop is a factory in which each job visits a sequence of machine groups, the sequence differing from job to job. J. R. Jackson's 1963 paper Jobshop-Like Queueing Systems (Management Science 10(1), 131–142) models such a shop as a network of queues and computes its long-run distribution of queue lengths in closed form. It generalizes his 1957 paper Networks of Waiting Lines (Operations Research 5(4)), which treated Poisson arrivals and multi-server centers, to arrival rates that depend on the total number of customers present and service rates that depend arbitrarily on the local queue length. The resulting product-form equilibrium is the starting point of queueing-network theory, which is used in performance analysis of manufacturing systems, computer systems and communication networks.

Timeline:

  • 1957: Jackson, Networks of Waiting Lines, constant external Poisson arrivals and multi-channel exponential servers; product-form equilibrium.
  • 1963: Jackson, this paper: state-dependent total arrival rate λ(S(kˉ))\lambda(S(\bar k))λ(S(kˉ)), queue-length-dependent service rates μ(n,k)\mu(n, k)μ(n,k), routings with self-loops and empty routings; Theorem (4.5).
  • 1967: Gordon and Newell, Closed Queuing Systems with Exponential Servers, the closed-network analogue.
  • 1979: Kelly, Reversibility and Stochastic Networks, the general theory of migration processes and partial balance.

Setting

There are N≥1N \ge 1N≥1 service centers, Center 1,…,N1, \dots, N1,…,N. A state vector kˉ=(k1,…,kN)\bar k = (k_1, \dots, k_N)kˉ=(k1​,…,kN​) has non-negative integer components, knk_nkn​ being the number of customers at Center nnn, and S(kˉ)=k1+⋯+kNS(\bar k) = k_1 + \dots + k_NS(kˉ)=k1​+⋯+kN​. The system (N,L,M,R)(N, L, M, R)(N,L,M,R) is given by:

  1. arrival rates λ(K)\lambda(K)λ(K), K=0,1,2,…K = 0, 1, 2, \dotsK=0,1,2,…: in state kˉ\bar kkˉ a customer arrives at rate λ(S(kˉ))\lambda(S(\bar k))λ(S(kˉ));
  2. service rates μ(n,k)\mu(n, k)μ(n,k): a service at Center nnn completes at rate μ(n,kn)\mu(n, k_n)μ(n,kn​);
  3. routing probabilities r(m,n)r(m, n)r(m,n), m∈[0,N]m \in [0, N]m∈[0,N], n∈[1,N+1]n \in [1, N+1]n∈[1,N+1]: an arriving customer's first center is nnn with probability r(0,n)r(0, n)r(0,n), its routing is empty with probability r(0,N+1)r(0, N+1)r(0,N+1); after service at Center mmm it moves to Center nnn with probability r(m,n)r(m, n)r(m,n) (possibly n=mn = mn=m) or leaves with probability r(m,N+1)r(m, N+1)r(m,N+1).

The paper's standing Assumptions (2.1)–(2.4): (2.1) either all λ(K)>0\lambda(K) > 0λ(K)>0, or λ(K)>0\lambda(K) > 0λ(K)>0 exactly for K≤K0K \le K_0K≤K0​; (2.2) μ(n,0)=0\mu(n, 0) = 0μ(n,0)=0 and μ(n,k)>0\mu(n, k) > 0μ(n,k)>0 for k≥1k \ge 1k≥1; (2.3) each row {r(m,n)}n∈[1,N+1]\{r(m, n)\}_{n \in [1, N+1]}{r(m,n)}n∈[1,N+1]​ is a probability distribution; (2.4) the traffic equations

e(n)=r(0,n)+∑m=1Ne(m) r(m,n),n∈[1,N],(2.5)e(n) = r(0, n) + \sum_{m=1}^N e(m)\, r(m, n), \qquad n \in [1, N], \tag{2.5}e(n)=r(0,n)+m=1∑N​e(m)r(m,n),n∈[1,N],(2.5)

have a unique solution, and it is non-negative.

The process is defined by its transition probabilities over a short interval (p. 134), from which the paper derives the balance equations (3.1) for P(kˉ,t)P(\bar k, t)P(kˉ,t). An equilibrium state probability distribution is a probability distribution ppp on state vectors such that P(kˉ,t)≡p(kˉ)P(\bar k, t) \equiv p(\bar k)P(kˉ,t)≡p(kˉ) solves (3.1). With

W(K)=∏i=0K−1λ(i),w(kˉ)=∏n=1N∏i=1kne(n)μ(n,i),T(K)=∑S(kˉ)=Kw(kˉ),W(K) = \prod_{i=0}^{K-1}\lambda(i), \quad w(\bar k) = \prod_{n=1}^N\prod_{i=1}^{k_n}\frac{e(n)}{\mu(n, i)}, \quad T(K) = \sum_{S(\bar k) = K} w(\bar k),W(K)=i=0∏K−1​λ(i),w(kˉ)=n=1∏N​i=1∏kn​​μ(n,i)e(n)​,T(K)=S(kˉ)=K∑​w(kˉ),

the constant π\piπ is {∑K≥0W(K)T(K)}−1\{\sum_{K \ge 0} W(K) T(K)\}^{-1}{∑K≥0​W(K)T(K)}−1 when the series converges and 000 otherwise.

Formalization targets

Goal: Theorem (4.5)

If π>0\pi > 0π>0, then

p(kˉ)=π w(kˉ) W(S(kˉ))(4.6)p(\bar k) = \pi\, w(\bar k)\, W(S(\bar k)) \tag{4.6}p(kˉ)=πw(kˉ)W(S(kˉ))(4.6)

is an equilibrium state probability distribution; and if the arrival rates are bounded, it is the only one. The goal fixes no constants; the condition π>0\pi > 0π>0 is the paper's.

Milestones

  1. The series in (4.4) converges to a positive number or diverges to +∞+\infty+∞ (§4, p. 136).
  2. If π>0\pi > 0π>0, (4.6) is a probability distribution (first claim of the proof sentence, p. 136).
  3. (4.6) satisfies equations (3.1) at every state (second claim, p. 136).
  4. Under bounded arrival rates, an equilibrium distribution is unique (§4, p. 135).

Companion

Theorem (6.3) in its case K∗=0K^* = 0K∗=0, kn∗=+∞k_n^* = +\inftykn∗​=+∞: with constant arrival rate λ(K)≡λ(0)\lambda(K) \equiv \lambda(0)λ(K)≡λ(0) and pn(0)>0p_n(0) > 0pn​(0)>0 for every nnn, the equilibrium is p(kˉ)=∏npn(kn)p(\bar k) = \prod_n p_n(k_n)p(kˉ)=∏n​pn​(kn​), pnp_npn​ being the normalized wn(k)=∏i=1kλ(0)e(n)/μ(n,i)w_n(k) = \prod_{i=1}^k \lambda(0)e(n)/\mu(n, i)wn​(k)=∏i=1k​λ(0)e(n)/μ(n,i).

Significance

Theorem (4.5) states that the queue lengths of a whole network have an explicit stationary law, determined by the routing only through the visit ratios e(n)e(n)e(n), and that conditionally on the total S(kˉ)=KS(\bar k) = KS(kˉ)=K it does not depend on the arrival process. With constant arrival rate it factorizes into independent one-center laws (Theorem (6.3)), each that of a single queue fed at rate λ(0)e(n)\lambda(0)e(n)λ(0)e(n); this is the form in which Jackson networks enter textbooks. State-dependent arrivals cover systems with balking or finite capacity: taking λ(K)=0\lambda(K) = 0λ(K)=0 for K>K0K > K_0K>K0​ caps the population.

The result is classical and proved; it has no machine-checked proof on this platform. The platform has Kelly–Yudovina's open migration process (KellyStochasticNetworks.open_migration_equilibrium): constant external arrivals, no self-loops, a full-balance conclusion without uniqueness. It is the companion (6.3) in substance but not the general theorem: arrival rates depending on the total population are not in it. This mission contributes the state-dependent model, a stationary form of Jackson's own equations (3.1), and a uniqueness statement.

Difficulty

The balance equations are an infinite system in Z≥0N\mathbb{Z}_{\ge 0}^NZ≥0N​. Substituting (4.6) gives terms with shifted states, guarded by non-negativity of components, a double sum over ordered pairs of distinct centers, self-loops appearing only in the outflow factor 1−r(n,n)1 - r(n, n)1−r(n,n), and centers with e(n)=0e(n) = 0e(n)=0, where www vanishes. Checking each state term by term against the traffic equations requires the diagonal of (2.5), excluded in (3.1), to be handled exactly. Summing (4.6) to one requires regrouping a series over Z≥0N\mathbb{Z}_{\ge 0}^NZ≥0N​ by the finite fibres of SSS.

Uniqueness is the hard part. The paper gives no proof: footnote 5 refers to a limit theorem for Markov processes and to the communication structure of non-transient states. A solution of the algebraic balance equations need not be the stationary law of the process when the process can explode, and the model allows explosion with π>0\pi > 0π>0 (e.g. N=1N = 1N=1, λ(K)=4K\lambda(K) = 4^Kλ(K)=4K, μ(1,k)=2⋅4k−1\mu(1,k) = 2\cdot 4^{k-1}μ(1,k)=2⋅4k−1). Uniqueness therefore depends on non-explosion as well as on the communication structure of the states, and neither is addressed on the page.

Formalization scope

Centers are Fin N with N>0N > 0N>0; states are Fin N → ℕ; rates are real. The routing is one function r : Option (Fin N) → Option (Fin N) → ℝ, where none is the index 000 in the first argument and N+1N + 1N+1 in the second. A structure JobshopSystem N bundles λ,μ,r,e\lambda, \mu, r, eλ,μ,r,e with Assumptions (2.1)–(2.4) as fields; eee is a parameter satisfying (2.5), uniqueness and non-negativity, not a formula. Balance sys q k is the stationary equation (3.1) at k for an arbitrary q, and IsEquilibrium sys q is q≥0q \ge 0q≥0, HasSum q 1, and Balance at every state. π\piπ is defined with an explicit if Summable … then … else 0.

Explicit choices, each stated in the item where it applies:

  • Correction of (3.1). The paper prints the arrival outflow as λ(S(kˉ))\lambda(S(\bar k))λ(S(kˉ)):

    dP(kˉ,t)dt=−[λ(S(kˉ))+∑nμ(n,kn)(1−r(n,n))]P(kˉ,t)+…\dfrac{dP(\bar k, t)}{dt} = -[\lambda(S(\bar k)) + \sum_n \mu(n, k_n)(1 - r(n, n))]P(\bar k, t) + \dotsdtdP(kˉ,t)​=−[λ(S(kˉ))+∑n​μ(n,kn​)(1−r(n,n))]P(kˉ,t)+…

    Its transition probabilities (p. 134) give λ(S(kˉ))∑n=1Nr(0,n)\lambda(S(\bar k))\sum_{n=1}^N r(0, n)λ(S(kˉ))∑n=1N​r(0,n), since an arrival with an empty routing leaves the state unchanged. The two agree only when r(0,N+1)=0r(0, N+1) = 0r(0,N+1)=0, and with the printed coefficient Theorem (4.5) is false (N=1N = 1N=1, r(0,1)=r(0,2)=1/2r(0,1) = r(0,2) = 1/2r(0,1)=r(0,2)=1/2, r(1,2)=1r(1,2) = 1r(1,2)=1, constant rates, at kˉ=0\bar k = 0kˉ=0). The formalization uses the coefficient the transition probabilities give. It does not assume r(0,N+1)=0r(0, N+1) = 0r(0,N+1)=0: the paper allows empty routings.

  • Uniqueness under bounded arrival rates. Uniqueness (milestone 4 and the goal's second conjunct) assumes ∃Λ, ∀K, λ(K)≤Λ\exists \Lambda,\ \forall K,\ \lambda(K) \le \Lambda∃Λ, ∀K, λ(K)≤Λ. The paper asserts uniqueness without proof, citing a limit theorem for regular processes; bounded arrival rates make the process regular and hold for every example in the paper. Existence and the formula carry no added hypothesis.

  • Companion (6.3). System (N,L,M,R)∗(N, L, M, R)^*(N,L,M,R)∗ of §5 is not formalized in the paper and not here; only its case K∗=0K^* = 0K∗=0, kn∗=+∞k_n^* = +\inftykn∗​=+∞ is stated.

A trivializing formalization is ruled out: Balance and IsEquilibrium are stated for an arbitrary function on states and never mention www, WWW or π\piπ, and equilibrium is neither defined as (4.6) nor as detailed or partial balance.

Useful infrastructure: summation over Fin N → ℕ grouped by total (Finset.Nat.antidiagonalTuple), and a non-explosion and uniqueness theory for countable-state continuous-time chains, which is reusable beyond this mission. Not included: the limit lim⁡t→∞P(kˉ,t)=p(kˉ)\lim_{t\to\infty} P(\bar k, t) = p(\bar k)limt→∞​P(kˉ,t)=p(kˉ), which needs a construction of the process; the equivalence of (2.4) with finiteness of routings; Theorem (5.5) and (5.7)–(5.9).

Selected references

  • J. R. Jackson, Jobshop-Like Queueing Systems, Management Science 10(1), 131–142, 1963. https://doi.org/10.1287/mnsc.10.1.131
  • J. R. Jackson, Networks of Waiting Lines, Operations Research 5(4), 518–521, 1957. https://doi.org/10.1287/opre.5.4.518
  • W. J. Gordon and G. F. Newell, Closed Queuing Systems with Exponential Servers, Operations Research 15(2), 254–265, 1967. https://doi.org/10.1287/opre.15.2.254
  • F. P. Kelly, Reversibility and Stochastic Networks, Wiley, 1979. https://www.statslab.cam.ac.uk/~frank/BOOKS/book/whole.pdf
  • A. T. Bharucha-Reid, Elements of the Theory of Markov Processes and Their Applications, McGraw-Hill, 1960 (Theorem 2.9, p. 102, cited in footnote 5).
6 thms2 active usersReviewed
🏆Completed
Complexity TheoryLinear algebraOperations Research+1·Captain: mikedeng1

Some NP-Complete Problems in Quadratic and Nonlinear Programming: Copositivity Testing Is NP-Hard via Subset SumResearch Paper

Motivation

Nonlinear programming algorithms are routinely advertised as finding a local minimum. Most of them only certify first-order conditions (a KKT point), and the natural next question is whether a given feasible point is in fact a local minimum. For smooth problems where the Hessian is nonsingular this is a second-order test, but in the degenerate case the test itself becomes a combinatorial question about a quadratic form restricted to a cone.

K. G. Murty and S. N. Kabadi (Math. Programming 39 (1987) 117–129) showed that this question is intractable already in its simplest instance: deciding whether x=0x = 0x=0 is a local minimum of a quadratic form xTDxx^{\mathsf T}DxxTDx on the nonnegative orthant is NP-complete, and so is deciding whether a square integer matrix is copositive. The paper is the standard reference for the hardness of copositivity testing, which matters for copositive programming, for second-order optimality checks in constrained optimization, and for the complexity of local search in nonconvex optimization.

Setting

Let DDD be a real square matrix of order nnn and Q(x)=xTDxQ(x) = x^{\mathsf T}DxQ(x)=xTDx. The matrix DDD is copositive if Q(x)≥0Q(x) \ge 0Q(x)≥0 for every x≥0x \ge 0x≥0 (coordinatewise). The paper considers the quadratic program

(7)minimize Q(x)subject to x≥0,\text{(7)}\qquad \text{minimize } Q(x) \quad \text{subject to } x \ge 0,(7)minimize Q(x)subject to x≥0,

and the following questions, each phrased so that "yes" is the interesting answer:

  • Problem 1. Is x=0x = 0x=0 not a local minimum of (7)?
  • Problem 2. Is QQQ not bounded below on {x≥0}\{x \ge 0\}{x≥0}?
  • Problem 3. Is there an x≥0x \ge 0x≥0 with Q(x)<0Q(x) < 0Q(x)<0 (is DDD not copositive)?
  • Problem 4. Given a0>0a_0 > 0a0​>0, is there an x≥0x \ge 0x≥0 with eTx=a0e^{\mathsf T}x = a_0eTx=a0​ and Q(x)<0Q(x) < 0Q(x)<0? Here eee is the all-ones vector.
  • Problems 11, 12. With h(u)=(u12,…,un2) D (u12,…,un2)Th(u) = (u_1^2, \dots, u_n^2)\,D\,(u_1^2, \dots, u_n^2)^{\mathsf T}h(u)=(u12​,…,un2​)D(u12​,…,un2​)T, the objective of the unconstrained problem (15): is u=0u = 0u=0 not a local minimum of hhh on Rn\mathbb R^nRn, and is hhh not bounded below?

The source problem is subset sum (Problem 5): given positive integers d0;d1,…,dnd_0; d_1, \dots, d_nd0​;d1​,…,dn​, is there y∈{0,1}ny \in \{0,1\}^ny∈{0,1}n with ∑jdjyj=d0\sum_j d_j y_j = d_0∑j​dj​yj​=d0​? Let lll be the total number of digits in the data. The paper fixes an integer δ>4(d0∑jdj)2n3\delta > 4\big(d_0\sum_j d_j\big)^2 n^3δ>4(d0​∑j​dj​)2n3 and a rational ε\varepsilonε with 0<ε<2−nl20 < \varepsilon < 2^{-nl^2}0<ε<2−nl2, and defines functions of 2n2n2n nonnegative variables (y,s)(y, s)(y,s):

f1(y,s)=(∑jdjyj−d0)2+δ∑j(yj+sj−1)2+∑jyjsj,f_1(y,s) = \Big(\sum_j d_j y_j - d_0\Big)^2 + \delta\sum_j (y_j + s_j - 1)^2 + \sum_j y_j s_j,f1​(y,s)=(j∑​dj​yj​−d0​)2+δj∑​(yj​+sj​−1)2+j∑​yj​sj​,

f2=f1+2d0∑jdjyj(1−yj)f_2 = f_1 + 2d_0\sum_j d_j y_j(1 - y_j)f2​=f1​+2d0​∑j​dj​yj​(1−yj​), a homogeneous quadratic f4f_4f4​ that agrees with f2f_2f2​ on the set

P={(y,s):y≥0, s≥0, ∑j(yj+sj)=n},P = \Big\{(y,s) : y \ge 0,\ s \ge 0,\ \sum_j (y_j + s_j) = n\Big\},P={(y,s):y≥0, s≥0, j∑​(yj​+sj​)=n},

and f5=f4−(ε/n2)(∑j(yj+sj))2f_5 = f_4 - (\varepsilon/n^2)\big(\sum_j (y_j + s_j)\big)^2f5​=f4​−(ε/n2)(∑j​(yj​+sj​))2. The function f5f_5f5​ is a quadratic form xTMxx^{\mathsf T}MxxTMx in x=(y,s)∈R2nx = (y, s) \in \mathbb R^{2n}x=(y,s)∈R2n; the symmetric matrix MMM, with entries computed explicitly from d0,d,δ,εd_0, d, \delta, \varepsilond0​,d,δ,ε, is the output of the reduction.

Formalization targets

Goal: the reduction is correct

For positive integer data d0;d1,…,dnd_0; d_1, \dots, d_nd0​;d1​,…,dn​ and δ,ε\delta, \varepsilonδ,ε as above, with MMM the matrix of f5f_5f5​, the following are equivalent:

subset sum is solvable  ⟺  P1(M)  ⟺  P2(M)  ⟺  P3(M)  ⟺  M not copositive  ⟺  P4(M,n)  ⟺  P11(M)  ⟺  P12(M).\text{subset sum is solvable} \iff \text{P1}(M) \iff \text{P2}(M) \iff \text{P3}(M) \iff M \text{ not copositive} \iff \text{P4}(M, n) \iff \text{P11}(M) \iff \text{P12}(M).subset sum is solvable⟺P1(M)⟺P2(M)⟺P3(M)⟺M not copositive⟺P4(M,n)⟺P11(M)⟺P12(M).

This is the mathematical content of Theorems 1–3 and §4: a polynomially computable map from subset sum instances to matrices under which every one of these questions has the answer of the subset sum instance.

Milestones along the paper's chain

  1. Problems 5 and 6 are equivalent: subset sum is solvable iff some (y,s)∈P(y,s) \in P(y,s)∈P has f1≤0f_1 \le 0f1​≤0.
  2. Problems 6 and 7 are equivalent (f1f_1f1​ vs. f2f_2f2​ on PPP).
  3. Problems 7 and 8 are equivalent (f2f_2f2​ vs. f4f_4f4​ on PPP).
  4. Lemma 2: for an integer symmetric DDD of size LLL, the minimum of QQQ over [0,1]n[0,1]^n[0,1]n is 000 or at most −2−L-2^{-L}−2−L.
  5. Problems 8 and 9 are equivalent: ∃ (y,s)∈P\exists\,(y,s)\in P∃(y,s)∈P with f4≤0f_4 \le 0f4​≤0 iff ∃ (y,s)∈P\exists\,(y,s)\in P∃(y,s)∈P with f5<0f_5 < 0f5​<0.
  6. Problem 9 is a special case of Problem 4: f5(y,s)=xTMxf_5(y,s) = x^{\mathsf T}Mxf5​(y,s)=xTMx, and Problem 9 is Problem 4 for (M,a0=n)(M, a_0 = n)(M,a0​=n).
  7. Problems 3 and 4 are equivalent, for any DDD and a0>0a_0 > 0a0​>0.
  8. Problems 1 and 2 are equivalent to Problem 3, for any DDD.
  9. Problems 11 and 12 are equivalent to Problems 1 and 2, for any DDD.

Significance

The result. The equivalence shows that checking local optimality of a feasible point, checking boundedness of a quadratic objective on a cone, and checking copositivity are all at least as hard as subset sum, hence NP-hard. Through (15) the same holds for local minimality and boundedness of a quartic polynomial with no constraints at all. These facts are the standard justification for why nonconvex solvers settle for KKT points, and the copositivity part underlies the hardness of copositive programming.

The formalization. The paper's claims are proved, and have been cited for decades, but the proof as printed is a sketch: several steps are stated as "clearly" or "it can be verified", and one step of the proof of Theorem 1 (p. 125) is false as written. The inequality (δ/2)(yj+sj−1)2+2d0djyj(1−yj)≥0(\delta/2)(y_j + s_j - 1)^2 + 2d_0 d_j y_j(1 - y_j) \ge 0(δ/2)(yj​+sj​−1)2+2d0​dj​yj​(1−yj​)≥0 for yj>1y_j > 1yj​>1 fails for yjy_jyj​ slightly above 111, and the pointwise implication "f2≤0⇒f1≤0f_2 \le 0 \Rightarrow f_1 \le 0f2​≤0⇒f1​≤0 on PPP" has an explicit counterexample. The equivalence of Problems 6 and 7 itself survives numerical checks. A machine-checked proof of the goal settles the correctness of the reduction with the paper's own constants. No machine-checked proof of these statements exists on the platform.

Difficulty

The combinatorial direction (a subset sum solution gives a point with f5<0f_5 < 0f5​<0) is a computation. The converse direction carries the content, in two places.

First, passing from f1f_1f1​ to f2f_2f2​ trades the linear penalty for a quadratic one. This is harmless on the box 0≤y≤10 \le y \le 10≤y≤1 but not for yj>1y_j > 1yj​>1, where 2d0djyj(1−yj)2d_0d_jy_j(1-y_j)2d0​dj​yj​(1−yj​) is negative. The printed argument handles this coordinate by coordinate and is wrong there; a correct argument has to show that no point of PPP with f2≤0f_2 \le 0f2​≤0 exists unless a point with f1≤0f_1 \le 0f1​≤0 does, which requires a global use of the size of δ\deltaδ.

Second, passing from f4≤0f_4 \le 0f4​≤0 to f5<0f_5 < 0f5​<0 requires a quantitative gap: if f4>0f_4 > 0f4​>0 on PPP then min⁡Pf4≥ε\min_P f_4 \ge \varepsilonminP​f4​≥ε with ε\varepsilonε of only polynomially many bits. Lemma 2 provides such a gap for the unit box and integer matrices, but PPP is not the box and f4f_4f4​ has rational coefficients, so the lemma does not apply verbatim.

The remaining equivalences (Problems 1, 2, 3, 4, 11, 12 for a fixed matrix) follow from homogeneity of the quadratic form and the substitution xj=uj2x_j = u_j^2xj​=uj2​, and are routine.

Formalization scope

The data d0,dj,δd_0, d_j, \deltad0​,dj​,δ are natural numbers and ε\varepsilonε is rational; all are cast to R\mathbb RR in f1,…,f5f_1, \dots, f_5f1​,…,f5​ and MMM. The index j=1,…,nj = 1, \dots, nj=1,…,n is Fin n, and the 2n2n2n variables of MMM are indexed by Fin n ⊕ Fin n with x=x = x= Sum.elim y s. Standing hypotheses: dj>0d_j > 0dj​>0 and d0>0d_0 > 0d0​>0 (the paper's "all positive integers"); δ>4(d0∑jdj)2n3\delta > 4(d_0\sum_j d_j)^2n^3δ>4(d0​∑j​dj​)2n3 in N\mathbb NN; ε>0\varepsilon > 0ε>0 and ε⋅2nl2<1\varepsilon \cdot 2^{nl^2} < 1ε⋅2nl2<1 in Q\mathbb QQ. The size lll counts decimal digits. Problem 1 is local minimality relative to the orthant, Problem 11 is unconstrained local minimality, both in the Euclidean topology. Lemma 2 is stated for integer symmetric DDD (as §4 of the paper says, "as before … symmetric"), with LLL Schrijver's encoding size, since the paper does not define "the size of DDD"; the "optimum is 000 or ≤−2−L\le -2^{-L}≤−2−L" is stated as a disjunction without an infimum. The milestones on f2,f4,f5f_2, f_4, f_5f2​,f4​,f5​ over PPP assume n≥1n \ge 1n≥1, which the paper assumes tacitly; the goal needs no such hypothesis.

Not formalized: membership in NP (Lemma 1), the polynomial-time computability of MMM and its encoding size, the NP-completeness of subset sum (cited by the paper from Garey–Johnson), Theorem 4, and any of the words "NP-complete" or "NP-hard". The platform's complexity layer (Turing machines over bitstrings) has no subset sum problem and no encoding of rational matrices. The matrix MMM has rational entries; a positive integer multiple of it is the integer matrix of Theorem 3, has the same answer to every question, and the rescaling is not formalized. The §3 standing assumption "D is not PSD" is not imposed; the constructed matrix can be PSD and the equivalence holds regardless.

The goal is about the explicit matrix MMM, whose entries are given in the definitions; it is not about "some matrix whose quadratic form is f5f_5f5​", and the constants δ\deltaδ and ε\varepsilonε are the paper's explicit bounds, not "sufficiently large" or "for some ε\varepsilonε". A formalization that quantifies existentially over the matrix or the precision would be trivially true and is ruled out.

Contributions welcome: proofs of the matrix identity and the homogeneity arguments (milestones 6–9), a proof of Lemma 2 (which needs a Cramer/Hadamard bound on basic solutions of the linear complementarity system (9)), and a correct proof of the f1↔f2f_1 \leftrightarrow f_2f1​↔f2​ step. The copositivity definitions and milestones 7–9 are reusable for any later work on copositive programming.

Selected references

  • K. G. Murty and S. N. Kabadi, Some NP-complete problems in quadratic and nonlinear programming, Mathematical Programming 39 (1987) 117–129. https://doi.org/10.1007/BF02592948
  • M. R. Garey and D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979 (subset sum, problem [SP13]).
  • A. Schrijver, Theory of Linear and Integer Programming, Wiley, 1986 (encoding sizes, §2.1).
16 thms5 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization+1·Captain: mikedeng1

Approximation Algorithms for Combinatorial Problems I: The Subset-Sum Algorithms A_k Have Worst-Case Ratio (k+1)/kResearch Paper

Motivation

David S. Johnson's 1974 paper Approximation Algorithms for Combinatorial Problems (J. Comput. System Sci. 9 (1974) 256–278) is one of the founding papers of the theory of approximation algorithms. It asks, for optimization problems whose decision versions Karp had just shown to be polynomial complete, how close a fast heuristic can be guaranteed to come to the optimum in the worst case, and it measures this with a worst-case performance ratio that is still the standard yardstick.

Its first example is SUBSET-SUM, the simplest form of the knapsack problem: pack items of given sizes into a knapsack of capacity bbb so as to fill it as much as possible. For this problem the paper gives a family of algorithms AkA_kAk​, one for each k≥1k \ge 1k≥1, whose guaranteed ratio (k+1)/k(k+1)/k(k+1)/k tends to 111. It is one of the first examples of what is now called a polynomial-time approximation scheme: for every ϵ>0\epsilon > 0ϵ>0 there is a polynomial-time algorithm within a factor 1+ϵ1 + \epsilon1+ϵ of optimal. Sahni (1975) extended the idea to the knapsack problem with utilities, and Ibarra and Kim (1975) later obtained fully polynomial schemes for knapsack and subset-sum.

This mission formalizes Theorem 1 of the paper, the performance guarantee of AkA_kAk​ together with its tightness.

Setting

An input ⟨T,s,b⟩\langle T, s, b\rangle⟨T,s,b⟩ of SUBSET-SUM is a finite set TTT, a positive rational size s(x)s(x)s(x) for every x∈Tx \in Tx∈T, and a positive rational bound bbb. An approximate solution is a subset T′⊆TT' \subseteq TT′⊆T with m(T′)≤bm(T') \le bm(T′)≤b, where the measure is m(T′)=∑x∈T′s(x)m(T') = \sum_{x \in T'} s(x)m(T′)=∑x∈T′​s(x). The problem is a maximization problem with optimal measure

⟨T,s,b⟩∗=max⁡{ m(T′):T′⊆T, m(T′)≤b }.\langle T, s, b\rangle^* = \max\{\, m(T') : T' \subseteq T,\ m(T') \le b \,\}.⟨T,s,b⟩∗=max{m(T′):T′⊆T, m(T′)≤b}.

Fix k≥1k \ge 1k≥1 and call xxx big if s(x)>b/(k+1)s(x) > b/(k+1)s(x)>b/(k+1) and small otherwise. Algorithm AkA_kAk​ keeps a set SUB\mathrm{SUB}SUB, its measure SUM\mathrm{SUM}SUM, and the remaining elements LEFT\mathrm{LEFT}LEFT:

  1. SUB\mathrm{SUB}SUB is a subset of the big elements whose measure is as large as possible without exceeding bbb; SUM=m(SUB)\mathrm{SUM} = m(\mathrm{SUB})SUM=m(SUB) and LEFT=T∖SUB\mathrm{LEFT} = T \setminus \mathrm{SUB}LEFT=T∖SUB.
  2. If s(x)+SUM>bs(x) + \mathrm{SUM} > bs(x)+SUM>b for every x∈LEFTx \in \mathrm{LEFT}x∈LEFT, return SUB\mathrm{SUB}SUB.
  3. Otherwise pick y∈LEFTy \in \mathrm{LEFT}y∈LEFT with s(y)+SUMs(y) + \mathrm{SUM}s(y)+SUM as large as possible without exceeding bbb, move it from LEFT\mathrm{LEFT}LEFT to SUB\mathrm{SUB}SUB, add s(y)s(y)s(y) to SUM\mathrm{SUM}SUM, and return to step 2.

Steps 1 and 3 may have ties. Following the paper, a set T1T_1T1​ is choosable by AkA_kAk​ if some resolution of all ties produces it, and the performance Ak(u)A_k(u)Ak​(u) on input uuu is the smallest measure of a choosable output. The ratio is r(Ak,u)=u∗/Ak(u)≥1r(A_k, u) = u^*/A_k(u) \ge 1r(Ak​,u)=u∗/Ak​(u)≥1, and R[Ak](n)R[A_k](n)R[Ak​](n) is its maximum over inputs of size at most nnn.

Formalization targets

Goal: Theorem 1 (p. 260)

For k≥1k \ge 1k≥1 and n>0n > 0n>0,

R[Ak](n)≤k+1k,lim⁡n→∞R[Ak](n)=k+1k.R[A_k](n) \le \frac{k+1}{k}, \qquad \lim_{n \to \infty} R[A_k](n) = \frac{k+1}{k}.R[Ak​](n)≤kk+1​,n→∞lim​R[Ak​](n)=kk+1​.

Formally, for every k≥1k \ge 1k≥1: every choosable output T1T_1T1​ of every input satisfies k ⟨T,s,b⟩∗≤(k+1) m(T1)k\,\langle T,s,b\rangle^* \le (k+1)\,m(T_1)k⟨T,s,b⟩∗≤(k+1)m(T1​); and for every δ>0\delta > 0δ>0 some input has a choosable output T1T_1T1​ with m(T1)>0m(T_1) > 0m(T1​)>0 and ⟨T,s,b⟩∗>(k+1k−δ) m(T1)\langle T,s,b\rangle^* > \big(\tfrac{k+1}{k} - \delta\big)\,m(T_1)⟨T,s,b⟩∗>(kk+1​−δ)m(T1​).

Milestones

  1. For T1T_1T1​ choosable and T0T_0T0​ any approximate solution, m(T1BIG)≥m(T0BIG)m(T_1^{\mathrm{BIG}}) \ge m(T_0^{\mathrm{BIG}})m(T1BIG​)≥m(T0BIG​) (p. 260).
  2. If a small x∈Tx \in Tx∈T is not in a choosable T1T_1T1​, then s(x)+m(T1)>bs(x) + m(T_1) > bs(x)+m(T1​)>b, hence m(T1)>kb/(k+1)≥kk+1⟨T,s,b⟩∗m(T_1) > kb/(k+1) \ge \tfrac{k}{k+1}\langle T,s,b\rangle^*m(T1​)>kb/(k+1)≥k+1k​⟨T,s,b⟩∗ (p. 261).
  3. The stronger dichotomy: m(T1)=⟨T,s,b⟩∗m(T_1) = \langle T,s,b\rangle^*m(T1​)=⟨T,s,b⟩∗ or m(T1)≥kk+1 bm(T_1) \ge \tfrac{k}{k+1}\,bm(T1​)≥k+1k​b (p. 260).
  4. The lower-bound input T={a1,…,ak+2}T = \{a_1,\dots,a_{k+2}\}T={a1​,…,ak+2​}, s(a1)=1+εs(a_1) = 1+\varepsilons(a1​)=1+ε, s(ai)=1s(a_i) = 1s(ai​)=1 otherwise, b=k+1b = k+1b=k+1: its optimum is k+1k+1k+1, some output is choosable, and every choosable output has measure k+εk + \varepsilonk+ε (p. 261).

Significance

Theorem 1 shows that SUBSET-SUM admits polynomial-time algorithms with any worst-case ratio above 111, in contrast with the other problems of the paper (set covering, graph colouring, maximum clique), whose best known ratios grow with the input. The algorithms AkA_kAk​ are an early instance of the partial-enumeration schemes later used for knapsack-type problems. The tightness half shows that the analysis of AkA_kAk​ itself cannot be sharpened.

The theorem has a short published proof, but no machine-checked version is known; there is no subset-sum or knapsack approximation result on the platform. The mission produces a reusable model of SUBSET-SUM, a model of nondeterministic algorithms through a run relation that captures every tie-break, and a checked proof that the worst case is exactly (k+1)/k(k+1)/k(k+1)/k. The same modelling pattern (choosable outputs, worst-case ratio taken over them) is used in the sibling missions of this series for MAX-SAT, set covering and exact covering.

Difficulty

The arithmetic of the upper bound is short; the difficulty is in reasoning about the algorithm as a nondeterministic process. The natural first attempt, implementing AkA_kAk​ as a function with a fixed tie-breaking rule, proves a weaker statement: the guarantee must hold for every output the algorithm may return, including adversarial ties in step 1 (several maximum-measure sets of big elements) and step 3. Facts that are obvious for a single run, such as SUM\mathrm{SUM}SUM always equalling m(SUB)m(\mathrm{SUB})m(SUB) or which elements can enter SUB\mathrm{SUB}SUB after step 1, have to be established for the run relation as a whole. The lower bound requires tracing the run on the explicit input for general kkk: exactly k−1k-1k−1 unit elements are added after a1a_1a1​, and this must be shown for every choosable run, not only for one.

Formalization scope

  • Numbers. Sizes and the bound are rationals (ℚ), as in the paper; sizes are required to be positive on TTT and b>0b > 0b>0. The index kkk is a natural number with 1≤k1 \le k1≤k as a hypothesis; b/(k+1)b/(k+1)b/(k+1) is rational division, and "big" is the strict inequality s(x)>b/(k+1)s(x) > b/(k+1)s(x)>b/(k+1).
  • Optimum. opt u is Finset.sup' of the measure over the finite set of approximate solutions, which always contains ∅\emptyset∅; it is 000 when no element fits.
  • Run relation. Choosable k u T₁ states that some admissible step 1 choice, followed by a finite chain of admissible iterations (Relation.ReflTransGen), reaches a halting state returning T1T_1T1​. Every "closest to, without exceeding" is an existential choice among all maximizers.
  • Size-free restatement. The paper's input size ∣u∣|u|∣u∣ ("in some standard notation") is never fixed, so the goal quantifies over all inputs instead of over sizes. The upper bound for all choosable outputs is equivalent to R[Ak](n)≤(k+1)/kR[A_k](n) \le (k+1)/kR[Ak​](n)≤(k+1)/k for all nnn; since R[Ak]R[A_k]R[Ak​] is nondecreasing, the limit claim is equivalent to the supremum of the ratio over all inputs being (k+1)/k(k+1)/k(k+1)/k, which is the second part.
  • Multiplicative ratios. No ratio is written as a division, so an output of measure 000 cannot satisfy a bound vacuously; the lower-bound part requires m(T1)>0m(T_1) > 0m(T1​)>0. The value (k+1)/k(k+1)/k(k+1)/k is not claimed to be attained: the paper's family has ratio (k+1)/(k+ε)(k+1)/(k+\varepsilon)(k+1)/(k+ε).
  • Lower-bound input. A def on Fin (k + 2) exactly as on the page, with 0<ε<10 < \varepsilon < 10<ε<1 (the page leaves the range implicit; ε<1\varepsilon < 1ε<1 keeps a1a_1a1​ the only big element that fits when k=1k = 1k=1).
  • Ruled out. A formalization with a deterministic tie-break, with a bound of the form opt/m≤c\mathrm{opt}/m \le copt/m≤c in a field where x/0=0x/0 = 0x/0=0, or with tightness for a single fixed kkk would be trivial or weaker; none of these is the target.

Contributions welcome: proofs of the milestones and the goal, invariant lemmas for the run relation, and further sanity checks on small inputs. The running-time remark (O(nk)O(n^k)O(nk) for step 1) and Sahni's knapsack extension are not part of the mission.

Selected references

  • D. S. Johnson, Approximation algorithms for combinatorial problems, Journal of Computer and System Sciences 9 (1974) 256–278. https://doi.org/10.1016/S0022-0000(74)80044-9
  • S. Sahni, Approximate algorithms for the 0/1 knapsack problem, Journal of the ACM 22 (1975) 115–124. https://doi.org/10.1145/321864.321873
  • O. H. Ibarra, C. E. Kim, Fast approximation algorithms for the knapsack and sum of subset problems, Journal of the ACM 22 (1975) 463–468. https://doi.org/10.1145/321906.321909
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum (1972) 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
8 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization+1·Captain: mikedeng1

Approximation Algorithms for Combinatorial Problems II: The Greedy Literal Algorithm B1 Has Worst-Case Ratio (k+1)/k on MS(k)Research Paper

Motivation

Maximum satisfiability asks for a truth assignment satisfying as many clauses of a propositional formula as possible. The paper notes that the restriction MS(k)MS(k)MS(k), in which every clause has at least kkk literals, is polynomial complete for every k≥1k \ge 1k≥1, so exact optimization is out of reach in general and one asks instead how close a fast algorithm is guaranteed to come. David S. Johnson's 1974 paper Approximation Algorithms for Combinatorial Problems (J. Comput. System Sci. 9, 256–278) set up a framework for exactly this question — optimization problems, nondeterministic approximation algorithms, and the worst-case ratio between the optimum and the algorithm's output — and applied it to subset-sum, maximum satisfiability, set covering, graph coloring and maximum clique. It is one of the founding papers of the theory of approximation algorithms.

Section 4 of the paper treats maximum satisfiability with two algorithms. This mission covers the first, a greedy literal-selection rule called B1, and its exact worst-case ratio (Theorem 2). A companion mission covers the weighted algorithm B2 (Theorem 3).

Timeline, for orientation:

  • 1971–1972: Cook and Karp establish NP-completeness of satisfiability and of many combinatorial problems.
  • 1974: Johnson proves that B1 has worst-case ratio exactly (k+1)/k(k+1)/k(k+1)/k on MS(k)MS(k)MS(k) and that the weighted algorithm B2 achieves 2k/(2k−1)2^k/(2^k-1)2k/(2k−1) (Theorems 2 and 3).
  • 1990s: semidefinite and LP-based algorithms (Goemans–Williamson, SIAM J. Discrete Math. 1994) improve the constants for general MAX-SAT.

Setting

Let L=⋃i>0{xi,xˉi}L = \bigcup_{i>0}\{x_i, \bar x_i\}L=⋃i>0​{xi​,xˉi​} be the set of literals; the complement of xix_ixi​ is xˉi\bar x_ixˉi​ and conversely. A clause is a finite set C⊆LC \subseteq LC⊆L. A truth assignment is a set T⊆LT \subseteq LT⊆L containing no complementary pair {xi,xˉi}\{x_i, \bar x_i\}{xi​,xˉi​}; it may leave variables unassigned. TTT satisfies CCC if C∩T≠∅C \cap T \ne \emptysetC∩T=∅.

An input is a finite set SSS of clauses. Its feasible solutions are the subsets S′⊆SS' \subseteq SS′⊆S satisfied by a single truth assignment, measured by ∣S′∣|S'|∣S′∣, and the optimum is

S∗=max⁡{∣S′∣:S′⊆S, some truth assignment satisfies every C∈S′}.S^* = \max\{|S'| : S' \subseteq S,\ \text{some truth assignment satisfies every } C \in S'\}.S∗=max{∣S′∣:S′⊆S, some truth assignment satisfies every C∈S′}.

The subproblem MS(k)MS(k)MS(k) admits only inputs whose clauses each contain at least kkk distinct literals.

Algorithm B1 keeps four variables: SUB (clauses already satisfied), LEFT (clauses not yet satisfied), TRUE (literals made true) and LIT (literals still available). It starts with SUB === TRUE =∅= \emptyset=∅, LEFT =S= S=S, LIT =L= L=L. While some literal of LIT occurs in a clause of LEFT, it picks a literal y∈y \iny∈ LIT contained in the most clauses of LEFT, moves those clauses YTYTYT from LEFT to SUB, adds yyy to TRUE, and removes yyy and yˉ\bar yyˉ​ from LIT. When no literal of LIT occurs in LEFT it returns SUB.

The choice of yyy is not determined when several literals tie. Following the paper's framework, every output reachable by some sequence of admissible choices is choosable, and the performance of B1 on SSS is the smallest ∣X∣|X|∣X∣ over choosable outputs XXX. The worst-case ratio on inputs of size at most nnn is

R[B1,MS(k)](n)=max⁡{S∗/B1(S):S∈MS(k), ∣S∣≤n}.R[B1, MS(k)](n) = \max\{S^*/B1(S) : S \in MS(k),\ |S| \le n\}.R[B1,MS(k)](n)=max{S∗/B1(S):S∈MS(k), ∣S∣≤n}.

Formalization targets

Goal: Theorem 2 (p. 262)

For all k≥1k \ge 1k≥1,

R[B1,MS(k)](n)≤k+1kfor all n>0,R[B1, MS(k)](n) \le \frac{k+1}{k}\quad\text{for all } n > 0,R[B1,MS(k)](n)≤kk+1​for all n>0,

with equality for all sufficiently large nnn. In the size-free form used here: every choosable output XXX on every S∈MS(k)S \in MS(k)S∈MS(k) satisfies k S∗≤(k+1) ∣X∣k\,S^* \le (k+1)\,|X|kS∗≤(k+1)∣X∣, and for every k≥1k \ge 1k≥1 some S∈MS(k)S \in MS(k)S∈MS(k) has a choosable XXX with ∣X∣>0|X| > 0∣X∣>0 and k S∗=(k+1) ∣X∣k\,S^* = (k+1)\,|X|kS∗=(k+1)∣X∣.

Milestones (from the proof of Theorem 2, pp. 262–263)

  1. In each iteration, the number of clauses saved (added to SUB) is at least the number of clauses remaining in LEFT that are wounded (lose a literal from LIT without being satisfied).
  2. When B1 halts, every clause left in LEFT is dead: each of its literals has had its complement made true.
  3. When B1 halts on an input of MS(k)MS(k)MS(k), ∣SUB∣≥k ∣LEFT∣|\mathrm{SUB}| \ge k\,|\mathrm{LEFT}|∣SUB∣≥k∣LEFT∣, and SUB and LEFT partition SSS.
  4. On the four-clause input {{x1,x2,x3},{xˉ1,x4,x5},{xˉ2,x6,x7},{xˉ3,x8,x9}}\{\{x_1,x_2,x_3\},\{\bar x_1,x_4,x_5\},\{\bar x_2,x_6,x_7\},\{\bar x_3,x_8,x_9\}\}{{x1​,x2​,x3​},{xˉ1​,x4​,x5​},{xˉ2​,x6​,x7​},{xˉ3​,x8​,x9​}} of MS(3)MS(3)MS(3), S∗=4S^* = 4S∗=4 while B1 may return three clauses.

Significance

The bound is stronger than a ratio: milestone 3 shows that B1 always satisfies at least kk+1∣S∣\tfrac{k}{k+1}|S|k+1k​∣S∣ clauses, whatever the optimum. The tightness half shows that this simple greedy rule cannot be analysed any better, which is what motivated the weighted algorithm B2 of the same section, with ratio 2k/(2k−1)2^k/(2^k-1)2k/(2k−1). The pair of theorems is an early instance of a now standard pattern: a potential-style counting argument for an upper bound, and an adversarial tie-breaking instance for the matching lower bound.

The result is proved in the paper; it has not, to our knowledge, been machine-checked. This mission produces a formal model of Johnson's framework for a maximization problem with a nondeterministic algorithm, a formal proof of the upper bound through the "saved versus wounded" accounting, and explicit tightness instances for every k≥1k \ge 1k≥1. The paper spells out only k=3k = 3k=3 and states that "similar examples can be constructed for any other k>0k > 0k>0"; the formal goal requires them for all kkk.

Difficulty

The upper bound needs an invariant over entire runs, not over a single step: a clause wounded in one iteration may be saved in a later one, so wounds and saves must be tallied globally, and the count of wounds received by a clause that ends in LEFT must be matched with its number of literals. That matching relies on the facts that B1 never makes both a literal and its complement true and that a clause containing a true literal has already left LEFT. Clauses containing both xix_ixi​ and xˉi\bar x_ixˉi​ are allowed and have to be handled.

The lower bound cannot be obtained from a fixed tie-breaking rule: the attaining run chooses negative literals whose count merely ties the maximum. For general kkk the instance has to be built so that every literal occurs in few enough clauses that the adversarial choice is admissible at every step; at k=1k = 1k=1 the paper's pattern degenerates and needs adjusting.

Formalization scope

  • A literal is a pair (variable index in N\mathbb NN, sign); a clause is a Finset of literals; an input is a Finset of clauses, so duplicate clauses are not allowed, as on the page. Tautological clauses are allowed.
  • A truth assignment is a Set of literals without a complementary pair (partial, as in the paper). S∗S^*S∗ is the maximum of ∣S′∣|S'|∣S′∣ over the finite nonempty family of satisfiable subsets, taken with Finset.sup'.
  • B1 is a nondeterministic run relation: a state holds SUB, LEFT, TRUE and the set of decided variables (LIT is its complement, since LLL is infinite); one step chooses any literal of LIT, of either sign, with maximum count; "choosable" is reachability of a halting state with the given SUB. No tie-break is fixed. A formalization that picks a variable and then its better sign, or that resolves ties deterministically, is a different algorithm and would make the tightness half false.
  • The ratio R[B1,MS(k)](n)R[B1, MS(k)](n)R[B1,MS(k)](n), whose problem size is left unspecified in the paper, is replaced by its size-free equivalent, and ratios are written multiplicatively in N\mathbb NN: k S∗≤(k+1)∣X∣k\,S^* \le (k+1)|X|kS∗≤(k+1)∣X∣. The tightness half requires ∣X∣>0|X| > 0∣X∣>0, so the empty input cannot witness it.
  • The running time O(nlog⁡n)O(n \log n)O(nlogn) is not stated.

Welcome contributions: proofs of the milestones, the invariants of reachable B1 states (SUB and LEFT partition SSS; TRUE is consistent and exactly covers the decided variables; no clause of LEFT meets TRUE), and the family of tightness instances for general kkk. The run-relation encoding of choosable outputs is reusable for the other algorithms of the paper.

Selected references

  • D. S. Johnson, Approximation algorithms for combinatorial problems, Journal of Computer and System Sciences 9 (1974), 256–278. https://doi.org/10.1016/S0022-0000(74)80044-9
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
  • M. X. Goemans and D. P. Williamson, New 3/4-approximation algorithms for the maximum satisfiability problem, SIAM Journal on Discrete Mathematics 7 (1994), 656–666. https://doi.org/10.1137/S0895480192243516
8 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization+1·Captain: mikedeng1

Approximation Algorithms for Combinatorial Problems IV: Greedy Set Cover C1 Has Worst-Case Ratio H(k) on SC(k)Research Paper

Motivation

Set covering asks for the fewest members of a family of sets whose union is everything the family covers. It models crew scheduling, facility siting, test-suite reduction, logic minimization and fault testing; Johnson names the last two as its practical applications. Karp showed in 1972 that the decision version is NP-complete (Karp 1972), so in practice one runs a heuristic and asks how far from optimal it can be.

David S. Johnson's 1974 paper Approximation Algorithms for Combinatorial Problems (JCSS 9, 256–278) is one of the founding papers of the worst-case analysis of approximation algorithms. For set covering it analyses the obvious greedy rule, repeatedly take a set that covers the most still-uncovered points, and proves that on families whose sets have at most kkk elements its output is never more than the harmonic number H(k)=∑j=1k1/jH(k) = \sum_{j=1}^k 1/jH(k)=∑j=1k​1/j times the optimum, and that this factor is attained.

Timeline.

  • 1974: Johnson proves the H(k)H(k)H(k) bound for unweighted set cover with sets of size at most kkk, together with a matching family of examples (this mission).
  • 1975: Lovász proves the same bound for the fractional relaxation, giving an integrality-gap statement (Lovász 1975).
  • 1979: Chvátal extends the bound to weighted set cover, with the greedy rule choosing the set of least cost per newly covered point (Chvátal 1979).
  • 1998: Feige shows that no polynomial-time algorithm achieves (1−ε)ln⁡n(1-\varepsilon)\ln n(1−ε)lnn unless NP has slightly superpolynomial deterministic algorithms (Feige 1998), so the greedy guarantee is essentially the best possible.

Setting

An input FFF of SET COVERING I is a finite family {S1,…,Sp}\{S_1, \dots, S_p\}{S1​,…,Sp​} of finite sets. The set to be covered is T=⋃S∈FST = \bigcup_{S \in F} ST=⋃S∈F​S. A subcover is a subfamily F′⊆FF' \subseteq FF′⊆F with ⋃S∈F′S=T\bigcup_{S \in F'} S = T⋃S∈F′​S=T, and its measure is ∣F′∣|F'|∣F′∣. The optimum F∗F^*F∗ is the minimum measure of a subcover; FFF itself is a subcover, so the minimum exists. The subproblem SC(k) restricts the inputs to families no set of which has more than kkk elements.

Algorithm C1 keeps a family SUB of chosen sets, the set UNCOV of uncovered points, and an array SET[i][i][i] holding the still-uncovered part of SiS_iSi​. It starts with SUB =∅= \emptyset=∅, UNCOV =T= T=T, SET[i]=Si[i] = S_i[i]=Si​. While UNCOV is nonempty it chooses an index jjj with ∣SET[j]∣|\mathrm{SET}[j]|∣SET[j]∣ maximal, adds SjS_jSj​ to SUB, and removes SET[j][j][j] from UNCOV and from every SET[i][i][i]. When UNCOV is empty it returns SUB. When several indices tie at Step 3 any of them may be chosen, so one input can have several choosable outputs. Following Section 2 of the paper, the algorithm's value C1(F)C1(F)C1(F) is the worst choosable output, here the largest, and the ratio is r(C1,F)=C1(F)/F∗r(C1, F) = C1(F)/F^*r(C1,F)=C1(F)/F∗.

For the proof the paper introduces configurations K=⟨NK,UNCOVK,⟨SETK[1],…,SETK[NK]⟩⟩K = \langle N_K, \mathrm{UNCOV}_K, \langle \mathrm{SET}_K[1], \dots, \mathrm{SET}_K[N_K]\rangle\rangleK=⟨NK​,UNCOVK​,⟨SETK​[1],…,SETK​[NK​]⟩⟩ with ⋃iSETK[i]=UNCOVK\bigcup_i \mathrm{SET}_K[i] = \mathrm{UNCOV}_K⋃i​SETK​[i]=UNCOVK​, runs from a configuration (sequences of admissible choices ending when UNCOV is empty), Numbers(R)\mathrm{Numbers}(R)Numbers(R), the set of indices chosen in a run RRR, and calls a set MMM selectable from KKK if M=Numbers(R)M = \mathrm{Numbers}(R)M=Numbers(R) for some run RRR from KKK. Write n(K,i)=∣SETK[i]∣n(K, i) = |\mathrm{SET}_K[i]|n(K,i)=∣SETK​[i]∣.

Formalization targets

Goal: Theorem 4

For every k≥1k \ge 1k≥1:

for every input F∈SC(k) and every choosable F1:∣F1∣≤H(k)⋅F∗,\text{for every input } F \in SC(k) \text{ and every choosable } F_1:\quad |F_1| \le H(k)\cdot F^*,for every input F∈SC(k) and every choosable F1​:∣F1​∣≤H(k)⋅F∗, and some F∈SC(k) with F∗>0 has a choosable F1 with ∣F1∣=H(k)⋅F∗.\text{and some } F \in SC(k) \text{ with } F^* > 0 \text{ has a choosable } F_1 \text{ with } |F_1| = H(k)\cdot F^*.and some F∈SC(k) with F∗>0 has a choosable F1​ with ∣F1​∣=H(k)⋅F∗.

The paper states this as R[C1,SC(k)](n)≤∑j=1k(1/j)R[C1, SC(k)](n) \le \sum_{j=1}^k (1/j)R[C1,SC(k)](n)≤∑j=1k​(1/j) for all n>0n > 0n>0, with equality for all sufficiently large nnn. The two-part form above is the size-free equivalent.

Milestones

  1. Lemma 1. For a subcover F1F_1F1​ with index set M1={i:Si∈F1}M1 = \{i : S_i \in F_1\}M1={i:Si​∈F1​} and KKK the configuration after Step 1: F1F_1F1​ is choosable by C1 if and only if M1M1M1 is selectable from KKK.
  2. Lemma 2. For any configuration KKK, any M1M1M1 selectable from KKK and any M0M0M0 with ⋃i∈M0SETK[i]=UNCOVK\bigcup_{i \in M0} \mathrm{SET}_K[i] = \mathrm{UNCOV}_K⋃i∈M0​SETK​[i]=UNCOVK​:
∣M1∣≤∑i∈M0∑j=1n(K,i)1j.|M1| \le \sum_{i \in M0} \sum_{j=1}^{n(K,i)} \frac{1}{j}.∣M1∣≤i∈M0∑​j=1∑n(K,i)​j1​.
  1. Fig. 1. For every k≥1k \ge 1k≥1 there is an explicit input of SC(k)SC(k)SC(k) on k⋅k!k \cdot k!k⋅k! points with F∗=k!F^* = k!F∗=k! and a choosable output of k! H(k)k!\,H(k)k!H(k) sets.

Significance

The result. Theorem 4 is the first proof that greedy set cover has a worst-case guarantee depending only on the largest set size, and it pins the guarantee down exactly: the constant H(k)H(k)H(k) cannot be lowered for any kkk. Since H(k)≤1+ln⁡kH(k) \le 1 + \ln kH(k)≤1+lnk, it also gives the well-known 1+ln⁡n1 + \ln n1+lnn bound for general inputs. The H(k)H(k)H(k) bound and its later refinements are the standard reference point for analyses of greedy covering, dual fitting and submodular covering.

Formalizing it. The theorem has been proved since 1974. As far as a search of the platform shows, no machine-checked proof of it exists: the platform holds a Kearns–Vazirani-style statement ComputationalLearning.greedy_set_cover (the opt⋅ln⁡∣U∣\mathrm{opt}\cdot\ln|U|opt⋅ln∣U∣ form for a greedy sequence, still open) and a dual-fitting certificate lemma for weighted set cover, neither of which covers the SC(k)SC(k)SC(k) bound, the tie-breaking semantics or the tightness construction. A complete development provides both halves of Theorem 4, the configuration and run machinery of Lemmas 1–2, and the explicit Fig. 1 family.

Difficulty

The obvious argument charges each chosen set to the points it newly covers and compares the charges with an optimal cover. A statement about the initial input alone, with the original sizes of the optimal sets, does not survive a single greedy step: after a step the optimal sets are only partly uncovered and the remaining run faces a different instance. This is why Lemma 2 is stated for an arbitrary configuration, in terms of the current sizes n(K,i)n(K, i)n(K,i), and for an arbitrary covering subfamily M0M0M0. Because Step 3 breaks ties arbitrarily, the statement must hold for every admissible run, and a formalization that fixes one tie-breaking rule proves a weaker upper bound and cannot express the tightness example, which relies on adversarial ties at every stage.

For the tightness half, the difficulty is bookkeeping: showing that the k!/jk!/jk!/j blocks of each segment are admissible choices at each stage and that no cover uses fewer than k!k!k! sets.

Formalization scope

  • An input is an indexed family S : ι → Finset α over a finite index type ι and a ground type with decidable equality. The indices play the role of 1,…,N1, \dots, N1,…,N; two indices may carry the same set, which only widens the input class. The family, subcovers and F∗F^*F∗ are taken over the set of sets family S, as on the page. F∗F^*F∗ is a Finset.inf' over the nonempty finite set of subcovers; if T=∅T = \emptysetT=∅ then F∗=0F^* = 0F∗=0.
  • C1 is a nondeterministic step relation: a step is allowed for every index maximizing ∣SET[j]∣|\mathrm{SET}[j]|∣SET[j]∣. An output is choosable if a finite chain of steps from the initial state reaches a halting state with that SUB. No tie-breaking rule is fixed.
  • The paper's R[A,P](n)R[A, P](n)R[A,P](n) is a maximum over inputs of size at most nnn in an unspecified notation; it is replaced by the size-free two-part statement above, which is equivalent because RRR is a maximum over finitely many inputs and nondecreasing in nnn.
  • Ratios are stated multiplicatively in Q\mathbb{Q}Q (∣F1∣≤H(k)⋅F∗|F_1| \le H(k)\cdot F^*∣F1​∣≤H(k)⋅F∗), never as a quotient, so an input with F∗=0F^* = 0F∗=0 does not make the bound vacuous, and the attainment part requires F∗>0F^* > 0F∗>0. H(k)H(k)H(k) is Mathlib's harmonic k.
  • Configurations carry the covering condition as a field; runs are an inductive predicate on the list of chosen indices; Selectable K M means MMM is the set of indices of some run.
  • Lemma 1 assumes the family's sets are pairwise distinct (the paper's family is a set of sets); without that the index set {i:Si∈F1}\{i : S_i \in F_1\}{i:Si​∈F1​} may contain a duplicate index C1 never chose.
  • Trivializing formalizations are ruled out: a deterministic tie-break, a ratio written as a division, the original set sizes in place of n(K,i)n(K, i)n(K,i) in Lemma 2, or an attaining input with F∗=0F^* = 0F∗=0 would each change the theorem.

Contributions welcome: proofs of Lemma 2 (the core induction), of Lemma 1, of the Fig. 1 run, and of Theorem 4 from these; the configuration/run layer and the Fig. 1 family are reusable for other greedy covering analyses.

Selected references

  • David S. Johnson, Approximation algorithms for combinatorial problems, Journal of Computer and System Sciences 9 (1974), 256–278. https://doi.org/10.1016/S0022-0000(74)80044-9
  • Richard M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
  • László Lovász, On the ratio of optimal integral and fractional covers, Discrete Mathematics 13 (1975), 383–390. https://doi.org/10.1016/0012-365X(75)90058-8
  • Vašek Chvátal, A greedy heuristic for the set-covering problem, Mathematics of Operations Research 4 (1979), 233–235. https://doi.org/10.1287/moor.4.3.233
  • Uriel Feige, A threshold of ln n for approximating set cover, Journal of the ACM 45 (1998), 634–652. https://doi.org/10.1145/285055.285059
8 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization+1·Captain: mikedeng1

Approximation Algorithms for Combinatorial Problems V: The Overlap-Ratio Greedy C2 Is Within 1 + ln k of the Least-Overlap Cover on EC(k)Research Paper

Motivation

David S. Johnson's 1974 paper Approximation Algorithms for Combinatorial Problems (J. Comput. System Sci. 9 (1974) 256–278) was one of the first systematic worst-case analyses of polynomial-time heuristics for NP-complete optimization problems. Its Section 5 proves the harmonic bound ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j for the greedy algorithm on minimum-cardinality set cover, a result that still underlies the standard ln⁡n\ln nlnn approximation guarantee.

Section 6, the subject of this mission, asks what happens when the cost of a cover is its total size rather than its number of sets. This problem, SET COVERING II (EC), is the optimization version of the EXACT COVER recognition problem of Karp's list (Karp 1972): a family has a disjoint subcover exactly when the optimum equals the number of covered points. Johnson shows that the change of measure breaks the cardinality greedy but that a greedy rule based on an overlap ratio recovers essentially the same guarantee. The same accounting (paying for each newly covered point) later became the standard analysis of greedy weighted set cover (Chvátal 1979).

Setting

An input is a finite family F={S1,…,Sp}F = \{S_1, \dots, S_p\}F={S1​,…,Sp​} of finite sets. Its covered set is T=⋃S∈FST = \bigcup_{S \in F} ST=⋃S∈F​S. A subcover is a subfamily F′⊆FF' \subseteq FF′⊆F with ⋃S∈F′S=T\bigcup_{S\in F'} S = T⋃S∈F′​S=T, and its measure is

mEC(F′)=∑S∈F′∣S∣.m_{EC}(F') = \sum_{S \in F'} |S|.mEC​(F′)=S∈F′∑​∣S∣.

The optimum F∗F^*F∗ is the least measure of a subcover; since every subcover has measure at least ∣T∣|T|∣T∣, an optimal subcover is one with the least possible overlapping. The subproblem EC(k)(k)(k) admits only families in which every set has at most kkk points.

Algorithm C2 keeps a subfamily SUB (initially empty), the unused sets LEFT (initially FFF) and the uncovered points UNCOV (initially TTT). While UNCOV is nonempty it chooses S′∈S' \inS′∈ LEFT minimizing

Ratio(S)=∣S−UNCOV∣∣S∩UNCOV∣,\mathrm{Ratio}(S) = \frac{|S - \mathrm{UNCOV}|}{|S \cap \mathrm{UNCOV}|},Ratio(S)=∣S∩UNCOV∣∣S−UNCOV∣​,

the number of already-covered points of SSS per newly covered point, and moves S′S'S′ from LEFT to SUB, removing its points from UNCOV. When several sets tie, any of them may be chosen; a subcover is choosable by C2 if some sequence of admissible choices returns it.

The overlap of a chosen set is ∣S′−UNCOV∣|S' - \mathrm{UNCOV}|∣S′−UNCOV∣ at the moment it is chosen, and the cumulative overlap OV(F1)\mathrm{OV}(F_1)OV(F1​) of a run returning F1F_1F1​ is the sum of these overlaps.

Formalization targets

Goal: Theorem 6 (p. 271)

For all k≥1k \ge 1k≥1 and n>0n > 0n>0,

R[C2,EC(k)](n)≤1+ln⁡(k)≤∑j=1k1j+12,R[C2, EC(k)](n) \le 1 + \ln(k) \le \sum_{j=1}^k \frac1j + \frac12,R[C2,EC(k)](n)≤1+ln(k)≤j=1∑k​j1​+21​,

and for all sufficiently large nnn, R[C2,EC(k)](n)≥∑j=1k(1/j)R[C2, EC(k)](n) \ge \sum_{j=1}^k (1/j)R[C2,EC(k)](n)≥∑j=1k​(1/j). In the size-free form used here, for every k≥1k \ge 1k≥1:

  1. every subcover MMM choosable by C2 on an input of EC(k)(k)(k) satisfies mEC(M)≤(1+ln⁡k) F∗m_{EC}(M) \le (1 + \ln k)\,F^*mEC​(M)≤(1+lnk)F∗;
  2. 1+ln⁡k≤∑j=1k1/j+1/21 + \ln k \le \sum_{j=1}^k 1/j + 1/21+lnk≤∑j=1k​1/j+1/2;
  3. some input of EC(k)(k)(k) with F∗>0F^* > 0F∗>0 has a choosable subcover with mEC(M)≥(∑j=1k1/j)F∗m_{EC}(M) \ge \big(\sum_{j=1}^k 1/j\big) F^*mEC​(M)≥(∑j=1k​1/j)F∗.

Milestones (proof of Theorem 6, pp. 271–272)

  • the measure of the output is ∣T∣+OV(F1)|T| + \mathrm{OV}(F_1)∣T∣+OV(F1​);
  • if C2 may choose a set with Ratio(S′)≥y\mathrm{Ratio}(S') \ge yRatio(S′)≥y, then (y+1) ∣UNCOV∣≤F∗(y+1)\,|\mathrm{UNCOV}| \le F^*(y+1)∣UNCOV∣≤F∗;
  • with a=F∗/∣T∣a = F^*/|T|a=F∗/∣T∣ and x=∣T−UNCOV∣/∣T∣x = |T - \mathrm{UNCOV}|/|T|x=∣T−UNCOV∣/∣T∣, the next chosen set has Ratio(S′)≤a/(1−x)−1\mathrm{Ratio}(S') \le a/(1-x) - 1Ratio(S′)≤a/(1−x)−1;
  • on EC(k)(k)(k), OV(F1)≤∣T∣ (a[ln⁡(k)+1]−1)\mathrm{OV}(F_1) \le |T|\,(a[\ln(k) + 1] - 1)OV(F1​)≤∣T∣(a[ln(k)+1]−1);
  • the analytic inequality 1+ln⁡(k)≤∑j=1k1/j+1/21 + \ln(k) \le \sum_{j=1}^k 1/j + 1/21+ln(k)≤∑j=1k​1/j+1/2;
  • the lower-bound input (Fig. 1 of the paper with every set of F1F_1F1​ filled out to exactly kkk points) on which C2 may pay ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j times the optimum.

Significance

The result. The measure ∑∣S∣\sum|S|∑∣S∣ penalizes overlap, and the paper notes (without proof, p. 270) that an algorithm returning an optimal cover for the cardinality measure can be a factor kkk from optimal for this one. Theorem 6 shows that the ratio rule C2 is within 1+ln⁡k1 + \ln k1+lnk of the least-overlap cover, and the lower bound shows that no analysis of C2 can beat ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j. The two bounds differ by less than 1/21/21/2 for every kkk. The theorem was an early instance of a logarithmic guarantee for a weighted covering problem, where each set's cost is its size.

Formalizing it. The theorem has been proved since 1974; no machine-checked proof is known to exist. The mission produces a formal model of the EC problem and of C2 as a nondeterministic process, the overlap identity, and the discrete form of the paper's area-under-a-curve estimate. The last is the part the paper argues informally, through a step function and an integral.

Difficulty

The cardinality argument for C1 counts the sets chosen; here the sets have different sizes, so it does not apply. The overlap C2 pays per newly covered point is not bounded by a constant: early choices can be free and late ones cost up to k−1k-1k−1 per point, and the bound on the cumulative overlap must hold against the whole run, for every sequence of tie-breaks.

In a formal proof the integral must be replaced by a sum. Covered points arrive in blocks (one block per chosen set), the charge is constant on a block but the bound depends on the covered fraction at the start of the block, and the sum has to be compared with a logarithm. The terms aln⁡aa\ln aalna and a/ka/ka/k that the paper drops using 1≤a≤k1 \le a \le k1≤a≤k must be controlled as well, and the relation 1≤a≤k1 \le a \le k1≤a≤k must itself be proved from optimality. The lower bound needs an explicit run of C2 through ties on an input with k⋅k!k \cdot k!k⋅k! points, checking at every stage that the intended set is a ratio minimizer.

Formalization scope

  • Inputs. A family is p : ℕ with S : Fin p → Finset α (0-based, repetitions allowed; a repeated set counts twice in the measure if both copies are chosen, which C2 never does). Subcovers and SUB, LEFT are index sets. F∗F^*F∗ is a minimum over the finite, nonempty set of subcovers (Finset.inf'), never a junk value.
  • Algorithm. C2 is a step relation on states (SUB, LEFT, UNCOV). The choice at Step 3 is existential over all minimizers, so every result quantifies over every choosable output (the paper's WORST). Ratio(S)\mathrm{Ratio}(S)Ratio(S) is +∞+\infty+∞ when S∩UNCOV=∅S \cap \mathrm{UNCOV} = \emptysetS∩UNCOV=∅; the formal rule requires the chosen set to meet UNCOV and compares ratios by cross-multiplication, with no division.
  • Overlap. The cumulative overlap depends on the run, not on the output alone, so it is carried by an inductive run relation RunOV.
  • No problem size. The paper's R[A,P](n)R[A, P](n)R[A,P](n) maximizes over inputs of size at most nnn in an unspecified encoding. Upper bounds are stated for every input and every choosable output; the lower bound exhibits one input and one choosable output. Given monotonicity of RRR in nnn, these are equivalent to the paper's claims. Ratios are stated multiplicatively, so F∗=0F^* = 0F∗=0 does not create a vacuous bound.
  • Numbers. Measures are natural numbers cast to R\mathbb RR; ln⁡\lnln is Real.log; ∑j=1k1/j\sum_{j=1}^k 1/j∑j=1k​1/j is Mathlib's harmonic k.
  • Ruled out. A deterministic tie-break would prove a weaker upper bound and could not realize the lower-bound run, and a ratio with x/0=0x/0 = 0x/0=0 would make disjoint-from-UNCOV sets the most attractive choice. The formalization uses neither.

The overlap identity and the discrete integral comparison are reusable for any greedy covering analysis that charges cost per newly covered point. Contributions welcome include proofs of the milestones, the invariants of the C2 run relation (SUB and LEFT partition the indices; UNCOV =T−⋃= T - \bigcup=T−⋃ SUB), and the explicit lower-bound run.

Selected references

  • D. S. Johnson, Approximation algorithms for combinatorial problems, J. Comput. System Sci. 9 (1974), 256–278. https://doi.org/10.1016/S0022-0000(74)80044-9
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. https://doi.org/10.1007/978-1-4684-2001-2_9
  • V. Chvátal, A greedy heuristic for the set-covering problem, Math. Oper. Res. 4 (1979), 233–235. https://doi.org/10.1287/moor.4.3.233
10 thms3 active usersReviewed
CombinatoricsGraph TheoryLinear algebra+2·Captain: mikedeng1

Approximating Clique-Width and Branch-Width: Well-Linked Sets Certify Clique-WidthResearch Paper

Motivation

Clique-width is a graph parameter introduced by Courcelle and Olariu (Discrete Appl. Math. 101 (2000)) that measures how far a graph is from being built by a few labelled operations. Every problem expressible in monadic second-order logic with quantification over vertices and vertex sets (MSO1_11​) can be solved in linear time on graphs given together with a decomposition of bounded clique-width (Courcelle, Makowsky and Rotics, Theory Comput. Syst. 33 (2000)). Bounded clique-width is more general than bounded tree-width: complete graphs have unbounded tree-width but clique-width 222.

For fixed kkk there was, before this paper, no polynomial-time algorithm that either decides that a graph has clique-width at least k+1k+1k+1 or outputs a decomposition of clique-width bounded by a function of kkk; the best known algorithm, by Johansson (2001), gave width 2klog⁡n2k\log n2klogn. Oum and Seymour (J. Combin. Theory Ser. B 96 (2006)) closed this gap with approximation 23k+2−12^{3k+2}-123k+2−1, through rank-width and a factor-3 approximation for the branch-width of symmetric submodular functions.

Timeline:

  • 1991: Robertson and Seymour introduce branch-width of graphs and hypergraphs (J. Combin. Theory Ser. B 52).
  • 2000: Courcelle and Olariu define clique-width; Courcelle, Makowsky and Rotics solve MSO1_11​ problems on graphs given with a kkk-expression.
  • 2001: Johansson gives a 2klog⁡n2k\log n2klogn approximation.
  • 2006: Oum and Seymour define rank-width, prove rwd(G)≤cwd(G)≤2rwd(G)+1−1\mathrm{rwd}(G) \le \mathrm{cwd}(G) \le 2^{\mathrm{rwd}(G)+1}-1rwd(G)≤cwd(G)≤2rwd(G)+1−1, and give an O(n9log⁡n)O(n^9 \log n)O(n9logn) algorithm that outputs a (23k+2−1)(2^{3k+2}-1)(23k+2−1)-expression or certifies clique-width above kkk.

Setting

All graphs are finite and simple. For a finite set VVV, a function f:2V→Zf : 2^V \to \mathbb{Z}f:2V→Z is submodular if f(X)+f(Y)≥f(X∩Y)+f(X∪Y)f(X)+f(Y) \ge f(X\cap Y)+f(X\cup Y)f(X)+f(Y)≥f(X∩Y)+f(X∪Y) and symmetric if f(X)=f(V∖X)f(X) = f(V\setminus X)f(X)=f(V∖X).

A branch-decomposition of fff is a pair (T,L)(T, L)(T,L) where TTT is a tree with at least two vertices and all degrees at most 333, and LLL is a bijection from VVV onto the leaves of TTT. Removing an edge eee of TTT splits the leaves in two; the width of eee is fff of the set of elements of VVV on one side. The width of (T,L)(T, L)(T,L) is the largest edge width, and the branch-width bw(f)\mathrm{bw}(f)bw(f) is the least width of a branch-decomposition, with bw(f)=f(∅)\mathrm{bw}(f) = f(\emptyset)bw(f)=f(∅) when ∣V∣≤1|V| \le 1∣V∣≤1.

A set W⊆VW \subseteq VW⊆V is well-linked with respect to fff if for every partition (X,Y)(X, Y)(X,Y) of WWW and every ZZZ with X⊆Z⊆V∖YX \subseteq Z \subseteq V\setminus YX⊆Z⊆V∖Y, f(Z)≥min⁡(∣X∣,∣Y∣)f(Z) \ge \min(|X|, |Y|)f(Z)≥min(∣X∣,∣Y∣).

Let A(G)A(G)A(G) be the adjacency matrix of GGG over GF(2)\mathrm{GF}(2)GF(2). For disjoint X,Y⊆V(G)X, Y \subseteq V(G)X,Y⊆V(G), cutrkG∗(X,Y)\mathrm{cutrk}^*_G(X, Y)cutrkG∗​(X,Y) is the rank of the submatrix of A(G)A(G)A(G) with rows XXX and columns YYY, and the cut-rank function is cutrkG(X)=cutrkG∗(X,V(G)∖X)\mathrm{cutrk}_G(X) = \mathrm{cutrk}^*_G(X, V(G)\setminus X)cutrkG​(X)=cutrkG∗​(X,V(G)∖X). The rank-width rwd(G)\mathrm{rwd}(G)rwd(G) is bw(cutrkG)\mathrm{bw}(\mathrm{cutrk}_G)bw(cutrkG​).

A kkk-expression is a term built from constants ⋅i\cdot_i⋅i​ (a vertex with label i∈{1,…,k}i \in \{1,\dots,k\}i∈{1,…,k}), the operators ηi,j\eta_{i,j}ηi,j​ (i≠ji \ne ji=j; add all edges between labels iii and jjj), ρi→j\rho_{i\to j}ρi→j​ (relabel iii into jjj) and disjoint union ⊕\oplus⊕. Its value is the labelled graph it produces; GGG has clique-width cwd(G)≤k\mathrm{cwd}(G) \le kcwd(G)≤k if some kkk-expression has value isomorphic to GGG.

An interpolation of fff is a function f∗f^*f∗ on disjoint pairs (X,Y)(X, Y)(X,Y) that agrees with fff on (X,V∖X)(X, V\setminus X)(X,V∖X), is monotone, submodular in the sense f∗(A,B)+f∗(C,D)≥f∗(A∩C,B∪D)+f∗(A∪C,B∩D)f^*(A,B)+f^*(C,D) \ge f^*(A\cap C, B\cup D) + f^*(A\cup C, B\cap D)f∗(A,B)+f∗(C,D)≥f∗(A∩C,B∪D)+f∗(A∪C,B∩D), and has f∗(∅,∅)=f(∅)f^*(\emptyset,\emptyset)=f(\emptyset)f∗(∅,∅)=f(∅).

Formalization targets

Goal: Theorem 1.1, certificate form

For a graph GGG with at least one vertex and an integer k≥1k \ge 1k≥1:

∃ W, ∣W∣=3k+1, W well-linked for cutrkG  ⟹  cwd(G)≥k+1,\exists\, W,\ |W| = 3k+1,\ W \text{ well-linked for } \mathrm{cutrk}_G \;\Longrightarrow\; \mathrm{cwd}(G) \ge k+1,∃W, ∣W∣=3k+1, W well-linked for cutrkG​⟹cwd(G)≥k+1, ∄ W, ∣W∣=3k+1, W well-linked for cutrkG  ⟹  cwd(G)≤23k+2−1.\nexists\, W,\ |W| = 3k+1,\ W \text{ well-linked for } \mathrm{cutrk}_G \;\Longrightarrow\; \mathrm{cwd}(G) \le 2^{3k+2}-1.∄W, ∣W∣=3k+1, W well-linked for cutrkG​⟹cwd(G)≤23k+2−1.

The same explicit condition decides which side of the approximation holds; this is what the paper's algorithm certifies.

Milestones

  1. Proposition 4.1: properties of an interpolation, including that X↦f∗(X,B)−f(∅)X \mapsto f^*(X, B) - f(\emptyset)X↦f∗(X,B)−f(∅) is a matroid rank function on V∖BV\setminus BV∖B when f({v})−f(∅)≤1f(\{v\}) - f(\emptyset) \le 1f({v})−f(∅)≤1.
  2. Proposition 4.2: fmin⁡(X,Y)=min⁡X⊆Z⊆V∖Yf(Z)f_{\min}(X,Y) = \min_{X\subseteq Z\subseteq V\setminus Y} f(Z)fmin​(X,Y)=minX⊆Z⊆V∖Y​f(Z) is an interpolation.
  3. Theorem 5.1: a well-linked set of size kkk forces bw(f)≥k/3\mathrm{bw}(f) \ge k/3bw(f)≥k/3 (for k≠1k \ne 1k=1).
  4. Theorem 5.2: no well-linked set of size kkk implies bw(f)≤k\mathrm{bw}(f) \le kbw(f)≤k, when f({v})≤1f(\{v\}) \le 1f({v})≤1.
  5. Proposition 6.1: rk M[X1,Y1]+rk M[X2,Y2]≥rk M[X1∪X2,Y1∩Y2]+rk M[X1∩X2,Y1∪Y2]\mathrm{rk}\,M[X_1,Y_1] + \mathrm{rk}\,M[X_2,Y_2] \ge \mathrm{rk}\,M[X_1\cup X_2, Y_1\cap Y_2] + \mathrm{rk}\,M[X_1\cap X_2, Y_1\cup Y_2]rkM[X1​,Y1​]+rkM[X2​,Y2​]≥rkM[X1​∪X2​,Y1​∩Y2​]+rkM[X1​∩X2​,Y1​∪Y2​].
  6. Corollary 6.2: submodularity of cutrkG∗\mathrm{cutrk}^*_GcutrkG∗​ and cutrkG\mathrm{cutrk}_GcutrkG​.
  7. Section 6 claim: cutrkG\mathrm{cutrk}_GcutrkG​ is symmetric submodular and cutrkG∗\mathrm{cutrk}^*_GcutrkG∗​ interpolates it.
  8. Proposition 6.3: rwd(G)≤cwd(G)≤2rwd(G)+1−1\mathrm{rwd}(G) \le \mathrm{cwd}(G) \le 2^{\mathrm{rwd}(G)+1}-1rwd(G)≤cwd(G)≤2rwd(G)+1−1.

Significance

The dichotomy turns clique-width, for which no exact polynomial algorithm is known even for fixed kkk, into a parameter that can be approximated with an explicit witness in each direction. Downstream, every algorithm for graphs of bounded clique-width that needs a kkk-expression as input becomes applicable to graphs given without one, at the cost of an exponential blow-up of the width.

The result is proved in the literature; this mission formalizes it. To our knowledge none of the objects involved — branch-width of set functions, rank-width, cut-rank, kkk-expressions, clique-width — has been formalized in Mathlib, and the submodularity of submatrix rank (Proposition 6.1) is absent from Mathlib's Matrix.rank API. The formal development would give reusable definitions of branch-decompositions of arbitrary integer set functions, of cut-rank, and of clique-width, and a machine-checked link between the combinatorial and the linear-algebraic width parameters.

Difficulty

The upper bound in Theorem 5.2 is the core. The natural approach, growing a branch-decomposition one leaf split at a time while keeping the width at most kkk, gets stuck at a leaf carrying a set BBB with f(B)=kf(B) = kf(B)=k: a split of BBB into two parts of fff-value below kkk has to be found, and it must be found from the failure of well-linkedness of a set that is not obviously related to BBB. The paper's device is the interpolation f∗f^*f∗, which attaches a matroid to BBB whose base has exactly f(B)f(B)f(B) elements. Formalizing this requires handling partial branch-decompositions, their extensions, and a maximality argument over trees, none of which exists in Mathlib.

Proposition 6.3's upper bound is a second, independent difficulty: a rank-decomposition must be converted into a kkk-expression by an induction over a rooted binary tree, with a relabelling argument bounding the number of labels by the number of distinct nonzero rows of a GF(2)\mathrm{GF}(2)GF(2) matrix of rank kkk. Its lower bound needs the tree structure of a kkk-expression to be read as a branch-decomposition.

Formalization scope

The ground set is a Fintype V with DecidableEq V; subsets are Finset V; set functions are Finset V → ℤ, as in the paper. A branch-decomposition is a tree T : SimpleGraph (Fin n) with n≥2n \ge 2n≥2, all neighbour sets of size at most 333, and an injective map LLL from VVV onto the vertices of degree 111; the side of an edge uwuwuw is found by reachability from uuu after deleting uwuwuw. Branch-width, rank-width and clique-width are never computed as minima: "bw(f)≤k\mathrm{bw}(f) \le kbw(f)≤k" is the predicate "∣V∣≤1|V| \le 1∣V∣≤1 and f(∅)≤kf(\emptyset) \le kf(∅)≤k, or a branch-decomposition of width at most kkk exists", lower bounds say that every branch-decomposition has a wide edge, and "cwd(G)≤k\mathrm{cwd}(G) \le kcwd(G)≤k" is "GGG has a kkk-expression". Labels {1,…,k}\{1,\dots,k\}{1,…,k} are Fin k. The value of a kkk-expression has as vertex type the occurrences of constants (a nested sum type), and ηi,j\eta_{i,j}ηi,j​ requires i≠ji \ne ji=j. Cut-rank uses Matrix.rank over ZMod 2 of submatrices of SimpleGraph.adjMatrix. An interpolation is a function on all pairs of subsets whose axioms are imposed on disjoint pairs only.

Running time is not formalized. The paper's Theorem 1.1 asserts an O(n9log⁡n)O(n^9\log n)O(n9logn) algorithm; there is no cost model on the page, and the goal states the certificate the algorithm returns instead. Without the running time, "cwd(G)≥k+1\mathrm{cwd}(G) \ge k+1cwd(G)≥k+1 or cwd(G)≤23k+2−1\mathrm{cwd}(G) \le 2^{3k+2}-1cwd(G)≤23k+2−1" holds for every graph, so that reading is ruled out as a formalization of the goal; so are well-linkedness with respect to anything other than cutrkG\mathrm{cutrk}_GcutrkG​, widths defined by an unguarded infimum (which is 000 on an empty family), kkk-expressions whose value is not the graph up to isomorphism or whose η\etaη may join equal labels, and Theorem 5.1 stated for k=1k = 1k=1.

Correction of Theorem 5.1. As printed, Theorem 5.1 fails for k=1k = 1k=1: a singleton is always well-linked, but the edgeless graph on two vertices has cut-rank identically 000 and branch-width 0<1/30 < 1/30<1/3. The milestone carries the hypothesis k≠1k \ne 1k=1; the goal uses the theorem only at size 3k+1≥43k+1 \ge 43k+1≥4.

The graph with no vertex is excluded from the goal and from the upper bound of Proposition 6.3, since it has no kkk-expression for any kkk. Contributions welcome: proofs of the milestones, lemmas on branch-decompositions (suppressing degree-2 vertices, extending partial decompositions), and submatrix-rank submodularity, which is reusable beyond this mission.

Selected references

  • S. Oum and P. Seymour, Approximating clique-width and branch-width, J. Combin. Theory Ser. B 96 (2006) 514–528. https://doi.org/10.1016/j.jctb.2005.10.006
  • B. Courcelle and S. Olariu, Upper bounds to the clique width of graphs, Discrete Appl. Math. 101 (2000) 77–114. https://doi.org/10.1016/S0166-218X(99)00184-5
  • B. Courcelle, J. A. Makowsky and U. Rotics, Linear time solvable optimization problems on graphs of bounded clique-width, Theory Comput. Syst. 33 (2000) 125–150. https://doi.org/10.1007/s002249910009
  • N. Robertson and P. D. Seymour, Graph minors. X. Obstructions to tree-decomposition, J. Combin. Theory Ser. B 52 (1991) 153–190. https://doi.org/10.1016/0095-8956(91)90061-N
14 thms3 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Strategic Capacity Rationing to Induce Early Purchases: Rationing Is Optimal When the Valuation Bound Reaches U_c, Low-Price-Only OtherwiseResearch Paper

Motivation

Retailers of seasonal goods sell at a full price first and mark down later. Customers who know this can wait for the markdown, and a firm that always has stock left for the markdown teaches them to wait. One remedy is to stock less than the low-price market would absorb, so that a customer who waits risks not getting the good at all. Liu and van Ryzin (Management Science 54(6), 2008) model this capacity rationing as a two-period game between a monopolist who chooses a stocking quantity and risk-averse customers who choose when to buy, and they characterize exactly when rationing is worth its cost in lost sales. The paper belongs to the revenue-management literature on strategic customers, where the firm's decision must anticipate the customers' best response to it.

Setting

A firm announces a price p1p_1p1​ for period 1 and a lower price p2<p1p_2<p_1p2​<p1​ for period 2 and buys CCC units at unit cost α<p2\alpha<p_2α<p2​ before sales start; there is no replenishment. A market of N>0N>0N>0 customers, each wanting one unit, has valuations vvv drawn independently from a distribution FFF; from §3 on, FFF is uniform on [0,Uˉ][0,\bar U][0,Uˉ].

Period-2 requests are filled at random with probability qqq, the fill rate, which customers anticipate correctly. Every customer has the same utility uuu: strictly increasing, concave, twice differentiable, with u(0)=0u(0)=0u(0)=0; from §3 on, u(x)=xγu(x)=x^\gammau(x)=xγ with 0<γ<10<\gamma<10<γ<1 (smaller γ\gammaγ means more risk aversion). A customer with valuation vvv buys in period 1 exactly when

v≥p1andu(v−p1)≥q u(v−p2).v\ge p_1\quad\text{and}\quad u(v-p_1)\ge q\,u(v-p_2).v≥p1​andu(v−p1​)≥qu(v−p2​).

The threshold v(q)v(q)v(q) separates early buyers from waiters.

Under the §3 assumptions, a cutoff v∈[p1,Uˉ]v\in[p_1,\bar U]v∈[p1​,Uˉ] is induced by the fill rate q(v)=((v−p1)/(v−p2))γq(v)=((v-p_1)/(v-p_2))^\gammaq(v)=((v−p1​)/(v−p2​))γ and the stocking quantity C(v)=NUˉ(Uˉ−v+(v−p2)q(v))C(v)=\frac{N}{\bar U}(\bar U-v+(v-p_2)q(v))C(v)=UˉN​(Uˉ−v+(v−p2​)q(v)). The firm's profit from a segmented market is

Π(v)=NUˉ((p1−α)(Uˉ−v)+(p2−α)(v−p2)(v−p1v−p2)γ),(6)\Pi(v)=\frac{N}{\bar U}\left((p_1-\alpha)(\bar U-v)+(p_2-\alpha)(v-p_2)\left(\frac{v-p_1}{v-p_2}\right)^\gamma\right),\tag{6}Π(v)=UˉN​((p1​−α)(Uˉ−v)+(p2​−α)(v−p2​)(v−p2​v−p1​​)γ),(6)

and the profit from serving everybody at the low price is ΠNS=(p2−α)NUˉ(Uˉ−p2)\Pi^{NS}=(p_2-\alpha)\frac{N}{\bar U}(\bar U-p_2)ΠNS=(p2​−α)UˉN​(Uˉ−p2​). The firm's optimal profit is the larger of Π0=max⁡p1≤v≤UˉΠ(v)\Pi^0=\max_{p_1\le v\le\bar U}\Pi(v)Π0=maxp1​≤v≤Uˉ​Π(v) and ΠNS\Pi^{NS}ΠNS. The first-order condition of (6) is

(v−p1v−p2)γ(1+γ(p1−p2)v−p1)−p1−αp2−α=0,(7)\left(\frac{v-p_1}{v-p_2}\right)^\gamma\left(1+\frac{\gamma(p_1-p_2)}{v-p_1}\right)-\frac{p_1-\alpha}{p_2-\alpha}=0,\tag{7}(v−p2​v−p1​​)γ(1+v−p1​γ(p1​−p2​)​)−p2​−αp1​−α​=0,(7)

with root v0>p1v^0>p_1v0>p1​, and the critical valuation bound is

Uc=(p2+γ(p1−α))v0−p2(p1+γ(p2−α))v0−p1+γ(p1−p2).(8)U_c=\frac{(p_2+\gamma(p_1-\alpha))v^0-p_2(p_1+\gamma(p_2-\alpha))}{v^0-p_1+\gamma(p_1-p_2)}.\tag{8}Uc​=v0−p1​+γ(p1​−p2​)(p2​+γ(p1​−α))v0−p2​(p1​+γ(p2​−α))​.(8)

In Lean these objects are IsCustomerUtility, buysEarly, cutoff (module LiuVanRyzin.Model) and fillRate, capacity, segProfit, lowPriceProfit, focLHS, criticalU (module LiuVanRyzin.PowerModel).

Formalization targets

Goal: Proposition 3 (p. 1122)

If Uˉ≥Uc\bar U\ge U_cUˉ≥Uc​, rationing is optimal: v0∈[p1,Uˉ]v^0\in[p_1,\bar U]v0∈[p1​,Uˉ], v0v^0v0 maximizes Π\PiΠ on [p1,Uˉ][p_1,\bar U][p1​,Uˉ], and Π(v0)≥ΠNS\Pi(v^0)\ge\Pi^{NS}Π(v0)≥ΠNS. If Uˉ<Uc\bar U<U_cUˉ<Uc​, serving the whole market at the low price is optimal:

Π(v)≤ΠNSfor all v∈[p1,Uˉ].\Pi(v)\le\Pi^{NS}\qquad\text{for all }v\in[p_1,\bar U].Π(v)≤ΠNSfor all v∈[p1​,Uˉ].

The goal fixes no constants; it is the paper's dichotomy, stated with its own (7) and (8).

Milestones, in attack order

  1. Proposition 1 (p. 1120): for every q∈[0,1)q\in[0,1)q∈[0,1) the threshold v(q)≥p1v(q)\ge p_1v(q)≥p1​ exists and is unique, for a general utility.
  2. Proposition 2 (p. 1120): v(q)v(q)v(q) is strictly increasing in qqq, and convex if u′′′≥0u'''\ge 0u′′′≥0.
  3. Proposition 5 (p. 1123): C(v)C(v)C(v) and q(v)q(v)q(v) are strictly increasing on [p1,Uˉ][p_1,\bar U][p1​,Uˉ], so choosing CCC is the same as choosing vvv or qqq.
  4. §3.1, root of (7) (p. 1122): the left side of (7) strictly decreases on v>p1v>p_1v>p1​ and changes sign, so v0v^0v0 exists and is unique.
  5. Lemma 1 (p. 1122): Π\PiΠ is strictly concave on v≥p1v\ge p_1v≥p1​; its maximizer on [p1,Uˉ][p_1,\bar U][p1​,Uˉ] is v0v^0v0 if v0≤Uˉv^0\le\bar Uv0≤Uˉ, and Uˉ\bar UUˉ otherwise.
  6. §3.1, bounds (p. 1122): UcU_cUc​ decreases in v0v^0v0, p1<v0<p1+γ(p2−α)p_1<v^0<p_1+\gamma(p_2-\alpha)p1​<v0<p1​+γ(p2​−α), and p1+γ(p2−α)<Uc<p1+p2−αp_1+\gamma(p_2-\alpha)<U_c<p_1+p_2-\alphap1​+γ(p2​−α)<Uc​<p1​+p2​−α.

Significance

Proposition 3 answers the paper's central question: whether a firm facing strategic, risk-averse customers should deliberately under-stock. The answer depends on a single number, UcU_cUc​, which depends on prices, cost and risk aversion but not on the market size, and it is compared with the top of the valuation range. Corollary 1, the γ→1\gamma\to1γ→1 limits of Proposition 4, and the comparative statics of Propositions 6–8 on how the optimal fill rate moves with p1p_1p1​, p2p_2p2​ and γ\gammaγ are all read off from it. The bounds of milestone 6 turn it into sufficient conditions stated in the primitives alone.

The results are proved in the paper's e-companion (Online Appendix C). No machine-checked proof of any of them is known. Formalizing them gives a verified instance of a pattern that recurs throughout revenue management: a customer best response (a threshold), a reduction of the firm's problem to one scalar decision, a concavity argument, and a comparison of two regimes.

Difficulty

Most of the work is analysis of real powers with a moving base. Π\PiΠ contains (v−p2)((v−p1)/(v−p2))γ(v-p_2)\bigl((v-p_1)/(v-p_2)\bigr)^\gamma(v−p2​)((v−p1​)/(v−p2​))γ, whose derivative blows up at v=p1v=p_1v=p1​, so its concavity on the closed half-line [p1,∞)[p_1,\infty)[p1​,∞) is not a routine second-derivative computation at the endpoint. The regime comparison in Proposition 3 is not implied by Lemma 1: Lemma 1 locates the segmented optimum, but whether it beats ΠNS\Pi^{NS}ΠNS depends on Uˉ\bar UUˉ, which enters Π\PiΠ both through the prefactor N/UˉN/\bar UN/Uˉ and through Uˉ−v\bar U-vUˉ−v. The equivalence of that comparison with Uˉ≥Uc\bar U\ge U_cUˉ≥Uc​ requires eliminating (v0−p1)/(v0−p2)(v^0-p_1)/(v^0-p_2)(v0−p1​)/(v0−p2​) with (7).

For Propositions 1–2 the utility is general: the threshold is defined by an inequality between u(v−p1)u(v-p_1)u(v−p1​) and q u(v−p2)q\,u(v-p_2)qu(v−p2​), and neither its monotonicity in qqq nor its convexity under u′′′≥0u'''\ge0u′′′≥0 follows from a closed form. Only for xγx^\gammaxγ is there one.

Formalization scope

All quantities are real numbers. The utility of Propositions 1–2 is a function u:R→Ru:\mathbb R\to\mathbb Ru:R→R that is strictly increasing, concave and continuous on [0,∞)[0,\infty)[0,∞), twice differentiable on (0,∞)(0,\infty)(0,∞), with u(0)=0u(0)=0u(0)=0. The threshold v(q)v(q)v(q) is defined as the infimum of the set of early buyers, not assumed. Powers are Real.rpow; every power-model statement stays on v≥p1v\ge p_1v≥p1​, or on v>p1v>p_1v>p1​ where (v−p1)−1(v-p_1)^{-1}(v−p1​)−1 appears. Π\PiΠ is written in the closed form (6). The root v0v^0v0 is a binder constrained by v0>p1v^0>p_1v0>p1​ and (7), and milestone 4 shows such a root exists. "Increases" in Propositions 2 and 5 is read as strictly increasing.

Hypotheses the paper uses without stating them, added here:

  • 0≤p2<Uˉ0\le p_2<\bar U0≤p2​<Uˉ in the goal. The uniform law gives NFˉ(p2)=NUˉ(Uˉ−p2)N\bar F(p_2)=\frac N{\bar U}(\bar U-p_2)NFˉ(p2​)=UˉN​(Uˉ−p2​) only for p2∈[0,Uˉ]p_2\in[0,\bar U]p2​∈[0,Uˉ], and it makes Uˉ>0\bar U>0Uˉ>0.
  • p1≤Uˉp_1\le\bar Up1​≤Uˉ in the second part of Lemma 1, because (6) maximizes over the interval [p1,Uˉ][p_1,\bar U][p1​,Uˉ].
  • Continuity of uuu at 000 in Propositions 1–2. The paper's "twice differentiable" implies it for any utility differentiable at 000, and xγx^\gammaxγ satisfies it.
  • In Proposition 2, "nonnegative third derivative" is read as u∈C3(0,∞)u\in C^3(0,\infty)u∈C3(0,∞) with u′′′≥0u'''\ge0u′′′≥0 there.

The goal cannot be trivialized: v0v^0v0 is pinned to the root of (7), part 2 quantifies over every v∈[p1,Uˉ]v\in[p_1,\bar U]v∈[p1​,Uˉ], and the optimum is compared with ΠNS\Pi^{NS}ΠNS exactly as the paper defines optimality.

Contributions are welcome at every level. Useful ones include the real-power calculus lemmas behind milestones 3–6, a proof of Propositions 1–2 for general concave utilities, and reusable facts about thresholds defined by single-crossing inequalities.

Selected references

  • Q. Liu, G. van Ryzin, Strategic Capacity Rationing to Induce Early Purchases, Management Science 54(6):1115–1131, 2008. https://doi.org/10.1287/mnsc.1070.0832
  • K. T. Talluri, G. J. van Ryzin, The Theory and Practice of Revenue Management, Kluwer, 2004. https://doi.org/10.1007/b139000
9 thms4 active usersReviewed
🏆Completed
Control TheoryOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Supervisory Control of a Class of Discrete Event Processes I: Minimally Restrictive Supervisors Exist iff the Supremal Controllable Legal Sublanguage Contains the Minimal Acceptable LanguageResearch Paper

Motivation

Manufacturing cells, communication protocols, traffic systems and database transaction managers are naturally described not by differential equations but by sequences of discrete events: a machine starts, a part arrives, a message is lost. Ramadge and Wonham's 1987 paper (SIAM J. Control Optim. 25(1)) set up a control theory for such systems in which the plant is an automaton, the controller is another automaton that may disable some events, and specifications are formal languages. The framework, now called supervisory control theory or the Ramadge–Wonham framework, is the standard model for the logical control of discrete event systems and underlies the textbook treatment in Cassandras and Lafortune (Introduction to Discrete Event Systems, 2008) and Wonham and Cai (Supervisory Control of Discrete-Event Systems, 2019).

The question the paper answers is the basic synthesis question of the theory: given a plant, a set of legal behaviours and a set of minimally acceptable behaviours, when does a controller exist that keeps the plant legal, achieves at least the acceptable behaviour, and never deadlocks, and what is the least restrictive such controller?

Setting

A generator is G=(Q,Σ,δ,q0,Qm)\mathcal G = (Q, \Sigma, \delta, q_0, Q_m)G=(Q,Σ,δ,q0​,Qm​) with a state set QQQ, a finite alphabet Σ\SigmaΣ of events, a partial transition function δ:Σ×Q→Q\delta : \Sigma \times Q \to Qδ:Σ×Q→Q, an initial state q0q_0q0​ and marker states Qm⊆QQ_m \subseteq QQm​⊆Q. Extending δ\deltaδ to strings, the generated language L(G)L(\mathcal G)L(G) is the set of strings www for which δ(w,q0)\delta(w, q_0)δ(w,q0​) is defined, and the marked language Lm(G)L_m(\mathcal G)Lm​(G) is the subset of those that end in QmQ_mQm​. The closure Kˉ\bar KKˉ of a language KKK is its set of prefixes; KKK is closed if K=KˉK = \bar KK=Kˉ. Throughout, G\mathcal GG is assumed trim in the sense L(G)=Lˉm(G)L(\mathcal G) = \bar L_m(\mathcal G)L(G)=Lˉm​(G): every generated string can be completed to a marked one.

The alphabet is split into controllable events Σc\Sigma_cΣc​ and uncontrollable events Σu=Σ−Σc\Sigma_u = \Sigma - \Sigma_cΣu​=Σ−Σc​. A supervisor S=(S,ϕ)\mathcal S = (S, \phi)S=(S,ϕ) consists of a deterministic, accessible automaton S=(X,Σ,ξ,x0,Xm)S = (X, \Sigma, \xi, x_0, X_m)S=(X,Σ,ξ,x0​,Xm​), whose state set XXX may be infinite, and a map ϕ\phiϕ assigning to each state xxx the set of controllable events it enables; uncontrollable events are always enabled. The closed loop S/G\mathcal S/\mathcal GS/G runs SSS and G\mathcal GG in lockstep: an event occurs when the plant can execute it, the supervisor enables it, and the supervisor's automaton can follow it. This defines the languages L(S/G)L(\mathcal S/\mathcal G)L(S/G), Lm(S/G)L_m(\mathcal S/\mathcal G)Lm​(S/G) and the controlled language Lc(S/G)=L(S/G)∩Lm(G)L_c(\mathcal S/\mathcal G) = L(\mathcal S/\mathcal G) \cap L_m(\mathcal G)Lc​(S/G)=L(S/G)∩Lm​(G).

S\mathcal SS is complete if its automaton never refuses an event that the plant can execute and ϕ\phiϕ enables; it is proper if it is complete and

Lˉm(S/G)=Lˉc(S/G)=L(S/G),\bar L_m(\mathcal S/\mathcal G) = \bar L_c(\mathcal S/\mathcal G) = L(\mathcal S/\mathcal G),Lˉm​(S/G)=Lˉc​(S/G)=L(S/G),

that is, every closed-loop string can be completed to a marked task. A language KKK is controllable if K⊆L(G)K \subseteq L(\mathcal G)K⊆L(G) and KˉΣu∩L(G)⊆Kˉ\bar K \Sigma_u \cap L(\mathcal G) \subseteq \bar KKˉΣu​∩L(G)⊆Kˉ. For L⊆L(G)L \subseteq L(\mathcal G)L⊆L(G), CG(L)\mathbf C_{\mathcal G}(L)CG​(L) is the class of controllable sublanguages of LLL and FG(L)\mathbf F_{\mathcal G}(L)FG​(L) the class of sublanguages KKK of LLL with K=Kˉ∩Lm(G)K = \bar K \cap L_m(\mathcal G)K=Kˉ∩Lm​(G).

Given ∅≠La⊆Lg⊆Lm(G)\emptyset \neq L_a \subseteq L_g \subseteq L_m(\mathcal G)∅=La​⊆Lg​⊆Lm​(G), the Supervisory Marking Problem (SMP) asks for a proper S\mathcal SS with La⊆Lm(S/G)⊆LgL_a \subseteq L_m(\mathcal S/\mathcal G) \subseteq L_gLa​⊆Lm​(S/G)⊆Lg​, and the Supervisory Control Problem (SCP) for a proper S\mathcal SS with La⊆Lc(S/G)⊆LgL_a \subseteq L_c(\mathcal S/\mathcal G) \subseteq L_gLa​⊆Lc​(S/G)⊆Lg​.

Formalization targets

Goal: Theorem 7.1 (pp. 218–219)

SMP solvable  ⟺  sup⁡CG(Lg)⊇La,SCP solvable  ⟺  sup⁡{CG(Lg)∩FG(Lg)}⊇La,\text{SMP solvable} \iff \sup \mathbf C_{\mathcal G}(L_g) \supseteq L_a, \qquad \text{SCP solvable} \iff \sup\{\mathbf C_{\mathcal G}(L_g) \cap \mathbf F_{\mathcal G}(L_g)\} \supseteq L_a,SMP solvable⟺supCG​(Lg​)⊇La​,SCP solvable⟺sup{CG​(Lg​)∩FG​(Lg​)}⊇La​,

and in each case the solving supervisor can be taken minimally restrictive: its marked (respectively controlled) language equals the supremal element and contains that of every proper supervisor whose language lies in LgL_gLg​.

Milestones

  1. Proposition 4.1 (i), (ii): marking is independent of control; every K⊆Lm(G)K \subseteq L_m(\mathcal G)K⊆Lm​(G), or K⊆L∩Lm(G)K \subseteq L \cap L_m(\mathcal G)K⊆L∩Lm​(G) for an achievable closed LLL, is the marked language of a complete supervisor.
  2. Proposition 5.1: a complete supervisor realizes (Lm,Lc,L)=(K1,K2,K3)(L_m, L_c, L) = (K_1, K_2, K_3)(Lm​,Lc​,L)=(K1​,K2​,K3​) iff K1⊆K2K_1 \subseteq K_2K1​⊆K2​, K2=K3∩Lm(G)K_2 = K_3 \cap L_m(\mathcal G)K2​=K3​∩Lm​(G) and K3K_3K3​ is closed and controllable.
  3. Theorem 6.1 (i), (ii): a proper supervisor with Lm(S/G)=KL_m(\mathcal S/\mathcal G) = KLm​(S/G)=K exists iff KKK is controllable; one with Lc(S/G)=KL_c(\mathcal S/\mathcal G) = KLc​(S/G)=K exists iff KKK is controllable and Lm(G)L_m(\mathcal G)Lm​(G)-closed.
  4. Proposition 7.1: CG(L)\mathbf C_{\mathcal G}(L)CG​(L) and FG(L)\mathbf F_{\mathcal G}(L)FG​(L) contain ∅\emptyset∅ and are closed under arbitrary unions.
  5. The supremal elements (p. 218): sup⁡CG(L)\sup \mathbf C_{\mathcal G}(L)supCG​(L), sup⁡FG(L)\sup \mathbf F_{\mathcal G}(L)supFG​(L) and sup⁡{CG(L)∩FG(L)}\sup\{\mathbf C_{\mathcal G}(L) \cap \mathbf F_{\mathcal G}(L)\}sup{CG​(L)∩FG​(L)} belong to their classes.

Significance

Theorem 7.1 reduces the existence of a correct, non-blocking controller to a single language inclusion, and identifies the supremal controllable sublanguage as the behaviour of the least restrictive solution. That object is the backbone of the later theory: modular and decentralized control, control under partial observation, and the computational results that sup⁡CG(L)\sup \mathbf C_{\mathcal G}(L)supCG​(L) is regular and computable when G\mathcal GG is finite and LLL regular all start from it.

The result is proved in the paper and has been taught for decades; it is not open. Mathlib has no model of generators with partial transitions, supervisors or controllability (its DFA has a total transition function and a single accepted language), and no formalization of this theory exists on the platform. This mission provides one: a reusable Lean model of generators with partial transitions, supervisors with possibly infinite state, closed loops and controllability, together with the paper's existence theorems stated against it. A second mission on the same paper (quotients of supervisors, Theorem 10.1) builds on the same objects.

Difficulty

The combinatorial core of Proposition 7.1 is a short prefix-closure computation. The work lies in the constructions: to show existence, a supervisor must be built for an arbitrary controllable language, which in general is not regular, so the supervisor needs an infinite state set (for example strings of the target language) together with a proof that the closed loop generates exactly the intended language, is complete, and is proper. The converse directions require relating the closed-loop run to separate runs of the plant and of the supervisor's automaton. The naive shortcut of reading the "sup" as an arbitrary member of CG(Lg)\mathbf C_{\mathcal G}(L_g)CG​(Lg​) containing LaL_aLa​ skips the content of the supremal-element milestone; the goal is stated with the actual union.

Formalization scope

  • The alphabet is a type α with [Fintype α]; strings are List α, the empty string is [], and sσs\sigmasσ is s ++ [σ]. Languages are Set (List α); the closure is pre K = {s | ∃ t, s ++ t ∈ K}.
  • A generator is a structure with a state type Q : Type, a partial transition δ : α → Q → Option Q, an initial state and a marker set. No finiteness is assumed on states, of the plant or of the supervisor. Supervisors and generators live in Type 1.
  • ϕ\phiϕ maps states to Ec → Bool; an event outside Σc\Sigma_cΣc​ is enabled by definition, so uncontrollable events cannot be disabled.
  • The closed loop is the product run from (x0,q0)(x_0, q_0)(x0​,q0​); the accessible part in the paper's display (2.1) changes no language and is not built.
  • Standing assumptions carried by every theorem: Σ\SigmaΣ finite, L(G)=Lˉm(G)L(\mathcal G) = \bar L_m(\mathcal G)L(G)=Lˉm​(G), supervisor automata accessible (as a hypothesis on every input supervisor and a conjunct of every "there exists a supervisor").
  • sup⁡\supsup is sSup in the complete lattice Set (List α).
  • A formalization in which the closed loop ignores ϕ\phiϕ or the plant, in which completeness is dropped from properness, or in which the supervisor is restricted to finitely many states, is not the paper's theorem and is ruled out by the definitions above.

Welcome contributions: the basic run lemmas (closed-loop runs project to plant and supervisor runs), the string-state supervisor construction, and proofs of the milestones in the given order.

Selected references

  • P. J. Ramadge and W. M. Wonham, Supervisory Control of a Class of Discrete Event Processes, SIAM J. Control Optim. 25(1):206–230, 1987. https://doi.org/10.1137/0325013
  • W. M. Wonham and P. J. Ramadge, On the Supremal Controllable Sublanguage of a Given Language, SIAM J. Control Optim. 25(3):637–659, 1987. https://doi.org/10.1137/0325036
  • C. G. Cassandras and S. Lafortune, Introduction to Discrete Event Systems, 2nd ed., Springer, 2008. https://doi.org/10.1007/978-0-387-68612-7
  • W. M. Wonham and K. Cai, Supervisory Control of Discrete-Event Systems, Springer, 2019. https://doi.org/10.1007/978-3-319-77452-7
12 thms3 active usersReviewed
🏆Completed
Convex OptimizationLinear OptimizationOperations Research+1·Captain: mikedeng1

Cones of Matrices and Set-Functions and 0–1 Optimization I: n Rounds of the Lovász–Schrijver N Operator Give the 0–1 HullResearch Paper

Motivation

A 0–1 integer program asks for the best 0–1 vector satisfying a system of linear inequalities. Its linear relaxation is easy to optimize over, but the relaxation is usually much larger than the convex hull of the 0–1 solutions. Lift-and-project methods close this gap systematically: they lift the relaxation to a higher-dimensional space, add constraints that every 0–1 point satisfies there, and project back, obtaining a tighter relaxation that still contains every 0–1 solution.

L. Lovász and A. Schrijver introduced one of the two standard lift-and-project hierarchies in Cones of matrices and set-functions and 0–1 optimization (SIAM J. Optim., 1991). Their operators NNN and N+N_+N+​ represent a 0–1 point xxx by the matrix xxTxx^{\mathsf T}xxT, impose linear (and for N+N_+N+​ semidefinite) constraints on such matrices, and project back to Rn+1\mathbb R^{n+1}Rn+1. The same paper applies the operators to the stable set polytope, where one round already produces the odd hole, odd wheel, clique and odd antihole constraints. The Lovász–Schrijver hierarchy, the Sherali–Adams hierarchy (1990) and Lasserre's semidefinite hierarchy (2001) are the three reference lift-and-project methods; their rank lower bounds are a standard tool for proving that a relaxation cannot solve a combinatorial problem in few rounds.

This mission formalizes the first structural fact about the operator NNN: iterating it nnn times on any relaxation in nnn variables yields exactly the 0–1 hull (Theorem 1.4 of the paper).

Setting

Vectors live in Rn+1\mathbb R^{n+1}Rn+1 with coordinates x0,x1,…,xnx_0, x_1, \dots, x_nx0​,x1​,…,xn​; the space Rn\mathbb R^nRn of the original problem is the hyperplane x0=1x_0 = 1x0​=1, and polytopes are replaced by the convex cones they generate.

  • A convex cone is a nonempty set closed under addition and nonnegative scaling. For a set SSS, cone⁡(S)\operatorname{cone}(S)cone(S) is the set of nonnegative combinations of finitely many vectors of SSS.
  • The polar cone of KKK is K∗={u:uTx≥0 for all x∈K}K^* = \{u : u^{\mathsf T}x \ge 0 \text{ for all } x \in K\}K∗={u:uTx≥0 for all x∈K}.
  • A 0–1 vector has every coordinate, x0x_0x0​ included, equal to 000 or 111. The cube cone QQQ is the cone spanned by the 0–1 vectors with x0=1x_0 = 1x0​=1; it is the cone over the unit cube.
  • For a convex cone KKK, K∘K^\circK∘ is the cone spanned by the 0–1 vectors in KKK. For K⊆QK \subseteq QK⊆Q this is the cone over the convex hull of the 0–1 points of the relaxation.

For convex cones K1,K2⊆QK_1, K_2 \subseteq QK1​,K2​⊆Q, the matrix cone M(K1,K2)M(K_1, K_2)M(K1​,K2​) consists of the (n+1)×(n+1)(n+1)\times(n+1)(n+1)×(n+1) real matrices Y=(yij)Y = (y_{ij})Y=(yij​) such that

  1. YYY is symmetric;
  2. yii=y0iy_{ii} = y_{0i}yii​=y0i​ for 1≤i≤n1 \le i \le n1≤i≤n (the diagonal equals the 0th column);
  3. uTYv≥0u^{\mathsf T} Y v \ge 0uTYv≥0 for every u∈K1∗u \in K_1^*u∈K1∗​ and v∈K2∗v \in K_2^*v∈K2∗​.

M+(K1,K2)M_+(K_1, K_2)M+​(K1​,K2​) adds the condition that YYY is positive semidefinite. The projections are N(K1,K2)={Ye0:Y∈M(K1,K2)}N(K_1, K_2) = \{Ye_0 : Y \in M(K_1, K_2)\}N(K1​,K2​)={Ye0​:Y∈M(K1​,K2​)} and N+(K1,K2)={Ye0:Y∈M+(K1,K2)}N_+(K_1, K_2) = \{Ye_0 : Y \in M_+(K_1, K_2)\}N+​(K1​,K2​)={Ye0​:Y∈M+​(K1​,K2​)}, where e0e_0e0​ is the 0th unit vector. The cut operator is N(K)=N(K,Q)N(K) = N(K, Q)N(K)=N(K,Q), and its iterates are N0(K)=KN^0(K) = KN0(K)=K, Nt(K)=N(Nt−1(K))N^t(K) = N(N^{t-1}(K))Nt(K)=N(Nt−1(K)).

Two families of hyperplanes appear in the proofs: Hi={x:xi=0}H_i = \{x : x_i = 0\}Hi​={x:xi​=0} and Gi={x:xi=x0}G_i = \{x : x_i = x_0\}Gi​={x:xi​=x0​}, the hyperplanes through the two opposite facets of QQQ in direction iii.

Formalization targets

Goal: Theorem 1.4

For every closed convex cone K⊆QK \subseteq QK⊆Q,

Nn(K)=K∘.N^n(K) = K^\circ .Nn(K)=K∘.

The statement is uniform in nnn and in KKK: no polyhedrality, no bound on the number of constraints, and no assumption that KKK contains a 0–1 point.

Milestones

  1. Condition (iii″). For a closed convex cone K⊆QK \subseteq QK⊆Q and a symmetric YYY with yii=y0iy_{ii} = y_{0i}yii​=y0i​: Y∈M(K,Q)Y \in M(K, Q)Y∈M(K,Q) if and only if every column of YYY is in KKK and the difference of the first column and any other column is in KKK.
  2. Lemma 1.1. For closed convex cones K1,K2⊆QK_1, K_2 \subseteq QK1​,K2​⊆Q,
(K1∩K2)∘⊆N+(K1,K2)⊆N(K1,K2)⊆K1∩K2.(K_1 \cap K_2)^\circ \subseteq N_+(K_1, K_2) \subseteq N(K_1, K_2) \subseteq K_1 \cap K_2 .(K1​∩K2​)∘⊆N+​(K1​,K2​)⊆N(K1​,K2​)⊆K1​∩K2​.
  1. Lemma 1.3. For a closed convex cone K⊆QK \subseteq QK⊆Q and every 1≤i≤n1 \le i \le n1≤i≤n,
N(K)⊆(K∩Hi)+(K∩Gi).N(K) \subseteq (K \cap H_i) + (K \cap G_i).N(K)⊆(K∩Hi​)+(K∩Gi​).
  1. Claim (4) in the proof of Theorem 1.4. For every set TTT of t≥1t \ge 1t≥1 coordinates, with Fˉ\bar FFˉ the union of the faces of the unit cube that fix the coordinates in TTT to 000 or 111,
Nt(K)⊆cone⁡(K∩Fˉ).N^t(K) \subseteq \operatorname{cone}(K \cap \bar F).Nt(K)⊆cone(K∩Fˉ).
  1. The remark after Lemma 1.1. N(K1∩K2,K1∩K2)⊆N(K1,K2)⊆N(K1∩K2,Q)N(K_1 \cap K_2, K_1 \cap K_2) \subseteq N(K_1, K_2) \subseteq N(K_1 \cap K_2, Q)N(K1​∩K2​,K1​∩K2​)⊆N(K1​,K2​)⊆N(K1​∩K2​,Q).

Significance

Theorem 1.4 is what makes NNN a hierarchy rather than a single cut: the relaxations K⊇N(K)⊇N2(K)⊇…K \supseteq N(K) \supseteq N^2(K) \supseteq \dotsK⊇N(K)⊇N2(K)⊇… reach the 0–1 hull after at most nnn rounds, so the NNN-rank of a valid inequality (the least ttt with the inequality valid for Nt(K)N^t(K)Nt(K)) is a well-defined number between 000 and nnn. The rest of the paper measures combinatorial constraints by this rank: odd hole constraints have rank one on the stable set polytope, and the rank of a stable set inequality is bounded by its defect. Rank lower bounds for lift-and-project hierarchies, in the literature that followed, all presuppose this finite convergence.

The theorem is proved in the paper; to the best of available knowledge none of the Lovász–Schrijver operators has been formalized in a proof assistant. A formalization provides machine-checked definitions of the matrix cones and the cut operators that later missions in this series (odd holes, the defect bound, the N+N_+N+​ constraints) state their results against, and a checked proof of the column characterization (iii″) that all of those proofs use.

Difficulty

The inclusion K∘⊆Nn(K)K^\circ \subseteq N^n(K)K∘⊆Nn(K) follows from Lemma 1.1 once each Nt(K)N^t(K)Nt(K) is known to be a convex cone. The reverse inclusion is the content. A first attempt shows that one round of NNN forces one coordinate to be integral, and then iterates; but N(K)N(K)N(K) is not contained in the union of K∩HiK \cap H_iK∩Hi​ and K∩GiK \cap G_iK∩Gi​, only in their Minkowski sum (Lemma 1.3), so a point of N(K)N(K)N(K) is not itself integral in any coordinate. The induction must carry a statement about cones spanned by intersections with unions of cube faces, and it needs each iterate Nt(K)N^t(K)Nt(K) to again be a closed convex cone inside QQQ so that Lemma 1.3 can be reapplied. Closedness of the projection N(K)N(K)N(K) is not automatic: a linear image of a closed cone need not be closed.

Formalization scope

  • Coordinates of Rn+1\mathbb R^{n+1}Rn+1 are indexed by Option ι for a finite type ι; none is x0x_0x0​ and some i is xix_ixi​, and nnn is the cardinality of ι, which may be 000.
  • cone⁡(S)\operatorname{cone}(S)cone(S) is Mathlib's PointedCone.hull ℝ S; QQQ and K∘K^\circK∘ are defined as spans of 0–1 vectors, as on the page, not by the inequality description 0≤xi≤x00 \le x_i \le x_00≤xi​≤x0​.
  • M(K1,K2)M(K_1, K_2)M(K1​,K2​) is defined by condition (iii) through the polar cones; the column form (iii″) is a milestone, not the definition.
  • The operators NNN, N+N_+N+​ and the iterates are defined on arbitrary sets; the hypotheses (convex cone, contained in QQQ, closed) are carried by the theorems.
  • Closedness. The paper tacitly takes its cones closed (they are polyhedral in all its applications), and the rewriting (iii′) on p. 169 needs it. Every statement here assumes the cones closed. Without this the goal is false: for K={x:0<x1<x0}∪{0}K = \{x : 0 < x_1 < x_0\} \cup \{0\}K={x:0<x1​<x0​}∪{0} in R2\mathbb R^2R2, K∘={0}K^\circ = \{0\}K∘={0} while N(K)=QN(K) = QN(K)=Q.
  • In the proof of Theorem 1.4 the page places the cube Q′Q'Q′ in the hyperplane "x0=0x_0 = 0x0​=0"; this is a misprint for x0=1x_0 = 1x0​=1, and claim (4) is formalized with x0=1x_0 = 1x0​=1.
  • Not formalized in this mission: Lemma 1.2 (the dual description of N(K)∗N(K)^*N(K)∗), Lemma 1.5 (the N+N_+N+​ analogue of Lemma 1.3, part of a later mission), and the algorithmic results of Section 1.c.

Contributions welcome: proofs that N(K)N(K)N(K) is a closed convex cone contained in QQQ whenever KKK is, a proof of Q∗=cone⁡{ei,e0−ei}Q^* = \operatorname{cone}\{e_i, e_0 - e_i\}Q∗=cone{ei​,e0​−ei​}, and lemmas on cones spanned by the intersection of a generating set with a supporting hyperplane; these are reusable by the other missions of the series.

Selected references

  • L. Lovász and A. Schrijver, Cones of matrices and set-functions and 0–1 optimization, SIAM Journal on Optimization 1(2) (1991) 166–190. https://doi.org/10.1137/0801013
  • H. D. Sherali and W. P. Adams, A hierarchy of relaxations between the continuous and convex hull representations for zero-one programming problems, SIAM Journal on Discrete Mathematics 3(3) (1990) 411–430. https://doi.org/10.1137/0403036
  • J. B. Lasserre, Global optimization with polynomials and the problem of moments, SIAM Journal on Optimization 11(3) (2001) 796–817. https://doi.org/10.1137/S1052623400366802
  • M. Laurent, A comparison of the Sherali–Adams, Lovász–Schrijver, and Lasserre relaxations for 0–1 programming, Mathematics of Operations Research 28(3) (2003) 470–496. https://doi.org/10.1287/moor.28.3.470.16391
8 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryLinear Optimization+1·Captain: mikedeng1

Cones of Matrices and Set-Functions and 0–1 Optimization II: One Round of N on the Stable Set Polytope Gives Exactly the Odd Hole ConstraintsResearch Paper

Motivation

The stable set problem (vertex packing) asks for a largest set of pairwise non-adjacent nodes of a graph. It is NP-hard, and its polyhedral study, the description of the stable set polytope STAB(G)\mathrm{STAB}(G)STAB(G) by linear inequalities, is one of the most studied topics of polyhedral combinatorics. Classes of valid inequalities (clique, odd hole, odd antihole, wheel constraints) and the graph classes they describe exactly (perfect, ttt-perfect, hhh-perfect graphs) organize much of that literature; see Grötschel, Lovász and Schrijver, Geometric Algorithms and Combinatorial Optimization (Springer, 1988).

Lovász and Schrijver (SIAM J. Optim. 1(2), 1991) introduced a general lift-and-project procedure for 0–1 programs: lift a relaxation KKK into a space of matrices, impose linear conditions that every 0–1 point satisfies, and project back. One round of their operator NNN gives a tighter relaxation N(K)N(K)N(K) that still contains every 0–1 point of KKK; nnn rounds give the 0–1 hull. The procedure is an ancestor of the Sherali–Adams and Lasserre hierarchies, and the stable set problem is its first test case. This mission formalizes the paper's exact description of what one round of NNN does to the fractional stable set polytope: it adds precisely the odd hole constraints.

Setting

Let G=(V,E)G = (V, E)G=(V,E) be a finite graph with no isolated nodes, n=∣V∣n = |V|n=∣V∣. Vectors of RV∪{0}\mathbb{R}^{V \cup \{0\}}RV∪{0} have a distinguished coordinate x0x_0x0​; RV\mathbb{R}^VRV sits inside as the hyperplane H0={x0=1}H_0 = \{x_0 = 1\}H0​={x0​=1}, via x↦(1,x)x \mapsto (1, x)x↦(1,x).

  • FRAC(G)⊆RV\mathrm{FRAC}(G) \subseteq \mathbb{R}^VFRAC(G)⊆RV is the solution set of the nonnegativity constraints xi≥0x_i \ge 0xi​≥0 (i∈Vi \in Vi∈V) and the edge constraints xi+xj≤1x_i + x_j \le 1xi​+xj​≤1 (ij∈Eij \in Eij∈E).
  • FR(G)⊆RV∪{0}\mathrm{FR}(G) \subseteq \mathbb{R}^{V\cup\{0\}}FR(G)⊆RV∪{0} is the cone given by xi≥0x_i \ge 0xi​≥0 and xi+xj≤x0x_i + x_j \le x_0xi​+xj​≤x0​; it is the cone spanned by the vectors (1,x)(1, x)(1,x) with x∈FRAC(G)x \in \mathrm{FRAC}(G)x∈FRAC(G).
  • QQQ is the cone spanned by the 0–1 vectors with x0=1x_0 = 1x0​=1. For a convex cone KKK, its polar cone is K∗={u:uTx≥0 ∀x∈K}K^* = \{u : u^{\mathsf T}x \ge 0 \ \forall x \in K\}K∗={u:uTx≥0 ∀x∈K}.
  • M(K)=M(K,Q)M(K) = M(K, Q)M(K)=M(K,Q) is the set of (n+1)×(n+1)(n+1)\times(n+1)(n+1)×(n+1) matrices Y=(yij)Y = (y_{ij})Y=(yij​) that are symmetric, satisfy yii=y0iy_{ii} = y_{0i}yii​=y0i​ for i∈Vi \in Vi∈V, and satisfy uTYv≥0u^{\mathsf T} Y v \ge 0uTYv≥0 for all u∈K∗u \in K^*u∈K∗, v∈Q∗v \in Q^*v∈Q∗.
  • N(K)={Ye0:Y∈M(K)}N(K) = \{Y e_0 : Y \in M(K)\}N(K)={Ye0​:Y∈M(K)}, and N(G)={x∈RV:(1,x)∈N(FR(G))}N(G) = \{x \in \mathbb{R}^V : (1, x) \in N(\mathrm{FR}(G))\}N(G)={x∈RV:(1,x)∈N(FR(G))}.
  • A set C⊆VC \subseteq VC⊆V is an odd hole if it induces a chordless cycle of odd length ∣C∣≥3|C| \ge 3∣C∣≥3 (triangles included). Its odd hole constraint is ∑i∈Cxi≤12(∣C∣−1)\sum_{i \in C} x_i \le \frac12(|C| - 1)∑i∈C​xi​≤21​(∣C∣−1).

Formalization targets

Goal: Theorem 2.3 (p. 178)

For every finite graph GGG without isolated nodes,

N(G)={x∈RV:xi≥0 (i∈V),  xi+xj≤1 (ij∈E),  ∑i∈Cxi≤12(∣C∣−1) (C an odd hole)}.N(G) = \Big\{x \in \mathbb{R}^V : x_i \ge 0\ (i \in V),\ \ x_i + x_j \le 1\ (ij \in E),\ \ \sum_{i \in C} x_i \le \tfrac12(|C|-1)\ (C \text{ an odd hole})\Big\}.N(G)={x∈RV:xi​≥0 (i∈V),  xi​+xj​≤1 (ij∈E),  i∈C∑​xi​≤21​(∣C∣−1) (C an odd hole)}.

Milestones, in the order the proof uses them

  1. Lemma 1.3 (p. 171): for a convex cone K⊆QK \subseteq QK⊆Q and i∈Vi \in Vi∈V, N(K)⊆(K∩Hi)+(K∩Gi)N(K) \subseteq (K \cap H_i) + (K \cap G_i)N(K)⊆(K∩Hi​)+(K∩Gi​), with Hi={xi=0}H_i = \{x_i = 0\}Hi​={xi​=0}, Gi={xi=x0}G_i = \{x_i = x_0\}Gi​={xi​=x0​}.
  2. Lemma 2.2 (p. 178): if both the deletion and the contraction of some node vvv give inequalities valid for KKK, then aTx≤ba^{\mathsf T}x \le baTx≤b is valid for N(K)N(K)N(K).
  3. Part (1) of the proof of Theorem 2.3 (p. 178): for an odd hole CCC and i∈Ci \in Ci∈C, the deletion and contraction of iii in the odd hole constraint are valid for FRAC(G)\mathrm{FRAC}(G)FRAC(G).
  4. Observation of Section 2.b (p. 177): every Y∈M(FR(G))Y \in M(\mathrm{FR}(G))Y∈M(FR(G)) has yij=0y_{ij} = 0yij​=0 for ij∈Eij \in Eij∈E.
  5. Part (2) of the proof of Theorem 2.3 (p. 178): x∈N(G)x \in N(G)x∈N(G) if and only if some nonnegative symmetric YYY with y00=1y_{00} = 1y00​=1, yi0=yii=xiy_{i0} = y_{ii} = x_iyi0​=yii​=xi​ satisfies xi+xj+xk−1≤yik+yjk≤xkx_i + x_j + x_k - 1 \le y_{ik} + y_{jk} \le x_kxi​+xj​+xk​−1≤yik​+yjk​≤xk​ for all i,j,ki, j, ki,j,k with ij∈Eij \in Eij∈E.
  6. Lemma 2.4 (p. 178): a system a(ij)≤yi+yj≤b(ij)a(ij) \le y_i + y_j \le b(ij)a(ij)≤yi​+yj​≤b(ij), y≥0y \ge 0y≥0, y∣U=0y|_U = 0y∣U​=0 on a graph is infeasible if and only if a walk with a negative alternating sum of one of four types exists.

Significance

Theorem 2.3 gives a complete description of one round of NNN on the stable set problem: the only new constraints are the odd hole constraints. Consequences:

  • For ttt-perfect graphs (those for which nonnegativity, edge and odd hole constraints describe STAB(G)\mathrm{STAB}(G)STAB(G)), N(G)=STAB(G)N(G) = \mathrm{STAB}(G)N(G)=STAB(G).
  • It is the base case for the paper's bounds on the NNN-index of stable set inequalities (Theorem 2.13), and it contrasts with the semidefinite operator N+N_+N+​, which after one round already satisfies clique, odd antihole and wheel constraints.
  • Lemma 2.4 is a combinatorial feasibility criterion for systems with two variables per inequality, useful beyond this paper.

The result has been proved since 1991. At the time of drafting, Prove2Me holds no formalization of it or of any part of the Lovász–Schrijver construction, and Mathlib has none. The mission produces a formal account of the NNN operator on the stable set polytope and a formal proof of the walk criterion for two-variable systems.

Difficulty

The inclusion of N(G)N(G)N(G) in the odd hole system is a short argument once Lemma 1.3 is available. The reverse inclusion is the substance: given xxx satisfying all odd hole constraints, one must exhibit a lifted matrix YYY. A direct appeal to Farkas' lemma yields a certificate with no visible relation to odd cycles; the difficulty is to show that every obstruction to solvability of the matrix system forces a violated odd hole constraint, which is what Lemma 2.4 and the analysis of its four walk types accomplish. Case (d) of that analysis needs the odd hole constraints; the other cases need only the edge constraints. Lemma 2.4 itself is called folklore on the page and is stated without proof there.

A further point: Lemma 2.4 is stated for lower bounds 0≤a0 \le a0≤a, while the lower bounds that arise from the matrix system, xi+xj+xk−1x_i + x_j + x_k - 1xi​+xj​+xk​−1, can be negative.

Formalization scope

  • Coordinates of RV∪{0}\mathbb{R}^{V\cup\{0\}}RV∪{0} are indexed by Option V, with none the coordinate x0x_0x0​. Graphs are Mathlib SimpleGraphs on a finite type VVV with decidable adjacency. Every statement about a graph carries the paper's standing assumption that GGG has no isolated nodes (∀ v, ∃ w, G.Adj v w).
  • MMM is defined by condition (iii), never by its rewritings. Lemma 1.3 and Lemma 2.2 take the cone KKK closed, a hypothesis the paper leaves tacit (its cones are polyhedral); for a non-closed KKK Lemma 1.3 is false. FR(G)\mathrm{FR}(G)FR(G) is polyhedral, so the goal needs no such hypothesis.
  • FR(G)\mathrm{FR}(G)FR(G) is defined by its constraints; this agrees with the cone over FRAC(G)\mathrm{FRAC}(G)FRAC(G) because GGG has no isolated nodes.
  • Lemma 2.2 is stated in cone form: KKK is any closed convex cone inside FR(G)\mathrm{FR}(G)FR(G), and validity is read on the slice x0=1x_0 = 1x0​=1. The paper's extra hypothesis STAB(G)⊆K\mathrm{STAB}(G) \subseteq KSTAB(G)⊆K is dropped, which strengthens the lemma.
  • Deletion and contraction of a node are coefficient vectors on the same graph (coefficients set to 000), not inequalities on the subgraphs G−vG - vG−v and G−Γ(v)−vG - \Gamma(v) - vG−Γ(v)−v.
  • Odd holes are chordless odd cycles including triangles; triangles are needed, as 121\tfrac12\mathbf 121​1 satisfies all other constraints on a triangle.
  • The matrix system of part (2) is stated as an equivalence; the page uses one direction.
  • Lemma 2.4 uses edge values on unordered pairs and strict inequalities, exactly as printed.

A trivializing formalization is ruled out: the goal is the set equality for every graph without isolated nodes, not the existence of a lifted matrix and not a single graph.

Not formalized here: the semidefinite operator N+N_+N+​, the operator N^\hat NN^, algorithmic statements (Theorems 1.6, 2.1, Corollary 2.5), and the set-function results of Section 3.

Reusable beyond this mission: the matrix cone layer (QQQ, MMM, NNN), the stable-set cones, and the two-variable feasibility criterion of Lemma 2.4. Contributions of any of the milestones, and of general facts about polar cones of polyhedral cones in this setting, are welcome.

Selected references

  • L. Lovász and A. Schrijver, Cones of matrices and set-functions and 0–1 optimization, SIAM Journal on Optimization 1(2) (1991) 166–190. https://doi.org/10.1137/0801013
  • M. Grötschel, L. Lovász and A. Schrijver, Geometric Algorithms and Combinatorial Optimization, Springer, 1988. https://doi.org/10.1007/978-3-642-97881-4
  • H. D. Sherali and W. P. Adams, A hierarchy of relaxations between the continuous and convex hull representations for zero-one programming problems, SIAM Journal on Discrete Mathematics 3(3) (1990) 411–430. https://doi.org/10.1137/0403036
13 thms4 active usersReviewed
Operations ResearchProbabilityStatistics+1·Captain: mikedeng1

Weak Convergence and Optimal Scaling of Random Walk Metropolis Algorithms: Langevin Diffusion Limit of the First CoordinateResearch Paper

Motivation

The random walk Metropolis algorithm is one of the most widely used Markov chain Monte Carlo methods for sampling from a density known up to a constant. Its one tuning parameter is the variance of the Gaussian proposal. If the variance is too small, the chain accepts almost every move but barely moves. If it is too large, it proposes long jumps that are almost always rejected. Practitioners need a rule for choosing it, and the rule has to work in high dimension, where both failure modes are severe.

Roberts, Gelman and Gilks (Ann. Appl. Probab. 7(1), 1997) gave the first rigorous answer for product targets. As the dimension grows, one coordinate of the suitably speeded-up chain converges to a Langevin diffusion. The speed of that diffusion is an explicit function of the proposal scale, and maximising it gives the rule "tune the proposal so that about 23% of proposals are accepted". This rule, and the 2.38/√I scaling behind it, is now standard advice in applied Bayesian statistics.

Setting

Let f:R→Rf:\mathbb R\to\mathbb Rf:R→R be a target density: positive, C2C^2C2, integrating to one, with f′/ff'/ff′/f Lipschitz, and satisfying the moment conditions (A1) Ef[(f′/f)8]<∞\mathbb E_f[(f'/f)^8]<\inftyEf​[(f′/f)8]<∞ and (A2) Ef[(f′′/f)4]<∞\mathbb E_f[(f''/f)^4]<\inftyEf​[(f′′/f)4]<∞. Here Ef[g(X)]=∫g(x)f(x) dx\mathbb E_f[g(X)]=\int g(x)f(x)\,dxEf​[g(X)]=∫g(x)f(x)dx. In dimension n≥2n\ge2n≥2 the target is the product density πn(x)=∏i=1nf(xi)\pi_n(x)=\prod_{i=1}^n f(x_i)πn​(x)=∏i=1n​f(xi​) on Rn\mathbb R^nRn.

Fix a scale l>0l>0l>0 and set σn2=l2/(n−1)\sigma_n^2=l^2/(n-1)σn2​=l2/(n−1). The random walk Metropolis chain Xn=(X0n,X1n,… )X^n=(X^n_0,X^n_1,\dots)Xn=(X0n​,X1n​,…) moves as follows. From Xm−1nX^n_{m-1}Xm−1n​ it proposes Y∼N(Xm−1n,σn2In)Y\sim N(X^n_{m-1},\sigma_n^2I_n)Y∼N(Xm−1n​,σn2​In​). It sets Xmn=YX^n_m=YXmn​=Y with probability α(Xm−1n,Y)=1∧πn(Y)/πn(Xm−1n)\alpha(X^n_{m-1},Y)=1\wedge\pi_n(Y)/\pi_n(X^n_{m-1})α(Xm−1n​,Y)=1∧πn​(Y)/πn​(Xm−1n​), and Xmn=Xm−1nX^n_m=X^n_{m-1}Xmn​=Xm−1n​ otherwise. The chain starts from πn\pi_nπn​, which is stationary for it. The speeded-up first coordinate is Utn=X⌊nt⌋,1nU^n_t=X^n_{\lfloor nt\rfloor,1}Utn​=X⌊nt⌋,1n​ for t≥0t\ge0t≥0.

Let Φ\PhiΦ be the standard normal distribution function, and define the roughness I=Ef[(f′(X)/f(X))2]I=\mathbb E_f[(f'(X)/f(X))^2]I=Ef​[(f′(X)/f(X))2]. The speed and the limiting acceptance rate are

h(l)=2l2 Φ ⁣(−lI2),a(l)=2 Φ ⁣(−lI2).h(l)=2l^2\,\Phi\!\Big(-\frac{l\sqrt I}{2}\Big),\qquad a(l)=2\,\Phi\!\Big(-\frac{l\sqrt I}{2}\Big).h(l)=2l2Φ(−2lI​​),a(l)=2Φ(−2lI​​).

The Langevin generator is GV(x)=h(l)[12V′′(x)+12(log⁡f)′(x)V′(x)]GV(x)=h(l)\big[\tfrac12V''(x)+\tfrac12(\log f)'(x)V'(x)\big]GV(x)=h(l)[21​V′′(x)+21​(logf)′(x)V′(x)]. It generates the Langevin diffusion dUt=h(l)1/2dBt+h(l)f′(Ut)2f(Ut)dtdU_t=h(l)^{1/2}dB_t+h(l)\frac{f'(U_t)}{2f(U_t)}dtdUt​=h(l)1/2dBt​+h(l)2f(Ut​)f′(Ut​)​dt.

Formalization targets

Goal: Theorem 1.1

As n→∞n\to\inftyn→∞,

Un⇒U,U^n\Rightarrow U,Un⇒U,

where ⇒\Rightarrow⇒ denotes weak convergence in the Skorokhod topology, U0U_0U0​ has density fff, and UUU is the Langevin diffusion with speed h(l)h(l)h(l). The limit is asserted to exist. No constants appear in the statement beyond those the model defines.

Milestones: the proof

  1. Lemma 2.1. The stationary chain stays in the sets Fn={∣Rn−I∣<n−1/8}∩{∣Sn−I∣<n−1/8}F_n=\{|R_n-I|<n^{-1/8}\}\cap\{|S_n-I|<n^{-1/8}\}Fn​={∣Rn​−I∣<n−1/8}∩{∣Sn​−I∣<n−1/8} up to time ttt with probability tending to one. Here RnR_nRn​ and SnS_nSn​ are the empirical averages of ((log⁡f)′)2((\log f)')^2((logf)′)2 and −(log⁡f)′′-(\log f)''−(logf)′′ over coordinates 2,…,n2,\dots,n2,…,n.
  2. Proposition 2.2. ∣1∧ex−1∧ey∣≤∣x−y∣|1\wedge e^x-1\wedge e^y|\le|x-y|∣1∧ex−1∧ey∣≤∣x−y∣.
  3. Lemma 2.3. sup⁡x∈FnE∣Wn∣→0\sup_{x\in F_n}\mathbb E|W_n|\to0supx∈Fn​​E∣Wn​∣→0, where WnW_nWn​ is the second-order part of the log acceptance ratio.
  4. Proposition 2.4. E[1∧eA]=Φ(μ/σ)+eμ+σ2/2Φ(−σ−μ/σ)\mathbb E[1\wedge e^A]=\Phi(\mu/\sigma)+e^{\mu+\sigma^2/2}\Phi(-\sigma-\mu/\sigma)E[1∧eA]=Φ(μ/σ)+eμ+σ2/2Φ(−σ−μ/σ) for A∼N(μ,σ2)A\sim N(\mu,\sigma^2)A∼N(μ,σ2).
  5. Lemma 2.5. lim sup⁡nsup⁡x1n∣E[V(Y1)−V(x1)]∣<∞\limsup_n\sup_{x_1}n|\mathbb E[V(Y_1)-V(x_1)]|<\inftylimsupn​supx1​​n∣E[V(Y1​)−V(x1​)]∣<∞ for V∈Cc∞V\in C_c^\inftyV∈Cc∞​.
  6. Lemma 2.6. The discrete generator GnV(x)=n E[(V(Y)−V(x))α(x,Y)]G_nV(x)=n\,\mathbb E[(V(Y)-V(x))\alpha(x,Y)]Gn​V(x)=nE[(V(Y)−V(x))α(x,Y)] converges to GVGVGV uniformly on FnF_nFn​, for V∈Cc∞V\in C_c^\inftyV∈Cc∞​ a function of the first coordinate (stated with bounded (log⁡f)′′′(\log f)'''(logf)′′′, the assumption its proof uses).

Milestones: the optimal-scaling corollary

  1. Corollary 1.2 (i). an(l)=∬πn(x)α(x,y)qn(x,y) dx dy→a(l)a_n(l)=\iint\pi_n(x)\alpha(x,y)q_n(x,y)\,dx\,dy\to a(l)an​(l)=∬πn​(x)α(x,y)qn​(x,y)dxdy→a(l).
  2. Corollary 1.2 (ii). hhh is maximised at l^=2.38/I\hat l=2.38/\sqrt Il^=2.38/I​, with a(l^)=0.23a(\hat l)=0.23a(l^)=0.23 and h(l^)=1.3/Ih(\hat l)=1.3/Ih(l^)=1.3/I, to the printed precision.

Significance

Theorem 1.1 shows that, run for nnn times as many steps, the chain in dimension nnn looks like a fixed one-dimensional diffusion. The algorithm's cost therefore grows linearly in dimension, and its efficiency is measured by the single number h(l)h(l)h(l). Corollary 1.2 turns this into the 0.234 acceptance-rate heuristic and the 2.38/I2.38/\sqrt I2.38/I​ scaling. The same diffusion-limit method has since been applied to the Metropolis-adjusted Langevin algorithm, to Hamiltonian Monte Carlo and to non-product targets.

The theorem is proved on paper; it has no machine-checked proof. A formal development would give the first verified diffusion limit of an MCMC algorithm. It would also yield reusable components: the Metropolis chain on Rn\mathbb R^nRn as a measurable random mapping, a martingale-problem characterisation of one-dimensional diffusions, and a Gaussian computation (Proposition 2.4) that recurs throughout the optimal-scaling literature.

Difficulty

The obvious approach, a Taylor expansion of the log acceptance ratio, gives a sum of n−1n-1n−1 terms of size 1/n1/n1/n. That sum does not concentrate uniformly over the state space, since the coordinates 2,…,n2,\dots,n2,…,n are arbitrary. The expansion is controlled only on the sets FnF_nFn​, where the empirical averages RnR_nRn​ and SnS_nSn​ are close to III. The limit therefore holds only after showing that the chain rarely leaves FnF_nFn​ over a time horizon of ntntnt steps. A pointwise law of large numbers is not enough for that, because the bound has to survive a union over ntntnt steps. Passing from generator convergence on a set of high probability to weak convergence of processes requires the Ethier–Kurtz convergence theory: a core for the limit generator, and convergence of processes that are not themselves Markov. None of this theory is in Mathlib.

Formalization scope

All declarations live in the namespace Roberts1997.RWM. The following conventions are fixed.

  • Vectors are Fin n → ℝ, and the paper's first coordinate x1x_1x1​ is index 0. Its coordinates 2,…,n2,\dots,n2,…,n are the indices i ≠ 0.
  • σn2=l2/(n−1)\sigma_n^2=l^2/(n-1)σn2​=l2/(n−1) is computed in R\mathbb RR. All statements concern n≥2n\ge2n≥2 or large nnn.
  • l>0l>0l>0 is assumed. The paper leaves it implicit, but h(−l)≠h(l)h(-l)\ne h(l)h(−l)=h(l).
  • "fff is a density" is read as ∫f=1\int f=1∫f=1. The moment conditions are read as integrability of (f′/f)8f(f'/f)^8f(f′/f)8f and (f′′/f)4f(f''/f)^4f(f′′/f)4f. The standing assumption "f′/ff'/ff′/f is Lipschitz" (p. 111) is carried by every statement.
  • The chain is built as a random mapping on an explicit probability space: x0∼πnx_0\sim\pi_nx0​∼πn​, with i.i.d. standard normal innovations and uniform acceptance variables. Theorem 1.1's initial condition (components i.i.d. fff, shared across dimensions) is read as "the nnn-th chain starts from πn\pi_nπn​", since weak convergence depends only on the law of each UnU^nUn.
  • "UUU satisfies the Langevin SDE" is read as "the law of UUU solves the martingale problem for GGG on Cc∞C_c^\inftyCc∞​, with continuous paths and initial law f(x) dxf(x)\,dxf(x)dx". This is equivalent by Ethier–Kurtz (1986), Ch. 5, Prop. 3.1 and Thm 3.3, and follows the platform definition EthierKurtz_IsContinuousDiffusionLaw.
  • "Un⇒UU^n\Rightarrow UUn⇒U" is read as the existence of an almost-sure coupling in which càdlàg copies of the UnU^nUn converge to a continuous Langevin path uniformly on compact time intervals. For a continuous limit this is equivalent to weak convergence in DR[0,∞)D_{\mathbb R}[0,\infty)DR​[0,∞), by Skorokhod's representation theorem and Ethier–Kurtz Ch. 3, Thm 1.8, Prop. 5.3 and Prop. 7.1. It follows the platform encoding of Ethier–Kurtz Theorem 7.4.1.
  • "sup⁡→0\sup\to0sup→0" and "lim sup⁡sup⁡<∞\limsup\sup<\inftylimsupsup<∞" are stated as eventual uniform bounds. This avoids real suprema, whose value on an unbounded set is a default.
  • In Lemma 2.6, "as d→∞d\to\inftyd→∞" is a misprint for n→∞n\to\inftyn→∞, and "2f(Ut)2f(Ut)2f(Ut)" in (1.2) is read as 2f(Ut)2f(U_t)2f(Ut​).
  • Corollary 1.2 (ii) is stated for an arbitrary constant I>0I>0I>0. "To two decimal places" is read as explicit rounding intervals: 1.31.31.3 is read to one decimal, and all maximisers over l>0l>0l>0 are covered.

The goal cannot be satisfied trivially. The limit law QQQ must exist, and it must be a probability measure whose initial marginal is f(x) dxf(x)\,dxf(x)dx, so the zero measure is excluded. The coupled copies must carry exactly the laws of the paths UnU^nUn, not an arbitrary process with the same one-time marginals.

The statements carry the paper's hypotheses, with one exception. The printed proof of Lemma 2.6 bounds sup⁡z∣(log⁡f)′′′(z)∣\sup_z|(\log f)'''(z)|supz​∣(logf)′′′(z)∣, which Theorem 1.1 does not assume, and under C2C^2C2 alone the uniform convergence over FnF_nFn​ claimed by Lemma 2.6 fails (narrow spikes of (log⁡f)′′(\log f)''(logf)′′ far out let a positive fraction of the coordinates shift the log acceptance ratio by a constant while RnR_nRn​ and SnS_nSn​ stay close to III). Lemma 2.6 is therefore stated with the proof's own assumption, f∈C3f\in C^3f∈C3 with (log⁡f)′′′(\log f)'''(logf)′′′ bounded, named as an addition. Theorem 1.1 and the other results keep the paper's hypotheses.

A complete development needs several pieces not yet available: path spaces and the Skorokhod topology (or the coupling reading), the martingale problem and its well-posedness for Lipschitz drift, and the Ethier–Kurtz theorem on convergence of generators on sets of high probability. Proofs of the Gaussian milestones (Propositions 2.2 and 2.4, Lemma 2.5) and of Corollary 1.2 (ii) are independent of this infrastructure and are welcome contributions.

Selected references

  • G. O. Roberts, A. Gelman, W. R. Gilks, Weak convergence and optimal scaling of random walk Metropolis algorithms, Ann. Appl. Probab. 7(1), 110–120, 1997. https://doi.org/10.1214/aoap/1034625254
  • S. N. Ethier, T. G. Kurtz, Markov Processes: Characterization and Convergence, Wiley, 1986. https://doi.org/10.1002/9780470316658
  • A. Gelman, G. O. Roberts, W. R. Gilks, Efficient Metropolis jumping rules, Bayesian Statistics 5, Oxford University Press, 599–607, 1996.
  • G. O. Roberts, J. S. Rosenthal, Optimal scaling for various Metropolis–Hastings algorithms, Statistical Science 16(4), 351–367, 2001. https://doi.org/10.1214/ss/1015346320
15 thms4 active usersReviewed
PreviousNext

Get started

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

About Prove2Me

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

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me