openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Resolutions /FiniteCochainResolution.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
2.1 kB
17
def cochainOfChain (P : ChainComplex (ModuleCat.{u} R) ℤ) :
    CochainComplex (ModuleCat.{u} R) ℤ := P.restriction negIndexEmbedding
20
def cochainOfChainCokernelEquiv (P : ChainComplex (ModuleCat.{u} R) ℤ) :
    CochainCokernel (cochainOfChain P) ≃ₗ[R] Cokernel P 0 :=
body · 1 line
  LinearEquiv.refl R _
24
theorem cochainOfChain_totallyAcyclic (P : ChainComplex (ModuleCat.{u} R) ℤ)
    (hP : TotallyAcyclicComplex P) : TotallyAcyclicCochain (cochainOfChain P) where
proof · 10 lines
  finite i := hP.finite (-i)
  projective i := hP.projective (-i)
  exactAt i := by
    rw [(cochainOfChain P).exactAt_iff' (i := i - 1) (j := i) (k := i + 1)
      (by simp) (by simp), ShortComplex.moduleCat_exact_iff_range_eq_ker]
    exact hP.exactAt_of_indices (by change -(i - 1) = -i + 1; omega)
      (by change -(i + 1) = -i - 1; omega)
  dualExact i := by
    exact hP.dualExact_of_indices (by change -(i - 1) = -i + 1; omega)
      (by change -(i + 1) = -i - 1; omega)
45
noncomputable def completeCochain (τ : FrobeniusTrace k R) (M : FiniteLeftModule k R) :
    CochainComplex (ModuleCat.{u} R) ℤ := cochainOfChain (M.completeComplex τ)
48
theorem completeCochain_totallyAcyclic (τ : FrobeniusTrace k R) (M : FiniteLeftModule k R) :
    TotallyAcyclicCochain (M.completeCochain τ) :=
proof · 1 line
  cochainOfChain_totallyAcyclic _ (M.completeComplex_totallyAcyclic τ)
52
noncomputable def completeCochainCokernelEquiv (τ : FrobeniusTrace k R) (M : FiniteLeftModule k R) :
    CochainCokernel (M.completeCochain τ) ≃ₗ[R] M.carrier :=
body · 1 line
  (cochainOfChainCokernelEquiv (M.completeComplex τ)).trans (M.completeCokernelEquiv τ)