Datasets:
Tasks:
Text Generation
Modalities:
Text
Sub-tasks:
language-modeling
Languages:
English
Size:
100K - 1M
License:
/- | |
Copyright (c) 2022 Scott Morrison. All rights reserved. | |
Released under Apache 2.0 license as described in the file LICENSE. | |
Authors: Scott Morrison | |
-/ | |
import algebra.module.basic | |
import algebra.algebra.basic | |
/-! | |
-/ | |
namespace linear_map | |
section restrict_scalars | |
variables (k : Type*) [comm_semiring k] (A : Type*) [semiring A] [algebra k A] | |
variables (M : Type*) [add_comm_monoid M] [module k M] [module A M] [is_scalar_tower k A M] | |
variables (N : Type*) [add_comm_monoid N] [module k N] [module A N] [is_scalar_tower k A N] | |
/-- | |
Restriction of scalars for linear maps between modules over a `k`-algebra is itself `k`-linear. | |
-/ | |
@[simps] | |
def restrict_scalars_linear_map : (M ββ[A] N) ββ[k] (M ββ[k] N) := | |
{ to_fun := linear_map.restrict_scalars k, | |
map_add' := by tidy, | |
map_smul' := by tidy, } | |
end restrict_scalars | |
end linear_map | |