The secular function ,
DefinitionSpectralFeedback_Supplement_chilinear-algebramatrix-analysisoptimizationp2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-information
For put and define
the largest eigenvalue of the real symmetric matrix with entries off the diagonal and on it. The paper writes for on . When at least two entries of are positive, is the unique positive root of , and otherwise it is ; this is a property, not the definition.
With , the spectral reward and the value of (C.6) are the published reward and reward set of the base mission. Every theorem of this supplement is a statement about or .
Formalization Note The matrix is taken with complex entries, which has the same eigenvalues, so its largest eigenvalue is the published eigDesc · 0. For the value is . Real.sqrt clamps negative entries to ; the mission evaluates only on nonnegative vectors.
Definition code
import Mathlib
import Definitions.Def_SpectralFeedback_eigDesc
namespace SpectralFeedback
namespace Supplement
/-- **The secular function `χ`** (Qi, *Spectral Structure and Exact Arithmetic of Finite-Feedback
Measurement Discrimination*, manuscript (Nov. 2026), (3.1), p.3 (PDF p.5); (C.3), p.26 (PDF p.28);
§E.3.1, p.82 (PDF p.84); §G.1.1, p.96 (PDF p.98)): for `x ∈ ℝ^r_+`,
`χ(x) = λ_max(v v* − diag x)`, `v_i = √x_i`. The paper writes `χ_s` for `χ` on `ℝ^s`.
**Formalization Note** The real symmetric `r × r` matrix `v vᵀ − diag x` is taken with complex
entries (same eigenvalues) so that its largest eigenvalue is the published `eigDesc · 0`. For `r = 0`
the value is `0`. Off the orthant `Real.sqrt` clamps negative entries to `0`; the mission evaluates
`χ` only at nonnegative vectors. The secular-root description (the unique positive root `c` of
`∑ x_i/(x_i + c) = 1` when at least two entries are positive, else `0`) is a consequence stated in the
paper, not the definition. -/
noncomputable def chi (r : ℕ) (x : Fin r → ℝ) : ℝ :=
eigDesc
(Matrix.vecMulVec (fun i => ((Real.sqrt (x i) : ℝ) : ℂ)) (fun i => ((Real.sqrt (x i) : ℝ) : ℂ)) -
Matrix.diagonal (fun i => ((x i : ℝ) : ℂ))) 0
end Supplement
end SpectralFeedback
Source
Qi, Spectral Structure and Exact Arithmetic of Finite-Feedback Measurement Discrimination, manuscript (Nov. 2026; PDF sha256 a5b5cf40…eabde9cf), (3.1), p.3 (PDF p.5); (C.3), p.26 (PDF p.28); §E.3.1, p.82 (PDF p.84); §G.1.1, p.96 (PDF p.98)