Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

The complex linear operator with prescribed diagonal entries (diagonalOperator)

Definition
HlawkaSchatten_DiagonalConstruction_DiagonalNorm

by savarin · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

hlawka-schattenlinear-algebraschatten-normsingular-values

For a finite index set ι\iotaι and a family of complex numbers d=(di)i∈ιd=(d_i)_{i\in\iota}d=(di​)i∈ι​, diagonalOperator defines the C\mathbb{C}C-linear operator on the finite-dimensional Hilbert space Cι\mathbb{C}^\iotaCι (EuclideanSpace ℂ ι) that acts diagonally by ddd:

diagonalOperator(d) x=(di xi)i∈ι.\mathrm{diagonalOperator}(d)\,x = (d_i\,x_i)_{i\in\iota}.diagonalOperator(d)x=(di​xi​)i∈ι​.

It exists to connect the coordinate-vector form of the Hlawka-type inequality (stated for lpNorm) to the operator-theoretic Schatten ppp-quantity schattenPNorm: the coordinate basis is an eigenbasis of the associated Gram operator, with eigenvalues ∣di∣2|d_i|^2∣di​∣2, so the singular values of diagonalOperator(d)\mathrm{diagonalOperator}(d)diagonalOperator(d) are exactly ∣di∣|d_i|∣di​∣, and — for p>0p>0p>0 — its Schatten ppp-quantity agrees with ∥d∥p\|d\|_p∥d∥p​ (lpNorm). This is the bridge that lets a result proved by the coordinate argument be read as a genuine statement about singular values.

Definition code
import Mathlib.Analysis.Calculus.LHopital
import Mathlib.Analysis.Convex.Deriv
import Mathlib.Analysis.Convex.SpecificFunctions.Basic
import Mathlib.Analysis.InnerProductSpace.Adjoint
import Mathlib.Analysis.InnerProductSpace.Basic
import Mathlib.Analysis.InnerProductSpace.Dual
import Mathlib.Analysis.InnerProductSpace.NormPow
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Analysis.InnerProductSpace.ProdL2
import Mathlib.Analysis.InnerProductSpace.SingularValues
import Mathlib.Analysis.InnerProductSpace.Trace
import Mathlib.Analysis.Normed.Lp.PiLp
import Mathlib.Analysis.SpecialFunctions.Pow.Continuity
import Mathlib.Data.Sign.Basic
import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic
import Mathlib.Topology.Compactification.OnePoint.Basic
import Mathlib.Topology.Instances.Sign

/-
Copyright (c) 2026 Ezzeri Esa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ezzeri Esa
-/

/-!
# Diagonal operators and coordinate power sums

This connects the coordinate proof to the singular-value Schatten norm
used in the publication boundary. The Gram operator has the coordinate
basis as an eigenbasis, with eigenvalues equal to squared entry norms.
-/

namespace HlawkaSchatten.DiagonalConstruction

open scoped InnerProductSpace

variable {ι : Type*} [Fintype ι] [DecidableEq ι]

/-- The complex operator with the prescribed diagonal. -/
noncomputable def diagonalOperator (d : ι → ℂ) :
    EuclideanSpace ℂ ι →ₗ[ℂ] EuclideanSpace ℂ ι :=
  Matrix.toEuclideanLin (Matrix.diagonal d)













end HlawkaSchatten.DiagonalConstruction
Source
https://github.com/savarin/hlawka-schatten/blob/79aa498bfcf7b22bd91d771fb32ec278e2d4704b/HlawkaSchatten/DiagonalConstruction/DiagonalNorm.lean#L23-L26
Human review
  • Endorsed by Shuze Chen · Sep 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by savarin · Sep 29, 2026

    Confirmed by the mission captain (proposal self-audit).

  • Endorsed by marwahaha · Sep 30, 2026

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me