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 / V03. Sets, finite structures and big operators

Mathlib.Data.Finsupp.SMulWithZero

12 declarations. Mathlib docs · Source

Scalar multiplication on Finsupp

This file defines the pointwise scalar multiplication on Finsupp, assuming it preserves zero.

Main declarations

  • Finsupp.smulZeroClass: if the action of R on M preserves 0, then it acts on α →₀ M

Implementation notes

This file is intermediate between Finsupp.Defs and Finsupp.Module in that it covers scalar multiplication but does not rely on the definition of Module. Scalar multiplication is needed to supply the nsmul (and zsmul) fields of (semi)ring structures which are fundamental for e.g. Polynomial, so we want to keep the imports required for the Finsupp.smulZeroClass instance reasonably light.

This file is a noncomputable theory and uses classical logic throughout.

Throughout this section, some Monoid and Semiring arguments are specified with {} instead of []. See note [implicit instance arguments].

instance Finsupp.smulZeroClass E3 #

{α : Type u_1} → {M : Type u_2} → {R : Type u_4} → [inst : Zero M] → [SMulZeroClass R M] → SMulZeroClass R (α →₀ M)

theorem Finsupp.coe_smul E0 #

∀ {α : Type u_1} {M : Type u_2} {R : Type u_4} [inst : Zero M] [inst_1 : SMulZeroClass R M] (b : R) (v : α →₀ M),
  ⇑(b • v) = b • ⇑v

theorem Finsupp.smul_apply E0 #

∀ {α : Type u_1} {M : Type u_2} {R : Type u_4} [inst : Zero M] [inst_1 : SMulZeroClass R M] (b : R) (v : α →₀ M)
  (a : α), (b • v) a = b • v a

instance Finsupp.instSMulWithZero E0 #

{α : Type u_1} →
  {M : Type u_2} → {R : Type u_4} → [inst : Zero R] → [inst_1 : Zero M] → [SMulWithZero R M] → SMulWithZero R (α →₀ M)

instance Finsupp.distribSMul E0 #

(α : Type u_1) → (M : Type u_2) → {R : Type u_4} → [inst : AddZeroClass M] → [DistribSMul R M] → DistribSMul R (α →₀ M)

instance Finsupp.isScalarTower E0 #

∀ (α : Type u_1) (M : Type u_2) {R : Type u_4} {S : Type u_5} [inst : Zero M] [inst_1 : SMulZeroClass R M]
  [inst_2 : SMulZeroClass S M] [inst_3 : SMul R S] [IsScalarTower R S M], IsScalarTower R S (α →₀ M)

instance Finsupp.smulCommClass E0 #

∀ (α : Type u_1) (M : Type u_2) {R : Type u_4} {S : Type u_5} [inst : Zero M] [inst_1 : SMulZeroClass R M]
  [inst_2 : SMulZeroClass S M] [SMulCommClass R S M], SMulCommClass R S (α →₀ M)

instance Finsupp.isCentralScalar E0 #

∀ (α : Type u_1) (M : Type u_2) {R : Type u_4} [inst : Zero M] [inst_1 : SMulZeroClass R M]
  [inst_2 : SMulZeroClass Rᵐᵒᵖ M] [IsCentralScalar R M], IsCentralScalar R (α →₀ M)

theorem Finsupp.support_smul E1 #

∀ {α : Type u_1} {M : Type u_2} {R : Type u_4} [inst : Zero M] [inst_1 : SMulZeroClass R M] {b : R} {g : α →₀ M},
  (b • g).support ⊆ g.support

theorem Finsupp.smul_single E0 #

∀ {α : Type u_1} {M : Type u_2} {R : Type u_4} [inst : Zero M] [inst_1 : SMulZeroClass R M] (c : R) (a : α) (b : M),
  (c • fun₀ | a => b) = fun₀ | a => c • b

theorem Finsupp.mapRange_smul' E1 #

∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {R : Type u_4} {S : Type u_5} [inst : Zero M]
  [inst_1 : SMulZeroClass R M] [inst_2 : Zero N] [inst_3 : SMulZeroClass S N] {f : M → N} {hf : f 0 = 0} (c : R) (d : S)
  (v : α →₀ M), (∀ (x : M), f (c • x) = d • f x) → Finsupp.mapRange f hf (c • v) = d • Finsupp.mapRange f hf v

theorem Finsupp.mapRange_smul E1 #

∀ {α : Type u_1} {M : Type u_2} {N : Type u_3} {R : Type u_4} [inst : Zero M] [inst_1 : SMulZeroClass R M]
  [inst_2 : Zero N] [inst_3 : SMulZeroClass R N] {f : M → N} {hf : f 0 = 0} (c : R) (v : α →₀ M),
  (∀ (x : M), f (c • x) = c • f x) → Finsupp.mapRange f hf (c • v) = c • Finsupp.mapRange f hf v