roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
3.83 kB
19
def eMap (f : M →ₗ[R] N) : TriangularE k R F M →ₗ[Triangular R F] TriangularE k R F N := eHom f
21
def jMap (f : M →ₗ[R] N) : TriangularJ k R F M →ₗ[Triangular R F] TriangularJ k R F N := jHom f
24
@[simp] theorem eMap_top (f : M →ₗ[R] N) (x : TriangularE k R F M) :
    (eMap f x).top = f x.top := rfl
28
@[simp] theorem eMap_bottom (f : M →ₗ[R] N) (x : TriangularE k R F M) :
    (eMap f x).bottom = BalancedTensor.mapRight (S := R) f x.bottom := rfl
34
@[simp] theorem jMap_bottom (f : M →ₗ[R] N) (x : TriangularJ k R F M) :
    (jMap f x).bottom = f x.bottom := rfl
37
@[simp] theorem eMap_id : eMap (k := k) (F := F) (LinearMap.id : M →ₗ[R] M) = LinearMap.id := by
proof · 3 lines
  apply eHomEquiv.injective
  ext m
  rfl
42
@[simp] theorem eMap_comp (f : M →ₗ[R] N) (g : N →ₗ[R] L) :
    eMap (k := k) (F := F) (g.comp f) = (eMap g).comp (eMap f) := by
proof · 3 lines
  apply eHomEquiv.injective
  ext m
  rfl
48
@[simp] theorem jMap_id : jMap (k := k) (F := F) (LinearMap.id : M →ₗ[R] M) = LinearMap.id := by
proof · 3 lines
  apply jHomEquiv.injective
  ext m
  rfl
54
@[simp] theorem jMap_comp (f : M →ₗ[R] N) (g : N →ₗ[R] L) :
    jMap (k := k) (F := F) (g.comp f) = (jMap g).comp (jMap f) := by
proof · 3 lines
  apply jHomEquiv.injective
  ext m
  rfl
60
@[simp] theorem eMap_zero : eMap (k := k) (F := F) (0 : M →ₗ[R] N) = 0 := by
proof · 3 lines
  apply eHomEquiv.injective
  ext m
  rfl
66
@[simp] theorem jMap_zero : jMap (k := k) (F := F) (0 : M →ₗ[R] N) = 0 := by
proof · 3 lines
  apply jHomEquiv.injective
  ext m
  rfl
73
def ePi : TriangularE k R F (ι → M) ≃ₗ[Triangular R F] (ι → TriangularE k R F M) where
body · 13 lines
  toFun x i := ⟨x.top i, BalancedTensor.piRight (S := R) x.bottom i⟩
  invFun y := ⟨fun i => (y i).top, (BalancedTensor.piRight (S := R)).symm (fun i => (y i).bottom)⟩
  left_inv x := by ext <;> simp
  right_inv y := by ext <;> simp
  map_add' x y := by ext <;> simp
  map_smul' a x := by
    ext i
    · rfl
    · change BalancedTensor.piRight (S := R)
          (BalancedTensor.tmul a.off x.top + a.bottom • x.bottom) i =
        BalancedTensor.tmul a.off (x.top i) + a.bottom • BalancedTensor.piRight (S := R) x.bottom i
      simp only [map_add, map_smul, Pi.add_apply, Pi.smul_apply]
      rfl
88
def jPi : TriangularJ k R F (ι → M) ≃ₗ[Triangular R F] (ι → TriangularJ k R F M) where
body · 6 lines
  toFun x i := ⟨0, x.bottom i⟩
  invFun y := ⟨0, fun i => (y i).bottom⟩
  left_inv x := by ext; rfl
  right_inv y := by ext; rfl
  map_add' x y := by ext; rfl
  map_smul' a x := by ext; simp