openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Complete /ProjectiveCompleteResolution.lean
roseking's picture
Add lean source and binary files (part 5)
d7f9a33 verified
Raw History Blame Contribute Delete
3.38 kB
16
theorem completeCochain_isZero_of_projectiveCokernel
    (K : CochainComplex (ModuleCat.{u} R) ℤ) (hK : TotallyAcyclicCochain K)
    [Module.Projective R (CochainCokernel K)] :
    Limits.IsZero ((HomotopyCategory.quotient _ _).obj K) := by
proof · 8 lines
  let := hK.finite 0
  let : Module.Finite R (CochainCokernel K) := inferInstance
  rw [Limits.IsZero.iff_id_eq_zero]
  apply (cochainHomotopyRawEquiv hK.to_chain hK.to_chain.toExactProjectiveComplex).injective
  rw [map_zero]
  rw [← (HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.up ℤ)).map_id,
    cochainHomotopyRawEquiv_map]
  exact StableHom.eq_zero_of_projective_source _
35
theorem projective_completeCochain_isZero [Module.Projective R M.carrier] :
    Limits.IsZero ((HomotopyCategory.quotient _ _).obj (M.completeCochain τ)) := by
proof · 3 lines
  let : Module.Projective R (CochainCokernel (M.completeCochain τ)) :=
    Module.Projective.of_equiv (M.completeCochainCokernelEquiv τ).symm
  exact completeCochain_isZero_of_projectiveCokernel _ (M.completeCochain_totallyAcyclic τ)
43
theorem nonempty_projectiveMiddleShiftIso [Module.Projective R N.carrier]
    (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) :
    Nonempty (((HomotopyCategory.quotient _ _).obj (L.completeCochain τ)) ≅
      ((HomotopyCategory.quotient _ _).obj (M.completeCochain τ))⟦(1 : ℤ)⟧) := by
proof · 6 lines
  obtain ⟨δ, hδ⟩ := exists_resolution_triangle τ f g hf hg hex
  let T := Triangle.mk ((HomotopyCategory.quotient _ _).map (resolutionMap τ f))
    ((HomotopyCategory.quotient _ _).map (resolutionMap τ g)) δ
  have hz : Limits.IsZero T.obj₂ := N.projective_completeCochain_isZero τ
  have : IsIso δ := (T.isZero₂_iff_isIso₃ hδ).mp hz
  exact ⟨asIso δ⟩
55
def projectiveMiddleShiftIso [Module.Projective R N.carrier]
    (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 : ℤ)⟧ := by
body · 5 lines
  let T := resolutionTriangle τ f g hf hg hex
  have hz : Limits.IsZero T.obj₂ := N.projective_completeCochain_isZero τ
  haveI : IsIso (resolutionConnecting τ f g hf hg hex) :=
    (T.isZero₂_iff_isIso₃ (resolutionTriangle_distinguished τ f g hf hg hex)).mp hz
  exact asIso (resolutionConnecting τ f g hf hg hex)
67
theorem projectiveMiddleShiftIso_hom [Module.Projective R N.carrier]
    (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) :
    (projectiveMiddleShiftIso τ f g hf hg hex).hom = resolutionConnecting τ f g hf hg hex := rfl