The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V16. Normed spaces and functional analysis

Mathlib.Analysis.CStarAlgebra.Matrix

32 declarations and 1 deprecated aliases. Mathlib docs Β· Source

Analytic properties of the star operation on matrices

This transports the operator norm on EuclideanSpace π•œ n β†’L[π•œ] EuclideanSpace π•œ m to Matrix m n π•œ. See the file Mathlib/Analysis/Matrix.lean for many other matrix norms.

Main definitions

  • Matrix.instNormedRingL2Op: the (necessarily unique) normed ring structure on Matrix n n π•œ which ensure it is a CStarRing in Matrix.instCStarRing. This is a scoped instance in the namespace Matrix.Norms.L2Operator in order to avoid choosing a global norm for Matrix.

Main statements

  • entry_norm_bound_of_unitary: the entries of a unitary matrix are uniformly bound by 1.

Implementation notes

We take care to ensure the topology and uniformity induced by Matrix.instMetricSpaceL2Op coincide with the existing topology and uniformity on matrices.

theorem entry_norm_bound_of_unitary E3 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {U : Matrix n n π•œ},
  U ∈ Matrix.unitaryGroup n π•œ β†’ βˆ€ (i j : n), β€–U i jβ€– ≀ 1

theorem entrywise_sup_norm_bound_of_unitary E1 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] {U : Matrix n n π•œ},
  U ∈ Matrix.unitaryGroup n π•œ β†’ β€–Uβ€– ≀ 1

The entrywise sup norm of a unitary matrix is at most 1.

def Matrix.toEuclideanCLM E1 #

{π•œ : Type u_1} β†’
  {n : Type u_3} β†’
    [inst : RCLike π•œ] β†’
      [inst_1 : Fintype n] β†’ [DecidableEq n] β†’ Matrix n n π•œ ≃⋆ₐ[π•œ] EuclideanSpace π•œ n β†’L[π•œ] EuclideanSpace π•œ n

The natural star algebra equivalence between matrices and continuous linear endomorphisms of Euclidean space induced by the orthonormal basis EuclideanSpace.basisFun.

This is a more-bundled version of Matrix.toEuclideanLin, for the special case of square matrices, followed by a more-bundled version of LinearMap.toContinuousLinearMap.

theorem Matrix.continuous_uncurry_toEuclideanCLM E1 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  Continuous fun x ↦
    match x with
    | (S, x) => (Matrix.toEuclideanCLM S) x

theorem Matrix.coe_toEuclideanCLM_eq_toEuclideanLin E0 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (A : Matrix n n π•œ),
  ↑(Matrix.toEuclideanCLM A) = Matrix.toEuclideanLin A

theorem Matrix.toEuclideanCLM_toLp E0 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (A : Matrix n n π•œ)
  (x : n β†’ π•œ), (Matrix.toEuclideanCLM A) (WithLp.toLp 2 x) = WithLp.toLp 2 (A.mulVec x)

theorem Matrix.ofLp_toEuclideanCLM E0 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (A : Matrix n n π•œ)
  (x : EuclideanSpace π•œ n), ((Matrix.toEuclideanCLM A) x).ofLp = A.mulVec x.ofLp

theorem Matrix.inner_toEuclideanCLM E1 #

βˆ€ {n : Type u_3} [inst : Fintype n] [inst_1 : DecidableEq n] (A : Matrix n n ℝ) (x y : EuclideanSpace ℝ n),
  inner ℝ x ((Matrix.toEuclideanCLM A) y) = x.ofLp ⬝α΅₯ A.mulVec y.ofLp

def Matrix.l2OpNormedAddCommGroupAux E0 #

{π•œ : Type u_1} β†’
  {m : Type u_2} β†’
    {n : Type u_3} β†’ [RCLike π•œ] β†’ [Fintype m] β†’ [Fintype n] β†’ [DecidableEq n] β†’ NormedAddCommGroup (Matrix m n π•œ)

An auxiliary definition used only to construct the true NormedAddCommGroup (and Metric) structure provided by Matrix.instMetricSpaceL2Op and Matrix.instNormedAddCommGroupL2Op.

def Matrix.l2OpNormedRingAux E0 #

{π•œ : Type u_1} β†’ {n : Type u_3} β†’ [RCLike π•œ] β†’ [Fintype n] β†’ [DecidableEq n] β†’ NormedRing (Matrix n n π•œ)

An auxiliary definition used only to construct the true NormedRing (and Metric) structure provided by Matrix.instMetricSpaceL2Op and Matrix.instNormedRingL2Op.

def Matrix.instL2OpMetricSpace E1 #

{π•œ : Type u_1} β†’
  {m : Type u_2} β†’
    {n : Type u_3} β†’ [RCLike π•œ] β†’ [Fintype m] β†’ [Fintype n] β†’ [DecidableEq n] β†’ MetricSpace (Matrix m n π•œ)

The metric on Matrix m n π•œ arising from the operator norm given by the identification with (continuous) linear maps of EuclideanSpace.

def Matrix.instL2OpNormedAddCommGroup E1 #

{π•œ : Type u_1} β†’
  {m : Type u_2} β†’
    {n : Type u_3} β†’ [RCLike π•œ] β†’ [Fintype m] β†’ [Fintype n] β†’ [DecidableEq n] β†’ NormedAddCommGroup (Matrix m n π•œ)

The norm structure on Matrix m n π•œ arising from the operator norm given by the identification with (continuous) linear maps of EuclideanSpace.

theorem Matrix.l2_opNorm_def E0 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (A : Matrix m n π•œ), β€–Aβ€– = β€–(Matrix.toEuclideanLin β‰ͺ≫ₗ LinearMap.toContinuousLinearMap) Aβ€–

theorem Matrix.l2_opNNNorm_def E0 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (A : Matrix m n π•œ), β€–Aβ€–β‚Š = β€–(Matrix.toEuclideanLin β‰ͺ≫ₗ LinearMap.toContinuousLinearMap) Aβ€–β‚Š

theorem Matrix.l2_opNorm_conjTranspose E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] (A : Matrix m n π•œ), β€–A.conjTransposeβ€– = β€–Aβ€–

theorem Matrix.l2_opNNNorm_conjTranspose E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] [inst_4 : DecidableEq m] (A : Matrix m n π•œ), β€–A.conjTransposeβ€–β‚Š = β€–Aβ€–β‚Š

theorem Matrix.l2_opNorm_conjTranspose_mul_self E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (A : Matrix m n π•œ), β€–A.conjTranspose * Aβ€– = β€–Aβ€– * β€–Aβ€–

theorem Matrix.l2_opNNNorm_conjTranspose_mul_self E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (A : Matrix m n π•œ), β€–A.conjTranspose * Aβ€–β‚Š = β€–Aβ€–β‚Š * β€–Aβ€–β‚Š

theorem Matrix.l2_opNorm_mulVec E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (A : Matrix m n π•œ) (x : EuclideanSpace π•œ n),
  β€–(EuclideanSpace.equiv m π•œ).symm (A.mulVec x.ofLp)β€– ≀ β€–Aβ€– * β€–xβ€–

theorem Matrix.l2_opNNNorm_mulVec E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (A : Matrix m n π•œ) (x : EuclideanSpace π•œ n),
  β€–(EuclideanSpace.equiv m π•œ).symm (A.mulVec x.ofLp)β€–β‚Š ≀ β€–Aβ€–β‚Š * β€–xβ€–β‚Š

theorem Matrix.l2_opNorm_mul E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} {l : Type u_4} [inst : RCLike π•œ] [inst_1 : Fintype m]
  [inst_2 : Fintype n] [inst_3 : DecidableEq n] [inst_4 : Fintype l] [inst_5 : DecidableEq l] (A : Matrix m n π•œ)
  (B : Matrix n l π•œ), β€–A * Bβ€– ≀ β€–Aβ€– * β€–Bβ€–

theorem Matrix.l2_opNNNorm_mul E1 #

βˆ€ {π•œ : Type u_1} {m : Type u_2} {n : Type u_3} {l : Type u_4} [inst : RCLike π•œ] [inst_1 : Fintype m]
  [inst_2 : Fintype n] [inst_3 : DecidableEq n] [inst_4 : Fintype l] [inst_5 : DecidableEq l] (A : Matrix m n π•œ)
  (B : Matrix n l π•œ), β€–A * Bβ€–β‚Š ≀ β€–Aβ€–β‚Š * β€–Bβ€–β‚Š

theorem Matrix.l2_opNorm_toEuclideanCLM E1 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (A : Matrix n n π•œ),
  β€–Matrix.toEuclideanCLM Aβ€– = β€–Aβ€–

theorem Matrix.l2_opNorm_diagonal E0 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (v : n β†’ π•œ),
  β€–Matrix.diagonal vβ€– = β€–vβ€–

theorem Matrix.l2_opNNNorm_diagonal E0 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (v : n β†’ π•œ),
  β€–Matrix.diagonal vβ€–β‚Š = β€–vβ€–β‚Š

def Matrix.instL2OpNormedSpace E1 #

{π•œ : Type u_1} β†’
  {m : Type u_2} β†’
    {n : Type u_3} β†’
      [inst : RCLike π•œ] β†’
        [inst_1 : Fintype m] β†’ [inst_2 : Fintype n] β†’ [inst_3 : DecidableEq n] β†’ NormedSpace π•œ (Matrix m n π•œ)

The normed algebra structure on Matrix n n π•œ arising from the operator norm given by the identification with (continuous) linear endomorphisms of EuclideanSpace π•œ n.

def Matrix.instL2OpNormedRing E1 #

{π•œ : Type u_1} β†’ {n : Type u_3} β†’ [RCLike π•œ] β†’ [Fintype n] β†’ [DecidableEq n] β†’ NormedRing (Matrix n n π•œ)

The normed ring structure on Matrix n n π•œ arising from the operator norm given by the identification with (continuous) linear endomorphisms of EuclideanSpace π•œ n.

theorem Matrix.cstar_norm_def E0 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (A : Matrix n n π•œ),
  β€–Aβ€– = β€–Matrix.toEuclideanCLM Aβ€–

This is the same as Matrix.l2_opNorm_def, but with a more bundled RHS for square matrices.

theorem Matrix.cstar_nnNorm_def E0 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n] (A : Matrix n n π•œ),
  β€–Aβ€–β‚Š = β€–Matrix.toEuclideanCLM Aβ€–β‚Š

This is the same as Matrix.l2_opNNNorm_def, but with a more bundled RHS for square matrices.

def Matrix.instL2OpNormedAlgebra E1 #

{π•œ : Type u_1} β†’
  {n : Type u_3} β†’ [inst : RCLike π•œ] β†’ [inst_1 : Fintype n] β†’ [inst_2 : DecidableEq n] β†’ NormedAlgebra π•œ (Matrix n n π•œ)

The normed algebra structure on Matrix n n π•œ arising from the operator norm given by the identification with (continuous) linear endomorphisms of EuclideanSpace π•œ n.

theorem Matrix.instCStarRing E3 #

βˆ€ {π•œ : Type u_1} {n : Type u_3} [inst : RCLike π•œ] [inst_1 : Fintype n] [inst_2 : DecidableEq n],
  CStarRing (Matrix n n π•œ)

The operator norm on Matrix n n π•œ given by the identification with (continuous) linear endomorphisms of EuclideanSpace π•œ n makes it into a L2OpRing.

def Matrix.instCStarAlgebra E1 #

{n : Type u_5} β†’ [Fintype n] β†’ [DecidableEq n] β†’ CStarAlgebra (Matrix n n β„‚)

The matrices Matrix n n β„‚ with the L2 operator norm form a CStarAlgebra.

Deprecated aliases

NameNew nameSince
Matrix.cstar_nnnorm_defMatrix.cstar_nnNorm_def2026-10-31