The areas / V07. Linear algebra
Mathlib.Algebra.Module.LinearMap.Defs
185 declarations and 5 deprecated aliases. Mathlib docs · Source
(Semi)linear maps
In this file we define
-
LinearMap σ M M₂,M →ₛₗ[σ] M₂: a semilinear map between twoModules. Here,σis aRingHomfromRtoR₂and anf : M →ₛₗ[σ] M₂satisfiesf (c • x) = (σ c) • (f x). We recover plain linear maps by choosingσto beRingHom.id R. This is denoted byM →ₗ[R] M₂. We also add the notationM →ₗ⋆[R] M₂for star-linear maps. -
IsLinearMap R f: predicate saying thatf : M → M₂is a linear map. (Note that this was not generalized to semilinear maps.)
We then provide LinearMap with the following instances:
LinearMap.addCommMonoidandLinearMap.addCommGroup: the elementwise addition structures corresponding to addition in the codomainLinearMap.distribMulActionandLinearMap.module: the elementwise scalar action structures corresponding to applying the action in the codomain.
Implementation notes
To ensure that composition works smoothly for semilinear maps, we use the typeclasses
RingHomCompTriple, RingHomInvPair and RingHomSurjective from
Mathlib/Algebra/Ring/CompTypeclasses.lean.
Notation
- Throughout the file, we denote regular linear maps by
fₗ,gₗ, etc, and semilinear maps byf,g, etc.
TODO
- Parts of this file have not yet been generalized to semilinear maps (i.e.
CompatibleSMul)
Tags
linear map
Arithmetic on the codomain
theorem LinearMap.comp.congr_simp E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃]
(f f_1 : M₂ →ₛₗ[σ₂₃] M₃), f = f_1 → ∀ (g g_1 : M₁ →ₛₗ[σ₁₂] M₂), g = g_1 → f ∘ₛₗ g = f_1 ∘ₛₗ g_1
theorem LinearMap.mk.injEq E0 #
∀ {R : Type u_14} {S : Type u_15} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {M : Type u_16}
{M₂ : Type u_17} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M] [inst_5 : Module S M₂]
(toAddHom : M →ₙ+ M₂) (map_smul' : ∀ (m : R) (x : M), toAddHom.toFun (m • x) = σ m • toAddHom.toFun x)
(toAddHom_1 : M →ₙ+ M₂) (map_smul'_1 : ∀ (m : R) (x : M), toAddHom_1.toFun (m • x) = σ m • toAddHom_1.toFun x),
({ toAddHom := toAddHom, map_smul' := map_smul' } = { toAddHom := toAddHom_1, map_smul' := map_smul'_1 }) =
(toAddHom = toAddHom_1)
def LinearMap.ctorIdx E1 #
{R : Type u_14} →
{S : Type u_15} →
{inst : Semiring R} →
{inst_1 : Semiring S} →
{σ : R →+* S} →
{M : Type u_16} →
{M₂ : Type u_17} →
{inst_2 : AddCommMonoid M} →
{inst_3 : AddCommMonoid M₂} → {inst_4 : Module R M} → {inst_5 : Module S M₂} → (M →ₛₗ[σ] M₂) → ℕ
theorem LinearMap.mk.inj E1 #
∀ {R : Type u_14} {S : Type u_15} {inst : Semiring R} {inst_1 : Semiring S} {σ : R →+* S} {M : Type u_16}
{M₂ : Type u_17} {inst_2 : AddCommMonoid M} {inst_3 : AddCommMonoid M₂} {inst_4 : Module R M} {inst_5 : Module S M₂}
{toAddHom : M →ₙ+ M₂} {map_smul' : ∀ (m : R) (x : M), toAddHom.toFun (m • x) = σ m • toAddHom.toFun x}
{toAddHom_1 : M →ₙ+ M₂} {map_smul'_1 : ∀ (m : R) (x : M), toAddHom_1.toFun (m • x) = σ m • toAddHom_1.toFun x},
{ toAddHom := toAddHom, map_smul' := map_smul' } = { toAddHom := toAddHom_1, map_smul' := map_smul'_1 } →
toAddHom = toAddHom_1
structure IsLinearMap E1 #
(R : Type u) →
{M : Type v} →
{M₂ : Type w} →
[inst : Semiring R] →
[inst_1 : AddCommMonoid M] → [inst_2 : AddCommMonoid M₂] → [Module R M] → [Module R M₂] → (M → M₂) → Prop
A map f between modules over a semiring is linear if it satisfies the two properties
f (x + y) = f x + f y and f (c • x) = c • f x. The predicate IsLinearMap R f asserts this
property. A bundled version is available with LinearMap, and should be favored over
IsLinearMap most of the time.
ctor IsLinearMap.mk E0 #
∀ {R : Type u} {M : Type v} {M₂ : Type w} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂]
[inst_3 : Module R M] [inst_4 : Module R M₂] {f : M → M₂},
(∀ (x y : M), f (x + y) = f x + f y) → (∀ (c : R) (x : M), f (c • x) = c • f x) → IsLinearMap R f
theorem IsLinearMap.map_add E0 #
∀ {R : Type u} {M : Type v} {M₂ : Type w} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂]
[inst_3 : Module R M] [inst_4 : Module R M₂] {f : M → M₂}, IsLinearMap R f → ∀ (x y : M), f (x + y) = f x + f y
A linear map preserves addition.
theorem IsLinearMap.map_smul E0 #
∀ {R : Type u} {M : Type v} {M₂ : Type w} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂]
[inst_3 : Module R M] [inst_4 : Module R M₂] {f : M → M₂}, IsLinearMap R f → ∀ (c : R) (x : M), f (c • x) = c • f x
A linear map preserves scalar multiplication.
structure LinearMap E3 #
{R : Type u_14} →
{S : Type u_15} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
(R →+* S) →
(M : Type u_16) →
(M₂ : Type u_17) →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] → [Module R M] → [Module S M₂] → Type (max u_16 u_17)
A map f between an R-module and an S-module over a ring homomorphism σ : R →+* S
is semilinear if it satisfies the two properties f (x + y) = f x + f y and
f (c • x) = (σ c) • f x. Elements of LinearMap σ M M₂ (available under the notation
M →ₛₗ[σ] M₂) are bundled versions of such maps. For plain linear maps (i.e. for which
σ = RingHom.id R), the notation M →ₗ[R] M₂ is available. An unbundled version of plain linear
maps is available with the predicate IsLinearMap, but it should be avoided most of the time.
abbrev LinearMap.toAddHom E1 #
{R : Type u_14} →
{S : Type u_15} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
{σ : R →+* S} →
{M : Type u_16} →
{M₂ : Type u_17} →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] → [inst_4 : Module R M] → [inst_5 : Module S M₂] → (M →ₛₗ[σ] M₂) → M →ₙ+ M₂
The AddHom underlying a LinearMap.
ctor LinearMap.mk E0 #
{R : Type u_14} →
{S : Type u_15} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
{σ : R →+* S} →
{M : Type u_16} →
{M₂ : Type u_17} →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R M] →
[inst_5 : Module S M₂] →
(toAddHom : M →ₙ+ M₂) →
(∀ (m : R) (x : M), toAddHom.toFun (m • x) = σ m • toAddHom.toFun x) → M →ₛₗ[σ] M₂
abbrev LinearMap.toMulActionHom E1 #
{R : Type u_14} →
{S : Type u_15} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
{σ : R →+* S} →
{M : Type u_16} →
{M₂ : Type u_17} →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R M] → [inst_5 : Module S M₂] → (M →ₛₗ[σ] M₂) → M →ₑ[⇑σ] M₂
The MulActionHom underlying a LinearMap.
theorem LinearMap.map_smul' E0 #
∀ {R : Type u_14} {S : Type u_15} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {M : Type u_16}
{M₂ : Type u_17} [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M] [inst_5 : Module S M₂]
(self : M →ₛₗ[σ] M₂) (m : R) (x : M), self.toFun (m • x) = σ m • self.toFun x
The proposition that the function commutes with the actions.
def «term_→ₛₗ[_]_» E1 #
Lean.TrailingParserDescr
M →ₛₗ[σ] N is the type of σ-semilinear maps from M to N.
def «term_→ₗ[_]_» E1 #
Lean.TrailingParserDescr
M →ₗ[R] N is the type of R-linear maps from M to N.
class SemilinearMapClass E1 #
(F : Type u_14) →
{R : outParam (Type u_15)} →
{S : outParam (Type u_16)} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
outParam (R →+* S) →
(M : outParam (Type u_17)) →
(M₂ : outParam (Type u_18)) →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] → [Module R M] → [Module S M₂] → [FunLike F M M₂] → Prop
SemilinearMapClass F σ M M₂ asserts F is a type of bundled σ-semilinear maps M → M₂.
See also LinearMapClass F R M M₂ for the case where σ is the identity map on R.
A map f between an R-module and an S-module over a ring homomorphism σ : R →+* S
is semilinear if it satisfies the two properties f (x + y) = f x + f y and
f (c • x) = (σ c) • f x.
instance SemilinearMapClass.toMulActionSemiHomClass E0 #
∀ {F : Type u_14} {R : outParam (Type u_15)} {S : outParam (Type u_16)} {inst : Semiring R} {inst_1 : Semiring S}
{σ : outParam (R →+* S)} {M : outParam (Type u_17)} {M₂ : outParam (Type u_18)} {inst_2 : AddCommMonoid M}
{inst_3 : AddCommMonoid M₂} {inst_4 : Module R M} {inst_5 : Module S M₂} {inst_6 : FunLike F M M₂}
[self : SemilinearMapClass F σ M M₂], MulActionSemiHomClass F (⇑σ) M M₂
ctor SemilinearMapClass.mk E0 #
∀ {F : Type u_14} {R : outParam (Type u_15)} {S : outParam (Type u_16)} [inst : Semiring R] [inst_1 : Semiring S]
{σ : outParam (R →+* S)} {M : outParam (Type u_17)} {M₂ : outParam (Type u_18)} [inst_2 : AddCommMonoid M]
[inst_3 : AddCommMonoid M₂] [inst_4 : Module R M] [inst_5 : Module S M₂] [inst_6 : FunLike F M M₂]
[toAddHomClass : AddHomClass F M M₂] [toMulActionSemiHomClass : MulActionSemiHomClass F (⇑σ) M M₂],
SemilinearMapClass F σ M M₂
instance SemilinearMapClass.toAddHomClass E0 #
∀ {F : Type u_14} {R : outParam (Type u_15)} {S : outParam (Type u_16)} {inst : Semiring R} {inst_1 : Semiring S}
{σ : outParam (R →+* S)} {M : outParam (Type u_17)} {M₂ : outParam (Type u_18)} {inst_2 : AddCommMonoid M}
{inst_3 : AddCommMonoid M₂} {inst_4 : Module R M} {inst_5 : Module S M₂} {inst_6 : FunLike F M M₂}
[self : SemilinearMapClass F σ M M₂], AddHomClass F M M₂
abbrev LinearMapClass E1 #
(F : Type u_14) →
(R : outParam (Type u_15)) →
(M : Type u_16) →
(M₂ : Type u_17) →
[inst : Semiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : AddCommMonoid M₂] → [Module R M] → [Module R M₂] → [FunLike F M M₂] → Prop
LinearMapClass F R M M₂ asserts F is a type of bundled R-linear maps M → M₂.
This is an abbreviation for SemilinearMapClass F (RingHom.id R) M M₂.
theorem LinearMapClass.map_smul E0 #
∀ {R : outParam (Type u_14)} {M : outParam (Type u_15)} {M₂ : outParam (Type u_16)} [inst : Semiring R]
[inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] {F : Type u_17}
[inst_5 : FunLike F M M₂] [LinearMapClass F R M M₂] (f : F) (r : R) (x : M), f (r • x) = r • f x
instance SemilinearMapClass.instAddMonoidHomClass E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} (F : Type u_14) [inst : Semiring R]
[inst_1 : Semiring S] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M]
[inst_5 : Module S M₃] {σ : R →+* S} [inst_6 : FunLike F M M₃] [SemilinearMapClass F σ M M₃], AddMonoidHomClass F M M₃
instance SemilinearMapClass.distribMulActionSemiHomClass E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} (F : Type u_14) [inst : Semiring R]
[inst_1 : Semiring S] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M]
[inst_5 : Module S M₃] {σ : R →+* S} [inst_6 : FunLike F M M₃] [SemilinearMapClass F σ M M₃],
DistribMulActionSemiHomClass F (⇑σ) M M₃
theorem SemilinearMapClass.map_smul_inv E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} {F : Type u_14} [inst : Semiring R]
[inst_1 : Semiring S] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M]
[inst_5 : Module S M₃] {σ : R →+* S} (f : F) [inst_6 : FunLike F M M₃] [SemilinearMapClass F σ M M₃] {σ' : S →+* R}
[RingHomInvPair σ σ'] (c : S) (x : M), c • f x = f (σ' c • x)
def LinearMap.ofClass E1 #
{R : Type u_1} →
{S : Type u_5} →
{M : Type u_8} →
{M₃ : Type u_11} →
{F : Type u_14} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₃] →
[inst_4 : Module R M] →
[inst_5 : Module S M₃] →
{σ : R →+* S} → F → [inst_6 : FunLike F M M₃] → [SemilinearMapClass F σ M M₃] → M →ₛₗ[σ] M₃
Reinterpret an element of a type of semilinear maps as a semilinear map.
instance SemilinearMapClass.instCoeToSemilinearMap E0 #
{R : Type u_1} →
{S : Type u_5} →
{M : Type u_8} →
{M₃ : Type u_11} →
{F : Type u_14} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₃] →
[inst_4 : Module R M] →
[inst_5 : Module S M₃] →
{σ : R →+* S} →
[inst_6 : FunLike F M M₃] → [SemilinearMapClass F σ M M₃] → CoeHead F (M →ₛₗ[σ] M₃)
Reinterpret an element of a type of semilinear maps as a semilinear map.
instance LinearMap.instFunLike E0 #
{R : Type u_1} →
{S : Type u_5} →
{M : Type u_8} →
{M₃ : Type u_11} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₃] →
[inst_4 : Module R M] → [inst_5 : Module S M₃] → {σ : R →+* S} → FunLike (M →ₛₗ[σ] M₃) M M₃
instance LinearMap.semilinearMapClass E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S},
SemilinearMapClass (M →ₛₗ[σ] M₃) σ M M₃
theorem LinearMap.coe_ofClass E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
{F : Type u_14} [inst_6 : FunLike F M M₃] [inst_7 : SemilinearMapClass F σ M M₃] {f : F}, ⇑↑f = ⇑f
def LinearMap.toDistribMulActionHom E1 #
{R : Type u_1} →
{S : Type u_5} →
{M : Type u_8} →
{M₃ : Type u_11} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₃] →
[inst_4 : Module R M] → [inst_5 : Module S M₃] → {σ : R →+* S} → (M →ₛₗ[σ] M₃) → M →ₑ+[↑σ] M₃
The DistribMulActionHom underlying a LinearMap.
theorem LinearMap.coe_toAddHom E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃), ⇑f.toAddHom = ⇑f
theorem LinearMap.toFun_eq_coe E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
{f : M →ₛₗ[σ] M₃}, f.toFun = ⇑f
theorem LinearMap.ext E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
{f g : M →ₛₗ[σ] M₃}, (∀ (x : M), f x = g x) → f = g
theorem LinearMap.ext_iff E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
{f g : M →ₛₗ[σ] M₃}, f = g ↔ ∀ (x : M), f x = g x
def LinearMap.copy E1 #
{R : Type u_1} →
{S : Type u_5} →
{M : Type u_8} →
{M₃ : Type u_11} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₃] →
[inst_4 : Module R M] →
[inst_5 : Module S M₃] → {σ : R →+* S} → (f : M →ₛₗ[σ] M₃) → (f' : M → M₃) → f' = ⇑f → M →ₛₗ[σ] M₃
Copy of a LinearMap with a new toFun equal to the old one. Useful to fix definitional
equalities.
theorem LinearMap.coe_copy E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃) (f' : M → M₃) (h : f' = ⇑f), ⇑(f.copy f' h) = f'
theorem LinearMap.copy_eq E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃) (f' : M → M₃) (h : f' = ⇑f), f.copy f' h = f
theorem LinearMap.coe_mk E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₙ+ M₃) (h : ∀ (m : R) (x : M), f.toFun (m • x) = σ m • f.toFun x), ⇑{ toAddHom := f, map_smul' := h } = ⇑f
theorem LinearMap.coe_addHom_mk E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₙ+ M₃) (h : ∀ (m : R) (x : M), f.toFun (m • x) = σ m • f.toFun x), ↑{ toAddHom := f, map_smul' := h } = f
theorem LinearMap.ofClass_injective E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
{F : Type u_14} [inst_6 : FunLike F M M₃] [inst_7 : SemilinearMapClass F σ M M₃] {f g : F}, ↑f = ↑g → f = g
def LinearMap.id E3 #
{R : Type u_1} → {M : Type u_8} → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → M →ₗ[R] M
Identity map as a LinearMap
theorem LinearMap.id_apply E0 #
∀ {R : Type u_1} {M : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (x : M),
LinearMap.id x = x
theorem LinearMap.id_coe E0 #
∀ {R : Type u_1} {M : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M], ⇑LinearMap.id = id
def LinearMap.id' E1 #
{R : Type u_1} →
{M : Type u_8} →
[inst : Semiring R] →
[inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → {σ : R →+* R} → [RingHomId σ] → M →ₛₗ[σ] M
A generalisation of LinearMap.id that constructs the identity function
as a σ-semilinear map for any ring homomorphism σ which we know is the identity.
theorem LinearMap.id'_apply E0 #
∀ {R : Type u_1} {M : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {σ : R →+* R}
[inst_3 : RingHomId σ] (x : M), LinearMap.id' x = x
theorem LinearMap.id'_coe E0 #
∀ {R : Type u_1} {M : Type u_8} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {σ : R →+* R}
[inst_3 : RingHomId σ], ⇑LinearMap.id' = id
theorem LinearMap.isLinear E1 #
∀ {R : Type u_1} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] (fₗ : M →ₗ[R] M₂), IsLinearMap R ⇑fₗ
theorem LinearMap.coe_injective E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S},
Function.Injective DFunLike.coe
theorem LinearMap.congr_arg E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
{f : M →ₛₗ[σ] M₃} {x x' : M}, x = x' → f x = f x'
theorem LinearMap.congr_fun E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
{f g : M →ₛₗ[σ] M₃}, f = g → ∀ (x : M), f x = g x
If two linear maps are equal, they are equal at each point.
theorem LinearMap.mk_coe E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃) (h : ∀ (m : R) (x : M), (↑f).toFun (m • x) = σ m • (↑f).toFun x),
{ toAddHom := ↑f, map_smul' := h } = f
theorem LinearMap.mk_coe' E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃) (h : ∀ (m : R) (x : M), f.toFun (m • x) = σ m • f.toFun x),
{ toAddHom := f.toAddHom, map_smul' := h } = f
theorem LinearMap.map_add E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃) (x y : M), f (x + y) = f x + f y
theorem LinearMap.map_zero E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃), f 0 = 0
theorem LinearMap.map_smulₛₗ E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃) (c : R) (x : M), f (c • x) = σ c • f x
theorem LinearMap.map_smul E0 #
∀ {R : Type u_1} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] (fₗ : M →ₗ[R] M₂) (c : R) (x : M),
fₗ (c • x) = c • fₗ x
theorem LinearMap.map_smul_inv E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃) {σ' : S →+* R} [RingHomInvPair σ σ'] (c : S) (x : M), c • f x = f (σ' c • x)
theorem LinearMap.map_eq_zero_iff E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S}
(f : M →ₛₗ[σ] M₃), Function.Injective ⇑f → ∀ {x : M}, f x = 0 ↔ x = 0
class LinearMap.CompatibleSMul E1 #
(M : Type u_8) →
(M₂ : Type u_10) →
[inst : AddCommMonoid M] →
[inst_1 : AddCommMonoid M₂] →
(R : Type u_14) →
(S : Type u_15) → [inst_2 : Semiring S] → [SMul R M] → [Module S M] → [SMul R M₂] → [Module S M₂] → Prop
A typeclass for SMul structures which can be moved through a LinearMap.
This typeclass is generated automatically from an IsScalarTower instance, but exists so that
we can also add an instance for AddCommGroup.toIntModule, allowing z • to be moved even if
S does not support negation.
ctor LinearMap.CompatibleSMul.mk E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] {R : Type u_14} {S : Type u_15}
[inst_2 : Semiring S] [inst_3 : SMul R M] [inst_4 : Module S M] [inst_5 : SMul R M₂] [inst_6 : Module S M₂],
(∀ (fₗ : M →ₗ[S] M₂) (c : R) (x : M), fₗ (c • x) = c • fₗ x) → LinearMap.CompatibleSMul M M₂ R S
theorem LinearMap.CompatibleSMul.map_smul E0 #
∀ {M : Type u_8} {M₂ : Type u_10} {inst : AddCommMonoid M} {inst_1 : AddCommMonoid M₂} {R : Type u_14} {S : Type u_15}
{inst_2 : Semiring S} {inst_3 : SMul R M} {inst_4 : Module S M} {inst_5 : SMul R M₂} {inst_6 : Module S M₂}
[self : LinearMap.CompatibleSMul M M₂ R S] (fₗ : M →ₗ[S] M₂) (c : R) (x : M), fₗ (c • x) = c • fₗ x
Scalar multiplication by R of M can be moved through linear maps.
instance LinearMap.IsScalarTower.compatibleSMul E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] {R : Type u_14} {S : Type u_15}
[inst_2 : Semiring S] [inst_3 : SMul R M] [inst_4 : Module S M] [inst_5 : SMul R M₂] [inst_6 : Module S M₂]
[inst_7 : SMul R S] [IsScalarTower R S M] [IsScalarTower R S M₂], LinearMap.CompatibleSMul M M₂ R S
instance LinearMap.IsScalarTower.compatibleSMul' E0 #
∀ {M : Type u_8} [inst : AddCommMonoid M] {R : Type u_14} {S : Type u_15} [inst_1 : Semiring S] [inst_2 : SMul R M]
[inst_3 : Module S M] [inst_4 : SMul R S] [IsScalarTower R S M], LinearMap.CompatibleSMul S M R S
theorem LinearMap.map_smul_of_tower E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] {R : Type u_14} {S : Type u_15}
[inst_2 : Semiring S] [inst_3 : SMul R M] [inst_4 : Module S M] [inst_5 : SMul R M₂] [inst_6 : Module S M₂]
[LinearMap.CompatibleSMul M M₂ R S] (fₗ : M →ₗ[S] M₂) (c : R) (x : M), fₗ (c • x) = c • fₗ x
theorem LinearMapClass.map_smul_of_tower E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] {R : Type u_14} {S : Type u_15}
[inst_2 : Semiring S] [inst_3 : SMul R M] [inst_4 : Module S M] [inst_5 : SMul R M₂] [inst_6 : Module S M₂]
{F : Type u_16} [LinearMap.CompatibleSMul M M₂ R S] [inst_8 : FunLike F M M₂] [LinearMapClass F S M M₂] (fₗ : F)
(c : R) (x : M), fₗ (c • x) = c • fₗ x
theorem LinearMap.isScalarTower_of_injective E1 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] (R : Type u_14) {S : Type u_15}
[inst_2 : Semiring S] [inst_3 : SMul R M] [inst_4 : Module S M] [inst_5 : SMul R M₂] [inst_6 : Module S M₂]
[inst_7 : SMul R S] [LinearMap.CompatibleSMul M M₂ R S] [IsScalarTower R S M₂] (f : M →ₗ[S] M₂),
Function.Injective ⇑f → IsScalarTower R S M
theorem map_zsmul_unit E0 #
∀ {F : Type u_16} {M : Type u_17} {N : Type u_18} [inst : AddGroup M] [inst_1 : AddGroup N] [inst_2 : FunLike F M N]
[AddMonoidHomClass F M N] (f : F) (c : ℤˣ) (m : M), f (c • m) = c • f m
theorem LinearMap.isLinearMap_of_compatibleSMul E1 #
∀ (R : Type u_1) {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [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₂] [LinearMap.CompatibleSMul M M₂ R S] (f : M →ₗ[S] M₂), IsLinearMap R ⇑f
def LinearMap.toAddMonoidHom E1 #
{R : Type u_1} →
{S : Type u_5} →
{M₁ : Type u_9} →
{M₂ : Type u_10} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M₁] →
[inst_3 : AddCommMonoid M₂] →
{modM₁ : Module R M₁} → {modM₂ : Module S M₂} → {σ : R →+* S} → (M₁ →ₛₗ[σ] M₂) → M₁ →+ M₂
Convert a linear map to an additive monoid hom.
theorem LinearMap.toAddMonoidHom_coe E0 #
∀ {R : Type u_1} {S : Type u_5} {M₁ : Type u_9} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M₁] [inst_3 : AddCommMonoid M₂] {modM₁ : Module R M₁} {modM₂ : Module S M₂} {σ : R →+* S}
(f : M₁ →ₛₗ[σ] M₂), ⇑f.toAddMonoidHom = ⇑f
def LinearMap.restrictScalars E1 #
(R : Type u_1) →
{S : Type u_5} →
{M : Type u_8} →
{M₂ : Type u_10} →
[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₂] → [LinearMap.CompatibleSMul M M₂ R S] → (M →ₗ[S] M₂) → M →ₗ[R] M₂
If M and M₂ are both R-modules and S-modules and R-module structures
are defined by an action of R on S (formally, we have two scalar towers), then any S-linear
map from M to M₂ is R-linear.
See also LinearMap.map_smul_of_tower.
instance LinearMap.coeIsScalarTower E0 #
(R : Type u_1) →
{S : Type u_5} →
{M : Type u_8} →
{M₂ : Type u_10} →
[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₂] → [LinearMap.CompatibleSMul M M₂ R S] → CoeHTCT (M →ₗ[S] M₂) (M →ₗ[R] M₂)
theorem LinearMap.coe_restrictScalars E0 #
∀ (R : Type u_1) {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [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 : M →ₗ[S] M₂),
⇑(↑R f) = ⇑f
theorem LinearMap.restrictScalars_self E0 #
∀ (R : Type u_1) {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] (f : M →ₗ[R] M₂), ↑R f = f
theorem LinearMap.restrictScalars_apply E0 #
∀ (R : Type u_1) {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [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ₗ : M →ₗ[S] M₂) (x : M),
(↑R fₗ) x = fₗ x
theorem LinearMap.restrictScalars_injective E1 #
∀ (R : Type u_1) {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [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], Function.Injective ↑R
theorem LinearMap.restrictScalars_inj E0 #
∀ (R : Type u_1) {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [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ₗ gₗ : M →ₗ[S] M₂),
↑R fₗ = ↑R gₗ ↔ fₗ = gₗ
theorem LinearMap.restrictScalars_id E0 #
∀ (R : Type u_1) {S : Type u_5} {M : Type u_8} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : AddCommMonoid M]
[inst_3 : Module R M] [inst_4 : Module S M] [inst_5 : LinearMap.CompatibleSMul M M R S],
↑R LinearMap.id = LinearMap.id
theorem LinearMap.toAddMonoidHom_injective E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module S M₃] {σ : R →+* S},
Function.Injective LinearMap.toAddMonoidHom
theorem LinearMap.ext_ring E1 #
∀ {R : Type u_1} {S : Type u_5} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : AddCommMonoid M₃]
[inst_3 : Module S M₃] {σ : R →+* S} {f g : R →ₛₗ[σ] M₃}, f 1 = g 1 → f = g
If two σ-linear maps from R are equal on 1, then they are equal.
theorem LinearMap.ext_ring_iff E0 #
∀ {R : Type u_1} {S : Type u_5} {M₃ : Type u_11} [inst : Semiring R] [inst_1 : Semiring S] [inst_2 : AddCommMonoid M₃]
[inst_3 : Module S M₃] {σ : R →+* S} {f g : R →ₛₗ[σ] M₃}, f = g ↔ f 1 = g 1
def RingHom.toSemilinearMap E1 #
{R : Type u_1} → {S : Type u_5} → [inst : Semiring R] → [inst_1 : Semiring S] → (f : R →+* S) → R →ₛₗ[f] S
Interpret a RingHom f as an f-semilinear map.
theorem RingHom.toSemilinearMap_apply E0 #
∀ {R : Type u_1} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S) (a : R),
f.toSemilinearMap a = (↑↑f).toFun a
theorem RingHom.coe_toSemilinearMap E0 #
∀ {R : Type u_1} {S : Type u_5} [inst : Semiring R] [inst_1 : Semiring S] (f : R →+* S), ⇑f.toSemilinearMap = ⇑f
def LinearMap.comp E1 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{R₃ : Type u_4} →
{M₁ : Type u_9} →
{M₂ : Type u_10} →
{M₃ : Type u_11} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : Semiring R₃] →
[inst_3 : AddCommMonoid M₁] →
[inst_4 : AddCommMonoid M₂] →
[inst_5 : AddCommMonoid M₃] →
{module_M₁ : Module R₁ M₁} →
{module_M₂ : Module R₂ M₂} →
{module_M₃ : Module R₃ M₃} →
{σ₁₂ : R₁ →+* R₂} →
{σ₂₃ : R₂ →+* R₃} →
{σ₁₃ : R₁ →+* R₃} →
[RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
(M₂ →ₛₗ[σ₂₃] M₃) → (M₁ →ₛₗ[σ₁₂] M₂) → M₁ →ₛₗ[σ₁₃] M₃
Composition of two linear maps is a linear map
def LinearMap.compNotation E1 #
Lean.TrailingParserDescr
∘ₗ is notation for composition of two linear (not semilinear!) maps into a linear map.
This is useful when Lean is struggling to infer the RingHomCompTriple instance.
def LinearMap.«term_∘ₛₗ_» E1 #
Lean.TrailingParserDescr
Composition of two linear maps is a linear map
theorem LinearMap.comp_apply E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f : M₂ →ₛₗ[σ₂₃] M₃)
(g : M₁ →ₛₗ[σ₁₂] M₂) (x : M₁), (f ∘ₛₗ g) x = f (g x)
theorem LinearMap.coe_comp E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f : M₂ →ₛₗ[σ₂₃] M₃)
(g : M₁ →ₛₗ[σ₁₂] M₂), ⇑(f ∘ₛₗ g) = ⇑f ∘ ⇑g
theorem LinearMap.comp_id E0 #
∀ {R₂ : Type u_3} {R₃ : Type u_4} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₂] [inst_1 : Semiring R₃]
[inst_2 : AddCommMonoid M₂] [inst_3 : AddCommMonoid M₃] {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₂₃ : R₂ →+* R₃} (f : M₂ →ₛₗ[σ₂₃] M₃), f ∘ₛₗ LinearMap.id = f
theorem LinearMap.id_comp E0 #
∀ {R₂ : Type u_3} {R₃ : Type u_4} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₂] [inst_1 : Semiring R₃]
[inst_2 : AddCommMonoid M₂] [inst_3 : AddCommMonoid M₃] {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₂₃ : R₂ →+* R₃} (f : M₂ →ₛₗ[σ₂₃] M₃), LinearMap.id ∘ₛₗ f = f
theorem LinearMap.comp_assoc E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {R₄ : Type u_14}
{M₄ : Type u_15} [inst_7 : Semiring R₄] [inst_8 : AddCommMonoid M₄] [inst_9 : Module R₄ M₄] {σ₃₄ : R₃ →+* R₄}
{σ₂₄ : R₂ →+* R₄} {σ₁₄ : R₁ →+* R₄} [inst_10 : RingHomCompTriple σ₂₃ σ₃₄ σ₂₄]
[inst_11 : RingHomCompTriple σ₁₃ σ₃₄ σ₁₄] [inst_12 : RingHomCompTriple σ₁₂ σ₂₄ σ₁₄] (f : M₁ →ₛₗ[σ₁₂] M₂)
(g : M₂ →ₛₗ[σ₂₃] M₃) (h : M₃ →ₛₗ[σ₃₄] M₄), (h ∘ₛₗ g) ∘ₛₗ f = h ∘ₛₗ g ∘ₛₗ f
theorem Function.Surjective.injective_linearMapComp_right E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {g : M₁ →ₛₗ[σ₁₂] M₂},
Function.Surjective ⇑g → Function.Injective fun f ↦ f ∘ₛₗ g
The linear map version of Function.Surjective.injective_comp_right
theorem LinearMap.cancel_right E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {f : M₂ →ₛₗ[σ₂₃] M₃}
{g : M₁ →ₛₗ[σ₁₂] M₂} {f' : M₂ →ₛₗ[σ₂₃] M₃}, Function.Surjective ⇑g → (f ∘ₛₗ g = f' ∘ₛₗ g ↔ f = f')
theorem Function.Injective.injective_linearMapComp_left E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {f : M₂ →ₛₗ[σ₂₃] M₃},
Function.Injective ⇑f → Function.Injective fun g ↦ f ∘ₛₗ g
The linear map version of Function.Injective.comp_left
theorem LinearMap.surjective_comp_left_of_exists_rightInverse E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {f : M₂ →ₛₗ[σ₂₃] M₃}
{σ₃₂ : R₃ →+* R₂} [inst_7 : RingHomInvPair σ₂₃ σ₃₂] [RingHomCompTriple σ₁₃ σ₃₂ σ₁₂],
(∃ f', f ∘ₛₗ f' = LinearMap.id) → Function.Surjective fun g ↦ f ∘ₛₗ g
theorem LinearMap.cancel_left E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M₁ : Type u_9} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M₁] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] {module_M₁ : Module R₁ M₁} {module_M₂ : Module R₂ M₂} {module_M₃ : Module R₃ M₃}
{σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_6 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {f : M₂ →ₛₗ[σ₂₃] M₃}
{g g' : M₁ →ₛₗ[σ₁₂] M₂}, Function.Injective ⇑f → (f ∘ₛₗ g = f ∘ₛₗ g' ↔ g = g')
def LinearMap.inverse E1 #
{R : Type u_1} →
{S : Type u_5} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R M] →
[inst_5 : Module S M₂] →
{σ : R →+* S} →
{σ' : S →+* R} →
[RingHomInvPair σ σ'] →
(f : M →ₛₗ[σ] M₂) →
(g : M₂ → M) → Function.LeftInverse g ⇑f → Function.RightInverse g ⇑f → M₂ →ₛₗ[σ'] M
If a function g is a left and right inverse of a linear map f, then g is linear itself.
theorem LinearMap.injective_of_comp_eq_id E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M] [inst_5 : Module S M₂] {σ : R →+* S}
{σ' : S →+* R} [inst_6 : RingHomInvPair σ σ'] (f : M →ₛₗ[σ] M₂) (g : M₂ →ₛₗ[σ'] M),
g ∘ₛₗ f = LinearMap.id → Function.Injective ⇑f
theorem LinearMap.surjective_of_comp_eq_id E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M] [inst_5 : Module S M₂] {σ : R →+* S}
{σ' : S →+* R} [inst_6 : RingHomInvPair σ σ'] (f : M →ₛₗ[σ] M₂) (g : M₂ →ₛₗ[σ'] M),
g ∘ₛₗ f = LinearMap.id → Function.Surjective ⇑g
theorem LinearMap.map_neg E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommGroup M] [inst_3 : AddCommGroup M₂] {module_M : Module R M} {module_M₂ : Module S M₂} {σ : R →+* S}
(f : M →ₛₗ[σ] M₂) (x : M), f (-x) = -f x
theorem LinearMap.map_sub E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommGroup M] [inst_3 : AddCommGroup M₂] {module_M : Module R M} {module_M₂ : Module S M₂} {σ : R →+* S}
(f : M →ₛₗ[σ] M₂) (x y : M), f (x - y) = f x - f y
instance LinearMap.CompatibleSMul.intModule E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommGroup M] [inst_1 : AddCommGroup M₂] {S : Type u_14}
[inst_2 : Semiring S] [inst_3 : Module S M] [inst_4 : Module S M₂], LinearMap.CompatibleSMul M M₂ ℤ S
instance LinearMap.CompatibleSMul.units E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommGroup M] [inst_1 : AddCommGroup M₂] {R : Type u_14} {S : Type u_15}
[inst_2 : Monoid R] [inst_3 : MulAction R M] [inst_4 : MulAction R M₂] [inst_5 : Semiring S] [inst_6 : Module S M]
[inst_7 : Module S M₂] [LinearMap.CompatibleSMul M M₂ R S], LinearMap.CompatibleSMul M M₂ Rˣ S
def Module.compHom.toLinearMap E1 #
{R : Type u_14} → {S : Type u_15} → [inst : Semiring R] → [inst_1 : Semiring S] → (g : R →+* S) → R →ₗ[R] S
g : R →+* S is R-linear when the module structure on S is Module.compHom S g .
theorem Module.compHom.toLinearMap_apply E0 #
∀ {R : Type u_14} {S : Type u_15} [inst : Semiring R] [inst_1 : Semiring S] (g : R →+* S) (a : R),
(Module.compHom.toLinearMap g) a = g a
instance DistribMulActionHom.instSemilinearMapClass E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂]
[inst_2 : Semiring R] [inst_3 : Module R M] [inst_4 : Semiring S] [inst_5 : Module S M₂] {σ : R →+* S},
SemilinearMapClass (M →ₑ+[↑σ] M₂) σ M M₂
instance DistribMulActionHom.instLinearMapClassId E0 #
∀ {R : Type u_1} {M : Type u_8} {M₃ : Type u_11} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₃]
[inst_2 : Semiring R] [inst_3 : Module R M] [inst_4 : Module R M₃], LinearMapClass (M →+[R] M₃) R M M₃
A DistribMulActionHom between two modules is a linear map.
theorem DistribMulActionHom.coe_toLinearMap E0 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂]
[inst_2 : Semiring R] [inst_3 : Module R M] [inst_4 : Semiring S] [inst_5 : Module S M₂] {σ : R →+* S}
(f : M →ₑ+[↑σ] M₂), ⇑↑f = ⇑f
theorem DistribMulActionHom.toLinearMap_injective E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂]
[inst_2 : Semiring R] [inst_3 : Module R M] [inst_4 : Semiring S] [inst_5 : Module S M₂] {σ : R →+* S}
{f g : M →ₑ+[↑σ] M₂}, ↑f = ↑g → f = g
def IsLinearMap.mk' E1 #
{R : Type u_1} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : AddCommMonoid M₂] →
[inst_3 : Module R M] → [inst_4 : Module R M₂] → (f : M → M₂) → IsLinearMap R f → M →ₗ[R] M₂
Convert an IsLinearMap predicate to a LinearMap
theorem IsLinearMap.mk'_apply E0 #
∀ {R : Type u_1} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] {f : M → M₂} (lin : IsLinearMap R f) (x : M),
(IsLinearMap.mk' f lin) x = f x
theorem IsLinearMap.isLinearMap_smul E1 #
∀ {R : Type u_14} {M : Type u_15} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (c : R),
IsLinearMap R fun z ↦ c • z
theorem IsLinearMap.isLinearMap_smul' E1 #
∀ {R : Type u_14} {M : Type u_15} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (a : M),
IsLinearMap R fun c ↦ c • a
theorem IsLinearMap.map_zero E0 #
∀ {R : Type u_1} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] {f : M → M₂}, IsLinearMap R f → f 0 = 0
theorem IsLinearMap.isLinearMap_neg E1 #
∀ {R : Type u_1} {M : Type u_8} [inst : Semiring R] [inst_1 : AddCommGroup M] [inst_2 : Module R M],
IsLinearMap R fun z ↦ -z
theorem IsLinearMap.map_neg E0 #
∀ {R : Type u_1} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] {f : M → M₂},
IsLinearMap R f → ∀ (x : M), f (-x) = -f x
theorem IsLinearMap.map_sub E0 #
∀ {R : Type u_1} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup M₂] [inst_3 : Module R M] [inst_4 : Module R M₂] {f : M → M₂},
IsLinearMap R f → ∀ (x y : M), f (x - y) = f x - f y
def AddMonoidHom.toNatLinearMap E1 #
{M : Type u_8} → {M₂ : Type u_10} → [inst : AddCommMonoid M] → [inst_1 : AddCommMonoid M₂] → (M →+ M₂) → M →ₗ[ℕ] M₂
Reinterpret an additive homomorphism as an ℕ-linear map.
theorem AddMonoidHom.toNatLinearMap_injective E1 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂],
Function.Injective AddMonoidHom.toNatLinearMap
theorem AddMonoidHom.coe_toNatLinearMap E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommMonoid M] [inst_1 : AddCommMonoid M₂] (f : M →+ M₂),
⇑f.toNatLinearMap = ⇑f
def AddMonoidHom.toIntLinearMap E1 #
{M : Type u_8} → {M₂ : Type u_10} → [inst : AddCommGroup M] → [inst_1 : AddCommGroup M₂] → (M →+ M₂) → M →ₗ[ℤ] M₂
Reinterpret an additive homomorphism as a ℤ-linear map.
theorem AddMonoidHom.toIntLinearMap_injective E1 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommGroup M] [inst_1 : AddCommGroup M₂],
Function.Injective AddMonoidHom.toIntLinearMap
theorem AddMonoidHom.coe_toIntLinearMap E0 #
∀ {M : Type u_8} {M₂ : Type u_10} [inst : AddCommGroup M] [inst_1 : AddCommGroup M₂] (f : M →+ M₂),
⇑f.toIntLinearMap = ⇑f
instance LinearMap.instSMul E0 #
{R : Type u_1} →
{R₂ : Type u_3} →
{S : Type u_5} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R M] →
[inst_5 : Module R₂ M₂] →
{σ₁₂ : R →+* R₂} → [inst_6 : DistribSMul S M₂] → [SMulCommClass R₂ S M₂] → SMul S (M →ₛₗ[σ₁₂] M₂)
theorem LinearMap.smul_apply E0 #
∀ {R : Type u_1} {R₂ : Type u_3} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R]
[inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M]
[inst_5 : Module R₂ M₂] {σ₁₂ : R →+* R₂} [inst_6 : DistribSMul S M₂] [inst_7 : SMulCommClass R₂ S M₂] (a : S)
(f : M →ₛₗ[σ₁₂] M₂) (x : M), (a • f) x = a • f x
theorem LinearMap.coe_smul E0 #
∀ {R : Type u_1} {R₂ : Type u_3} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R]
[inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M]
[inst_5 : Module R₂ M₂] {σ₁₂ : R →+* R₂} [inst_6 : DistribSMul S M₂] [inst_7 : SMulCommClass R₂ S M₂] (a : S)
(f : M →ₛₗ[σ₁₂] M₂), ⇑(a • f) = a • ⇑f
instance LinearMap.instSMulCommClass E0 #
∀ {R : Type u_1} {R₂ : Type u_3} {S : Type u_5} {T : Type u_7} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R]
[inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M]
[inst_5 : Module R₂ M₂] {σ₁₂ : R →+* R₂} [inst_6 : DistribSMul S M₂] [inst_7 : SMulCommClass R₂ S M₂]
[inst_8 : DistribSMul T M₂] [inst_9 : SMulCommClass R₂ T M₂] [SMulCommClass S T M₂], SMulCommClass S T (M →ₛₗ[σ₁₂] M₂)
instance LinearMap.instIsScalarTower E0 #
∀ {R : Type u_1} {R₂ : Type u_3} {S : Type u_5} {T : Type u_7} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R]
[inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M]
[inst_5 : Module R₂ M₂] {σ₁₂ : R →+* R₂} [inst_6 : DistribSMul S M₂] [inst_7 : SMulCommClass R₂ S M₂]
[inst_8 : DistribSMul T M₂] [inst_9 : SMulCommClass R₂ T M₂] [inst_10 : SMul S T] [IsScalarTower S T M₂],
IsScalarTower S T (M →ₛₗ[σ₁₂] M₂)
instance LinearMap.instIsCentralScalar E0 #
∀ {R : Type u_1} {R₂ : Type u_3} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R]
[inst_1 : Semiring R₂] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R M]
[inst_5 : Module R₂ M₂] {σ₁₂ : R →+* R₂} [inst_6 : DistribSMul S M₂] [inst_7 : SMulCommClass R₂ S M₂]
[inst_8 : DistribSMul Sᵐᵒᵖ M₂] [inst_9 : SMulCommClass R₂ Sᵐᵒᵖ M₂] [IsCentralScalar S M₂],
IsCentralScalar S (M →ₛₗ[σ₁₂] M₂)
instance LinearMap.instZero E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → Zero (M →ₛₗ[σ₁₂] M₂)
The constant 0 map is linear.
theorem LinearMap.coe_zero_iff E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} (f : M →ₛₗ[σ₁₂] M₂), ⇑f = 0 ↔ f = 0
theorem LinearMap.zero_apply E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} (x : M), 0 x = 0
theorem LinearMap.comp_zero E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ M₂] [inst_8 : Module R₃ M₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (g : M₂ →ₛₗ[σ₂₃] M₃), g ∘ₛₗ 0 = 0
theorem LinearMap.zero_comp E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ M₂] [inst_8 : Module R₃ M₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f : M →ₛₗ[σ₁₂] M₂), 0 ∘ₛₗ f = 0
instance LinearMap.instInhabited E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → Inhabited (M →ₛₗ[σ₁₂] M₂)
theorem LinearMap.default_def E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂}, default = 0
instance LinearMap.uniqueOfLeft E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] →
[inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → [Subsingleton M] → Unique (M →ₛₗ[σ₁₂] M₂)
instance LinearMap.uniqueOfRight E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] →
[inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → [Subsingleton M₂] → Unique (M →ₛₗ[σ₁₂] M₂)
theorem LinearMap.ne_zero_of_injective E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} [Nontrivial M] {f : M →ₛₗ[σ₁₂] M₂}, Function.Injective ⇑f → f ≠ 0
theorem LinearMap.ne_zero_of_surjective E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} [Nontrivial M₂] {f : M →ₛₗ[σ₁₂] M₂}, Function.Surjective ⇑f → f ≠ 0
instance LinearMap.instAdd E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → Add (M →ₛₗ[σ₁₂] M₂)
The sum of two linear maps is linear.
theorem LinearMap.coe_add E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} (f g : M →ₛₗ[σ₁₂] M₂), ⇑(f + g) = ⇑f + ⇑g
theorem LinearMap.add_apply E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} (f g : M →ₛₗ[σ₁₂] M₂) (x : M), (f + g) x = f x + g x
theorem LinearMap.add_comp E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ M₂] [inst_8 : Module R₃ M₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f : M →ₛₗ[σ₁₂] M₂)
(g h : M₂ →ₛₗ[σ₂₃] M₃), (h + g) ∘ₛₗ f = h ∘ₛₗ f + g ∘ₛₗ f
theorem LinearMap.comp_add E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommMonoid M₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ M₂] [inst_8 : Module R₃ M₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f g : M →ₛₗ[σ₁₂] M₂)
(h : M₂ →ₛₗ[σ₂₃] M₃), h ∘ₛₗ (f + g) = h ∘ₛₗ f + h ∘ₛₗ g
instance LinearMap.addMonoid E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → AddMonoid (M →ₛₗ[σ₁₂] M₂)
instance LinearMap.addCommMonoid E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → AddCommMonoid (M →ₛₗ[σ₁₂] M₂)
The type of linear maps is an additive monoid.
instance LinearMap.instNeg E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{N₂ : Type u_12} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommGroup N₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ N₂] → {σ₁₂ : R₁ →+* R₂} → Neg (M →ₛₗ[σ₁₂] N₂)
The negation of a linear map is linear.
theorem LinearMap.coe_neg E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {N₂ : Type u_12} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommGroup N₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ N₂] {σ₁₂ : R₁ →+* R₂}
(f : M →ₛₗ[σ₁₂] N₂), ⇑(-f) = -⇑f
theorem LinearMap.neg_apply E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {N₂ : Type u_12} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommGroup N₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ N₂] {σ₁₂ : R₁ →+* R₂}
(f : M →ₛₗ[σ₁₂] N₂) (x : M), (-f) x = -f x
theorem LinearMap.neg_comp E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {M₂ : Type u_10} {N₃ : Type u_13} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommGroup N₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ M₂] [inst_8 : Module R₃ N₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f : M →ₛₗ[σ₁₂] M₂) (g : M₂ →ₛₗ[σ₂₃] N₃),
(-g) ∘ₛₗ f = -g ∘ₛₗ f
theorem LinearMap.comp_neg E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {N₂ : Type u_12} {N₃ : Type u_13} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommGroup N₂]
[inst_5 : AddCommGroup N₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ N₂] [inst_8 : Module R₃ N₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f : M →ₛₗ[σ₁₂] N₂) (g : N₂ →ₛₗ[σ₂₃] N₃),
g ∘ₛₗ (-f) = -g ∘ₛₗ f
instance LinearMap.instSub E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{N₂ : Type u_12} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommGroup N₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ N₂] → {σ₁₂ : R₁ →+* R₂} → Sub (M →ₛₗ[σ₁₂] N₂)
The subtraction of two linear maps is linear.
theorem LinearMap.sub_apply E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {N₂ : Type u_12} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommGroup N₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ N₂] {σ₁₂ : R₁ →+* R₂}
(f g : M →ₛₗ[σ₁₂] N₂) (x : M), (f - g) x = f x - g x
theorem LinearMap.sub_comp E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {M₂ : Type u_10} {N₃ : Type u_13} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommMonoid M₂]
[inst_5 : AddCommGroup N₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ M₂] [inst_8 : Module R₃ N₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f : M →ₛₗ[σ₁₂] M₂)
(g h : M₂ →ₛₗ[σ₂₃] N₃), (g - h) ∘ₛₗ f = g ∘ₛₗ f - h ∘ₛₗ f
theorem LinearMap.comp_sub E1 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {R₃ : Type u_4} {M : Type u_8} {N₂ : Type u_12} {N₃ : Type u_13} [inst : Semiring R₁]
[inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M] [inst_4 : AddCommGroup N₂]
[inst_5 : AddCommGroup N₃] [inst_6 : Module R₁ M] [inst_7 : Module R₂ N₂] [inst_8 : Module R₃ N₃] {σ₁₂ : R₁ →+* R₂}
{σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] (f g : M →ₛₗ[σ₁₂] N₂)
(h : N₂ →ₛₗ[σ₂₃] N₃), h ∘ₛₗ (g - f) = h ∘ₛₗ g - h ∘ₛₗ f
instance LinearMap.addCommGroup E0 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{N₂ : Type u_12} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommGroup N₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ N₂] → {σ₁₂ : R₁ →+* R₂} → AddCommGroup (M →ₛₗ[σ₁₂] N₂)
The type of linear maps is an additive group.
def LinearMap.evalAddMonoidHom E1 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → M → (M →ₛₗ[σ₁₂] M₂) →+ M₂
Evaluation of a σ₁₂-linear map at a fixed a, as an AddMonoidHom.
theorem LinearMap.evalAddMonoidHom_apply E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} (a : M) (f : M →ₛₗ[σ₁₂] M₂), (LinearMap.evalAddMonoidHom a) f = f a
def LinearMap.toAddMonoidHom' E1 #
{R₁ : Type u_2} →
{R₂ : Type u_3} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R₁] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R₁ M] → [inst_5 : Module R₂ M₂] → {σ₁₂ : R₁ →+* R₂} → (M →ₛₗ[σ₁₂] M₂) →+ M →+ M₂
LinearMap.toAddMonoidHom promoted to an AddMonoidHom.
theorem LinearMap.toAddMonoidHom'_apply E0 #
∀ {R₁ : Type u_2} {R₂ : Type u_3} {M : Type u_8} {M₂ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid M₂] [inst_4 : Module R₁ M] [inst_5 : Module R₂ M₂]
{σ₁₂ : R₁ →+* R₂} (f : M →ₛₗ[σ₁₂] M₂), LinearMap.toAddMonoidHom' f = f.toAddMonoidHom
theorem LinearMap.identityMapOfZeroModuleIsZero E0 #
∀ {R₁ : Type u_2} {M : Type u_8} [inst : Semiring R₁] [inst_1 : AddCommMonoid M] [inst_2 : Module R₁ M]
[Subsingleton M], LinearMap.id = 0
If M is the zero module, then the identity map of M is the zero map.
instance LinearMap.instDistribMulAction E0 #
{R : Type u_1} →
{R₂ : Type u_3} →
{S : Type u_5} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R M] →
[inst_5 : Module R₂ M₂] →
{σ₁₂ : R →+* R₂} →
[inst_6 : Monoid S] →
[inst_7 : DistribMulAction S M₂] →
[SMulCommClass R₂ S M₂] → DistribMulAction S (M →ₛₗ[σ₁₂] M₂)
theorem LinearMap.smul_comp E1 #
∀ {R : Type u_1} {R₂ : Type u_3} {R₃ : Type u_4} {S₃ : Type u_6} {M : Type u_8} {M₂ : Type u_10} {M₃ : Type u_11}
[inst : Semiring R] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃] [inst_3 : AddCommMonoid M]
[inst_4 : AddCommMonoid M₂] [inst_5 : AddCommMonoid M₃] [inst_6 : Module R M] [inst_7 : Module R₂ M₂]
[inst_8 : Module R₃ M₃] {σ₁₂ : R →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R →+* R₃} [inst_9 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃]
[inst_10 : Monoid S₃] [inst_11 : DistribMulAction S₃ M₃] [inst_12 : SMulCommClass R₃ S₃ M₃] (a : S₃)
(g : M₂ →ₛₗ[σ₂₃] M₃) (f : M →ₛₗ[σ₁₂] M₂), (a • g) ∘ₛₗ f = a • g ∘ₛₗ f
theorem LinearMap.comp_smul E1 #
∀ {R : Type u_1} {S : Type u_5} {M : Type u_8} {M₂ : Type u_10} {M₃ : Type u_11} [inst : Semiring R]
[inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M]
[inst_5 : Monoid S] [inst_6 : DistribMulAction S M₂] [inst_7 : Module R M₂] [inst_8 : Module R M₃]
[inst_9 : SMulCommClass R S M₂] [inst_10 : DistribMulAction S M₃] [inst_11 : SMulCommClass R S M₃]
[LinearMap.CompatibleSMul M₃ M₂ S R] (g : M₃ →ₗ[R] M₂) (a : S) (f : M →ₗ[R] M₃), g ∘ₗ (a • f) = a • g ∘ₗ f
instance LinearMap.module E0 #
{R : Type u_1} →
{R₂ : Type u_3} →
{S : Type u_5} →
{M : Type u_8} →
{M₂ : Type u_10} →
[inst : Semiring R] →
[inst_1 : Semiring R₂] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid M₂] →
[inst_4 : Module R M] →
[inst_5 : Module R₂ M₂] →
{σ₁₂ : R →+* R₂} →
[inst_6 : Semiring S] →
[inst_7 : Module S M₂] → [SMulCommClass R₂ S M₂] → Module S (M →ₛₗ[σ₁₂] M₂)
theorem LinearMap.restrictScalars_zero E0 #
∀ (R : Type u_14) (S : Type u_15) (M : Type u_16) (N : Type u_17) [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module S M] [inst_7 : Module S N] [inst_8 : LinearMap.CompatibleSMul M N R S], ↑R 0 = 0
theorem LinearMap.restrictScalars_add E0 #
∀ {R : Type u_14} {S : Type u_15} {M : Type u_16} {N : Type u_17} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module S M] [inst_7 : Module S N] [inst_8 : LinearMap.CompatibleSMul M N R S] (f g : M →ₗ[S] N),
↑R (f + g) = ↑R f + ↑R g
theorem LinearMap.restrictScalars_neg E0 #
∀ {R : Type u_14} {S : Type u_15} [inst : Semiring R] [inst_1 : Semiring S] {M : Type u_19} {N : Type u_20}
[inst_2 : AddCommMonoid M] [inst_3 : AddCommGroup N] [inst_4 : Module R M] [inst_5 : Module R N] [inst_6 : Module S M]
[inst_7 : Module S N] [inst_8 : LinearMap.CompatibleSMul M N R S] (f : M →ₗ[S] N), ↑R (-f) = -↑R f
theorem LinearMap.restrictScalars_smul E0 #
∀ {R : Type u_14} {S : Type u_15} {M : Type u_16} {N : Type u_17} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module S M] [inst_7 : Module S N] [inst_8 : LinearMap.CompatibleSMul M N R S] {R₁ : Type u_19}
[inst_9 : Semiring R₁] [inst_10 : Module R₁ N] [inst_11 : SMulCommClass S R₁ N] [inst_12 : SMulCommClass R R₁ N]
(c : R₁) (f : M →ₗ[S] N), ↑R (c • f) = c • ↑R f
theorem LinearMap.restrictScalars_comp E0 #
∀ {R : Type u_14} {S : Type u_15} {M : Type u_16} {N : Type u_17} {P : Type u_18} [inst : Semiring R]
[inst_1 : Semiring S] [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : Module R M]
[inst_5 : Module R N] [inst_6 : Module S M] [inst_7 : Module S N] [inst_8 : LinearMap.CompatibleSMul M N R S]
[inst_9 : AddCommMonoid P] [inst_10 : Module S P] [inst_11 : Module R P] [inst_12 : LinearMap.CompatibleSMul N P R S]
[inst_13 : LinearMap.CompatibleSMul M P R S] (f : N →ₗ[S] P) (g : M →ₗ[S] N), ↑R (f ∘ₗ g) = ↑R f ∘ₗ ↑R g
theorem LinearMap.restrictScalars_trans E0 #
∀ {R : Type u_14} {S : Type u_15} {M : Type u_16} {N : Type u_17} [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module S M] [inst_7 : Module S N] [inst_8 : LinearMap.CompatibleSMul M N R S] {T : Type u_20}
[inst_9 : Semiring T] [inst_10 : Module T M] [inst_11 : Module T N] [inst_12 : LinearMap.CompatibleSMul M N S T]
[inst_13 : LinearMap.CompatibleSMul M N R T] (f : M →ₗ[T] N), ↑R (↑S f) = ↑R f
def LinearMap.restrictScalarsₗ E1 #
(R : Type u_14) →
(S : Type u_15) →
(M : Type u_16) →
(N : Type u_17) →
[inst : Semiring R] →
[inst_1 : Semiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R M] →
[inst_5 : Module R N] →
[inst_6 : Module S M] →
[inst_7 : Module S N] →
[LinearMap.CompatibleSMul M N R S] →
(R₁ : Type u_19) →
[inst_9 : Semiring R₁] →
[inst_10 : Module R₁ N] →
[inst_11 : SMulCommClass S R₁ N] →
[inst_12 : SMulCommClass R R₁ N] → (M →ₗ[S] N) →ₗ[R₁] M →ₗ[R] N
LinearMap.restrictScalars as a LinearMap.
theorem LinearMap.restrictScalarsₗ_apply E0 #
∀ (R : Type u_14) (S : Type u_15) (M : Type u_16) (N : Type u_17) [inst : Semiring R] [inst_1 : Semiring S]
[inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N]
[inst_6 : Module S M] [inst_7 : Module S N] [inst_8 : LinearMap.CompatibleSMul M N R S] (R₁ : Type u_19)
[inst_9 : Semiring R₁] [inst_10 : Module R₁ N] [inst_11 : SMulCommClass S R₁ N] [inst_12 : SMulCommClass R R₁ N]
(fₗ : M →ₗ[S] N), (LinearMap.restrictScalarsₗ R S M N R₁) fₗ = ↑R fₗ
def LinearMap.mulLeft E1 #
(R : Type u_14) →
{A : Type u_15} →
[inst : Semiring R] →
[inst_1 : NonUnitalNonAssocSemiring A] → [inst_2 : Module R A] → [SMulCommClass R A A] → A → A →ₗ[R] A
The multiplication on the left in an algebra is a linear map.
Note that this only assumes SMulCommClass R A A, so that it also works for R := Aᵐᵒᵖ.
When A is unital and associative, this is the same as DistribSMul.toLinearMap R A a
theorem LinearMap.mulLeft_apply E0 #
∀ (R : Type u_14) {A : Type u_15} [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : SMulCommClass R A A] (a b : A), (LinearMap.mulLeft R a) b = a * b
theorem LinearMap.toAddMonoidHom_mulLeft E0 #
∀ (R : Type u_14) {A : Type u_15} [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : SMulCommClass R A A] (a : A), ↑(LinearMap.mulLeft R a) = AddMonoidHom.mulLeft a
theorem LinearMap.mulLeft_zero_eq_zero E0 #
∀ (R : Type u_14) (A : Type u_15) [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : SMulCommClass R A A], LinearMap.mulLeft R 0 = 0
def LinearMap.mulRight E1 #
(R : Type u_14) →
{A : Type u_15} →
[inst : Semiring R] →
[inst_1 : NonUnitalNonAssocSemiring A] → [inst_2 : Module R A] → [IsScalarTower R A A] → A → A →ₗ[R] A
The multiplication on the right in an algebra is a linear map.
Note that this only assumes IsScalarTower R A A, so that it also works for R := A.
When A is unital and associative, this is the same as
DistribSMul.toLinearMap R A (MulOpposite.op b).
theorem LinearMap.mulRight_apply E0 #
∀ (R : Type u_14) {A : Type u_15} [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : IsScalarTower R A A] (a b : A), (LinearMap.mulRight R a) b = b * a
theorem LinearMap.toAddMonoidHom_mulRight E0 #
∀ (R : Type u_14) {A : Type u_15} [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : IsScalarTower R A A] (a : A), ↑(LinearMap.mulRight R a) = AddMonoidHom.mulRight a
theorem LinearMap.mulRight_zero_eq_zero E0 #
∀ (R : Type u_14) (A : Type u_15) [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : IsScalarTower R A A], LinearMap.mulRight R 0 = 0
def LinearMap.mulLeftRight E1 #
(R : Type u_14) →
{A : Type u_15} →
[inst : Semiring R] →
[inst_1 : NonUnitalNonAssocSemiring A] →
[inst_2 : Module R A] → [SMulCommClass R A A] → [IsScalarTower R A A] → A × A → A →ₗ[R] A
Simultaneous multiplication on the left and right is a linear map.
theorem LinearMap.mulLeftRight_apply E0 #
∀ {R : Type u_14} {A : Type u_15} [inst : Semiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] (a b x : A),
(LinearMap.mulLeftRight R (a, b)) x = a * x * b
Deprecated aliases
| Name | New name | Since |
|---|---|---|
LinearMap.coe_coe | LinearMap.coe_ofClass | 2026-09-07 |
LinearMap.coe_semilinearMap | LinearMap.coe_ofClass | 2026-09-07 |
LinearMap.toLinearMap_injective | LinearMap.ofClass_injective | 2026-09-07 |
LinearMapClass.linearMap | LinearMap.ofClass | 2026-09-03 |
SemilinearMapClass.semilinearMap | LinearMap.ofClass | 2026-09-03 |