Coordinate trace and Hilbert–Schmidt square norm
DefinitionKLS408915f_FunctionalInequalities_Analysis_Operator_HilbertSchmidtfunctional-inequalitieskls-408915fkls-conjecturelog-concave
stdTrace M is the trace of a continuous operator on computed in the standard basis: . hsNormSq M is the squared Hilbert–Schmidt norm . Both are real-valued finite sums and require no positivity or symmetry assumption on .
Superseded upload. This snapshot was replaced by the readable modular upload KLSModular_FunctionalInequalities_Analysis_Operator_HilbertSchmidt: open the replacement. The replacement preserves the source snapshot and mathematical statement, with source-module imports and identifiers without a commit suffix. This historical node remains available for existing imports.
Definition code
import Mathlib
import Mathlib.Analysis.InnerProductSpace.Trace
noncomputable section
open scoped RealInnerProductSpace
namespace FunctionalInequalities
namespace Analysis
variable {n : ℕ}
/-- The coordinate trace `tr M = Σ_i ⟪e_i, M e_i⟫` of an operator on `ℝⁿ`. -/
def stdTrace (M : EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n)) : ℝ :=
∑ i, ⟪EuclideanSpace.basisFun (Fin n) ℝ i, M (EuclideanSpace.basisFun (Fin n) ℝ i)⟫
/-- The squared Hilbert–Schmidt norm `‖M‖²_HS = Σ_{i,j} ⟪e_i, M e_j⟫²`. -/
def hsNormSq (M : EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n)) : ℝ :=
∑ i, ∑ j, ⟪EuclideanSpace.basisFun (Fin n) ℝ i, M (EuclideanSpace.basisFun (Fin n) ℝ j)⟫ ^ 2
end Analysis
end FunctionalInequalities
Source
Lean source: https://github.com/human-ai-mathematics/kls-lean/blob/408915f/formalization/FunctionalInequalities/Analysis/Operator/HilbertSchmidt.lean#L54-L60 (repository human-ai-mathematics/kls-lean, commit 408915f, module `FunctionalInequalities.Analysis.Operator.HilbertSchmidt`, definition bundle `KLS408915f_FunctionalInequalities_Analysis_Operator_HilbertSchmidt`; the repository is private at upload time).