openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Modules /FiniteModuleNaturality.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
6.19 kB
17
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]
24
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]
36
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]
46
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 hu
68
def 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)
77
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_distinguished
84
theorem resolutionTriangle_first :
    (resolutionTriangle τ f g hf hg hex).mor₁ =
      (HomotopyCategory.quotient _ _).map (resolutionMap τ f) := rfl
88
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 τ g
95
abbrev resolutionConnecting :
    (HomotopyCategory.quotient _ _).obj (L.completeCochain τ) ⟶
      ((HomotopyCategory.quotient _ _).obj (M.completeCochain τ))⟦(1 : ℤ)⟧ :=
body · 1 line
  (resolutionTriangle τ f g hf hg hex).mor₃
108
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]