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.GeneralLinearGroup.Defs

107 declarations. Mathlib docs · Source

The General Linear group $GL(n, R)$

This file defines the elements of the General Linear group Matrix.GeneralLinearGroup n R, consisting of all invertible n by n R-matrices.

Main definitions

  • Matrix.GeneralLinearGroup is the type of matrices over R which are units in the matrix ring.
  • Matrix.GLPos gives the subgroup of matrices with positive determinant (over a linear ordered ring).

Tags

matrix group, group, matrix inverse

abbrev Matrix.GeneralLinearGroup E3 #

(n : Type u) → (R : Type v) → [DecidableEq n] → [Fintype n] → [Semiring R] → Type (max v u)

GL n R is the group of n by n R-matrices with unit determinant. Defined as a subtype of matrices

def Matrix.termGL E1 #

Lean.ParserDescr

GL n R is the group of n by n R-matrices with unit determinant. Defined as a subtype of matrices

def Matrix.GeneralLinearGroup.scalar E1 #

(n : Type u) → [inst : DecidableEq n] → [inst_1 : Fintype n] → {R : Type v} → [inst_2 : Semiring R] → Rˣ →* GL n R

Scalar matrix as an element of GL n R.

instance Matrix.GeneralLinearGroup.instCoeFun E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {R : Type v} → [inst_2 : Semiring R] → CoeFun (GL n R) fun x ↦ n → n → R

theorem Matrix.GeneralLinearGroup.coe_scalar E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : Semiring R] (u : Rˣ),
  ↑((Matrix.GeneralLinearGroup.scalar n) u) = (Matrix.scalar n) ↑u

instance Matrix.GeneralLinearGroup.instSMul E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → {m : Type u_1} → SMul (GL n R) (Matrix n m R)

theorem Matrix.GeneralLinearGroup.smul_def E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {m : Type u_1}
  (g : GL n R) (A : Matrix n m R), g • A = ↑g * A

instance Matrix.GeneralLinearGroup.instDistribMulAction E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} → [inst_2 : CommRing R] → {m : Type u_2} → DistribMulAction (GL n R) (Matrix n m R)

theorem Matrix.GeneralLinearGroup.scalar_commute E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (u : Rˣ) (A : GL n R),
  (Matrix.GeneralLinearGroup.scalar n) u * A = A * (Matrix.GeneralLinearGroup.scalar n) u

def Matrix.GeneralLinearGroup.det E1 #

{n : Type u} → [inst : DecidableEq n] → [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → GL n R →* Rˣ

The determinant of a unit matrix is itself a unit.

theorem Matrix.GeneralLinearGroup.val_inv_det_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A : GL n R),
  ↑(Matrix.GeneralLinearGroup.det A)⁻¹ = (↑A⁻¹).det

theorem Matrix.GeneralLinearGroup.val_det_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A : GL n R),
  ↑(Matrix.GeneralLinearGroup.det A) = (↑A).det

theorem Matrix.GeneralLinearGroup.det_ne_zero E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] [Nontrivial R]
  (g : GL n R), (↑g).det ≠ 0

theorem Matrix.GeneralLinearGroup.det_scalar E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (u : Rˣ),
  Matrix.GeneralLinearGroup.det ((Matrix.GeneralLinearGroup.scalar n) u) = u ^ Fintype.card n

theorem Matrix.GeneralLinearGroup.det_surjective E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] [Nonempty n],
  Function.Surjective ⇑Matrix.GeneralLinearGroup.det

def Matrix.GeneralLinearGroup.toLin E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → GL n R ≃* LinearMap.GeneralLinearGroup R (n → R)

The groups GL n R (notation for Matrix.GeneralLinearGroup n R) and LinearMap.GeneralLinearGroup R (n → R) are multiplicatively equivalent

def Matrix.GeneralLinearGroup.toLin' E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} →
        [inst_2 : CommRing R] →
          {V : Type u_1} →
            [inst_3 : AddCommGroup V] →
              [inst_4 : Module R V] → Module.Basis n R V → GL n R ≃* LinearMap.GeneralLinearGroup R V

The isomorphism from GL n R to the general linear group of a module associated with a basis.

theorem Matrix.GeneralLinearGroup.toLin'_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {V : Type u_1}
  [inst_3 : AddCommGroup V] [inst_4 : Module R V] (b : Module.Basis n R V) (M : GL n R) (v : V),
  ((Matrix.GeneralLinearGroup.toLin' b) M).toLinearEquiv v = (Fintype.linearCombination R ⇑b) ((↑M).mulVec ⇑(b.repr v))

def Matrix.GeneralLinearGroup.mk' E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → (A : Matrix n n R) → Invertible A.det → GL n R

Given a matrix with invertible determinant, we get an element of GL n R.

theorem Matrix.GeneralLinearGroup.val_mk' E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A : Matrix n n R)
  (x : Invertible A.det), ↑(Matrix.GeneralLinearGroup.mk' A x) = A

def Matrix.GeneralLinearGroup.mk'' E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → (A : Matrix n n R) → IsUnit A.det → GL n R

Given a matrix with unit determinant, we get an element of GL n R.

theorem Matrix.GeneralLinearGroup.val_mk'' E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A : Matrix n n R)
  (h : IsUnit A.det), ↑(Matrix.GeneralLinearGroup.mk'' A h) = A

def Matrix.GeneralLinearGroup.mkOfDetNeZero E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {K : Type u_1} → [inst_2 : Field K] → (A : Matrix n n K) → A.det ≠ 0 → GL n K

Given a matrix with non-zero determinant over a field, we get an element of GL n K.

theorem Matrix.GeneralLinearGroup.val_mkOfDetNeZero E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {K : Type u_1} [inst_2 : Field K] (A : Matrix n n K)
  (h : A.det ≠ 0), ↑(Matrix.GeneralLinearGroup.mkOfDetNeZero A h) = A

theorem Matrix.GeneralLinearGroup.ext_iff E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A B : GL n R),
  A = B ↔ ∀ (i j : n), ↑A i j = ↑B i j

theorem Matrix.GeneralLinearGroup.ext E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] ⦃A B : GL n R⦄,
  (∀ (i j : n), ↑A i j = ↑B i j) → A = B

Not marked @[ext] as the ext tactic already solves this.

theorem Matrix.GeneralLinearGroup.coe_mul E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A B : GL n R),
  ↑(A * B) = ↑A * ↑B

theorem Matrix.GeneralLinearGroup.coe_one E0 #

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

theorem Matrix.GeneralLinearGroup.coe_inv E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A : GL n R),
  ↑A⁻¹ = (↑A)⁻¹

theorem Matrix.GeneralLinearGroup.coe_toLin E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A : GL n R),
  ↑(Matrix.GeneralLinearGroup.toLin A) = (↑A).mulVecLin

theorem Matrix.GeneralLinearGroup.toLin_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (A : GL n R) (v : n → R),
  ↑(Matrix.GeneralLinearGroup.toLin A) v = (↑A).mulVecLin v

def Matrix.GeneralLinearGroup.map E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} → [inst_2 : CommRing R] → {S : Type u_1} → [inst_3 : CommRing S] → (R →+* S) → GL n R →* GL n S

A ring homomorphism f : R →+* S induces a homomorphism GLₙ(f) : GLₙ(R) →* GLₙ(S).

theorem Matrix.GeneralLinearGroup.val_map_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (u : (Matrix n n R)ˣ), ↑((Matrix.GeneralLinearGroup.map f) u) = (↑u).map ⇑f

theorem Matrix.GeneralLinearGroup.map_id E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R],
  Matrix.GeneralLinearGroup.map (RingHom.id R) = MonoidHom.id (GL n R)

theorem Matrix.GeneralLinearGroup.map_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (i j : n) (g : GL n R), ↑((Matrix.GeneralLinearGroup.map f) g) i j = f (↑g i j)

theorem Matrix.GeneralLinearGroup.map_comp E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  {T : Type u_2} [inst_3 : CommRing S] [inst_4 : CommRing T] (f : T →+* R) (g : R →+* S),
  Matrix.GeneralLinearGroup.map (g.comp f) = (Matrix.GeneralLinearGroup.map g).comp (Matrix.GeneralLinearGroup.map f)

theorem Matrix.GeneralLinearGroup.map_comp_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  {T : Type u_2} [inst_3 : CommRing S] [inst_4 : CommRing T] (f : T →+* R) (g : R →+* S) (x : GL n T),
  ((Matrix.GeneralLinearGroup.map g).comp (Matrix.GeneralLinearGroup.map f)) x =
    (Matrix.GeneralLinearGroup.map g) ((Matrix.GeneralLinearGroup.map f) x)

def Matrix.GeneralLinearGroup.mapEquiv E1 #

(n : Type u) →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} → [inst_2 : CommRing R] → {S : Type u_1} → [inst_3 : CommRing S] → R ≃+* S → GL n R ≃* GL n S

The equivalence between GL n R and GL n S given by f : R ≃+* S.

theorem Matrix.GeneralLinearGroup.coe_mapEquiv_apply E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R ≃+* S) (a : GL n R), ↑((Matrix.GeneralLinearGroup.mapEquiv n f) a) = f.mapMatrix ↑a

theorem Matrix.GeneralLinearGroup.mapEquiv_refl E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R],
  Matrix.GeneralLinearGroup.mapEquiv n (RingEquiv.refl R) = MulEquiv.refl (GL n R)

theorem Matrix.GeneralLinearGroup.symm_mapEquiv E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R ≃+* S),
  (Matrix.GeneralLinearGroup.mapEquiv n f).symm = Matrix.GeneralLinearGroup.mapEquiv n f.symm

theorem Matrix.GeneralLinearGroup.mapEquiv_trans_mapEquiv E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  {T : Type u_2} [inst_3 : CommRing S] [inst_4 : CommRing T] (f : R ≃+* S) (g : S ≃+* T),
  (Matrix.GeneralLinearGroup.mapEquiv n f).trans (Matrix.GeneralLinearGroup.mapEquiv n g) =
    Matrix.GeneralLinearGroup.mapEquiv n (f.trans g)

theorem Matrix.GeneralLinearGroup.toMonoidHom_mapEquiv E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R ≃+* S), ↑(Matrix.GeneralLinearGroup.mapEquiv n f) = Matrix.GeneralLinearGroup.map ↑f

def Matrix.GeneralLinearGroup.transposeMulEquiv E1 #

(n : Type u) →
  [inst : DecidableEq n] → [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → GL n R ≃* (GL n R)ᵐᵒᵖ

The equivalence between GL n R and (GL n R)ᵐᵒᵖ.

theorem Matrix.GeneralLinearGroup.coe_unop_transposeMulEquiv E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (a : GL n R),
  ↑(MulOpposite.unop ((Matrix.GeneralLinearGroup.transposeMulEquiv n) a)) = (↑a).transpose

theorem Matrix.GeneralLinearGroup.transposeMulEquiv_symm_apply_op E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] (a : GL n R),
  (Matrix.GeneralLinearGroup.transposeMulEquiv n).symm (MulOpposite.op a) =
    MulOpposite.unop ((Matrix.GeneralLinearGroup.transposeMulEquiv n) a)

def Matrix.GeneralLinearGroup.uliftMulEquiv E1 #

(n : Type u) →
  [inst : DecidableEq n] → [inst_1 : Fintype n] → (R : Type v) → [inst_2 : CommRing R] → GL n (ULift.{w, v} R) ≃* GL n R

The equivalence between GL n (ULift R) and GL n R.

theorem Matrix.GeneralLinearGroup.uliftMulEquiv_apply E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R]
  (a : GL n (ULift.{w, v} R)),
  (Matrix.GeneralLinearGroup.uliftMulEquiv n R) a = (Matrix.GeneralLinearGroup.map ULift.ringEquiv.toRingHom) a

theorem Matrix.GeneralLinearGroup.uliftMulEquiv_symm E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] (a : GL n R),
  (Matrix.GeneralLinearGroup.uliftMulEquiv n R).symm a =
    (Matrix.GeneralLinearGroup.map ULift.ringEquiv.symm.toRingHom) a

def Matrix.GeneralLinearGroup.reindex E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      (R : Type v) →
        [inst_2 : CommRing R] →
          {m : Type u_3} → [inst_3 : DecidableEq m] → [inst_4 : Fintype m] → m ≃ n → GL m R ≃* GL n R

The equivalence between GL m R and GL n R given by an equivalence e : m ≃ n.

theorem Matrix.GeneralLinearGroup.reindex_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {m : Type u_3}
  [inst_3 : DecidableEq m] [inst_4 : Fintype m] (e : m ≃ n) (a : (Matrix m m R)ˣ),
  (Matrix.GeneralLinearGroup.reindex R e) a = (Units.map ↑↑(Matrix.reindexRingEquiv R e)) a

theorem Matrix.GeneralLinearGroup.symm_reindex E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {m : Type u_3}
  [inst_3 : DecidableEq m] [inst_4 : Fintype m] (e : m ≃ n),
  (Matrix.GeneralLinearGroup.reindex R e).symm = Matrix.GeneralLinearGroup.reindex R e.symm

theorem Matrix.GeneralLinearGroup.reindex_trans_reindex E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {m : Type u_3}
  {o : Type u_4} [inst_3 : DecidableEq m] [inst_4 : Fintype m] [inst_5 : DecidableEq o] [inst_6 : Fintype o] (e : m ≃ n)
  (e' : n ≃ o),
  (Matrix.GeneralLinearGroup.reindex R e).trans (Matrix.GeneralLinearGroup.reindex R e') =
    Matrix.GeneralLinearGroup.reindex R (e.trans e')

theorem Matrix.GeneralLinearGroup.reindex_refl E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R],
  Matrix.GeneralLinearGroup.reindex R (Equiv.refl n) = MulEquiv.refl (GL n R)

theorem Matrix.GeneralLinearGroup.reindex_map E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] {m : Type u_3} [inst_4 : DecidableEq m] [inst_5 : Fintype m] (e : m ≃ n) (f : R →+* S)
  (a : GL m R),
  (Matrix.GeneralLinearGroup.reindex S e) ((Matrix.GeneralLinearGroup.map f) a) =
    (Matrix.GeneralLinearGroup.map f) ((Matrix.GeneralLinearGroup.reindex R e) a)

theorem Matrix.GeneralLinearGroup.reindex_comp_map E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] {m : Type u_3} [inst_4 : DecidableEq m] [inst_5 : Fintype m] (e : m ≃ n) (f : R →+* S),
  (↑(Matrix.GeneralLinearGroup.reindex S e)).comp (Matrix.GeneralLinearGroup.map f) =
    (Matrix.GeneralLinearGroup.map f).comp ↑(Matrix.GeneralLinearGroup.reindex R e)

theorem Matrix.GeneralLinearGroup.reindex_trans_mapEquiv E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] {m : Type u_3} [inst_4 : DecidableEq m] [inst_5 : Fintype m] (e : m ≃ n) (f : R ≃+* S),
  (Matrix.GeneralLinearGroup.reindex R e).trans (Matrix.GeneralLinearGroup.mapEquiv n f) =
    (Matrix.GeneralLinearGroup.mapEquiv m f).trans (Matrix.GeneralLinearGroup.reindex S e)

def Matrix.GeneralLinearGroup.prodEquiv E1 #

(n : Type u) →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      (R : Type v) → [inst_2 : CommRing R] → (S : Type u_1) → [inst_3 : CommRing S] → GL n (R × S) ≃* GL n R × GL n S

The equivalence between GL n (R × S) and GL n R × GL n S.

theorem Matrix.GeneralLinearGroup.val_prodEquiv_apply_fst E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] (S : Type u_1)
  [inst_3 : CommRing S] (a : (Matrix n n (R × S))ˣ),
  ↑((Matrix.GeneralLinearGroup.prodEquiv n R S) a).1 = (↑a).map Prod.fst

theorem Matrix.GeneralLinearGroup.val_prodEquiv_apply_snd E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] (S : Type u_1)
  [inst_3 : CommRing S] (a : (Matrix n n (R × S))ˣ),
  ↑((Matrix.GeneralLinearGroup.prodEquiv n R S) a).2 = (↑a).map Prod.snd

theorem Matrix.GeneralLinearGroup.val_prodEquiv_symm_apply E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] (S : Type u_1)
  [inst_3 : CommRing S] (g : GL n R × GL n S),
  ↑((Matrix.GeneralLinearGroup.prodEquiv n R S).symm g) = (Matrix.prodRingEquiv n R S).symm (↑g.1, ↑g.2)

theorem Matrix.GeneralLinearGroup.prodEquiv_apply E0 #

∀ (n : Type u) [inst : DecidableEq n] [inst_1 : Fintype n] (R : Type v) [inst_2 : CommRing R] (S : Type u_1)
  [inst_3 : CommRing S] (g : GL n (R × S)),
  (Matrix.GeneralLinearGroup.prodEquiv n R S) g =
    ((Matrix.GeneralLinearGroup.map (RingHom.fst R S)) g, (Matrix.GeneralLinearGroup.map (RingHom.snd R S)) g)

def Matrix.GeneralLinearGroup.piEquiv E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {ι : Type u_3} →
        (R : ι → Type u_4) → [inst_2 : (i : ι) → CommRing (R i)] → GL n ((i : ι) → R i) ≃* ((i : ι) → GL n (R i))

The monoid equivalence between GL n of a product of rings, and the product of the GL n of each ring.

theorem Matrix.GeneralLinearGroup.piEquiv_symm_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {ι : Type u_3} (R : ι → Type u_4)
  [inst_2 : (i : ι) → CommRing (R i)] (a : (i : ι) → GL n (R i)),
  (Matrix.GeneralLinearGroup.piEquiv R).symm a = (Units.mapEquiv (↑Matrix.piRingEquiv).symm) (MulEquiv.piUnits.symm a)

theorem Matrix.GeneralLinearGroup.piEquiv_apply E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {ι : Type u_3} (R : ι → Type u_4)
  [inst_2 : (i : ι) → CommRing (R i)] (a : (Matrix n n ((i : ι) → R i))ˣ) (i : ι),
  (Matrix.GeneralLinearGroup.piEquiv R) a i = MulEquiv.piUnits ((Units.mapEquiv ↑Matrix.piRingEquiv) a) i

theorem Matrix.GeneralLinearGroup.map_one E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S), (Matrix.GeneralLinearGroup.map f) 1 = 1

theorem Matrix.GeneralLinearGroup.map_mul E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (g h : GL n R),
  (Matrix.GeneralLinearGroup.map f) (g * h) = (Matrix.GeneralLinearGroup.map f) g * (Matrix.GeneralLinearGroup.map f) h

theorem Matrix.GeneralLinearGroup.map_inv E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (g : GL n R),
  (Matrix.GeneralLinearGroup.map f) g⁻¹ = ((Matrix.GeneralLinearGroup.map f) g)⁻¹

theorem Matrix.GeneralLinearGroup.map_det E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (g : GL n R),
  Matrix.GeneralLinearGroup.det ((Matrix.GeneralLinearGroup.map f) g) = (Units.map ↑f) (Matrix.GeneralLinearGroup.det g)

theorem Matrix.GeneralLinearGroup.map_mul_map_inv E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (g : GL n R),
  (Matrix.GeneralLinearGroup.map f) g * (Matrix.GeneralLinearGroup.map f) g⁻¹ = 1

theorem Matrix.GeneralLinearGroup.map_inv_mul_map E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (g : GL n R),
  (Matrix.GeneralLinearGroup.map f) g⁻¹ * (Matrix.GeneralLinearGroup.map f) g = 1

theorem Matrix.GeneralLinearGroup.coe_map_mul_map_inv E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (g : GL n R), (↑g).map ⇑f * (↑g)⁻¹.map ⇑f = 1

theorem Matrix.GeneralLinearGroup.coe_map_inv_mul_map E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (g : GL n R), (↑g)⁻¹.map ⇑f * (↑g).map ⇑f = 1

theorem Matrix.GeneralLinearGroup.map_scalar E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] (f : R →+* S) (u : Rˣ),
  (Matrix.GeneralLinearGroup.map f) ((Matrix.GeneralLinearGroup.scalar n) u) =
    (Matrix.GeneralLinearGroup.scalar n) ((Units.map ↑f) u)

def Matrix.GeneralLinearGroup.kronecker E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type u_3} →
        {m : Type u_4} →
          [inst_2 : CommSemiring R] → [inst_3 : Fintype m] → [inst_4 : DecidableEq m] → GL n R → GL m R → GL (n × m) R

The invertible kronecker matrix of invertible matrices.

theorem Matrix.IsUnit.kronecker E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type u_3} {m : Type u_4} [inst_2 : CommSemiring R]
  [inst_3 : Fintype m] [inst_4 : DecidableEq m] {x : Matrix n n R} {y : Matrix m m R},
  IsUnit x → IsUnit y → IsUnit (Matrix.kroneckerMap (fun x1 x2 ↦ x1 * x2) x y)

def Matrix.SpecialLinearGroup.toGL E3 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → Matrix.SpecialLinearGroup n R →* GL n R

toGL is the map from the special linear group to the general linear group.

instance Matrix.SpecialLinearGroup.hasCoeToGeneralLinearGroup E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] → {R : Type v} → [inst_2 : CommRing R] → Coe (Matrix.SpecialLinearGroup n R) (GL n R)

theorem Matrix.SpecialLinearGroup.toGL_injective E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R],
  Function.Injective ⇑Matrix.SpecialLinearGroup.toGL

theorem Matrix.SpecialLinearGroup.toGL_inj E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R]
  (g g' : Matrix.SpecialLinearGroup n R), Matrix.SpecialLinearGroup.toGL g = Matrix.SpecialLinearGroup.toGL g' ↔ g = g'

theorem Matrix.SpecialLinearGroup.coeToGL_det E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R]
  (g : Matrix.SpecialLinearGroup n R), Matrix.GeneralLinearGroup.det (Matrix.SpecialLinearGroup.toGL g) = 1

theorem Matrix.SpecialLinearGroup.coe_GL_coe_matrix E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R]
  (g : Matrix.SpecialLinearGroup n R), ↑(Matrix.SpecialLinearGroup.toGL g) = ↑g

theorem Matrix.SpecialLinearGroup.range_toGL_eq_ker_det E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R],
  Matrix.SpecialLinearGroup.toGL.range = Matrix.GeneralLinearGroup.det.ker

def Matrix.SpecialLinearGroup.toGLKerEquiv E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} → [inst_2 : CommRing R] → Matrix.SpecialLinearGroup n R ≃* ↥Matrix.GeneralLinearGroup.det.ker

Matrix.SpecialLinearGroup is isomorphic to GeneralLinearGroup.det.ker.

theorem Matrix.SpecialLinearGroup.toGLKerEquiv_symm_apply_coe E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R]
  (A : ↥Matrix.GeneralLinearGroup.det.ker), ↑(Matrix.SpecialLinearGroup.toGLKerEquiv.symm A) = ↑↑A

theorem Matrix.SpecialLinearGroup.toGLKerEquiv_apply_coe E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R]
  (g : Matrix.SpecialLinearGroup n R), ↑(Matrix.SpecialLinearGroup.toGLKerEquiv g) = Matrix.SpecialLinearGroup.toGL g

def Matrix.SpecialLinearGroup.mapGL E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} →
        [inst_2 : CommRing R] →
          (S : Type u_1) → [inst_3 : CommRing S] → [Algebra R S] → Matrix.SpecialLinearGroup n R →* GL n S

mapGL is the map from the special linear group over R to the general linear group over S, where S is an R-algebra.

theorem Matrix.SpecialLinearGroup.mapGL_inj E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] [inst_4 : Algebra R S] [FaithfulSMul R S] (g g' : Matrix.SpecialLinearGroup n R),
  (Matrix.SpecialLinearGroup.mapGL S) g = (Matrix.SpecialLinearGroup.mapGL S) g' ↔ g = g'

theorem Matrix.SpecialLinearGroup.mapGL_injective E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] [inst_4 : Algebra R S] [FaithfulSMul R S],
  Function.Injective ⇑(Matrix.SpecialLinearGroup.mapGL S)

theorem Matrix.SpecialLinearGroup.mapGL_coe_matrix E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] [inst_4 : Algebra R S] (g : Matrix.SpecialLinearGroup n R),
  ↑((Matrix.SpecialLinearGroup.mapGL S) g) = ↑((Matrix.SpecialLinearGroup.map (algebraMap R S)) g)

theorem Matrix.SpecialLinearGroup.map_mapGL E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] [inst_4 : Algebra R S] {T : Type u_2} [inst_5 : CommRing T] [inst_6 : Algebra R T]
  [inst_7 : Algebra S T] [IsScalarTower R S T] (g : Matrix.SpecialLinearGroup n R),
  (Matrix.GeneralLinearGroup.map (algebraMap S T)) ((Matrix.SpecialLinearGroup.mapGL S) g) =
    (Matrix.SpecialLinearGroup.mapGL T) g

theorem Matrix.SpecialLinearGroup.det_mapGL E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] {S : Type u_1}
  [inst_3 : CommRing S] [inst_4 : Algebra R S] (g : Matrix.SpecialLinearGroup n R),
  Matrix.GeneralLinearGroup.det ((Matrix.SpecialLinearGroup.mapGL S) g) = 1

def Matrix.GLPos E3 #

(n : Type u) →
  (R : Type v) →
    [inst : DecidableEq n] →
      [inst_1 : Fintype n] →
        [inst_2 : CommRing R] → [inst_3 : LinearOrder R] → [IsStrictOrderedRing R] → Subgroup (GL n R)

This is the subgroup of nxn matrices with entries over a linear ordered ring and positive determinant.

def MatrixGroups.«termGL(_,_)⁺» E1 #

Lean.ParserDescr

This is the subgroup of nxn matrices with entries over a linear ordered ring and positive determinant.

theorem Matrix.mem_glpos E0 #

∀ {n : Type u} {R : Type v} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] (A : GL n R), A ∈ Matrix.GLPos n R ↔ 0 < ↑(Matrix.GeneralLinearGroup.det A)

theorem Matrix.GLPos.det_ne_zero E1 #

∀ {n : Type u} {R : Type v} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] (A : ↥(Matrix.GLPos n R)), (↑↑A).det ≠ 0

instance Matrix.instNegSubtypeGeneralLinearGroupMemSubgroupGLPos E0 #

{n : Type u} →
  {R : Type v} →
    [inst : DecidableEq n] →
      [inst_1 : Fintype n] →
        [inst_2 : CommRing R] →
          [inst_3 : LinearOrder R] →
            [inst_4 : IsStrictOrderedRing R] → [Fact (Even (Fintype.card n))] → Neg ↥(Matrix.GLPos n R)

Formal operation of negation on general linear group on even cardinality n given by negating each element.

theorem Matrix.GLPos.coe_neg_GL E0 #

∀ {n : Type u} {R : Type v} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] [inst_5 : Fact (Even (Fintype.card n))] (g : ↥(Matrix.GLPos n R)), ↑(-g) = -↑g

theorem Matrix.GLPos.coe_neg E0 #

∀ {n : Type u} {R : Type v} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] [inst_5 : Fact (Even (Fintype.card n))] (g : ↥(Matrix.GLPos n R)), ↑↑(-g) = -↑↑g

theorem Matrix.GLPos.coe_neg_apply E0 #

∀ {n : Type u} {R : Type v} [inst : DecidableEq n] [inst_1 : Fintype n] [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] [inst_5 : Fact (Even (Fintype.card n))] (g : ↥(Matrix.GLPos n R)) (i j : n),
  ↑↑(-g) i j = -↑↑g i j

instance Matrix.instHasDistribNegSubtypeGeneralLinearGroupMemSubgroupGLPos E0 #

{n : Type u} →
  {R : Type v} →
    [inst : DecidableEq n] →
      [inst_1 : Fintype n] →
        [inst_2 : CommRing R] →
          [inst_3 : LinearOrder R] →
            [inst_4 : IsStrictOrderedRing R] → [Fact (Even (Fintype.card n))] → HasDistribNeg ↥(Matrix.GLPos n R)

def Matrix.SpecialLinearGroup.toGLPos E1 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} →
        [inst_2 : CommRing R] →
          [inst_3 : LinearOrder R] →
            [inst_4 : IsStrictOrderedRing R] → Matrix.SpecialLinearGroup n R →* ↥(Matrix.GLPos n R)

Matrix.SpecialLinearGroup n R embeds into GL_pos n R

instance Matrix.SpecialLinearGroup.instCoeSubtypeGeneralLinearGroupMemSubgroupGLPos E0 #

{n : Type u} →
  [inst : DecidableEq n] →
    [inst_1 : Fintype n] →
      {R : Type v} →
        [inst_2 : CommRing R] →
          [inst_3 : LinearOrder R] →
            [inst_4 : IsStrictOrderedRing R] → Coe (Matrix.SpecialLinearGroup n R) ↥(Matrix.GLPos n R)

theorem Matrix.SpecialLinearGroup.toGLPos_injective E1 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R], Function.Injective ⇑Matrix.SpecialLinearGroup.toGLPos

theorem Matrix.SpecialLinearGroup.coe_GLPos_coe_GL_coe_matrix E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] (g : Matrix.SpecialLinearGroup n R), ↑↑(Matrix.SpecialLinearGroup.toGLPos g) = ↑g

Coercing a Matrix.SpecialLinearGroup via GL_pos and GL is the same as coercing straight to a matrix.

theorem Matrix.SpecialLinearGroup.coe_to_GLPos_to_GL_det E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] (g : Matrix.SpecialLinearGroup n R),
  Matrix.GeneralLinearGroup.det ↑(Matrix.SpecialLinearGroup.toGLPos g) = 1

theorem Matrix.SpecialLinearGroup.coe_GLPos_neg E0 #

∀ {n : Type u} [inst : DecidableEq n] [inst_1 : Fintype n] {R : Type v} [inst_2 : CommRing R] [inst_3 : LinearOrder R]
  [inst_4 : IsStrictOrderedRing R] [inst_5 : Fact (Even (Fintype.card n))] (g : Matrix.SpecialLinearGroup n R),
  Matrix.SpecialLinearGroup.toGLPos (-g) = -Matrix.SpecialLinearGroup.toGLPos g