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.Basis.Basic

40 declarations. Mathlib docs · Source

theorem LinearEquiv.ofEq.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] {module_M : Module R M}
  (p q : Submodule R M) (h : p = q), LinearEquiv.ofEq p q h = LinearEquiv.ofEq p q h

theorem Module.Basis.span.congr_simp E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} (hli : LinearIndependent R v), Module.Basis.span hli = Module.Basis.span hli

theorem Module.Basis.mk.congr_simp E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v v_1 : ι → M} (e_v : v = v_1) (hli : LinearIndependent R v) (hsp : ⊤ ≤ Submodule.span R (Set.range v)),
  Module.Basis.mk hli hsp = Module.Basis.mk ⋯ ⋯

theorem Module.Basis.repr_range E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), (↑b.repr).range = Finsupp.supported R R Set.univ

theorem Module.Basis.mem_span_repr_support E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (m : M), m ∈ Submodule.span R (⇑b '' ↑(b.repr m).support)

theorem Module.Basis.repr_support_subset_of_mem_span E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (s : Set ι) {m : M}, m ∈ Submodule.span R (⇑b '' s) → ↑(b.repr m).support ⊆ s

theorem Module.Basis.mem_span_image E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {m : M} {s : Set ι}, m ∈ Submodule.span R (⇑b '' s) ↔ ↑(b.repr m).support ⊆ s

theorem Module.Basis.self_mem_span_image E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [Nontrivial R] {i : ι} {s : Set ι}, b i ∈ Submodule.span R (⇑b '' s) ↔ i ∈ s

theorem Module.Basis.mem_span E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (x : M), x ∈ Submodule.span R (Set.range ⇑b)

theorem Module.Basis.span_eq E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), Submodule.span R (Set.range ⇑b) = ⊤

theorem Module.Basis.index_nonempty E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [Nontrivial M], Nonempty ι

theorem Module.Basis.linearIndependent E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), LinearIndependent R ⇑b

theorem Module.Basis.linearIndepOn E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (s : Set ι), LinearIndepOn R (⇑b) s

theorem Module.Basis.ne_zero E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [Nontrivial R] (i : ι), b i ≠ 0

theorem Module.Basis.injective_constr_of_linearIndependent E1 #

∀ {ι : Type u_1} {R : Type u_2} {R₂ : Type u_3} {M : Type u_4} {M' : Type u_5} [inst : Semiring R]
  [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid M'] [inst_4 : Module R M']
  (b : Module.Basis ι R M) [inst_5 : Semiring R₂] [inst_6 : Module R₂ M'] [inst_7 : SMulCommClass R R₂ M'] {v : ι → M'},
  LinearIndependent R v → Function.Injective ⇑((b.constr R₂) v)

def Module.Basis.mk E1 #

{ι : Type u_1} →
  {R : Type u_2} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            {v : ι → M} → LinearIndependent R v → ⊤ ≤ Submodule.span R (Set.range v) → Module.Basis ι R M

A linear independent family of vectors spanning the whole module is a basis.

theorem Module.Basis.mk_repr E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} {x : M} (hli : LinearIndependent R v) (hsp : ⊤ ≤ Submodule.span R (Set.range v)),
  (Module.Basis.mk hli hsp).repr x = hli.repr ⟨x, ⋯⟩

theorem Module.Basis.mk_apply E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} (hli : LinearIndependent R v) (hsp : ⊤ ≤ Submodule.span R (Set.range v)) (i : ι),
  (Module.Basis.mk hli hsp) i = v i

theorem Module.Basis.coe_mk E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} (hli : LinearIndependent R v) (hsp : ⊤ ≤ Submodule.span R (Set.range v)), ⇑(Module.Basis.mk hli hsp) = v

theorem Module.Basis.linearIndependent_coord E0 #

∀ {ι : Type u_1} {M : Type u_4} [inst : AddCommMonoid M] {R : Type u_6} [inst_1 : CommSemiring R] [inst_2 : Module R M]
  (b : Module.Basis ι R M), LinearIndependent R b.coord

theorem Module.Basis.mk_coord_apply_eq E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} {hli : LinearIndependent R v} {hsp : ⊤ ≤ Submodule.span R (Set.range v)} (i : ι),
  ((Module.Basis.mk hli hsp).coord i) (v i) = 1

Given a basis, the ith element of the dual basis evaluates to 1 on the ith element of the basis.

theorem Module.Basis.mk_coord_apply_ne E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} {hli : LinearIndependent R v} {hsp : ⊤ ≤ Submodule.span R (Set.range v)} {i j : ι},
  j ≠ i → ((Module.Basis.mk hli hsp).coord i) (v j) = 0

Given a basis, the ith element of the dual basis evaluates to 0 on the jth element of the basis if j ≠ i.

theorem Module.Basis.mk_coord_apply E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} {hli : LinearIndependent R v} {hsp : ⊤ ≤ Submodule.span R (Set.range v)} [inst_3 : DecidableEq ι]
  {i j : ι}, ((Module.Basis.mk hli hsp).coord i) (v j) = if j = i then 1 else 0

Given a basis, the ith element of the dual basis evaluates to the Kronecker delta on the jth element of the basis.

def Module.Basis.span E1 #

{ι : Type u_1} →
  {R : Type u_2} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            {v : ι → M} → LinearIndependent R v → Module.Basis ι R ↥(Submodule.span R (Set.range v))

A linear independent family of vectors is a basis for their span.

theorem Module.Basis.span_apply E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} (hli : LinearIndependent R v) (i : ι), (Module.Basis.span hli) i = ⟨v i, ⋯⟩

theorem Module.Basis.coe_span_apply E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} (hli : LinearIndependent R v) (i : ι), ↑((Module.Basis.span hli) i) = v i

theorem Module.Basis.span_repr_eq_single E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {v : ι → M} (hli : LinearIndependent R v) (i : ι) (hi : optParam (v i ∈ Submodule.span R (Set.range v)) ⋯),
  (Module.Basis.span hli).repr ⟨v i, hi⟩ = fun₀ | i => 1

theorem Module.Basis.span_neg E1 #

∀ {ι : Type u_1} {R : Type u_6} {M : Type u_7} [inst : Ring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
  {v : ι → M} (hli : LinearIndependent R v)
  (h : autoParam (Submodule.span R (Set.range v) = Submodule.span R (Set.range (-v))) Module.Basis.span_neg._auto_1),
  Module.Basis.span ⋯ =
    (Module.Basis.span hli).map
      (LinearEquiv.neg R ≪≫ₗ LinearEquiv.ofEq (Submodule.span R (Set.range v)) (Submodule.span R (Set.range (-v))) h)

theorem Module.Basis.maximal E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [Nontrivial R] (b : Module.Basis ι R M), ⋯.Maximal

Any basis is a maximal linear independent set.

instance Module.Basis.uniqueBasis E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Subsingleton R] → Unique (Module.Basis ι R M)

def Module.Basis.singleton E1 #

(ι : Type u_6) → (R : Type u_7) → [Unique ι] → [inst : Semiring R] → Module.Basis ι R R

Basis.singleton ι R is the basis sending the unique element of ι to 1 : R.

theorem Module.Basis.singleton_apply E0 #

∀ (ι : Type u_6) (R : Type u_7) [inst : Unique ι] [inst_1 : Semiring R] (i : ι), (Module.Basis.singleton ι R) i = 1

theorem Module.Basis.singleton_repr E0 #

∀ (ι : Type u_6) (R : Type u_7) [inst : Unique ι] [inst_1 : Semiring R] (x : R) (i : ι),
  ((Module.Basis.singleton ι R).repr x) i = x

theorem Module.Basis.coe_singleton E0 #

∀ {ι : Type u_6} {R : Type u_7} [inst : Unique ι] [inst_1 : Semiring R], ⇑(Module.Basis.singleton ι R) = 1

def Module.Basis.empty E1 #

{ι : Type u_1} →
  {R : Type u_2} →
    (M : Type u_4) →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Subsingleton M] → [IsEmpty ι] → Module.Basis ι R M

If M is a subsingleton and ι is empty, this is the unique ι-indexed basis for M.

instance Module.Basis.emptyUnique E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    (M : Type u_4) →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] → [Subsingleton M] → [IsEmpty ι] → Unique (Module.Basis ι R M)

theorem Module.Basis.isTorsionFree E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), Module.IsTorsionFree R M

theorem Module.Basis.smul_eq_zero E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [IsDomain R] (b : Module.Basis ι R M) {c : R} {x : M}, c • x = 0 ↔ c = 0 ∨ x = 0

theorem Module.Basis.basis_singleton_iff E0 #

∀ {R : Type u_6} {M : Type u_7} [inst : Ring R] [IsDomain R] [inst_2 : AddCommGroup M] [inst_3 : Module R M]
  [Module.IsTorsionFree R M] (ι : Type u_8) [Unique ι],
  Nonempty (Module.Basis ι R M) ↔ ∃ x, x ≠ 0 ∧ ∀ (y : M), ∃ r, r • x = y

theorem Module.card_fintype E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Fintype ι] (b : Module.Basis ι R M) [inst : Fintype R] [inst_4 : Fintype M],
  Fintype.card M = Fintype.card R ^ Fintype.card ι