Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Operations Research

2,210 missions · 1,098 completed

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

Missions

Open1112Completed1098All2210
🏆Completed
Markov ChainProbabilityStochastic Systems·Captain: mikedeng1

Contact Interactions on a Lattice I: A Contact Process with (2d − 1)λₖ < kμ Dies Out from Every Finite Initial SetResearch Paper

Motivation

The contact process is the basic model of an infection spreading on a lattice: each infected site recovers at a constant rate, and each healthy site becomes infected at a rate that depends on how many of its neighbours are infected. It was introduced by T. E. Harris in Contact Interactions on a Lattice (Ann. Probab. 2, 1974), and it became one of the central examples of interacting particle systems, alongside the voter model and the stochastic Ising model (Liggett, Interacting Particle Systems, 1985, Ch. VI). Its main question is whether a finite infection dies out with probability one or survives forever with positive probability, and how that answer depends on the rates.

Harris's paper gives the first answers. It shows that, under natural conditions on the rates, the probability of survival is monotone, subadditive and submodular as a function of the initial set, and it uses these properties to prove a condition for certain extinction: Theorem 7.1. For the linear contact process (recovery rate 111, infection rate λ\lambdaλ per infected neighbour) the condition is (2d−1)λ<1(2d-1)\lambda<1(2d−1)λ<1. Holley obtained Theorem 7.1 by different methods at about the same time (footnote 4, p. 981); Holley and Liggett (Ann. Probab. 3, 1975) later developed the duality theory of such processes.

Setting

Let ZdZ_dZd​ be the ddd-dimensional integer lattice, d≥1d\ge1d≥1. Sites x,yx,yx,y are neighbours, x∼yx\sim yx∼y, if ∑i∣xi−yi∣=1\sum_i|x^i-y^i|=1∑i​∣xi−yi∣=1; NxN_xNx​ is the set of the 2d2d2d neighbours of xxx. A configuration is a finite set ξ⊂Zd\xi\subset Z_dξ⊂Zd​ of infected sites; Ξ0\Xi_0Ξ0​ is the set of all of them, ξ(Nx)=∣ξ∩Nx∣\xi(N_x)=|\xi\cap N_x|ξ(Nx​)=∣ξ∩Nx​∣, and x∼ξx\sim\xix∼ξ means x∉ξx\notin\xix∈/ξ and xxx has a neighbour in ξ\xiξ.

The parameters are a recovery rate μ≥0\mu\ge0μ≥0 and infection rates λ0=0,λ1,…,λ2d≥0\lambda_0=0,\lambda_1,\dots,\lambda_{2d}\ge0λ0​=0,λ1​,…,λ2d​≥0. The contact process {ξt}\{\xi_t\}{ξt​} started from a finite set is the continuous-time Markov chain on Ξ0\Xi_0Ξ0​ that leaves ξ\xiξ at rate

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

and jumps to ξ∖x\xi\setminus xξ∖x (x∈ξx\in\xix∈ξ) at rate μ\muμ and to ξ∪x\xi\cup xξ∪x (x∼ξx\sim\xix∼ξ) at rate λξ(Nx)\lambda_{\xi(N_x)}λξ(Nx​)​ (4.5). The empty set is absorbing. Write Pt(ξ,η)P_t(\xi,\eta)Pt​(ξ,η) for its transition function, r(ξ,η)=qξη/qξr(\xi,\eta)=q_{\xi\eta}/q_\xir(ξ,η)=qξη​/qξ​ for the transition matrix of its imbedded jump chain, and

pt(ξ)=Pξ{ξt≠∅},p∞(ξ)=lim⁡t→∞pt(ξ),mt(ξ)=Eξ∣ξt∣.p_t(\xi)=P_\xi\{\xi_t\neq\varnothing\},\qquad p_\infty(\xi)=\lim_{t\to\infty}p_t(\xi),\qquad m_t(\xi)=\mathscr E_\xi|\xi_t| .pt​(ξ)=Pξ​{ξt​=∅},p∞​(ξ)=t→∞lim​pt​(ξ),mt​(ξ)=Eξ​∣ξt​∣.

The process is increasing, subadditive or submodular if, for all ξ,η\xi,\etaξ,η and t≥0t\ge0t≥0, respectively pt(ξ)≤pt(ξ∪η)p_t(\xi)\le p_t(\xi\cup\eta)pt​(ξ)≤pt​(ξ∪η), pt(ξ∪η)≤pt(ξ)+pt(η)p_t(\xi\cup\eta)\le p_t(\xi)+p_t(\eta)pt​(ξ∪η)≤pt​(ξ)+pt​(η), or pt(ξ∪η)+pt(ξ∩η)≤pt(ξ)+pt(η)p_t(\xi\cup\eta)+p_t(\xi\cap\eta)\le p_t(\xi)+p_t(\eta)pt​(ξ∪η)+pt​(ξ∩η)≤pt​(ξ)+pt​(η) ((5.2)–(5.4)).

Formalization targets

Goal: Theorem 7.1 (p. 981)

If

(2d−1)λk<kμ,k=1,…,2d,(2d-1)\lambda_k<k\mu,\qquad k=1,\dots,2d,(2d−1)λk​<kμ,k=1,…,2d,

then

p∞(ξ)=0for every finite ξ⊂Zd.p_\infty(\xi)=0\qquad\text{for every finite }\xi\subset Z_d .p∞​(ξ)=0for every finite ξ⊂Zd​.

Milestones, in the order of the paper

  1. Theorem 4.3 (p. 975): from a finite set the process has finitely many jumps on every [0,t][0,t][0,t]; equivalently ∑ηPt(ξ,η)=1\sum_\eta P_t(\xi,\eta)=1∑η​Pt​(ξ,η)=1.
  2. (5.1) (p. 976): pt(ξ)p_t(\xi)pt​(ξ) is non-increasing in ttt, so p∞(ξ)p_\infty(\xi)p∞​(ξ) is a limit.
  3. Theorem 5.6(a) (p. 977): if λk↑\lambda_k\uparrowλk​↑, the process is increasing.
  4. Theorem 5.6(b) (p. 977): if moreover λk/k↓\lambda_k/k\downarrowλk​/k↓, it is subadditive.
  5. Lemma 5.8 (p. 978): if λk≤min⁡j≥kλj′\lambda_k\le\min_{j\ge k}\lambda'_jλk​≤minj≥k​λj′​, then pt≤pt′p_t\le p'_tpt​≤pt′​ and mt≤mt′m_t\le m'_tmt​≤mt′​.
  6. Theorem 6.2 (p. 979): if {λi}\{\lambda_i\}{λi​} is concave and non-decreasing with λ0=0\lambda_0=0λ0​=0, the process is submodular.
  7. Change of time scale (p. 981): multiplying all rates by c>0c>0c>0 replaces PtP_tPt​ by PctP_{ct}Pct​ and leaves p∞p_\inftyp∞​ unchanged.
  8. First-step display (p. 981): for a subadditive process, a singleton {x}\{x\}{x}, and n≥1n\ge1n≥1, p∞({x})=∑ηr(n)({x},η)p∞(η)≤p∞({x}) Ex∣ξ(n)∣p_\infty(\{x\})=\sum_\eta r^{(n)}(\{x\},\eta)p_\infty(\eta)\le p_\infty(\{x\})\,\mathscr E_x|\xi_{(n)}|p∞​({x})=∑η​r(n)({x},η)p∞​(η)≤p∞​({x})Ex​∣ξ(n)​∣.
  9. (7.2) (p. 981): for μ=1\mu=1μ=1, λk=kλ\lambda_k=k\lambdaλk​=kλ: π1=2dλ1+2dλπ2\pi_1=\frac{2d\lambda}{1+2d\lambda}\pi_2π1​=1+2dλ2dλ​π2​, where π1,π2\pi_1,\pi_2π1​,π2​ are p∞p_\inftyp∞​ of a site and of a pair of neighbours.
  10. (7.3)–(7.4) (p. 981): π2−π1=(1+(2d−1)λ)∑′r(ξ,ξ∪x)(p∞(ξ∪x)−π2)≤(π2−π1)(2d−1)λ\pi_2-\pi_1=(1+(2d-1)\lambda)\sum'r(\xi,\xi\cup x)(p_\infty(\xi\cup x)-\pi_2)\le(\pi_2-\pi_1)(2d-1)\lambdaπ2​−π1​=(1+(2d−1)λ)∑′r(ξ,ξ∪x)(p∞​(ξ∪x)−π2​)≤(π2​−π1​)(2d−1)λ.
  11. Conclusion of the proof (p. 981): for μ=1\mu=1μ=1, λk=kλ\lambda_k=k\lambdaλk​=kλ, π1>0\pi_1>0π1​>0 implies (2d−1)λ≥1(2d-1)\lambda\ge1(2d−1)λ≥1.

Significance

Theorem 7.1 gives a computable sufficient condition for extinction that holds in every dimension and for every non-linear infection law satisfying it. For the linear process it gives the lower bound λc≥1/(2d−1)\lambda_c\ge1/(2d-1)λc​≥1/(2d−1) on the critical infection rate; the paper's §9 shows conversely that the process survives for large λk/μ\lambda_k/\muλk​/μ, so the critical rate is non-trivial. The monotonicity, subadditivity and submodularity theorems of §§5–6 are the comparison tools on which much of the later theory of attractive spin systems was built, and Lemma 5.8 is the prototype of comparison between processes with ordered rates.

The results are proved in the paper, and the proof of Theorem 7.1 is half a page once §§5–6 are available. No machine-checked version of the contact process, of its comparison theorems, or of Theorem 7.1 is known to exist. A formalization produces a continuous-time Markov chain with unbounded rates and an absorbing state on a countable state space, its minimal transition function, a non-explosion criterion, first-step analysis for absorption probabilities, and coupling arguments for monotone comparison. The companion mission Contact Interactions on a Lattice II treats Theorem 7.6, the integrability of the expected size, on the same model.

Difficulty

The obvious argument is first-step analysis on singletons and pairs, (7.2) and (7.3). It fails as it stands because (7.3) involves p∞p_\inftyp∞​ of every three-point set ξ∪x\xi\cup xξ∪x, and no finite system of first-step equations closes; some inequality between survival probabilities of nested sets is needed, and the milestones record the one the paper uses. Submodularity, subadditivity and monotonicity are not consequences of the rates by direct computation: the paper proves each by building several contact processes on one probability space (Tables 1–4), which in a formal development means constructing couplings of chains with unbounded rates and checking that each marginal has the right law. The reduction from general λk\lambda_kλk​ to the linear case also needs the comparison Lemma 5.8, another coupling. Finally the rates grow linearly in ∣ξ∣|\xi|∣ξ∣, so uniformization does not apply and non-explosion (Theorem 4.3) must be proved before transition probabilities are known to sum to one.

Formalization scope

The process is the countable-state chain of §4, not the Feller process on all subsets of ZdZ_dZd​ of §2: sites are Fin d → ℤ, configurations are Finsets, and PtP_tPt​ is the minimal transition function of the rates (4.4)–(4.5), defined as the increasing limit of Feller's backward recursion. There is no measure-theoretic process object; PξP_\xiPξ​ and Eξ\mathscr E_\xiEξ​ enter only through PtP_tPt​. Consequently Theorem 4.1 (Ξ0\Xi_0Ξ0​ is stochastically closed) is built in, and every statement is made for finite initial sets, including those the page makes for arbitrary ξ∈Ξ\xi\in\Xiξ∈Ξ ((5.2)–(5.4), Lemma 5.8); for infinite ξ\xiξ the page itself notes pt(ξ)=1p_t(\xi)=1pt​(ξ)=1.

The committed conventions:

  • PtP_tPt​, ptp_tpt​, p∞p_\inftyp∞​ and mtm_tmt​ take values in [0,∞][0,\infty][0,∞]; pt(ξ)=1−Pt(ξ,∅)p_t(\xi)=1-P_t(\xi,\varnothing)pt​(ξ)=1−Pt​(ξ,∅) and p∞(ξ)=inf⁡t≥0pt(ξ)p_\infty(\xi)=\inf_{t\ge0}p_t(\xi)p∞​(ξ)=inft≥0​pt​(ξ), so p∞=0p_\infty=0p∞​=0 means absorption at ∅\varnothing∅ and cannot be produced by loss of mass to explosion.
  • The rates are real; every theorem assumes d≥1d\ge1d≥1, μ≥0\mu\ge0μ≥0, λ0=0\lambda_0=0λ0​=0 and λk≥0\lambda_k\ge0λk​≥0 for k≤2dk\le2dk≤2d. Conditions on {λk}\{\lambda_k\}{λk​} range over k=1,…,2dk=1,\dots,2dk=1,…,2d (or 0,…,2d0,\dots,2d0,…,2d), never over all natural numbers.
  • 2d−12d-12d−1 is the real number 2d−12d-12d−1.
  • In the linear case the scalar rate is written lll (λ\lambdaλ is reserved in Lean), μ=1\mu=1μ=1 and λk=kl\lambda_k=klλk​=kl.

Trivializing formalizations are ruled out: the survival probability is not taken from an arbitrary semigroup or a uniformization (the rates are unbounded); p∞p_\inftyp∞​ is not a real infimum or limUnder, whose junk value 000 would make the goal free; λ\lambdaλ is indexed by the number of infected, not vacant, neighbours, and λ0=0\lambda_0=0λ0​=0 forbids spontaneous infection; and (7.2) is stated for every site and every neighbour, not for one fixed pair.

A complete development needs: non-explosion for chains with linearly growing rates; the Chapman–Kolmogorov and strong Markov properties of the minimal chain at jump times; lattice symmetries (translations and coordinate reflections) acting on the chain; and couplings of several contact processes realised as one chain on a product type space. The chain infrastructure and the coupling lemmas are reusable beyond this mission, in particular by its companion. Contributions to any milestone are welcome, including proofs of the milestones under the paper's hypotheses by methods other than Harris's.

Selected references

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

Heavy-Traffic Limits for Queues with Many Exponential Servers: The Scaled Stationary M/M/n Queue Length Converges to a Hybrid Exponential–Normal LawResearch Paper

Why many-server queues in heavy traffic

Telephone exchanges, call centers, hospital wards and cloud server pools are queues with a large number sss of parallel servers. For such systems two classical approximations pull in opposite directions. Holding sss fixed and letting the traffic intensity ρ→1\rho \to 1ρ→1 gives the conventional heavy-traffic limit, in which almost every customer waits. Letting sss grow with ρ\rhoρ fixed below one gives a limit in which almost nobody waits. Real systems sit in between: a positive fraction of customers wait, and waits are short. Halfin and Whitt (Operations Research 29 (1981) 567–588) identified the scaling that produces this middle regime and the limit laws it yields. The scaling is now called the Halfin–Whitt or quality-and-efficiency-driven (QED) regime, and it underlies square-root staffing: run n≈R+βRn \approx R + \beta\sqrt Rn≈R+βR​ servers for an offered load of RRR Erlangs. Borst, Mandelbaum and Reiman (Operations Research 52 (2004) 17–34) built staffing rules for large call centers on it.

Timeline. Erlang (1917) gave the delay probability of the M/M/s queue. Iglehart (1965) proved diffusion limits for M/M/s queues with the number of servers growing and the traffic intensity fixed. Halfin and Whitt (1981) proved that the delay probability has a limit strictly between 0 and 1 exactly when (1−ρn)n(1-\rho_n)\sqrt n(1−ρn​)n​ converges to a positive constant (their Proposition 1), derived the limit of the stationary queue length (Theorem 1), and extended the process-level limit to GI/M/s queues. Later work extended the regime to many-server queues with general service times and abandonment.

Setting

An M/M/s queue has Poisson arrivals at rate λ>0\lambda > 0λ>0, s≥1s \ge 1s≥1 servers, and exponential service times with rate μ>0\mu > 0μ>0. Its traffic intensity is ρ=λ/(sμ)\rho = \lambda/(s\mu)ρ=λ/(sμ). The number Q(t)Q(t)Q(t) of customers in the system (waiting or in service) is a birth–death process on {0,1,2,… }\{0,1,2,\dots\}{0,1,2,…} with birth rate λ\lambdaλ and death rate min⁡(k,s)μ\min(k,s)\mumin(k,s)μ in state kkk. When ρ<1\rho < 1ρ<1, Q(t)Q(t)Q(t) converges in distribution to Q(∞)Q(\infty)Q(∞), whose law pk=P(Q(∞)=k)p_k = P(Q(\infty) = k)pk​=P(Q(∞)=k) is the unique probability distribution solving the balance equations of this chain. The probability of delay α=P(Q(∞)≥s)\alpha = P(Q(\infty) \ge s)α=P(Q(∞)≥s) is the Erlang-C formula.

The mission studies a sequence of such queues: queue n≥1n \ge 1n≥1 has sn=ns_n = nsn​=n servers, the fixed service rate μ\muμ, and arrival rate λn\lambda_nλn​ with ρn=λn/(nμ)<1\rho_n = \lambda_n/(n\mu) < 1ρn​=λn​/(nμ)<1 and λn→∞\lambda_n \to \inftyλn​→∞. Its stationary queue length is Qn(∞)Q_n(\infty)Qn​(∞), and the scaled queue length is

Xn=Qn(∞)−nn.X_n = \frac{Q_n(\infty) - n}{\sqrt n}.Xn​=n​Qn​(∞)−n​.

Throughout, Φ\PhiΦ and φ\varphiφ denote the standard normal distribution function and density, and for β>0\beta > 0β>0

α(β)=[1+2π β Φ(β) eβ2/2]−1=φ(β)φ(β)+βΦ(β)∈(0,1).\alpha(\beta) = \big[1 + \sqrt{2\pi}\,\beta\,\Phi(\beta)\,e^{\beta^2/2}\big]^{-1} = \frac{\varphi(\beta)}{\varphi(\beta) + \beta\Phi(\beta)} \in (0,1).α(β)=[1+2π​βΦ(β)eβ2/2]−1=φ(β)+βΦ(β)φ(β)​∈(0,1).

The standing assumption of the paper's Section 2 is the heavy-traffic condition

lim⁡n→∞(1−ρn)n=β,β>0.(2.2)\lim_{n\to\infty} (1-\rho_n)\sqrt n = \beta, \qquad \beta > 0. \tag{2.2}n→∞lim​(1−ρn​)n​=β,β>0.(2.2)

Formalization targets

Goal: Theorem 1

Under (2.2), with α=α(β)\alpha = \alpha(\beta)α=α(β),

Xn⇒X,P(X≥0)=α,P(X>x∣X≥0)=e−xβ (x≥0),P(X≤x∣X≤0)=Φ(β+x)Φ(β) (x≤0).X_n \Rightarrow X, \qquad P(X \ge 0) = \alpha,\quad P(X > x \mid X \ge 0) = e^{-x\beta}\ (x \ge 0),\quad P(X \le x \mid X \le 0) = \frac{\Phi(\beta + x)}{\Phi(\beta)}\ (x \le 0).Xn​⇒X,P(X≥0)=α,P(X>x∣X≥0)=e−xβ (x≥0),P(X≤x∣X≤0)=Φ(β)Φ(β+x)​ (x≤0).

The limit is exponential with rate β\betaβ above zero and a normal law truncated at zero below it, with masses α\alphaα and 1−α1-\alpha1−α.

Milestones, in the order the paper proves them

  1. The stationary law (1.1)–(1.3) of one M/M/s queue, and the identification (1.2) of P(Q(∞)≥s)P(Q(\infty) \ge s)P(Q(∞)≥s) with the Erlang-C formula.
  2. Lemma 1: recursions expressing the partial moments ∑k<skmpk\sum_{k<s} k^m p_k∑k<s​kmpk​ and ∑k≥skmpk\sum_{k \ge s} k^m p_k∑k≥s​kmpk​ through lower ones and α\alphaα.
  3. Proposition 1: P(Qn(∞)≥n)→α∈(0,1)P(Q_n(\infty) \ge n) \to \alpha \in (0,1)P(Qn​(∞)≥n)→α∈(0,1) if and only if (2.2) holds, and then α=α(β)\alpha = \alpha(\beta)α=α(β).
  4. Proposition 2: for δ>0\delta > 0δ>0 and (n−δn)/n→δ(n - \delta_n)/\sqrt n \to \delta(n−δn​)/n​→δ with δn≤n\delta_n \le nδn​≤n,
P(Qn(∞)≤δn∣Qn(∞)≤n)→Φ(β−δ)Φ(β),n P(Qn(∞)=[δn]∣Qn(∞)≤n)→φ(β−δ)Φ(β),P(Q_n(\infty) \le \delta_n \mid Q_n(\infty) \le n) \to \frac{\Phi(\beta-\delta)}{\Phi(\beta)},\qquad \sqrt n\,P(Q_n(\infty) = [\delta_n] \mid Q_n(\infty) \le n) \to \frac{\varphi(\beta-\delta)}{\Phi(\beta)},P(Qn​(∞)≤δn​∣Qn​(∞)≤n)→Φ(β)Φ(β−δ)​,n​P(Qn​(∞)=[δn​]∣Qn​(∞)≤n)→Φ(β)φ(β−δ)​,

and for (δn−n)/n→δ(\delta_n - n)/\sqrt n \to \delta(δn​−n)/n​→δ with δn≥n\delta_n \ge nδn​≥n,

P(Qn(∞)≥δn∣Qn(∞)≥n)→e−δβ,n P(Qn(∞)=[δn]∣Qn(∞)≥n)→βe−δβ.P(Q_n(\infty) \ge \delta_n \mid Q_n(\infty) \ge n) \to e^{-\delta\beta},\qquad \sqrt n\,P(Q_n(\infty) = [\delta_n] \mid Q_n(\infty) \ge n) \to \beta e^{-\delta\beta}.P(Qn​(∞)≥δn​∣Qn​(∞)≥n)→e−δβ,n​P(Qn​(∞)=[δn​]∣Qn​(∞)≥n)→βe−δβ.
  1. Corollary 1: the first four moments and the variance of XnX_nXn​ converge to explicit functions of α\alphaα and β\betaβ, for example EXn→−β+α/βE X_n \to -\beta + \alpha/\betaEXn​→−β+α/β.

Significance

Theorem 1 is the stationary half of the Halfin–Whitt regime. It turns the Erlang-C formula, a ratio of sums with nnn terms that is opaque for large nnn, into a two-parameter description of congestion: α\alphaα is the fraction of customers who wait, β\betaβ is the scaled safety margin of servers, and the conditional laws above give the distribution of the number waiting and of the number of idle servers. Proposition 1 and Theorem 1 are what square-root staffing rules evaluate; Corollary 1 supplies the mean and variance used in the paper's numerical approximations.

All results of this mission are proved in the paper, by direct calculation from (1.1)–(1.3), Stirling's formula and the central limit theorem for Poisson variables. None has a machine-checked proof. Proposition 1 and the two Section 1 facts are posed on the platform as open theorems from the Gross et al. queueing textbook series; this mission adds the conditional and local limits, the weak-convergence theorem and the moment results on the same definitions, so that a closed development would give a fully checked derivation of the Halfin–Whitt limit from the balance equations.

Difficulty

The stationary law is explicit, so nothing here needs a stochastic process. The difficulty is analytic and uniform: each statement is a limit of ratios of sums of nnn or infinitely many terms, (nρn)k/k!(n\rho_n)^k/k!(nρn​)k/k! below nnn and a geometric tail above nnn, in which ρn→1\rho_n \to 1ρn​→1 and n→∞n \to \inftyn→∞ at linked rates. The lower half needs a central limit theorem for Poisson laws whose parameter nρnn\rho_nnρn​ moves with nnn and is evaluated at a moving point; the local limits (2.10) and (2.12) need Stirling's formula with explicit control of log⁡ρn\log \rho_nlogρn​ to second order. Weak convergence then needs tightness, or a direct argument from the conditional limits, and the moment limits need uniform integrability, which the fixed-sss moment recursions do not give by themselves. Holding ρ\rhoρ fixed, or taking limits in nnn and ρ\rhoρ one after the other, gives degenerate answers (α=0\alpha = 0α=0 or α=1\alpha = 1α=1); the two limits must be taken together.

Formalization scope

The Lean development lives in the namespace HalfinWhitt81.Stationary. The law of Qn(∞)Q_n(\infty)Qn​(∞) is a sequence p n : ℕ → ℝ satisfying IsSteadyState (fun _ => lam n) (mmcDeath μ n) (p n) of the referenced definition QueueingFundamentals.BirthDeath.Balance (nonnegative, summing to one, solving the balance equations of the M/M/n chain); the Erlang-C formula and α(β)\alpha(\beta)α(β) are erlangC and halfinWhittAlpha of QueueingFundamentals.BirthDeath.Erlang, and Φ\PhiΦ, φ\varphiφ are Mathlib's cdf (gaussianReal 0 1) and gaussianPDFReal 0 1. These, and the three open theorems for (1.1)–(1.3), (1.2) and Proposition 1, come from the Gross et al. (2008) series and are referenced, not restated. The related Borst–Mandelbaum–Reiman items (DimCallCenters.*.lemma_4_1, for the continuous extension of Erlang-C) state a different result and are not used.

Conventions committed to:

  • hypotheses on queue nnn (rates, steady state, δn≤n\delta_n \le nδn​≤n or δn≥n\delta_n \ge nδn​≥n) are imposed for n≥1n \ge 1n≥1, and only limits are asserted; λn→∞\lambda_n \to \inftyλn​→∞ is kept as a hypothesis although it follows from (2.2);
  • the standing assumption "(2.1) or, equivalently, (2.2)" is the hypothesis (2.2) with β>0\beta > 0β>0, and α\alphaα is written as α(β)\alpha(\beta)α(β), equal to the limit in (2.1) by Proposition 1;
  • probabilities of Qn(∞)Q_n(\infty)Qn​(∞) are sums of p n (probLE, probGE, probEqInt); a conditional probability P(A∣B)P(A \mid B)P(A∣B) with A⊆BA \subseteq BA⊆B is the ratio P(A)/P(B)P(A)/P(B)P(A)/P(B); [x][x][x] is Int.floor, with P(Q=m)=0P(Q = m) = 0P(Q=m)=0 for m<0m < 0m<0;
  • XnX_nXn​ uses n−1/2n^{-1/2}n−1/2: the page's (2.13) prints n1/2n^{1/2}n1/2, a misprint; (2.12) prints the limit βe−β\beta e^{-\beta}βe−β, a misprint for βe−δβ\beta e^{-\delta\beta}βe−δβ, which is what is formalized;
  • "Xn⇒XX_n \Rightarrow XXn​⇒X" is stated as: there is a Borel probability measure ν\nuν on R\mathbb RR with the three properties of Theorem 1 such that ∑kpn(k) g((k−n)/n)→∫g dν\sum_k p_n(k)\,g((k-n)/\sqrt n) \to \int g\,d\nu∑k​pn​(k)g((k−n)/n​)→∫gdν for every bounded continuous ggg; the exponential clause is for x≥0x \ge 0x≥0 and the normal clause for x≤0x \le 0x≤0;
  • infinite sums whose convergence is not implied by the hypotheses (the moment series of Lemma 1 and Corollary 1) have their convergence in the conclusion.

The goal cannot be met trivially: the law of Qn(∞)Q_n(\infty)Qn​(∞) is the M/M/n steady state, not a free sequence; the limit measure is asserted to exist together with its three properties and the convergence, so no vacuous "for every ν\nuν" reading is possible; and the statement P(Xn≥0)→αP(X_n \ge 0) \to \alphaP(Xn​≥0)→α alone is Proposition 1, already posed.

A complete development needs: the closed form of the M/M/n steady state, Poisson central limit and local limit theorems with a moving parameter, Stirling's formula with error terms, a criterion for weak convergence from convergence of distribution functions, and uniform integrability for the moments. The Poisson limit theorems and the weak-convergence criterion are reusable beyond this mission. Proofs of the referenced open theorems, of individual milestones, and alternative routes to Theorem 1 (moment convergence, or the process-level limit) are all welcome.

Selected references

  • S. Halfin and W. Whitt, Heavy-Traffic Limits for Queues with Many Exponential Servers, Operations Research 29(3) (1981) 567–588. https://doi.org/10.1287/opre.29.3.567
  • R. B. Cooper, Introduction to Queueing Theory, Macmillan, 1972 (the source cited for (1.1)–(1.3)).
  • D. L. Iglehart, Limiting Diffusion Approximations for the Many Server Queue and the Repairman Problem, Journal of Applied Probability 2(2) (1965) 429–441.
  • S. Borst, A. Mandelbaum and M. I. Reiman, Dimensioning Large Call Centers, Operations Research 52(1) (2004) 17–34. https://doi.org/10.1287/opre.1030.0081
  • D. Gross, J. F. Shortle, J. M. Thompson and C. M. Harris, Fundamentals of Queueing Theory, 4th ed., Wiley, 2008 (§2.4: the Erlang-C formula and the Halfin–Whitt limit).
13 thms3 active usersReviewed
🏆Completed
Dynamical SystemsProbabilityStochastic Systems·Captain: mikedeng1

Subadditive Ergodic Theory 1: Kingman's Theorem — x₀ₜ/t Converges with Probability One and in Mean to a Finite ξ with E(ξ) = γResearch Paper

Motivation

Many stochastic systems have an accumulated cost or passage time that grows with the length of an observation window. Splitting a window at an intermediate time gives an upper bound on the total, even when it does not give an equality. First-passage percolation and products of random matrices are examples discussed by Kingman (1973). A central question is whether the cost per unit time settles to a long-run rate on almost every sample path.

Hammersley and Welsh introduced subadditive stochastic processes in 1965. Kingman's 1968 theorem established the almost-sure limit for the stationary process considered here. His 1973 paper restated the result, identified the limit's expectation, and set out the process model and related formulations used in later applications. The 1973 article explicitly attributes the proof of Theorem 1, its maximal inequality, and its decomposition to the 1968 work; this mission formalizes the statements as presented in the 1973 paper.

Setting

Fix a probability space (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P). For integers 0≤s<t0\le s<t0≤s<t, let xst:Ω→Rx_{st}:\Omega\to\mathbb Rxst​:Ω→R be a measurable random variable. Think of xstx_{st}xst​ as the accumulated quantity over the interval from sss to ttt. Condition S₁ is subadditivity: xsu≤xst+xtux_{su}\le x_{st}+x_{tu}xsu​≤xst​+xtu​ whenever s<t<us<t<us<t<u. The stronger equality defines an additive process.

Condition S₂ says that shifting every interval one time unit forward leaves the joint distribution of the whole family unchanged. It concerns the law of (xs+1,t+1)s<t(x_{s+1,t+1})_{s<t}(xs+1,t+1​)s<t​ as a single countable path. The one-dimensional statement that each xstx_{st}xst​ has a distribution depending only on t−st-st−s is called S₂′ in the paper; it does not replace S₂. Condition S₃ says that every positive-time variable x0tx_{0t}x0t​ is integrable and that, for some real AAA, its mean gt=EP(x0t)g_t=E_P(x_{0t})gt​=EP​(x0t​) satisfies gt≥−Atg_t\ge-Atgt​≥−At for all t≥1t\ge1t≥1. A subadditive process satisfies S₁, S₂, and S₃.

The associated mean growth rate is γ(x)=inf⁡t≥1gt/t\gamma(x)=\inf_{t\ge1}g_t/tγ(x)=inft≥1​gt​/t. The time index starts at one in this infimum because division by zero would introduce an unrelated value. S₃ gives a finite lower bound; the subadditive mean relation makes this infimum the limit of gt/tg_t/tgt​/t. Kingman also considers the invariant σ-field I\mathcal II: events determined by the entire path and unchanged by the shift (xst)↦(xs+1,t+1)(x_{st})\mapsto(x_{s+1,t+1})(xst​)↦(xs+1,t+1​). It records the part of the process that can remain random in the limiting rate. Source: §§1.1–1.2, pp. 883–885.

Formalization targets

Theorem 1: finite long-run rate

For every subadditive process there is an integrable real random variable ξ\xiξ such that

x0t(ω)t⟶ξ(ω)for P-almost every ω,∫Ω∣x0tt−ξ∣ dP⟶0,EP(ξ)=γ(x).\frac{x_{0t}(\omega)}{t}\longrightarrow\xi(\omega) \quad\text{for }P\text{-almost every }\omega, \qquad \int_\Omega\left|\frac{x_{0t}}{t}-\xi\right|\,dP\longrightarrow0, \qquad E_P(\xi)=\gamma(x).tx0t​(ω)​⟶ξ(ω)for P-almost every ω,∫Ω​​tx0t​​−ξ​dP⟶0,EP​(ξ)=γ(x).

These are three distinct claims: almost-sure convergence, convergence in mean, and an identity for the limit's expectation. The limit need not be a constant. The milestone list also covers the convergence of the means, the maximal inequality (1.2.5), the decomposition (1.2.6), the measure-preserving formulation (1.3.4)–(1.3.5), and the representation through I\mathcal II in (1.2.4). Each statement comes from the 1973 paper, §§1.1–1.3.

Measure-preserving formulation

For a measure-preserving map θ:Ω→Ω\theta:\Omega\to\Omegaθ:Ω→Ω, condition Sᴱ concerns integrable functions fnf_nfn​ with fm+n(ω)≤fm(ω)+fn(θmω)f_{m+n}(\omega)\le f_m(\omega)+f_n(\theta^m\omega)fm+n​(ω)≤fm​(ω)+fn​(θmω) for m,n≥1m,n\ge1m,n≥1 and a linear lower bound on their expectations. It yields an integrable ξ\xiξ with fn/n→ξf_n/n\to\xifn​/n→ξ almost surely and in mean. Neither invertibility nor ergodicity of θ\thetaθ is assumed. Source: §1.3, p. 886.

Significance

The theorem assigns a finite sample-path growth rate to an entire class of stationary subadditive systems. It also ties the average of that rate to the infimum of the normalized expected values. The equality is useful when a system's finite-window means are easier to estimate than its individual long-run paths. The invariant σ-field statement explains why a stationary system can have different rates on different paths without contradicting the mean identity. Kingman's examples show how the same framework reaches percolation and matrix products.

The result is mathematically proved, as the 1973 article states. The remaining work here is a machine-checked development of its process model and the displayed results. A published Prove2Me item, PalmQueueing.Ergodic.kingman_subadditive, is open and concerns an ergodic bijective flow with a constant possibly infinite limit; it does not supply this nonergodic finite-limit theorem or convergence in mean. The draft statements in this mission compile with proof placeholders. No machine-checked proof of these new statements is claimed.

Difficulty

Subadditivity gives bounds when intervals are joined, but it does not express x0tx_{0t}x0t​ as a sum of identically distributed increments. The ordinary additive ergodic theorem therefore does not immediately give convergence for x0t/tx_{0t}/tx0t​/t. Nor does convergence of the expectations gt/tg_t/tgt​/t alone force convergence on individual paths or in mean. The process may also have a nonconstant limit: stationarity is a joint-law condition, not an ergodicity assumption that erases invariant information. These are the gaps the formalization must close without strengthening the hypotheses. Source: §§1.1–1.3.

Formalization scope

Lean represents xxx as a function of two natural-number indices and a sample point, but every condition and conclusion uses only s<ts<ts<t. S₁ and the Sᴱ cocycle inequality follow the paper's pointwise displays; random-variable equality in the decomposition is stated almost surely at each valid index pair. Measurability of each valid coordinate is explicit. S₂ compares two probability measures on the full countable path space, so equality of individual marginals cannot satisfy it. The probability measure is normalized, and S₃ requires Bochner integrability to keep every mean finite. The constant γ\gammaγ is a real infimum over positive times, used only under S₃. The goal's limit is real and integrable; Kingman's separate Theorem 2 treats a possible value of −∞-\infty−∞ and belongs to another mission.

The invariant σ-field is the pullback of the path-space shift-invariant σ-field. Its measurability claim is made through an almost-everywhere equal version, since almost-sure limits are insensitive to changes on null sets. Conditional expectation uses this explicit sub-σ-field. All limits in this mission take positive integer time to infinity. The Sᴱ definition requires measure preservation but no inverse and no ergodicity. Thus neither a marginal-law substitution for S₂ nor an ergodic constant-limit specialization can trivialize the target.

A complete proof can reuse Mathlib's measure theory, conditional expectation, product measurable spaces, measure-preserving maps, and subadditive-sequence results. The two process definitions, the invariant σ-field interface, and auxiliary statements are useful to later formalizations of stationary growth models. Contributions that prove the stated results or develop general-purpose lemmas for these objects fit the mission.

Selected references

  • J. F. C. Kingman, Subadditive ergodic theory, The Annals of Probability 1(6), 883–899, 1973. DOI: 10.1214/aop/1176996798.
8 thms3 active usersReviewed
Convex OptimizationOptimizationStochastic Systems·Captain: mikedeng1

Loss Networks 1: The Primal Problem Has a Unique Optimum x_r = ν_r ∏_j (1 − B_j)^{A_jr}; the Conditions on B Are Solvable, Uniquely if rank A = J, and Biject with Dual OptimaResearch Paper

Motivation

A loss network carries calls that require capacity on one or more links. A call is accepted only when every required link has enough free circuits; otherwise it is lost. This makes the traffic on different links dependent even when calls on different routes arrive independently. Network operators need to know where capacity constraints bind and how offered traffic is converted into carried traffic. Kelly's 1991 survey develops a continuous optimization problem that identifies a characteristic flow vector and gives a linkwise description of blocking in this setting. Kelly, Loss networks (1991), §§1.2 and 2.1.

The paper begins with the equilibrium distribution of the discrete network and uses a continuous relaxation when analyzing its likely state. The resulting primal problem is useful beyond the original probability calculation because it links route flows, capacity constraints, and a convex dual. Theorem 2.8 collects the existence, uniqueness, and correspondence statements for these descriptions. This mission targets that theorem and the intermediate claims Kelly states in §2.1. Kelly (1991), pp. 327–329.

Setting

There are finitely many links jjj and finitely many routes rrr. Link jjj has CjC_jCj​ circuits, and one call on route rrr uses AjrA_{jr}Ajr​ circuits there, with AjrA_{jr}Ajr​ a nonnegative integer. Calls request route rrr at positive offered rate νr\nu_rνr​. The matrix AAA need not be a zero–one incidence matrix: one call may use more than one circuit on a link. Kelly's fixed-routing model and its general integer matrix are described in §1.2. Kelly (1991), p. 321.

A real route-flow vector x=(xr)x=(x_r)x=(xr​) is primal feasible if xr≥0x_r\ge0xr​≥0 for every route and ∑rAjrxr≤Cj\sum_r A_{jr}x_r\le C_j∑r​Ajr​xr​≤Cj​ for every link. The objective is

F(x)=∑r(xrlog⁡νr−xrlog⁡xr+xr),F(x)=\sum_r\bigl(x_r\log\nu_r-x_r\log x_r+x_r\bigr),F(x)=r∑​(xr​logνr​−xr​logxr​+xr​),

with xrlog⁡xr=0x_r\log x_r=0xr​logxr​=0 at xr=0x_r=0xr​=0. The primal optimum maximizes FFF over precisely this feasible set. This is the continuous problem (2.1), rather than an optimization over the integer-valued network state. Kelly (1991), p. 327, (2.1).

A nonnegative vector y=(yj)y=(y_j)y=(yj​) assigns one multiplier to each link. The dual objective is

D(y)=∑rνrexp⁡ ⁣(−∑jyjAjr)+∑jyjCj,yj≥0.D(y)=\sum_r\nu_r\exp\!\left(-\sum_jy_jA_{jr}\right)+\sum_jy_jC_j, \qquad y_j\ge0.D(y)=r∑​νr​exp(−j∑​yj​Ajr​)+j∑​yj​Cj​,yj​≥0.

A blocking vector B=(Bj)B=(B_j)B=(Bj​) has 0≤Bj<10\le B_j<10≤Bj​<1. Its carried route flow is νr∏i(1−Bi)Air\nu_r\prod_i(1-B_i)^{A_{ir}}νr​∏i​(1−Bi​)Air​. The conditions on BBB say that the total carried flow through link jjj equals CjC_jCj​ when Bj>0B_j>0Bj​>0, and is at most CjC_jCj​ when Bj=0B_j=0Bj​=0. The multiplier and blocking coordinates are related by Bj=1−e−yjB_j=1-e^{-y_j}Bj​=1−e−yj​, equivalently yj=−log⁡(1−Bj)y_j=-\log(1-B_j)yj​=−log(1−Bj​). These are equations (2.3), (2.6), and (2.7). Kelly (1991), p. 328.

Formalization targets

Theorem 2.8: primal optimum, blocking solutions, and dual optima

The goal first asserts that the primal problem has exactly one optimizer. Every blocking solution must describe that same optimizer:

xr=νr∏j(1−Bj)Ajrfor every route r.x_r=\nu_r\prod_j(1-B_j)^{A_{jr}}\quad\text{for every route }r.xr​=νr​j∏​(1−Bj​)Ajr​for every route r.

It also asserts that a blocking solution exists, and that it is unique if AAA has rank JJJ, the number of links. Finally, the transformations Bj=1−e−yjB_j=1-e^{-y_j}Bj​=1−e−yj​ and yj=−log⁡(1−Bj)y_j=-\log(1-B_j)yj​=−log(1−Bj​) give a bijection between all blocking solutions and all dual optima. The formal goal includes both directions and both inverse identities, even when the dual optimizer is not unique. Kelly (1991), p. 329, Theorem 2.8.

Claims leading to the theorem

The milestone list follows Kelly's stated progression: unique primal attainment; the Lagrangian maximum and the dual value in (2.2); feasibility and complementary slackness in (2.4)–(2.5); the substitution (2.6); dual attainment; both directions of the blocking–dual correspondence; and strict convexity plus uniqueness under full row rank. One direction of the correspondence is an existing, proved platform theorem, KellyStochasticNetworks.dual_optimum_conditions; it is referenced directly. The other direction remains a new target. Kelly (1991), pp. 327–329.

Significance

The theorem makes the carried flow uniquely determined even when several blocking vectors or dual optimizers describe it. Under full row rank, it also identifies a unique linkwise blocking vector. Its correspondence lets a statement in the flow language be translated to a statement in the multiplier language without selecting a preferred optimizer. The interpretation following Theorem 2.8 explains the linkwise condition: positive blocking occurs only on a saturated link. Kelly (1991), p. 329, discussion after Theorem 2.8.

The mathematical result was proved in the source paper. The work here is to obtain machine-checked proofs of its exact finite-dimensional statements. The published Kelly–Yudovina definition KellyStochasticNetworks.dualObjective already represents the dual formula, and its proved optimum-conditions theorem supplies one direction of the correspondence. The remaining development would give reusable facts about separable entropy objectives, nonnegative linear capacity constraints, complementary slackness, and exponential coordinate changes. Those facts can support later loss-network formalizations without changing this mission's target.

Difficulty

The boundary xr=0x_r=0xr​=0 requires care: the objective has a continuous value there, but its logarithmic derivative does not. Thus a calculation that differentiates the objective throughout the closed nonnegative cone does not justify the printed differentiability sentence on p. 327. Dual existence is another boundary issue. A nonnegative capacity permits Cj=0C_j=0Cj​=0, while the paper's stated growth of the dual objective in every nonnegative coordinate can fail at that input. Any formal argument for the complete theorem must cover these domains accurately. Full row rank controls uniqueness of the dual coordinates; without it, the paper explicitly allows nonunique blocking solutions. Kelly (1991), pp. 327–329.

Formalization scope

Lean represents links by Fin J, routes by Fin R, AjrA_{jr}Ajr​ and CjC_jCj​ by natural numbers, and xrx_rxr​, yjy_jyj​, BjB_jBj​, and νr\nu_rνr​ by real numbers. The primal feasible set includes both coordinatewise nonnegativity and every link-capacity inequality. The dual optimum is minimal over the nonnegative orthant, using the published dual objective. The finite sums and products have their usual empty-index values; no hidden nonemptiness assumption is imposed. Matrix rank is taken over the reals and compared with JJJ, so the rank condition is full row rank.

The goal assumes νr>0\nu_r>0νr​>0 and Cj≥1C_j\ge1Cj​≥1 for every route and link. Positive rates give the logarithm in the primal objective its intended meaning. Positive capacities exclude a degeneracy in the dual-attainment and blocking parts of the theorem. The value at xr=0x_r=0xr​=0 is the continuous extension xrlog⁡xr=0x_r\log x_r=0xr​logxr​=0; no differentiability assertion at that boundary is part of the formal target. Blocking values belong to [0,1)[0,1)[0,1), so the inverse logarithm is evaluated on a positive number. A flow optimum always ranges over the exact primal feasible set, and a blocking solution always ranges over the full conditions (2.7); neither can be replaced by an arbitrary vector with a convenient equation.

A complete proof may require finite-dimensional convex analysis, strict concavity of the entropy term, attainment on a closed feasible set, the dual first-order condition, and facts about exponentials, logarithms, products, and matrix rank. The definitions and theorems are kept separate so work on these pieces can be reused. Contributions proving either a milestone or a reusable supporting lemma are in scope.

Selected references

  • F. P. Kelly, Loss networks, The Annals of Applied Probability 1(3), 319–378, 1991. DOI: 10.1214/aoap/1177005872.
11 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph TheoryOptimization·Captain: mikedeng1

Sequencing a One State-Variable Machine: A Solvable Case of the Traveling Salesman Problem 1: The Spanning-Tree Interchange Tour ψ* Is a Minimal Cost TourResearch Paper

Motivation

The traveling salesman problem is NP-hard in general, so special cost structures under which it can be solved exactly in polynomial time are of lasting interest in combinatorial optimization and scheduling. One of the earliest and most cited such cases comes from sequencing on a machine whose condition is described by a single real number: a furnace temperature, a knife setting, a fill level. Each job must start at a prescribed state and leaves the machine in another, and changing the state between consecutive jobs costs money or time. Finding the cheapest cyclic order of the jobs is a traveling salesman problem with asymmetric costs.

P. C. Gilmore and R. E. Gomory solved this problem exactly in 1964 (Oper. Res. 12(5), 655–679) with an algorithm of O(N2)O(N^2)O(N2) simple steps. Their construction became the standard example of a solvable TSP case: it is the starting point of the survey literature on polynomially solvable TSPs (Gilmore, Lawler and Shmoys 1985; Burkard, Deineko, van Dal, van der Veen and Woeginger 1998), and it appears in the no-wait flow shop literature, where two-machine no-wait scheduling reduces to exactly this cost structure.

Setting

There are NNN jobs J1,…,JNJ_1,\dots,J_NJ1​,…,JN​. Job iii must be started when the state of the machine is AiA_iAi​ and leaves the machine in state BiB_iBi​; the jobs are numbered so that j>ij>ij>i implies Bj≥BiB_j\ge B_iBj​≥Bi​. Two cost densities f,g:R→Rf,g:\mathbb R\to\mathbb Rf,g:R→R satisfy f(x)+g(x)≥0f(x)+g(x)\ge0f(x)+g(x)≥0: raising the state through xxx costs f(x)f(x)f(x) per unit, lowering it costs g(x)g(x)g(x) per unit. The changeover cost of having job jjj follow job iii is

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

A permutation ψ\psiψ of the jobs assigns to each job iii its successor ψ(i)\psi(i)ψ(i) and has cost c(ψ)=∑iciψ(i)c(\psi)=\sum_i c_{i\psi(i)}c(ψ)=∑i​ciψ(i)​. It is a tour if ψ(s)≠s\psi(s)\ne sψ(s)=s for every nonempty proper subset sss of the jobs, i.e. if it is a single cycle through all jobs.

A permutation φ\varphiφ ranks the AAA if j>ij>ij>i implies Aφ(j)≥Aφ(i)A_{\varphi(j)}\ge A_{\varphi(i)}Aφ(j)​≥Aφ(i)​. The interchange αij\alpha_{ij}αij​ swaps iii and jjj; applying it to ψ\psiψ gives ψαij\psi\alpha_{ij}ψαij​ (first αij\alpha_{ij}αij​, then ψ\psiψ), which exchanges the successors of iii and jjj, at cost cψ(αij)=c(ψαij)−c(ψ)c_\psi(\alpha_{ij})=c(\psi\alpha_{ij})-c(\psi)cψ​(αij​)=c(ψαij​)−c(ψ). The graph GφG_\varphiGφ​ links iii and φ(i)\varphi(i)φ(i) for every iii; a spanning tree of GφG_\varphiGφ​ is a minimal set of additional arcs RijR_{ij}Rij​ that makes it connected, with cost ∑cφ(αij)\sum c_\varphi(\alpha_{ij})∑cφ​(αij​). Node qqq is of type 1 if Bq≤Aφ(q)B_q\le A_{\varphi(q)}Bq​≤Aφ(q)​ and of type 2 otherwise.

Given a minimal cost spanning tree τ\tauτ of GφG_\varphiGφ​ made of arcs Rq,q+1R_{q,q+1}Rq,q+1​, the tour ψ∗\psi^*ψ∗ is obtained from φ\varphiφ by executing the interchanges αq,q+1\alpha_{q,q+1}αq,q+1​, Rq,q+1∈τR_{q,q+1}\in\tauRq,q+1​∈τ, first those of type 1 in decreasing order of qqq, then those of type 2 in increasing order of qqq.

Formalization targets

Goal: Theorem 5

ψ∗ is a tour, andc(ψ∗)≤c(ψ)  for every tour ψ.\psi^*\ \text{is a tour, and}\quad c(\psi^*)\le c(\psi)\ \text{ for every tour }\psi.ψ∗ is a tour, andc(ψ∗)≤c(ψ)  for every tour ψ.

This is the paper's main theorem. It fixes no constant and no special form of f,gf,gf,g; it asserts that the specific tour produced by the algorithm is optimal among all tours.

Milestones

In the order the proof uses them:

  1. Theorem 1: c(φ)=min⁡ψc(ψ)c(\varphi)=\min_\psi c(\psi)c(φ)=minψ​c(ψ) over all permutations.
  2. Eq. (11): under Bj≥BiB_j\ge B_iBj​≥Bi​, Aψ(j)≥Aψ(i)A_{\psi(j)}\ge A_{\psi(i)}Aψ(j)​≥Aψ(i)​, the cost of αij\alpha_{ij}αij​ is ∫[Bi,Bj]∩[Aψ(i),Aψ(j)](f+g)\int_{[B_i,B_j]\cap[A_{\psi(i)},A_{\psi(j)}]}(f+g)∫[Bi​,Bj​]∩[Aψ(i)​,Aψ(j)​]​(f+g).
  3. Lemma 1: an interchange between two different cycles merges them.
  4. Theorem 2: the interchanges of a spanning tree, in any order, turn ψ\psiψ into a tour.
  5. Lemma 2: some minimal cost spanning tree of GφG_\varphiGφ​ uses only arcs Ri,i+1R_{i,i+1}Ri,i+1​.
  6. Lemma 5: adjacent interchanges executed on φ\varphiφ in the stated order have additive cost.
  7. Theorem 3: ψ∗\psi^*ψ∗ is a tour of cost c(φ)+cφ(τ)c(\varphi)+c_\varphi(\tau)c(φ)+cφ​(τ).
  8. Theorem 4: c(ψ)≥c(φ)+c∗(ψ)c(\psi)\ge c(\varphi)+c^*(\psi)c(ψ)≥c(φ)+c∗(ψ) for every permutation, with the underestimate c∗c^*c∗ of (17).
  9. Lemma 7: for a tour ψ\psiψ the graph Gψ∗G_\psi^*Gψ∗​ is connected.
  10. Lemma 8: conditions (22a) and (22b) hold for equally many indices.
  11. Eq. (28): c∗(ψ)≥cφ(τ)c^*(\psi)\ge c_\varphi(\tau)c∗(ψ)≥cφ​(τ) for every tour ψ\psiψ.

Off the goal's path: Theorem 7, a minimal tour for (f,g)(f,g)(f,g) is minimal for (f+g,0)(f+g,0)(f+g,0).

Significance

The theorem shows that a traveling salesman problem whose costs come from a one-dimensional state is solved by three polynomial steps: sorting (an optimal assignment), a minimum spanning tree over N−1N-1N−1 candidate arcs, and a prescribed sequence of interchanges. It is the base case for a family of later results on solvable TSPs and for the two-machine no-wait flow shop, where it gives an exact polynomial algorithm.

The result has been proved since 1964. No machine-checked proof of it is known to exist. The proof in the paper argues largely from figures ("evident geometrically"), and its statement of Theorem 3 lists the interchanges in an order that contradicts its own proof: executed in the printed order, the paper's numerical example yields a tour of cost 39 instead of the optimum 34. A formal proof settles which order is correct and fills in the geometric steps. Partial contributions are useful: the permutation facts (Lemmas 1, 8 and Theorem 2) are independent of the cost model and reusable.

Difficulty

The obvious argument fails at two points. First, interchanges do not commute in cost: once one interchange is executed, the cost of the next one depends on the new successors, so the cost of ψ∗\psi^*ψ∗ is not simply c(φ)c(\varphi)c(φ) plus the tree cost for an arbitrary execution order. Showing that the specific order of Lemma 5 avoids all interference requires tracking how type-1 and type-2 nodes behave as interchanges are applied. Second, optimality is not a local statement: an arbitrary tour is not reachable from φ\varphiφ by tree interchanges, so the lower bound needs the separate underestimate c∗c^*c∗ and a counting argument relating every tour to a spanning tree of GφG_\varphiGφ​. Neither step follows from general minimum spanning tree theory.

Formalization scope

Jobs are Fin (n + 1) (N=n+1≥1N=n+1\ge1N=n+1≥1), so the paper's job iii is index i−1i-1i−1; the adjacent arc Rq,q+1R_{q,q+1}Rq,q+1​ is indexed by q : Fin n and joins q.castSucc and q.succ. Permutations are Equiv.Perm (Fin (n + 1)), and ψαij\psi\alpha_{ij}ψαij​ is ψ * Equiv.swap i j (Mathlib's composition, "first αij\alpha_{ij}αij​, then ψ\psiψ"). Costs are real; (1) uses oriented interval integrals and (17) set integrals.

Explicit readings of the paper's loose phrases:

  • "any integrable functions f,gf,gf,g" is read as local integrability on R\mathbb RR, with f+g≥0f+g\ge0f+g≥0 the only sign condition;
  • "proper subsets sss" in (4) are nonempty proper subsets;
  • "a minimal set of additional arcs that connect" is minimal under inclusion; "minimal cost spanning tree" is minimal in cost among spanning trees made of adjacent arcs (by Lemma 2 the same minimum as over all trees);
  • "minimal cost tour" means cost at most that of every tour, i.e. every permutation that is a single cycle;
  • "obtained by executing the α\alphaα's in a particular order" (Lemma 5) is the explicit order of its proof;
  • ties among the AAA leave φ\varphiφ non-unique; every statement holds for every ranking φ\varphiφ.

The order of ψ∗\psi^*ψ∗ is that of the proof of Lemma 5 and of steps T2–T4 (p. 673), not the order printed in Theorem 3.

Trivializing formalizations are ruled out: the goal quantifies over all tours, not over permutations (that is Theorem 1) nor over tours reachable from φ\varphiφ; ψ∗\psi^*ψ∗ is constructed from φ\varphiφ and τ\tauτ, not taken as an arbitrary tour of the right cost; τ\tauτ is both inclusion-minimal and cost-minimal; and the costs keep both branches of (1) with general densities, not cij=∣Aj−Bi∣c_{ij}=|A_j-B_i|cij​=∣Aj​−Bi​∣. The TSP items already on the platform concern symmetric or metric distances with tours as visiting orders, a different model, and are not reused.

Needed infrastructure: cycle structure of permutations under transpositions (Mathlib's Equiv.Perm.SameCycle), connectivity of finite simple graphs, interval integrals of locally integrable functions. Contributions to any milestone are welcome; the purely combinatorial ones (Lemmas 1, 8, Theorem 2, Lemma 7) are independent of the integrals.

Selected references

  • P. C. Gilmore and R. E. Gomory, Sequencing a one state-variable machine: a solvable case of the traveling salesman problem, Operations Research 12(5), 1964, 655–679. https://doi.org/10.1287/opre.12.5.655
  • P. C. Gilmore, E. L. Lawler and D. B. Shmoys, Well-solved special cases, in The Traveling Salesman Problem (Lawler, Lenstra, Rinnooy Kan, Shmoys, eds.), Wiley, 1985, 87–143. ISBN 978-0-471-90413-7
  • R. E. Burkard, V. G. Deineko, R. van Dal, J. A. A. van der Veen and G. J. Woeginger, Well-solvable special cases of the traveling salesman problem: a survey, SIAM Review 40(3), 1998, 496–546. https://doi.org/10.1137/S0036144596297514
  • J. B. Kruskal, On the shortest spanning subtree of a graph and the traveling salesman problem, Proc. AMS 7(1), 1956, 48–50. https://doi.org/10.1090/S0002-9939-1956-0078686-7
15 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph Theory·Captain: mikedeng1

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

Motivation

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

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

Setting

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

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

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

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

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

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

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

Formalization targets

Goal: Theorem 3 (pp. 29–30)

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

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

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

Milestones

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

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

Significance

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

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

Difficulty

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

Formalization scope

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

Selected references

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

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

Motivation

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

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

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

Setting

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

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

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

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

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

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

Formalization targets

Goal: THEOREM 1 (p. 261)

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

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

an optimal solution of P2 is

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

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

Milestones

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

Companions

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

Significance

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

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

Difficulty

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

Formalization scope

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

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

Selected references

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

One-Processor Scheduling with Symmetric Earliness and Tardiness Penalties 1: Minimizing the Total Discrepancy from Preferred Times Is NP-CompleteResearch Paper

Motivation

Scheduling with earliness and tardiness penalties asks for schedules in which a job finishing early is as undesirable as a job finishing late. The model fits production planned for just-in-time delivery, where finished goods held before their due date cost money, and sequences of experiments tied to fixed external events. It departs from classical scheduling, in which finishing early is never penalized.

Garey, Tarjan and Wilfong (Math. Oper. Res. 13 (1988) 330–348) study the symmetric version on one processor: each task has a preferred starting time, and the penalty is the absolute deviation from it. Their §2.1 settles the complexity of the most natural objective, the sum of these deviations, by proving it NP-complete. The result explains why the rest of their paper, and much of the later literature, turns to special cases that can be solved efficiently: a fixed task order, equal task lengths, or the maximum deviation instead of the sum.

A short history of the model:

  • Kanet (1981) minimized total absolute deviation from a common due date that is large enough not to constrain the schedule, by a sorting rule. The special case in the middle of §2.1 is the midtime version of this problem.
  • Garey, Tarjan and Wilfong (1988) proved the problem with arbitrary preferred times NP-complete (THEOREM 1, this mission), and gave an O(Nlog⁡N)O(N\log N)O(NlogN) algorithm for a fixed task order.
  • Hall, Kubiak and Sethi (1991) proved that the common-due-date problem becomes NP-hard when the due date is restrictive. The reduction of THEOREM 1 already uses a common preferred midtime that is not large, together with one extra task that pins the right end.

Setting

There are NNN tasks T1,…,TNT_1,\dots,T_NT1​,…,TN​. Task TiT_iTi​ has a length lil_ili​ and a preferred midtime MiM_iMi​. A schedule SSS assigns every task a starting time si≥0s_i\ge0si​≥0 such that no two tasks overlap on the single processor: for i≠ji\ne ji=j, either si+li≤sjs_i+l_i\le s_jsi​+li​≤sj​ or sj+lj≤sis_j+l_j\le s_isj​+lj​≤si​. Idle time is allowed. The actual midtime of TiT_iTi​ is mi(S)=si+li/2m_i(S)=s_i+l_i/2mi​(S)=si​+li​/2, and the total discrepancy of SSS is

cost(S)=∑i=1N∣mi(S)−Mi∣.\mathrm{cost}(S)=\sum_{i=1}^N |m_i(S)-M_i| .cost(S)=i=1∑N​∣mi​(S)−Mi​∣.

The paper works with midtimes because the special case below is then symmetric. Preferred midtimes and preferred starting times aia_iai​ are interchangeable through ai=Mi−li/2a_i=M_i-l_i/2ai​=Mi​−li​/2.

Total discrepancy (the decision problem). Given N,k∈Z+N,k\in\mathbb Z^+N,k∈Z+ and Mi,li∈Z+M_i,l_i\in\mathbb Z^+Mi​,li​∈Z+, is there a schedule with cost(S)≤k\mathrm{cost}(S)\le kcost(S)≤k?

Even-odd partition. Given positive integers x1<x2<⋯<x2nx_1<x_2<\dots<x_{2n}x1​<x2​<⋯<x2n​, can they be split into two sets of equal sum so that each set contains exactly one of x2i−1,x2ix_{2i-1},x_{2i}x2i−1​,x2i​ for every iii?

The special case. For tasks T0,…,T2nT_0,\dots,T_{2n}T0​,…,T2n​ with 0<l0<l1<⋯<l2n0<l_0<l_1<\dots<l_{2n}0<l0​<l1​<⋯<l2n​ and one common preferred midtime M>∑iliM>\sum_i l_iM>∑i​li​, write A(S)={Ti:mi(S)<M}A(S)=\{T_i: m_i(S)<M\}A(S)={Ti​:mi​(S)<M} and B(S)={Ti:mi(S)>M}B(S)=\{T_i:m_i(S)>M\}B(S)={Ti​:mi​(S)>M}. A schedule is ordered if, on each side of MMM, shorter tasks lie nearer to MMM. The bracket [An,…,A1,T0@M,B1,…,Bn][A_n,\dots,A_1,T_0@M,B_1,\dots,B_n][An​,…,A1​,T0​@M,B1​,…,Bn​] is the schedule that puts T0T_0T0​ at midtime MMM and packs the listed tasks against it in the listed order.

Formalization targets

Goal: THEOREM 1

Partition is NP-complete ⟹ Total discrepancy is NP-complete.\text{Partition is NP-complete}\ \Longrightarrow\ \text{Total discrepancy is NP-complete.}Partition is NP-complete ⟹ Total discrepancy is NP-complete.

The hypothesis is the one result the paper imports (Garey and Johnson, 1979). The conclusion includes membership in NP and polynomial-time many-one reductions from every NP language, with Turing machines as the model of computation.

Milestones, in attack order

  1. Even-odd partition is in NP; the instance x1=1x_1=1x1​=1, x2i=x2i−1+yix_{2i}=x_{2i-1}+y_ix2i​=x2i−1​+yi​, x2i+1=x2i+1x_{2i+1}=x_{2i}+1x2i+1​=x2i​+1 built from a Partition instance YYY is a yes-instance if and only if YYY is; and LEMMA 1, even-odd partition is NP-complete.
  2. The special case: a minimum cost schedule has no gaps and is ordered; LEMMA 2 (some mi(S)=Mm_i(S)=Mmi​(S)=M), LEMMA 3 (∣A(S)∣=∣B(S)∣|A(S)|=|B(S)|∣A(S)∣=∣B(S)∣), LEMMA 4 (m0(S)=Mm_0(S)=Mm0​(S)=M), LEMMA 5 (swapping AiA_iAi​ and BiB_iBi​ in a bracket keeps the cost), LEMMA 6 ({Ai,Bi}={T2i,T2i−1}\{A_i,B_i\}=\{T_{2i},T_{2i-1}\}{Ai​,Bi​}={T2i​,T2i−1​} in a minimum cost bracket), and the minimum cost
k=∑i=1n(l2i+l2i−1)(n−i+12)+l0 n.k=\sum_{i=1}^n(l_{2i}+l_{2i-1})\left(n-i+\tfrac12\right)+l_0\,n .k=i=1∑n​(l2i​+l2i−1​)(n−i+21​)+l0​n.
  1. At the midtime M=12∑i=02nliM=\frac12\sum_{i=0}^{2n}l_iM=21​∑i=02n​li​ used in the reduction, every schedule of T0,…,T2nT_0,\dots,T_{2n}T0​,…,T2n​ costs at least kkk; equality forces the ordered, gap-free form in item 2.
  2. The reduction: the instance D with l0=x1−1l_0=x_1-1l0​=x1​−1, li=xil_i=x_ili​=xi​, l2n+1=2l_{2n+1}=2l2n+1​=2, Mj=M=∑i≤2nli/2M_j=M=\sum_{i\le 2n}l_i/2Mj​=M=∑i≤2n​li​/2, M2n+1=2M+1M_{2n+1}=2M+1M2n+1​=2M+1 has a schedule of cost at most kkk if and only if XXX has an even-odd partition. Total discrepancy is in NP.

Significance

THEOREM 1 is the hardness boundary for one-processor scheduling with symmetric earliness–tardiness penalties and arbitrary preferred times. It is the reason exact algorithms for this objective are enumerative, and the reason polynomial results are sought under extra structure, such as the fixed-order algorithm of the same paper. The special-case lemmas characterize every optimal schedule for a common, unrestrictive midtime, not just one of them: shortest task centered at MMM, the iii-th pair of lengths in the iii-th positions on either side, either member on either side. This characterization holds independently of the reduction.

The result has been proved since 1988, and no machine-checked version of it is known to us. A formalization adds three things. First, the parts the paper calls "straightforward" or "a simple exercise", membership of both problems in NP. Second, the two places where the published argument is imprecise. The instance D has half-integer midtimes and threshold although the decision problem asks for integers, so a correct reduction must rescale. And the special-case lemmas are proved for a large midtime but applied with M=∑ili/2M=\sum_i l_i/2M=∑i​li​/2, so they must be restated for every MMM. Third, a reusable formal treatment of absolute-deviation scheduling objectives and of reductions between number problems written in binary.

Difficulty

The obvious argument fails at the step from the special case to the instance D. The lemmas on pp. 333–336 assume the common midtime is large, so that the constraint si≥0s_i\ge0si​≥0 never binds. In D the midtime is M=∑i=02nli/2M=\sum_{i=0}^{2n}l_i/2M=∑i=02n​li​/2, exactly half the total length, and the reduction works because the constraint binds. The tasks before MMM must fit in [0,M−l0/2][0,M-l_0/2][0,M−l0​/2], and the extra task T2n+1T_{2n+1}T2n+1​ must sit at [2M,2M+2][2M,2M+2][2M,2M+2]. Together these force the two sides to have equal total length. A proof that only cites the large-MMM lemmas proves nothing about D. Conversely, dropping si≥0s_i\ge 0si​≥0 makes the reduction false: put the shorter element of every pair after MMM.

The other obstacle is the complexity bookkeeping. NP-completeness here means Turing machines, binary codes, and polynomial bounds, and a full proof must compute D from the code of XXX, double the times to clear the half-integers, and certify membership in NP for a problem whose schedules have real starting times. The certificate cannot be the real starting times themselves.

Formalization scope

  • Everything is real-valued except the instance codes. Schedules have real starting times si≥0s_i\ge0si​≥0, and integer data are cast to R\mathbb RR. Restricting to integer starting times would be a different problem and is not what is stated.
  • Nonnegative starting times are a standing assumption. The paper uses them ("scheduled between 0 and M−l0/2M-l_0/2M−l0​/2", p. 336) without writing them into the model. Nonoverlap is "one task finishes before the other starts", the reading of "intersect only at their endpoints".
  • Tasks are indexed by Fin N from 000. In the special case TiT_iTi​ is index iii, and the paper's T2i−1,T2iT_{2i-1},T_{2i}T2i−1​,T2i​ (1≤i≤n1\le i\le n1≤i≤n) are the indices 2k+1,2k+22k+1,2k+22k+1,2k+2 for k=i−1k=i-1k=i−1.
  • Languages use the published CookPvsNP_defs (Cook's one-tape Turing machines, NP, NPComplete) and the published ProjSchedTW.Complexity.Encoding (four-letter alphabet and binary codes). This mission defines positivePartitionLang by restricting the imported equal-sum predicate to nonempty lists of positive integers, as on p. 333. Only codes of well-formed instances belong to the even-odd and total discrepancy languages.
  • The goal is not the combinatorial equivalence of milestone 4. It states NP-completeness, so it contains the polynomial-time computation of the reduction and membership in NP. Taking NPComplete evenOddLang as the hypothesis instead would drop LEMMA 1 and is not what is asked.
  • Running times of the algorithms of §2.2–§2.4 are out of scope for this mission, as are all results after §2.1.

Contributions welcome: proofs of any milestone, and reusable lemmas on Turing-machine computability of arithmetic on binary codes, which the two membership results and both reductions need.

Selected references

  • M. R. Garey, R. E. Tarjan, G. T. Wilfong, One-Processor Scheduling with Symmetric Earliness and Tardiness Penalties, Mathematics of Operations Research 13(2):330–348, 1988. https://doi.org/10.1287/moor.13.2.330
  • M. R. Garey, D. S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman, 1979.
  • J. J. Kanet, Minimizing the average deviation of job completion times about a common due date, Naval Research Logistics Quarterly 28(4):643–651, 1981. https://doi.org/10.1002/nav.3800280411
  • N. G. Hall, W. Kubiak, S. P. Sethi, Earliness–tardiness scheduling problems, II: Deviation of completion times about a restrictive common due date, Operations Research 39(5):847–856, 1991. https://doi.org/10.1287/opre.39.5.847
  • S. Cook, The P versus NP problem, Clay Mathematics Institute Millennium Problems, 2000. https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf
19 thms3 active usersReviewed
🏆Completed
Graph TheoryLinear Optimization·Captain: mikedeng1

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

Motivation

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

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

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

Setting

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

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

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

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

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

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

Formalization targets

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

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

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

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

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

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

Significance

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

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

Difficulty

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

Formalization scope

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

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

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

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

Selected references

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

Optimal Starting Times for End-of-Season Sales and Optimal Stopping Times for Promotional Fares 1: Markdown Is Optimal Once Time-to-Go Falls Below a Strictly Increasing Threshold x_nResearch Paper

Why the timing of a markdown matters

A seller with limited stock can charge a high price while demand is strong and lower the price before the selling season ends. The timing depends on how many units remain: a markdown that is sensible with ample stock may be premature when only one unit is left. Feng and Gallego studied this decision when each price generates a Poisson demand stream and only one price change is allowed. Their 1995 paper proves that the optimal decision has a threshold in remaining time for every inventory level. This mission formalizes their markdown theorem, including its value-function representation, rather than just the existence of a switching rule.

The model is a finite-inventory revenue problem, relevant when an unsold unit loses its value at the end of a season. It is also a continuous-time stopping problem: the seller observes actual sales and may react to them. A fixed calendar date for the markdown cannot describe all of those decisions. The paper treats the markdown case separately from the markup case, because the order of prices, arrival rates and revenue rates reverses the behavior of the switching boundary. The present mission concerns the markdown case alone.

Prices, demand, and admissible switches

Let n≥1n\ge1n≥1 be the initial stock and t≥0t\ge0t≥0 the time to go. The seller first charges price p1p_1p1​ and may change once to a lower price p2p_2p2​. Demands at the two prices are independent Poisson counts with positive rates λ1\lambda_1λ1​ and λ2\lambda_2λ2​. A lower price produces more arrivals, so p2<p1p_2<p_1p2​<p1​ and λ1<λ2\lambda_1<\lambda_2λ1​<λ2​. Feng and Gallego also assume that lowering the price increases the revenue rate: p1λ1<p2λ2p_1\lambda_1<p_2\lambda_2p1​λ1​<p2​λ2​. There is no salvage payment for inventory left when time expires. These conventions come from §2 and the case split on pp. 1375–1376.

Write N1(s)N_1(s)N1​(s) for the observed sales count at the initial price by time sss. If the price changes at deterministic time s∈[0,t]s\in[0,t]s∈[0,t], let J(n,t;s)J(n,t;s)J(n,t;s) be the expected total revenue. The count after the change is independent of N1(s)N_1(s)N1​(s), and their sum has Poisson mean λ1s+λ2(t−s)\lambda_1s+\lambda_2(t-s)λ1​s+λ2​(t−s). The optimal value J(n,t)J(n,t)J(n,t) allows the switch time τ\tauτ to depend on the counts observed so far. An admissible τ\tauτ lies between zero and ttt, is a stopping time for the history of N1N_1N1​, and occurs before stock is exhausted almost surely. At s=0s=0s=0, J(n,t;0)J(n,t;0)J(n,t;0) is the revenue from charging p2p_2p2​ immediately. The paper defines these quantities in §3, pp. 1377–1379.

Formalization targets

The goal is Theorem 1, p. 1380. It asserts a strictly increasing sequence x1<x2<⋯x_1<x_2<\cdotsx1​<x2​<⋯ of inventory-dependent thresholds. When t≤xnt\le x_nt≤xn​, switching immediately earns the optimal value; when t>xnt>x_nt>xn​, a correction F(n,t)F(n,t)F(n,t) is added:

J(n,t)={J(n,t;0),t≤xn,J(n,t;0)+F(n,t),t>xn.J(n,t)=\begin{cases} J(n,t;0),&t\le x_n,\\ J(n,t;0)+F(n,t),&t>x_n. \end{cases}J(n,t)={J(n,t;0),J(n,t;0)+F(n,t),​t≤xn​,t>xn​.​

The theorem specifies the correction, rather than leaving it as an arbitrary difference of values. It starts with F(0,t)=0F(0,t)=0F(0,t)=0. For n≥1n\ge1n≥1, set L(n,t)=G(n,t)+λ1F(n−1,t)L(n,t)=G(n,t)+\lambda_1F(n-1,t)L(n,t)=G(n,t)+λ1​F(n−1,t), where GGG is the Poisson-tail expression from §4.1. The threshold xnx_nxn​ is the first nonnegative zero of L(n,⋅)L(n,\cdot)L(n,⋅). A function H(n,⋅)H(n,\cdot)H(n,⋅) satisfies ∂tH=−λ1H+L\partial_tH=-\lambda_1H+L∂t​H=−λ1​H+L for positive time and H(n,xn)=0H(n,x_n)=0H(n,xn​)=0; FFF is zero below xnx_nxn​ and equals HHH at and above it. If yny_nyn​ is the first zero of G(n,⋅)G(n,\cdot)G(n,⋅), the theorem also gives x1=y1x_1=y_1x1​=y1​ and xn<ynx_n<y_nxn​<yn​ for n>1n>1n>1.

Three supporting targets match the source's attack path. Equation (17) differentiates immediate-switch revenue. Lemma 2 gives the zeros and one sign change of GGG in the markdown case. Lemma 1 identifies a value function through differential inequalities and its stopping payoff. Each is recorded with its page-level statement in the milestone list.

What the result provides

The threshold sequence turns an adaptive stopping problem into a state rule: inspect remaining inventory and time to go, then compare time with the corresponding threshold. The value representation supplies the expected-revenue quantity on both sides of that comparison. Strict increase means a larger stock requires a larger remaining-time threshold before charging the higher initial price is worthwhile. These are the conclusions of Theorem 1, already proved in the paper.

The work here is a Lean statement and eventual machine-checked proof of that known result. The current theorem items are open proof targets. Formalizing the model gives reusable Poisson-tail revenue expressions and a continuous-time stopping-value interface; Lemma 1 can also serve other Poisson-driven stopping problems once proved. A checked proof would establish that the threshold representation and the optimal stopping value agree under the stated assumptions, including boundary cases that informal notation leaves implicit.

Where the mathematics is difficult

The obvious comparison of two fixed switching times misses the information contained in the sales path. The switch decision can change after each observed arrival, while the threshold for inventory nnn depends on the correction at stock n−1n-1n−1. Showing that every such comparison is organized by one increasing threshold requires more than differentiating the fixed-switch revenue. The paper's appendix handles the interaction between the sign of GGG, the recursive correction, and the stopping-value verification; these are distinct formal targets pp. 1387–1388.

The printed verification lemma and one word of Lemma 2 require care. Lemma 1 omits boundary and regularity conditions needed by its proof. Lemma 2 calls the zero sequence “bounded,” although its thresholds tend to infinity; the usable claim is that they stay above a positive lower bound. The formal statements expose these corrections and retain the rest of the source's conclusions.

Formalization scope

Lean represents the first demand stream by a counting process built from independent exponential interarrival times. The terminal revenue after a switch is expressed using the Poisson law of the sum of the two independent counts. The stopping class records the count-generated history, bounds the stopping time by the horizon, and requires stock to remain at stopping almost surely. Its expected payoff uses the number sold before stopping and the immediate-switch value for the unsold stock. Prices and rates are positive, the markdown ordering and revenue-rate inequality are explicit, and the probability measure is named explicitly even though the exponential-interarrival law already entails it.

The paper uses nonnegative real time, inventories indexed by positive integers, and zero salvage. Lean uses a real supremum for the value and a real infimum for each threshold; the admissible payoff is bounded and measurable, and every threshold-defining zero set is asserted nonempty. The ODE is expressed with an actual derivative at positive time. The auxiliary Poisson-tail definition maps a negative mean to zero, but all model applications have nonnegative means. The threshold construction, its ODE, and the equality with the stopping value are all conclusions of the goal, so none is an assumed solution.

For Lemma 1, the formal target adds the initial-time and zero-stock boundary values, domination of terminal revenue, and local Lipschitz regularity in time. The first three conditions are used in the source's own proof or reformulation; local Lipschitz regularity makes its integral calculation valid. Contributions may establish the Poisson-tail calculus, the sign and threshold results, the verification theorem, or the complete markdown theorem. The referenced arrival-process definition is shared infrastructure; the two-price revenue and stopping model are specific to this paper.

Selected references

  • Y. Feng and G. Gallego, Optimal Starting Times for End-of-Season Sales and Optimal Stopping Times for Promotional Fares, Management Science 41(8), 1995, pp. 1371–1391. DOI: 10.1287/mnsc.41.8.1371.
6 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph Theory·Captain: mikedeng1

Matching, Euler Tours and the Chinese Postman IV: Every Connected, Even, Symmetric Mixed Graph Has an Euler TourResearch Paper

Motivation

A postman, a snowplough or a street sweeper must traverse every street of a district and return to the depot. When some streets are one-way, the street network is a mixed graph: some edges are directed and must be traversed in a prescribed direction, the others are undirected and may be traversed either way. The first question about such a route is whether a closed route exists that traverses every street exactly once, an Euler tour of the mixed graph. When one exists, it is an optimal postman route; when none exists, the postman problem asks which streets to repeat.

J. Edmonds and E.L. Johnson treat this question in §6 of Matching, Euler tours and the Chinese postman (Mathematical Programming 5, 1973), the paper that solved the undirected Chinese postman problem by matching. Section 6 gives an algorithm that finds an Euler tour in any mixed graph that is connected, of even degree and symmetric, and §7 uses it for the mixed postman problem.

Timeline.

  • 1736: Euler's condition for undirected graphs (even degrees, connectivity).
  • 1951: T. van Aardenne-Ehrenfest and N.G. de Bruijn enumerate the Euler tours of a symmetric directed graph through spanning arborescences ("circuits and trees in oriented linear graphs"). Edmonds and Johnson cite this as the source of their arborescence rule.
  • 1962: L.R. Ford and D.R. Fulkerson (Flows in Networks, §II.7) characterize, by a flow argument, when a mixed graph has an Euler tour without assuming symmetry.
  • 1973: Edmonds and Johnson give the combined orientation and Rule algorithm of §6 for connected, even, symmetric mixed graphs, and the existence criterion of §7 for mixed postman tours.
  • 1976: C.H. Papadimitriou shows the mixed postman problem NP-hard, so the polynomial-time picture of §6 does not extend to its optimization version.

Setting

A mixed graph GGG has a finite set NNN of nodes and a finite set EEE of edges. Each edge eee meets two distinct nodes; several edges may meet the same pair of nodes. Some edges are directed: an edge directed away from node iii toward node jjj must be traversed from iii to jjj. In Lean an edge has a tail, a head (distinct) and a Boolean directed; for an undirected edge the order of the two ends carries no meaning.

  • The degree of a node is the total number of edges, regardless of direction, meeting it. GGG is even if every degree is even.
  • out⁡(n)\operatorname{out}(n)out(n) and in⁡(n)\operatorname{in}(n)in(n) count the directed edges directed away from and toward nnn. GGG is symmetric if out⁡(n)=in⁡(n)\operatorname{out}(n)=\operatorname{in}(n)out(n)=in(n) for every node nnn.
  • GGG is connected if it is connected when the directions on the edges are ignored.
  • A mixed walk is a sequence (n1,e1,n2,…,el,nl+1)(n_1,e_1,n_2,\dots,e_l,n_{l+1})(n1​,e1​,n2​,…,el​,nl+1​) in which each directed eie_iei​ goes from its tail nin_ini​ to its head ni+1n_{i+1}ni+1​ and each undirected eie_iei​ meets nin_ini​ and ni+1n_{i+1}ni+1​. It is a tour if nl+1=n1n_{l+1}=n_1nl+1​=n1​, an Euler tour if it contains every edge exactly once, and a postman tour if it contains every edge at least once.
  • An arborescence with root rrr is a tree TTT of directed edges in which every node n≠rn\neq rn=r of TTT has precisely one edge of TTT directed away from nnn. Following those edges from any node of TTT leads to rrr. It is spanning if it contains every node.

Formalization targets

Goal: the mixed Euler tour theorem (§6, pp. 115–118)

If GGG is connected, even and symmetric, then for every node rrr

∃ (r=n1,e1,…,el,nl+1=r) a mixed Euler tour of G.\exists\ (r=n_1,e_1,\dots,e_l,n_{l+1}=r)\ \text{a mixed Euler tour of } G .∃ (r=n1​,e1​,…,el​,nl+1​=r) a mixed Euler tour of G.

Milestones

  1. Cut balance (p. 116). If GGG is symmetric, every node set SSS has as many directed edges leaving it as entering it.
  2. Maximal arborescences span (pp. 115–116). Suppose the directed edges form a symmetric, connected spanning subgraph. Then an arborescence of directed edges to which no directed edge entering it from outside can be added contains every node.
  3. The Rule (pp. 116–117). Suppose the directed edges form a symmetric connected spanning subgraph and the undirected edges have even degree. Fix a spanning arborescence with root rrr and order the directed edges leaving each node n≠rn\neq rn=r so that the arborescence edge comes last. Then the following traversal from rrr is an Euler tour: leave by the next unused undirected edge if there is one, otherwise by the next unused directed edge.
  4. The assignment outcome (p. 118). If GGG is connected, even and symmetric, directions can be assigned to some undirected edges so that the result is symmetric, its directed edges form a connected spanning subgraph, and the unassigned edges have even degree.
  5. Mixed postman criterion (§7, p. 120). A connected mixed graph has a postman tour if and only if no nonempty proper node set SSS has every boundary edge directed away from SSS.

Significance

The goal contains two classical theorems as special cases. With every edge undirected it is Euler's theorem for connected even multigraphs. With every edge directed it is the theorem that a connected balanced digraph is Eulerian. The milestones connect the two cases: an orientation reduces the mixed case to one the Rule can handle. The Rule itself is the van Aardenne-Ehrenfest–de Bruijn construction, which underlies the BEST theorem counting Euler tours. Milestone 5 decides whether the mixed postman problem has any feasible solution. The mixed postman problem is the standard model for routing on one-way street networks.

All results here are proved in the paper, so none is open. No Lean proof of any of them in this form is known. Mathlib's Eulerian walks are for simple graphs; it has no multigraph or mixed-graph Euler theorem, no directed Euler theorem and no arborescence-based traversal. The mission produces these, together with a reusable vocabulary of mixed multigraphs, walks that respect directions, and arborescences given by parent edges.

Difficulty

The obvious approach to the goal is to forget the directions and apply Euler's theorem. This fails because the tour it produces may traverse a directed edge backwards. Orienting all undirected edges at once also fails: an arbitrary orientation of the undirected edges need not keep every node balanced.

The difficult part of the Rule is showing that the greedy traversal does not get stuck before using every edge. It cannot stop at a node other than rrr because of the degree conditions. The hard step is showing that no edge is left unused when it stops at rrr. The answer depends on the ordering condition: without the arborescence edge last at every node, the Rule can return to rrr with edges still unused. The assignment step needs an invariant: the orientation must keep every node symmetric while it extends a spanning structure of directed edges.

Formalization scope

  • Graphs. Nodes and edges are finite types (Fintype V, Fintype E). Parallel edges are allowed, including a directed and an undirected edge on the same pair. Loops are excluded (tail e ≠ head e), following the paper's standing setting of §2 (p. 91: edges meet two different nodes). Edges are a type, not a relation on nodes, so parallel edges stay distinct in every walk.
  • Hypotheses as on p. 115. "Even" counts all edges, directed or undirected. "Symmetric" counts only directed edges. "Connected" ignores directions. Strong connectivity is not assumed. "Symmetric" does not mean that every node has even in-degree, and an Euler tour of the underlying undirected multigraph does not satisfy the goal: the tour must traverse each directed edge from its tail to its head.
  • Walks are a node list and an edge list of length one less. The one-node walk is allowed, so the graph with one node and no edges satisfies the goal.
  • Arborescences are given by an optional edge ana_nan​ at each node, with an edge required for each non-root node of WWW; following those edges leads to rrr. A maximal arborescence is one where no directed edge enters WWW from outside. The optional choice represents the root-only arborescence when the graph has no edges.
  • The Rule is computed by a fuel-bounded traversal (at most ∣E∣|E|∣E∣ steps) that keeps a global list of used edges. Its conclusion is that the computed sequences form a mixed Euler tour from rrr.
  • The assignment is an existential statement over a second mixed graph G′G'G′ on the same edges, with the same unordered ends and every directed edge kept. The paper's algorithm (Steps 0–3) is not formalized.
  • Postman criterion. "Proper subset" means nonempty and proper. Connectivity is assumed, as throughout §7, and the node set is nonempty (with no nodes there is no tour, while the criterion holds vacuously).
  • Not formalized. The §7 evenness argument (p. 122) and the min-cost flow formulations are outside the scope.

Contributions are welcome at every level: proofs of the milestones, a direct proof of the goal, and general lemmas about mixed multigraph walks.

Selected references

  • J. Edmonds and E.L. Johnson, Matching, Euler tours and the Chinese postman, Mathematical Programming 5 (1973) 88–124. https://doi.org/10.1007/BF01580113
  • T. van Aardenne-Ehrenfest and N.G. de Bruijn, Circuits and trees in oriented linear graphs, Simon Stevin 28 (1951) 203–217.
  • L.R. Ford and D.R. Fulkerson, Flows in Networks, Princeton University Press, 1962.
  • C.H. Papadimitriou, On the complexity of edge traversing, Journal of the ACM 23 (1976) 544–554. https://doi.org/10.1145/321958.321974
7 thms3 active usersReviewed
🏆Completed
CombinatoricsGraph Theory·Captain: mikedeng1

Paths, Trees, and Flowers I: Matching-Duality Theorem — the Maximum Cardinality of a Matching Equals the Minimum Capacity-Sum of an Odd-Set CoverResearch Paper

Motivation

A matching in a graph is a set of edges no two of which share a vertex. Finding a matching of maximum cardinality is one of the basic problems of combinatorial optimization: it models pairing tasks (workers to shifts, kidney donors to recipients, players to rounds), it is a subroutine of algorithms for the travelling salesman and Chinese postman problems, and it was the first problem shown to need more than linear programming over the obvious constraints to be solved exactly.

For bipartite graphs, König's theorem (1931) gives a min–max formula: the maximum size of a matching equals the minimum size of a set of vertices meeting every edge. In general graphs this fails already for a triangle, where a single edge is a maximum matching but two vertices are needed to meet all three edges. Jack Edmonds' paper Paths, trees, and flowers (1965) gave both a polynomial-time algorithm for maximum matching in general graphs, the blossom algorithm, and, as a by-product of its analysis, the correct min–max theorem for general graphs.

Timeline.

  • 1891: Petersen uses alternating paths to prove the existence of factors in certain graphs.
  • 1947: Tutte characterizes graphs with a perfect matching.
  • 1957: Berge proves that a matching is maximum if and only if there is no augmenting path, and derives the deficiency formula now called the Tutte–Berge formula (Berge 1957).
  • 1965: Edmonds shrinks odd circuits ("blossoms") to search for augmenting paths in polynomial time and proves the matching-duality theorem in terms of odd-set covers (Edmonds 1965); the companion paper on the matching polyhedron extends this to weighted matching.

Setting

A graph GGG is a finite set of vertices and a finite set of edges, each edge meeting exactly two distinct vertices, its end-points. Several edges may join the same two vertices; this is needed because shrinking creates parallel edges. A matching MMM is a set of edges no two of which meet the same vertex; a vertex is exposed if it meets no edge of MMM. "Maximum" refers to cardinality.

An odd set is a set UUU of vertices with an odd number of elements. Its capacity is

cap⁡(U)={1∣U∣=1,k∣U∣=2k+1, k≥1.\operatorname{cap}(U) = \begin{cases} 1 & |U| = 1,\\ k & |U| = 2k+1,\ k \ge 1.\end{cases}cap(U)={1k​∣U∣=1,∣U∣=2k+1, k≥1.​

A one-vertex set covers the edges meeting its vertex; a set of 2k+1≥32k+1 \ge 32k+1≥3 vertices covers the edges with both end-points in it. An odd-set cover is a family S\mathcal SS of odd sets such that every edge is covered by some member, and its capacity-sum is cap⁡(S)=∑U∈Scap⁡(U)\operatorname{cap}(\mathcal S) = \sum_{U \in \mathcal S} \operatorname{cap}(U)cap(S)=∑U∈S​cap(U).

The proof uses the following objects of §3–§4 of the paper. An alternating path is a simple path whose edges alternate between MMM and the non-matching edges Mˉ\bar MMˉ. An alternating tree is a tree whose vertices are split into inner and outer vertices, every edge joining an inner to an outer vertex and every inner vertex meeting exactly two tree edges; it is planted if MMM restricted to the tree is a maximum matching of the tree whose one exposed vertex (the root) is exposed in GGG, and Hungarian if its outer vertices are adjacent only to its inner vertices. A blossom is an odd circuit on which MMM is a maximum matching, leaving one vertex bbb exposed; with a stem (an alternating path from an exposed vertex ending in a matching edge at bbb) it forms a flower. Shrinking a vertex set UUU replaces it by a single vertex U/UU/UU/U, deletes the edges inside UUU and keeps all other edges; G/BG/BG/B and M/B=M∩(G/B)M/B = M \cap (G/B)M/B=M∩(G/B) denote the result for a blossom BBB.

Formalization targets

Goal: the matching-duality theorem (5.6, p. 462)

max⁡{∣M∣:M a matching of G}  =  min⁡{cap⁡(S):S an odd-set cover of G}.\max\{|M| : M \text{ a matching of } G\} \;=\; \min\{\operatorname{cap}(\mathcal S) : \mathcal S \text{ an odd-set cover of } G\}.max{∣M∣:M a matching of G}=min{cap(S):S an odd-set cover of G}.

It is stated as: there are a maximum matching MMM and a minimum odd-set cover S\mathcal SS with ∣M∣=cap⁡(S)|M| = \operatorname{cap}(\mathcal S)∣M∣=cap(S).

Milestones (attack order)

  1. Weak duality: ∣M∣≤cap⁡(S)|M| \le \operatorname{cap}(\mathcal S)∣M∣≤cap(S) for every matching and odd-set cover.
  2. 3.7 (Berge): MMM is not maximum iff an alternating path joins two exposed vertices.
  3. 4.1–4.2: maximum matchings of an alternating tree.
  4. 4.14 and 4.15: the two directions of 4.12, in stronger form.
  5. 4.12: for the blossom BBB of a flower, MMM is maximum in GGG iff M/BM/BM/B is maximum in G/BG/BG/B.
  6. 4.17: removing a Hungarian tree preserves maximality.
  7. 5.7: the theorem for graphs with at most one exposed vertex.
  8. 5.8: the configuration produced by the algorithm on a maximum matching, and the odd sets SJ\mathcal S_JSJ​ it yields, which reduce the theorem to a graph with one exposed vertex fewer.

Significance

The matching-duality theorem gives a certificate of optimality: a matching and an odd-set cover of equal size prove each other optimal, and the blossom algorithm produces both. It is equivalent to the Tutte–Berge formula ν(G)=min⁡X12(∣V∣+∣X∣−odd⁡(G−X))\nu(G) = \min_{X} \tfrac12\bigl(|V| + |X| - \operatorname{odd}(G - X)\bigr)ν(G)=minX​21​(∣V∣+∣X∣−odd(G−X)), it contains König's theorem as the case where all members of the cover are singletons, and it is the cardinality case of Edmonds' description of the matching polytope by odd-set constraints, which underlies weighted matching, bbb-matching and the polyhedral approach to combinatorial optimization.

The theorem has been proved since 1965, with several independent proofs (via Tutte's theorem, via the Gallai–Edmonds decomposition, via linear programming). Mathlib contains Tutte's perfect-matching theorem for simple graphs, but neither the Tutte–Berge formula nor odd-set covers, alternating trees, blossom shrinking or Berge's augmenting-path theorem in a multigraph setting. This mission produces a machine-checked version of Edmonds' statement together with the lemmas of his algorithmic proof (4.12, 4.14, 4.15, 4.17), which are the correctness core of the blossom algorithm.

Difficulty

Weak duality and Berge's theorem are elementary. The difficulty is the strong direction. The obvious argument, a search for augmenting paths from an exposed vertex, fails because an alternating search tree in a non-bipartite graph can close an odd circuit, after which a vertex is reachable both by an even and by an odd alternating path; a naive search either misses augmenting paths or must back-track exponentially. The proof therefore has to work in shrunken graphs, whose vertices are nested sets of original vertices, and transfer maximality and covers back through every shrinking (4.12–4.15). Keeping track of nested blossoms, of the identity of edges under shrinking and of the parity bookkeeping of 5.8 is the main formal burden.

Formalization scope

  • Graphs are the published EdmondsMatching65.Polyhedron.Graph V E (a map from edges to unordered pairs of distinct vertices) with finite V, E; parallel edges are allowed and loops are not. Matchings are Finset E. Maximum and minimum are by cardinality, stated with explicit comparisons rather than sSup/sInf.
  • A family of odd sets is a Finset (Finset V); repeating a member only adds capacity, so this does not change the minimum. The capacity of a singleton is 111, not (1−1)/2(1-1)/2(1−1)/2.
  • Paths and circuits are lists of vertices and edges; subgraphs are vertex and edge sets; a matching of a subgraph is a matching of GGG using only its edges.
  • Shrinking is contraction along a partition of the vertices: the vertex type of G/PG/\mathcal PG/P is the set of parts, the edge type is the set of edges not inside a part. Nested blossom shrinking is encoded by an inductive predicate of blossom sets (the complete expansions of pseudovertices), not by a tower of quotient types. Statements that shrink a set other than a circuit assume its induced subgraph connected, the standing assumption of 4.9.
  • 5.7 is stated as the existence of a cover: the page's explicit families fail for the two-vertex graph with one edge and for the one-vertex graph, where the claim still holds.
  • 5.8 is stated through the configuration the algorithm outputs (blossom sets, a planted Hungarian tree in G′G'G′, pseudovertices outer), not through the algorithm as a procedure.
  • A trivializing formalization is excluded: the goal asserts the equality of the maximum and the minimum, not weak duality and not the separate existence of an optimal matching and an optimal cover.

Reusable beyond this mission: the multigraph shrinking construction, blossom sets, alternating and Hungarian trees, and Berge's theorem in the multigraph setting; these are shared with the companion mission on the invariance of the dual (Gallai–Edmonds). Proofs of any milestone, and alternative proofs of the goal (e.g. through Mathlib's Tutte theorem), are welcome.

Selected references

  • J. Edmonds, Paths, trees, and flowers, Canadian Journal of Mathematics 17 (1965), 449–467. https://doi.org/10.4153/CJM-1965-045-4
  • C. Berge, Two theorems in graph theory, Proceedings of the National Academy of Sciences USA 43 (1957), 842–844. https://doi.org/10.1073/pnas.43.9.842
  • W. T. Tutte, The factorization of linear graphs, Journal of the London Mathematical Society 22 (1947), 107–111. https://doi.org/10.1112/jlms/s1-22.2.107
  • J. Edmonds, Maximum matching and a polyhedron with 0,1-vertices, Journal of Research of the National Bureau of Standards 69B (1965), 125–130. https://doi.org/10.6028/jres.069B.013
  • L. Lovász and M. D. Plummer, Matching Theory, North-Holland, 1986. https://doi.org/10.1090/chel/367
16 thms3 active usersReviewed
Dynamic ProgrammingGraph TheoryOptimization·Captain: mikedeng1

The Complexity of Markov Decision Processes III: The Optimal Discounted Cost of a Deterministic Process Is the Least Discounted Cost of a SigmaResearch Paper

Motivation

A Markov decision process with finitely many states and decisions, a discount factor β∈(0,1)\beta\in(0,1)β∈(0,1) and the objective of minimizing expected discounted cost is the basic model of sequential decision making in operations research and reinforcement learning. It is solvable in polynomial time by linear programming. Papadimitriou and Tsitsiklis (Math. Oper. Res. 12(3), 1987) asked the finer question of whether it can be solved fast in parallel, and showed a sharp split: the general (stochastic) problem is P-complete (their Theorem 1), so it is unlikely to admit a polylogarithmic parallel algorithm, while the deterministic special case, where every transition probability is 0 or 1, is in NC (their Theorem 4).

The deterministic case is a shortest-path problem with a twist. Every policy traces a walk in a graph, and the cost of the walk counts its ttt-th arc with weight βt\beta^tβt. The paper's argument identifies the optimal discounted cost with the cost of a finite combinatorial object, a sigma, and computes it from discounted min-plus matrix products. This mission formalizes that identity.

Setting

A deterministic stationary Markov decision process consists of a finite set SSS of nnn states, an initial state s0∈Ss_0\in Ss0​∈S, and for each state sss a finite nonempty set DsD_sDs​ of decisions. Decision i∈Dsi\in D_si∈Ds​ costs c(s,i)∈Rc(s,i)\in\mathbb Rc(s,i)∈R and leads with certainty to the state next(s,i)\mathrm{next}(s,i)next(s,i). Equivalently, it is a directed graph on SSS with an arc s→next(s,i)s\to\mathrm{next}(s,i)s→next(s,i) of weight c(s,i)c(s,i)c(s,i) for each decision; parallel arcs and loops are allowed.

A policy δ\deltaδ chooses a decision δ(s,t)∈Ds\delta(s,t)\in D_sδ(s,t)∈Ds​ for every state sss and time t=0,1,2,…t=0,1,2,\dotst=0,1,2,…; it is stationary if δ(s,t)\delta(s,t)δ(s,t) does not depend on ttt. From s0s_0s0​ it produces the states st+1=next(st,δ(st,t))s_{t+1}=\mathrm{next}(s_t,\delta(s_t,t))st+1​=next(st​,δ(st​,t)) and the discounted cost

Jβ(δ)=∑t=0∞βtc(st,δ(st,t)).J_\beta(\delta)=\sum_{t=0}^{\infty}\beta^t c\bigl(s_t,\delta(s_t,t)\bigr).Jβ​(δ)=t=0∑∞​βtc(st​,δ(st​,t)).

The optimal discounted cost is Jβ∗(s0)=inf⁡δJβ(δ)J^*_\beta(s_0)=\inf_\delta J_\beta(\delta)Jβ∗​(s0​)=infδ​Jβ​(δ), the infimum over all policies δ(s,t)\delta(s,t)δ(s,t).

A sigma is a walk w0=s0,w1,…,wNw_0=s_0,w_1,\dots,w_Nw0​=s0​,w1​,…,wN​ along decisions et∈Dwte_t\in D_{w_t}et​∈Dwt​​ whose nodes w0,…,wN−1w_0,\dots,w_{N-1}w0​,…,wN−1​ are distinct and whose last node repeats an earlier one, wN=wjw_N=w_jwN​=wj​ with j<Nj<Nj<N: the walk from s0s_0s0​ up to the first repetition of a node. It is a prefix of jjj arcs followed by a cycle of l=N−j≥1l=N-j\ge1l=N−j≥1 arcs. Its discounted cost cβ(P)c_\beta(P)cβ​(P) is the discounted cost of the infinite walk that follows it and repeats its cycle forever.

In the min-plus semiring (addition is min⁡\minmin, multiplication is +++, zero is +∞+\infty+∞), let AuvA_{uv}Auv​ be the least cost of a decision from uuu to vvv (+∞+\infty+∞ if none), let rArArA multiply every finite entry by rrr, and let

B0=I,Bk=A⊗βA⊗⋯⊗βk−1A,B_0=I,\qquad B_k=A\otimes\beta A\otimes\cdots\otimes\beta^{k-1}A ,B0​=I,Bk​=A⊗βA⊗⋯⊗βk−1A,

with III the min-plus identity. The entry (Bk)uv(B_k)_{uv}(Bk​)uv​ is the least discounted cost ∑t<kβtct\sum_{t<k}\beta^t c_t∑t<k​βtct​ of a kkk-arc walk from uuu to vvv.

Formalization targets

Goal

For 0<β<10<\beta<10<β<1,

Jβ∗(s0)=min⁡P sigmacβ(P)=min⁡{(Bk)s0u+βk(Bl)uu1−βl  :  u∈S, 0≤k≤n, 1≤l≤n, both entries finite},J^*_\beta(s_0)=\min_{P\text{ sigma}}c_\beta(P)=\min\Bigl\{(B_k)_{s_0u}+\frac{\beta^{k}(B_l)_{uu}}{1-\beta^{l}}\;:\;u\in S,\ 0\le k\le n,\ 1\le l\le n,\ \text{both entries finite}\Bigr\},Jβ∗​(s0​)=P sigmamin​cβ​(P)=min{(Bk​)s0​u​+1−βlβk(Bl​)uu​​:u∈S, 0≤k≤n, 1≤l≤n, both entries finite},

with both minima attained. This is the claim on pp. 446–447 on which Theorem 4 rests. The algebraic expression is the corrected form of the paper's (see Formalization scope).

Milestones

  1. The closed form of the cost of a sigma (p. 446): cβ(P)=∑t<jβtct+βj1−βl∑t<lβtcj+tc_\beta(P)=\sum_{t<j}\beta^tc_t+\frac{\beta^j}{1-\beta^l}\sum_{t<l}\beta^tc_{j+t}cβ​(P)=∑t<j​βtct​+1−βlβj​∑t<l​βtcj+t​.
  2. A stationary optimal policy exists (§2, p. 444; cited on p. 446). The general finite stochastic statement is on the platform as BertsekasDP.discounted_main_theorem (Proved), and the deterministic case is stated in this mission's model.
  3. The path of a stationary policy, cut at its first repeated node, is a sigma with the same discounted cost, and every sigma arises this way (p. 446).
  4. The products BjB_jBj​ are the cheapest discounted jjj-arc walks (p. 447).

Significance

The identity reduces an optimization over infinite objects, the time-dependent policies, to a minimum over finitely many closed-form expressions in matrix entries. Each BkB_kBk​ is a product of kkk min-plus matrices, and matrix products parallelize well; that is the source of the NC algorithm. The same reduction, with the discounting removed, underlies the minimum-mean-cycle characterization of the average-cost problem (mission II of this series), and the sigma structure reappears in the stationary finite-horizon analysis (mission IV).

On the formalization side, the result has been proved in the paper only as a short paragraph, which cites the existence of stationary optimal policies and leaves the algebra to the reader. Its printed formulas contain index slips (below). A machine-checked version fixes the exact constants. To our knowledge none of these statements has a formal proof. The existence of stationary optimal policies for finite discounted problems is formalized on the platform in Bertsekas's general stochastic setting.

Difficulty

The obvious argument says: an optimal policy may be taken stationary, a stationary deterministic policy produces an eventually periodic path, and an eventually periodic path is a sigma. The first step is the substantial one: the optimum is an infimum over all time-dependent policies δ(s,t)\delta(s,t)δ(s,t), and a non-stationary policy can follow any walk at all, so this step is a statement about the whole dynamic program, not a combinatorial fact about a single walk. The second part of the goal adds a matching argument in the other direction: the expression ranges over arbitrary kkk-arc walks and closed lll-walks, which need not be simple, so one must check that none of them beats the best sigma, and that the best sigma has k≤nk\le nk≤n and l≤nl\le nl≤n. Finally, the discount factors must be tracked exactly; the printed formulas are off by one power of β\betaβ in two places.

Formalization scope

The Lean development lives in the namespace MDPComplexity.Discounted, with one definition file and five theorems. Conventions committed to:

  • The model is stationary and deterministic. A DetMDP S has a finite state type, a nonempty finite decision type at each state (the paper says "a finite set DsD_sDs​"; nonemptiness is implicit since a policy must choose a decision), a successor map and real costs.
  • Policies are maps δ(s,t)\delta(s,t)δ(s,t), time is N\mathbb NN from 000, and the optimum optDisc is the infimum over all such policies. Defining it over stationary policies or over sigmas would make the goal true by definition. That shortcut is ruled out, and the stationarity step is part of the content.
  • Costs are tsums, which are junk (000) for non-summable series; every statement that sums costs assumes 0<β<10<\beta<10<β<1, under which the series converge absolutely.
  • A sigma is encoded as a lasso, wN=wjw_N=w_jwN​=wj​ with j<Nj<Nj<N. This includes j=0j=0j=0, a sigma whose cycle passes through s0s_0s0​, which the printed form (u0,…,uk,v1,…,vl,v1)(u_0,\dots,u_k,v_1,\dots,v_l,v_1)(u0​,…,uk​,v1​,…,vl​,v1​) omits but the definition "a path from u0u_0u0​ until the first repetition of a node" includes. The paper's kkk is j−1j-1j−1.
  • Corrected slips: (i) in the sigma display the cycle sum carries βj−1\beta^{j-1}βj−1, not βj\beta^jβj, for its jjj-th arc, and the indices are made consistent; (ii) the algorithm's expression is λ+βkμ/(1−βl)\lambda+\beta^k\mu/(1-\beta^l)λ+βkμ/(1−βl) with l≥1l\ge1l≥1, not λ+βk+1μ/(1+βl)\lambda+\beta^{k+1}\mu/(1+\beta^l)λ+βk+1μ/(1+βl) (one state with a loop of cost 111 has optimum 1/(1−β)1/(1-\beta)1/(1−β), which the printed form misses); (iii) B0B_0B0​, used but not defined, is the min-plus identity.
  • Matrix entries are in Tropical (WithTop ℝ), so +∞+\infty+∞ is ⊤ and the product is Mathlib's matrix product over the tropical semiring.

Not formalized: membership in NC, the processor count n4n^4n4, the log⁡2n+3log⁡n\log^2 n+3\log nlog2n+3logn parallel time, and the P-completeness of the general problem. Mathlib has no parallel complexity classes. Only the identity that makes the algorithm correct is a target.

Contributions welcome: proofs of any milestone. A bridge from DetMDP to BertsekasSSPModel (taking decisions as controls and 0/1 transition rows) would let milestone 2 be derived from the platform's proved Proposition 7.3.1. A direct proof of the deterministic case is also welcome. The lasso and walk lemmas are reusable for the other missions of the series.

Selected references

  • C. H. Papadimitriou and J. N. Tsitsiklis, The Complexity of Markov Decision Processes, Mathematics of Operations Research 12(3), 441–450, 1987. https://doi.org/10.1287/moor.12.3.441
  • D. P. Bertsekas, Dynamic Programming and Optimal Control, Vol. I, 3rd ed., Athena Scientific, 2005, §7.3 (discounted problems, Proposition 7.3.1).
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994, Ch. 6 (existence of stationary optimal policies for discounted models). https://doi.org/10.1002/9780470316887
7 thms3 active usersReviewed
🏆Completed
Algorithmic Game TheoryOptimization·Captain: mikedeng1

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

Motivation

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

Timeline:

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

Setting

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

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

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

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

Formalization targets

Goal

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

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

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

Milestones

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

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

Significance

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

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

Difficulty

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

Formalization scope

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

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

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

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

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

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

Selected references

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

Complexity of Machine Scheduling Problems 7: Makespan Reduces to Total Completion Time on Identical Machines with Precedence ConstraintsResearch Paper

Motivation

Scheduling jobs on parallel machines under precedence constraints is the core model of project and parallel-processing scheduling: a job may start only after its predecessors have finished. Two criteria dominate the literature, the makespan Cmax⁡C_{\max}Cmax​ (when does the last job finish?) and the total completion time ∑jCj\sum_j C_j∑j​Cj​ (how long do jobs wait on average?). Knowing that one criterion is at least as hard as the other lets a hardness proof for one transfer to the other without a new reduction from a combinatorial problem.

Brucker, Lenstra and Rinnooy Kan's report Complexity of Machine Scheduling Problems (Mathematisch Centrum, 1975; later in Annals of Discrete Mathematics 1, 1977) collected the complexity status of the standard scheduling problems and stated a set of elementary reductions among them as Theorem 1. Part (l) reduces makespan to total completion time for identical machines with precedence constraints and bounded processing times.

Timeline.

  • 1971–1972: Cook (doi:10.1145/800157.805047) and Karp (doi:10.1007/978-1-4684-2001-2_9) introduce NP-completeness and polynomial reducibility.
  • 1975: Ullman (doi:10.1016/S0022-0000(75)80008-0) proves that the makespan problems n∣2∣I,prec,1≤pj1≤2∣Cmax⁡n|2|I,\mathit{prec},1\le p_{j1}\le 2|C_{\max}n∣2∣I,prec,1≤pj1​≤2∣Cmax​ and n∣m∣I,prec,pj1=1∣Cmax⁡n|m|I,\mathit{prec},p_{j1}=1|C_{\max}n∣m∣I,prec,pj1​=1∣Cmax​ are NP-complete, by reductions from 3-SATISFIABILITY.
  • 1975: Brucker, Lenstra and Rinnooy Kan state Theorem 1(l); their Table III (p. 13) applies it to Ullman's two problems and concludes that the corresponding total completion time problems are NP-complete.

Setting

An instance has nnn jobs J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​, a number m≥1m \ge 1m≥1 of identical machines, a processing time pjp_jpj​ for each job, and a precedence relation <<< on the jobs: Jj<JkJ_j < J_kJj​<Jk​ means that JkJ_kJk​ may start only after JjJ_jJj​ has completed. Each job is one operation, processed without interruption on any one machine. For a constant p∗p_*p∗​, the class n∣m∣I,prec,1≤pj1≤p∗n|m|I,\mathit{prec},1\le p_{j1}\le p_*n∣m∣I,prec,1≤pj1​≤p∗​ requires 1≤pj≤p∗1 \le p_j \le p_*1≤pj​≤p∗​ for every job and an acyclic precedence relation.

A schedule assigns to every job a machine and a starting time Bj∈NB_j \in \mathbb NBj​∈N; the completion time is Cj=Bj+pjC_j = B_j + p_jCj​=Bj​+pj​. It is feasible if two jobs on the same machine never overlap and Jj<JkJ_j < J_kJj​<Jk​ implies Cj≤BkC_j \le B_kCj​≤Bk​.

Following the paper, each optimization problem is replaced by its recognition version. Problem P′P'P′ asks, for an instance and a threshold y′y'y′, whether some feasible schedule has Cmax⁡=max⁡jCj≤y′C_{\max} = \max_j C_j \le y'Cmax​=maxj​Cj​≤y′. Problem PPP asks, for an instance of the same class and a threshold yyy, whether some feasible schedule has ∑jCj≤y\sum_j C_j \le y∑j​Cj​≤y (all weights wj=1w_j = 1wj​=1).

P′P'P′ is reducible to PPP, written P′∝PP' \propto PP′∝P, if every instance of P′P'P′ can be transformed in polynomial time into an instance of PPP with the same answer.

Formalization targets

Goal: Theorem 1(l)

For every constant p∗≥1p_* \ge 1p∗​≥1,

n′∣m∣I,prec,1≤pj1≤p∗∣Cmax⁡  ∝  n∣m∣I,prec,1≤pj1≤p∗,wj=1∣∑wjCj.n'|m|I,\mathit{prec},1\le p_{j1}\le p_*|C_{\max} \;\propto\; n|m|I,\mathit{prec},1\le p_{j1}\le p_*,w_j=1|\textstyle\sum w_jC_j .n′∣m∣I,prec,1≤pj1​≤p∗​∣Cmax​∝n∣m∣I,prec,1≤pj1​≤p∗​,wj​=1∣∑wj​Cj​.

Milestones

  1. A trivial upper bound. Every instance of P′P'P′ with n′n'n′ jobs has a feasible schedule with Cmax⁡≤n′p∗C_{\max} \le n'p_*Cmax​≤n′p∗​.
  2. The construction and the forward direction. For 0≤y′≤n′p∗0 \le y' \le n'p_*0≤y′≤n′p∗​ let n′′=(n′−1)y′n'' = (n'-1)y'n′′=(n′−1)y′, n=n′+n′′n = n'+n''n=n′+n′′ and y=ny′+12n′′(n′′+1)y = ny' + \tfrac12 n''(n''+1)y=ny′+21​n′′(n′′+1), and add n′′n''n′′ unit-time jobs Jn′+kJ_{n'+k}Jn′+k​, each required to follow every original job and every earlier added job. If P′P'P′ has a schedule with Cmax⁡≤y′C_{\max} \le y'Cmax​≤y′, the new instance has a feasible schedule with ∑jCj≤y\sum_j C_j \le y∑j​Cj​≤y.
  3. The backward direction. If every feasible schedule of P′P'P′ has Cmax⁡>y′C_{\max} > y'Cmax​>y′, every feasible schedule of the new instance has ∑jCj>y\sum_j C_j > y∑j​Cj​>y.

Significance

The result. Theorem 1(l) makes the total completion time problem at least as hard as the makespan problem in the same class. Combined with Ullman's NP-completeness results and Theorem 1(b) (reducibility transfers NP-completeness), it shows that minimizing ∑jCj\sum_j C_j∑j​Cj​ on identical machines with precedence constraints is NP-complete, already for two machines with pj∈{1,2}p_j \in \{1, 2\}pj​∈{1,2} and for unit processing times on mmm machines. These are two rows of the paper's Table III.

Formalizing it. The result is proved on one page of a typewritten report; no machine-checked version exists. The mission produces a scheduling model for identical machines with precedence constraints, binary languages for the two recognition problems, and the reduction in Cook's Turing-machine model. The proof's displayed bounds contain a misprinted index range, which the formal statements correct.

Difficulty

The two criteria are not monotonically related: a schedule with a smaller makespan can have a larger total completion time than one with a larger makespan. So the obvious reduction, keeping the instance and asking for ∑jCj≤n′y′\sum_j C_j \le n'y'∑j​Cj​≤n′y′, is not an equivalence: a no-instance of P′P'P′ can have a schedule with small total completion time. The instance has to be changed so that the total completion time is governed by the makespan, and the comparison of the two thresholds must be exact, including the strict inequality on the "no" side, which depends on integral completion times and positive processing times.

The main formal difficulty lies in the reduction itself. A polynomial-time Turing machine must decode the binary instance, check that it belongs to the class (including acyclicity of the precedence relation), compare y′y'y′ with n′p∗n'p_*n′p∗​, and write out an instance with n′′=(n′−1)y′n'' = (n'-1)y'n′′=(n′−1)y′ additional jobs and a quadratic-size precedence matrix. The size of that output is polynomial only because p∗p_*p∗​ is a constant: a version with p∗p_*p∗​ part of the input would make n′′n''n′′ exponential in the input length.

Formalization scope

  • Jobs and machines are indexed from 000 (Fin n, Fin m). Starting times are natural numbers; Section 3 derives all times from processing orders on nonnegative integer data, and both criteria are regular. "Cmax⁡≤yC_{\max} \le yCmax​≤y" is written as "Cj≤yC_j \le yCj​≤y for every jjj".
  • The precedence relation is a Boolean matrix. Its acyclicity and m≥1m \ge 1m≥1 are part of the problem class; the paper leaves both implicit, and the claim "any instance has a solution with Cmax⁡≤n′p∗C_{\max} \le n'p_*Cmax​≤n′p∗​" fails without them.
  • p∗p_*p∗​ is a constant of the class and a parameter of both languages, not part of the input. All weights in the target problem equal 111 and are not written.
  • The threshold y=ny′+12n′′(n′′+1)y = ny' + \tfrac12 n''(n''+1)y=ny′+21​n′′(n′′+1) is stated in Q\mathbb QQ exactly as printed in the milestones; it is an integer, and the reduction uses its natural-number value.
  • The paper's displayed bounds n′y′+∑k=n′+1n(y′+k)=yn'y' + \sum_{k=n'+1}^{n}(y'+k) = yn′y′+∑k=n′+1n​(y′+k)=y and y′+∑k=n′+1n(y′+1+k)=yy' + \sum_{k=n'+1}^{n}(y'+1+k) = yy′+∑k=n′+1n​(y′+1+k)=y have a misprinted index range (the sums must run over k=1,…,n′′k = 1,\dots,n''k=1,…,n′′). The milestones state the end-to-end bounds ∑jCj≤y\sum_j C_j \le y∑j​Cj​≤y and ∑jCj>y\sum_j C_j > y∑j​Cj​>y.
  • "Cmax⁡>y′C_{\max} > y'Cmax​>y′" in the backward direction is read as the negation of the forward hypothesis: no feasible schedule of P′P'P′ has Cmax⁡≤y′C_{\max} \le y'Cmax​≤y′.
  • "Reducible" is Cook's polynomial-time many-one reducibility from the published definition CookPvsNP_defs; numbers are written in binary with the alphabet and code encNats of the published definition ProjSchedTW.Complexity.Encoding (Neumann, Schwindt and Zimmermann's encoding). The unit-time model ResourceScheduling.Chain.Model (Błażewicz, Lenstra and Rinnooy Kan) has the same feasibility conditions but unit processing times and real start times, so the model here is defined anew.
  • A trivializing formalization is ruled out: the goal asserts a polynomial-time computable map, not the bare equivalence, and codes of instances outside the class are excluded from both languages, so the reduction cannot exploit malformed inputs.
  • Contributions welcome: proofs of the three milestones, a Turing-machine library for arithmetic on binary codes (reusable across this series), and a proof of the goal from the milestones.

Selected references

  • P. Brucker, J. K. Lenstra, A. H. G. Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75, Amsterdam, 1975; published in Annals of Discrete Mathematics 1 (1977) 343–362. doi:10.1016/S0167-5060(08)70743-X
  • J. D. Ullman, NP-complete scheduling problems, Journal of Computer and System Sciences 10 (1975) 384–393. doi:10.1016/S0022-0000(75)80008-0
  • S. A. Cook, The complexity of theorem-proving procedures, STOC 1971, 151–158. doi:10.1145/800157.805047
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. doi:10.1007/978-1-4684-2001-2_9
9 thms3 active usersReviewed
Complexity TheoryGraph TheoryTheoretical Computer Science·Captain: mikedeng1

Complexity of Machine Scheduling Problems 6: DIRECTED HAMILTON PATH Reduces to No-Wait Flow Shop Makespan and Total Completion TimeResearch Paper

Motivation

In a no-wait flow shop every job passes through the machines M1,…,MmM_1,\dots,M_mM1​,…,Mm​ in the same order, and once it has started it may never wait between two machines. The constraint comes from processes in which the material changes state if it is left standing, such as hot metal rolling, chemical and food processing, and some pharmaceutical lines; see the survey of Hall and Sriskandarajah (doi:10.1287/opre.44.3.510). The question of how hard it is to schedule such a shop well is the question this mission formalizes.

Brucker, Lenstra and Rinnooy Kan settled it for the case in which the number of machines is part of the input. In their report Complexity of Machine Scheduling Problems (Mathematisch Centrum, 1975; journal version in Annals of Discrete Mathematics 1, 1977, doi:10.1016/S0167-5060(08)70743-X), Theorem 5 reduces DIRECTED HAMILTON PATH to the no-wait flow shop. Both minimizing the makespan Cmax⁡C_{\max}Cmax​ and minimizing the total completion time ∑Cj\sum C_j∑Cj​ are thereby NP-complete.

Timeline.

  • 1964: Gilmore and Gomory solve the two-machine no-wait flow shop with makespan in polynomial time (doi:10.1287/opre.12.5.655).
  • 1972: Wismer (doi:10.1287/opre.20.3.689) and Reddi and Ramamoorthy (doi:10.1057/jors.1972.52) show that no-wait makespan minimization is a travelling-salesman problem with arc weights computed from the processing times.
  • 1972: Karp proves DIRECTED HAMILTON CIRCUIT NP-complete (doi:10.1007/978-1-4684-2001-2_9).
  • 1975: Brucker, Lenstra and Rinnooy Kan reduce DIRECTED HAMILTON CIRCUIT to DIRECTED HAMILTON PATH (their Theorem 2(d)), and DIRECTED HAMILTON PATH to n∣m∣F,no wait∣Cmax⁡n|m|F,\textit{no wait}|C_{\max}n∣m∣F,no wait∣Cmax​ and to n∣m∣F,no wait,wj=1∣∑wjCjn|m|F,\textit{no wait},w_j=1|\sum w_jC_jn∣m∣F,no wait,wj​=1∣∑wj​Cj​ (Theorem 5).
  • 1984: Röck shows that the problem stays NP-hard for three machines (doi:10.1145/62.65).

Setting

There are nnn jobs J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​ and mmm machines. Job JℓJ_\ellJℓ​ needs processing time pℓi∈Np_{\ell i}\in\mathbb Npℓi​∈N on machine MiM_iMi​. Write

qℓi=∑r=1ipℓr,qℓ0=0,q_{\ell i}=\sum_{r=1}^{i}p_{\ell r},\qquad q_{\ell 0}=0,qℓi​=r=1∑i​pℓr​,qℓ0​=0,

for the time job JℓJ_\ellJℓ​ spends on its first iii machines. Because a job never waits, a schedule is determined by the start times Bℓ∈NB_\ell\in\mathbb NBℓ​∈N. The operation of JℓJ_\ellJℓ​ on MiM_iMi​ occupies [Bℓ+qℓ,i−1, Bℓ+qℓi)[B_\ell+q_{\ell,i-1},\,B_\ell+q_{\ell i})[Bℓ​+qℓ,i−1​,Bℓ​+qℓi​), and job JℓJ_\ellJℓ​ completes at Cℓ=Bℓ+qℓmC_\ell=B_\ell+q_{\ell m}Cℓ​=Bℓ​+qℓm​. A schedule is feasible when no two distinct jobs occupy the same machine at the same time. The delay

cjk=max⁡1≤i≤m{qji−qk,i−1}c_{jk}=\max_{1\le i\le m}\{q_{ji}-q_{k,i-1}\}cjk​=1≤i≤mmax​{qji​−qk,i−1​}

is the least gap Bk−BjB_k-B_jBk​−Bj​ that lets JkJ_kJk​ follow JjJ_jJj​ on every machine.

A directed graph G=(V,A)G=(V,A)G=(V,A) on V={0,…,n−1}V=\{0,\dots,n-1\}V={0,…,n−1} has a Hamilton path if its vertices can be ordered σ(0),…,σ(n−1)\sigma(0),\dots,\sigma(n-1)σ(0),…,σ(n−1) with every (σ(i),σ(i+1))∈A(\sigma(i),\sigma(i+1))\in A(σ(i),σ(i+1))∈A.

From GGG the paper builds an instance with nnn jobs and m=n(n−1)+2m=n(n-1)+2m=n(n−1)+2 machines. Each ordered pair (j,k)(j,k)(j,k) of distinct jobs is assigned a middle machine ι(j,k)∈{2,…,m−1}\iota(j,k)\in\{2,\dots,m-1\}ι(j,k)∈{2,…,m−1}, and the partial sums qℓiq_{\ell i}qℓi​ are perturbed from iμi\muiμ by ±λ\pm\lambda±λ or ±(λ+1)\pm(\lambda+1)±(λ+1) on the machines ι(ℓ,⋅)\iota(\ell,\cdot)ι(ℓ,⋅) and just before the machines ι(⋅,ℓ)\iota(\cdot,\ell)ι(⋅,ℓ), depending on whether the pair is an arc. The parameters satisfy λ≥1\lambda\ge1λ≥1 and μ≥2λ+3\mu\ge2\lambda+3μ≥2λ+3.

Formalization targets

Goal (Theorem 5)

DIRECTED HAMILTON PATH ∝ n∣m∣F,no wait∣Cmax⁡andDIRECTED HAMILTON PATH ∝ n∣m∣F,no wait,wj=1∣∑wjCj,\text{DIRECTED HAMILTON PATH}\ \propto\ n|m|F,\textit{no wait}|C_{\max}\quad\text{and}\quad \text{DIRECTED HAMILTON PATH}\ \propto\ n|m|F,\textit{no wait},w_j=1|\textstyle\sum w_jC_j,DIRECTED HAMILTON PATH ∝ n∣m∣F,no wait∣Cmax​andDIRECTED HAMILTON PATH ∝ n∣m∣F,no wait,wj​=1∣∑wj​Cj​,

where ∝\propto∝ is polynomial-time many-one reducibility between the binary-coded recognition languages.

Milestones, in the order the proof uses them

  1. Eq. (9): cjkc_{jk}cjk​ is the least gap between BjB_jBj​ and BkB_kBk​ for which JkJ_kJk​ follows JjJ_jJj​ on every machine.
  2. The travelling-salesman reformulation: if all processing times are positive, a feasible schedule with Cmax⁡≤yC_{\max}\le yCmax​≤y (resp. ∑Cℓ≤y\sum C_\ell\le y∑Cℓ​≤y) exists iff some job order has path length (resp. summed completion times along the path) at most yyy.
  3. An admissible ordering ι\iotaι exists for every n≠2n\ne2n=2.
  4. All processing times of the construction are at least 111.
  5. The delays of the construction: cjk=μ+2λc_{jk}=\mu+2\lambdacjk​=μ+2λ if (j,k)∈A(j,k)\in A(j,k)∈A, and μ+2λ+2\mu+2\lambda+2μ+2λ+2 otherwise.
  6. Theorem 5(a), the equivalence: GGG has a Hamilton path   ⟺  \iff⟺ Cmax⁡≤(n−1)(μ+2λ)+mμC_{\max}\le(n-1)(\mu+2\lambda)+m\muCmax​≤(n−1)(μ+2λ)+mμ.
  7. Theorem 5(b), the equivalence: GGG has a Hamilton path   ⟺  \iff⟺ ∑jCj≤12n(n−1)(μ+2λ)+nmμ\sum_jC_j\le\tfrac12n(n-1)(\mu+2\lambda)+nm\mu∑j​Cj​≤21​n(n−1)(μ+2λ)+nmμ.
  8. Theorem 2(d), off the goal's path: G′G'G′ has a Hamilton circuit iff the graph obtained by splitting a vertex v′v'v′ into v′v'v′ and a new sink v′′v''v′′ has a Hamilton path.

Significance

The result. Theorem 5, together with the NP-completeness of DIRECTED HAMILTON PATH, places both no-wait criteria among the NP-complete problems once mmm is part of the input. The Gilmore–Gomory algorithm for two machines therefore cannot be extended to arbitrary mmm unless P = NP, and heuristics and exact exponential methods for no-wait shops are justified. The reduction also gives a structural fact of independent use: every directed graph can be realized, up to two arc-weight values, as the delay matrix of a no-wait flow shop.

Formalizing it. The result has been proved for fifty years; to our knowledge no machine-checked version exists. This mission produces a checked no-wait flow shop model, a checked travelling-salesman reformulation of it, the correctness of the paper's construction, and a polynomial-time reduction in an explicit Turing-machine model. It also records a gap in the printed proof: the ordering ι\iotaι the paper calls easy to construct does not exist for n=2n=2n=2.

Difficulty

Three steps are not routine.

  1. The passage from schedules to job orders assumes that the order in which jobs start is the order in which they visit every machine. With zero processing times this fails, so the reformulation needs the positivity milestone.
  2. Computing the delays requires a case analysis over all machines and all pairs of perturbations. The property of ι\iotaι is exactly what keeps the "+++" and "−-−" cases from colliding, and the constants λ≥1\lambda\ge1λ≥1, μ≥2λ+3\mu\ge2\lambda+3μ≥2λ+3 are tight enough that the comparison must be done carefully.
  3. The goal asks for an actual Turing machine with a polynomial step bound. It has to build ι\iotaι for every n≠2n\ne2n=2 and handle n≤2n\le2n≤2 separately. The equivalences alone do not give this.

Formalization scope

Jobs and machines are 000-based (Fin n, Fin m); cum p ℓ i is the paper's qℓiq_{\ell i}qℓi​, and the machine indices ι(j,k)\iota(j,k)ι(j,k) are the paper's 111-based indices. Start times are natural numbers, and release dates are 000. Section 3 computes times from processing orders on integer data, and every criterion is regular, so real start times would not change the yes-instances. A zero-length operation occupies the empty interval. Cmax⁡≤yC_{\max}\le yCmax​≤y is stated as Cℓ≤yC_\ell\le yCℓ​≤y for every job. The delays, the partial sums of the construction and its processing times are computed in Z\mathbb ZZ. The instance uses their conversion to N\mathbb NN, which is exact by milestone 4. The threshold of Theorem 5(b) is compared in Q\mathbb QQ, as printed.

The paper's loose phrases are made explicit as follows:

  • "scheduled directly after" means "precedes on every machine";
  • "equivalent to solving the TRAVELLING SALESMAN problem" means the two threshold equivalences of milestone 2, with the ∑Cj\sum C_j∑Cj​ version as the reading of "constructed as in (a)";
  • "such an ordering can easily be constructed" is stated for n≠2n\ne2n=2, the only case in which it is true.

Directed graphs are Boolean adjacency matrices. A graph with 000 or 111 vertices has a Hamilton path, and a one-vertex graph has a Hamilton circuit iff it has a loop.

The goal is CookPvsNP.PolyReducible from the published definition CookPvsNP_defs, with polynomial time measured on Cook's one-tape Turing machines. Instances are coded with the alphabet BSym and binary code encNats of the published ProjSchedTW.Complexity.Encoding (Neumann, Schwindt and Zimmermann). A graph is coded as nnn followed by its adjacency matrix; a flow-shop instance as nnn, mmm, the matrix (pℓi)(p_{\ell i})(pℓi​) and the threshold yyy.

Stating only the equivalences 6–7 and calling the result "reducible" would drop polynomiality; the goal therefore asserts PolyReducible. The target languages contain exactly the no-wait flow-shop instances, with no waiting allowed, so the reduction cannot land in a looser problem. The parameters λ,μ\lambda,\muλ,μ always carry λ≥1\lambda\ge1λ≥1, μ≥2λ+3\mu\ge2\lambda+3μ≥2λ+3.

Contributions are welcome at every level:

  • the general travelling-salesman reformulation, which is reusable for any no-wait flow-shop result;
  • the combinatorial existence of ι\iotaι;
  • the arithmetic of the construction;
  • Turing-machine infrastructure for computing arithmetic list transformations in polynomial time, which every reduction in this series needs.

Selected references

  • P. Brucker, J. K. Lenstra, A. H. G. Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75, Amsterdam, 1975; Annals of Discrete Mathematics 1 (1977) 343–362. doi:10.1016/S0167-5060(08)70743-X
  • R. M. Karp, Reducibility among combinatorial problems, in Complexity of Computer Computations, Plenum, 1972, 85–103. doi:10.1007/978-1-4684-2001-2_9
  • P. C. Gilmore, R. E. Gomory, Sequencing a one state-variable machine: a solvable case of the traveling salesman problem, Operations Research 12 (1964) 655–679. doi:10.1287/opre.12.5.655
  • D. A. Wismer, Solution of the flowshop-scheduling problem with no intermediate queues, Operations Research 20 (1972) 689–697. doi:10.1287/opre.20.3.689
  • S. S. Reddi, C. V. Ramamoorthy, On the flow-shop sequencing problem with no wait in process, Operational Research Quarterly 23 (1972) 323–331. doi:10.1057/jors.1972.52
  • H. Röck, The three-machine no-wait flow shop is NP-complete, Journal of the ACM 31 (1984) 336–345. doi:10.1145/62.65
  • N. G. Hall, C. Sriskandarajah, A survey of machine scheduling problems with blocking and no-wait in process, Operations Research 44 (1996) 510–525. doi:10.1287/opre.44.3.510
  • S. A. Cook, The complexity of theorem-proving procedures, STOC 1971, 151–158. doi:10.1145/800157.805047
14 thms3 active usersReviewed
🏆Completed
OptimizationProbability·Captain: mikedeng1

Supply Chain Coordination with Contracts VI: With a Forecast Update, Buy-Back Terms with w₁ − w₂ + λc₂ = λc₁ Give the Retailer λΩ₁(q₁) and a Lower Period-2 Margin w₂ − c₂ < w₁ − c₁Textbook

Motivation

A newsvendor retailer who may order twice faces a tradeoff. Ordering late lets the retailer use a better demand forecast. Ordering early lets the supplier produce more cheaply, with longer procurement lead times and no overtime labor. Fisher and Raman (1996) document such forecast improvements between ordering epochs in fashion apparel. A decentralized supply chain must balance cheap early production against well-informed late production, and it is not obvious that a simple contract can induce both firms to strike the balance an integrated firm would choose.

This mission formalizes §6.6 of G. P. Cachon's survey chapter Supply Chain Coordination with Contracts (Handbooks in OR & MS, Vol. 11, 2003), read in the author's January 2003 draft. The section builds on Donohue (2000), who studied the same two-mode production problem under forced compliance. The chapter's model lets the supplier operate under voluntary compliance: she may deliver less than the retailer orders, and she may produce more in period 1 than was ordered. The question is whether a buy back contract with one wholesale price per ordering epoch still coordinates the supply chain.

Setting

A demand signal ξ≥0\xi \ge 0ξ≥0 with density ggg and distribution function GGG is observed once before the selling season. Given ξ\xiξ, demand DDD has distribution function F(⋅ ∣ ξ)F(\cdot\,|\,\xi)F(⋅∣ξ), continuous and strictly increasing on [0,∞)[0,\infty)[0,∞). Demand is stochastically increasing in the signal: F(x ∣ ξh)<F(x ∣ ξl)F(x\,|\,\xi_h) < F(x\,|\,\xi_l)F(x∣ξh​)<F(x∣ξl​) for ξh>ξl\xi_h > \xi_lξh​>ξl​. Expected sales are S(q ∣ ξ)=E[min⁡(q,D) ∣ ξ]S(q\,|\,\xi) = E[\min(q,D)\,|\,\xi]S(q∣ξ)=E[min(q,D)∣ξ]. Period 1 is before the signal and period 2 is after it. The retailer's total order is q1q_1q1​ after period 1 and q2≥q1q_2 \ge q_1q2​≥q1​ after period 2. The supplier's unit production cost is cic_ici​ in period iii, with c1<c2<pc_1 < c_2 < pc1​<c2​<p, where ppp is the retail price. Salvage values and goodwill costs are zero.

The supply chain's period-2 objective is

Ω2(q2 ∣ q1,ξ)=pS(q2 ∣ ξ)−c2q2+c2q1,\Omega_2(q_2\,|\,q_1,\xi) = pS(q_2\,|\,\xi) - c_2 q_2 + c_2 q_1 ,Ω2​(q2​∣q1​,ξ)=pS(q2​∣ξ)−c2​q2​+c2​q1​,

and q2(q1,ξ)q_2(q_1,\xi)q2​(q1​,ξ) maximizes it over q2≥q1q_2 \ge q_1q2​≥q1​. The supply chain's expected profit is Ω1(q1)=−c1q1+E[Ω2(q2(q1,ξ) ∣ q1,ξ)]\Omega_1(q_1) = -c_1 q_1 + E[\Omega_2(q_2(q_1,\xi)\,|\,q_1,\xi)]Ω1​(q1​)=−c1​q1​+E[Ω2​(q2​(q1​,ξ)∣q1​,ξ)].

Under the buy back contract {w1,w2,b}\{w_1, w_2, b\}{w1​,w2​,b} the retailer pays wiw_iwi​ per unit ordered in period iii, and the supplier refunds bbb per unsold unit. The retailer's period-2 profit is π2(q2 ∣ q1,ξ)=(p−b)S(q2 ∣ ξ)−(w2−b)q2+w2q1\pi_2(q_2\,|\,q_1,\xi) = (p-b)S(q_2\,|\,\xi) - (w_2-b)q_2 + w_2 q_1π2​(q2​∣q1​,ξ)=(p−b)S(q2​∣ξ)−(w2​−b)q2​+w2​q1​, and his period-1 profit is π1(q1)=−w1q1+E[π2(q2(q1,ξ) ∣ q1,ξ)]\pi_1(q_1) = -w_1 q_1 + E[\pi_2(q_2(q_1,\xi)\,|\,q_1,\xi)]π1​(q1​)=−w1​q1​+E[π2​(q2​(q1​,ξ)∣q1​,ξ)]. The supplier's period-2 profit Π2\Pi_2Π2​ and her period-1 profit Π1(x ∣ q1)\Pi_1(x\,|\,q_1)Π1​(x∣q1​), as functions of the stock xxx she holds, are given in the mission's Profits definition.

Formalization targets

Goal: the buy back contract coordinates

For λ∈[0,1]\lambda \in [0,1]λ∈[0,1] with

p−b=λp,w2−b=λc2,w1−w2+λc2=λc1,p - b = \lambda p,\qquad w_2 - b = \lambda c_2,\qquad w_1 - w_2 + \lambda c_2 = \lambda c_1,p−b=λp,w2​−b=λc2​,w1​−w2​+λc2​=λc1​,

the identities

π2(q2 ∣ q1,ξ)=λ(Ω2(q2 ∣ q1,ξ)−c2q1)+w2q1,π1(q1)=λ Ω1(q1)\pi_2(q_2\,|\,q_1,\xi) = \lambda\big(\Omega_2(q_2\,|\,q_1,\xi) - c_2 q_1\big) + w_2 q_1,\qquad \pi_1(q_1) = \lambda\,\Omega_1(q_1)π2​(q2​∣q1​,ξ)=λ(Ω2​(q2​∣q1​,ξ)−c2​q1​)+w2​q1​,π1​(q1​)=λΩ1​(q1​)

hold, so the supply chain's optima in both periods are the retailer's optima (with equivalence for λ>0\lambda > 0λ>0). In addition,

w2−c2=w1−(λc1+(1−λ)c2)<w1−c1(λ<1).w_2 - c_2 = w_1 - \big(\lambda c_1 + (1-\lambda)c_2\big) < w_1 - c_1 \quad (\lambda < 1).w2​−c2​=w1​−(λc1​+(1−λ)c2​)<w1​−c1​(λ<1).

Milestones

  1. The structure of the period-2 problem, Eqs. (25)–(26): q2(ξ)q_2(\xi)q2​(ξ) solves F(q2(ξ) ∣ ξ)=(p−c2)/pF(q_2(\xi)\,|\,\xi) = (p-c_2)/pF(q2​(ξ)∣ξ)=(p−c2​)/p and increases in ξ\xiξ, and the threshold ξ(q1)\xi(q_1)ξ(q1​) splits the signals into those that trigger a period-2 order and those that do not.
  2. The retailer's period-2 identity (p. 65).
  3. The supplier fills any period-2 order up to q2(q1,ξ)q_2(q_1,\xi)q2​(q1​,ξ), and for λ<1\lambda < 1λ<1 she does not fill a larger one (p. 65).
  4. The retailer's period-1 identity (p. 66).
  5. The first-order condition (27) for q1oq_1^oq1o​.
  6. The supplier's period-2 profit increases in her stock below q1q_1q1​, so she produces at least the period-1 order (p. 66).
  7. The supplier produces exactly the period-1 order (p. 67).
  8. The margin comparison (p. 67).

Significance

The result shows that the buy back contract, which coordinates the single-period newsvendor, extends to a setting with a forecast update and two production modes, even when the supplier is free to under-deliver or to stockpile. Profit can be divided arbitrarily through λ\lambdaλ. Coordination also forces the supplier's margin on expensive late production below her margin on cheap early production, which contradicts the intuition that the better-informed late order should command a premium. Milestone 7 rules out stranded inventory: under the coordinating terms the supplier never stocks more than the retailer ordered in period 1.

These results are established on paper in Cachon's chapter. No machine-checked version is known. The identities are algebraic. The supplier's production result needs differentiation of an expectation over the signal across the moving threshold ξ(x)\xi(x)ξ(x).

Difficulty

The retailer's identities reduce to algebra once the contract terms are substituted, and the margin comparison is one line. The substantive steps are the derivative formulas (27) and ∂Π1(x ∣ q1)/∂x=−c1+c2(1−G(ξ(x)))\partial \Pi_1(x\,|\,q_1)/\partial x = -c_1 + c_2(1 - G(\xi(x)))∂Π1​(x∣q1​)/∂x=−c1​+c2​(1−G(ξ(x))). The obvious move, differentiating inside the expectation term by term, fails because the period-2 optimum max⁡(q1,q2(ξ))\max(q_1, q_2(\xi))max(q1​,q2​(ξ)) has a kink at ξ=ξ(q1)\xi = \xi(q_1)ξ=ξ(q1​). The integrand switches between two regimes, and the switch point moves with q1q_1q1​. The supplier's period-1 profit is not differentiable at x=q1x = q_1x=q1​; only its right derivative is negative at q1oq_1^oq1o​. Turning the page's derivative statements into the global claim that x=q1ox = q_1^ox=q1o​ is her unique optimum needs a monotonicity argument on both sides of q1oq_1^oq1o​.

Formalization scope

The conditional law is a measurable family ξ↦Dξ\xi \mapsto D_\xiξ↦Dξ​ of probability measures on R\mathbb RR supported on [0,∞)[0,\infty)[0,∞), each with a finite mean, a continuous distribution function, and a distribution function strictly increasing on [0,∞)[0,\infty)[0,∞). The signal has a measurable density g≥0g \ge 0g≥0 with ∫0∞g=1\int_0^\infty g = 1∫0∞​g=1, and demand has a finite unconditional mean. These standing assumptions follow the chapter's p. 7 newsvendor model, together with the measurability needed for expectations over the signal. 0<c2<p0 < c_2 < p0<c2​<p makes the critical ratio lie in (0,1)(0,1)(0,1). Expected sales reuse the platform definition SupplyChainTheory.expSales (from SupplyChainTheory_contracts).

The optimum q2(q1,ξ)q_2(q_1,\xi)q2​(q1​,ξ) is a hypothesis-carried selection maximizing Ω2\Omega_2Ω2​ over q2≥q1q_2 \ge q_1q2​≥q1​. It is never an arbitrary function: a formalization that let q2(q1,ξ)q_2(q_1,\xi)q2​(q1​,ξ) be unconstrained would make π1=λΩ1\pi_1 = \lambda\Omega_1π1​=λΩ1​ a statement about meaningless orders. The thresholds ξ(q1)\xi(q_1)ξ(q1​) enter as solutions of (26) whose existence is assumed where the page assumes it. Optimal order quantities are taken over q1≥0q_1 \ge 0q1​≥0 and q2≥q1q_2 \ge q_1q2​≥q1​. Derivatives are stated with HasDerivAt (or HasDerivWithinAt for the right derivative at a kink).

Three corrections of the print are disclosed in the item notes:

  • the strict margin inequality fails at λ=1\lambda = 1λ=1;
  • the p. 66 identity for Π2(x,q1,q2,ξ)\Pi_2(x, q_1, q_2, \xi)Π2​(x,q1​,q2​,ξ) is off by the constant (1−λ)c2q1(1-\lambda)c_2q_1(1−λ)c2​q1​;
  • "retailer optimal equals chain optimal" needs λ>0\lambda > 0λ>0 in the converse direction.

Contributions are welcome on all milestones. A lemma that differentiates q↦E[max⁡q2≥qΩ2]q \mapsto E[\max_{q_2 \ge q} \Omega_2]q↦E[maxq2​≥q​Ω2​] with a density-driven threshold would be reusable beyond this mission.

Selected references

  • G. P. Cachon, Supply Chain Coordination with Contracts, in S. Graves and T. de Kok (eds.), Handbooks in Operations Research and Management Science, Vol. 11: Supply Chain Management, North-Holland, 2003, Ch. 6. https://doi.org/10.1016/S0927-0507(03)11006-7
  • K. L. Donohue, Efficient Supply Contracts for Fashion Goods with Forecast Updating and Two Production Modes, Management Science 46(11), 1397–1411, 2000. https://doi.org/10.1287/mnsc.46.11.1397.12088
  • M. Fisher and A. Raman, Reducing the Cost of Demand Uncertainty Through Accurate Response to Early Sales, Operations Research 44(1), 87–99, 1996. https://doi.org/10.1287/opre.44.1.87
12 thms3 active usersReviewed
Complexity TheoryTheoretical Computer Science·Captain: mikedeng1

Complexity of Machine Scheduling Problems 3: KNAPSACK Reduces to Single-Machine Total Weighted TardinessResearch Paper

Motivation

Minimizing total weighted tardiness on a single machine, written n∣1∣∣∑wjTjn|1||\sum w_jT_jn∣1∣∣∑wj​Tj​, is one of the basic problems of deterministic scheduling. A job that finishes after its due date is penalized in proportion to its lateness and its weight. Practitioners use this criterion to model penalty clauses and customer priority. In the theory it was a reference problem for branch-and-bound methods and dominance rules throughout the 1960s and 1970s.

Close relatives are easy: with equal weights and a common due date, shortest-processing-time order is optimal. Whether the weighted problem admits a polynomial algorithm was open until the report of Brucker, Lenstra and Rinnooy Kan in 1975. Their Theorem 4(d) shows that KNAPSACK reduces to it, so the problem is NP-hard. The unweighted case n∣1∣∣∑Tjn|1||\sum T_jn∣1∣∣∑Tj​ is listed there as open (Section 5) and was settled only later by Du and Leung (1990).

Timeline:

  • 1972: Karp proves KNAPSACK NP-complete (Karp 1972).
  • 1975: Brucker, Lenstra and Rinnooy Kan, Mathematisch Centrum Report BW 43/75, Theorem 4(d), reduce KNAPSACK to n∣1∣∣∑wjTjn|1||\sum w_jT_jn∣1∣∣∑wj​Tj​ (journal version: Annals of Discrete Mathematics 1, 1977).
  • 1977: Lawler gives a pseudopolynomial algorithm for n∣1∣∣∑Tjn|1||\sum T_jn∣1∣∣∑Tj​ and shows that n∣1∣∣∑wjTjn|1||\sum w_jT_jn∣1∣∣∑wj​Tj​ is strongly NP-hard (Lawler 1977).
  • 1990: Du and Leung prove n∣1∣∣∑Tjn|1||\sum T_jn∣1∣∣∑Tj​ NP-hard (Du & Leung 1990).

Setting

A KNAPSACK instance consists of positive integers a1,…,ata_1,\dots,a_ta1​,…,at​ and bbb. It is a yes-instance if some subset S⊆T={1,…,t}S\subseteq T=\{1,\dots,t\}S⊆T={1,…,t} satisfies ∑j∈Saj=b\sum_{j\in S}a_j=b∑j∈S​aj​=b. Write A=∑j∈TajA=\sum_{j\in T}a_jA=∑j∈T​aj​ and a∗=max⁡j∈Taja_*=\max_{j\in T}a_ja∗​=maxj∈T​aj​.

An instance of n∣1∣∣∑wjTjn|1||\sum w_jT_jn∣1∣∣∑wj​Tj​ consists of nnn jobs. Job jjj has a processing time pjp_jpj​, a weight wjw_jwj​ and a due date djd_jdj​, all nonnegative integers, and every job is available at time 000. A schedule gives each job a start time Bj∈NB_j\in\mathbb NBj​∈N, and no two jobs may overlap on the machine. Job jjj completes at Cj=Bj+pjC_j=B_j+p_jCj​=Bj​+pj​ and has tardiness Tj=max⁡{0,Cj−dj}T_j=\max\{0,C_j-d_j\}Tj​=max{0,Cj​−dj​}. The instance with threshold yyy is a yes-instance if some schedule satisfies ∑jwjTj≤y\sum_jw_jT_j\le y∑j​wj​Tj​≤y. A processing order π=(π(1),…,π(n))\pi=(\pi(1),\dots,\pi(n))π=(π(1),…,π(n)) determines the schedule without idle time, in which Cπ(k)=∑i≤kpπ(i)C_{\pi(k)}=\sum_{i\le k}p_{\pi(i)}Cπ(k)​=∑i≤k​pπ(i)​.

Reducibility (Section 2 of the paper) is polynomial-time many-one reducibility between the recognition versions. A polynomial-time Turing machine must map codes of KNAPSACK instances to codes of scheduling instances so that yes-instances map exactly to yes-instances.

The paper's construction has n=t+t′n=t+t'n=t+t′ jobs: for j∈Tj\in Tj∈T, pj=τ+ajp_j=\tau+a_jpj​=τ+aj​, wj=τ+aj+1w_j=\tau+a_j+1wj​=τ+aj​+1, dj=tτ+bd_j=t\tau+bdj​=tτ+b; for each of the t′t't′ dummy jobs, pj=τp_j=\taupj​=τ, wj=τ+1w_j=\tau+1wj​=τ+1, dj=tτ+bd_j=t\tau+bdj​=tτ+b. The threshold is y=12t′(t′+1)τ(τ+1)+(t′+1)τ(A−b)+t′y=\tfrac12t'(t'+1)\tau(\tau+1)+(t'+1)\tau(A-b)+t'y=21​t′(t′+1)τ(τ+1)+(t′+1)τ(A−b)+t′, with t′=12(t+1)(A−b)+12t(t+1)a∗2t'=\tfrac12(t+1)(A-b)+\tfrac12t(t+1)a_*^2t′=21​(t+1)(A−b)+21​t(t+1)a∗2​ and τ>2t′+A\tau>2t'+Aτ>2t′+A. The proof is phrased in terms of cπ=Cπ(t)−(tτ+b)c_\pi=C_{\pi(t)}-(t\tau+b)cπ​=Cπ(t)​−(tτ+b), the amount by which the ttt-th job of the order misses the common due date.

Formalization targets

Goal: Theorem 4(d)

KNAPSACK  ∝  n∣1∣∣∑wjTj,\text{KNAPSACK}\;\propto\;n|1||\textstyle\sum w_jT_j,KNAPSACK∝n∣1∣∣∑wj​Tj​,

stated as CookPvsNP.PolyReducible SchedComplexity.OneMachine.knapsackLang wtLangMult. The scheduling side uses the multiplicity encoding of the paper's Remark (p. 23), in which a class of identical jobs is written once together with its cardinality.

The equivalence and its claims

Each milestone is a statement of the paper's proof (pp. 20–21) about the construction above, for every admissible τ\tauτ:

  • removal of idle time: every schedule is matched or improved by the schedule without idle time of some processing order;
  • KNAPSACK has a solution iff some order has Cπ(t)=tτ+bC_{\pi(t)}=t\tau+bCπ(t)​=tτ+b; moreover −b≤cπ≤A−b-b\le c_\pi\le A-b−b≤cπ​≤A−b;
  • identities and bounds (2)–(7) for the tail sums ∑j>tvπ(j)(Cπ(j)−Cπ(t))\sum_{j>t}v_{\pi(j)}(C_{\pi(j)}-C_{\pi(t)})∑j>t​vπ(j)​(Cπ(j)​−Cπ(t)​);
  • claims (A) cπ=0⇒∃π′c_\pi=0\Rightarrow\exists\pi'cπ​=0⇒∃π′ with cπ′=0c_{\pi'}=0cπ′​=0 and ∑wjTj≤y\sum w_jT_j\le y∑wj​Tj​≤y; (B) cπ>0⇒∑wjTj>yc_\pi>0\Rightarrow\sum w_jT_j>ycπ​>0⇒∑wj​Tj​>y; (C) cπ<0⇒∑wjTj>yc_\pi<0\Rightarrow\sum w_jT_j>ycπ​<0⇒∑wj​Tj​>y;
  • the equivalence: KNAPSACK has a solution iff the constructed instance has a schedule with ∑wjTj≤y\sum w_jT_j\le y∑wj​Tj​≤y.

Significance

The theorem places n∣1∣∣∑wjTjn|1||\sum w_jT_jn∣1∣∣∑wj​Tj​ among the NP-hard problems, so (unless P = NP) the research on it has to aim at enumerative methods, pseudopolynomial algorithms or approximation, not at an exact polynomial algorithm. Together with the companion reductions of Theorem 4, it drew the boundary between easy and hard single-machine problems that the later classification of Lageweg, Lawler, Lenstra and Rinnooy Kan made systematic.

The result is proved in the paper, and Lawler's later strong NP-hardness proof supersedes it. No machine-checked proof is known to exist. A formal proof adds three things. It makes the paper's "it is easily seen" steps and the encoding argument of the Remark explicit. It produces a reusable single-machine tardiness model with processing orders. It also fixes a gap in the printed construction: the printed t′t't′ need not be an integer.

Difficulty

The equivalence is not a local exchange argument. The threshold yyy must separate orders with cπ=0c_\pi=0cπ​=0 from all others, and the objective is a quadratic function of the order. The orders with cπ=0c_\pi=0cπ​=0 can still differ in ∑wjTj\sum w_jT_j∑wj​Tj​ by the cross terms ∑aπ(j)aπ(k)\sum a_{\pi(j)}a_{\pi(k)}∑aπ(j)​aπ(k)​ and by how the late jobs are arranged. The construction therefore needs a slack t′t't′ that absorbs these terms, and a scale τ\tauτ large enough that a nonzero cπc_\picπ​ always costs more than the slack. Keeping exact track of every constant, including t′t't′ and yyy, is where errors creep in.

Polynomiality is a second, separate difficulty. The construction has Θ(t2a∗2+tA)\Theta(t^2a_*^2+tA)Θ(t2a∗2​+tA) jobs, which is exponential in the binary length of the KNAPSACK input. The goal holds only for the encoding of the Remark, and a solver must also produce an explicit polynomial-time Turing machine.

Formalization scope

  • Jobs of the order-based statements are Fin n, numbered from 000; a processing order is Equiv.Perm (Fin n) with π i the paper's π(i+1)\pi(i+1)π(i+1). posCompletion p π k is the paper's Cπ(k)C_{\pi(k)}Cπ(k)​ for the 1-based position kkk.
  • Start times are in N\mathbb NN. Every criterion is regular and the paper determines schedules by processing orders, so integer start times lose nothing. Tardiness and ∑wjTj\sum w_jT_j∑wj​Tj​ are computed in Z\mathbb ZZ; the bounds with halves are stated over R\mathbb RR exactly as printed.
  • Corrected gap: the printed t′=12(t+1)(A−b)+12t(t+1)a∗2t'=\tfrac12(t+1)(A-b)+\tfrac12t(t+1)a_*^2t′=21​(t+1)(A−b)+21​t(t+1)a∗2​ is a half-integer when (t+1)(A−b)(t+1)(A-b)(t+1)(A−b) is odd. The formalization uses its ceiling and computes yyy from the same t′t't′.
  • τ\tauτ is quantified over all integers with τ>2t′+A\tau>2t'+Aτ>2t′+A; the positivity of the aja_jaj​ and 0<b<A0<b<A0<b<A are hypotheses, as the paper assumes them.
  • Explicit readings of the paper's loose phrases: "we may assume [no idle time]" becomes a theorem that the schedule without idle time of some order is at least as good as any schedule; "easily seen" becomes the equivalence with Cπ(t)=tτ+bC_{\pi(t)}=t\tau+bCπ(t)​=tτ+b; "for some π\piπ" in (5) and (7) becomes a reordering that keeps the first ttt positions, and so keeps cπc_\picπ​; "we may assume 0<b<A0<b<A0<b<A" is a hypothesis of the milestones but not of the goal, whose reduction must handle every KNAPSACK instance.
  • Reducibility is CookPvsNP.PolyReducible from the published CookPvsNP_defs. Codes use the alphabet BSym and the binary numerals encNats of the published ProjSchedTW.Complexity.Encoding (Neumann, Schwindt and Zimmermann's encoding). KNAPSACK is restricted to positive integers, so that encoding's subsetSumLang is not reused.
  • The goal must not be weakened to the bare equivalence: polynomial-time computability of the reduction is part of the statement. The one-copy-per-job encoding of the target is ruled out: the paper does not claim polynomiality for it, and the goal uses the multiplicity encoding instead.
  • Welcome contributions: proofs of the claims, a reusable lemma that idle time can be removed for regular criteria, and Turing-machine constructions for arithmetic on binary numerals, which the sibling missions of this series also need.

Selected references

  • P. Brucker, J. K. Lenstra, A. H. G. Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75, Amsterdam, 1975; Annals of Discrete Mathematics 1 (1977) 343–362. https://ir.cwi.nl/pub/9725 , https://doi.org/10.1016/S0167-5060(08)70743-X
  • 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
  • E. L. Lawler, A "pseudopolynomial" algorithm for sequencing jobs to minimize total tardiness, Annals of Discrete Mathematics 1 (1977) 331–342. https://doi.org/10.1016/S0167-5060(08)70742-8
  • J. Du, J. Y.-T. Leung, Minimizing total tardiness on one machine is NP-hard, Mathematics of Operations Research 15 (1990) 483–495. https://doi.org/10.1287/moor.15.3.483
  • S. Cook, The P versus NP problem, Clay Mathematics Institute problem description, 2000. https://www.claymath.org/wp-content/uploads/2022/06/pvsnp.pdf
18 thms3 active usersReviewed
🏆Completed
OptimizationProbability·Captain: mikedeng1

Supply Chain Coordination with Contracts VII: In the Single-Location Base-Stock Model the Transfers t_I = (1 − λ)h_r, t_B = β_r − λβ Make the Retailer's Cost λc(s_r)Textbook

Motivation

A retailer can keep too little inventory even when its own stocking decision is optimal. In the single-location model of Cachon, Supply Chain Coordination with Contracts (2003), the supplier suffers a cost when the retailer has backorders, but the retailer does not bear that part of the cost. The supplier and retailer therefore prefer different base-stock levels. Section 6.7 asks whether payments tied to expected inventory and backorders can make the retailer choose the level that minimizes their combined cost. The result also describes how the contract divides that cost between the firms.

The model concerns a continuing operation with repeated replenishment opportunities and backordered demand. A base-stock policy keeps the retailer's inventory position at a chosen level by replacing units as demand occurs. Cachon reduces the cost calculation for such a policy to the distribution of demand over one replenishment lead time. That reduction allows the coordination question to be stated with one real stock-level decision rather than a full inventory trajectory. The chapter presents this model as a building block for its two-location system in §6.8 Cachon (2003).

Setting

Let DrD_rDr​ denote lead-time demand, the amount demanded while the retailer waits for replenishment. It is nonnegative and has a finite mean μr=E[Dr]\mu_r=\mathbb E[D_r]μr​=E[Dr​], distribution function FrF_rFr​, and density frf_rfr​. At inventory level s∈Rs\in\mathbb Rs∈R, expected inventory is Ir(s)=E[(s−Dr)+]I_r(s)=\mathbb E[(s-D_r)^+]Ir​(s)=E[(s−Dr​)+] and expected backorders are Br(s)=E[(Dr−s)+]B_r(s)=\mathbb E[(D_r-s)^+]Br​(s)=E[(Dr​−s)+], where x+=max⁡(x,0)x^+=\max(x,0)x+=max(x,0). The section assumes Fr(0)=0F_r(0)=0Fr​(0)=0 and a strictly increasing differentiable FrF_rFr​ on nonnegative levels. These assumptions place the optimum above zero.

The retailer pays holding cost hrIr(s)h_r I_r(s)hr​Ir​(s) and its own backorder cost βrBr(s)\beta_r B_r(s)βr​Br​(s). The supplier pays a further backorder cost βsBr(s)\beta_s B_r(s)βs​Br​(s). All three cost rates are positive. Thus cr(s)=hrIr(s)+βrBr(s)c_r(s)=h_r I_r(s)+\beta_r B_r(s)cr​(s)=hr​Ir​(s)+βr​Br​(s) and cs(s)=βsBr(s)c_s(s)=\beta_s B_r(s)cs​(s)=βs​Br​(s) are the firms' costs, while c(s)=cr(s)+cs(s)c(s)=c_r(s)+c_s(s)c(s)=cr​(s)+cs​(s) is the channel cost. Write β=βr+βs\beta=\beta_r+\beta_sβ=βr​+βs​. Because demand is backordered rather than lost, the section treats the sales rate as constant across the stock decisions and compares costs alone Cachon (2003), §6.7.1.

The proposed contract pays the retailer tIIr(s)+tBBr(s)t_I I_r(s)+t_B B_r(s)tI​Ir​(s)+tB​Br​(s) from the supplier, where tIt_ItI​ and tBt_BtB​ are transfer rates. A positive rate is a subsidy; a negative rate charges the retailer. For a parameter λ∈(0,1]\lambda\in(0,1]λ∈(0,1], the contract sets tI=(1−λ)hrt_I=(1-\lambda)h_rtI​=(1−λ)hr​ and tB=βr−λβt_B=\beta_r-\lambda\betatB​=βr​−λβ. The retailer's contracted cost is its original cost minus this transfer; the supplier's contracted cost is its original cost plus it. The parameter λ\lambdaλ describes a family of printed contract rates and is not itself a payment term Cachon (2003), p. 74.

Formalization targets

The milestones establish the two expectation identities, the channel's cost formula and strict convexity, the channel's critical ratio, the retailer's lower uncontracted stock level, and the retailer's cost after the printed transfer. In the notation above, the channel optimum sr∘s_r^\circsr∘​ is unique and satisfies

Fr(sr∘)=βhr+β;F_r(s_r^\circ)=\frac{\beta}{h_r+\beta};Fr​(sr∘​)=hr​+ββ​;

the uncontracted retailer has its own unique optimum sr∗s_r^*sr∗​ with sr∗<sr∘s_r^*<s_r^\circsr∗​<sr∘​. Three further statements of §6.7.1 complete the section: the signs of the transfer rates over the family (tI≥0t_I\ge0tI​≥0, with tI>0t_I>0tI​>0 exactly for λ<1\lambda<1λ<1, and {tB:0<λ≤1}=[−βs,βr)\{t_B:0<\lambda\le1\}=[-\beta_s,\beta_r){tB​:0<λ≤1}=[−βs​,βr​)); the decomposition

tIIr(y)+tBBr(y)=(tI+tB)Ir(y)+tB(μr−y);t_I I_r(y)+t_B B_r(y)=(t_I+t_B)I_r(y)+t_B(\mu_r-y);tI​Ir​(y)+tB​Br​(y)=(tI​+tB​)Ir​(y)+tB​(μr​−y);

and the equivalence with the newsvendor model: with lead-time demand as newsvendor demand, retail price p=hr+βrp=h_r+\beta_rp=hr​+βr​ and wholesale price w=hrw=h_rw=hr​, the newsvendor retailer's profit pS(q)−wqpS(q)-wqpS(q)−wq, with expected sales S(q)=E[min⁡(q,Dr)]S(q)=\mathbb E[\min(q,D_r)]S(q)=E[min(q,Dr​)], equals −cr(q)+βrμr-c_r(q)+\beta_r\mu_r−cr​(q)+βr​μr​. The mission goal is the coordinating identity of Eq. (33), together with the unique optimality it implies:

crλ(s)=λc(s),csλ(s)=(1−λ)c(s)for all s∈R and 0<λ≤1.c_r^\lambda(s)=\lambda c(s),\qquad c_s^\lambda(s)=(1-\lambda)c(s) \quad\text{for all }s\in\mathbb R\text{ and }0<\lambda\le1.crλ​(s)=λc(s),csλ​(s)=(1−λ)c(s)for all s∈R and 0<λ≤1.

Consequently, the retailer's contracted cost has the same unique minimizer sr∘s_r^\circsr∘​ as the channel cost. At each stock level the retailer's contracted cost is strictly increasing in λ\lambdaλ, which is the page's statement that the retailer's share of the cost increases with λ\lambdaλ. The result does not prescribe one fixed allocation of cost: each λ\lambdaλ in the stated interval gives a contract with the same coordinated stock level and a different retailer share Cachon (2003), Eq. (33), p. 74.

Significance

The theorem identifies an explicit transfer that corrects an incentive gap created by the supplier's backorder cost. Without it, the retailer sets stock according to βr\beta_rβr​, while the channel's stock decision uses βr+βs\beta_r+\beta_sβr​+βs​. Under the contract, the retailer bears the fraction λ\lambdaλ of total cost at every stock level, so its decision agrees with the integrated channel's decision. This conclusion connects a decentralized cost objective to the base-stock target used in the next section's two-location analysis Cachon (2003), §§6.7–6.8.

The chapter proves these claims informally; this mission asks for machine-checked Lean proofs of the expectation identities, convexity and optimality claims, and the contract identity. Its reusable output is the precise treatment of expected positive-part inventory and backorders under a demand law with finite mean. The local definitions may also support later formalizations of inventory contracts. Expected sales in the newsvendor comparison is the published SupplyChainTheory.expSales (definition SupplyChainTheory_contracts), referenced rather than redefined. The existing proved SupplyChainTheory.chain_optimal_fractile concerns a single-period newsvendor profit objective; its critical ratio is related mathematically but belongs to a different model and is not substituted for Eq. (31).

Difficulty

The algebra of the transfer rates is short, but the unique-optimum claim depends on more than algebra. It requires expected inventory and backorders to match the distribution formulas, the cost to have the required curvature at nonnegative levels, and the optimum to occur at a positive level. A formal statement that defines the retailer's contracted cost directly as λc\lambda cλc would erase the coordinating claim. The negative-stock region also matters: since demand is nonnegative, expected inventory vanishes there and cost is affine rather than strictly convex. The formulation must keep strict convexity on the range where it holds while still identifying the unique optimum among all real stock levels.

Formalization scope

Lean represents DrD_rDr​ by a probability measure on R\mathbb RR supported on [0,∞)[0,\infty)[0,∞), with an explicit integrable first moment. The density is a measurable nonnegative function whose induced measure is the demand law; the cdf is continuous, strictly increasing on [0,∞)[0,\infty)[0,∞), equals zero at zero, and has that density as its derivative at positive levels. These are the section's distribution assumptions. The positive rates hr,βr,βsh_r,\beta_r,\beta_shr​,βr​,βs​ are fields of one model, and Ir,BrI_r,B_rIr​,Br​ are defined by expectations. This rules out accidental zero values from nonintegrable real integrals. The cost functions are constructed from the expected inventory and backorders; the transfer is constructed from the two printed rates. The identities in Eqs. (28)–(33) are theorem targets, not definitions.

Stock levels are real, including negative levels, because the section does not explicitly restrict the decision set. The formal result states strict convexity on nonnegative levels and uniqueness of the cost minimizers over all real levels. The page's sentence that tI>0t_I>0tI​>0 for all λ∈(0,1]\lambda\in(0,1]λ∈(0,1] fails at λ=1\lambda=1λ=1, where tI=0t_I=0tI​=0; the formal statement asserts tI≥0t_I\ge0tI​≥0 with strict positivity exactly for λ<1\lambda<1λ<1. The contract range is exactly 0<λ≤10<\lambda\le10<λ≤1; λ=0\lambda=0λ=0 would make every retailer stock level cost-equivalent. The transfer sign is positive from supplier to retailer, as on p. 73. Risk neutrality and full information are the chapter's standing conventions. The continuous-review state process, supplier capacity, and proof that a base-stock policy attains the displayed long-run average are not modeled; the mission formalizes the section's explicit lead-time-demand cost reduction. Contributions that establish integrability, distribution identities, strict convexity, and critical-ratio optimality are all needed for closure.

Selected references

  • Gérard P. Cachon, Supply Chain Coordination with Contracts, in Handbooks in Operations Research and Management Science, vol. 11, North-Holland, 2003; source used here: author's third draft, January 2003, §6.7. DOI.
12 thms3 active usersReviewed
Complexity TheoryTheoretical Computer Science·Captain: mikedeng1

Complexity of Machine Scheduling Problems 2: KNAPSACK Reduces to Single-Machine Maximum Lateness, Weighted Number of Late Jobs, and Weighted Completion Time with DeadlinesResearch Paper

Motivation

Deterministic machine scheduling was one of the first application areas of the theory of NP-completeness. After Cook (1971) and Karp (1972) showed that a large family of combinatorial problems are polynomially equivalent, Brucker, Lenstra and Rinnooy Kan set out to locate the boundary between the polynomially solvable and the NP-complete scheduling problems. Their report Complexity of Machine Scheduling Problems (Mathematisch Centrum, Report BW 43/75, 1975; journal version in Annals of Discrete Mathematics 1, 1977) introduced the four-field notation n∣m∣ℓ,λ∣kn|m|\ell,\lambda|kn∣m∣ℓ,λ∣k that, in refined form, is still the standard classification of scheduling problems, and proved NP-completeness of the "easiest" hard problems by explicit reductions.

Single-machine problems with due dates sit right at that boundary. Minimizing the maximum lateness Lmax⁡L_{\max}Lmax​ is solved by Jackson's earliest-due-date rule (1955), and minimizing the number of late jobs by Moore's algorithm (1968). Theorem 4 of the report shows that small changes to these problems — one release date, job weights, or due dates turned into deadlines under a weighted completion-time objective — make them NP-complete, by reduction from KNAPSACK. This mission formalizes four of those reductions, parts (b), (c), (e) and (f) of Theorem 4.

Timeline, as far as this mission is concerned:

  • 1955: Jackson — n∣1∣∣Lmax⁡n|1||L_{\max}n∣1∣∣Lmax​ is solved by sequencing in order of nondecreasing due dates.
  • 1968: Moore — n∣1∣∣∑Ujn|1||\sum U_jn∣1∣∣∑Uj​ (unit weights, no release dates) is solvable in polynomial time.
  • 1972: Karp — KNAPSACK (in the subset-sum form used here) is NP-complete; Karp also notes the reduction to n∣1∣∣∑wjUjn|1||\sum w_jU_jn∣1∣∣∑wj​Uj​, which the report cites for part (e).
  • 1975: Brucker, Lenstra and Rinnooy Kan — Theorem 4: KNAPSACK reduces to ten scheduling problems, including the four single-machine problems of this mission.

Setting

A single-machine instance consists of n≥1n\ge1n≥1 jobs J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​. Job JjJ_jJj​ needs pj1p_{j1}pj1​ units of processing on the machine M1M_1M1​, has a weight wjw_jwj​, a release date rjr_jrj​ and a due date djd_jdj​; all data are nonnegative integers. A schedule assigns to each job a starting time Bj≥rjB_j\ge r_jBj​≥rj​ such that the occupied intervals [Bj,Bj+pj1)[B_j,B_j+p_{j1})[Bj​,Bj​+pj1​) of distinct jobs are disjoint. Idle time is allowed; a job with pj1=0p_{j1}=0pj1​=0 occupies an empty interval. The completion time is Cj=Bj+pj1C_j=B_j+p_{j1}Cj​=Bj​+pj1​, the lateness is Lj=Cj−djL_j=C_j-d_jLj​=Cj​−dj​ (possibly negative), and UjU_jUj​ is 000 if Cj≤djC_j\le d_jCj​≤dj​ and 111 otherwise. The criteria are

Lmax⁡=max⁡jLj,∑wjCj=∑j=1nwjCj,∑wjUj=∑j=1nwjUj.L_{\max}=\max_j L_j,\qquad \sum w_jC_j=\sum_{j=1}^n w_jC_j,\qquad \sum w_jU_j=\sum_{j=1}^n w_jU_j .Lmax​=jmax​Lj​,∑wj​Cj​=j=1∑n​wj​Cj​,∑wj​Uj​=j=1∑n​wj​Uj​.

The problem class is written in the λ\lambdaλ field: by default every rj=0r_j=0rj​=0; rn≥0r_n\ge0rn​≥0 allows a nonzero release date for the last job JnJ_nJn​ only; wj=1w_j=1wj​=1 fixes unit weights; Lmax⁡≤0L_{\max}\le0Lmax​≤0 admits only schedules that meet every due date. A problem is turned into a yes/no question by asking whether a schedule with value ≤y\le y≤y exists.

KNAPSACK (Theorem 2(b) of the report): given positive integers a1,…,at,ba_1,\dots,a_t,ba1​,…,at​,b, is there a subset S⊆T={1,…,t}S\subseteq T=\{1,\dots,t\}S⊆T={1,…,t} with ∑j∈Saj=b\sum_{j\in S}a_j=b∑j∈S​aj​=b? Write A=∑j∈TajA=\sum_{j\in T}a_jA=∑j∈T​aj​.

A problem P′P'P′ is reducible to PPP, P′∝PP'\propto PP′∝P, if every instance of P′P'P′ can be transformed in polynomial time into an instance of PPP whose answer is the same.

Formalization targets

Goal: Theorem 4(b), (c), (e), (f)

KNAPSACK∝n∣1∣Lmax⁡≤0∣∑wjCj,KNAPSACK∝n∣1∣rn≥0∣Lmax⁡,\mathsf{KNAPSACK}\propto n|1|L_{\max}\le0|\textstyle\sum w_jC_j,\quad \mathsf{KNAPSACK}\propto n|1|r_n\ge0|L_{\max},KNAPSACK∝n∣1∣Lmax​≤0∣∑wj​Cj​,KNAPSACK∝n∣1∣rn​≥0∣Lmax​, KNAPSACK∝n∣1∣∣∑wjUj,KNAPSACK∝n∣1∣rn≥0,wj=1∣∑wjUj,\mathsf{KNAPSACK}\propto n|1||\textstyle\sum w_jU_j,\quad \mathsf{KNAPSACK}\propto n|1|r_n\ge0,w_j=1|\textstyle\sum w_jU_j ,KNAPSACK∝n∣1∣∣∑wj​Uj​,KNAPSACK∝n∣1∣rn​≥0,wj​=1∣∑wj​Uj​,

as polynomial-time many-one reductions between languages of binary strings.

Milestones: the four yes-instance equivalences

For positive a1,…,at,ba_1,\dots,a_t,ba1​,…,at​,b with 0<b<A0<b<A0<b<A, and the paper's constructions:

  • 4(c): n=t+1n=t+1n=t+1; rj=0r_j=0rj​=0, pj1=ajp_{j1}=a_jpj1​=aj​, dj=A+1d_j=A+1dj​=A+1 for j∈Tj\in Tj∈T; rn=br_n=brn​=b, pn1=1p_{n1}=1pn1​=1, dn=b+1d_n=b+1dn​=b+1. KNAPSACK has a solution iff some schedule has Lmax⁡≤0L_{\max}\le0Lmax​≤0.
  • 4(f): the same instance with unit weights; KNAPSACK has a solution iff some schedule has ∑Uj≤0\sum U_j\le0∑Uj​≤0.
  • 4(e): n=tn=tn=t; pj1=wj=ajp_{j1}=w_j=a_jpj1​=wj​=aj​, dj=bd_j=bdj​=b. KNAPSACK has a solution iff some schedule has ∑wjUj≤A−b\sum w_jU_j\le A-b∑wj​Uj​≤A−b.
  • 4(b): n=t+1n=t+1n=t+1; pj1=wj=ajp_{j1}=w_j=a_jpj1​=wj​=aj​, dj=A+1d_j=A+1dj​=A+1 for j∈Tj\in Tj∈T; pn1=1p_{n1}=1pn1​=1, wn=0w_n=0wn​=0, dn=b+1d_n=b+1dn​=b+1. KNAPSACK has a solution iff some schedule meeting all due dates has
∑wjCj≤y=∑j,k∈T, j≤kajak+A−b.\sum w_jC_j\le y=\sum_{j,k\in T,\ j\le k}a_ja_k+A-b .∑wj​Cj​≤y=j,k∈T, j≤k∑​aj​ak​+A−b.

Significance

The result. Combined with the NP-completeness of KNAPSACK, the four reductions show that the four problems are NP-hard (in the ordinary sense; they admit pseudo-polynomial algorithms). Part (c) shows that Jackson's rule cannot be extended to a single nonzero release date unless P = NP; part (f) does the same for Moore's algorithm; part (e) explains why weights are essential in the late-jobs problem; part (b) shows that deadlines turn the weighted completion-time problem, solved by Smith's ratio rule without them, into a hard one. These are entries of the complexity tables that every later scheduling classification builds on.

Formalizing it. The reductions are classical and proved on paper, in a few lines each: for (c), (e) and (f) the report gives only the construction and a figure. None of them has a machine-checked proof. A complete formalization supplies the explicit equivalence over all feasible schedules (including schedules with idle time and arbitrary processing order), the handling of the inputs the proof sets aside by "we may assume that 0<b<A0<b<A0<b<A", and the polynomial-time computability of the constructions in a Turing-machine model.

Difficulty

Each equivalence has an easy direction: a subset SSS with sum bbb gives the schedule "jobs of SSS, then JnJ_nJn​, then the rest" (Figures 4 and 7 of the report). The other direction must rule out every feasible schedule, not only the idle-free ones in the displayed order. The report gives no argument for this direction in (c), (e) and (f), and for (b) only a computation for idle-free schedules of one shape. The equivalences are false outside 0<b<A0<b<A0<b<A in some cases (for (c), any b>Ab>Ab>A makes every schedule on time), so the goal's reduction must treat those inputs separately.

The heavier part is polynomial-time computability: the reduction must be a function on strings, computed by a one-tape Turing machine within a polynomial number of steps, that parses a binary-coded KNAPSACK instance, computes AAA and the threshold (for (b), a sum of O(t2)O(t^2)O(t2) products), and writes the coded scheduling instance — and maps malformed strings outside the target language.

Formalization scope

  • Model. Jobs are Fin n (0-based; JnJ_nJn​ is the last index), with n>0n>0n>0 in each target language. Starting times are natural numbers: Section 3 computes them from processing orders on integer data, and since all criteria here are regular and release dates survive left shifts, real starting times give the same yes-instances. Feasibility requires disjoint occupied intervals, including empty intervals when pj1=0p_{j1}=0pj1​=0. Idle time is allowed. Lateness is an integer.
  • Problem classes are binding. rn≥0r_n\ge0rn​≥0 means at least one job and release date 000 for every job except the last; Lmax⁡≤0L_{\max}\le0Lmax​≤0 in (b) is a constraint on schedules, not the criterion. Instances outside the class are not in the target language.
  • Thresholds. y∈Ny\in\mathbb Ny∈N in all four languages; for Lmax⁡L_{\max}Lmax​ this restricts to nonnegative thresholds, enough for the paper's y=0y=0y=0. "Lmax⁡≤yL_{\max}\le yLmax​≤y" is stated as "Lj≤yL_j\le yLj​≤y for all jjj".
  • Codes. An instance with threshold yyy is the list nnn, then pj1,wj,rj,djp_{j1},w_j,r_j,d_jpj1​,wj​,rj​,dj​ per job, then yyy, each number in binary.
  • Reducibility. "Reducible" (Section 2) is read as Karp reducibility, CookPvsNP.PolyReducible from the published definition CookPvsNP_defs. The alphabet and binary number codes are those of the published definition ProjSchedTW.Complexity.Encoding (Neumann, Schwindt and Zimmermann); its SUBSET SUM language is not reused because it admits zero sizes, while the paper's KNAPSACK is over positive integers.
  • Explicit readings of loose phrases. "We may assume that 0<b<A0<b<A0<b<A" becomes a hypothesis of each milestone and an obligation on the goal's reduction. "Cf. reduction (i) and Figure 4", "Cf. Karp [19] and Figure 7" and "The equivalence follows immediately" become the stated equivalences over all feasible schedules. Reduction (c) does not specify weights; the shared construction uses unit weights.
  • Not trivializable. The equivalences are stated for the paper's explicit constructions, not for an existentially chosen instance; the target languages enforce the problem class; and the goal demands polynomial-time computability, not only the equivalence.
  • Infrastructure. A Turing-machine library for arithmetic on binary codes (parsing, addition, multiplication, comparison) is reusable across all seven missions of this series and across every reduction posed in the same framework. Contributions of such general lemmas are welcome.

Parts (a), (d) and (g)–(j) of Theorem 4 are formalized in other missions of this series.

Selected references

  • P. Brucker, J. K. Lenstra, A. H. G. Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum, Report BW 43/75, Amsterdam, 1975; journal version: J. K. Lenstra, A. H. G. Rinnooy Kan, P. Brucker, Annals of Discrete Mathematics 1 (1977) 343–362. https://doi.org/10.1016/S0167-5060(08)70743-X
  • 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
  • S. A. Cook, The complexity of theorem-proving procedures, Proc. 3rd ACM STOC, 1971, 151–158. https://doi.org/10.1145/800157.805047
  • J. M. Moore, An n job, one machine sequencing algorithm for minimizing the number of late jobs, Management Science 15 (1968) 102–109. 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.
11 thms3 active usersReviewed
Complexity TheoryTheoretical Computer Science·Captain: mikedeng1

Complexity of Machine Scheduling Problems 1: PARTITION Reduces to Makespan and to Weighted Completion Time on Two Identical MachinesResearch Paper

Motivation

Deterministic machine scheduling asks how to process a set of jobs on a set of machines so that an overall criterion, such as the time at which the last job finishes, is as small as possible. In the early 1970s many such problems had efficient algorithms (Johnson's rule for the two-machine flow shop, Smith's ratio rule for a single machine, Lawler's rule under precedence constraints), while others resisted every attempt. The report of Brucker, Lenstra and Rinnooy Kan (Mathematisch Centrum, 1975; journal version in Annals of Discrete Mathematics 1, 1977) drew the line between the two groups systematically. It fixed the four-field notation n∣m∣ℓ,λ∣kn|m|\ell,\lambda|kn∣m∣ℓ,λ∣k that the scheduling literature still uses, and it proved NP-completeness of the "easiest" hard problems by explicit reductions in the sense of Karp.

The first family of reductions in the report, Theorem 3, concerns the simplest machine environment beyond a single machine: two identical machines. It shows that already there, minimizing the makespan and minimizing the total weighted completion time are as hard as PARTITION. These two reductions are simplified versions of reductions given by Bruno, Coffman and Sethi (1974), reference [3] of the report.

Setting

PARTITION. Given positive integers a1,…,ata_1,\dots,a_ta1​,…,at​, decide whether there is a subset SSS of T={1,…,t}T=\{1,\dots,t\}T={1,…,t} with

∑j∈Saj=∑j∈T−Saj.\sum_{j\in S}a_j=\sum_{j\in T-S}a_j .j∈S∑​aj​=j∈T−S∑​aj​.

Write A=∑j∈TajA=\sum_{j\in T}a_jA=∑j∈T​aj​ for the total.

Two identical machines. There are nnn jobs J1,…,JnJ_1,\dots,J_nJ1​,…,Jn​ and two machines M1,M2M_1,M_2M1​,M2​. Job JjJ_jJj​ has a processing time pj∈Np_j\in\mathbb Npj​∈N and a weight wj∈Nw_j\in\mathbb Nwj​∈N, and must be processed without interruption on one machine of its choice; all jobs are available at time 000. A schedule assigns to every job a machine and a starting time Bj∈NB_j\in\mathbb NBj​∈N; its completion time is Cj=Bj+pjC_j=B_j+p_jCj​=Bj​+pj​. A schedule is feasible if no two jobs on the same machine are processed at the same time, i.e. the intervals [Bj,Bj+pj)[B_j,B_j+p_j)[Bj​,Bj​+pj​) on each machine are pairwise disjoint. Idle time is allowed. Two criteria are considered:

Cmax⁡=max⁡jCj,∑jwjCj.C_{\max}=\max_j C_j,\qquad \sum_j w_jC_j .Cmax​=jmax​Cj​,j∑​wj​Cj​.

The problems n∣2∣I∣Cmax⁡n|2|I|C_{\max}n∣2∣I∣Cmax​ and n∣2∣I∣∑wjCjn|2|I|\sum w_jC_jn∣2∣I∣∑wj​Cj​ ask for a feasible schedule minimizing the respective criterion.

Reducibility. Following Section 2 of the report, each problem is replaced by its recognition version: given an instance and a threshold yyy, is there a feasible schedule with value ≤y\le y≤y? A problem P′P'P′ is reducible to PPP, written P′∝PP'\propto PP′∝P, if every instance of P′P'P′ can be transformed in polynomial time into an instance of PPP with the same answer. Instances are written as words over a finite alphabet, with every number in binary.

Formalization targets

Goal: Theorem 3

PARTITION∝n∣2∣I∣Cmax⁡andPARTITION∝n∣2∣I∣∑wjCj.\text{PARTITION}\propto n|2|I|C_{\max}\qquad\text{and}\qquad \text{PARTITION}\propto n|2|I|\textstyle\sum w_jC_j .PARTITION∝n∣2∣I∣Cmax​andPARTITION∝n∣2∣I∣∑wj​Cj​.

Both reductions use the same instance shape: n=tn=tn=t jobs with pj=ajp_j=a_jpj​=aj​.

Milestones

  1. Theorem 3(a), equivalence. With pj=ajp_j=a_jpj​=aj​ and y=12Ay=\tfrac12Ay=21​A: PARTITION has a solution iff some feasible schedule has Cmax⁡≤yC_{\max}\le yCmax​≤y.
  2. Ordering independence. With pj=wj=ajp_j=w_j=a_jpj​=wj​=aj​, if SSS is the set of jobs on M1M_1M1​ and each machine works without idle time from 000, then ∑wjCj=k(S)\sum w_jC_j=k(S)∑wj​Cj​=k(S) for every order of the jobs, where
k(S)=∑j,k∈S, j≤kajak+∑j,k∈T−S, j≤kajak;k(S)=\sum_{j,k\in S,\,j\le k}a_ja_k+\sum_{j,k\in T-S,\,j\le k}a_ja_k ;k(S)=j,k∈S,j≤k∑​aj​ak​+j,k∈T−S,j≤k∑​aj​ak​;

every feasible schedule with this assignment has value at least k(S)k(S)k(S). 3. The identity for k(S)k(S)k(S). With c=∑j∈Saj−12Ac=\sum_{j\in S}a_j-\tfrac12Ac=∑j∈S​aj​−21​A,

k(S)=k(T)−(∑j∈Saj)(∑j∈T−Saj)=∑j,k∈T, j≤kajak−(12A+c)(12A−c)=y+c2.k(S)=k(T)-\Big(\sum_{j\in S}a_j\Big)\Big(\sum_{j\in T-S}a_j\Big)=\sum_{j,k\in T,\,j\le k}a_ja_k-\big(\tfrac12A+c\big)\big(\tfrac12A-c\big)=y+c^2 .k(S)=k(T)−(j∈S∑​aj​)(j∈T−S∑​aj​)=j,k∈T,j≤k∑​aj​ak​−(21​A+c)(21​A−c)=y+c2.
  1. Theorem 3(b), equivalence. With pj=wj=ajp_j=w_j=a_jpj​=wj​=aj​ and y=∑j,k∈T, j≤kajak−14A2y=\sum_{j,k\in T,\,j\le k}a_ja_k-\tfrac14A^2y=∑j,k∈T,j≤k​aj​ak​−41​A2: PARTITION has a solution iff some feasible schedule has ∑wjCj≤y\sum w_jC_j\le y∑wj​Cj​≤y.

Significance

The result. Since PARTITION is NP-complete (Karp 1972), Theorem 3 shows that both problems are NP-hard with only two machines and a single operation per job; their recognition versions are NP-complete. Together with the single-machine and shop results in the rest of the report, it places the boundary of tractability in deterministic scheduling. The makespan problem P2∥Cmax⁡P2\|C_{\max}P2∥Cmax​ became a standard source problem for later hardness proofs and a standard target for pseudo-polynomial algorithms and approximation schemes. The weighted completion time result contrasts with the single-machine case, which Smith's ratio rule solves in polynomial time.

Formalizing it. The theorem is classical and fully proved on paper; the report prints the constructions and, for (b), a short calculation. To our knowledge no machine-checked proof exists. The mission produces (i) a precise model of nonpreemptive schedules on two identical machines with integer start times and idle time allowed, (ii) the two yes-instance equivalences with the paper's rational thresholds, (iii) the ordering-independence statement for pj=wjp_j=w_jpj​=wj​ behind part (b), and (iv) the polynomial-time computability of the reductions in a Turing machine model. Part (iv) is the formal content of "reducible" and is missing from the paper.

Difficulty

For part (a) the mathematics is short. The paper treats it as evident; a formal proof must still handle schedules with idle time and the case of odd AAA, where 12A\tfrac12A21​A is not an integer.

Part (b) rests on the claim that, when pj=wjp_j=w_jpj​=wj​, the value ∑wjCj\sum w_jC_j∑wj​Cj​ does not depend on the order of the jobs on a machine. For a single machine without idle time this is a symmetric double sum. A recognition-problem proof also needs the converse direction: no schedule with idle time beats the non-idle one, so every feasible schedule with assignment SSS has value at least k(S)k(S)k(S). The paper cites this rather than proving it.

The step the paper leaves out entirely is polynomiality. The constructions copy the input and compute 12A\tfrac12A21​A or ∑j≤kajak−14A2\sum_{j\le k}a_ja_k-\tfrac14A^2∑j≤k​aj​ak​−41​A2, and in a one-tape Turing machine model with an explicit polynomial time bound this needs binary arithmetic (sums, products, a floor) carried out on the tape. It also needs a decoder that rejects malformed words and lists containing a zero. This is routine in principle but long in practice.

Formalization scope

  • Model. Jobs are Fin n and machines Fin 2 (machine 0 is M1M_1M1​). Starting times are natural numbers. Section 3 of the report computes them from processing orders on nonnegative integer data, and both criteria are regular, so real starting times would give the same yes-instances. Processing times may be zero; a zero-length job occupies the empty interval. Schedules may contain idle time.
  • Criteria. "Cmax⁡≤yC_{\max}\le yCmax​≤y" is stated as Cj≤yC_j\le yCj​≤y for every job, which equals max⁡jCj≤y\max_jC_j\le ymaxj​Cj​≤y for n≥1n\ge1n≥1 and avoids a supremum. ∑wjCj\sum w_jC_j∑wj​Cj​ is a finite sum in N\mathbb NN.
  • Languages. PARTITION is the set of binary codes of lists of positive integers that admit a partition; a code of a list with a zero entry is not in the language. A target word codes nnn, the processing times (and weights, job by job), and a threshold y∈Ny\in\mathbb Ny∈N. The number of machines is fixed by the class and not coded. Every coded instance is in the class, so the language admits nothing outside it.
  • Reducibility is CookPvsNP.PolyReducible from the published definition CookPvsNP_defs (Cook's one-tape Turing machines, polynomial-time many-one reductions). The alphabet BSym and the binary code encNats are reused from the published ProjSchedTW.Complexity.Encoding (Neumann, Schwindt and Zimmermann). Its PARTITION language is not reused, because it allows zero sizes.
  • Thresholds. The milestones state the paper's thresholds 12A\tfrac12A21​A and ∑j≤kajak−14A2\sum_{j\le k}a_ja_k-\tfrac14A^2∑j≤k​aj​ak​−41​A2 as real numbers, exactly as printed. The goal's reduction must write a natural-number threshold; all schedule values are integers, so the floor of the printed threshold gives the same yes-instances.
  • Explicit readings. The equivalence of (a) is not printed; the report says on p. 14 that such equivalences are "trivial or clear" where not proved. "Only depends on the choice of SSS" is stated as two facts: equality for non-idle schedules and a lower bound for all feasible schedules. "It is easily seen (cf. Figure 1)" is the three-step identity, one equality per printed step. k(S)k(S)k(S) is defined by its closed form, and its link to schedules is a milestone.
  • Ruled out. A target language whose yes-instances are defined through PARTITION, an equivalence for some instance rather than the paper's construction, and a goal that drops polynomial-time computability would all make the goal vacuous or different. The statements here use the constructions as printed and Cook's reducibility.
  • Welcome contributions. Proofs of the four milestones; a library of polynomial-time Turing machine programs for binary arithmetic and list decoding over BSym, which every mission of this series needs and which is reusable for other reductions on the platform.

Selected references

  • P. Brucker, J. K. Lenstra, A. H. G. Rinnooy Kan, Complexity of Machine Scheduling Problems, Mathematisch Centrum Report BW 43/75, Amsterdam, 1975. https://ir.cwi.nl/pub/9725/9725D.pdf
  • J. K. Lenstra, A. H. G. Rinnooy Kan, P. Brucker, Complexity of machine scheduling problems, Annals of Discrete Mathematics 1 (1977) 343–362. https://doi.org/10.1016/S0167-5060(08)70743-X
  • J. Bruno, E. G. Coffman Jr., R. Sethi, Scheduling independent tasks to reduce mean finishing time, Communications of the ACM 17 (1974) 382–387. https://doi.org/10.1145/361011.361064
  • 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
  • S. A. Cook, The complexity of theorem-proving procedures, STOC 1971, 151–158. https://doi.org/10.1145/800157.805047
  • W. E. Smith, Various optimizers for single-stage production, Naval Research Logistics Quarterly 3 (1956) 59–66. https://doi.org/10.1002/nav.3800030106
11 thms3 active usersReviewed
Dynamic ProgrammingGraph TheoryOptimization·Captain: mikedeng1

Send-and-Split Method for Minimum-Concave-Cost Network Flows II: Subproblem Minimum Costs Are the Greatest Solution of the Send-and-Split Equations, Unique if Circulations Cost Positively (Theorem 2)Research Paper

Motivation

Many network-design and production-planning problems ask for a cheapest way to route a commodity from supply points to demand points when the cost of an arc grows less than proportionally with the amount sent: setup charges, economies of scale, and fixed-plus-linear costs all give concave arc costs. Minimizing a concave function over the flow polytope is NP-hard in general, and the classical linear-cost machinery (potentials, negative-cycle tests) no longer applies. Erickson, Monma and Veinott (Math. Oper. Res. 12 (1987)) gave the send-and-split method, a dynamic program over subsets of the demand nodes that solves the uncapacitated problem in time polynomial in the number of nodes and arcs and exponential only in the number of demand nodes. It contains as special cases the Dreyfus–Wagner recursion for Steiner trees in graphs (Networks 1 (1971)), and the paper applies it to concave-cost production, inventory and network-design problems (§6).

Timeline. Zangwill (1968) solved minimum-concave-cost flows on special networks by dynamic programming. Dreyfus and Wagner (1971) gave the subset recursion for Steiner trees with positive arc lengths. Erickson, Monma and Veinott (1987) extended the subset recursion to arbitrary uncapacitated networks with additive concave arc costs and arbitrary real demands, proved that the minimum costs of the subproblems form the greatest solution of the resulting equations (Theorem 2), and showed it is the only solution when every simple circulation has positive cost.

Setting

A network consists of a directed graph G=(N,A)G = (N, A)G=(N,A) with nodes N={0,…,n−1}N = \{0, \dots, n-1\}N={0,…,n−1} and arcs AAA, ordered pairs of distinct nodes, together with a real demand vector r=(ri)r = (r_i)r=(ri​). A preflow is a nonnegative matrix x=(xij)x = (x_{ij})x=(xij​) supported on AAA; a flow for rrr is a preflow with inflow minus outflow equal to rir_iri​ at every node. Each arc has a cost function cijc_{ij}cij​, concave on [0,∞)[0, \infty)[0,∞) with cij(0)=0c_{ij}(0) = 0cij​(0)=0, and the cost of a preflow is c(x)=∑(i,j)∈Acij(xij)c(x) = \sum_{(i,j)\in A} c_{ij}(x_{ij})c(x)=∑(i,j)∈A​cij​(xij​). A minimum-cost flow is a flow whose cost is at most that of every flow. A simple circulation is a circulation equal to some θ>0\theta > 0θ>0 on the arcs of a simple directed circuit and 000 elsewhere.

The demand nodes are D={i:ri≠0}D = \{ i : r_i \neq 0 \}D={i:ri​=0}. For ∅⊂I⊆D\emptyset \subset I \subseteq D∅⊂I⊆D let rI=∑j∈Irjr_I = \sum_{j \in I} r_jrI​=∑j∈I​rj​. The subproblem i→Ii \to Ii→I keeps the demands of the nodes in III, sets all others to zero, and subtracts rIr_IrI​ at node iii; CiIC_{iI}CiI​ is its minimum cost, +∞+\infty+∞ when it has no flow. Let AI=AA_I = AAI​=A if rI>0r_I > 0rI​>0 and the reversed arcs if rI<0r_I < 0rI​<0, with sending cost cij(rI)c_{ij}(r_I)cij​(rI​), read as cji(−rI)c_{ji}(-r_I)cji​(−rI​) when rI<0r_I < 0rI​<0. The send-and-split equations for an array C′C'C′ are

CiI′=Cj,I∖{j}′ (j∈I)if rI=0,(1)C'_{iI} = C'_{j, I\setminus\{j\}} \ (j \in I) \quad \text{if } r_I = 0, \qquad (1)CiI′​=Cj,I∖{j}′​ (j∈I)if rI​=0,(1) CiI′=min⁡(i,j)∈AI[cij(rI)+CjI′]∧BiI′if rI≠0,(2)C'_{iI} = \min_{(i,j)\in A_I} \bigl[ c_{ij}(r_I) + C'_{jI} \bigr] \wedge B'_{iI} \quad \text{if } r_I \neq 0, \qquad (2)CiI′​=(i,j)∈AI​min​[cij​(rI​)+CjI′​]∧BiI′​if rI​=0,(2)

with BiI′=min⁡∅⊂J⊂I[CiJ′+Ci,I∖J′]B'_{iI} = \min_{\emptyset\subset J\subset I} [C'_{iJ} + C'_{i,I\setminus J}]BiI′​=min∅⊂J⊂I​[CiJ′​+Ci,I∖J′​] for ∣I∣>1|I| > 1∣I∣>1, and BiI′=0B'_{iI} = 0BiI′​=0 if I={i}I = \{i\}I={i}, +∞+\infty+∞ otherwise, for ∣I∣=1|I| = 1∣I∣=1 (3).

Formalization targets

Goal: Theorem 2 (Dynamic-Programming Equations)

If there is a minimum-cost flow for rrr, then

C solves (1)–(3),CjI′≤CjI  for every +∞-or-real solution C′,C \text{ solves (1)–(3)}, \qquad C'_{jI} \le C_{jI} \ \text{ for every } +\infty\text{-or-real solution } C',C solves (1)–(3),CjI′​≤CjI​  for every +∞-or-real solution C′,

for all j∈Nj \in Nj∈N and ∅⊂I⊆D\emptyset \subset I \subseteq D∅⊂I⊆D. If moreover every simple circulation has positive cost, then every +∞+\infty+∞-or-real solution equals CCC.

Milestones

In attack order: the subproblem alternative (a minimum-cost flow or no flow, p. 640); equation (1); inequalities (4), (5), (6) (p. 641); CiI=BiIC_{iI} = B_{iI}CiI​=BiI​ for i∈Ii \in Ii∈I (p. 641); CCC satisfies (1) and (2) (p. 642); and two generic statements about Bellman's equations (2)′ for minimum-cost chains in a graph with nonnegative, respectively positive, simple circuits: the minimum chain costs form the greatest solution and are nondecreasing in the arc costs, and with positive circuits the solution is unique (p. 642).

Significance

Theorem 2 is the correctness theorem of the send-and-split method: it says that solving equations (1)–(3) by increasing ∣I∣|I|∣I∣, with a shortest-chain computation for each III, yields the true subproblem minimum costs, in particular the optimum CiDC_{iD}CiD​ of the original problem. Its uniqueness clause identifies when the equations alone determine the answer, and the counterexample on p. 641 (zero costs on a strongly connected graph) shows that the positivity hypothesis cannot simply be dropped. The same structure underlies the Steiner-tree recursion.

The theorem is proved in the paper; to our knowledge none of it is formalized. This mission supplies Lean definitions of uncapacitated concave-cost flows with extended-real minimum costs and the send-and-split equations, and poses the correctness theorem as a proof goal. The two Bellman milestones are general facts about minimum-cost chains with +∞+\infty+∞-or-real values and are reusable well beyond this paper. Related items on the platform are credited, not reused: the Dreyfus–Wagner Steiner recursion DreyfusWagner.Steiner.steinerLength_recurrence and DreyfusWagner.Steiner.optimal_decomposition (the special case of undirected positive lengths), and BellmanRouting.PolicySpace.routing_equation_unique (uniqueness of the routing equation on a complete graph with positive real times).

Difficulty

The equations (2) mix two minima: sending the whole demand rIr_IrI​ across one arc, and splitting III at the current node. Showing that CCC satisfies them requires that some optimal flow of every subproblem has a tree-like structure, which in turn rests on the existence theory for concave-cost flows (an optimum is attained at an extreme flow whose support is a forest). Showing that CCC is the greatest solution requires an induction on ∣I∣|I|∣I∣ in which, for fixed III, equation (2) is a shortest-chain system whose arc costs to an auxiliary node depend on the solution at smaller sets; comparison then needs monotonicity of minimum chain costs in the arc costs, including arcs whose cost drops from +∞+\infty+∞. The naive attempt to prove uniqueness by iterating (2) fails without the positivity hypothesis, because zero-cost circuits admit spurious solutions.

Formalization scope

Nodes are Fin n; arcs are a Finset (Fin n × Fin n) with no loops; arc costs are functions R→R\mathbb{R} \to \mathbb{R}R→R assumed concave on Set.Ici 0 with cij(0)=0c_{ij}(0) = 0cij​(0)=0 at arcs (the paper's standing assumption, stated as a hypothesis). Minimum costs, sending costs, splitting terms and solutions take values in EReal; the empty infimum is +∞+\infty+∞, as on the page.

Explicit readings of the paper's phrases:

  • "there is a minimum-cost flow" means a flow for rrr whose cost is at most that of every flow for rrr;
  • "+∞+\infty+∞ or real-valued" means ≠−∞\neq -\infty=−∞, required on every ∅⊂I⊆D\emptyset \subset I \subseteq D∅⊂I⊆D;
  • "greatest solution" is two claims: CCC is a solution, and every solution is ≤C\le C≤C entrywise;
  • "each simple circulation has positive cost" quantifies over every simple circuit and every θ>0\theta > 0θ>0;
  • "CiIC_{iI}CiI​ is finite" is rendered as CiI=c(x)C_{iI} = c(x)CiI​=c(x) for a minimum-cost flow xxx of the subproblem;
  • "minimum-cost chain" is the infimum of walk costs, attained or +∞+\infty+∞; arc costs of +∞+\infty+∞ in (2)′ are missing arcs.

The definition of CiIC_{iI}CiI​ is the infimum over flows, never the equations themselves; a formalization defining CCC by (1)–(3), or omitting the ≠−∞\neq -\infty=−∞ condition on solutions, or dropping the clause that CCC is itself a solution, would make the theorem trivial or false and is ruled out. Arrays are compared only on admissible sets. The graph structure of (2)′ is the platform definition BertsekasSPGraph. Running-time bounds, the planar refinements of §4 (Theorem 3) and the capacitated reduction of §5 are out of scope. Proofs of any milestone, and a formalization of the paper's Theorem 1 that the proofs rely on, are welcome.

Selected references

  • R. E. Erickson, C. L. Monma, A. F. Veinott, Jr., Send-and-Split Method for Minimum-Concave-Cost Network Flows, Mathematics of Operations Research 12(4), 1987, 634–664. https://doi.org/10.1287/moor.12.4.634
  • S. E. Dreyfus, R. A. Wagner, The Steiner Problem in Graphs, Networks 1(3), 1971, 195–207. https://doi.org/10.1002/net.3230010302
  • R. Bellman, On a Routing Problem, Quarterly of Applied Mathematics 16(1), 1958, 87–90. https://doi.org/10.1090/qam/102435
  • W. M. Hirsch, A. J. Hoffman, Extreme Varieties, Concave Functions, and the Fixed Charge Problem, Communications on Pure and Applied Mathematics 14(3), 1961, 355–369. https://doi.org/10.1002/cpa.3160140312
  • W. I. Zangwill, Minimum Concave Cost Flows in Certain Networks, Management Science 14(7), 1968, 429–450. https://doi.org/10.1287/mnsc.14.7.429
15 thms3 active usersReviewed
🏆Completed
OptimizationProbability·Captain: mikedeng1

Supply Chain Coordination with Contracts II: With Price-Dependent Demand the Price-Contingent Buy-Back Gives the Retailer λΠ(q, p), as Revenue Sharing Does, and Coordinates Price and QuantityTextbook

Motivation

A retailer who controls both inventory and price can respond to a supply contract in two ways. A contract that induces the right order quantity at a fixed price may change the retailer's incentive to raise or lower that price. For a one-season supply chain, Cachon's chapter compares familiar contracts under price-dependent demand and identifies a price-contingent buy-back, also called a price-discount contract, that aligns both decisions. The mission concerns §6.3 of the author's January 2003 third draft, on printed pages 33–38. Those page and equation numbers belong to the draft and may differ from the typeset chapter.

Setting

One risk-neutral supplier and one risk-neutral retailer have full information before a single selling season. The retailer chooses a nonnegative stocking quantity qqq and a retail price ppp from an admissible price set PPP; the price stays fixed during the season. Demand has a probability law DpD_pDp​ that depends on ppp. Write F(y∣p)F(y\mid p)F(y∣p) for its distribution function, S(q,p)=Ep[min⁡(q,D)]S(q,p)=\mathbb E_p[\min(q,D)]S(q,p)=Ep​[min(q,D)] for expected sales, and μ(p)=Ep[D]\mu(p)=\mathbb E_p[D]μ(p)=Ep​[D] for mean demand. Demand is nonnegative, has a finite mean and, in the chapter's regular setting, its distribution function increases with demand level and has a positive price derivative at positive demand levels. Higher prices thus lower demand in the stochastic order used by the chapter. The price set is nonempty and open so an admissible price optimum has an interior first-order condition.

The supplier's unit cost is csc_scs​, the retailer's unit procurement cost is crc_rcr​, and c=cs+crc=c_s+c_rc=cs​+cr​ is total unit cost. Their goodwill penalties for unmet demand are gsg_sgs​ and grg_rgr​, with g=gs+grg=g_s+g_rg=gs​+gr​. An unsold unit has salvage value vvv at the retailer. The integrated channel's expected profit is

Π(q,p)=(p−v+g)S(q,p)−(c−v)q−gμ(p).\Pi(q,p)=(p-v+g)S(q,p)-(c-v)q-g\mu(p).Π(q,p)=(p−v+g)S(q,p)−(c−v)q−gμ(p).

A buy-back contract charges a wholesale price wbw_bwb​ for each ordered unit and pays the retailer bbb for each unsold unit. A revenue-sharing contract charges a wholesale price wrw_rwr​ and gives the retailer a fraction ϕ\phiϕ of sales and salvage revenue. In this section the supplier offers the terms and the retailer chooses (q,p)(q,p)(q,p). The profit formulas use the chapter's convention that a positive transfer goes from retailer to supplier.

Formalization targets

The goal is the price-contingent buy-back on p. 35, with λ∈[0,1]\lambda\in[0,1]λ∈[0,1]:

b(p)=(1−λ)(p−v+g)−gs,wb(p)=λcs+(1−λ)(p+g−cr)−gs.b(p)=(1-\lambda)(p-v+g)-g_s,\qquad w_b(p)=\lambda c_s+(1-\lambda)(p+g-c_r)-g_s.b(p)=(1−λ)(p−v+g)−gs​,wb​(p)=λcs​+(1−λ)(p+g−cr​)−gs​.

In the chapter's zero-goodwill case, gr=gs=0g_r=g_s=0gr​=gs​=0, every feasible (q,p)(q,p)(q,p) then gives the retailer λΠ(q,p)\lambda\Pi(q,p)λΠ(q,p) and the supplier (1−λ)Π(q,p)(1-\lambda)\Pi(q,p)(1−λ)Π(q,p). The same retailer profit is obtained from revenue sharing with ϕ=λ\phi=\lambdaϕ=λ and wr=λ(c−v)−cr+λvw_r=\lambda(c-v)-c_r+\lambda vwr​=λ(c−v)−cr​+λv. Thus every existing maximizer (q∘,p∘)(q^\circ,p^\circ)(q∘,p∘) of the integrated profit maximizes each firm's profit under the contingent buy-back. At λ=0\lambda=0λ=0 the retailer is indifferent; at λ=1\lambda=1λ=1 the supplier is indifferent.

The milestones follow the chapter's printed claims in attack order:

  1. the integrated price condition (14), p. 34;
  2. the quantity-flexibility condition (15), p. 34: price coordination forces wq=v−crw_q=v-c_rwq​=v−cr​ or δ=0\delta=0δ=0;
  3. the fixed buy-back condition (16), p. 35: price coordination forces b=−gsb=-g_sb=−gs​ and then wb=cs−gsw_b=c_s-g_swb​=cs​−gs​;
  4. the linear price-contingent terms derived from (5)–(6), p. 35;
  5. the p. 36 profit split πr=λ(Π+gμ)−grμ\pi_r=\lambda(\Pi+g\mu)-g_r\muπr​=λ(Π+gμ)−gr​μ, πs=(1−λ)Π−(λg−gr)μ\pi_s=(1-\lambda)\Pi-(\lambda g-g_r)\muπs​=(1−λ)Π−(λg−gr​)μ, valid for all goodwill penalties as an identity;
  6. the zero-goodwill revenue-sharing price claim following (17), p. 36 (the milestone quotes its restatement in §6.3.2, p. 38);
  7. the price-contingent revenue-sharing parameters, p. 37;
  8. the quantity discount wd(q)w_d(q)wd​(q), pp. 37–38: with gs=0g_s=0gs​=0 it does not distort the price, and given p∘p^\circp∘ it makes q∘q^\circq∘ optimal for both firms.

Significance

The result identifies a contract schedule under which the same quantity-price pair is best for the integrated channel and for the two firms' reported profit functions. It also explains the relation between a buy-back whose terms vary with the chosen price and a revenue-sharing arrangement. In the zero-goodwill setting, both allocate every realized choice's expected channel profit in fixed shares. The general-goodwill identity shows the additional mean-demand terms that matter when the retailer controls price.

The source presents these results analytically; this mission asks for Lean proofs of the stated price and profit relationships. A published Prove2Me definition already supplies expected sales and mean demand for a single demand law, and the model here applies those functions to each price's law. The earlier open theorem RevShareCoord.Single.price_quantity_coordination (from Cachon and Lariviere's revenue-sharing paper) treats deterministic revenue and a simpler cost convention. It is an overlap in theme, but its statement does not include price-indexed demand, salvage value, retailer cost or the contingent buy-back terms, so it is not posed again here. The new model can support further price-dependent contract comparisons in the chapter.

Difficulty

The obstacle is that matching the retailer's quantity incentive at a fixed price can change the retailer's price incentive. The buy-back rate required by the fixed-price coordination equations depends on ppp; a fixed buy-back contract therefore does not generally align both choices. Revenue sharing with goodwill penalties has a similar price dependence. The integrated profit need not be concave or unimodal in (q,p)(q,p)(q,p), so a price first-order condition by itself does not establish coordination. The chapter assumes a finite integrated optimum exists and treats the price condition as necessary, not sufficient.

Formalization scope

Lean represents price-dependent demand as a family of probability measures on R\mathbb RR, one for each price in PPP. Each admissible law is supported on nonnegative demand, has no atom at zero and has an integrable identity function, so μ(p)\mu(p)μ(p) is a genuine finite expectation. Sales are defined by Ep[min⁡(q,D)]\mathbb E_p[\min(q,D)]Ep​[min(q,D)], using the published SupplyChainTheory_contracts definition; they are not defined by the equivalent CDF integral. The admissible decisions are exactly q≥0q\ge0q≥0 and p∈Pp\in Pp∈P. Unit costs and goodwill penalties are nonnegative, each admissible price exceeds c=cs+crc=c_s+c_rc=cs​+cr​, and v<cv<cv<c, as in the model of §6.2. The chapter's standing risk-neutrality and full-information conventions appear in the use of expected profit with the same demand laws available to both firms.

There is a material qualification. With price-dependent demand, μ(p)\mu(p)μ(p) may change with ppp. The printed first-order condition (14) and the p. 36 inference from πr=λ(Π+gμ)−grμ\pi_r=\lambda(\Pi+g\mu)-g_r\muπr​=λ(Π+gμ)−gr​μ to a joint optimum omit that effect when goodwill penalties are positive. Price first-order and optimality statements here therefore use gr=gs=0g_r=g_s=0gr​=gs​=0, a case explicitly discussed in the chapter; general-goodwill claims are limited to algebraic identities. The printed p. 36 equality of price derivatives under revenue sharing also misses its factor ϕ\phiϕ, which the formal statement restores. The contingent buy-back terms are defined by the chapter's linear formulas, not by a property that hard-codes coordination. The algebraic statement permits parameter values that may violate economic buy-back bounds such as 0≤b≤wb0\le b\le w_b0≤b≤wb​; those bounds need separate checks when selecting a contract.

Two first-order statements, (15) and (16), compare price derivatives; they take the derivative of expected sales in price as a hypothesis, and (15) also takes differentiation under the integral sign of ∫(1−δ)qqF(y∣p) dy\int_{(1-\delta)q}^{q}F(y\mid p)\,dy∫(1−δ)qq​F(y∣p)dy as a disclosed regularity hypothesis. For the quantity discount, the statement claims what the page shows, undistorted prices for each qqq and optimality of q∘q^\circq∘ given p∘p^\circp∘, not joint optimality of (q∘,p∘)(q^\circ,p^\circ)(q∘,p∘) for the retailer. The page's claim that revenue sharing with goodwill coordinates only with ϕ=gr/g\phi=g_r/gϕ=gr​/g is not stated, for the mean-demand reason above.

A trivializing formalization is ruled out: no contract term is defined by the profit identity it should satisfy, the demand family cannot be replaced by a single law, and the optimal pair is a hypothesis about the integrated profit, not a chosen witness.

Reusable contributions include the price-indexed demand family, the expected-profit model with five contract types, and the price-maximizer statements. Proofs of the first-order milestones need Fermat's interior-extremum theorem on the open price set and, for (15), positivity of an interval integral; the identities need the expectation algebra of SSS and μ\muμ, including S(0,p)=0S(0,p)=0S(0,p)=0.

Selected references

  • Gérard P. Cachon, “Supply Chain Coordination with Contracts,” in Handbooks in Operations Research and Management Science, vol. 11, Supply Chain Management, North-Holland, 2003. DOI 10.1016/S0927-0507(03)11006-7. Formalization source: author's third draft, January 2003, §6.3, pp. 33–38.
  • Fernando Bernstein and Awi Federgruen, “Decentralized supply chains with competing retailers under demand uncertainty,” Management Science 51(1), 2005 (the price-discount sharing contract; cited in the draft as a 2000 working paper). DOI 10.1287/mnsc.1040.0230
  • Nicholas C. Petruzzi and Maqbool Dada, “Pricing and the newsvendor problem: a review with extensions,” Operations Research 47(2), 1999, 183–194. DOI 10.1287/opre.47.2.183
12 thms3 active usersReviewed
🏆Completed
Graph TheoryLinear OptimizationOptimization·Captain: mikedeng1

Finding Minimum-Cost Circulations by Successive Approximation II: For Real Costs, the Strongly Polynomial Loop Reaches a Minimum-Cost Circulation After at Most m⌈log₂(2n)⌉ RefinementsResearch Paper

Why minimum-cost circulation needs a real-cost iteration bound

A minimum-cost circulation is a way to send flow around a directed network while respecting capacities and paying a cost per unit on each arc. It is a basic form of network optimization: a minimum-cost flow with prescribed supplies and demands can be reduced to a circulation problem, and the circulation formulation exposes the residual arcs on which a flow can be improved. Goldberg and Tarjan's successive-approximation method relaxes exact optimality by an error parameter and repeatedly reduces that error. Its ordinary stopping rule for integer costs depends on the largest cost. For arbitrary real costs, including irrational costs, a decreasing positive error need never cross a fixed numerical cutoff. The strongly polynomial loop in their 1987 technical report, later published in Mathematics of Operations Research instead tests the smallest error parameter appropriate to the current circulation and stops when it is zero.

This mission formalizes the number of refinement calls made by that loop. It builds on the related Goldberg–Tarjan 1988 max-flow and 1989 minimum-mean cycle-canceling series: those develop different algorithms for network flow, while the published 1989 circulation and approximate-optimality definitions provide this mission's common network model. The result here concerns successive approximation and its fixed-arc progress measure.

Network and approximate optimality

The vertex set VVV is finite, with n=∣V∣n=|V|n=∣V∣, and EEE is a symmetric set of directed arcs, with m=∣E∣m=|E|m=∣E∣. Symmetry means that (v,w)∈E(v,w)\in E(v,w)∈E brings (w,v)∈E(w,v)\in E(w,v)∈E too. Each arc has a real capacity u(v,w)u(v,w)u(v,w) and a real cost c(v,w)c(v,w)c(v,w); costs obey c(v,w)=−c(w,v)c(v,w)=-c(w,v)c(v,w)=−c(w,v). A circulation fff obeys f(v,w)≤u(v,w)f(v,w)\le u(v,w)f(v,w)≤u(v,w), f(v,w)=−f(w,v)f(v,w)=-f(w,v)f(v,w)=−f(w,v), and conservation of flow at every vertex. Its total cost is half the sum of c(v,w)f(v,w)c(v,w)f(v,w)c(v,w)f(v,w) over directed arcs, since each unordered edge appears twice. A minimum-cost circulation costs no more than any other circulation of the network.

The residual capacity is uf(v,w)=u(v,w)−f(v,w)u_f(v,w)=u(v,w)-f(v,w)uf​(v,w)=u(v,w)−f(v,w). For a price function p:V→Rp:V\to\mathbb Rp:V→R, the report writes the reduced cost as cp(v,w)=c(v,w)−p(v)+p(w)c_p(v,w)=c(v,w)-p(v)+p(w)cp​(v,w)=c(v,w)−p(v)+p(w). A circulation is ε\varepsilonε-optimal with respect to ppp when every residual arc has reduced cost at least −ε-\varepsilon−ε. It is ε\varepsilonε-optimal if some price function works, where ε≥0\varepsilon\ge0ε≥0. The tight error ε(f)\varepsilon(f)ε(f) is the least such error. A circulation is ε\varepsilonε-tight when it is ε\varepsilonε-optimal but fails to be ε′\varepsilon'ε′-optimal at every ε′<ε\varepsilon'<\varepsilonε′<ε. This includes attainment at ε\varepsilonε.

An arc is ε\varepsilonε-fixed if all ε\varepsilonε-optimal circulations carry the same flow through it. Write FεF_\varepsilonFε​ for the set of these arcs. Theorem 4.2 supplies an arc-fixing criterion from a large absolute reduced cost. Lemma 4.4 says that when a positive tight error falls by a factor of 2n2n2n, FεF_\varepsilonFε​ becomes strictly larger. Both are numbered results on printed pages 16–17 of the source report's journal counterpart.

Formalization targets

The goal is the circulation-level form of Theorem 4.5. Begin with a circulation f0f_0f0​ and a sequence f0,f1,…f_0,f_1,\ldotsf0​,f1​,… whose positive-error steps satisfy the contract of Figure 3: if ε(fk)>0\varepsilon(f_k)>0ε(fk​)>0, the next circulation is ε(fk)/2\varepsilon(f_k)/2ε(fk​)/2-optimal. With the report's standing n≥2n\ge2n≥2 and m≥n−1m\ge n-1m≥n−1, the target is

∃k≤m⌈log⁡2(2n)⌉:ε(fk)=0andfk is minimum-cost.\exists k\le m\left\lceil\log_2(2n)\right\rceil:\quad \varepsilon(f_k)=0\quad\text{and}\quad f_k\text{ is minimum-cost}.∃k≤m⌈log2​(2n)⌉:ε(fk​)=0andfk​ is minimum-cost.

The milestone list contains the already proved complementary-slackness characterization of minimum cost (Theorem 2.2), the cross-parameter arc-fixing result (Theorem 4.2), and strict growth of fixed arcs (Lemma 4.4). The report states Theorem 4.5 as O(mlog⁡n)O(m\log n)O(mlogn) iterations when each refinement decreases error by a constant factor. The target makes explicit the factor two used by the paper's refinements and the resulting finite count.

What the result establishes

The theorem gives a bound on the number of refinement calls that depends on the number of vertices and arcs, not on the magnitude, precision, or integrality of the costs. It gives an exact minimum-cost circulation rather than an arbitrary small-error approximation. This distinguishes the real-cost loop from an integer-cost stopping rule based on 1/n1/n1/n. The bound counts refinement calls only; the report analyzes the work within particular implementations separately.

The published 1989 definitions and the complementary-slackness theorem already have machine-checked status on the platform. Theorem 4.2, Lemma 4.4, and this iteration theorem are the open formalization targets. A complete development will connect the tight error to residual-cycle structure, establish that its infimum is attained for circulations, and prove that zero tight error implies minimum cost. The mission thereby makes the fixed-arc argument reusable for other circulation algorithms that lower an approximate-optimality parameter.

Why the bound needs more than repeated halving

Repeatedly dividing a positive real error by two gives errors approaching zero, but it does not by itself produce a finite step with zero error. The missing finite progress is structural: an arc must become fixed after enough reductions, and only finitely many arcs exist. Proving that fixedness is strict is delicate because it compares all circulations at two different error levels, not just two consecutive flows. Theorem 4.2 is the quantitative bridge between a price certificate for one flow and agreement of an arc across every sufficiently accurate flow. At the boundary ε=0\varepsilon=0ε=0, the printed wording of Lemma 4.4 would require F0F_0F0​ to be a proper subset of itself, so its positive-error regime must be made explicit.

Formalization scope

The Lean network uses CycleCanceling.MinMean.CircNetwork with a finite vertex type, a finite symmetric arc set, and real-valued capacities, costs, and flows. Off-arc values of these functions are irrelevant. The report assumes m≥n−1≥1m\ge n-1\ge1m≥n−1≥1 on printed page 5; the theorem binders express it as n≥2n\ge2n≥2 and m≥n−1m\ge n-1m≥n−1. The arc count is for ordered arcs, exactly as the report defines mmm. No integrality, rounding, or bounded-cost hypothesis is imposed. A feasible initial circulation is required because Figure 3 starts from one; infeasibility detection is outside this target.

The reused 1989 definitions write reduced cost as c(v,w)+p(v)−p(w)c(v,w)+p(v)-p(w)c(v,w)+p(v)−p(w). Substituting −p-p−p for ppp gives the report's c(v,w)−p(v)+p(w)c(v,w)-p(v)+p(w)c(v,w)−p(v)+p(w), so existential price certificates, ε\varepsilonε-optimality, and absolute reduced-cost conditions agree. The tight error is represented by a real infimum; proving that it is attained is part of the work. The set FεF_\varepsilonFε​ is filtered from EEE and includes only arcs whose flow is shared by all ε\varepsilonε-optimal circulations. The halving run computes its error from the current circulation; it does not take an unrelated error sequence. Once that error is zero, the loop has returned and later sequence entries are unconstrained. These choices exclude a vacuous or artificially fixed error parameter and a preselected optimal flow.

The explicit reading of the report's asymptotic count is t=⌈log⁡2(2n)⌉t=\lceil\log_2(2n)\rceilt=⌈log2​(2n)⌉ halvings per factor-2n2n2n reduction and at most mmm such blocks, giving mtm tmt refinements. This is a statement about refinement count, not a RAM-operation bound. Contributions on Theorem 4.2, the residual-cycle characterization of positive tight error, the fixed-arc strictness lemma, and the final finite counting argument all support the goal. The circulation, price, and fixed-arc infrastructure can be reused beyond this particular implementation.

Selected references

  • A. V. Goldberg and R. E. Tarjan, Finding Minimum-Cost Circulations by Successive Approximation, MIT/LCS/TM-333, July 1987; journal version in Mathematics of Operations Research 15(3), 1990, pp. 430–466. DOI: 10.1287/moor.15.3.430. The mission's page and theorem indices refer to the 1987 report.
9 thms3 active usersReviewed
🏆Completed
CombinatoricsProbabilityTheoretical Computer Science·Captain: mikedeng1

Online Stochastic Matching: Beating 1-1/e 3: No Online Algorithm Beats Expected Approximation Factor 26/27 on a 6-Cycle, and None Reaches 1 − o(1) on Disjoint 6-CyclesResearch Paper

Motivation

Online bipartite matching asks an algorithm to assign arriving requests to resources it cannot reassign later. In display advertising, the requests are page views (impressions) and the resources are advertisers who have bought a fixed number of impressions in advance; each impression must be served immediately or lost. In the adversarial model, Karp, Vazirani and Vazirani (STOC 1990) showed that the RANKING algorithm achieves a 1−1/e1 - 1/e1−1/e fraction of the optimum in expectation, and that no online algorithm does better. Advertising systems, however, have historical traffic data, which motivates the i.i.d. model: the impression types are drawn independently from a distribution that is known in advance.

Feldman, Mehta, Mirrokni and Muthukrishnan (arXiv:0905.4100, FOCS 2009) were the first to beat 1−1/e1 - 1/e1−1/e in this model, with an algorithm that achieves ≈0.67\approx 0.67≈0.67 with high probability. Their Section 3 asks the complementary question: how close to 111 can any online algorithm get when the distribution is known? Their Theorem 3 answers that the expected approximation factor of every online algorithm is bounded strictly away from 111, already on a graph with six vertices. Later work in the same model (Manshadi, Oveis Gharan and Saberi, SODA 2011, arXiv:1007.1673) sharpened both the algorithmic and the hardness side.

Setting

An instance consists of a bipartite graph G=(A,I,E)G = (A, I, E)G=(A,I,E) between a finite set AAA of advertisers and a finite set III of impression types, a distribution DDD on III, and a number nnn of arrivals. In this mission DDD is the uniform distribution on III. Online, nnn impressions arrive one at a time; their types ω(0),…,ω(n−1)\omega(0), \dots, \omega(n-1)ω(0),…,ω(n−1) are independent draws from DDD. When impression ttt arrives, the algorithm must immediately either assign it to an advertiser aaa with (a,ω(t))∈E(a, \omega(t)) \in E(a,ω(t))∈E that has not yet been used, or leave it unassigned. Each advertiser can be used at most once, and decisions are final.

A deterministic online algorithm decides what to do with arrival ttt from the types ω(0),…,ω(t)\omega(0), \dots, \omega(t)ω(0),…,ω(t) seen so far; it knows GGG, DDD and nnn, but not the future. A randomized online algorithm is a probability distribution over deterministic ones. ALG(ω)\mathrm{ALG}(\omega)ALG(ω) is the number of impressions the algorithm assigns on the arrival sequence ω\omegaω. OPT(ω)\mathrm{OPT}(\omega)OPT(ω) is the size of a maximum matching of the realization graph, which has one node per arrival ttt, joined to every advertiser adjacent to ω(t)\omega(t)ω(t): the most impressions that could have been assigned with hindsight. The expected approximation factor of an algorithm is

E ⁣[ALG(ω)OPT(ω)],\mathbb E\!\left[\frac{\mathrm{ALG}(\omega)}{\mathrm{OPT}(\omega)}\right],E[OPT(ω)ALG(ω)​],

the expectation taken over the algorithm's randomness and the arrivals.

The 6-cycle instance has A={a,b,c}A = \{a, b, c\}A={a,b,c}, I={x,y,z}I = \{x, y, z\}I={x,y,z} and E={(x,a),(y,a),(y,b),(z,b),(z,c),(x,c)}E = \{(x,a),(y,a),(y,b),(z,b),(z,c),(x,c)\}E={(x,a),(y,a),(y,b),(z,b),(z,c),(x,c)}, with the uniform distribution and n=3n = 3n=3. The family Γk\Gamma_kΓk​ consists of kkk disjoint copies of the 6-cycle, with the uniform distribution on its 3k3k3k impression types and n=3kn = 3kn=3k arrivals.

Formalization targets

Goal: Theorem 3

On the 6-cycle, every randomized online algorithm satisfies

E ⁣[ALGOPT]≤2627,\mathbb E\!\left[\frac{\mathrm{ALG}}{\mathrm{OPT}}\right] \le \frac{26}{27},E[OPTALG​]≤2726​,

and there are a constant c<1c < 1c<1 and a threshold K0K_0K0​ such that for every k≥K0k \ge K_0k≥K0​ and every randomized online algorithm on Γk\Gamma_kΓk​,

E ⁣[ALGOPT]≤c.\mathbb E\!\left[\frac{\mathrm{ALG}}{\mathrm{OPT}}\right] \le c .E[OPTALG​]≤c.

The second part is the paper's "there exists a family of instances with n→∞n \to \inftyn→∞ for which no algorithm can achieve an expected approximation of 1−o(1)1 - o(1)1−o(1)", stated on the paper's own family. It leaves ccc unspecified: Appendix B estimates c≈0.9898c \approx 0.9898c≈0.9898 through approximate counts, and a sharper constant would not invalidate the goal.

Milestones

  1. The (x,y,y)(x, y, y)(x,y,y) scenario (§3, p. 4). For every deterministic online algorithm on the 6-cycle and every type uuu of the first arrival there is a type vvv with ALG(u,v,v)≤2\mathrm{ALG}(u, v, v) \le 2ALG(u,v,v)≤2 and OPT(u,v,v)=3\mathrm{OPT}(u, v, v) = 3OPT(u,v,v)=3.
  2. Theorem 3, first sentence (p. 4). The bound 26/2726/2726/27 on the 6-cycle, for every randomized online algorithm.

Significance

Theorem 3 sets the ceiling against which algorithms in the i.i.d. model are measured. It rules out an online algorithm with expected factor arbitrarily close to 111, even though the distribution is known and the instance is tiny, so a constant-factor gap between online and offline matching is intrinsic to the model and not an artefact of adversarial arrivals. The paper's positive results (1−1/e1 - 1/e1−1/e for the Suggested Matching algorithm, ≈0.67\approx 0.67≈0.67 for Two Suggested Matchings) sit between 1−1/e1 - 1/e1−1/e and this ceiling.

The single-instance bound has a short counting proof. The family statement is argued in the paper only in outline: Appendix B approximates the fractions of copies receiving 111, 222, 333 or more impressions, assumes the most favourable outcome on each, and reports the resulting ratio as approximately 0.98980.98980.9898. A machine-checked proof of the family statement would turn that sketch into a theorem with an explicit constant. To our knowledge neither part has been formalized before.

Difficulty

The single-cycle bound reduces to a finite check, but the paper's "without loss of generality (from the symmetry of the 6-cycle)" hides the cases the algorithm can choose: assigning the first impression to either neighbour, or not assigning it at all. Each case needs its own bad continuation. The passage from deterministic to randomized algorithms is an averaging step.

The family bound is harder. On Γk\Gamma_kΓk​ the algorithm sees all arrivals in all copies and may coordinate its decisions across copies, so the per-copy loss of the single cycle does not transfer by independence. Moreover the target is the expectation of a ratio, E[ALG/OPT]\mathbb E[\mathrm{ALG}/\mathrm{OPT}]E[ALG/OPT], not a ratio of expectations: a bound on the expected loss must be combined with concentration of the number of copies that receive exactly three impressions, and with a lower bound on OPT\mathrm{OPT}OPT that holds with high probability. The approximations "≃3/e3\simeq 3/e^3≃3/e3, 9/(2e3)9/(2e^3)9/(2e3), 27/(6e3)27/(6e^3)27/(6e3)" of Appendix B have unquantified errors and cannot be used as they stand.

Formalization scope

The model is formalized for general finite AAA and III with uniform arrivals. Arrival sequences are functions Fin n → I. A deterministic online algorithm is a function that receives the time ttt, the prefix of the first ttt types (Fin t → I) and the current type, and returns an advertiser or none; it cannot read later arrivals. A proposal of a non-adjacent or already used advertiser leaves the impression unassigned, so the encoding covers all online algorithms, including ones that skip an impression while a neighbour is free. A randomized online algorithm is a probability distribution (PMF) on the finite type of deterministic algorithms; by Kuhn's theorem this is equivalent to fresh random choices at each step. OPT\mathrm{OPT}OPT is the maximum size of an injective, edge-respecting partial assignment of arrivals to advertisers. The expected approximation factor is a finite average over all ∣I∣n|I|^n∣I∣n arrival sequences, weighted by the algorithm distribution.

The explicit instantiations of the paper's asymptotic wording are as follows:

  • "no algorithm can achieve an expected approximation of 1−o(1)1 - o(1)1−o(1)" becomes ∃ c<1, ∃K0, ∀k≥K0, ∀P: E[ALG/OPT]≤c\exists\, c < 1,\ \exists K_0,\ \forall k \ge K_0,\ \forall P:\ \mathbb E[\mathrm{ALG}/\mathrm{OPT}] \le c∃c<1, ∃K0​, ∀k≥K0​, ∀P: E[ALG/OPT]≤c on Γk\Gamma_kΓk​, with n=3kn = 3kn=3k tied to kkk, and with ccc and K0K_0K0​ chosen before kkk and before the algorithm.
  • The paper's constant 0.98980.98980.9898 is not part of the statement.

Lean's division sets x/0=0x/0 = 0x/0=0. A formalization of the form "there is an instance on which every algorithm has expected factor at most 26/2726/2726/27" would be satisfied trivially by a graph without edges, where OPT=0\mathrm{OPT} = 0OPT=0; the statements here are on the paper's explicit instances, where every impression type has an adjacent advertiser and OPT≥1\mathrm{OPT} \ge 1OPT≥1 on every arrival sequence.

A complete development needs finite case analysis on runs of online algorithms, averaging over mixed strategies, and, for the family, concentration inequalities for occupancy counts (Azuma or McDiarmid, both available on the platform) together with bounds on maximum matchings of disjoint unions. The online-algorithm model and the averaging lemmas are reusable for other lower bounds in the i.i.d. model. Proofs of either milestone, and independent proofs of the family statement with any explicit c<1c < 1c<1, are welcome.

Selected references

  • J. Feldman, A. Mehta, V. Mirrokni, S. Muthukrishnan, Online Stochastic Matching: Beating 1-1/e, FOCS 2009; arXiv:0905.4100v1. https://arxiv.org/abs/0905.4100
  • R. M. Karp, U. V. Vazirani, V. V. Vazirani, An optimal algorithm for on-line bipartite matching, STOC 1990. https://doi.org/10.1145/100216.100262
  • V. H. Manshadi, S. Oveis Gharan, A. Saberi, Online Stochastic Matching: Online Actions Based on Offline Statistics, SODA 2011; arXiv:1007.1673. https://arxiv.org/abs/1007.1673
5 thms3 active usersReviewed
PreviousPage 13 of 89Next

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