Dines's theorem: vector witness for PSD averages of two quadratic forms
ProvedConvexOptimization.field_of_values_psd_witnessHidden convexity of the joint range of two quadratic forms: any value attained by a positive semidefinite matrix is attained by a rank-one one.
Let be symmetric real matrices and let be positive semidefinite. Then there exists a single vector with
Equivalently, the set — the joint range of the pair — already contains everything the larger set contains, so the semidefinite relaxation of a pair of quadratic forms is exact.
This is the precise reason the S-procedure is lossless: the proof relaxes a pair of quadratic inequalities to a semidefinite program, and this statement converts a matrix solution of the relaxation back into a genuine vector. It is a two-form phenomenon — for three or more quadratic forms the analogous statement fails, and the S-procedure acquires a gap.
Formalization Note The conclusion is an existential over x : Fin n → ℝ with both quadratic values written using ⬝ᵥ and Matrix.mulVec, and X.PosSemidef in Mathlib already carries Hermitian-ness. The book proves it by induction on the rank of . Source: B&V §B.3, p. 656, eq. (B.8).
import Mathlib open scoped RealInnerProductSpace ENNReal open MeasureTheory
theorem ConvexOptimization.field_of_values_psd_witness {nn : ℕ}
(A B : Matrix (Fin nn) (Fin nn) ℝ) (hA : A.IsSymm) (hB : B.IsSymm)
(X : Matrix (Fin nn) (Fin nn) ℝ) (hX : X.PosSemidef) :
∃ x : Fin nn → ℝ,
x ⬝ᵥ A.mulVec x = (A * X).trace ∧ x ⬝ᵥ B.mulVec x = (B * X).trace := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Theorem. Fix a natural number ; real matrices and , each assumed symmetric; and a real matrix assumed positive semidefinite (which in Mathlib includes the symmetry requirement together with for all ). Conclusion: there exists a single vector satisfying both equalities simultaneously:
where and . Exactly two matrices are matched (a pair, not an arbitrary family), the equalities are exact (not inequalities), no normalization is imposed on (its trace and rank are arbitrary), and no constraint (such as unit norm) is placed on the witness . Edge case: for the only vector is the empty one and all four quantities are , so the statement holds trivially.
Confirmed by the mission captain (proposal self-audit).