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

58 declarations. Mathlib docs · Source

Bases of dual vector spaces

The dual space of an $R$-module $M$ is the $R$-module of $R$-linear maps $M \to R$. This file concerns bases on dual vector spaces.

Main definitions

  • Bases:
    • Basis.toDual produces the map M →ₗ[R] Dual R M associated to a basis for an R-module M.
    • Basis.toDualEquiv is the equivalence M ≃ₗ[R] Dual R M associated to a finite basis.
    • Basis.dualBasis is a basis for Dual R M given a finite basis for M.
    • Module.DualBases e ε is the proposition that the families e of vectors and ε of dual vectors have the characteristic properties of a basis and a dual.

Main results

  • Bases:
    • Module.DualBases.basis and Module.DualBases.coe_basis: if e and ε form a dual pair, then e is a basis.
    • Module.DualBases.coe_dualBasis: if e and ε form a dual pair, then ε is a basis.

theorem Module.Basis.toDualEquiv.congr_simp E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {inst_3 : DecidableEq ι} [inst_4 : DecidableEq ι] (b b_1 : Module.Basis ι R M),
  b = b_1 → ∀ [inst_5 : Finite ι], b.toDualEquiv = b_1.toDualEquiv

theorem Module.DualBases.basis.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e e_1 : ι → M} (e_e : e = e_1) {ε ε_1 : ι → Module.Dual R M} (e_ε : ε = ε_1) (h : Module.DualBases e ε),
  h.basis = ⋯.basis

theorem Module.DualBases.coeffs.congr_simp E1 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e e_1 : ι → M} (e_e : e = e_1) {ε ε_1 : ι → Module.Dual R M} (e_ε : ε = ε_1) (h : Module.DualBases e ε) (m m_1 : M),
  m = m_1 → h.coeffs m = ⋯.coeffs m_1

theorem Module.Basis.toDual.congr_simp E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {inst_3 : DecidableEq ι} [inst_4 : DecidableEq ι] (b b_1 : Module.Basis ι R M), b = b_1 → b.toDual = b_1.toDual

theorem Module.Basis.dualBasis.congr_simp E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b b_1 : Module.Basis ι R M), b = b_1 → ∀ [inst_4 : Finite ι], b.dualBasis = b_1.dualBasis

def Module.Basis.toDual E3 #

{R : Type uR} →
  {M : Type uM} →
    {ι : Type uι} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] → [DecidableEq ι] → Module.Basis ι R M → M →ₗ[R] Module.Dual R M

The linear map from a vector space equipped with basis to its dual vector space, taking basis elements to corresponding dual basis elements.

theorem Module.Basis.toDual_apply E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (i j : ι), (b.toDual (b i)) (b j) = if i = j then 1 else 0

theorem Module.Basis.toDual_linearCombination_left E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (f : ι →₀ R) (i : ι),
  (b.toDual ((Finsupp.linearCombination R ⇑b) f)) (b i) = f i

theorem Module.Basis.toDual_linearCombination_right E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (f : ι →₀ R) (i : ι),
  (b.toDual (b i)) ((Finsupp.linearCombination R ⇑b) f) = f i

theorem Module.Basis.toDual_apply_left E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (m : M) (i : ι), (b.toDual m) (b i) = (b.repr m) i

theorem Module.Basis.toDual_apply_right E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (i : ι) (m : M), (b.toDual (b i)) m = (b.repr m) i

theorem Module.Basis.coe_toDual_self E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (i : ι), b.toDual (b i) = b.coord i

def Module.Basis.toDualFlip E1 #

{R : Type uR} →
  {M : Type uM} →
    {ι : Type uι} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [DecidableEq ι] → Module.Basis ι R M → M → M →ₗ[R] R

h.toDualFlip v is the linear map sending w to h.toDual w v.

theorem Module.Basis.toDualFlip_apply E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (m₁ m₂ : M), (b.toDualFlip m₁) m₂ = (b.toDual m₂) m₁

theorem Module.Basis.toDual_eq_repr E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (m : M) (i : ι), (b.toDual m) (b i) = (b.repr m) i

theorem Module.Basis.toDual_eq_equivFun E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (m : M) (i : ι),
  (b.toDual m) (b i) = b.equivFun m i

theorem Module.Basis.toDual_injective E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M), Function.Injective ⇑b.toDual

theorem Module.Basis.toDual_inj E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) (m : M), b.toDual m = 0 → m = 0

theorem Module.Basis.toDual_ker E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M), b.toDual.ker = ⊥

theorem Module.Basis.toDual_range E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [Finite ι], b.toDual.range = ⊤

theorem Module.Basis.sum_dual_apply_smul_coord E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [inst_3 : Fintype ι] (f : Module.Dual R M), ∑ x, f (b x) • b.coord x = f

def Module.Basis.toDualEquiv E3 #

{R : Type uR} →
  {M : Type uM} →
    {ι : Type uι} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] → [DecidableEq ι] → Module.Basis ι R M → [Finite ι] → M ≃ₗ[R] Module.Dual R M

A vector space is linearly equivalent to its dual space.

theorem Module.Basis.toDualEquiv_apply E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (m : M), b.toDualEquiv m = b.toDual m

def Module.Basis.dualBasis E3 #

{R : Type uR} →
  {M : Type uM} →
    {ι : Type uι} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] → [DecidableEq ι] → Module.Basis ι R M → [Finite ι] → Module.Basis ι R (Module.Dual R M)

Maps a basis for V to a basis for the dual space.

theorem Module.Basis.dualBasis_apply_self E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (i j : ι),
  (b.dualBasis i) (b j) = if j = i then 1 else 0

theorem Module.Basis.linearCombination_dualBasis E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (f : ι →₀ R) (i : ι),
  ((Finsupp.linearCombination R ⇑b.dualBasis) f) (b i) = f i

theorem Module.Basis.dualBasis_repr E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (l : Module.Dual R M) (i : ι),
  (b.dualBasis.repr l) i = l (b i)

theorem Module.Basis.dualBasis_apply E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (i : ι) (m : M),
  (b.dualBasis i) m = (b.repr m) i

theorem Module.Basis.coe_dualBasis E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι], ⇑b.dualBasis = b.coord

theorem Module.Basis.toDual_toDual E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι],
  b.dualBasis.toDual ∘ₗ b.toDual = Module.Dual.eval R M

theorem Module.Basis.dualBasis_equivFun E1 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (l : Module.Dual R M) (i : ι),
  b.dualBasis.equivFun l i = l (b i)

theorem Module.Basis.eval_injective E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_1}
  (b : Module.Basis ι R M), Function.Injective ⇑(Module.Dual.eval R M)

theorem Module.Basis.eval_ker E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_1}
  (b : Module.Basis ι R M), (Module.Dual.eval R M).ker = ⊥

theorem Module.Basis.eval_range E1 #

∀ {R : Type uR} {M : Type uM} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {ι : Type u_1}
  [Finite ι] (b : Module.Basis ι R M), (Module.Dual.eval R M).range = ⊤

theorem Module.Basis.dualBasis_coord_toDualEquiv_apply E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (i : ι) (f : M),
  (b.dualBasis.coord i) (b.toDualEquiv f) = (b.coord i) f

theorem Module.Basis.coord_toDualEquiv_symm_apply E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq ι] (b : Module.Basis ι R M) [inst_4 : Finite ι] (i : ι) (f : Module.Dual R M),
  (b.coord i) (b.toDualEquiv.symm f) = (b.dualBasis.coord i) f

theorem Module.Basis.linearCombination_coord E0 #

∀ {R : Type uR} {M : Type uM} {ι : Type uι} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [Finite ι] (b : Module.Basis ι R M) (f : ι →₀ R) (i : ι), ((Finsupp.linearCombination R b.coord) f) (b i) = f i

simp normal form version of linearCombination_dualBasis

def evalUseFiniteInstance E1 #

Lean.Elab.Tactic.TacticM Unit

Try using Set.toFinite to dispatch a Set.Finite goal.

def tacticUse_finite_instance E1 #

Lean.ParserDescr

Try using Set.toFinite to dispatch a Set.Finite goal.

structure Module.DualBases E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {ι : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (ι → M) → (ι → Module.Dual R M) → Prop

e and ε have characteristic properties of a basis and its dual

ctor Module.DualBases.mk E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M},
  (∀ (i : ι), (ε i) (e i) = 1) →
    (Pairwise fun i j ↦ (ε i) (e j) = 0) →
      (∀ {m₁ m₂ : M}, (∀ (i : ι), (ε i) m₁ = (ε i) m₂) → m₁ = m₂) →
        autoParam (∀ (m : M), {i | (ε i) m ≠ 0}.Finite) Module.DualBases.finite._autoParam → Module.DualBases e ε

theorem Module.DualBases.eval_same E1 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M}, Module.DualBases e ε → ∀ (i : ι), (ε i) (e i) = 1

theorem Module.DualBases.eval_of_ne E1 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M}, Module.DualBases e ε → Pairwise fun i j ↦ (ε i) (e j) = 0

theorem Module.DualBases.total E1 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M},
  Module.DualBases e ε → ∀ {m₁ m₂ : M}, (∀ (i : ι), (ε i) m₁ = (ε i) m₂) → m₁ = m₂

theorem Module.DualBases.finite E1 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M}, Module.DualBases e ε → ∀ (m : M), {i | (ε i) m ≠ 0}.Finite

def Module.DualBases.coeffs E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {ι : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] → {e : ι → M} → {ε : ι → Module.Dual R M} → Module.DualBases e ε → M → ι →₀ R

The coefficients of v on the basis e

theorem Module.DualBases.coeffs_apply E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M} (h : Module.DualBases e ε) (m : M) (i : ι), (h.coeffs m) i = (ε i) m

def Module.DualBases.lc E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : CommSemiring R] → [inst_1 : AddCommMonoid M] → [Module R M] → {ι : Type u_4} → (ι → M) → (ι →₀ R) → M

linear combinations of elements of e. This is a convenient abbreviation for Finsupp.linearCombination R e l

theorem Module.DualBases.lc_def E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (e : ι → M) (l : ι →₀ R), Module.DualBases.lc e l = (Finsupp.linearCombination R e) l

theorem Module.DualBases.dual_lc E1 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M},
  Module.DualBases e ε → ∀ (l : ι →₀ R) (i : ι), (ε i) (Module.DualBases.lc e l) = l i

theorem Module.DualBases.coeffs_lc E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M} (h : Module.DualBases e ε) (l : ι →₀ R), h.coeffs (Module.DualBases.lc e l) = l

theorem Module.DualBases.lc_coeffs E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M} (h : Module.DualBases e ε) (m : M), Module.DualBases.lc e (h.coeffs m) = m

For any m : M n, $\sum_{p ∈ Q n} (ε p m) • e p = m$

def Module.DualBases.basis E3 #

{R : Type u_1} →
  {M : Type u_2} →
    {ι : Type u_3} →
      [inst : CommSemiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] → {e : ι → M} → {ε : ι → Module.Dual R M} → Module.DualBases e ε → Module.Basis ι R M

(h : DualBases e ε).basis shows the family of vectors e forms a basis.

theorem Module.DualBases.basis_repr_symm_apply E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M} (h : Module.DualBases e ε) (l : ι →₀ R),
  h.basis.repr.symm l = Module.DualBases.lc e l

theorem Module.DualBases.basis_repr_apply E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M} (h : Module.DualBases e ε) (m : M), h.basis.repr m = h.coeffs m

theorem Module.DualBases.coe_basis E3 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M} (h : Module.DualBases e ε), ⇑h.basis = e

theorem Module.DualBases.mem_of_mem_span E0 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M},
  Module.DualBases e ε → ∀ {H : Set ι} {x : M}, x ∈ Submodule.span R (e '' H) → ∀ (i : ι), (ε i) x ≠ 0 → i ∈ H

theorem Module.DualBases.coe_dualBasis E3 #

∀ {R : Type u_1} {M : Type u_2} {ι : Type u_3} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {e : ι → M} {ε : ι → Module.Dual R M} (h : Module.DualBases e ε) [inst_3 : DecidableEq ι] [inst_4 : Finite ι],
  ⇑h.basis.dualBasis = ε