SMul instances for FunLike types #
In this file we define various instances related to scalar multiplications for FunLike types.
Note that currently, these are not registered as instances, but only abbrevs to avoid long
typeclass searches.
@[reducible, inline]
abbrev FunLike.distribSMul {M : Type u_1} {F : Type u_3} {α : Type u_4} {β : α → Type u_5} [i : DFunLike F α β] [(a : α) → AddZeroClass (β a)] [AddZeroClass F] [(a : α) → DistribSMul M (β a)] [SMul M F] [IsZeroApply F] [IsAddApply F] [IsSMulApply M F] :
DistribSMul M F
A FunLike type with scalar multiplication that satisfies (m • f) x = m • f x and
0 x = 0, (f + g) x = f x + g x is a DistribSMul if β is a DistribSMul.
Equations
Instances For
@[reducible, inline]
abbrev FunLike.distribMulAction {M : Type u_1} {F : Type u_3} {α : Type u_4} {β : α → Type u_5} [i : DFunLike F α β] [Monoid M] [(a : α) → AddMonoid (β a)] [AddMonoid F] [(a : α) → DistribMulAction M (β a)] [SMul M F] [IsZeroApply F] [IsAddApply F] [IsSMulApply M F] :
DistribMulAction M F
A FunLike type with scalar multiplication that satisfies (m • f) x = m • f x, 0 x = 0,
(f + g) x = f x + g x is a DistribMulAction if β is a DistribMulAction.