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.SymplecticGroup

28 declarations. Mathlib docs · Source

The Symplectic Group

This file defines the symplectic group and proves elementary properties.

Main Definitions

  • Matrix.J: the canonical 2n × 2n skew-symmetric matrix
  • symplecticGroup: the group of symplectic matrices

Implementation notes

  • SymplecticGroup.det_eq_one: Symplectic matrices have determinant 1. The proof strategy comes in two steps:
  1. Consider a symplectic matrix M over a local ring, we can construct a matrix of the form fromBlocks 1 X 0 1 s.t. the upper-left block of (fromBlocks 1 X 0 1) * M is invertible. From this we can calculate the determinant.

  2. For a symplectic matrix M over general commutative ring R, we note that by step 1, M.det - 1 = 0 in any localization at a maximal ideal in R. Therefore M.det = 1 in R.

Developing the proof in two steps is helpful, since the local ring hypothesis allows us to construct the desired X in step 1 at the residue field level, and lift back to the ring while keeping the upper-left block invertible.

TODO

  • For n = 1 the symplectic group coincides with the special linear group.

theorem Matrix.J.congr_simp E1 #

∀ (l : Type u_1) (R : Type u_2) {inst : DecidableEq l} [inst_1 : DecidableEq l] [inst_2 : CommRing R] (a a_1 : l ⊕ l),
  a = a_1 → ∀ (a_2 a_3 : l ⊕ l), a_2 = a_3 → Matrix.J l R a a_2 = Matrix.J l R a_1 a_3

def Matrix.J E3 #

(l : Type u_1) → (R : Type u_2) → [DecidableEq l] → [CommRing R] → Matrix (l ⊕ l) (l ⊕ l) R

The matrix defining the canonical skew-symmetric bilinear form.

theorem Matrix.map_J E0 #

∀ (l : Type u_1) {R : Type u_2} [inst : DecidableEq l] [inst_1 : CommRing R] {F : Type u_3} {S : Type u_4}
  [inst_2 : CommRing S] [inst_3 : FunLike F R S] [AddMonoidHomClass F R S] [OneHomClass F R S] (f : F),
  (Matrix.J l R).map ⇑f = Matrix.J l S

theorem Matrix.J_transpose E0 #

∀ (l : Type u_1) (R : Type u_2) [inst : DecidableEq l] [inst_1 : CommRing R], (Matrix.J l R).transpose = -Matrix.J l R

theorem Matrix.J_squared E1 #

∀ (l : Type u_1) (R : Type u_2) [inst : DecidableEq l] [inst_1 : CommRing R] [inst_2 : Fintype l],
  Matrix.J l R * Matrix.J l R = -1

theorem Matrix.J_inv E1 #

∀ (l : Type u_1) (R : Type u_2) [inst : DecidableEq l] [inst_1 : CommRing R] [inst_2 : Fintype l],
  (Matrix.J l R)⁻¹ = -Matrix.J l R

theorem Matrix.J_det_mul_J_det E1 #

∀ (l : Type u_1) (R : Type u_2) [inst : DecidableEq l] [inst_1 : CommRing R] [inst_2 : Fintype l],
  (Matrix.J l R).det * (Matrix.J l R).det = 1

theorem Matrix.isUnit_det_J E1 #

∀ (l : Type u_1) (R : Type u_2) [inst : DecidableEq l] [inst_1 : CommRing R] [inst_2 : Fintype l],
  IsUnit (Matrix.J l R).det

def Matrix.symplecticGroup E3 #

(l : Type u_1) →
  (R : Type u_2) →
    [inst : DecidableEq l] → [inst_1 : CommRing R] → [inst_2 : Fintype l] → Submonoid (Matrix (l ⊕ l) (l ⊕ l) R)

The group of symplectic matrices over a ring R.

theorem SymplecticGroup.mem_iff E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R}, A ∈ Matrix.symplecticGroup l R ↔ A * Matrix.J l R * A.transpose = Matrix.J l R

instance SymplecticGroup.coeMatrix E0 #

{l : Type u_1} →
  {R : Type u_2} →
    [inst : DecidableEq l] →
      [inst_1 : Fintype l] → [inst_2 : CommRing R] → Coe (↥(Matrix.symplecticGroup l R)) (Matrix (l ⊕ l) (l ⊕ l) R)

theorem SymplecticGroup.J_mem E1 #

∀ (l : Type u_1) (R : Type u_2) [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R],
  Matrix.J l R ∈ Matrix.symplecticGroup l R

def SymplecticGroup.symJ E1 #

(l : Type u_1) →
  (R : Type u_2) → [inst : DecidableEq l] → [inst_1 : Fintype l] → [inst_2 : CommRing R] → ↥(Matrix.symplecticGroup l R)

The canonical skew-symmetric matrix as an element in the symplectic group.

theorem SymplecticGroup.coe_J E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R],
  ↑(SymplecticGroup.symJ l R) = Matrix.J l R

theorem SymplecticGroup.neg_mem E1 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R}, A ∈ Matrix.symplecticGroup l R → -A ∈ Matrix.symplecticGroup l R

theorem SymplecticGroup.symplectic_det E1 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R}, A ∈ Matrix.symplecticGroup l R → IsUnit A.det

theorem SymplecticGroup.map_mem E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R} {F : Type u_3} {S : Type u_4} [inst_3 : CommRing S] [inst_4 : FunLike F R S]
  [RingHomClass F R S], A ∈ Matrix.symplecticGroup l R → ∀ (f : F), A.map ⇑f ∈ Matrix.symplecticGroup l S

theorem SymplecticGroup.transpose_mem E1 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R}, A ∈ Matrix.symplecticGroup l R → A.transpose ∈ Matrix.symplecticGroup l R

theorem SymplecticGroup.transpose_mem_iff E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R}, A.transpose ∈ Matrix.symplecticGroup l R ↔ A ∈ Matrix.symplecticGroup l R

theorem SymplecticGroup.mem_iff' E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R}, A ∈ Matrix.symplecticGroup l R ↔ A.transpose * Matrix.J l R * A = Matrix.J l R

instance SymplecticGroup.hasInv E0 #

{l : Type u_1} →
  {R : Type u_2} →
    [inst : DecidableEq l] → [inst_1 : Fintype l] → [inst_2 : CommRing R] → Inv ↥(Matrix.symplecticGroup l R)

theorem SymplecticGroup.coe_inv E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  (A : ↥(Matrix.symplecticGroup l R)), ↑A⁻¹ = -Matrix.J l R * (↑A).transpose * Matrix.J l R

theorem SymplecticGroup.inv_left_mul_aux E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A : Matrix (l ⊕ l) (l ⊕ l) R}, A ∈ Matrix.symplecticGroup l R → -(Matrix.J l R * A.transpose * Matrix.J l R * A) = 1

theorem SymplecticGroup.coe_inv' E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  (A : ↥(Matrix.symplecticGroup l R)), ↑A⁻¹ = (↑A)⁻¹

theorem SymplecticGroup.inv_eq_symplectic_inv E1 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R],
  ∀ A ∈ Matrix.symplecticGroup l R, A⁻¹ = -Matrix.J l R * A.transpose * Matrix.J l R

instance SymplecticGroup.instGroupSubtypeMatrixSumMemSubmonoidSymplecticGroup E0 #

{l : Type u_1} →
  {R : Type u_2} →
    [inst : DecidableEq l] → [inst_1 : Fintype l] → [inst_2 : CommRing R] → Group ↥(Matrix.symplecticGroup l R)

theorem SymplecticGroup.fromBlocks_mem_iff E0 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {A B C D : Matrix l l R},
  Matrix.fromBlocks A B C D ∈ Matrix.symplecticGroup l R ↔
    A.transpose * C = C.transpose * A ∧ B.transpose * D = D.transpose * B ∧ A.transpose * D - C.transpose * B = 1

theorem SymplecticGroup.det_eq_one E1 #

∀ {l : Type u_1} {R : Type u_2} [inst : DecidableEq l] [inst_1 : Fintype l] [inst_2 : CommRing R]
  {M : Matrix (l ⊕ l) (l ⊕ l) R}, M ∈ Matrix.symplecticGroup l R → M.det = 1

Symplectic matrices have determinant 1.

The proof strategy comes in two steps:

  1. Consider a symplectic matrix M over a local ring, we can construct a matrix of the form fromBlocks 1 X 0 1 s.t. the upper-left block of (fromBlocks 1 X 0 1) * M is invertible. From this we can calculate the determinant.

  2. For a symplectic matrix M over general commutative ring R, we note that by step 1, M.det - 1 = 0 in any localization at a maximal ideal in R. Therefore M.det = 1 in R.