Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Section 1 — for nondecreasing losses, f(n, T) with T = Σ max{a_j, b_j} is the minimum total loss

Proved
LawlerMoore.FunctionalEq.solved_by_f_n_T

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

dynamic-programmingfunctional-equationp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1scheduling

Consider nnn jobs performed one at a time in the fixed order 1,…,n1, \dots, n1,…,n. Job jjj takes aja_jaj​ time units and incurs loss αj(t)\alpha_j(t)αj​(t) if completed at time ttt in the first mode, or bjb_jbj​ units and loss βj(t)\beta_j(t)βj​(t) in the other. Let fff be defined by Eq. (1). Suppose every αj\alpha_jαj​ and every βj\beta_jβj​ is monotone nondecreasing, and put

T=∑j=1nmax⁡{aj,bj}.T = \sum_{j=1}^{n} \max\{a_j, b_j\}.T=j=1∑n​max{aj​,bj​}.

Then f(n,T)f(n, T)f(n,T) solves the problem "what assignment of modes to jobs and what timing of the jobs will minimize the total loss?":

  1. f(n,T)f(n, T)f(n,T) is finite;
  2. f(n,T)≤L(m,c)f(n, T) \le L(m, c)f(n,T)≤L(m,c) for every mode assignment mmm and every feasible timing ccc of all nnn jobs (no deadline, idle time allowed);
  3. some mode assignment and feasible timing attain L(m,c)=f(n,T)L(m, c) = f(n, T)L(m,c)=f(n,T).

This is the paper's justification that the whole problem is solved by one table of (1), of size n×Tn \times Tn×T.

Formalization Note "The problem is solved by the calculation of f(n,T)f(n, T)f(n,T)" is read as items 1–3: f(n,T)f(n,T)f(n,T) is the attained minimum total loss over all timings, with no bound on the completion times. Monotone nondecreasing is Monotone on the natural-number completion time. The hypothesis is needed: one job with a=b=1a = b = 1a=b=1, α(1)=5\alpha(1) = 5α(1)=5, α(t)=0\alpha(t) = 0α(t)=0 for t≥2t \ge 2t≥2 and β≡5\beta \equiv 5β≡5 has optimum 000 at c=2>T=1c = 2 > T = 1c=2>T=1.

Preamble
import Mathlib
import Definitions.Def_LawlerMoore_FunctionalEq_Problem
import Definitions.Def_LawlerMoore_FunctionalEq_Recursion
Formal statement
namespace LawlerMoore.FunctionalEq

/-- Section 1, p. 77 (after Eq. (1)): if every loss function `α_j`, `β_j` is monotone
nondecreasing in the completion time, then the problem is solved by `f(n, T)` with
`T = ∑_{j=1}^n max {a_j, b_j}`: `f(n, T)` is finite, it is at most the total loss of every
mode assignment with every feasible timing of all `n` jobs (no deadline), and some mode
assignment with some feasible timing attains it. -/
theorem solved_by_f_n_T {n : ℕ} (a b : Fin n → ℕ) (α β : Fin n → ℕ → ℝ)
    (hα : ∀ j, Monotone (α j)) (hβ : ∀ j, Monotone (β j)) :
    f a b α β n ((∑ j, max (a j) (b j) : ℕ) : ℤ) ≠ ⊤ ∧
      (∀ (m : Fin n → Bool) (c : Fin n → ℕ), IsFeasible a b m c n →
        f a b α β n ((∑ j, max (a j) (b j) : ℕ) : ℤ) ≤ ((totalLoss α β m c n : ℝ) : WithTop ℝ)) ∧
      ∃ (m : Fin n → Bool) (c : Fin n → ℕ), IsFeasible a b m c n ∧
        ((totalLoss α β m c n : ℝ) : WithTop ℝ) = f a b α β n ((∑ j, max (a j) (b j) : ℕ) : ℤ) := by sorry

end LawlerMoore.FunctionalEq
Source
Lawler, Moore, A Functional Equation and Its Application to Resource Allocation and Sequencing Problems, Management Sci. 16 (1969), p. 77, Section 1 (after Eq. (1))
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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