Download lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleNaturality.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 6.19 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleNaturality.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleNaturality.lean
-
curl -L -o FiniteModuleNaturality.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleNaturality.lean
6.19 kB
Lean 4 · 10
declarations statementsfull
theorem resolutionCokernelMap_comp (f : M.carrier →ₗ[R] N.carrier) (g : N.carrier →ₗ[R] L.carrier) :
resolutionCokernelMap τ (g.comp f) = (resolutionCokernelMap τ g).comp (resolutionCokernelMap τ f) := by proof · 3 lines
apply LinearMap.ext
intro x
simp [resolutionCokernelMap]theorem resolutionMap_id :
(HomotopyCategory.quotient _ _).map (resolutionMap τ (LinearMap.id : M.carrier →ₗ[R] M.carrier)) = 𝟙 _ := by proof · 9 lines
apply (cochainHomotopyRawEquiv (M.completeCochain_totallyAcyclic τ).to_chain
(M.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex).injective
rw [← (HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.up ℤ)).map_id,
cochainHomotopyRawEquiv_map, cochainHomotopyRawEquiv_map, resolutionMap_cokernel]
apply congrArg (StableHom.classOf R _ _)
apply LinearMap.ext
intro x
obtain ⟨x, rfl⟩ := (LinearMap.range ((M.completeCochain τ).d (-1) 0).hom).mkQ_surjective x
simp [resolutionCokernelMap, cochainCokernelMap_mk]theorem resolutionMap_comp (f : M.carrier →ₗ[R] N.carrier) (g : N.carrier →ₗ[R] L.carrier) :
(HomotopyCategory.quotient _ _).map (resolutionMap τ (g.comp f)) =
(HomotopyCategory.quotient _ _).map (resolutionMap τ f) ≫
(HomotopyCategory.quotient _ _).map (resolutionMap τ g) := by proof · 5 lines
apply (cochainHomotopyRawEquiv (M.completeCochain_totallyAcyclic τ).to_chain
(L.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex).injective
rw [← Functor.map_comp, cochainHomotopyRawEquiv_map, cochainHomotopyRawEquiv_map,
cochainCokernelMap_comp, resolutionMap_cokernel, resolutionMap_cokernel, resolutionMap_cokernel,
resolutionCokernelMap_comp]theorem resolutionMap_surjective : Function.Surjective
(fun f : M.carrier →ₗ[R] N.carrier =>
(HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.up ℤ)).map (resolutionMap τ f)) := by proof · 15 lines
intro h
let E := cochainHomotopyRawEquiv (M.completeCochain_totallyAcyclic τ).to_chain
(N.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex
obtain ⟨u, hu⟩ := StableHom.classOf_surjective (E h)
let f := (N.completeCochainCokernelEquiv τ).toLinearMap.comp
(u.comp (M.completeCochainCokernelEquiv τ).symm.toLinearMap)
refine ⟨f, E.injective ?_⟩
change cochainHomotopyRawEquiv _ _ _ = _
rw [cochainHomotopyRawEquiv_map, resolutionMap_cokernel]
have hf : resolutionCokernelMap τ f = u := by
apply LinearMap.ext
intro x
simp [resolutionCokernelMap, f]
rw [hf]
exact hudef resolutionTriangle : Triangle (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) := by body · 7 lines
letI := τ.regular_injective
exact shortExactTriangle (resolutionMap τ f) (resolutionCokernelMap τ g)
(by rw [resolutionMap_cokernel]; exact resolutionCokernelMap_exact τ f g hex)
(M.completeCochain_totallyAcyclic τ) (N.completeCochain_totallyAcyclic τ)
(L.completeCochain_totallyAcyclic τ)
(by rw [resolutionMap_cokernel]; exact resolutionCokernelMap_injective τ f hf)
(resolutionCokernelMap_surjective τ g hg)theorem resolutionTriangle_distinguished :
resolutionTriangle τ f g hf hg hex ∈
distTriang (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) := by proof · 2 lines
let := τ.regular_injective
apply shortExactTriangle_distinguishedtheorem resolutionTriangle_first :
(resolutionTriangle τ f g hf hg hex).mor₁ =
(HomotopyCategory.quotient _ _).map (resolutionMap τ f) := rfl theorem resolutionTriangle_second :
(resolutionTriangle τ f g hf hg hex).mor₂ =
(HomotopyCategory.quotient _ _).map (resolutionMap τ g) := by proof · 3 lines
let := τ.regular_injective
apply shortExactTriangle_second
exact resolutionMap_cokernel τ gabbrev resolutionConnecting :
(HomotopyCategory.quotient _ _).obj (L.completeCochain τ) ⟶
((HomotopyCategory.quotient _ _).obj (M.completeCochain τ))⟦(1 : ℤ)⟧ := body · 1 line
(resolutionTriangle τ f g hf hg hex).mor₃
theorem resolutionConnecting_natural
(hab : b.comp f₁ = f₂.comp a) (hbc : g₂.comp b = c.comp g₁) :
(HomotopyCategory.quotient _ _).map (resolutionMap τ c) ≫
resolutionConnecting τ f₂ g₂ hf₂ hg₂ hex₂ =
resolutionConnecting τ f₁ g₁ hf₁ hg₁ hex₁ ≫
(CategoryTheory.shiftFunctor (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) 1).map
((HomotopyCategory.quotient _ _).map (resolutionMap τ a)) := by proof · 7 lines
let := τ.regular_injective
apply shortExactTriangle_connecting_natural
· rw [resolutionMap_cokernel, ← resolutionCokernelMap_comp,
resolutionMap_cokernel, ← resolutionCokernelMap_comp, hbc]
· rw [cochainCokernelMap_comp, cochainCokernelMap_comp,
resolutionMap_cokernel, resolutionMap_cokernel, resolutionMap_cokernel, resolutionMap_cokernel,
← resolutionCokernelMap_comp, ← resolutionCokernelMap_comp, hab]Outline
- theorem
resolutionCokernelMap_comp17 - theorem
resolutionMap_id24 - theorem
resolutionMap_comp36 - theorem
resolutionMap_surjective46 - def
resolutionTriangle68 - theorem
resolutionTriangle_distinguished77 - theorem
resolutionTriangle_first84 - theorem
resolutionTriangle_second88 - abbrev
resolutionConnecting95 - theorem
resolutionConnecting_natural108