# Documentation

Mathlib.LinearAlgebra.Matrix.Hermitian

# Hermitian matrices #

This file defines hermitian matrices and some basic results about them.

See also IsSelfAdjoint, which generalizes this definition to other star rings.

## Main definition #

• Matrix.IsHermitian : a matrix A : Matrix n n α is hermitian if Aᴴ = A.

## Tags #

def Matrix.IsHermitian {α : Type u_1} {n : Type u_4} [Star α] (A : Matrix n n α) :

A matrix is hermitian if it is equal to its conjugate transpose. On the reals, this definition captures symmetric matrices.

Instances For
theorem Matrix.IsHermitian.eq {α : Type u_1} {n : Type u_4} [Star α] {A : Matrix n n α} (h : ) :
theorem Matrix.IsHermitian.isSelfAdjoint {α : Type u_1} {n : Type u_4} [Star α] {A : Matrix n n α} (h : ) :
theorem Matrix.IsHermitian.ext {α : Type u_1} {n : Type u_4} [Star α] {A : Matrix n n α} :
(∀ (i j : n), star (A j i) = A i j) →
theorem Matrix.IsHermitian.apply {α : Type u_1} {n : Type u_4} [Star α] {A : Matrix n n α} (h : ) (i : n) (j : n) :
star (A j i) = A i j
theorem Matrix.IsHermitian.ext_iff {α : Type u_1} {n : Type u_4} [Star α] {A : Matrix n n α} :
∀ (i j : n), star (A j i) = A i j
@[simp]
theorem Matrix.IsHermitian.map {α : Type u_1} {β : Type u_2} {n : Type u_4} [Star α] [Star β] {A : Matrix n n α} (h : ) (f : αβ) (hf : Function.Semiconj f star star) :
theorem Matrix.IsHermitian.transpose {α : Type u_1} {n : Type u_4} [Star α] {A : Matrix n n α} (h : ) :
@[simp]
theorem Matrix.isHermitian_transpose_iff {α : Type u_1} {n : Type u_4} [Star α] (A : Matrix n n α) :
theorem Matrix.IsHermitian.conjTranspose {α : Type u_1} {n : Type u_4} [Star α] {A : Matrix n n α} (h : ) :
@[simp]
theorem Matrix.IsHermitian.submatrix {α : Type u_1} {m : Type u_3} {n : Type u_4} [Star α] {A : Matrix n n α} (h : ) (f : mn) :
@[simp]
theorem Matrix.isHermitian_submatrix_equiv {α : Type u_1} {m : Type u_3} {n : Type u_4} [Star α] {A : Matrix n n α} (e : m n) :
@[simp]
theorem Matrix.isHermitian_conjTranspose_iff {α : Type u_1} {n : Type u_4} [] (A : Matrix n n α) :
theorem Matrix.IsHermitian.fromBlocks {α : Type u_1} {m : Type u_3} {n : Type u_4} [] {A : Matrix m m α} {B : Matrix m n α} {C : Matrix n m α} {D : Matrix n n α} (hA : ) (hBC : ) (hD : ) :

A block matrix A.from_blocks B C D is hermitian, if A and D are hermitian and Bᴴ = C.

theorem Matrix.isHermitian_fromBlocks_iff {α : Type u_1} {m : Type u_3} {n : Type u_4} [] {A : Matrix m m α} {B : Matrix m n α} {C : Matrix n m α} {D : Matrix n n α} :

This is the iff version of Matrix.IsHermitian.fromBlocks.

theorem Matrix.isHermitian_diagonal_of_self_adjoint {α : Type u_1} {n : Type u_4} [] [] [] (v : nα) (h : ) :

A diagonal matrix is hermitian if the entries are self-adjoint

@[simp]
theorem Matrix.isHermitian_diagonal {α : Type u_1} {n : Type u_4} [] [] [] [] (v : nα) :

A diagonal matrix is hermitian if the entries have the trivial star operation (such as on the reals).

@[simp]
theorem Matrix.isHermitian_zero {α : Type u_1} {n : Type u_4} [] [] :
@[simp]
theorem Matrix.IsHermitian.add {α : Type u_1} {n : Type u_4} [] [] {A : Matrix n n α} {B : Matrix n n α} (hA : ) (hB : ) :
theorem Matrix.isHermitian_add_transpose_self {α : Type u_1} {n : Type u_4} [] [] (A : Matrix n n α) :
theorem Matrix.isHermitian_transpose_add_self {α : Type u_1} {n : Type u_4} [] [] (A : Matrix n n α) :
@[simp]
theorem Matrix.IsHermitian.neg {α : Type u_1} {n : Type u_4} [] [] {A : Matrix n n α} (h : ) :
@[simp]
theorem Matrix.IsHermitian.sub {α : Type u_1} {n : Type u_4} [] [] {A : Matrix n n α} {B : Matrix n n α} (hA : ) (hB : ) :
theorem Matrix.isHermitian_mul_conjTranspose_self {α : Type u_1} {m : Type u_3} {n : Type u_4} [] [] (A : Matrix m n α) :

Note this is more general than IsSelfAdjoint.mul_star_self as B can be rectangular.

theorem Matrix.isHermitian_transpose_mul_self {α : Type u_1} {m : Type u_3} {n : Type u_4} [] [] (A : Matrix m n α) :

Note this is more general than IsSelfAdjoint.star_mul_self as B can be rectangular.

theorem Matrix.isHermitian_conjTranspose_mul_mul {α : Type u_1} {m : Type u_3} {n : Type u_4} [] [] {A : Matrix m m α} (B : Matrix m n α) (hA : ) :

Note this is more general than IsSelfAdjoint.conjugate' as B can be rectangular.

theorem Matrix.isHermitian_mul_mul_conjTranspose {α : Type u_1} {m : Type u_3} {n : Type u_4} [] [] {A : Matrix m m α} (B : Matrix n m α) (hA : ) :

Note this is more general than IsSelfAdjoint.conjugate as B can be rectangular.

@[simp]
theorem Matrix.isHermitian_one {α : Type u_1} {n : Type u_4} [] [] [] :

Note this is more general for matrices than isSelfAdjoint_one as it does not require Fintype n, which is necessary for Monoid (Matrix n n R).

theorem Matrix.IsHermitian.inv {α : Type u_1} {m : Type u_3} [] [] [] [] {A : Matrix m m α} (hA : ) :
@[simp]
theorem Matrix.isHermitian_inv {α : Type u_1} {m : Type u_3} [] [] [] [] (A : Matrix m m α) [] :
theorem Matrix.IsHermitian.adjugate {α : Type u_1} {m : Type u_3} [] [] [] [] {A : Matrix m m α} (hA : ) :
theorem Matrix.IsHermitian.coe_re_apply_self {α : Type u_1} {n : Type u_4} [] {A : Matrix n n α} (h : ) (i : n) :
↑(IsROrC.re (A i i)) = A i i

The diagonal elements of a complex hermitian matrix are real.

theorem Matrix.IsHermitian.coe_re_diag {α : Type u_1} {n : Type u_4} [] {A : Matrix n n α} (h : ) :
(fun i => ↑(IsROrC.re ())) =

The diagonal elements of a complex hermitian matrix are real.

theorem Matrix.isHermitian_iff_isSymmetric {α : Type u_1} {n : Type u_4} [] [] [] {A : Matrix n n α} :
LinearMap.IsSymmetric (Matrix.toEuclideanLin A)

A matrix is hermitian iff the corresponding linear map is self adjoint.