File size: 2,581 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | /-
Copyright 2026 The Formal Conjectures Authors.
Released under Apache 2.0 license as described in the file LICENSE.
This file has been modified.
-/
import Mathlib.Algebra.Homology.HomotopyCategory.HomComplexSingle
import Mathlib.Algebra.Homology.Additive
import Mathlib.CategoryTheory.Preadditive.Yoneda.Basic
import OAI.Algebra.Homology.Notation
/-! # Hom Complex Single -/
namespace OAI.Algebra.Homology.HomComplexSingle.CochainComplex.HomComplex
noncomputable section
open _root_.CochainComplex
open _root_.CochainComplex.HomComplex
/-!
# The Hom complex out of an object in degree zero
For an object `X` and a cochain complex `K`, the Hom complex from `X[0]` to `K` is the complex
`n ↦ Hom(X, K^n)`.
-/
open _root_.CategoryTheory Limits
universe u v
variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C]
set_option backward.isDefEq.respectTransparency.types false in
set_option backward.isDefEq.respectTransparency false in
/-- Let `C` be a preadditive category with a zero object, `X` an object, and `K` an integer-indexed
cochain complex in `C`. This identifies the Hom complex from `X[0]` to `K` with the complex of
abelian groups `n ↦ Hom_C(X, K^n)`, whose differential is postcomposition with the differential
of `K`. -/
def fromSingleZeroIsoPreadditiveCoyoneda (X : C) (K : CochainComplex C ℤ) :
CochainComplex.HomComplex ((CochainComplex.singleFunctor C 0).obj X) K ≅
((preadditiveCoyoneda.obj (.op X)).mapHomologicalComplex
ℤᵘᵖ).obj K :=
HomologicalComplex.Hom.isoOfComponents
(fun n ↦ (Cochain.fromSingleEquiv (p := 0) (q := n) (n := n)
(zero_add n)).toAddCommGrpIso)
(by
intro i j hij
apply AddCommGrpCat.hom_ext
ext z
obtain ⟨f, rfl⟩ := Cochain.fromSingleMk_surjective z i (zero_add i)
have he : Cochain.fromSingleEquiv (zero_add j)
(CochainComplex.HomComplex.δ i j
(Cochain.fromSingleMk f (zero_add i))) = f ≫ K.d i j := by
rw [Cochain.δ_fromSingleMk f (zero_add i) j j (zero_add j)]
simp
have hleft : (preadditiveCoyoneda.obj (.op X)).map (K.d i j)
(Cochain.fromSingleEquiv (zero_add i)
(Cochain.fromSingleMk f (zero_add i))) = f ≫ K.d i j := by
rw [Cochain.fromSingleEquiv_fromSingleMk]
rfl
have hcalc := hleft.trans he.symm
simp only [AddCommGrpCat.comp_apply, AddEquiv.toAddCommGrpIso_hom,
Functor.mapHomologicalComplex_obj_d]
convert hcalc using 1 <;> rfl)
end
end OAI.Algebra.Homology.HomComplexSingle.CochainComplex.HomComplex
|