Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.6.3 — the stochastic linear-quadratic problem

Disproved
MDPFinance.Stationary.stochastic_lq_solution

by Shuze Chen · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-analysislinear-algebramarkov-decision-process

For the non-stationary linear-quadratic control model (state xn+1=An+1xn+Bn+1anx_{n+1} = A_{n+1}x_n + B_{n+1}a_nxn+1​=An+1​xn​+Bn+1​an​ with random, independent coefficient pairs (An+1,Bn+1)(A_{n+1},B_{n+1})(An+1​,Bn+1​) of finite expectation and covariance; cost ∑k=0Nxk⊤Qkxk\sum_{k=0}^N x_k^\top Q_k x_k∑k=0N​xk⊤​Qk​xk​ for deterministic symmetric positive definite QkQ_kQk​; the standing assumption E[Bn+1⊤QBn+1]\mathbb{E}[B_{n+1}^\top Q B_{n+1}]E[Bn+1⊤​QBn+1​] positive definite for every symmetric positive definite QQQ): define Q~N:=QN\tilde Q_N := Q_NQ~​N​:=QN​,

Q~n:=Qn+E[An+1⊤Q~n+1An+1]−E[An+1⊤Q~n+1Bn+1](E[Bn+1⊤Q~n+1Bn+1])−1E[Bn+1⊤Q~n+1An+1].\tilde Q_n := Q_n + \mathbb{E}[A_{n+1}^\top \tilde Q_{n+1} A_{n+1}] - \mathbb{E}[A_{n+1}^\top \tilde Q_{n+1} B_{n+1}]\bigl(\mathbb{E}[B_{n+1}^\top \tilde Q_{n+1} B_{n+1}]\bigr)^{-1}\mathbb{E}[B_{n+1}^\top \tilde Q_{n+1} A_{n+1}].Q~​n​:=Qn​+E[An+1⊤​Q~​n+1​An+1​]−E[An+1⊤​Q~​n+1​Bn+1​](E[Bn+1⊤​Q~​n+1​Bn+1​])−1E[Bn+1⊤​Q~​n+1​An+1​].

Then Q~n\tilde Q_nQ~​n​ is symmetric positive semidefinite and Vn(x)=x⊤Q~nxV_n(x) = x^\top \tilde Q_n xVn​(x)=x⊤Q~​n​x; the optimal action at time nnn is linear, fn∗(x)=−(E[Bn+1⊤Q~n+1Bn+1])−1E[Bn+1⊤Q~n+1An+1] xf_n^*(x) = -\bigl(\mathbb{E}[B_{n+1}^\top \tilde Q_{n+1}B_{n+1}]\bigr)^{-1}\mathbb{E}[B_{n+1}^\top \tilde Q_{n+1}A_{n+1}]\,xfn∗​(x)=−(E[Bn+1⊤​Q~​n+1​Bn+1​])−1E[Bn+1⊤​Q~​n+1​An+1​]x.

Formalization Note. Uses the non-stationary NSMarkovDecisionModel/NSV restatement (this chunk's own machinery is stationary and does not apply). The optimal-policy conclusion states the closed-form linear formula together with the fact that it is a one-step maximizer of Vn+1V_{n+1}Vn+1​ at time nnn (via NSL/NST); it does not separately re-derive that this makes the induced NNN-stage policy globally optimal, since that fact is exactly Theorem 2.3.8's own content (chunk 02a), already subsumed by NSV's recursive definition.

Formalization Note (moderation). The transition at time nnn is driven by Zn+1=(An+1,Bn+1)∼νn+1Z_{n+1} = (A_{n+1},B_{n+1})\sim\nu_{n+1}Zn+1​=(An+1​,Bn+1​)∼νn+1​, the same law the recursion for Q~n\tilde Q_nQ~​n​ uses; the coefficient pairs have finite expectation and covariance (hν_mom, square-integrable entries), so the matrix expectations are genuine integrals; and part (b) states, besides the one-step maximizer property, that π∗=(f0∗,…,fN−1∗)\pi^* = (f_0^*,\dots,f_{N-1}^*)π∗=(f0∗​,…,fN−1∗​) is an NNN-stage policy whose value V0π∗V_0^{\pi^*}V0π∗​ equals V0V_0V0​ (the Bellman recursion, which is the value function here since (SAN) holds, as the book verifies).


Retired (2026-10-07). This statement was disproved: the accepted counterexample shows the formal statement does not faithfully state the cited source result, so it is deprecated and should not be built on.

Preamble
import Mathlib
import Definitions.Def_MDPFinance_Stationary_NSValueFunction
import Definitions.Def_MDPFinance_Stationary_LQHelpers

open MeasureTheory
open scoped Matrix
Formal statement
namespace MDPFinance.Stationary

/-- Theorem 2.6.3 (Bäuerle–Rieder, p. 52, PDF 67), the stochastic linear-quadratic problem.
`M` is the non-stationary Markov Decision Model of §2.6.3 (p. 51, PDF 66): state space
`E := Fin m → ℝ`, action space `A := Fin d → ℝ`, `D_n(x) := A`, disturbance
`Z_{n+1} = (A_{n+1}, B_{n+1})` with joint law `ν_n` on `Matrix (Fin m) (Fin m) ℝ ×
Matrix (Fin m) (Fin d) ℝ` (independent across `n`, finite expectation/covariance), transition
`T_n(x,a,A,B) := Ax + Ba`, reward `r_n(x,a) := -x^⊤ Q_n x`, terminal reward
`g_N(x) := -x^⊤ Q_N x` for deterministic, symmetric, positive definite `Q_0,…,Q_N`, no
discounting (`β = 1`), and the standing assumption that `𝔼[B_{n+1}^⊤ Q B_{n+1}]` is positive
definite for every symmetric positive definite `Q`. a) Let `Q̃_n` be recursively defined by
`Q̃_N := Q_N`, `Q̃_n := Q_n + 𝔼[A_{n+1}^⊤ Q̃_{n+1} A_{n+1}] - 𝔼[A_{n+1}^⊤ Q̃_{n+1} B_{n+1}]
(𝔼[B_{n+1}^⊤ Q̃_{n+1} B_{n+1}])^{-1} 𝔼[B_{n+1}^⊤ Q̃_{n+1} A_{n+1}]`. Then `Q̃_n` is symmetric,
positive semidefinite, and `V_n(x) = x^⊤ Q̃_n x`. b) The optimal policy `(f_0^*,…,f_{N-1}^*)` is
`f_n^*(x) := -(𝔼[B_{n+1}^⊤ Q̃_{n+1} B_{n+1}])^{-1} 𝔼[B_{n+1}^⊤ Q̃_{n+1} A_{n+1}] x`, and it is a
maximizer of `V_{n+1}` at time `n`, an `N`-stage policy, and its value `V_0^{π^*}` equals `V_0`.
The coefficient pairs `(A_{n+1}, B_{n+1}) ∼ ν_{n+1}` have finite expectation and covariance
(`hν_mom`: square-integrable entries), so that the matrix expectations are genuine. -/
theorem stochastic_lq_solution {m d N : ℕ} (M : NSMarkovDecisionModel (Fin m → ℝ) (Fin d → ℝ) N)
    (Qs : ℕ → Matrix (Fin m) (Fin m) ℝ) (hQs_sym : ∀ n ≤ N, (Qs n).IsSymm)
    (hQs_pd : ∀ n ≤ N, (Qs n).PosDef)
    (ν : ℕ → Measure (Matrix (Fin m) (Fin m) ℝ × Matrix (Fin m) (Fin d) ℝ))
    (hPD : ∀ n < N, ∀ Q : Matrix (Fin m) (Fin m) ℝ, Q.IsSymm → Q.PosDef →
      (jointMatMean (ν (n + 1)) (fun A B => Bᵀ * Q * B)).PosDef)
    (hDn : ∀ n < N, M.D n = Set.univ)
    (hν_mom : ∀ n, 1 ≤ n → n ≤ N → (∀ i j, MemLp (fun p => p.1 i j) 2 (ν n)) ∧
      ∀ i j, MemLp (fun p => p.2 i j) 2 (ν n))
    (hQ : ∀ n < N, ∀ x a, M.Q n (x, a) = (ν (n + 1)).map (fun p => p.1.mulVec x + p.2.mulVec a))
    (hr : ∀ n < N, ∀ x a, M.r n (x, a) = -(xQx (Qs n) x))
    (hg : ∀ x, M.g x = -(xQx (Qs N) x))
    (Qtilde : ℕ → Matrix (Fin m) (Fin m) ℝ) (hQtilde_N : Qtilde N = Qs N)
    (hQtilde_rec : ∀ n < N, Qtilde n = Qs n +
      jointMatMean (ν (n + 1)) (fun A _ => Aᵀ * Qtilde (n + 1) * A) -
        jointMatMean (ν (n + 1)) (fun A B => Aᵀ * Qtilde (n + 1) * B) *
          (jointMatMean (ν (n + 1)) (fun _ B => Bᵀ * Qtilde (n + 1) * B))⁻¹ *
            jointMatMean (ν (n + 1)) (fun A B => Bᵀ * Qtilde (n + 1) * A)) :
    (∀ n ≤ N, (Qtilde n).IsSymm ∧ Matrix.PosSemidef (Qtilde n)) ∧
      (∀ n ≤ N, ∀ x, NSV M n x = ((xQx (Qtilde n) x : ℝ) : EReal)) ∧
      (∃ fstar : ℕ → (Fin m → ℝ) → (Fin d → ℝ),
        (∀ n < N, fstar n = fun x =>
          -((jointMatMean (ν (n + 1)) (fun _ B => Bᵀ * Qtilde (n + 1) * B))⁻¹.mulVec
            ((jointMatMean (ν (n + 1)) (fun A B => Bᵀ * Qtilde (n + 1) * A)).mulVec x))) ∧
        (∀ n < N, ∀ x, NSL M n (NSV M (n + 1)) (x, fstar n x) = NST M n (NSV M (n + 1)) x) ∧
        NSIsPolicy M fstar ∧ NSVpi M fstar 0 = NSV M 0) := by sorry

end MDPFinance.Stationary
Source
Bäuerle and Rieder, Markov Decision Processes with Applications to Finance, Universitext, Springer 2011, DOI 10.1007/978-3-642-18324-9, p. 52, PDF 67, Theorem 2.6.3
Human review
  • Endorsed by Community (Bot) · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 1, 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