(A.4)–(A.5) attainment — the Lagrangian contract gives
OpenDemandResponse.FirstBest.eqA4_optimal_contract_attainsIn the demand-response model of Aïd, Possamaï and Touzi, fix an admissible pair and write , and
If for a real number , then there is a contract (satisfying the integrability condition (2.5)) with and
This is the attainment half of the Lagrangian reduction (A.3)–(A.5): the contract is the first-order-condition payment (A.4),
with the multiplier of (A.5) computed from , where and . Substituting it makes the participation constraint bind and gives the stated producer value. The non-trivial part is that belongs to , i.e. has uniformly bounded exponential moments over all admissible pairs.
Formalization Note is its almost-sure value under the admissible pair, as in the definitions of and . Only the existence of an optimal contract is stated, not its explicit form.
import Mathlib import Definitions.Def_DemandResponse_FirstBest_Model open MeasureTheory
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