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.FiniteDimensional.Lemmas

42 declarations. Mathlib docs · Source

Finite-dimensional vector spaces

This file contains some further development of finite-dimensional vector spaces, their dimensions, and linear maps on such spaces.

Definitions are in Mathlib/LinearAlgebra/FiniteDimensional/Defs.lean and results that require fewer imports are in Mathlib/LinearAlgebra/FiniteDimensional/Basic.lean.

We now give characterisations of finrank K V = 1 and finrank K V ≤ 1.

theorem basisOfLinearIndependentOfCardEqFinrank.congr_simp E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {ι : Type u_1}
  [inst_3 : Fintype ι] [inst_4 : Nonempty ι] {b b_1 : ι → V} (e_b : b = b_1) (lin_ind : LinearIndependent K b)
  (card_eq : Fintype.card ι = Module.finrank K V),
  basisOfLinearIndependentOfCardEqFinrank lin_ind card_eq = basisOfLinearIndependentOfCardEqFinrank ⋯ card_eq

theorem Submodule.finrank_lt E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V] {s : Submodule K V}, s ≠ ⊤ → Module.finrank K ↥s < Module.finrank K V

The dimension of a strict submodule is strictly bounded by the dimension of the ambient space.

See also Submodule.length_lt.

theorem Submodule.finrank_sup_add_finrank_inf_eq E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  (s t : Submodule K V) [FiniteDimensional K ↥s] [FiniteDimensional K ↥t],
  Module.finrank K ↥(s ⊔ t) + Module.finrank K ↥(s ⊓ t) = Module.finrank K ↥s + Module.finrank K ↥t

The sum of the dimensions of s + t and s ∩ t is the sum of the dimensions of s and t

theorem Submodule.finrank_add_le_finrank_add_finrank E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  (s t : Submodule K V) [FiniteDimensional K ↥s] [FiniteDimensional K ↥t],
  Module.finrank K ↥(s ⊔ t) ≤ Module.finrank K ↥s + Module.finrank K ↥t

theorem Submodule.finrank_add_finrank_le_of_disjoint E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V] {s t : Submodule K V},
  Disjoint s t → Module.finrank K ↥s + Module.finrank K ↥t ≤ Module.finrank K V

theorem Submodule.isCompl_iff_disjoint E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V] (s t : Submodule K V),
  Module.finrank K V ≤ Module.finrank K ↥s + Module.finrank K ↥t → (IsCompl s t ↔ Disjoint s t)

theorem Submodule.sup_span_singleton_eq_top_iff E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [Module.Finite K V]
  {W : Submodule K V} {v : V}, v ∉ W → (W ⊔ K ∙ v = ⊤ ↔ Module.finrank K (V ⧸ W) = 1)

theorem Submodule.finrank_sup_span_singleton E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [Module.Finite K V]
  {p : Submodule K V} {v : V}, v ∉ p → Module.finrank K ↥(p ⊔ K ∙ v) = Module.finrank K ↥p + 1

def FiniteDimensional.LinearEquiv.quotEquivOfEquiv E1 #

{K : Type u} →
  {V : Type v} →
    [inst : DivisionRing K] →
      [inst_1 : AddCommGroup V] →
        [inst_2 : Module K V] →
          {V₂ : Type v'} →
            [inst_3 : AddCommGroup V₂] →
              [inst_4 : Module K V₂] →
                [FiniteDimensional K V] →
                  [FiniteDimensional K V₂] →
                    {p : Subspace K V} → {q : Subspace K V₂} → (↥p ≃ₗ[K] ↥q) → (V ≃ₗ[K] V₂) → (V ⧸ p) ≃ₗ[K] V₂ ⧸ q

Given isomorphic subspaces p q of vector spaces V and V₁ respectively, p.quotient is isomorphic to q.quotient.

def FiniteDimensional.LinearEquiv.quotEquivOfQuotEquiv E1 #

{K : Type u} →
  {V : Type v} →
    [inst : DivisionRing K] →
      [inst_1 : AddCommGroup V] →
        [inst_2 : Module K V] → [FiniteDimensional K V] → {p q : Subspace K V} → ((V ⧸ p) ≃ₗ[K] ↥q) → (V ⧸ q) ≃ₗ[K] ↥p

Given the subspaces p q, if p.quotient ≃ₗ[K] q, then q.quotient ≃ₗ[K] p

theorem LinearMap.finrank_range_add_finrank_ker E1 #

∀ {K : Type u} {V : Type v} [inst : Ring K] [HasRankNullity.{v, u} K] [StrongRankCondition K] [inst_3 : AddCommGroup V]
  [inst_4 : Module K V] {V₂ : Type v'} [inst_5 : AddCommGroup V₂] [inst_6 : Module K V₂] [Module.Finite K V]
  (f : V →ₗ[K] V₂), Module.finrank K ↥f.range + Module.finrank K ↥f.ker = Module.finrank K V

Rank-nullity theorem: the dimensions of the kernel and the range of a linear map add up to the dimension of the source space.

theorem LinearMap.ker_ne_bot_of_finrank_lt E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {V₂ : Type v'}
  [inst_3 : AddCommGroup V₂] [inst_4 : Module K V₂] [FiniteDimensional K V] [FiniteDimensional K V₂] {f : V →ₗ[K] V₂},
  Module.finrank K V₂ < Module.finrank K V → f.ker ≠ ⊥

theorem LinearMap.injective_iff_surjective_of_finrank_eq_finrank E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {V₂ : Type v'}
  [inst_3 : AddCommGroup V₂] [inst_4 : Module K V₂] [FiniteDimensional K V] [FiniteDimensional K V₂],
  Module.finrank K V = Module.finrank K V₂ → ∀ {f : V →ₗ[K] V₂}, Function.Injective ⇑f ↔ Function.Surjective ⇑f

theorem LinearMap.ker_eq_bot_iff_range_eq_top_of_finrank_eq_finrank E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {V₂ : Type v'}
  [inst_3 : AddCommGroup V₂] [inst_4 : Module K V₂] [FiniteDimensional K V] [FiniteDimensional K V₂],
  Module.finrank K V = Module.finrank K V₂ → ∀ {f : V →ₗ[K] V₂}, f.ker = ⊥ ↔ f.range = ⊤

def LinearMap.linearEquivOfInjective E1 #

{K : Type u} →
  {V : Type v} →
    [inst : DivisionRing K] →
      [inst_1 : AddCommGroup V] →
        [inst_2 : Module K V] →
          {V₂ : Type v'} →
            [inst_3 : AddCommGroup V₂] →
              [inst_4 : Module K V₂] →
                [FiniteDimensional K V] →
                  [FiniteDimensional K V₂] →
                    (f : V →ₗ[K] V₂) → Function.Injective ⇑f → Module.finrank K V = Module.finrank K V₂ → V ≃ₗ[K] V₂

Given a linear map f between two vector spaces with the same dimension, if ker f = ⊥ then linearEquivOfInjective is the induced isomorphism between the two vector spaces.

theorem LinearMap.linearEquivOfInjective_apply E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {V₂ : Type v'}
  [inst_3 : AddCommGroup V₂] [inst_4 : Module K V₂] [inst_5 : FiniteDimensional K V] [inst_6 : FiniteDimensional K V₂]
  {f : V →ₗ[K] V₂} (hf : Function.Injective ⇑f) (hdim : Module.finrank K V = Module.finrank K V₂) (x : V),
  (f.linearEquivOfInjective hf hdim) x = f x

theorem Submodule.finrank_lt_finrank_of_lt E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  {s t : Submodule K V} [FiniteDimensional K ↥t], s < t → Module.finrank K ↥s < Module.finrank K ↥t

theorem Submodule.finrank_strictMono E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V], StrictMono fun s ↦ Module.finrank K ↥s

theorem Submodule.finrank_add_eq_of_isCompl E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V] {U W : Submodule K V},
  IsCompl U W → Module.finrank K ↥U + Module.finrank K ↥W = Module.finrank K V

theorem LinearIndependent.span_eq_top_of_card_eq_finrank' E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {ι : Type u_1}
  [inst_3 : Fintype ι] [FiniteDimensional K V] {b : ι → V},
  LinearIndependent K b → Fintype.card ι = Module.finrank K V → Submodule.span K (Set.range b) = ⊤

theorem LinearIndependent.span_eq_top_of_card_eq_finrank E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {ι : Type u_1}
  [inst_3 : Fintype ι] [Nonempty ι] {b : ι → V},
  LinearIndependent K b → Fintype.card ι = Module.finrank K V → Submodule.span K (Set.range b) = ⊤

def basisOfLinearIndependentOfCardEqFinrank' E1 #

{K : Type u} →
  {V : Type v} →
    [inst : DivisionRing K] →
      [inst_1 : AddCommGroup V] →
        [inst_2 : Module K V] →
          {ι : Type u_1} →
            [inst_3 : Fintype ι] →
              [FiniteDimensional K V] →
                (b : ι → V) → LinearIndependent K b → Fintype.card ι = Module.finrank K V → Module.Basis ι K V

A linear independent family of finrank K V vectors forms a basis.

theorem basisOfLinearIndependentOfCardEqFinrank'_repr_apply E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {ι : Type u_1}
  [inst_3 : Fintype ι] [inst_4 : FiniteDimensional K V] (b : ι → V) (hb : LinearIndependent K b)
  (hι : Fintype.card ι = Module.finrank K V) (x : V),
  (basisOfLinearIndependentOfCardEqFinrank' b hb hι).repr x =
    hb.repr ((LinearMap.codRestrict (Submodule.span K (Set.range b)) LinearMap.id ⋯) x)

theorem coe_basisOfLinearIndependentOfCardEqFinrank' E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {ι : Type u_1}
  [inst_3 : Fintype ι] [inst_4 : FiniteDimensional K V] (b : ι → V) (hb : LinearIndependent K b)
  (hι : Fintype.card ι = Module.finrank K V), ⇑(basisOfLinearIndependentOfCardEqFinrank' b hb hι) = b

def basisOfLinearIndependentOfCardEqFinrank E1 #

{K : Type u} →
  {V : Type v} →
    [inst : DivisionRing K] →
      [inst_1 : AddCommGroup V] →
        [inst_2 : Module K V] →
          {ι : Type u_1} →
            [inst_3 : Fintype ι] →
              [Nonempty ι] →
                {b : ι → V} → LinearIndependent K b → Fintype.card ι = Module.finrank K V → Module.Basis ι K V

A linear independent family of finrank K V vectors forms a basis.

theorem basisOfLinearIndependentOfCardEqFinrank_repr_apply E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {ι : Type u_1}
  [inst_3 : Fintype ι] [inst_4 : Nonempty ι] {b : ι → V} (lin_ind : LinearIndependent K b)
  (card_eq : Fintype.card ι = Module.finrank K V) (x : V),
  (basisOfLinearIndependentOfCardEqFinrank lin_ind card_eq).repr x =
    lin_ind.repr ((LinearMap.codRestrict (Submodule.span K (Set.range b)) LinearMap.id ⋯) x)

theorem coe_basisOfLinearIndependentOfCardEqFinrank E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {ι : Type u_1}
  [inst_3 : Fintype ι] [inst_4 : Nonempty ι] {b : ι → V} (lin_ind : LinearIndependent K b)
  (card_eq : Fintype.card ι = Module.finrank K V), ⇑(basisOfLinearIndependentOfCardEqFinrank lin_ind card_eq) = b

def basisOfPiSpaceOfLinearIndependent E1 #

{K : Type u} →
  [inst : DivisionRing K] →
    {ι : Type u_1} →
      [Fintype ι] → [Decidable (Nonempty ι)] → {b : ι → ι → K} → LinearIndependent K b → Module.Basis ι K (ι → K)

In a vector space ι → K, a linear independent family indexed by ι is a basis.

theorem coe_basisOfPiSpaceOfLinearIndependent E0 #

∀ {K : Type u} [inst : DivisionRing K] {ι : Type u_1} [inst_1 : Fintype ι] {b : ι → ι → K} (hb : LinearIndependent K b),
  ⇑(basisOfPiSpaceOfLinearIndependent hb) = b

def finsetBasisOfLinearIndependentOfCardEqFinrank E1 #

{K : Type u} →
  {V : Type v} →
    [inst : DivisionRing K] →
      [inst_1 : AddCommGroup V] →
        [inst_2 : Module K V] →
          {s : Finset V} →
            s.Nonempty → LinearIndependent K Subtype.val → s.card = Module.finrank K V → Module.Basis (↥s) K V

A linear independent finset of finrank K V-many vectors forms a basis.

theorem finsetBasisOfLinearIndependentOfCardEqFinrank_repr_apply E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Finset V}
  (hs : s.Nonempty) (lin_ind : LinearIndependent K Subtype.val) (card_eq : s.card = Module.finrank K V) (x : V),
  (finsetBasisOfLinearIndependentOfCardEqFinrank hs lin_ind card_eq).repr x =
    lin_ind.repr ((LinearMap.codRestrict (Submodule.span K (Set.range Subtype.val)) LinearMap.id ⋯) x)

theorem coe_finsetBasisOfLinearIndependentOfCardEqFinrank E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Finset V}
  (hs : s.Nonempty) (lin_ind : LinearIndependent K Subtype.val) (card_eq : s.card = Module.finrank K V),
  ⇑(finsetBasisOfLinearIndependentOfCardEqFinrank hs lin_ind card_eq) = Subtype.val

def setBasisOfLinearIndependentOfCardEqFinrank E1 #

{K : Type u} →
  {V : Type v} →
    [inst : DivisionRing K] →
      [inst_1 : AddCommGroup V] →
        [inst_2 : Module K V] →
          {s : Set V} →
            [Nonempty ↑s] →
              [inst_4 : Fintype ↑s] →
                LinearIndependent K Subtype.val → s.toFinset.card = Module.finrank K V → Module.Basis (↑s) K V

A linear independent set of finrank K V-many vectors forms a basis.

theorem setBasisOfLinearIndependentOfCardEqFinrank_repr_apply E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
  [inst_3 : Nonempty ↑s] [inst_4 : Fintype ↑s] (lin_ind : LinearIndependent K Subtype.val)
  (card_eq : s.toFinset.card = Module.finrank K V) (x : V),
  (setBasisOfLinearIndependentOfCardEqFinrank lin_ind card_eq).repr x =
    lin_ind.repr ((LinearMap.codRestrict (Submodule.span K (Set.range Subtype.val)) LinearMap.id ⋯) x)

theorem coe_setBasisOfLinearIndependentOfCardEqFinrank E0 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {s : Set V}
  [inst_3 : Nonempty ↑s] [inst_4 : Fintype ↑s] (lin_ind : LinearIndependent K Subtype.val)
  (card_eq : s.toFinset.card = Module.finrank K V),
  ⇑(setBasisOfLinearIndependentOfCardEqFinrank lin_ind card_eq) = Subtype.val

theorem is_simple_module_of_finrank_eq_one E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {A : Type u_1}
  [inst_3 : Semiring A] [inst_4 : Module A V] [inst_5 : SMul K A] [IsScalarTower K A V],
  Module.finrank K V = 1 → IsSimpleOrder (Submodule A V)

Any K-algebra module that is 1-dimensional over K is simple.

theorem Subalgebra.isSimpleOrder_of_finrank E1 #

∀ {F : Type u_1} {E : Type u_2} [inst : Field F] [inst_1 : Ring E] [inst_2 : Algebra F E],
  Module.finrank F E = 2 → IsSimpleOrder (Subalgebra F E)

theorem Module.End.exists_ker_pow_eq_ker_pow_succ E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V] (f : Module.End K V),
  ∃ k ≤ Module.finrank K V, LinearMap.ker (f ^ k) = LinearMap.ker (f ^ k.succ)

theorem Module.End.ker_pow_eq_ker_pow_finrank_of_le E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V] {f : Module.End K V} {m : ℕ},
  Module.finrank K V ≤ m → LinearMap.ker (f ^ m) = LinearMap.ker (f ^ Module.finrank K V)

theorem Module.End.ker_pow_le_ker_pow_finrank E1 #

∀ {K : Type u} {V : Type v} [inst : DivisionRing K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
  [FiniteDimensional K V] (f : Module.End K V) (m : ℕ), LinearMap.ker (f ^ m) ≤ LinearMap.ker (f ^ Module.finrank K V)

instance Submodule.instFiniteDimensionalSubtypeMemComapOfKer E0 #

∀ {K : Type u} {V : Type v} {W : Type v'} [inst : DivisionRing K] [inst_1 : AddCommGroup W] [inst_2 : AddCommGroup V]
  [inst_3 : Module K V] [inst_4 : Module K W] {f : V →ₗ[K] W} (p : Submodule K W) [FiniteDimensional K ↥p]
  [FiniteDimensional K ↥f.ker], FiniteDimensional K ↥(Submodule.comap f p)

instance Submodule.instFiniteDimensionalQuotientMapOfRange E0 #

∀ {K : Type u} {V : Type v} {W : Type v'} [inst : DivisionRing K] [inst_1 : AddCommGroup W] [inst_2 : AddCommGroup V]
  [inst_3 : Module K V] [inst_4 : Module K W] {f : V →ₗ[K] W} (p : Submodule K V) [FiniteDimensional K (V ⧸ p)]
  [FiniteDimensional K (W ⧸ f.range)], FiniteDimensional K (W ⧸ Submodule.map f p)