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.Algebra.Module.LinearMap.Index

16 declarations. Mathlib docs · Source

The index of a linear map

In this file we define the index of a linear map and provide some basic API.

Main definitions / results:

  • LinearMap.index: the index of a linear map, with sign convention index = dim ker - dim coker.
  • LinearMap.index_comp: the index is additive under composition.

def LinearMap.index E1 #

{M : Type u_1} →
  {N : Type u_2} →
    [inst : AddCommGroup M] →
      [inst_1 : AddCommGroup N] →
        {R : Type u_3} → [inst_2 : Ring R] → [inst_3 : Module R M] → [inst_4 : Module R N] → (M →ₗ[R] N) → ℤ

The index of a linear map with sign convention index = dim ker - dim coker.

In the case that either the kernel or cokernel has infinite rank, the value is junk.

theorem LinearMap.index_eq_finrank_sub E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {R : Type u_3} [inst_2 : Ring R]
  [inst_3 : Module R M] [inst_4 : Module R N] {f : M →ₗ[R] N},
  f.index = ↑(Module.finrank R ↥f.ker) - ↑(Module.finrank R (N ⧸ f.range))

theorem LinearMap.index_of_subsingleton E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {R : Type u_3} [inst_2 : Ring R]
  [inst_3 : Module R M] [inst_4 : Module R N] {f : M →ₗ[R] N} [Subsingleton R], f.index = 0

theorem LinearMap.index_zero E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {R : Type u_3} [inst_2 : Ring R]
  [inst_3 : Module R M] [inst_4 : Module R N], LinearMap.index 0 = ↑(Module.finrank R M) - ↑(Module.finrank R N)

theorem LinearMap.index_of_injective E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {R : Type u_3} [inst_2 : Ring R]
  [inst_3 : Module R M] [inst_4 : Module R N] {f : M →ₗ[R] N} [Nontrivial R],
  Function.Injective ⇑f → f.index = -↑(Module.finrank R (N ⧸ f.range))

theorem LinearMap.index_subtype E0 #

∀ {M : Type u_1} [inst : AddCommGroup M] {R : Type u_3} [inst_1 : Ring R] [inst_2 : Module R M] [Nontrivial R]
  {S : Submodule R M}, S.subtype.index = -↑(Module.finrank R (M ⧸ S))

theorem LinearMap.index_of_surjective E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {R : Type u_3} [inst_2 : Ring R]
  [inst_3 : Module R M] [inst_4 : Module R N] {f : M →ₗ[R] N} [StrongRankCondition R],
  Function.Surjective ⇑f → f.index = ↑(Module.finrank R ↥f.ker)

theorem LinearMap.index_mkQ E0 #

∀ {M : Type u_1} [inst : AddCommGroup M] {R : Type u_3} [inst_1 : Ring R] [inst_2 : Module R M] [StrongRankCondition R]
  {S : Submodule R M}, S.mkQ.index = ↑(Module.finrank R ↥S)

theorem LinearMap.index_projectionOnto E0 #

∀ {M : Type u_1} [inst : AddCommGroup M] {R : Type u_3} [inst_1 : Ring R] [inst_2 : Module R M] [StrongRankCondition R]
  {S T : Submodule R M} (hST : IsCompl S T), (S.projectionOnto T hST).index = ↑(Module.finrank R ↥T)

theorem LinearMap.index_of_bijective E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {R : Type u_3} [inst_2 : Ring R]
  [inst_3 : Module R M] [inst_4 : Module R N] {f : M →ₗ[R] N} [StrongRankCondition R],
  Function.Bijective ⇑f → f.index = 0

theorem LinearMap.index_id E0 #

∀ {M : Type u_1} [inst : AddCommGroup M] {R : Type u_3} [inst_1 : Ring R] [inst_2 : Module R M] [StrongRankCondition R],
  LinearMap.id.index = 0

theorem LinearEquiv.index_eq_zero E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {R : Type u_3} [inst_2 : Ring R]
  [inst_3 : Module R M] [inst_4 : Module R N] [StrongRankCondition R] {e : M ≃ₗ[R] N}, (↑e).index = 0

theorem LinearMap.index_neg E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {k : Type u_3}
  [inst_2 : DivisionRing k] [inst_3 : Module k M] [inst_4 : Module k N] {f : M →ₗ[k] N}, (-f).index = f.index

theorem LinearMap.index_eq_of_finiteDimensional E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {k : Type u_3}
  [inst_2 : DivisionRing k] [inst_3 : Module k M] [inst_4 : Module k N] {f : M →ₗ[k] N} [FiniteDimensional k M]
  [FiniteDimensional k N], f.index = ↑(Module.finrank k M) - ↑(Module.finrank k N)

theorem LinearMap.index_comp E0 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {k : Type u_3}
  [inst_2 : DivisionRing k] [inst_3 : Module k M] [inst_4 : Module k N] {P : Type u_4} [inst_5 : AddCommGroup P]
  [inst_6 : Module k P] (g : N →ₗ[k] P) (f : M →ₗ[k] N) [FiniteDimensional k ↥f.ker] [FiniteDimensional k ↥g.ker]
  [FiniteDimensional k (N ⧸ f.range)] [FiniteDimensional k (P ⧸ g.range)], (g ∘ₗ f).index = g.index + f.index

theorem LinearMap.index_smul E1 #

∀ {M : Type u_1} {N : Type u_2} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {k : Type u_3} [inst_2 : Field k]
  [inst_3 : Module k M] [inst_4 : Module k N] {f : M →ₗ[k] N} (t : k), t ≠ 0 → (t • f).index = f.index