openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Tensor /EnvelopingBalancedMap.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
4.04 kB
19
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
28
@[simp] theorem map_value (f : M ⟶ N) (x : EnvelopingBimodule k R M) :
    (map f x).value = f.hom x.value := rfl
31
@[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
36
@[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.value
41
def 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
46
@[simp] theorem map_id : map (𝟙 M) = LinearMap.id := by
proof · 2 lines
  ext x
  rfl
50
@[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
55
@[simp] theorem map_zero : map (0 : M ⟶ N) = 0 := by
proof · 2 lines
  ext x
  rfl
59
@[simp] theorem map_add (f g : M ⟶ N) : map (f + g) = map f + map g := by
proof · 2 lines
  ext x
  rfl
65
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
83
@[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
87
@[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
95
@[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
104
@[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
112
@[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]