Download lean/OAI/Algebra/AuslanderReiten/Complete/CompleteStableComparison.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 3.77 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Complete/CompleteStableComparison.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Complete/CompleteStableComparison.lean
-
curl -L -o CompleteStableComparison.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Complete/CompleteStableComparison.lean
3.77 kB
Lean 4 · 6
declarations statementsfull
def stableCokernel : (P ⟶ Q) →+ StableHom R (Cokernel P 0) (Cokernel Q 0) where body · 3 lines
toFun F := StableHom.classOf R _ _ (cokernelMap F 0)
map_zero' := by simp
map_add' F G := by simptheorem stableCokernel_surjective (hP : TotallyAcyclicComplex P)
(hQ : ExactProjectiveComplex Q) : Function.Surjective (stableCokernel (P := P) (Q := Q)) := by proof · 4 lines
intro x
obtain ⟨f, rfl⟩ := StableHom.classOf_surjective x
obtain ⟨F, rfl⟩ := cokernelMap_surjective hP hQ f
exact ⟨F, rfl⟩private theorem comparison_kernels (hP : TotallyAcyclicComplex P)
(hQ : ExactProjectiveComplex Q) :
(Functor.mapAddHom (HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.down ℤ))
(X := P) (Y := Q)).ker = (stableCokernel (P := P) (Q := Q)).ker := by proof · 4 lines
ext F
change (HomotopyCategory.quotient _ _).map F = 0 ↔ stableCokernel F = 0
rw [HomotopyCategory.quotient_map_eq_zero_iff]
exact nullhomotopy_iff_stable_zero hP hQ Fnoncomputable def homotopyCokernelEquiv (hP : TotallyAcyclicComplex P)
(hQ : ExactProjectiveComplex Q) :
((HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.down ℤ)).obj P ⟶
(HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.down ℤ)).obj Q) ≃+
StableHom R (Cokernel P 0) (Cokernel Q 0) := body · 6 lines
(QuotientAddGroup.quotientKerEquivOfSurjective
(Functor.mapAddHom (HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.down ℤ)))
(Functor.map_surjective _)).symm.trans
((QuotientAddGroup.quotientAddEquivOfEq (comparison_kernels hP hQ)).trans
(QuotientAddGroup.quotientKerEquivOfSurjective stableCokernel
(stableCokernel_surjective hP hQ)))theorem homotopyCokernelEquiv_map (hP : TotallyAcyclicComplex P)
(hQ : ExactProjectiveComplex Q) (F : P ⟶ Q) :
homotopyCokernelEquiv hP hQ ((HomotopyCategory.quotient _ _).map F) =
StableHom.classOf R _ _ (cokernelMap F 0) := by proof · 10 lines
let f := Functor.mapAddHom
(HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.down ℤ)) (X := P) (Y := Q)
let e := QuotientAddGroup.quotientKerEquivOfSurjective f (Functor.map_surjective _)
have he : e (QuotientAddGroup.mk F) = (HomotopyCategory.quotient _ _).map F := rfl
change (QuotientAddGroup.quotientKerEquivOfSurjective stableCokernel
(stableCokernel_surjective hP hQ))
(QuotientAddGroup.quotientAddEquivOfEq (comparison_kernels hP hQ)
(e.symm ((HomotopyCategory.quotient _ _).map F))) = _
rw [← he, e.symm_apply_apply, QuotientAddGroup.quotientAddEquivOfEq_mk]
rfltheorem homotopyCokernelEquiv_comp {S : ChainComplex (ModuleCat.{u} R) ℤ}
(hP : TotallyAcyclicComplex P) (hQ : TotallyAcyclicComplex Q)
(hS : ExactProjectiveComplex S)
(f : (HomotopyCategory.quotient _ _).obj P ⟶ (HomotopyCategory.quotient _ _).obj Q)
(g : (HomotopyCategory.quotient _ _).obj Q ⟶ (HomotopyCategory.quotient _ _).obj S) :
homotopyCokernelEquiv hP hS (f ≫ g) =
StableHom.comp (homotopyCokernelEquiv hQ hS g)
(homotopyCokernelEquiv hP hQ.toExactProjectiveComplex f) := by proof · 4 lines
obtain ⟨F, rfl⟩ := Functor.map_surjective (HomotopyCategory.quotient _ _) f
obtain ⟨G, rfl⟩ := Functor.map_surjective (HomotopyCategory.quotient _ _) g
rw [← Functor.map_comp, homotopyCokernelEquiv_map, homotopyCokernelEquiv_map,
homotopyCokernelEquiv_map, StableHom.comp_classOf, cokernelMap_comp]Outline