Theorem 2.6.2 — the cash balance problem (goal)
DisprovedMDPFinance.Stationary.cash_balance_solutionA firm's cash level evolves under i.i.d. shocks ; each period the firm may transfer to a new level at linear cost (), pays a convex, coercive holding cost (), and the level moves to . Modeled as the stationary Markov Decision Model with , , , : there exist critical levels (depending on ) such that
with , and the optimal policy transfers up to if , does nothing if , and transfers down to if .
Formalization Note. The critical levels are existentially quantified functions of (not fixed constants) — a formalization dropping the -dependence would be a strictly different, false-in-general claim. 's standing assumptions (convex, , ) are stated exactly as the book's own paragraph before the theorem, not weakened. No trivializing specialization: for every is the book's own hypothesis, not a simplifying choice.
Formalization Note (moderation). The critical levels of part (b) are those of part (a) (one existential quantifier covers both), and part (b) asserts what the book asserts: the policy built from them by (2.6) attains .
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.
import Mathlib import Definitions.Def_MDPFinance_Stationary_Model import Definitions.Def_MDPFinance_Stationary_Policy import Definitions.Def_MDPFinance_Stationary_Operators import Definitions.Def_MDPFinance_Stationary_ValueFunction open MeasureTheory ProbabilityTheory
namespace MDPFinance.Stationary
/-- The cash-balance model's transfer-cost function `c(z) := c_u z^+ + c_d z^-`
(Bäuerle–Rieder, p. 47, PDF 62), for `c_u, c_d > 0`. -/
noncomputable def transferCost (cu cd : ℝ) (z : ℝ) : ℝ := cu * (max z 0) + cd * (max (-z) 0)
/-- Theorem 2.6.2 (Bäuerle–Rieder, p. 49, PDF 64) — the goal of this mission: the cash balance
problem. `M` is the stationary Markov Decision Model of §2.6.2 (p. 47, PDF 62): state space
`E := ℝ` (the cash level), action space `A := ℝ` (the post-transfer cash level), `D(x) := A`,
disturbances `(Z_n)` i.i.d. with finite expectation and law `μ_Z` (so `Q(\cdot\mid x,a)` is the
law of `a - Z`), reward `r(x,a) := -c(a-x) - L(a)` where `c(z) := c_u z^+ + c_d z^-`
(`c_u, c_d > 0`) is the transfer cost and `L : ℝ → ℝ_{\ge 0}` is a convex, coercive holding-cost
function with `L(0) = 0`; no terminal reward (`g ≡ 0`); discount `β ∈ (0,1]`. Then: a) there
exist critical levels `S_n^-, S_n^+` (depending on `n`) such that for `n = 1, …, N`, `J_n(x) =
(S_n^- - x) c_u + L(S_n^-) + β\,\mathbb{E}[J_{n-1}(S_n^- - Z)]` if `x < S_n^-`; `J_n(x) = L(x) +
β\,\mathbb{E}[J_{n-1}(x-Z)]` if `S_n^- \le x \le S_n^+`; `J_n(x) = (x-S_n^+)c_d + L(S_n^+) +
β\,\mathbb{E}[J_{n-1}(S_n^+ - Z)]` if `x > S_n^+`, with `J_0 ≡ 0`. b) The optimal cash-balance
policy is `(f_N^*, …, f_1^*)` where `f_n^*(x)` transfers to `S_n^-` if `x < S_n^-`, leaves `x`
unchanged if `S_n^- \le x \le S_n^+`, and transfers to `S_n^+` if `x > S_n^+`: the policy
`(f_N^*, …, f_1^*)` built from the critical levels of a) attains `J_N`. -/
theorem cash_balance_solution (M : StationaryMarkovDecisionModel ℝ ℝ) (cu cd : ℝ)
(hcu : 0 < cu) (hcd : 0 < cd) (L : ℝ → ℝ) (hL_nonneg : ∀ x, 0 ≤ L x) (hL0 : L 0 = 0)
(hL_convex : ConvexOn ℝ Set.univ L)
(hL_coercive : Filter.Tendsto (fun x => L x / |x|) Filter.atTop Filter.atTop ∧
Filter.Tendsto (fun x => L x / |x|) Filter.atBot Filter.atTop)
(μZ : Measure ℝ) [IsProbabilityMeasure μZ] (hZ_integrable : Integrable id μZ)
(hD : M.D = Set.univ) (hg : M.g = 0)
(hQ : ∀ x a : ℝ, M.Q (x, a) = μZ.map (fun z => a - z))
(hr : ∀ x a : ℝ, M.r (x, a) = -(transferCost cu cd (a - x)) - L a) (N : ℕ) :
J M 0 = 0 ∧
∃ Sminus Splus : ℕ → ℝ,
(∀ n, 1 ≤ n → n ≤ N → Sminus n ≤ Splus n ∧
∀ x : ℝ, J M n x =
if x < Sminus n then
((Sminus n - x) * cu + L (Sminus n) : EReal) +
(M.β : EReal) * erealIntegral μZ (fun z => J M (n - 1) (Sminus n - z))
else if x ≤ Splus n then
(L x : EReal) + (M.β : EReal) * erealIntegral μZ (fun z => J M (n - 1) (x - z))
else
((x - Splus n) * cd + L (Splus n) : EReal) +
(M.β : EReal) * erealIntegral μZ (fun z => J M (n - 1) (Splus n - z))) ∧
Jpi M (fun k x =>
if x < Sminus (N - k) then Sminus (N - k)
else if x ≤ Splus (N - k) then x else Splus (N - k)) N = J M N := by sorry
end MDPFinance.Stationary
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.