Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 2, p. 13 — peak upgrade and downgrade volumes (interior cases with r_h in place of a)

Proved
BatteryLease.WinWin.lemma_2

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

battery-leasingcustomer-choicep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Under the standing assumptions, fix a primary lease rate php_hph​, rates pˉh,pˉl\bar p_h,\bar p_lpˉ​h​,pˉ​l​ and a low-capacity lease volume τ∈[0,1]\tau\in[0,1]τ∈[0,1]. The peak upgrade volume UUU (low lessees with (D−rh)++pˉh≤D(D-r_h)^++\bar p_h\le D(D−rh​)++pˉ​h​≤D) and downgrade volume VVV (high lessees with (D−rh)++ph>D+pˉl(D-r_h)^++p_h>D+\bar p_l(D−rh​)++ph​>D+pˉ​l​) satisfy:

  1. if pˉh<0\bar p_h<0pˉ​h​<0, then U=τU=\tauU=τ; if 0≤pˉh≤rh0\le\bar p_h\le r_h0≤pˉ​h​≤rh​, then U=τ(a−pˉh)/aU=\tau(a-\bar p_h)/aU=τ(a−pˉ​h​)/a; if pˉh>rh\bar p_h>r_hpˉ​h​>rh​, then U=0U=0U=0 (in particular when pˉh>a\bar p_h>apˉ​h​>a);
  2. if pˉl<ph−rh\bar p_l<p_h-r_hpˉ​l​<ph​−rh​, then V=1−τV=1-\tauV=1−τ (in particular when pˉl<ph−a\bar p_l<p_h-apˉ​l​<ph​−a); if ph−rh≤pˉl≤php_h-r_h\le\bar p_l\le p_hph​−rh​≤pˉ​l​≤ph​, then V=(1−τ)(ph−pˉl)/aV=(1-\tau)(p_h-\bar p_l)/aV=(1−τ)(ph​−pˉ​l​)/a; if pˉl>ph\bar p_l>p_hpˉ​l​>ph​, then V=0V=0V=0.

These are the volumes on which the manufacturer's peak-period problem (1) is built.

Formalization Note The page states the interior cases for pˉh≤a\bar p_h\le apˉ​h​≤a and pˉl∈[ph−a,ph]\bar p_l\in[p_h-a,p_h]pˉ​l​∈[ph​−a,ph​]. From Table 1 (and the proof, Online Appendix pp. 2–3), the interior formulas hold with rhr_hrh​ in place of aaa, and the upgrade formula also needs pˉh≥0\bar p_h\ge0pˉ​h​≥0. The statement gives the remaining rate cases so that the volumes are characterized for every real rate; it retains the page's correct outer cases pˉh>a\bar p_h>apˉ​h​>a and pˉl<ph−a\bar p_l<p_h-apˉ​l​<ph​−a as explicit consequences.

Preamble
import Mathlib
import Definitions.Def_BatteryLease_WinWin_Setting
Formal statement
namespace BatteryLease.WinWin
theorem lemma_2 (a ρ rh ch τ ph pbh pbl : ℝ) (hS : Standing a ρ rh ch)
    (hτ0 : 0 ≤ τ) (hτ1 : τ ≤ 1) :
    (pbh < 0 → upVol a rh τ pbh = τ) ∧
    (0 ≤ pbh → pbh ≤ rh → upVol a rh τ pbh = τ * (a - pbh) / a) ∧
    (rh < pbh → upVol a rh τ pbh = 0) ∧
    (a < pbh → upVol a rh τ pbh = 0) ∧
    (pbl < ph - rh → downVol a rh τ ph pbl = 1 - τ) ∧
    (ph - rh ≤ pbl → pbl ≤ ph → downVol a rh τ ph pbl = (1 - τ) * (ph - pbl) / a) ∧
    (pbl < ph - a → downVol a rh τ ph pbl = 1 - τ) ∧
    (ph < pbl → downVol a rh τ ph pbl = 0) := by sorry
end BatteryLease.WinWin
Source
Shi, Hu, Battery as a Service: Flexible Electric Vehicle Battery Leasing, M&SOM (2024), doi:10.1287/msom.2022.0587, authors' manuscript of 13 January 2024, p. 13, Lemma 2; proof Online Appendix pp. 2–3 (PDF 34–35)
Human review
  • Endorsed by Shuze Chen · Oct 16, 2026

    Confirmed by the moderator at approval.

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