Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

THEOREM 1(b): if (6) holds then i_1 = l(j), an optimal last setup period for the horizon j

Proved
FedergruenTzur.MinPred.theorem1b_first_optimal

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

dynamic-programminglot-sizinglower-envelopep2o-batch-pfp1ap2o-gran-per-chapterp2o-plan-paperp2o-v1

In the dynamic lot size model with costs given by the recursion (2), fix j≥1j \ge 1j≥1 and let S={i1,…,ir}S = \{i_1, \dots, i_r\}S={i1​,…,ir​} with Ω(j)⊆S⊆{1,…,j}\Omega(j) \subseteq S \subseteq \{1, \dots, j\}Ω(j)⊆S⊆{1,…,j} be ranked in nonascending order of C~\tilde CC~-values, ties in ascending order of period index, with critical values g(1)=D(j)g(1) = D(j)g(1)=D(j) and g(l)=G(il,il−1)g(l) = G(i_l, i_{l-1})g(l)=G(il​,il−1​). If condition (6), g(1)<g(2)<⋯<g(r)<∞g(1) < g(2) < \dots < g(r) < \inftyg(1)<g(2)<⋯<g(r)<∞, holds, then the first element i1i_1i1​ is an optimal last setup period for the horizon jjj:

F(i1,j)=F(j).F(i_1, j) = F(j).F(i1​,j)=F(j).

This is the paper's "i1=l(j)i_1 = l(j)i1​=l(j)", where l(j)l(j)l(j) denotes an optimal period for the last setup when minimizing the cost of the first jjj periods (§2, p. 914). It means the forward algorithm reads off l(j)l(j)l(j) and F(j)F(j)F(j) from the head of its list in constant time.

Formalization Note. The conclusion is stated as: the list has a first entry i1i_1i1​ and F(i1,j)=F(j)F(i_1, j) = F(j)F(i1​,j)=F(j), so it is not vacuous on an empty list. Ω(j)\Omega(j)Ω(j) is taken in the open-interval reading; FFF is defined by (2).

Preamble
import Mathlib
import Definitions.Def_FedergruenTzur_MinPred_Omega
import Definitions.Def_FedergruenTzur_MinPred_RankedList
Formal statement
namespace FedergruenTzur.MinPred

open LotSizing

/-- THEOREM 1(b), p. 915: if a ranked list `L = [i_1, …, i_r]` of periods in `{1, …, j}` contains
`Ω(j)` and satisfies (6), then its first entry `i_1` is an optimal last setup period for the horizon
`j`, i.e. `F(i_1, j) = F(j)` (the paper's `i_1 = l(j)`). -/
theorem theorem1b_first_optimal (P : LotSizing) (j : ℕ) (hj : 1 ≤ j) (L : List ℕ)
    (hL : P.IsRanked j L) (hΩ : P.Omega j ⊆ L.toFinset) (h6 : P.Cond6 j L) :
    ∃ i₁, L.head? = some i₁ ∧ P.Flast i₁ j = P.Fopt j := by sorry

end FedergruenTzur.MinPred
Source
Federgruen and Tzur, A Simple Forward Algorithm to Solve General Dynamic Lot Sizing Models with n Periods in O(n log n) or O(n) Time, Management Science 37(8), 1991, p. 915, THEOREM 1(b); l(j) as defined on p. 914, §2, first paragraph
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

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