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.Matrix.FixedDetMatrices

25 declarations. Mathlib docs · Source

Matrices with fixed determinant

This file defines the type of matrices with fixed determinant m and proves some basic results about them.

We also prove that the subgroup of SL(2,ℤ) generated by S and T is the whole group.

Note: Some of this was done originally in Lean 3 in the kbb (https://github.com/kim-em/kbb/tree/master) repository, so credit to those authors.

theorem FixedDetMatrix.congr_simp E1 #

∀ (n : Type u_1) {inst : DecidableEq n} [inst_1 : DecidableEq n] [inst_2 : Fintype n] (R : Type u_2)
  [inst_3 : CommRing R] (m m_1 : R), m = m_1 → FixedDetMatrix n R m = FixedDetMatrix n R m_1

def FixedDetMatrix E1 #

(n : Type u_1) → [DecidableEq n] → [Fintype n] → (R : Type u_2) → [CommRing R] → R → Type (max 0 u_1 u_2)

The subtype of matrices with fixed determinant m

theorem FixedDetMatrices.ext' E2 #

∀ (n : Type u_1) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type u_2) [inst_2 : CommRing R] {m : R}
  {A B : FixedDetMatrix n R m}, ↑A = ↑B → A = B

Extensionality theorem for FixedDetMatrix with respect to the underlying matrix, not entrywise.

theorem FixedDetMatrices.ext E1 #

∀ (n : Type u_1) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type u_2) [inst_2 : CommRing R] {m : R}
  {A B : FixedDetMatrix n R m}, (∀ (i j : n), ↑A i j = ↑B i j) → A = B

theorem FixedDetMatrices.ext_iff E0 #

∀ {n : Type u_1} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type u_2} [inst_2 : CommRing R] {m : R}
  {A B : FixedDetMatrix n R m}, A = B ↔ ∀ (i j : n), ↑A i j = ↑B i j

instance FixedDetMatrices.instSMulSpecialLinearGroupFixedDetMatrix E0 #

(n : Type u_1) →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      (R : Type u_2) → [inst_2 : CommRing R] → (m : R) → SMul (Matrix.SpecialLinearGroup n R) (FixedDetMatrix n R m)

theorem FixedDetMatrices.smul_def E0 #

∀ (n : Type u_1) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type u_2) [inst_2 : CommRing R] (m : R)
  (g : Matrix.SpecialLinearGroup n R) (A : FixedDetMatrix n R m), g • A = ⟨↑g * ↑A, ⋯⟩

instance FixedDetMatrices.instMulActionSpecialLinearGroupFixedDetMatrix E0 #

(n : Type u_1) →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      (R : Type u_2) →
        [inst_2 : CommRing R] → (m : R) → MulAction (Matrix.SpecialLinearGroup n R) (FixedDetMatrix n R m)

theorem FixedDetMatrices.smul_coe E0 #

∀ (n : Type u_1) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type u_2) [inst_2 : CommRing R] (m : R)
  (g : Matrix.SpecialLinearGroup n R) (A : FixedDetMatrix n R m), ↑(g • A) = ↑g * ↑A

def FixedDetMatrices.reps E1 #

(m : ℤ) → Set (FixedDetMatrix (Fin 2) ℤ m)

Set of representatives for the orbits under S and T

def FixedDetMatrices.reduceStep E1 #

{m : ℤ} → FixedDetMatrix (Fin 2) ℤ m → FixedDetMatrix (Fin 2) ℤ m

Reduction step for matrices in Δ m which moves the matrices towards reps

def FixedDetMatrices.reduce_rec E1 #

{m : ℤ} →
  {C : FixedDetMatrix (Fin 2) ℤ m → Sort u_3} →
    ((A : FixedDetMatrix (Fin 2) ℤ m) → ↑A 1 0 = 0 → C A) →
      ((A : FixedDetMatrix (Fin 2) ℤ m) → ↑A 1 0 ≠ 0 → C (FixedDetMatrices.reduceStep A) → C A) →
        (A : FixedDetMatrix (Fin 2) ℤ m) → C A

Reduction lemma for integral FixedDetMatrices.

def FixedDetMatrices.reduce E1 #

{m : ℤ} → FixedDetMatrix (Fin 2) ℤ m → FixedDetMatrix (Fin 2) ℤ m

Map from Δ m → Δ m which reduces a FixedDetMatrix towards a representative element in reps

theorem FixedDetMatrices.reduce_of_pos E1 #

∀ {m : ℤ} {A : FixedDetMatrix (Fin 2) ℤ m},
  ↑A 1 0 = 0 → 0 < ↑A 0 0 → FixedDetMatrices.reduce A = ModularGroup.T ^ (-(↑A 0 1 / ↑A 1 1)) • A

theorem FixedDetMatrices.reduce_of_not_pos E1 #

∀ {m : ℤ} {A : FixedDetMatrix (Fin 2) ℤ m},
  ↑A 1 0 = 0 →
    ¬0 < ↑A 0 0 →
      FixedDetMatrices.reduce A = ModularGroup.T ^ (-(-↑A 0 1 / -↑A 1 1)) • ModularGroup.S • ModularGroup.S • A

theorem FixedDetMatrices.reduce_reduceStep E0 #

∀ {m : ℤ} {A : FixedDetMatrix (Fin 2) ℤ m},
  ↑A 1 0 ≠ 0 → FixedDetMatrices.reduce (FixedDetMatrices.reduceStep A) = FixedDetMatrices.reduce A

theorem FixedDetMatrices.reps_entries_le_m' E1 #

∀ {m : ℤ} {A : FixedDetMatrix (Fin 2) ℤ m},
  A ∈ FixedDetMatrices.reps m → ∀ (i j : Fin 2), ↑A i j ∈ Finset.Icc (-|m|) |m|

An auxiliary result bounding the size of the entries of the representatives in reps

theorem FixedDetMatrices.reps_zero_empty E0 #

FixedDetMatrices.reps 0 = ∅

instance FixedDetMatrices.repsFintype E0 #

(k : ℤ) → Fintype ↑(FixedDetMatrices.reps k)

theorem FixedDetMatrices.S_smul_four E0 #

∀ {m : ℤ} (A : FixedDetMatrix (Fin 2) ℤ m), ModularGroup.S • ModularGroup.S • ModularGroup.S • ModularGroup.S • A = A

theorem FixedDetMatrices.T_S_rel_smul E0 #

∀ {m : ℤ} (A : FixedDetMatrix (Fin 2) ℤ m),
  ModularGroup.S •
      ModularGroup.S • ModularGroup.S • ModularGroup.T • ModularGroup.S • ModularGroup.T • ModularGroup.S • A =
    ModularGroup.T⁻¹ • A

theorem FixedDetMatrices.reduce_mem_reps E1 #

∀ {m : ℤ}, m ≠ 0 → ∀ (A : FixedDetMatrix (Fin 2) ℤ m), FixedDetMatrices.reduce A ∈ FixedDetMatrices.reps m

theorem FixedDetMatrices.induction_on E1 #

∀ {m : ℤ} {C : FixedDetMatrix (Fin 2) ℤ m → Prop} {A : FixedDetMatrix (Fin 2) ℤ m},
  m ≠ 0 →
    (∀ (A : FixedDetMatrix (Fin 2) ℤ m), ↑A 1 0 = 0 → 0 < ↑A 0 0 → 0 ≤ ↑A 0 1 → |↑A 0 1| < |↑A 1 1| → C A) →
      (∀ (B : FixedDetMatrix (Fin 2) ℤ m), C B → C (ModularGroup.S • B)) →
        (∀ (B : FixedDetMatrix (Fin 2) ℤ m), C B → C (ModularGroup.T • B)) → C A

theorem FixedDetMatrices.reps_one_id E1 #

∀ (A : FixedDetMatrix (Fin 2) ℤ 1), ↑A 1 0 = 0 → 0 < ↑A 0 0 → |↑A 0 1| < |↑A 1 1| → A = 1

theorem SpecialLinearGroup.SL2Z_generators E1 #

Subgroup.closure {ModularGroup.S, ModularGroup.T} = ⊤

SL(2, ℤ) is generated by S and T.