Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — if every GcnG_{cn}Gcn​ is in C(Kc)C(K_c)C(Kc​) and Yn(x)≠∅Y_n(x) \neq \emptysetYn​(x)=∅, a generalized (s,S)(s,S)(s,S) policy is optimal in period nnn

Proved
PorteusSS.generalized_sS_of_CK

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-programminginventoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1ss-policy

Consider the inventory model of §§II–III under its standing assumptions (concave increasing ordering cost ccc with c(0)=0c(0) = 0c(0)=0 and limit pairs (c0,K0)(c_0,K_0)(c0​,K0​), (c∞,K∞)(c_\infty,K_\infty)(c∞​,K∞​); 0≤α≤10 \le \alpha \le 10≤α≤1; one-sided Pólya demand density φ\varphiφ; PF-integrable, bounded-below holding-and-shortage cost mmm). Fix a period n≥1n \ge 1n≥1 and suppose

  1. Gκn=κ⋅+hn∈C(Kκ)G_{\kappa n} = \kappa\cdot + h_n \in C(K_\kappa)Gκn​=κ⋅+hn​∈C(Kκ​) for every slope κ∈C\kappa \in Cκ∈C, and
  2. Yn(x)Y_n(x)Yn​(x) is nonempty for every x∈Rx \in \mathbb Rx∈R.

Then a generalized (s,S)(s,S)(s,S) policy is optimal in period nnn: there exist s,S∈Rs, S \in \mathbb Rs,S∈R and a generalized (s,S)(s,S)(s,S) policy yyy with

y(x)∈Yn(x)for all x∈R.y(x) \in Y_n(x) \quad \text{for all } x \in \mathbb R .y(x)∈Yn​(x)for all x∈R.

This theorem converts the functional property of the single-period functions GκnG_{\kappa n}Gκn​ into the structure of the optimal ordering rule; Lemma 3 supplies its hypotheses.

Formalization Note. GκnG_{\kappa n}Gκn​ is defined by eq. (7), κy+hn(y)\kappa y + h_n(y)κy+hn​(y). The standing assumptions on α\alphaα, φ\varphiφ and mmm are included because they are the paper's standing assumptions for every statement about the model; the paper's proof of Theorem 2 uses only those on ccc.

Preamble
import Mathlib
import Definitions.Def_PorteusSS_Functions
import Definitions.Def_PorteusSS_OrderingCost
import Definitions.Def_PorteusSS_Model

open MeasureTheory Filter Topology Set
Formal statement
namespace PorteusSS

/-- Theorem 2 (p. 415). In the model of §§II–III, if for a period `n ≥ 1` every
`G_{κ n} = κ· + h_n` (`κ ∈ C`) lies in `C(K_κ)` and `Y_n(x)` is nonempty for every `x`,
then a generalized `(s, S)` policy is optimal in period `n`. -/
theorem generalized_sS_of_CK (c m φ f0 : ℝ → ℝ) (α c0 K0 cInf KInf : ℝ)
    (hmodel : IsModel c m φ α c0 K0 cInf KInf) (n : ℕ) (hn : 1 ≤ n)
    (hG : ∀ κ ∈ slopeSet c, CK (Kc c κ) (Gfn c m φ f0 α κ n))
    (hY : ∀ x : ℝ, (Yset c m φ f0 α n x).Nonempty) :
    ∃ s S : ℝ, ∃ pol : ℝ → ℝ, IsGenSS pol s S ∧ ∀ x : ℝ, pol x ∈ Yset c m φ f0 α n x := by sorry

end PorteusSS
Source
Porteus, On the Optimality of Generalized (s, S) Policies, Management Science 17(7):411–426 (1971), p. 415, Theorem 2
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Data. Functions c,m,φ,f0:R→Rc,m,\varphi,f_0:\mathbb R\to\mathbb Rc,m,φ,f0​:R→R and reals α,c0,K0,c∞,K∞\alpha,c_0,K_0,c_\infty,K_\inftyα,c0​,K0​,c∞​,K∞​ satisfying the model assumptions:

  • ccc is concave and nondecreasing on [0,∞)[0,\infty)[0,∞) with c(0)=0c(0)=0c(0)=0.
  • C2(z)C_2(z)C2​(z) is eventually inside every neighbourhood of (c0,K0)(c_0,K_0)(c0​,K0​) as z↓0z\downarrow0z↓0, and of (c∞,K∞)(c_\infty,K_\infty)(c∞​,K∞​) as z→∞z\to\inftyz→∞. Here C2(z)C_2(z)C2​(z) is the set of lines κy+K\kappa y+Kκy+K lying on or above ccc on [0,∞)[0,\infty)[0,∞), passing through (z,c(z))(z,c(z))(z,c(z)), with minimal intercept KKK.
  • 0≤α≤10\le\alpha\le10≤α≤1.
  • φ\varphiφ is a one-sided Pólya density.
  • mmm is PF-integrable and bounded below.

No hypothesis is placed on f0f_0f0​.

Value functions. f0f_0f0​ is given, and

fj+1(x)=inf⁡y≥x{c(y−x)+h[fj](y)},h[g]=m∗φ+α (g∗φ).f_{j+1}(x)=\inf_{y\ge x}\{c(y-x)+h[f_j](y)\},\qquad h[g]=m*\varphi+\alpha\,(g*\varphi).fj+1​(x)=y≥xinf​{c(y−x)+h[fj​](y)},h[g]=m∗φ+α(g∗φ).

The infimum is the real infimum, which is 000 when the values are unbounded below. Convolutions are 000 where not integrable. For the fixed period, hn=h[fn−1]h_n=h[f_{n-1}]hn​=h[fn−1​] and Gκn(y)=κy+hn(y)G_{\kappa n}(y)=\kappa y+h_n(y)Gκn​(y)=κy+hn​(y). The set Yn(x)Y_n(x)Yn​(x) consists of the S≥xS\ge xS≥x with c(S−x)+hn(S)≤c(y−x)+hn(y)c(S-x)+h_n(S)\le c(y-x)+h_n(y)c(S−x)+hn​(S)≤c(y−x)+hn​(y) for all y≥xy\ge xy≥x.

Hypotheses.

  • n≥1n\ge1n≥1.
  • For every κ∈C\kappa\in Cκ∈C, Gκn∈C(Kκ)G_{\kappa n}\in C(K_\kappa)Gκn​∈C(Kκ​). Here CCC is the set of κ\kappaκ with (κ,K)∈C2(z)(\kappa,K)\in C_2(z)(κ,K)∈C2​(z) for some K≥0K\ge0K≥0 and z>0z>0z>0. KκK_\kappaKκ​ is the real infimum of {K:(κ,K)∈C2(z) for some z>0}\{K:(\kappa,K)\in C_2(z)\text{ for some } z>0\}{K:(κ,K)∈C2​(z) for some z>0}, defaulting to 000 if that set is unbounded below.
  • Yn(x)≠∅Y_n(x)\neq\emptysetYn​(x)=∅ for every x∈Rx\in\mathbb Rx∈R.

Conclusion. There exist reals s,Ss,Ss,S and a function π:R→R\pi:\mathbb R\to\mathbb Rπ:R→R such that:

  • π(x)∈Yn(x)\pi(x)\in Y_n(x)π(x)∈Yn​(x) for every xxx;
  • π(x)=x\pi(x)=xπ(x)=x for x≥sx\ge sx≥s;
  • π(x)≤π(z)\pi(x)\le\pi(z)π(x)≤π(z) and S≤π(x)S\le\pi(x)S≤π(x) whenever z<x<sz<x<sz<x<s;
  • s≤Ss\le Ss≤S.

Degenerate cases:

  • If CCC is empty, the hypothesis on GκnG_{\kappa n}Gκn​ is vacuous.
  • hnh_nhn​ may involve convolutions that took the default value 000, and a previous fn−1f_{n-1}fn−1​ whose infimum defaulted to 000. The conclusion concerns minimizers of the objective as defined, defaults included.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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