§2.1, p. 546 — Condition (10) is an ellipsoid, and the worst-case VaR is the maximal loss over it
ProvedWorstCaseVaR.KnownMoments.ellipsoid_form_and_max_lossLet , let and let , with .
- For every , Condition (10),
holds if and only if lies in the ellipsoid . 2. The maximal loss over this set is attained and equals
This is the "game-theoretic" reading of the worst-case VaR: it is the largest loss when the return vector is deterministic and only known to lie in . It links Propositions 2 and 4 of Theorem 1.
Formalization Note. The maximum is stated with IsGreatest; is the matrix inverse, well defined since .
import Mathlib import Definitions.Def_WorstCaseVaR_KnownMoments_Basic open MeasureTheory Matrix open scoped InnerProductSpace
namespace WorstCaseVaR.KnownMoments
/-- The ellipsoid form of Condition (10) (p. 546): with `Γ ≻ 0`,
`[[Γ, x - x̂], [(x - x̂)ᵀ, κ(ε)²]] ⪰ 0` iff `(x - x̂)ᵀ Γ⁻¹ (x - x̂) ≤ κ(ε)²`, and the maximal loss
`-xᵀw` over the `x` satisfying (10) is `κ(ε) √(wᵀΓw) - x̂ᵀw`. -/
theorem ellipsoid_form_and_max_loss {n : ℕ}
(xhat w : EuclideanSpace ℝ (Fin n)) (Γ : Matrix (Fin n) (Fin n) ℝ) (hΓ : Γ.PosDef)
(ε : ℝ) (hε0 : 0 < ε) (hε1 : ε ≤ 1) :
(∀ x : EuclideanSpace ℝ (Fin n),
(bordered Γ ⇑(x - xhat) (kappa ε ^ 2)).PosSemidef ↔
⇑(x - xhat) ⬝ᵥ Γ⁻¹ *ᵥ ⇑(x - xhat) ≤ kappa ε ^ 2) ∧
IsGreatest {r : ℝ | ∃ x : EuclideanSpace ℝ (Fin n),
(bordered Γ ⇑(x - xhat) (kappa ε ^ 2)).PosSemidef ∧ r = -⟪x, w⟫_ℝ}
(kappa ε * Real.sqrt (⇑w ⬝ᵥ Γ *ᵥ ⇑w) - ⟪xhat, w⟫_ℝ) := by sorry
end WorstCaseVaR.KnownMoments
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setup.
- .
- and , with allowed to be .
- is a real positive definite matrix: symmetric, with for . It is therefore invertible, and is its true inverse.
- is a real number with .
Let , and write for the standard inner product. "" means is symmetric and for all .
For , let
Claim (a). For every ,
Claim (b). The set has greatest element
This value is attained by some with , and every such gives at most this value.
Degenerate cases.
- . With , , so is the genuine square root.
- , so its square root is also genuine.
- . Then . Part (a) says exactly when , i.e. when . Part (b) says the maximum is .
- . The set in (b) is (nonempty, since qualifies), and the claimed maximum is .
- . is the matrix , which is positive semidefinite. The quadratic form is , so (a) reads . Part (b) says the maximum of is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.