Download lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularFunctor.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 3.83 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularFunctor.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularFunctor.lean
-
curl -L -o TriangularFunctor.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Triangular/TriangularFunctor.lean
3.83 kB
Lean 4 · 13
declarations statementsfull
def eMap (f : M →ₗ[R] N) : TriangularE k R F M →ₗ[Triangular R F] TriangularE k R F N := eHom f def jMap (f : M →ₗ[R] N) : TriangularJ k R F M →ₗ[Triangular R F] TriangularJ k R F N := jHom f @[simp] theorem eMap_top (f : M →ₗ[R] N) (x : TriangularE k R F M) :
(eMap f x).top = f x.top := rfl @[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 @[simp] theorem jMap_bottom (f : M →ₗ[R] N) (x : TriangularJ k R F M) :
(jMap f x).bottom = f x.bottom := rfl @[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
@[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
@[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
@[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
@[simp] theorem eMap_zero : eMap (k := k) (F := F) (0 : M →ₗ[R] N) = 0 := by proof · 3 lines
apply eHomEquiv.injective ext m rfl
@[simp] theorem jMap_zero : jMap (k := k) (F := F) (0 : M →ₗ[R] N) = 0 := by proof · 3 lines
apply jHomEquiv.injective ext m rfl
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]
rfldef 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; simpOutline