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.Defs

105 declarations. Mathlib docs · Source

Bases

This file defines bases in a module or vector space.

It is inspired by Isabelle/HOL's linear algebra, and hence indirectly by HOL Light.

Main definitions

All definitions are given for families of vectors, i.e. v : ι → M where M is the module or vector space and ι : Type* is an arbitrary indexing type.

  • Basis ι R M is the type of ι-indexed R-bases for a module M, represented by a linear equiv M ≃ₗ[R] ι →₀ R.

  • the basis vectors of a basis b : Basis ι R M are available as b i, where i : ι

  • Basis.repr is the isomorphism sending x : M to its coordinates Basis.repr x : ι →₀ R. The converse, turning this isomorphism into a basis, is called Basis.ofRepr.

  • If ι is finite, there is a variant of repr called Basis.equivFun b : M ≃ₗ[R] ι → R (saving you from having to work with Finsupp). The converse, turning this isomorphism into a basis, is called Basis.ofEquivFun.

  • Basis.reindex uses an equiv to map a basis to a different indexing set.

  • Basis.map uses a linear equiv to map a basis to a different module.

  • Basis.constr: given b : Basis ι R M and f : ι → M, construct a linear map g so that g (b i) = f i.

  • Basis.coord: b.coord i x is the i-th coordinate of a vector x with respect to the basis b.

Main results

  • Basis.ext states that two linear maps are equal if they coincide on a basis. Similar results are available for linear equivs (if they coincide on the basis vectors), elements (if their coordinates coincide) and the functions b.repr and ⇑b.

Implementation notes

We use families instead of sets because it allows us to say that two identical vectors are linearly dependent. For bases, this is useful as well because we can easily derive ordered bases by using an ordered index type ι.

Tags

basis, bases

theorem LinearEquiv.restrictScalars.congr_simp E1 #

∀ (R : Type u_1) {S : Type u_4} {M : Type u_5} {M₂ : Type u_7} [inst : Semiring R] [inst_1 : Semiring S]
  [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M] [inst_5 : Module R M₂]
  [inst_6 : Module S M] [inst_7 : Module S M₂] [inst_8 : LinearMap.CompatibleSMul M M₂ R S] (f f_1 : M ≃ₗ[S] M₂),
  f = f_1 → LinearEquiv.restrictScalars R f = LinearEquiv.restrictScalars R f_1

theorem Module.Basis.ofRepr.injEq E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (repr repr_1 : M ≃ₗ[R] ι →₀ R), ({ repr := repr } = { repr := repr_1 }) = (repr = repr_1)

theorem Finsupp.linearEquivFunOnFinite.congr_simp E1 #

∀ (R : Type u_8) (M : Type u_9) (α : Type u_10) [inst : Finite α] [inst_1 : AddCommMonoid M] [inst_2 : Semiring R]
  [inst_3 : Module R M], Finsupp.linearEquivFunOnFinite R M α = Finsupp.linearEquivFunOnFinite R M α

theorem Module.Basis.ofEquivFun.congr_simp E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] (e e_1 : M ≃ₗ[R] ι → R), e = e_1 → Module.Basis.ofEquivFun e = Module.Basis.ofEquivFun e_1

theorem Module.Basis.mapCoeffs.congr_simp E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b b_1 : Module.Basis ι R M),
  b = b_1 →
    ∀ {R' : Type u_10} [inst_3 : Semiring R'] [inst_4 : Module R' M] (f f_1 : R ≃+* R') (e_f : f = f_1)
      (h : ∀ (c : R) (x : M), f c • x = c • x), b.mapCoeffs f h = b_1.mapCoeffs f_1 ⋯

theorem Module.subsingletonEquiv.congr_simp E1 #

∀ (R : Type u_4) (M : Type u_5) (ι : Type u_6) [inst : Semiring R] [inst_1 : Subsingleton R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M], Module.subsingletonEquiv R M ι = Module.subsingletonEquiv R M ι

theorem Module.Basis.equivFun.congr_simp E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] (b b_1 : Module.Basis ι R M), b = b_1 → b.equivFun = b_1.equivFun

theorem Module.Basis.ofRepr.inj E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} {inst : Semiring R} {inst_1 : AddCommMonoid M} {inst_2 : Module R M}
  {repr repr_1 : M ≃ₗ[R] ι →₀ R}, { repr := repr } = { repr := repr_1 } → repr = repr_1

def Module.Basis.ctorIdx E1 #

{ι : Type u_1} →
  {R : Type u_3} →
    {M : Type u_4} → {inst : Semiring R} → {inst_1 : AddCommMonoid M} → {inst_2 : Module R M} → Module.Basis ι R M → ℕ

structure Module.Basis E3 #

Type u_1 →
  (R : Type u_3) →
    (M : Type u_4) → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [Module R M] → Type (max (max u_1 u_3) u_4)

A Basis ι R M for a module M is the type of ι-indexed R-bases of M.

The basis vectors are available as DFunLike.coe (b : Basis ι R M) : ι → M. To turn a linear independent family of vectors spanning M into a basis, use Basis.mk. They are internally represented as linear equivs M ≃ₗ[R] (ι →₀ R), available as Basis.repr.

ctor Module.Basis.ofRepr E3 #

{ι : Type u_1} →
  {R : Type u_3} →
    {M : Type u_4} →
      [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (M ≃ₗ[R] ι →₀ R) → Module.Basis ι R M

Basis.ofRepr constructs a basis given an assignment of coordinates to each vector.

abbrev Module.Basis.repr E3 #

{ι : Type u_1} →
  {R : Type u_3} →
    {M : Type u_4} →
      [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Module.Basis ι R M → M ≃ₗ[R] ι →₀ R

repr is the linear equivalence sending a vector x to its coordinates: the cs such that x = ∑ i, c i.

instance Module.Basis.instInhabitedFinsupp E0 #

{ι : Type u_1} → {R : Type u_3} → [inst : Semiring R] → Inhabited (Module.Basis ι R (ι →₀ R))

theorem Module.Basis.repr_injective E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  Function.Injective Module.Basis.repr

instance Module.Basis.instFunLike E0 #

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

b i is the ith basis vector.

theorem Module.Basis.coe_ofRepr E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (e : M ≃ₗ[R] ι →₀ R), ⇑{ repr := e } = fun i ↦ e.symm fun₀ | i => 1

theorem Module.Basis.injective E1 #

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

theorem Module.Basis.repr_symm_single_one E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι), (b.repr.symm fun₀ | i => 1) = b i

theorem Module.Basis.repr_symm_single E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι) (c : R), (b.repr.symm fun₀ | i => c) = c • b i

theorem Module.Basis.repr_self E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι), b.repr (b i) = fun₀ | i => 1

theorem Module.Basis.repr_self_apply E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i j : ι) [inst_3 : Decidable (i = j)], (b.repr (b i)) j = if i = j then 1 else 0

theorem Module.Basis.repr_symm_apply E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (v : ι →₀ R), b.repr.symm v = (Finsupp.linearCombination R ⇑b) v

theorem Module.Basis.coe_repr_symm E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), ↑b.repr.symm = Finsupp.linearCombination R ⇑b

theorem Module.Basis.repr_linearCombination E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (v : ι →₀ R), b.repr ((Finsupp.linearCombination R ⇑b) v) = v

theorem Module.Basis.linearCombination_repr E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (x : M), (Finsupp.linearCombination R ⇑b) (b.repr x) = x

def Module.Basis.map E3 #

{ι : Type u_1} →
  {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'] → Module.Basis ι R M → (M ≃ₗ[R] M') → Module.Basis ι R M'

Apply the linear equivalence f to the basis vectors.

theorem Module.Basis.map_repr E0 #

∀ {ι : Type u_1} {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) (f : M ≃ₗ[R] M'),
  (b.map f).repr = f.symm ≪≫ₗ b.repr

theorem Module.Basis.map_apply E0 #

∀ {ι : Type u_1} {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) (f : M ≃ₗ[R] M')
  (i : ι), (b.map f) i = f (b i)

theorem Module.Basis.coe_map E0 #

∀ {ι : Type u_1} {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) (f : M ≃ₗ[R] M'),
  ⇑(b.map f) = ⇑f ∘ ⇑b

def Module.Basis.reindex E3 #

{ι : Type u_1} →
  {ι' : Type u_2} →
    {R : Type u_3} →
      {M : Type u_4} →
        [inst : Semiring R] →
          [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Module.Basis ι R M → ι ≃ ι' → Module.Basis ι' R M

b.reindex (e : ι ≃ ι') is a basis indexed by ι'

theorem Module.Basis.reindex_apply E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (b : Module.Basis ι R M) (e : ι ≃ ι') (i' : ι'), (b.reindex e) i' = b (e.symm i')

theorem Module.Basis.coe_reindex E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (b : Module.Basis ι R M) (e : ι ≃ ι'), ⇑(b.reindex e) = ⇑b ∘ ⇑e.symm

theorem Module.Basis.repr_reindex_apply E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (b : Module.Basis ι R M) (x : M) (e : ι ≃ ι') (i' : ι'),
  ((b.reindex e).repr x) i' = (b.repr x) (e.symm i')

theorem Module.Basis.repr_reindex E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (b : Module.Basis ι R M) (x : M) (e : ι ≃ ι'),
  (b.reindex e).repr x = Finsupp.equivMapDomain e (b.repr x)

theorem Module.Basis.reindex_refl E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), b.reindex (Equiv.refl ι) = b

theorem Module.Basis.range_reindex E1 #

∀ {ι : Type u_1} {ι' : Type u_2} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (b : Module.Basis ι R M) (e : ι ≃ ι'), Set.range ⇑(b.reindex e) = Set.range ⇑b

simp can prove this as Basis.coe_reindex + EquivLike.range_comp

def Module.Basis.equivFun E3 #

{ι : Type u_1} →
  {R : Type u_3} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Finite ι] → Module.Basis ι R M → M ≃ₗ[R] ι → R

A module over R with a finite basis is linearly equivalent to functions from its basis to R.

def Module.fintypeOfFintype E1 #

{ι : Type u_1} →
  {R : Type u_3} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Fintype ι] → Module.Basis ι R M → [Fintype R] → Fintype M

A module over a finite ring that admits a finite basis is finite.

theorem Module.Basis.equivFun_symm_apply E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Fintype ι] (b : Module.Basis ι R M) (x : ι → R), b.equivFun.symm x = ∑ i, x i • b i

Given a basis v indexed by ι, the canonical linear equivalence between ι → R and M maps a function x : ι → R to the linear combination ∑_i x i • v i.

theorem Module.Basis.equivFun_apply E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] (b : Module.Basis ι R M) (u : M), b.equivFun u = ⇑(b.repr u)

theorem Module.Basis.map_equivFun E0 #

∀ {ι : Type u_1} {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'] [inst_5 : Finite ι] (b : Module.Basis ι R M)
  (f : M ≃ₗ[R] M'), (b.map f).equivFun = f.symm ≪≫ₗ b.equivFun

theorem Module.Basis.sum_equivFun E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Fintype ι] (b : Module.Basis ι R M) (u : M), ∑ i, b.equivFun u i • b i = u

theorem Module.Basis.sum_repr E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Fintype ι] (b : Module.Basis ι R M) (u : M), ∑ i, (b.repr u) i • b i = u

theorem Module.Basis.equivFun_self E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] [inst_4 : DecidableEq ι] (b : Module.Basis ι R M) (i j : ι),
  b.equivFun (b i) j = if i = j then 1 else 0

theorem Module.Basis.repr_sum_self E1 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Fintype ι] (b : Module.Basis ι R M) (c : ι → R), ⇑(b.repr (∑ i, c i • b i)) = c

def Module.Basis.ofEquivFun E3 #

{ι : Type u_1} →
  {R : Type u_3} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Finite ι] → (M ≃ₗ[R] ι → R) → Module.Basis ι R M

Define a basis by mapping each vector x : M to its coordinates e x : ι → R, as long as ι is finite.

theorem Module.Basis.ofEquivFun_repr_apply E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] (e : M ≃ₗ[R] ι → R) (x : M) (i : ι), ((Module.Basis.ofEquivFun e).repr x) i = e x i

theorem Module.Basis.coe_ofEquivFun E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] [inst_4 : DecidableEq ι] (e : M ≃ₗ[R] ι → R),
  ⇑(Module.Basis.ofEquivFun e) = fun i ↦ e.symm (Pi.single i 1)

theorem Module.Basis.ofEquivFun_equivFun E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] (v : Module.Basis ι R M), Module.Basis.ofEquivFun v.equivFun = v

theorem Module.Basis.equivFun_ofEquivFun E0 #

∀ {ι : Type u_1} {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] (e : M ≃ₗ[R] ι → R), (Module.Basis.ofEquivFun e).equivFun = e

theorem Module.Basis.ext E3 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {R₁ : Type u_10} [inst_3 : Semiring R₁] {σ : R →+* R₁} {M₁ : Type u_11}
  [inst_4 : AddCommMonoid M₁] [inst_5 : Module R₁ M₁] {f₁ f₂ : M →ₛₗ[σ] M₁}, (∀ (i : ι), f₁ (b i) = f₂ (b i)) → f₁ = f₂

Two linear maps are equal if they are equal on basis vectors.

theorem Module.Basis.ext' E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {R₁ : Type u_10} [inst_3 : Semiring R₁] {σ : R →+* R₁} {σ' : R₁ →+* R}
  [inst_4 : RingHomInvPair σ σ'] [inst_5 : RingHomInvPair σ' σ] {M₁ : Type u_11} [inst_6 : AddCommMonoid M₁]
  [inst_7 : Module R₁ M₁] {f₁ f₂ : M ≃ₛₗ[σ] M₁}, (∀ (i : ι), f₁ (b i) = f₂ (b i)) → f₁ = f₂

Two linear equivs are equal if they are equal on basis vectors.

theorem Module.Basis.ext_elem_iff E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {x y : M}, x = y ↔ ∀ (i : ι), (b.repr x) i = (b.repr y) i

Two elements are equal iff their coordinates are equal.

theorem Module.Basis.ext_elem E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {x y : M}, (∀ (i : ι), (b.repr x) i = (b.repr y) i) → x = y

Alias of the reverse direction of Module.Basis.ext_elem_iff.


Two elements are equal iff their coordinates are equal.

theorem Module.Basis.repr_eq_iff E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {b : Module.Basis ι R M} {f : M →ₗ[R] ι →₀ R}, ↑b.repr = f ↔ ∀ (i : ι), f (b i) = fun₀ | i => 1

theorem Module.Basis.repr_eq_iff' E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {b : Module.Basis ι R M} {f : M ≃ₗ[R] ι →₀ R}, b.repr = f ↔ ∀ (i : ι), f (b i) = fun₀ | i => 1

theorem Module.Basis.apply_eq_iff E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {b : Module.Basis ι R M} {x : M} {i : ι}, b i = x ↔ b.repr x = fun₀ | i => 1

theorem Module.Basis.repr_apply_eq E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (f : M → ι → R),
  (∀ (x y : M), f (x + y) = f x + f y) →
    (∀ (c : R) (x : M), f (c • x) = c • f x) →
      (∀ (i : ι), f (b i) = ⇑fun₀ | i => 1) → ∀ (x : M) (i : ι), (b.repr x) i = f x i

An unbundled version of repr_eq_iff

def Module.Basis.mapCoeffs E1 #

{ι : Type u_7} →
  {R : Type u_8} →
    {M : Type u_9} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            Module.Basis ι R M →
              {R' : Type u_10} →
                [inst_3 : Semiring R'] →
                  [inst_4 : Module R' M] → (f : R ≃+* R') → (∀ (c : R) (x : M), f c • x = c • x) → Module.Basis ι R' M

If R and R' are isomorphic rings that act identically on a module M, then a basis for M as R-module is also a basis for M as R'-module.

See also Basis.algebraMapCoeffs for the case where f is equal to algebraMap.

theorem Module.Basis.mapCoeffs_repr E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {R' : Type u_10} [inst_3 : Semiring R'] [inst_4 : Module R' M] (f : R ≃+* R')
  (h : ∀ (c : R) (x : M), f c • x = c • x),
  (b.mapCoeffs f h).repr =
    LinearEquiv.restrictScalars R' b.repr ≪≫ₗ Finsupp.mapRange.linearEquiv (Module.compHom.toLinearEquiv f.symm).symm

theorem Module.Basis.mapCoeffs_apply E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {R' : Type u_10} [inst_3 : Semiring R'] [inst_4 : Module R' M] (f : R ≃+* R')
  (h : ∀ (c : R) (x : M), f c • x = c • x) (i : ι), (b.mapCoeffs f h) i = b i

theorem Module.Basis.coe_mapCoeffs E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {R' : Type u_10} [inst_3 : Semiring R'] [inst_4 : Module R' M] (f : R ≃+* R')
  (h : ∀ (c : R) (x : M), f c • x = c • x), ⇑(b.mapCoeffs f h) = ⇑b

def Module.Basis.reindexRange E1 #

{ι : Type u_7} →
  {R : Type u_8} →
    {M : Type u_9} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] → (b : Module.Basis ι R M) → Module.Basis (↑(Set.range ⇑b)) R M

b.reindexRange is a basis indexed by range b, the basis vectors themselves.

theorem Module.Basis.reindexRange_self E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι) (h : optParam (b i ∈ Set.range ⇑b) ⋯), b.reindexRange ⟨b i, h⟩ = b i

theorem Module.Basis.reindexRange_repr_self E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι), b.reindexRange.repr (b i) = fun₀ | ⟨b i, ⋯⟩ => 1

theorem Module.Basis.reindexRange_apply E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (x : ↑(Set.range ⇑b)), b.reindexRange x = ↑x

theorem Module.Basis.reindexRange_repr' E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (x : M) {bi : M} {i : ι} (h : b i = bi), (b.reindexRange.repr x) ⟨bi, ⋯⟩ = (b.repr x) i

theorem Module.Basis.reindexRange_repr E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (x : M) (i : ι) (h : optParam (b i ∈ Set.range ⇑b) ⋯),
  (b.reindexRange.repr x) ⟨b i, h⟩ = (b.repr x) i

def Module.Basis.reindexFinsetRange E1 #

{ι : Type u_7} →
  {R : Type u_8} →
    {M : Type u_9} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            (b : Module.Basis ι R M) →
              [inst_3 : Fintype ι] → [inst_4 : DecidableEq M] → Module.Basis (↥(Finset.image (⇑b) Finset.univ)) R M

b.reindexFinsetRange is a basis indexed by Finset.univ.image b, the finite set of basis vectors themselves.

theorem Module.Basis.reindexFinsetRange_self E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [inst_3 : Fintype ι] [inst_4 : DecidableEq M] (i : ι)
  (h : optParam (b i ∈ Finset.image (⇑b) Finset.univ) ⋯), b.reindexFinsetRange ⟨b i, h⟩ = b i

theorem Module.Basis.reindexFinsetRange_apply E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [inst_3 : Fintype ι] [inst_4 : DecidableEq M] (x : ↥(Finset.image (⇑b) Finset.univ)),
  b.reindexFinsetRange x = ↑x

theorem Module.Basis.reindexFinsetRange_repr_self E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [inst_3 : Fintype ι] [inst_4 : DecidableEq M] (i : ι),
  b.reindexFinsetRange.repr (b i) = fun₀ | ⟨b i, ⋯⟩ => 1

theorem Module.Basis.reindexFinsetRange_repr E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [inst_3 : Fintype ι] [inst_4 : DecidableEq M] (x : M) (i : ι)
  (h : optParam (b i ∈ Finset.image (⇑b) Finset.univ) ⋯), (b.reindexFinsetRange.repr x) ⟨b i, h⟩ = (b.repr x) i

def Module.Basis.constr E3 #

{M' : Type u_5} →
  [inst : AddCommMonoid M'] →
    {ι : Type u_7} →
      {R : Type u_8} →
        {M : Type u_9} →
          [inst_1 : Semiring R] →
            [inst_2 : AddCommMonoid M] →
              [inst_3 : Module R M] →
                Module.Basis ι R M →
                  [inst_4 : Module R M'] →
                    (S : Type u_10) →
                      [inst_5 : Semiring S] →
                        [inst_6 : Module S M'] → [inst_7 : SMulCommClass R S M'] → (ι → M') ≃ₗ[S] M →ₗ[R] M'

Construct a linear map given the value at the basis, called Basis.constr b S f where b is a basis, f is the value of the linear map over the elements of the basis, and S is an extra semiring (typically S = R or S = ℕ).

This definition is parameterized over an extra Semiring S, such that SMulCommClass R S M' holds. If R is commutative, you can set S := R; if R is not commutative, you can recover an AddEquiv by setting S := ℕ. See library note [bundled maps over different rings].

theorem Module.Basis.constr_def E0 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] (f : ι → M'),
  (b.constr S) f = Finsupp.linearCombination R id ∘ₗ Finsupp.lmapDomain R R f ∘ₗ ↑b.repr

theorem Module.Basis.constr_apply E0 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] (f : ι → M') (x : M),
  ((b.constr S) f) x = (b.repr x).sum fun b a ↦ a • f b

theorem Module.Basis.constr_symm_apply E0 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] (f : M →ₗ[R] M') (i : ι),
  (b.constr S).symm f i = f (b i)

theorem Module.Basis.constr_basis E0 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] (f : ι → M') (i : ι),
  ((b.constr S) f) (b i) = f i

theorem Module.Basis.constr_eq E0 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] {g : ι → M'} {f : M →ₗ[R] M'},
  (∀ (i : ι), g i = f (b i)) → (b.constr S) g = f

theorem Module.Basis.constr_self E1 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] (f : M →ₗ[R] M'),
  ((b.constr S) fun i ↦ f (b i)) = f

theorem Module.Basis.constr_range E1 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] {f : ι → M'},
  ((b.constr S) f).range = Submodule.span R (Set.range f)

theorem Module.Basis.constr_comp E0 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M'] (S : Type u_10)
  [inst_5 : Semiring S] [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] (f : M' →ₗ[R] M') (v : ι → M'),
  (b.constr S) (⇑f ∘ v) = f ∘ₗ (b.constr S) v

theorem Module.Basis.constr_apply_fintype E0 #

∀ {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst_1 : Semiring R]
  [inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : Module R M'] (S : Type u_11) [inst_5 : Semiring S]
  [inst_6 : Module S M'] [inst_7 : SMulCommClass R S M'] [inst_8 : Fintype ι] (b : Module.Basis ι R M) (f : ι → M')
  (x : M), ((b.constr S) f) x = ∑ i, b.equivFun x i • f i

def Module.Basis.equiv E1 #

{ι' : Type u_2} →
  {M' : Type u_5} →
    [inst : AddCommMonoid M'] →
      {ι : Type u_7} →
        {R : Type u_8} →
          {M : Type u_9} →
            [inst_1 : Semiring R] →
              [inst_2 : AddCommMonoid M] →
                [inst_3 : Module R M] →
                  Module.Basis ι R M → [inst_4 : Module R M'] → Module.Basis ι' R M' → ι ≃ ι' → M ≃ₗ[R] M'

If b is a basis for M and b' a basis for M', and the index types are equivalent, b.equiv b' e is a linear equivalence M ≃ₗ[R] M', mapping b i to b' (e i).

theorem Module.Basis.equiv_apply E0 #

∀ {ι' : Type u_2} {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9}
  [inst_1 : Semiring R] [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M']
  (i : ι) (b' : Module.Basis ι' R M') (e : ι ≃ ι'), (b.equiv b' e) (b i) = b' (e i)

theorem Module.Basis.equiv_refl E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), b.equiv b (Equiv.refl ι) = LinearEquiv.refl R M

theorem Module.Basis.equiv_symm E0 #

∀ {ι' : Type u_2} {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9}
  [inst_1 : Semiring R] [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M']
  (b' : Module.Basis ι' R M') (e : ι ≃ ι'), (b.equiv b' e).symm = b'.equiv b e.symm

theorem Module.Basis.equiv_trans E0 #

∀ {ι' : Type u_2} {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9}
  [inst_1 : Semiring R] [inst_2 : AddCommMonoid M] [inst_3 : Module R M] (b : Module.Basis ι R M) [inst_4 : Module R M']
  {M'' : Type u_10} (b' : Module.Basis ι' R M') [inst_5 : AddCommMonoid M''] [inst_6 : Module R M''] {ι'' : Type u_11}
  (b'' : Module.Basis ι'' R M'') (e : ι ≃ ι') (e' : ι' ≃ ι''),
  b.equiv b' e ≪≫ₗ b'.equiv b'' e' = b.equiv b'' (e.trans e')

theorem Module.Basis.map_equiv E0 #

∀ {ι' : Type u_2} {M' : Type u_5} [inst : AddCommMonoid M'] {ι : Type u_7} {R : Type u_8} {M : Type u_9}
  [inst_1 : Semiring R] [inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : Module R M'] (b : Module.Basis ι R M)
  (b' : Module.Basis ι' R M') (e : ι ≃ ι'), b.map (b.equiv b' e) = b'.reindex e.symm

def Module.Basis.equiv' E1 #

{ι' : Type u_2} →
  {ι : Type u_7} →
    {R : Type u_11} →
      {M : Type u_12} →
        {M' : Type u_13} →
          [inst : CommSemiring R] →
            [inst_1 : AddCommMonoid M] →
              [inst_2 : Module R M] →
                [inst_3 : AddCommMonoid M'] →
                  [inst_4 : Module R M'] →
                    (b : Module.Basis ι R M) →
                      (b' : Module.Basis ι' R M') →
                        (f : M → M') →
                          (g : M' → M) →
                            (∀ (i : ι), f (b i) ∈ Set.range ⇑b') →
                              (∀ (i : ι'), g (b' i) ∈ Set.range ⇑b) →
                                (∀ (i : ι), g (f (b i)) = b i) → (∀ (i : ι'), f (g (b' i)) = b' i) → M ≃ₗ[R] M'

If b is a basis for M and b' a basis for M', and f, g form a bijection between the basis vectors, b.equiv' b' f g hf hg hgf hfg is a linear equivalence M ≃ₗ[R] M', mapping b i to f (b i).

theorem Module.Basis.equiv'_apply E0 #

∀ {ι' : Type u_2} {ι : Type u_7} {R : Type u_11} {M : Type u_12} {M' : Type u_13} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid M'] [inst_4 : Module R M']
  (b : Module.Basis ι R M) (b' : Module.Basis ι' R M') (f : M → M') (g : M' → M)
  (hf : ∀ (i : ι), f (b i) ∈ Set.range ⇑b') (hg : ∀ (i : ι'), g (b' i) ∈ Set.range ⇑b)
  (hgf : ∀ (i : ι), g (f (b i)) = b i) (hfg : ∀ (i : ι'), f (g (b' i)) = b' i) (i : ι),
  (b.equiv' b' f g hf hg hgf hfg) (b i) = f (b i)

theorem Module.Basis.equiv'_symm_apply E0 #

∀ {ι' : Type u_2} {ι : Type u_7} {R : Type u_11} {M : Type u_12} {M' : Type u_13} [inst : CommSemiring R]
  [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid M'] [inst_4 : Module R M']
  (b : Module.Basis ι R M) (b' : Module.Basis ι' R M') (f : M → M') (g : M' → M)
  (hf : ∀ (i : ι), f (b i) ∈ Set.range ⇑b') (hg : ∀ (i : ι'), g (b' i) ∈ Set.range ⇑b)
  (hgf : ∀ (i : ι), g (f (b i)) = b i) (hfg : ∀ (i : ι'), f (g (b' i)) = b' i) (i : ι'),
  (b.equiv' b' f g hf hg hgf hfg).symm (b' i) = g (b' i)

theorem Module.Basis.sum_repr_mul_repr E1 #

∀ {ι : Type u_7} {R : Type u_11} {M : Type u_12} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (b : Module.Basis ι R M) {ι' : Type u_14} [inst_3 : Fintype ι'] (b' : Module.Basis ι' R M)
  (x : M) (i : ι), ∑ j, (b.repr (b' j)) i * (b'.repr x) j = (b.repr x) i

def Module.Basis.coord E3 #

{ι : Type u_7} →
  {R : Type u_8} →
    {M : Type u_9} →
      [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Module.Basis ι R M → ι → M →ₗ[R] R

b.coord i is the linear function giving the i-th coordinate of a vector with respect to the basis b.

b.coord i is an element of the dual space. In particular, for finite-dimensional spaces it is the ιth basis vector of the dual space.

theorem Module.Basis.coord_apply E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι) (x : M), (b.coord i) x = (b.repr x) i

theorem Module.Basis.forall_coord_eq_zero_iff E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) {x : M}, (∀ (i : ι), (b.coord i) x = 0) ↔ x = 0

def Module.Basis.sumCoords E1 #

{ι : Type u_7} →
  {R : Type u_8} →
    {M : Type u_9} →
      [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → Module.Basis ι R M → M →ₗ[R] R

The sum of the coordinates of an element m : M with respect to a basis.

theorem Module.Basis.coe_sumCoords E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), ⇑b.sumCoords = fun m ↦ (b.repr m).sum fun x ↦ id

theorem Module.Basis.coe_sumCoords_of_fintype E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) [inst_3 : Fintype ι], ⇑b.sumCoords = ⇑(∑ i, b.coord i)

theorem Module.Basis.sumCoords_self_apply E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι), b.sumCoords (b i) = 1

theorem Module.Basis.dvd_coord_smul E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι) (m : M) (r : R), r ∣ (b.coord i) (r • m)

theorem Module.Basis.coord_repr_symm E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M) (i : ι) (f : ι →₀ R), (b.coord i) (b.repr.symm f) = f i

theorem Module.Basis.coe_sumCoords_eq_finsum E0 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (b : Module.Basis ι R M), ⇑b.sumCoords = fun m ↦ ∑ᶠ (i : ι), (b.coord i) m

theorem Module.Basis.sumCoords_reindex E0 #

∀ {ι' : Type u_2} {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (b : Module.Basis ι R M) (e : ι ≃ ι'), (b.reindex e).sumCoords = b.sumCoords

theorem Module.Basis.coord_equivFun_symm E1 #

∀ {ι : Type u_7} {R : Type u_8} {M : Type u_9} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : Finite ι] (b : Module.Basis ι R M) (i : ι) (f : ι → R), (b.coord i) (b.equivFun.symm f) = f i