Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Equation (12) has a solution (corrected: c>0c>0c>0 or Ξ\XiΞ attains its infimum)

Proved
Sherbrooke.cond12_exists

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

discrete-convexityinventorymarginal-analysismetric

Fix one item with cost c≥0c\ge0c≥0 and Ξ:N→R\Xi:\mathbb N\to\mathbb RΞ:N→R nonincreasing and bounded below, and let Ξ′\Xi'Ξ′ be the convexified function. Assume that c>0c>0c>0 or that Ξ\XiΞ attains its infimum (some m0m_0m0​ has Ξ(m0)≤Ξ(k)\Xi(m_0)\le\Xi(k)Ξ(m0​)≤Ξ(k) for all kkk). Then some mˉ∈N\bar m\in\mathbb Nmˉ∈N satisfies condition (12):

c+Ξ′(mˉ+1)−Ξ′(mˉ)≥0,c+Ξ′(mˉ)−Ξ′(mˉ−1)<0(Ξ′(−1)=∞).c+\Xi'(\bar m+1)-\Xi'(\bar m)\ge0,\qquad c+\Xi'(\bar m)-\Xi'(\bar m-1)<0\quad(\Xi'(-1)=\infty).c+Ξ′(mˉ+1)−Ξ′(mˉ)≥0,c+Ξ′(mˉ)−Ξ′(mˉ−1)<0(Ξ′(−1)=∞).

This is the existence half of the Appendix Theorem's claim that (12) determines the optimal stock level.

Differences from the source:

  • correction: (12) has at least one solution for any nonnegative value of c_i → hypothesis 0 < c ∨ ∃ m₀, ∀ k, Ξ m₀ ≤ Ξ k added; reason: as printed it is false: c = 0 and Ξ(m) = 1/(m + 1), which is convex so Ξ′ = Ξ, give Ξ′(m + 1) − Ξ′(m) < 0 for every m, so the first line of (12) never holds
  • encoding: one item i with cost c_i and function Ξ_i → c : ℝ, Ξ : ℕ → ℝ, stock level m : ℕ; reason: the proof treats a single item ('we can disregard the summation sign')
  • reading: monotonic decreasing → Antitone (nonincreasing); reason: the more general of the two readings; p. 136 justifies monotonicity only as 'cannot exceed'
  • encoding: Ξ_i′ defined on the boundary of the convex hull of Ξ_i with Ξ_i′ ≤ Ξ_i → lowerHull Ξ m, the supremum of a m + b over all affine minorants k ↦ a k + b of Ξ on ℕ; reason: on ℕ this is the same function: the lower boundary of the convex hull of the points (k, Ξ(k)), equal to the greatest discretely convex minorant
  • encoding: finite lower bound → BddBelow (Set.range Ξ); reason: same instances
  • reading: Ξ′(m̄_i − 1) in the second line of (12) → Ξ_i′(m̄_i − 1), the convexified function of the same item; reason: the printed Ξ′ lacks the item index; Ξ_i′ is the only convexified function the line can refer to
  • encoding: Define Ξ_i′(−1) = ∞ → the disjunct m = 0 in the second line of (12); reason: at m = 0 the line reads c + Ξ′(0) − ∞ < 0, which always holds; under m ≠ 0 the subtraction m − 1 is honest
Preamble
import Mathlib
import Definitions.Def_Sherbrooke_lowerHull
import Definitions.Def_Sherbrooke_Cond12
Formal statement
namespace Sherbrooke

/-- **M5: equation (12) has a solution (corrected).** Sherbrooke, *METRIC*, Operations Research
16 (1968), Appendix, proof of the Theorem, p. 140: "Define Ξ_i′(−1) = ∞. We use the fact that a
monotonically decreasing sequence bounded below has a limit. This shows that equation (12) has at
least one solution for any nonnegative value of c_i."

If `Ξ : ℕ → ℝ` is nonincreasing and bounded below, `c ≥ 0`, and either `c > 0` or `Ξ` attains
its infimum, then some `m ∈ ℕ` satisfies condition (12).

**Formalization Note (correction).** As printed ("for any nonnegative value of c_i") the claim is
false: for `c = 0` and `Ξ(m) = 1/(m+1)`, which is convex so `Ξ′ = Ξ`, the first line of (12)
needs `Ξ′(m+1) − Ξ′(m) ≥ 0`, which never holds. The added hypothesis
`0 < c ∨ ∃ m₀, ∀ k, Ξ m₀ ≤ Ξ k` is exactly what excludes this case. -/
theorem cond12_exists (c : ℝ) (Ξ : ℕ → ℝ) (hanti : Antitone Ξ)
    (hbdd : BddBelow (Set.range Ξ)) (hc : 0 ≤ c)
    (hcorr : 0 < c ∨ ∃ m₀ : ℕ, ∀ k : ℕ, Ξ m₀ ≤ Ξ k) :
    ∃ m : ℕ, Cond12 c Ξ m := by sorry

end Sherbrooke
Source
Sherbrooke, METRIC: A Multi-Echelon Technique for Recoverable Item Control, Operations Research 16 (1968), doi:10.1287/opre.16.1.122, Appendix, proof of the Theorem, p. 140 ("Define Ξ_i′(−1) = ∞. ... This shows that equation (12) has at least one solution for any nonnegative value of c_i.")

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