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 / V08. Multilinear algebra and forms

Mathlib.Algebra.DirectSum.LinearMap

8 declarations. Mathlib docs · Source

Linear maps between direct sums

This file contains results about linear maps which respect direct sum decompositions of their domain and codomain.

theorem LinearMap.toMatrix_directSum_collectedBasis_eq_blockDiagonal' E1 #

∀ {ι : Type u_1} [inst : DecidableEq ι] {R : Type u_4} {M₁ : Type u_5} {M₂ : Type u_6} [inst_1 : CommSemiring R]
  [inst_2 : AddCommMonoid M₁] [inst_3 : Module R M₁] {N₁ : ι → Submodule R M₁} (h₁ : DirectSum.IsInternal N₁)
  [inst_4 : AddCommMonoid M₂] [inst_5 : Module R M₂] {N₂ : ι → Submodule R M₂} (h₂ : DirectSum.IsInternal N₂)
  {κ₁ : ι → Type u_7} {κ₂ : ι → Type u_8} [inst_6 : (i : ι) → Fintype (κ₁ i)] [inst_7 : ∀ (i : ι), Finite (κ₂ i)]
  [inst_8 : (i : ι) → DecidableEq (κ₁ i)] [inst_9 : Fintype ι] (b₁ : (i : ι) → Module.Basis (κ₁ i) R ↥(N₁ i))
  (b₂ : (i : ι) → Module.Basis (κ₂ i) R ↥(N₂ i)) {f : M₁ →ₗ[R] M₂} (hf : ∀ (i : ι), Set.MapsTo ⇑f ↑(N₁ i) ↑(N₂ i)),
  (LinearMap.toMatrix (h₁.collectedBasis b₁) (h₂.collectedBasis b₂)) f =
    Matrix.blockDiagonal' fun i ↦ (LinearMap.toMatrix (b₁ i) (b₂ i)) (f.restrict ⋯)

If a linear map f : M₁ → M₂ respects direct sum decompositions of M₁ and M₂, then it has a block diagonal matrix with respect to bases compatible with the direct sum decompositions.

theorem LinearMap.diag_toMatrix_directSum_collectedBasis_eq_zero_of_mapsTo_ne E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {N : ι → Submodule R M} [inst_3 : DecidableEq ι] {κ : ι → Type u_4} [inst_4 : (i : ι) → Fintype (κ i)]
  [inst_5 : (i : ι) → DecidableEq (κ i)] {s : Finset ι} (h : DirectSum.IsInternal fun i ↦ N ↑i)
  (b : (i : ↥s) → Module.Basis (κ ↑i) R ↥(N ↑i)) (σ : ι → ι),
  (∀ (i : ι), σ i ≠ i) →
    ∀ {f : Module.End R M},
      (∀ (i : ι), Set.MapsTo ⇑f ↑(N i) ↑(N (σ i))) →
        (∀ i ∉ s, N i = ⊥) → ((LinearMap.toMatrix (h.collectedBasis b) (h.collectedBasis b)) f).diag = 0

theorem LinearMap.trace_eq_sum_trace_restrict E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {N : ι → Submodule R M} [inst_3 : DecidableEq ι] [∀ (i : ι), Module.Finite R ↥(N i)]
  [∀ (i : ι), Module.Free R ↥(N i)],
  DirectSum.IsInternal N →
    ∀ [inst_6 : Fintype ι] {f : M →ₗ[R] M} (hf : ∀ (i : ι), Set.MapsTo ⇑f ↑(N i) ↑(N i)),
      (LinearMap.trace R M) f = ∑ i, (LinearMap.trace R ↥(N i)) (f.restrict ⋯)

The trace of an endomorphism of a direct sum is the sum of the traces on each component.

See also LinearMap.trace_restrict_eq_sum_trace_restrict.

theorem LinearMap.trace_eq_sum_trace_restrict' E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {N : ι → Submodule R M} [inst_3 : DecidableEq ι] [∀ (i : ι), Module.Finite R ↥(N i)]
  [∀ (i : ι), Module.Free R ↥(N i)],
  DirectSum.IsInternal N →
    ∀ (hN : {i | N i ≠ ⊥}.Finite) {f : M →ₗ[R] M} (hf : ∀ (i : ι), Set.MapsTo ⇑f ↑(N i) ↑(N i)),
      (LinearMap.trace R M) f = ∑ i ∈ hN.toFinset, (LinearMap.trace R ↥(N i)) (f.restrict ⋯)

theorem LinearMap.trace_eq_zero_of_mapsTo_ne E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {N : ι → Submodule R M} [inst_3 : DecidableEq ι] [∀ (i : ι), Module.Finite R ↥(N i)]
  [∀ (i : ι), Module.Free R ↥(N i)],
  DirectSum.IsInternal N →
    ∀ [IsNoetherian R M] (σ : ι → ι),
      (∀ (i : ι), σ i ≠ i) →
        ∀ {f : Module.End R M}, (∀ (i : ι), Set.MapsTo ⇑f ↑(N i) ↑(N (σ i))) → (LinearMap.trace R M) f = 0

theorem LinearMap.trace_comp_eq_zero_of_commute_of_trace_restrict_eq_zero E1 #

∀ {R : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] [IsDomain R]
  [IsPrincipalIdealRing R] [Module.Free R M] [Module.Finite R M] {f g : Module.End R M} (h_comm : Commute f g),
  ⨆ μ, f.maxGenEigenspace μ = ⊤ →
    (∀ (μ : R), (LinearMap.trace R ↥(f.maxGenEigenspace μ)) (LinearMap.restrict g ⋯) = 0) →
      (LinearMap.trace R M) (g ∘ₗ f) = 0

If f and g are commuting endomorphisms of a finite, free R-module M, such that f is triangularizable, then to prove that the trace of g ∘ f vanishes, it is sufficient to prove that the trace of g vanishes on each generalized eigenspace of f.

theorem LinearMap.mapsTo_biSup_of_mapsTo E1 #

∀ {R : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M] {ι : Type u_4}
  {N : ι → Submodule R M} (s : Set ι) {f : Module.End R M},
  (∀ (i : ι), Set.MapsTo ⇑f ↑(N i) ↑(N i)) → Set.MapsTo ⇑f ↑(⨆ i ∈ s, N i) ↑(⨆ i ∈ s, N i)

theorem LinearMap.trace_eq_sum_trace_restrict_of_eq_biSup E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {N : ι → Submodule R M} [∀ (i : ι), Module.Finite R ↥(N i)] [∀ (i : ι), Module.Free R ↥(N i)] (s : Finset ι),
  (iSupIndep fun i ↦ N ↑i) →
    ∀ {f : Module.End R M} (hf : ∀ (i : ι), Set.MapsTo ⇑f ↑(N i) ↑(N i)) (p : Submodule R M) (hp : p = ⨆ i ∈ s, N i)
      (hp' : optParam (Set.MapsTo ⇑f ↑p ↑p) ⋯),
      (LinearMap.trace R ↥p) (LinearMap.restrict f hp') = ∑ i ∈ s, (LinearMap.trace R ↥(N i)) (LinearMap.restrict f ⋯)

The trace of an endomorphism of a direct sum is the sum of the traces on each component.

Note that it is important the statement gives the user definitional control over p since the type of the term trace R p (f.restrict hp') depends on p.