Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (20), p. 37 — closed form of the full-discharge profit on D_H + K/e ≤ Q

Proved
OffGridStorage.TechChoice.eq_20_closed_form

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

closed-formenergy-storagep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Under the standing assumptions, for every K≥0K\ge 0K≥0 and Q≥DH+K/eQ\ge D_H+K/eQ≥DH​+K/e,

ΠF(Q,K)=T(gQ[−DH22−K22e−KDH]+g(DH+K)−cKeK−cQQ).\Pi_F(Q,K)=T\Bigl(\frac{g}{Q}\Bigl[-\frac{D_H^2}{2}-\frac{K^2}{2e}-KD_H\Bigr]+g(D_H+K)-\frac{c_K}{e}K-c_QQ\Bigr).ΠF​(Q,K)=T(Qg​[−2DH2​​−2eK2​−KDH​]+g(DH​+K)−ecK​​K−cQ​Q).

The bracketed term comes from evaluating the expected served energy E[min⁡[q,DH]+min⁡[e(q−DH)+,K]]E[\min[q,D_H]+\min[e(q-D_H)^+,K]]E[min[q,DH​]+min[e(q−DH​)+,K]] for q∼U[0,Q]q\sim U[0,Q]q∼U[0,Q], split as in eq. (30). The closed form is the basis of the paper's first-order analysis of the full-discharge model (Theorem 3, eq. (25)).

Formalization Note Eq. (20) is stated per period; ΠF\Pi_FΠF​ in eq. (5) carries the factor TTT, so the identity is stated with TTT. The region Q≥DH+K/eQ\ge D_H+K/eQ≥DH​+K/e is where the formula is valid (the storage term saturates within [0,Q][0,Q][0,Q]); the paper leaves it implicit.

Preamble
import Mathlib
import Definitions.Def_OffGridStorage_TechChoice_Model
Formal statement
namespace OffGridStorage.TechChoice

/-- Eq. (20), p. 37 (with eq. (30), p. 40): on the region `D_H + K/e ≤ Q` the full-discharge
profit equals `T` times the per-period closed form. -/
theorem eq_20_closed_form (p : Params) (hp : Standing p) (Q K : ℝ) (hK : 0 ≤ K)
    (hQK : p.DH + K / p.e ≤ Q) :
    profitF p Q K = closedFormF p Q K := by sorry

end OffGridStorage.TechChoice
Source
Kaps, Marinesi & Netessine, When Should the Off-grid Sun Shine at Night?, SSRN 3761397 (version of May 11, 2023), p. 37, Appendix A.3, eq. (20); integrals of eq. (30), p. 40
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

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