Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Proposition 1, p. A5 — optimal static flexible capacity Q̄_F(c_F) and profit π̄_F(c_F), branches p ≥ 2c_F and p < 2c_F

Proved
FlexLearning.Threshold.piBarF_eq

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

capacity-planningnewsvendorp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1resource-flexibility

In the static model with independent demands uniform on [x,x+U][x, x+U][x,x+U] (x≥0x \ge 0x≥0, U>0U > 0U>0), price ppp and flexible unit cost cFc_FcF​ with 0≤cF<p0 \le c_F < p0≤cF​<p, let πˉF(cF)=sup⁡QF≥0πF(cF)(QF)\bar\pi_F(c_F) = \sup_{Q_F \ge 0} \pi_F(c_F)(Q_F)πˉF​(cF​)=supQF​≥0​πF​(cF​)(QF​). Then:

  1. if p≥2cFp \ge 2c_Fp≥2cF​, the capacity QˉF,1(cF)=2x+(2−2cF/p)U\bar Q_{F,1}(c_F) = 2x + \big(2 - \sqrt{2c_F/p}\big)UQˉ​F,1​(cF​)=2x+(2−2cF​/p​)U attains the optimum and
πˉF(cF)=2(p−cF)x+23cF(2cFp−3)U+pU;\bar\pi_F(c_F) = 2(p-c_F)x + \tfrac23 c_F\Big(\sqrt{\tfrac{2c_F}{p}} - 3\Big)U + pU;πˉF​(cF​)=2(p−cF​)x+32​cF​(p2cF​​​−3)U+pU;
  1. if p<2cFp < 2c_Fp<2cF​, the capacity QˉF,2(cF)=2x+2−2cF/p  U\bar Q_{F,2}(c_F) = 2x + \sqrt{2 - 2c_F/p}\;UQˉ​F,2​(cF​)=2x+2−2cF​/p​U attains the optimum and
πˉF(cF)=2(p−cF)x+23(p−cF)2−2cFp  U.\bar\pi_F(c_F) = 2(p-c_F)x + \tfrac23 (p-c_F)\sqrt{2 - \tfrac{2c_F}{p}}\;U.πˉF​(cF​)=2(p−cF​)x+32​(p−cF​)2−p2cF​​​U.

These are the left-hand side of the break-even equation (8).

Formalization Note U>0U > 0U>0 and 0≤cF<p0 \le c_F < p0≤cF​<p are added; they make the square roots real and the optimum interior or at the boundary as on the page.

Preamble
import Mathlib
import Definitions.Def_FlexLearning_Threshold_Model
Formal statement
namespace FlexLearning.Threshold

theorem piBarF_eq (p x U cF : ℝ) (hcF : 0 ≤ cF) (hcFp : cF < p) (hx : 0 ≤ x) (hU : 0 < U) :
    (2 * cF ≤ p →
      piF p x U cF (2 * x + (2 - Real.sqrt (2 * cF / p)) * U) = piBarF p x U cF ∧
      piBarF p x U cF =
        2 * (p - cF) * x + 2 / 3 * cF * (Real.sqrt (2 * cF / p) - 3) * U + p * U) ∧
    (p < 2 * cF →
      piF p x U cF (2 * x + Real.sqrt (2 - 2 * cF / p) * U) = piBarF p x U cF ∧
      piBarF p x U cF = 2 * (p - cF) * x + 2 / 3 * (p - cF) * Real.sqrt (2 - 2 * cF / p) * U) := by sorry

end FlexLearning.Threshold
Source
Chod, Markakis & Trichakis, On the Learning Benefits of Resource Flexibility, SSRN preprint 3212177 (version of December 6, 2019), p. A5 (PDF 38), proof of Proposition 1
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

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