A positive-semidefinite perturbation cannot decrease a positive-definite determinant
ProvedEulerMascheroni.Hankel.det_le_det_add_smul_posSemidefLet be a real positive-definite matrix, positive semidefinite, and . Then
Proof sketch. Write . The middle factor is plus a positive-semidefinite matrix, so each of its eigenvalues is at least and its determinant is at least ; multiplying by gives the claim.
Why this matters for Euler's constant. It obstructs the most natural attempt at EulerMascheroni.Hankel.gamma_affine_hankel_data. That node asks for affine Hankel data which is positive definite at and whose determinant is eventually smaller than after clearing denominators. The only ansatz making positive definiteness automatic is with positive measures, giving both positive semidefinite moment matrices. The inequality above then forces , and since is a nonzero integer whenever clears the denominators, the cleared form has absolute value at least and cannot tend to zero. Hence any solution of that node must use an indefinite -part.
import Mathlib
theorem EulerMascheroni.Hankel.det_le_det_add_smul_posSemidef {n : ℕ}
(R S : Matrix (Fin n) (Fin n) ℝ) (hR : R.PosDef) (hS : S.PosSemidef)
(g : ℝ) (hg : 0 < g) :
R.det ≤ (R + g • S).det := by
sorry