Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 3, p. 22 — by monotone substitution and (26), ∫_{r_n}^∞ (β̂′_t − β̂_t) dt ≤ K Δ_n(Alg)

Proved
GenCostSched.GFCS.beta_increment_le

by mikedeng1 · Oct 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

dual-fittingmonotone-substituteonline-schedulingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1

At the arrival of job nnn at s=rns=r_ns=rn​, let AAA be the alive old jobs (released no later than sss, positive lengths ρj\rho_jρj​), and let job nnn have rn=sr_n=srn​=s and length vnv_nvn​. Assume the standing assumptions of §II and twice differentiability. Let K≥1K\ge 1K≥1 satisfy (t−rℓ)gℓ′′(t)≤(K−1)gℓ′(t)(t-r_\ell)g''_\ell(t)\le(K-1)g'_\ell(t)(t−rℓ​)gℓ′′​(t)≤(K−1)gℓ′​(t) for all ℓ\ellℓ and t≥rℓt\ge r_\ellt≥rℓ​. Let xxx be an optimal integral schedule of RNF(rn)\mathrm{RNF}(r_n)RNF(rn​) (jobs AAA) and x′x'x′ one of RNF′(rn)\mathrm{RNF}'(r_n)RNF′(rn​) (jobs A∪{n}A\cup\{n\}A∪{n}). Assume that x′x'x′ postpones xxx on the old jobs, as the monotone substitute property provides: for each ℓ∈A\ell\in Aℓ∈A and u≥su\ge su≥s, x′x'x′ has processed at most as much of ℓ\ellℓ by time uuu as xxx. Write β^,β^′\hat\beta,\hat\beta'β^​,β^​′ for the bounds (20) of xxx and x′x'x′, and

Δn(Alg)=cost(x′)−cost(x)=RNF′(rn)−RNF(rn)\Delta_n(\mathrm{Alg})=\mathrm{cost}(x')-\mathrm{cost}(x)=\mathrm{RNF}'(r_n)-\mathrm{RNF}(r_n)Δn​(Alg)=cost(x′)−cost(x)=RNF′(rn​)−RNF(rn​)

(Definition 4). Then

∫rn∞(β^t′−β^t) dt  ≤  K Δn(Alg).\int_{r_n}^\infty\big(\hat\beta'_t-\hat\beta_t\big)\,dt\;\le\;K\,\Delta_n(\mathrm{Alg}).∫rn​∞​(β^​t′​−β^​t​)dt≤KΔn​(Alg).

This is the step of Theorem 3's proof where monotone substitution and the curvature constant KKK enter. Combined with (22), it gives Δn(Alg)≤1+ϵ1+ϵ−KΔs(D)\Delta_n(\mathrm{Alg})\le\frac{1+\epsilon}{1+\epsilon-K}\Delta_s(D)Δn​(Alg)≤1+ϵ−K1+ϵ​Δs​(D).

Formalization Note. Costs are finite for integral schedules, which finish in finite time, so they enter as real numbers (toReal).

Differences from the source:

  • reading: 'by monotone substitute property, adding a new job can only postpone the processing intervals of the alive jobs' → the hypothesis postpones s A x x′ (cumulative-processing dominance) on the two optimal integral schedules; reason: the reading of Definition 5 used throughout; the statement isolates the step of the proof that uses it
  • generalization: K = 1 + sup_{ℓ, t ≥ r_ℓ} (t − r_ℓ) g″_ℓ(t)/g′_ℓ(t) → any real K with K ≥ 1 and (t − r_ℓ) g″_ℓ(t) ≤ (K − 1) g′_ℓ(t) for all ℓ and t ≥ r_ℓ (CurvBound K); reason: when g′ > 0 and the supremum is finite, the paper's K satisfies CurvBound and is the least such K, so the statement specializes to the paper's; the multiplicative form avoids division by g′ = 0 and an sSup of an unbounded set
  • generalization: the instance RNF(r_n)/RNF′(r_n) met by Algorithm 2 at the arrival of job n (alive jobs A(r_n), residual lengths) → every identical-release instance GFCS(s) of jobs A with r_j ≤ s and positive lengths ρ_j, plus a new job k with r_k = s and length v_k; reason: every arrival of Algorithm 2 is such an instance (A = A(r_n), ρ = residual lengths), so the statement specializes to the paper's
  • encoding: Δ_n(Alg) = RNF′(r_n) − RNF(r_n) → cost(x′) − cost(x) with x, x′ the optimal integral schedules, as real numbers; reason: optimal integral schedules attain RNF and RNF′; their costs are finite
  • encoding: β̂_t = Σ_ℓ Σ_d [g_ℓ(C_ℓ^{2d}) − g_ℓ(C_ℓ^{2d−1})] over the processing intervals after t → β̂_t = Σ_ℓ ∫_{(t,∞)} g′_ℓ(τ) x_ℓ(τ) dτ (betaHat); reason: equal by the fundamental theorem of calculus on each interval, as in (23), p. 21; the integral form is defined for every measurable schedule
  • encoding: the derivative g′_j of g_j on [r_j, ∞) → a given function g' j tied to g j by HasDerivWithinAt (g j) (g' j t) (Ici (r j)) t for t ≥ r_j (JobStanding); reason: g_j is defined and differentiable only on [r_j, ∞) (p. 5), so its derivative there is the within-derivative; supplying it as data changes no instance
  • encoding: g″_ℓ in K (Theorem 3), so g_ℓ twice differentiable on [r_ℓ, ∞) → a given function g'' ℓ with HasDerivWithinAt (g' ℓ) (g'' ℓ t) (Ici (r ℓ)) t for t ≥ r_ℓ (TwiceDiff); reason: K is defined through g″, so the theorem presupposes it on [r_ℓ, ∞); supplying it as data changes no instance
Preamble
import Mathlib
import Definitions.Def_GenCostSched_GFCS_Model

open MeasureTheory Set
open scoped ENNReal
Formal statement
namespace GenCostSched.GFCS

/-- The bound derived from (26) (proof of Theorem 3, p. 22): when the new job `k` arrives at
`s = r_k` and the new optimal integral schedule `x′` postpones the old one `x` on the alive
jobs, `∫_s^∞ (β̂′_t − β̂_t) dt ≤ K Δ`, with `Δ = cost(x′) − cost(x) = RNF′ − RNF`. -/
theorem beta_increment_le {m : ℕ} (I : Instance m) (hI : ∀ j, I.JobStanding j)
    (h2 : I.TwiceDiff) (K : ℝ) (hK : I.CurvBound K) (s : ℝ) (A : Finset (Fin m))
    (ρ : Fin m → ℝ) (k : Fin m) (hk : k ∉ A) (hA : ∀ j ∈ A, I.r j ≤ s) (hrk : I.r k = s)
    (hρ : ∀ j ∈ A, 0 < ρ j) (hρk : ρ k = I.v k) (x x' : Fin m → ℝ → ℝ)
    (hx : IsOptIntegral I.g s A ρ x) (hx' : IsOptIntegral I.g s (insert k A) ρ x')
    (hpost : postpones s A x x') :
    ∫ t in Ici s, (betaHat I.g' x' t - betaHat I.g' x t) ≤
      K * ((offCost I.g x').toReal - (offCost I.g x).toReal) := by sorry

end GenCostSched.GFCS
Source
Etesami, An Optimal Control Framework for Online Job Scheduling with General Cost Functions, arXiv:1906.02644v3, p. 22, proof of Theorem 3, (24)–(26) and the paragraph after (26)
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me