Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(A.4)–(A.5) attainment — the Lagrangian contract gives JP=R0(Vˉν/R0)1+p/rJ_P=R_0(\bar V^\nu/R_0)^{1+p/r}JP​=R0​(Vˉν/R0​)1+p/r

Open
DemandResponse.FirstBest.eqA4_optimal_contract_attains

by tianyipeng · Nov 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

demand-responseprincipal-agentstochastic-control

In the demand-response model of Aïd, Possamaï and Touzi, fix an admissible pair (ν,P)(\nu,\mathbb P)(ν,P) and write ρ=rpr+p\rho=\frac{rp}{r+p}ρ=r+prp​, δ=κ−θ\delta=\kappa-\thetaδ=κ−θ and

Vˉν:=EP[−e−ρ(∫0T(δXt−c(νt))dt−h2⟨X⟩T)].\bar V^\nu:=\mathbb E^{\mathbb P}\Big[-e^{-\rho\left(\int_0^T(\delta X_t-c(\nu_t))dt-\frac h2\langle X\rangle_T\right)}\Big].Vˉν:=EP[−e−ρ(∫0T​(δXt​−c(νt​))dt−2h​⟨X⟩T​)].

If Vˉν=w\bar V^\nu=wVˉν=w for a real number w<0w<0w<0, then there is a contract ξ∈C\xi\in\mathcal Cξ∈C (satisfying the integrability condition (2.5)) with JA(ξ,Pν)≥R0J_A(\xi,\mathbb P^\nu)\ge R_0JA​(ξ,Pν)≥R0​ and

JP(ξ,Pν)=R0(wR0)1+pr.J_P(\xi,\mathbb P^\nu)=R_0\Big(\frac{w}{R_0}\Big)^{1+\frac pr}.JP​(ξ,Pν)=R0​(R0​w​)1+rp​.

This is the attainment half of the Lagrangian reduction (A.3)–(A.5): the contract is the first-order-condition payment (A.4),

ξℓ=1p+rln⁡rℓp−pp+rGTν−rp+rKTν,\xi_\ell=\frac1{p+r}\ln\frac{r\ell}{p}-\frac{p}{p+r}G^\nu_T-\frac{r}{p+r}K^\nu_T,ξℓ​=p+r1​lnprℓ​−p+rp​GTν​−p+rr​KTν​,

with the multiplier ℓ⋆\ell^\starℓ⋆ of (A.5) computed from www, where KTν=∫0T(κXs−c(νs))dsK^\nu_T=\int_0^T(\kappa X_s-c(\nu_s))dsKTν​=∫0T​(κXs​−c(νs​))ds and GTν=∫0TθXsds+h2⟨X⟩TG^\nu_T=\int_0^T\theta X_sds+\frac h2\langle X\rangle_TGTν​=∫0T​θXs​ds+2h​⟨X⟩T​. Substituting it makes the participation constraint bind and gives the stated producer value. The non-trivial part is that ξℓ⋆\xi_{\ell^\star}ξℓ⋆​ belongs to C\mathcal CC, i.e. has uniformly bounded exponential moments over all admissible pairs.

Formalization Note ⟨X⟩T\langle X\rangle_T⟨X⟩T​ is its almost-sure value ∫0T∣σ(βt)∣2dt\int_0^T|\sigma(\beta_t)|^2dt∫0T​∣σ(βt​)∣2dt under the admissible pair, as in the definitions of JPJ_PJP​ and Vˉ\bar VVˉ. Only the existence of an optimal contract is stated, not its explicit form.

Preamble
import Mathlib
import Definitions.Def_DemandResponse_FirstBest_Model

open MeasureTheory
Formal statement
namespace DemandResponse.FirstBest

/-- (A.4)–(A.5), attainment for a fixed effort: if `(ν, ℙ)` is admissible and the reduced
criterion `-E^ℙ[exp(-ρ(∫₀ᵀ (δ X_t - c(ν_t)) dt - (h/2)⟨X⟩_T))]` equals the real `w < 0`, then
some contract `ξ ∈ 𝒞` (the Lagrangian contract (A.4) with the optimal multiplier) satisfies the
participation constraint and gives the producer `J_P(ξ, ℙ^ν) = R₀ (w / R₀)^{1 + p/r}`. -/
theorem eqA4_optimal_contract_attains {N d : ℕ} (P : Params N d)
    (ν : Control P) (Q : Measure (Path P)) (hQ : Admissible P ν Q) (w : ℝ) (hw : w < 0)
    (hCw : -(((∫⁻ ω, ENNReal.ofReal (Real.exp (-rho P *
      ((∫ s in (0 : ℝ)..P.T, (delta P * Xr P s ω - cost P (ν.αr s ω) (ν.βr s ω))) -
        P.h / 2 * qvInt P ν P.T ω))) ∂Q) : ENNReal) : EReal) = (w : EReal)) :
    ∃ ξ : Path P → ℝ, IsContract P ξ ∧ (P.R₀ : EReal) ≤ JA P ξ ν Q ∧
      JP P ξ ν Q = ((P.R₀ * (w / P.R₀) ^ (1 + P.p / P.r) : ℝ) : EReal) := by sorry

end DemandResponse.FirstBest
Source
arXiv:1810.09063v3 (Aïd, Possamaï, Touzi), Appendix A.2, proof of Proposition 3.1, equations (A.3)–(A.5), p. 26

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