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.Finsupp.Pi

37 declarations and 3 deprecated aliases. Mathlib docs · Source

Properties of the module α →₀ M

  • Finsupp.linearEquivFunOnFinite: α →₀ β and a → β are equivalent if α is finite
  • FunOnFinite.map: the map (X → M) → (Y → M) induced by a map f : X ⟶ Y when X and Y are finite.
  • FunOnFinite.linearMmap: the linear map (X → M) →ₗ[R] (Y → M) induced by a map f : X ⟶ Y when X and Y are finite.

Tags

function with finite support, module, linear algebra

theorem FunOnFinite.map.congr_simp E1 #

∀ {M : Type u_5} [inst : AddCommMonoid M] {X : Type u_6} {Y : Type u_7} [inst_1 : Finite X] [inst_2 : Finite Y]
  (f f_1 : X → Y),
  f = f_1 → ∀ (s s_1 : X → M), s = s_1 → ∀ (a a_1 : Y), a = a_1 → FunOnFinite.map f s a = FunOnFinite.map f_1 s_1 a_1

theorem Finsupp.uniqueLinearEquiv.congr_simp E1 #

∀ (R : Type u_1) {α : Type u_2} (M : Type u_3) [inst : AddCommMonoid M] [inst_1 : Semiring R] [inst_2 : Module R M]
  [inst_3 : Subsingleton α] (a a_1 : α), a = a_1 → Finsupp.uniqueLinearEquiv R M a = Finsupp.uniqueLinearEquiv R M a_1

theorem FunOnFinite.linearMap.congr_simp E1 #

∀ (R : Type u_5) (M : Type u_6) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {X : Type u_7}
  {Y : Type u_8} [inst_3 : Finite X] [inst_4 : Finite Y] (f f_1 : X → Y),
  f = f_1 → FunOnFinite.linearMap R M f = FunOnFinite.linearMap R M f_1

def Finsupp.uniqueLinearEquiv E1 #

(R : Type u_1) →
  {α : Type u_2} →
    (M : Type u_3) →
      [inst : AddCommMonoid M] → [inst_1 : Semiring R] → [inst_2 : Module R M] → [Subsingleton α] → α → (α →₀ M) ≃ₗ[R] M

If α has a unique term, then the type of finitely supported functions α →₀ M is R-linearly equivalent to M.

theorem Finsupp.uniqueLinearEquiv_apply E0 #

∀ (R : Type u_1) {α : Type u_2} (M : Type u_3) [inst : AddCommMonoid M] [inst_1 : Semiring R] [inst_2 : Module R M]
  [inst_3 : Subsingleton α] (a : α) (a_1 : α →₀ M), (Finsupp.uniqueLinearEquiv R M a) a_1 = a_1 a

theorem Finsupp.uniqueLinearEquiv_symm_apply E0 #

∀ (R : Type u_1) {α : Type u_2} (M : Type u_3) [inst : AddCommMonoid M] [inst_1 : Semiring R] [inst_2 : Module R M]
  [inst_3 : Subsingleton α] (a : α) (a_1 : M), (Finsupp.uniqueLinearEquiv R M a).symm a_1 = fun₀ | a => a_1

theorem Finsupp.uniqueLinearEquiv_symm_apply_apply E0 #

∀ (R : Type u_1) {α : Type u_2} (M : Type u_3) [inst : AddCommMonoid M] [inst_1 : Semiring R] [inst_2 : Module R M]
  (a : α) [inst_3 : Subsingleton α] (m : M) (b : α), ((Finsupp.uniqueLinearEquiv R M a).symm m) b = m

def Finsupp.lcoeFun E1 #

{α : Type u_1} →
  {M : Type u_2} →
    {R : Type u_3} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (α →₀ M) →ₗ[R] α → M

Forget that a function is finitely supported.

This is the linear version of Finsupp.toFun.

theorem Finsupp.lcoeFun_apply E0 #

∀ {α : Type u_1} {M : Type u_2} {R : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (f : α →₀ M), Finsupp.lcoeFun f = ⇑f

theorem Finsupp.lcoeFun_comp_lsingle E0 #

∀ {α : Type u_1} {M : Type u_2} {R : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : DecidableEq α] (x : α), Finsupp.lcoeFun ∘ₗ Finsupp.lsingle x = LinearMap.single R (fun x ↦ M) x

def LinearMap.prodOfFinsuppNat E1 #

{R : Type u_1} →
  {M : Type u_2} →
    {P : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            [inst_3 : AddCommMonoid P] → [inst_4 : Module R P] → (P × M →ₗ[R] M) → (ℕ →₀ P) →ₗ[R] P × M

A linear map from a product module P × M to M induces a linear map from P^(ℕ) to M, where the nth component is given by P —ι₁→ P × M composed with P × M —f→ M —ι₂→ P × M n times.

theorem LinearMap.fst_prodOfFinsuppNat E1 #

∀ {R : Type u_1} {M : Type u_2} {P : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid P] [inst_4 : Module R P] (f : P × M →ₗ[R] M) (x : ℕ →₀ P), (f.prodOfFinsuppNat x).1 = x 0

theorem LinearMap.snd_prodOfFinsuppNat E1 #

∀ {R : Type u_1} {M : Type u_2} {P : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid P] [inst_4 : Module R P] (f : P × M →ₗ[R] M) (x : ℕ →₀ P),
  (f.prodOfFinsuppNat x).2 = f (f.prodOfFinsuppNat ((Finsupp.comapDomain.addMonoidHom ⋯) x))

theorem LinearMap.prodOfFinsuppNat_injective E1 #

∀ {R : Type u_1} {M : Type u_2} {P : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid P] [inst_4 : Module R P] {f : P × M →ₗ[R] M},
  Function.Injective ⇑f → Function.Injective ⇑f.prodOfFinsuppNat

theorem LinearMap.exists_finsupp_nat_of_prod_injective E1 #

∀ {R : Type u_1} {M : Type u_2} {P : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid P] [inst_4 : Module R P] {f : P × M →ₗ[R] M},
  Function.Injective ⇑f → ∃ g, Function.Injective ⇑g

theorem LinearMap.exists_finsupp_nat_of_fin_fun_injective E1 #

∀ {R : Type u_1} {P : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid P] [inst_2 : Module R P] {n : ℕ}
  {f : (Fin (n + 1) → P) →ₗ[R] Fin n → P}, Function.Injective ⇑f → ∃ g, Function.Injective ⇑g

def LinearMap.splittingOfFunOnFintypeSurjective E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : AddCommMonoid M] →
        [inst_2 : Module R M] →
          {α : Type u_5} → [Finite α] → (f : M →ₗ[R] α → R) → Function.Surjective ⇑f → (α → R) →ₗ[R] M

A surjective linear map to functions on a finite type has a splitting.

theorem LinearMap.splittingOfFunOnFintypeSurjective_splits E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  [inst_3 : Finite α] (f : M →ₗ[R] α → R) (s : Function.Surjective ⇑f),
  f ∘ₗ f.splittingOfFunOnFintypeSurjective s = LinearMap.id

theorem LinearMap.leftInverse_splittingOfFunOnFintypeSurjective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  [inst_3 : Finite α] (f : M →ₗ[R] α → R) (s : Function.Surjective ⇑f),
  Function.LeftInverse ⇑f ⇑(f.splittingOfFunOnFintypeSurjective s)

theorem LinearMap.splittingOfFunOnFintypeSurjective_injective E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  [inst_3 : Finite α] (f : M →ₗ[R] α → R) (s : Function.Surjective ⇑f),
  Function.Injective ⇑(f.splittingOfFunOnFintypeSurjective s)

def Finsupp.submodule E1 #

{R : Type u_1} →
  {M : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → {α : Type u_5} → (α → Submodule R M) → Submodule R (α →₀ M)

Given a family Sᵢ of R-submodules of M indexed by a type α, this is the R-submodule of α →₀ M of functions f such that f i ∈ Sᵢ for all i : α.

theorem Finsupp.mem_submodule_iff E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  (S : α → Submodule R M) (x : α →₀ M), x ∈ Finsupp.submodule S ↔ ∀ (i : α), x i ∈ S i

theorem Finsupp.comap_lsingle_submodule E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  (p : α → Submodule R M) (i : α), Submodule.comap (Finsupp.lsingle i) (Finsupp.submodule p) = p i

theorem Finsupp.submodule_eq_iSup E1 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  (p : α → Submodule R M), Finsupp.submodule p = ⨆ i, Submodule.map (Finsupp.lsingle i) (p i)

theorem Finsupp.submodule_top E0 #

∀ {R : Type u_1} {M : Type u_2} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5},
  (Finsupp.submodule fun x ↦ ⊤) = ⊤

theorem Finsupp.ker_mapRange E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (f : M →ₗ[R] N) (I : Type u_6),
  (Finsupp.mapRange.linearMap f).ker = Finsupp.submodule fun x ↦ f.ker

theorem Finsupp.range_mapRange_linearMap E1 #

∀ {R : Type u_1} {M : Type u_2} {N : Type u_3} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (f : M →ₗ[R] N),
  f.ker = ⊥ → ∀ (I : Type u_6), (Finsupp.mapRange.linearMap f).range = Finsupp.submodule fun x ↦ f.range

def FunOnFinite.map E1 #

{M : Type u_5} →
  [AddCommMonoid M] → {X : Type u_6} → {Y : Type u_7} → [Finite X] → [Finite Y] → (X → Y) → (X → M) → Y → M

The map (X → M) → (Y → M) induced by a map X → Y between finite types.

theorem FunOnFinite.map_apply_apply E0 #

∀ {M : Type u_5} [inst : AddCommMonoid M] {X : Type u_6} {Y : Type u_7} [inst_1 : Fintype X] [inst_2 : Finite Y]
  [inst_3 : DecidableEq Y] (f : X → Y) (s : X → M) (y : Y), FunOnFinite.map f s y = ∑ x with f x = y, s x

theorem FunOnFinite.map_piSingle E0 #

∀ {M : Type u_5} [inst : AddCommMonoid M] {X : Type u_6} {Y : Type u_7} [inst_1 : Finite X] [inst_2 : Finite Y]
  [inst_3 : DecidableEq X] [inst_4 : DecidableEq Y] (f : X → Y) (x : X) (m : M),
  FunOnFinite.map f (Pi.single x m) = Pi.single (f x) m

theorem FunOnFinite.map_id E0 #

∀ (M : Type u_5) [inst : AddCommMonoid M] {X : Type u_6} [inst_1 : Finite X], FunOnFinite.map id = id

theorem FunOnFinite.map_comp E0 #

∀ {M : Type u_5} [inst : AddCommMonoid M] {X : Type u_6} {Y : Type u_7} {Z : Type u_8} [inst_1 : Finite X]
  [inst_2 : Finite Y] [inst_3 : Finite Z] (g : Y → Z) (f : X → Y),
  FunOnFinite.map (g ∘ f) = FunOnFinite.map g ∘ FunOnFinite.map f

def FunOnFinite.linearMap E1 #

(R : Type u_5) →
  (M : Type u_6) →
    [inst : Semiring R] →
      [inst_1 : AddCommMonoid M] →
        [inst_2 : Module R M] →
          {X : Type u_7} → {Y : Type u_8} → [Finite X] → [Finite Y] → (X → Y) → (X → M) →ₗ[R] Y → M

The linear map (X → M) →ₗ[R] (Y → M) induced by a map X → Y between finite types.

theorem FunOnFinite.linearMap_apply_apply E0 #

∀ (R : Type u_5) (M : Type u_6) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {X : Type u_7}
  {Y : Type u_8} [inst_3 : Fintype X] [inst_4 : Finite Y] [inst_5 : DecidableEq Y] (f : X → Y) (s : X → M) (y : Y),
  (FunOnFinite.linearMap R M f) s y = {x | f x = y}.sum s

theorem FunOnFinite.linearMap_piSingle E0 #

∀ (R : Type u_5) (M : Type u_6) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {X : Type u_7}
  {Y : Type u_8} [inst_3 : Finite X] [inst_4 : Finite Y] [inst_5 : DecidableEq X] [inst_6 : DecidableEq Y] (f : X → Y)
  (x : X) (m : M), (FunOnFinite.linearMap R M f) (Pi.single x m) = Pi.single (f x) m

theorem FunOnFinite.linearMap_id E0 #

∀ (R : Type u_5) (M : Type u_6) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (X : Type u_7)
  [inst_3 : Finite X], FunOnFinite.linearMap R M id = LinearMap.id

theorem FunOnFinite.linearMap_comp E1 #

∀ (R : Type u_5) (M : Type u_6) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {X : Type u_7}
  {Y : Type u_8} {Z : Type u_9} [inst_3 : Finite X] [inst_4 : Finite Y] [inst_5 : Finite Z] (f : X → Y) (g : Y → Z),
  FunOnFinite.linearMap R M (g ∘ f) = FunOnFinite.linearMap R M g ∘ₗ FunOnFinite.linearMap R M f

Deprecated aliases

NameNew nameSince
Finsupp.LinearEquiv.finsuppUniqueFinsupp.uniqueLinearEquiv2026-05-06
Finsupp.LinearEquiv.finsuppUnique_applyFinsupp.uniqueLinearEquiv_apply2026-05-06
Finsupp.LinearEquiv.finsuppUnique_symm_applyFinsupp.uniqueLinearEquiv_symm_apply2026-05-06