openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Modules /FiniteModuleTriangle.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
4.07 kB
19
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)
24
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))
31
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))
38
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)
43
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)
48
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]
67
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 τ g