Download lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedMap.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.04 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedMap.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedMap.lean
-
curl -L -o EnvelopingBalancedMap.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Tensor/EnvelopingBalancedMap.lean
4.04 kB
Lean 4 · 15
declarations statementsfull
def map (f : M ⟶ N) : EnvelopingBimodule k R M →ₗ[k] EnvelopingBimodule k R N where body · 7 lines
toFun x := ⟨f.hom x.value⟩
map_add' x y := by
ext
exact f.hom.map_add x.value y.value
map_smul' c x := by
ext
exact (f.hom.restrictScalars k).map_smul c x.value@[simp] theorem map_value (f : M ⟶ N) (x : EnvelopingBimodule k R M) :
(map f x).value = f.hom x.value := rfl @[simp] theorem map_left_smul (f : M ⟶ N) (a : R)
(x : EnvelopingBimodule k R M) : map f (a • x) = a • map f x := by proof · 2 lines
ext
exact f.hom.map_smul (a ⊗ₜ[k] (1 : Rᵐᵒᵖ)) x.value@[simp] theorem map_right_smul (f : M ⟶ N) (b : Rᵐᵒᵖ)
(x : EnvelopingBimodule k R M) : map f (b • x) = b • map f x := by proof · 2 lines
ext
exact f.hom.map_smul ((1 : R) ⊗ₜ[k] b) x.valuedef mapLeft (f : M ⟶ N) : EnvelopingBimodule k R M →ₗ[R] EnvelopingBimodule k R N where body · 3 lines
toFun := map f
map_add' := (map f).map_add
map_smul' := map_left_smul f@[simp] theorem map_id : map (𝟙 M) = LinearMap.id := by proof · 2 lines
ext x rfl
@[simp] theorem map_comp (f : M ⟶ N) (g : N ⟶ P) :
map (f ≫ g) = (map g).comp (map f) := by proof · 2 lines
ext x rfl
@[simp] theorem map_zero : map (0 : M ⟶ N) = 0 := by proof · 2 lines
ext x rfl
@[simp] theorem map_add (f g : M ⟶ N) : map (f + g) = map f + map g := by proof · 2 lines
ext x rfl
def tensorMap (f : M ⟶ N) :
BalancedTensor k R (EnvelopingBimodule k R M) X →ₗ[R]
BalancedTensor k R (EnvelopingBimodule k R N) X where body · 12 lines
__ := (BalancedTensor.map (map f) (LinearMap.id : X →ₗ[k] X)
(map_right_smul f) (fun _ _ => rfl)).toAddHom
map_smul' a z := by
change BalancedTensor.map (map f) (LinearMap.id : X →ₗ[k] X)
(map_right_smul f) (fun _ _ => rfl) (a • z) =
a • BalancedTensor.map (map f) (LinearMap.id : X →ₗ[k] X)
(map_right_smul f) (fun _ _ => rfl) z
induction z using BalancedTensor.induction_on with
| zero => simp
| tmul m x => simp only [BalancedTensor.smul_tmul, BalancedTensor.map_tmul,
LinearMap.id_apply, map_left_smul]
| add z w hz hw => simp_all@[simp] theorem tensorMap_tmul (f : M ⟶ N)
(m : EnvelopingBimodule k R M) (x : X) :
tensorMap X f (BalancedTensor.tmul m x) = BalancedTensor.tmul (map f m) x := rfl @[simp] theorem tensorMap_id : tensorMap X (𝟙 M) = LinearMap.id := by proof · 6 lines
apply LinearMap.ext
intro z
induction z using BalancedTensor.induction_on with
| zero => simp
| tmul m x => rfl
| add z w hz hw => simp_all@[simp] theorem tensorMap_comp (f : M ⟶ N) (g : N ⟶ P) :
tensorMap X (f ≫ g) = (tensorMap X g).comp (tensorMap X f) := by proof · 6 lines
apply LinearMap.ext
intro z
induction z using BalancedTensor.induction_on with
| zero => simp
| tmul m x => rfl
| add z w hz hw => simp_all@[simp] theorem tensorMap_zero : tensorMap X (0 : M ⟶ N) = 0 := by proof · 6 lines
apply LinearMap.ext
intro z
induction z using BalancedTensor.induction_on with
| zero => simp
| tmul m x => simp
| add z w hz hw => simp_all@[simp] theorem tensorMap_add (f g : M ⟶ N) :
tensorMap X (f + g) = tensorMap X f + tensorMap X g := by proof · 7 lines
apply LinearMap.ext
intro z
induction z using BalancedTensor.induction_on with
| zero => simp
| tmul m x => simp [BalancedTensor.add_tmul]
| add z w hz hw =>
simp only [_root_.LinearMap.map_add, hz, hw]Outline