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

18 declarations and 2 deprecated aliases. Mathlib docs · Source

Bases and scalar multiplication

This file defines the scalar multiplication of bases by multiplying each basis vector.

instance Module.Basis.instSMul E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            {G : Type u_5} →
              [inst_3 : Group G] → [inst_4 : DistribMulAction G M] → [SMulCommClass G R M] → SMul G (Module.Basis ι R M)

The action on a Basis by acting on each element.

See also Basis.unitsSMul and Basis.groupSMul, for the cases when a different action is applied to each basis element.

instance Module.Basis.instIsSMulApply E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {G : Type u_5} [inst_3 : Group G] [inst_4 : DistribMulAction G M] [inst_5 : SMulCommClass G R M],
  IsSMulApply G (Module.Basis ι R M)

theorem Module.Basis.smul_eq_map E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  (g : M ≃ₗ[R] M) (b : Module.Basis ι R M), g • b = b.map g

When the group in question is the automorphisms, • coincides with Basis.map.

theorem Module.Basis.repr_smul E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {G : Type u_5} [inst_3 : Group G] [inst_4 : DistribMulAction G M] [inst_5 : SMulCommClass G R M] (g : G)
  (b : Module.Basis ι R M), (g • b).repr = (DistribMulAction.toLinearEquiv R M g).symm ≪≫ₗ b.repr

instance Module.Basis.instMulAction E0 #

{ι : Type u_1} →
  {R : Type u_2} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            {G : Type u_5} →
              [inst_3 : Group G] →
                [inst_4 : DistribMulAction G M] → [SMulCommClass G R M] → MulAction G (Module.Basis ι R M)

instance Module.Basis.instSMulCommClass E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {G : Type u_5} {G' : Type u_6} [inst_3 : Group G] [inst_4 : Group G'] [inst_5 : DistribMulAction G M]
  [inst_6 : DistribMulAction G' M] [inst_7 : SMulCommClass G R M] [inst_8 : SMulCommClass G' R M]
  [SMulCommClass G G' M], SMulCommClass G G' (Module.Basis ι R M)

instance Module.Basis.instIsScalarTower E0 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {G : Type u_5} {G' : Type u_6} [inst_3 : Group G] [inst_4 : Group G'] [inst_5 : DistribMulAction G M]
  [inst_6 : DistribMulAction G' M] [inst_7 : SMulCommClass G R M] [inst_8 : SMulCommClass G' R M] [inst_9 : SMul G G']
  [IsScalarTower G G' M], IsScalarTower G G' (Module.Basis ι R M)

theorem Module.Basis.groupSMul_span_eq_top E1 #

∀ {ι : Type u_1} {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
  {G : Type u_5} [inst_3 : Group G] [inst_4 : SMul G R] [inst_5 : MulAction G M] [IsScalarTower G R M] {v : ι → M},
  Submodule.span R (Set.range v) = ⊤ → ∀ {w : ι → G}, Submodule.span R (Set.range (w • v)) = ⊤

def Module.Basis.groupSMul E1 #

{ι : Type u_1} →
  {R : Type u_2} →
    {M : Type u_4} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : Module R M] →
            {G : Type u_5} →
              [inst_3 : Group G] →
                [inst_4 : DistribMulAction G R] →
                  [inst_5 : DistribMulAction G M] →
                    [IsScalarTower G R M] → [SMulCommClass G R M] → Module.Basis ι R M → (ι → G) → Module.Basis ι R M

Given a basis v and a map w such that for all i, w i are elements of a group, groupSMul provides the basis corresponding to w • v.

theorem Module.Basis.groupSMul_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]
  {G : Type u_5} [inst_3 : Group G] [inst_4 : DistribMulAction G R] [inst_5 : DistribMulAction G M]
  [inst_6 : IsScalarTower G R M] [inst_7 : SMulCommClass G R M] {v : Module.Basis ι R M} {w : ι → G} (i : ι),
  (v.groupSMul w) i = (w • ⇑v) i

theorem Module.Basis.units_smul_span_eq_top 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}, Submodule.span R (Set.range v) = ⊤ → ∀ {w : ι → Rˣ}, Submodule.span R (Set.range (w • v)) = ⊤

def Module.Basis.unitsSMul E1 #

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

Given a basis v and a map w such that for all i, w i is a unit, unitsSMul provides the basis corresponding to w • v.

theorem Module.Basis.unitsSMul_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 : Module.Basis ι R M} {w : ι → Rˣ} (i : ι), (v.unitsSMul w) i = w i • v i

theorem Module.Basis.coord_unitsSMul E0 #

∀ {ι : Type u_1} {R₂ : Type u_3} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : CommSemiring R₂]
  [inst_2 : Module R₂ M] (e : Module.Basis ι R₂ M) (w : ι → R₂ˣ) (i : ι), (e.unitsSMul w).coord i = (w i)⁻¹ • e.coord i

theorem Module.Basis.repr_unitsSMul E0 #

∀ {ι : Type u_1} {R₂ : Type u_3} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : CommSemiring R₂]
  [inst_2 : Module R₂ M] (e : Module.Basis ι R₂ M) (w : ι → R₂ˣ) (v : M) (i : ι),
  ((e.unitsSMul w).repr v) i = (w i)⁻¹ • (e.repr v) i

def Module.Basis.isUnitSMul E1 #

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

A version of unitsSMul that uses IsUnit.

theorem Module.Basis.isUnitSMul_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 : Module.Basis ι R M} {w : ι → R} (hw : ∀ (i : ι), IsUnit (w i)) (i : ι), (v.isUnitSMul hw) i = w i • v i

theorem Module.Basis.repr_isUnitSMul E1 #

∀ {ι : Type u_1} {R₂ : Type u_3} {M : Type u_4} [inst : AddCommMonoid M] [inst_1 : CommSemiring R₂]
  [inst_2 : Module R₂ M] {v : Module.Basis ι R₂ M} {w : ι → R₂} (hw : ∀ (i : ι), IsUnit (w i)) (x : M) (i : ι),
  ((v.isUnitSMul hw).repr x) i = ⋯.unit⁻¹ • (v.repr x) i

Deprecated aliases

NameNew nameSince
Module.Basis.coe_smulFunLike.coe_smul2026-10-26
Module.Basis.smul_applysmul_apply2026-10-26