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 / V07. Linear algebra

Mathlib.LinearAlgebra.UnitaryGroup

55 declarations. Mathlib docs · Source

The Unitary Group

This file defines elements of the unitary group Matrix.unitaryGroup n α, where α is a StarRing. This consists of all n by n matrices with entries in α such that the star-transpose is its inverse. In addition, we define the group structure on Matrix.unitaryGroup n α, and the embedding into the general linear group LinearMap.GeneralLinearGroup α (n → α).

We also define the orthogonal group Matrix.orthogonalGroup n R, where R is a CommRing.

Main Definitions

  • Matrix.unitaryGroup is the submonoid of matrices where the star-transpose is the inverse; the group structure (under multiplication) is inherited from a more general unitary construction.
  • Matrix.UnitaryGroup.embeddingGL is the embedding Matrix.unitaryGroup n α → GLₙ(α), where GLₙ(α) is LinearMap.GeneralLinearGroup α (n → α).
  • Matrix.orthogonalGroup is the submonoid of matrices where the transpose is the inverse.

References

  • https://en.wikipedia.org/wiki/Unitary_group

Tags

matrix group, group, unitary group, orthogonal group

Statements which hold over non-commutative rings.

theorem Matrix.diagonal_mem_unitary E0 #

∀ {n : Type u_2} {R : Type u_3} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring R] [inst_3 : StarRing R]
  {d : n → R}, Matrix.diagonal d ∈ unitary (Matrix n n R) ↔ d ∈ unitary (n → R)

Diagonal matrices are unitary if their entries are.

theorem Matrix.natCast_mem_unitary E0 #

∀ {n : Type u_2} {R : Type u_3} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring R] [inst_3 : StarRing R]
  [Nonempty n] {k : ℕ}, ↑k ∈ unitary (Matrix n n R) ↔ ↑k ∈ unitary R

theorem Matrix.ofNat_mem_unitary E0 #

∀ {n : Type u_2} {R : Type u_3} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : Semiring R] [inst_3 : StarRing R]
  [Nonempty n] {k : ℕ} [inst_5 : k.AtLeastTwo], OfNat.ofNat k ∈ unitary (Matrix n n R) ↔ OfNat.ofNat k ∈ unitary R

theorem Matrix.submatrix_equiv_mem_unitary E0 #

∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
  [inst_3 : Fintype n] [inst_4 : Semiring R] [inst_5 : StarRing R] {A : Matrix m m R} {e₁ e₂ : n ≃ m},
  A.submatrix ⇑e₁ ⇑e₂ ∈ unitary (Matrix n n R) ↔ A ∈ unitary (Matrix m m R)

A reindexed unitary matrix is unitary.

theorem Matrix.kronecker_mem_unitary E1 #

∀ {m : Type u_1} {n : Type u_2} {R : Type u_3} [inst : DecidableEq m] [inst_1 : DecidableEq n] [inst_2 : Fintype m]
  [inst_3 : Fintype n] [inst_4 : Semiring R] [inst_5 : StarRing R] {U₁ : Matrix n n R} {U₂ : Matrix m m R},
  U₁ ∈ unitary (Matrix n n R) →
    U₂ ∈ unitary (Matrix m m R) → Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) U₁ U₂ ∈ unitary (Matrix (n × m) (n × m) R)

The kronecker product of two unitary matrices is unitary.

abbrev Matrix.unitaryGroup E3 #

(n : Type u) →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → (α : Type v) → [inst_2 : CommRing α] → [StarRing α] → Submonoid (Matrix n n α)

Matrix.unitaryGroup n is the group of n by n matrices where the star-transpose is the inverse.

theorem Matrix.mem_unitaryGroup_iff E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  {A : Matrix n n α}, A ∈ Matrix.unitaryGroup n α ↔ A * star A = 1

theorem Matrix.mem_unitaryGroup_iff' E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  {A : Matrix n n α}, A ∈ Matrix.unitaryGroup n α ↔ star A * A = 1

theorem Matrix.det_of_mem_unitary E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  {A : Matrix n n α}, A ∈ Matrix.unitaryGroup n α → A.det ∈ unitary α

theorem Unitary.tmul_mem E1 #

∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Semiring B]
  [inst_3 : Algebra R A] [inst_4 : Algebra R B] [inst_5 : StarRing A] [inst_6 : StarRing B] [inst_7 : StarRing R]
  [inst_8 : StarModule R A] [inst_9 : StarModule R B] {U : A} {V : B},
  U ∈ unitary A → V ∈ unitary B → U ⊗ₜ[R] V ∈ unitary (TensorProduct R A B)

theorem Matrix.kroneckerTMul_mem_unitary E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type u_1} {A : Type u_2} {B : Type u_3}
  [inst_2 : CommSemiring R] [inst_3 : Semiring A] [inst_4 : Semiring B] [inst_5 : Algebra R A] [inst_6 : Algebra R B]
  [inst_7 : StarRing A] [inst_8 : StarRing B] [inst_9 : StarRing R] [inst_10 : StarModule R A]
  [inst_11 : StarModule R B] {m : Type u_4} [inst_12 : Fintype m] [inst_13 : DecidableEq m] {U : Matrix m m A}
  {V : Matrix n n B},
  U ∈ unitary (Matrix m m A) →
    V ∈ unitary (Matrix n n B) →
      Matrix.kroneckerMap (TensorProduct.tmul R) U V ∈ unitary (Matrix (m × n) (m × n) (TensorProduct R A B))

instance Matrix.UnitaryGroup.coeMatrix E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} → [inst_2 : CommRing α] → [inst_3 : StarRing α] → Coe (↥(Matrix.unitaryGroup n α)) (Matrix n n α)

instance Matrix.UnitaryGroup.coeFun E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} → [inst_2 : CommRing α] → [inst_3 : StarRing α] → CoeFun ↥(Matrix.unitaryGroup n α) fun x ↦ n → n → α

def Matrix.UnitaryGroup.toLin' E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} → [inst_2 : CommRing α] → [inst_3 : StarRing α] → ↥(Matrix.unitaryGroup n α) → (n → α) →ₗ[α] n → α

Matrix.UnitaryGroup.toLin' A is matrix multiplication of vectors by A, as a linear map.

After the group structure on Matrix.unitaryGroup n is defined, we show in Matrix.UnitaryGroup.toLinearEquiv that this gives a linear equivalence.

theorem Matrix.UnitaryGroup.ext_iff E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A B : ↥(Matrix.unitaryGroup n α)), A = B ↔ ∀ (i j : n), ↑A i j = ↑B i j

theorem Matrix.UnitaryGroup.ext E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A B : ↥(Matrix.unitaryGroup n α)), (∀ (i j : n), ↑A i j = ↑B i j) → A = B

theorem Matrix.UnitaryGroup.star_mul_self E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A : ↥(Matrix.unitaryGroup n α)), star ↑A * ↑A = 1

theorem Matrix.UnitaryGroup.det_isUnit E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A : ↥(Matrix.unitaryGroup n α)), IsUnit (↑A).det

theorem Matrix.UnitaryGroup.inv_val E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A : ↥(Matrix.unitaryGroup n α)), ↑A⁻¹ = star ↑A

theorem Matrix.UnitaryGroup.inv_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A : ↥(Matrix.unitaryGroup n α)), ↑A⁻¹ = star ↑A

theorem Matrix.UnitaryGroup.mul_val E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A B : ↥(Matrix.unitaryGroup n α)), ↑(A * B) = ↑A * ↑B

theorem Matrix.UnitaryGroup.mul_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A B : ↥(Matrix.unitaryGroup n α)), ↑(A * B) = ↑A * ↑B

theorem Matrix.UnitaryGroup.one_val E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α],
  ↑1 = 1

theorem Matrix.UnitaryGroup.one_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α],
  ↑1 = 1

theorem Matrix.UnitaryGroup.toLin'_mul E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A B : ↥(Matrix.unitaryGroup n α)),
  Matrix.UnitaryGroup.toLin' (A * B) = Matrix.UnitaryGroup.toLin' A ∘ₗ Matrix.UnitaryGroup.toLin' B

theorem Matrix.UnitaryGroup.toLin'_one E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α],
  Matrix.UnitaryGroup.toLin' 1 = LinearMap.id

def Matrix.UnitaryGroup.toLinearEquiv E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} → [inst_2 : CommRing α] → [inst_3 : StarRing α] → ↥(Matrix.unitaryGroup n α) → (n → α) ≃ₗ[α] n → α

Matrix.unitaryGroup.toLinearEquiv A is matrix multiplication of vectors by A, as a linear equivalence.

def Matrix.UnitaryGroup.toGL E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} →
        [inst_2 : CommRing α] →
          [inst_3 : StarRing α] → ↥(Matrix.unitaryGroup n α) → LinearMap.GeneralLinearGroup α (n → α)

Matrix.unitaryGroup.toGL is the map from the unitary group to the general linear group

theorem Matrix.UnitaryGroup.coe_toGL E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A : ↥(Matrix.unitaryGroup n α)), ↑(Matrix.UnitaryGroup.toGL A) = Matrix.UnitaryGroup.toLin' A

theorem Matrix.UnitaryGroup.toGL_one E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α],
  Matrix.UnitaryGroup.toGL 1 = 1

theorem Matrix.UnitaryGroup.toGL_mul E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A B : ↥(Matrix.unitaryGroup n α)),
  Matrix.UnitaryGroup.toGL (A * B) = Matrix.UnitaryGroup.toGL A * Matrix.UnitaryGroup.toGL B

def Matrix.UnitaryGroup.embeddingGL E3 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} →
        [inst_2 : CommRing α] →
          [inst_3 : StarRing α] → ↥(Matrix.unitaryGroup n α) →* LinearMap.GeneralLinearGroup α (n → α)

Matrix.unitaryGroup.embeddingGL is the embedding from Matrix.unitaryGroup n α to LinearMap.GeneralLinearGroup n α.

theorem Matrix.transpose_mem_unitaryGroup_iff E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  {U : Matrix n n α}, U.transpose ∈ Matrix.unitaryGroup n α ↔ U ∈ Matrix.unitaryGroup n α

theorem Matrix.map_star_mem_unitaryGroup_iff E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  {U : Matrix n n α}, U.map star ∈ Matrix.unitaryGroup n α ↔ U ∈ Matrix.unitaryGroup n α

def Matrix.UnitaryGroup.transpose E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} →
        [inst_2 : CommRing α] → [inst_3 : StarRing α] → ↥(Matrix.unitaryGroup n α) → ↥(Matrix.unitaryGroup n α)

The transpose of a unitary matrix as a unitary matrix.

theorem Matrix.UnitaryGroup.transpose_coe E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (U : ↥(Matrix.unitaryGroup n α)), ↑(Matrix.UnitaryGroup.transpose U) = (↑U).transpose

def Matrix.UnitaryGroup.map_star E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} →
        [inst_2 : CommRing α] → [inst_3 : StarRing α] → ↥(Matrix.unitaryGroup n α) → ↥(Matrix.unitaryGroup n α)

The Matrix.map star of a unitary matrix (i.e., taking the star of each element in the matrix) as a unitary matrix.

theorem Matrix.UnitaryGroup.map_star_coe E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (U : ↥(Matrix.unitaryGroup n α)), ↑(Matrix.UnitaryGroup.map_star U) = (↑U).map star

theorem Matrix.UnitaryGroup.map_star_inv_eq_transpose E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (U : ↥(Matrix.unitaryGroup n α)), (Matrix.UnitaryGroup.map_star U)⁻¹ = Matrix.UnitaryGroup.transpose U

theorem Matrix.UnitaryGroup.transpose_inv_eq_map_star E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (U : ↥(Matrix.unitaryGroup n α)), (Matrix.UnitaryGroup.transpose U)⁻¹ = Matrix.UnitaryGroup.map_star U

def Matrix.specialUnitaryGroup E3 #

(n : Type u) →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → (α : Type v) → [inst_2 : CommRing α] → [StarRing α] → Submonoid (Matrix n n α)

Matrix.specialUnitaryGroup is the group of unitary n by n matrices where the determinant is 1. (This definition is only correct if 2 is invertible.)

theorem Matrix.specialUnitaryGroup_le_unitaryGroup E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α],
  Matrix.specialUnitaryGroup n α ≤ Matrix.unitaryGroup n α

theorem Matrix.mem_specialUnitaryGroup_iff E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  {A : Matrix n n α}, A ∈ Matrix.specialUnitaryGroup n α ↔ A ∈ Matrix.unitaryGroup n α ∧ A.det = 1

instance Matrix.instStarMulSubtypeMemSubmonoidSpecialUnitaryGroup E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} → [inst_2 : CommRing α] → [inst_3 : StarRing α] → StarMul ↥(Matrix.specialUnitaryGroup n α)

theorem Matrix.specialUnitaryGroup.coe_star E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A : ↥(Matrix.specialUnitaryGroup n α)), ↑(star A) = star ↑A

instance Matrix.instInvSubtypeMemSubmonoidSpecialUnitaryGroup E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} → [inst_2 : CommRing α] → [inst_3 : StarRing α] → Inv ↥(Matrix.specialUnitaryGroup n α)

theorem Matrix.star_eq_inv E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {α : Type v} [inst_2 : CommRing α] [inst_3 : StarRing α]
  (A : ↥(Matrix.specialUnitaryGroup n α)), star A = A⁻¹

instance Matrix.instGroupSubtypeMemSubmonoidSpecialUnitaryGroup E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {α : Type v} → [inst_2 : CommRing α] → [inst_3 : StarRing α] → Group ↥(Matrix.specialUnitaryGroup n α)

abbrev Matrix.orthogonalGroup E3 #

(n : Type u) →
  [inst : DecidableEq n] → [inst_1 : Fintype n] → (R : Type v) → [inst_2 : CommRing R] → Submonoid (Matrix n n R)

Matrix.orthogonalGroup n is the group of n by n matrices where the transpose is the inverse.

theorem Matrix.mem_orthogonalGroup_iff E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {A : Matrix n n R},
  A ∈ Matrix.orthogonalGroup n R ↔ A * A.transpose = 1

theorem Matrix.mem_orthogonalGroup_iff' E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {A : Matrix n n R},
  A ∈ Matrix.orthogonalGroup n R ↔ A.transpose * A = 1

abbrev Matrix.specialOrthogonalGroup E3 #

(n : Type u) →
  [inst : DecidableEq n] → [inst_1 : Fintype n] → (R : Type v) → [inst_2 : CommRing R] → Submonoid (Matrix n n R)

Matrix.specialOrthogonalGroup n is the group of orthogonal n by n where the determinant is one. (This definition is only correct if 2 is invertible.)

theorem Matrix.mem_specialOrthogonalGroup_iff E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {A : Matrix n n R},
  A ∈ Matrix.specialOrthogonalGroup n R ↔ A ∈ Matrix.orthogonalGroup n R ∧ A.det = 1

theorem Matrix.of_mem_specialOrthogonalGroup_fin_two_iff E0 #

∀ {R : Type v} [inst : CommRing R] {a b c d : R},
  !![a, b; c, d] ∈ Matrix.specialOrthogonalGroup (Fin 2) R ↔ a = d ∧ b = -c ∧ a ^ 2 + b ^ 2 = 1

theorem Matrix.mem_specialOrthogonalGroup_fin_two_iff E0 #

∀ {R : Type v} [inst : CommRing R] {M : Matrix (Fin 2) (Fin 2) R},
  M ∈ Matrix.specialOrthogonalGroup (Fin 2) R ↔ M 0 0 = M 1 1 ∧ M 0 1 = -M 1 0 ∧ M 0 0 ^ 2 + M 0 1 ^ 2 = 1