Download lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleTriangle.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.07 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleTriangle.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleTriangle.lean
-
curl -L -o FiniteModuleTriangle.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Modules/FiniteModuleTriangle.lean
4.07 kB
Lean 4 · 7
declarations statementsfull
def resolutionCokernelMap (f : M.carrier →ₗ[R] N.carrier) :
CochainCokernel (M.completeCochain τ) →ₗ[R] CochainCokernel (N.completeCochain τ) := body · 2 lines
(N.completeCochainCokernelEquiv τ).symm.toLinearMap.comp
(f.comp (M.completeCochainCokernelEquiv τ).toLinearMap)def resolutionMap (f : M.carrier →ₗ[R] N.carrier) : M.completeCochain τ ⟶ N.completeCochain τ := body · 4 lines
Classical.choose (cochainCokernelMap_surjective
(M.completeCochain_totallyAcyclic τ).to_chain
(N.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex
(resolutionCokernelMap τ f))theorem resolutionMap_cokernel (f : M.carrier →ₗ[R] N.carrier) :
cochainCokernelMap (resolutionMap τ f) = resolutionCokernelMap τ f := proof · 4 lines
Classical.choose_spec (cochainCokernelMap_surjective
(M.completeCochain_totallyAcyclic τ).to_chain
(N.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex
(resolutionCokernelMap τ f))theorem resolutionCokernelMap_injective (f : M.carrier →ₗ[R] N.carrier)
(hf : Function.Injective f) : Function.Injective (resolutionCokernelMap τ f) := proof · 2 lines
(N.completeCochainCokernelEquiv τ).symm.injective.comp
(hf.comp (M.completeCochainCokernelEquiv τ).injective)theorem resolutionCokernelMap_surjective (f : M.carrier →ₗ[R] N.carrier)
(hf : Function.Surjective f) : Function.Surjective (resolutionCokernelMap τ f) := proof · 2 lines
(N.completeCochainCokernelEquiv τ).symm.surjective.comp
(hf.comp (M.completeCochainCokernelEquiv τ).surjective)theorem resolutionCokernelMap_exact
(f : M.carrier →ₗ[R] N.carrier) (g : N.carrier →ₗ[R] L.carrier)
(h : Function.Exact f g) : Function.Exact (resolutionCokernelMap τ f) (resolutionCokernelMap τ g) := by proof · 15 lines
intro x
constructor
· intro hx
have hx' : g ((N.completeCochainCokernelEquiv τ) x) = 0 := by
have hh := congrArg (L.completeCochainCokernelEquiv τ) hx
simpa [resolutionCokernelMap] using hh
obtain ⟨m, hm⟩ := (h _).mp hx'
refine ⟨(M.completeCochainCokernelEquiv τ).symm m, ?_⟩
simp [resolutionCokernelMap, hm]
· rintro ⟨m, rfl⟩
change (L.completeCochainCokernelEquiv τ).symm
(g ((N.completeCochainCokernelEquiv τ)
((N.completeCochainCokernelEquiv τ).symm
(f ((M.completeCochainCokernelEquiv τ) m))))) = 0
rw [LinearEquiv.apply_symm_apply, (h _).mpr ⟨_, rfl⟩, map_zero]theorem exists_resolution_triangle
(f : M.carrier →ₗ[R] N.carrier) (g : N.carrier →ₗ[R] L.carrier)
(hf : Function.Injective f) (hg : Function.Surjective g) (hex : Function.Exact f g) :
∃ δ : (HomotopyCategory.quotient _ _).obj (L.completeCochain τ) ⟶
((HomotopyCategory.quotient _ _).obj (M.completeCochain τ))⟦(1 : ℤ)⟧,
Triangle.mk ((HomotopyCategory.quotient _ _).map (resolutionMap τ f))
((HomotopyCategory.quotient _ _).map (resolutionMap τ g)) δ ∈
distTriang (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) := by proof · 12 lines
let := τ.regular_injective
apply exists_shortExact_distinguished (resolutionMap τ f) (resolutionCokernelMap τ g)
(hF := M.completeCochain_totallyAcyclic τ)
(hG := N.completeCochain_totallyAcyclic τ)
(hH := L.completeCochain_totallyAcyclic τ)
(ψ := resolutionMap τ g)
· rw [resolutionMap_cokernel]
exact resolutionCokernelMap_exact τ f g hex
· rw [resolutionMap_cokernel]
exact resolutionCokernelMap_injective τ f hf
· exact resolutionCokernelMap_surjective τ g hg
· exact resolutionMap_cokernel τ gOutline