Module

HomFromSingle.lean

Nyll.SchemeTheory.HomologicalAlgebra.HomFromSingle
3 declarations indexed from sourceView source ↗

The Hom complex from a single object

The original postcomposition construction from the classical global-sections complex is shared here. The standard Cochain.fromSingleEquiv identifies it naturally with degreewise application of the existing additive coyoneda functor.

Declarations

CategoryTheory.homFromSingleFunctor

The actual Hom complex from the single complex at zero, with ordinary postcomposition on cochains.

Source context 6 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v
open CategoryTheory Limits Opposite CochainComplex HomComplex
namespace CategoryTheory
variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] (A : C)
def homFromSingleFunctor :
    CochainComplex C ℤ ⥤
      CochainComplex AddCommGrpCat.{v} ℤ where
  obj K := CochainComplex.HomComplex ((CochainComplex.singleFunctor C 0).obj A) K
  map φ :=
    { f := fun n => AddCommGrpCat.ofHom
        { toFun := fun z => z.comp (Cochain.ofHom φ) (add_zero n)
          map_zero' := Cochain.zero_comp _ _
          map_add' := fun z w => Cochain.add_comp z w (Cochain.ofHom φ) (add_zero n) }
      comm' := fun i j _ => by
        apply AddCommGrpCat.hom_ext
        apply AddMonoidHom.ext
        intro z
        exact HomComplex.δ_comp_ofHom z φ j }
  map_id K := by
    apply HomologicalComplex.hom_ext
    intro n
    apply AddCommGrpCat.hom_ext
    apply AddMonoidHom.ext
    intro z
    exact Cochain.comp_id z
  map_comp φ ψ := by
    apply HomologicalComplex.hom_ext
    intro n
    apply AddCommGrpCat.hom_ext
    apply AddMonoidHom.ext
    intro z
    change z.comp (Cochain.ofHom (φ ≫ ψ)) (add_zero n) =
      (z.comp (Cochain.ofHom φ) (add_zero n)).comp (Cochain.ofHom ψ) (add_zero n)
    rw [Cochain.ofHom_comp]
    exact (Cochain.comp_assoc_of_second_is_zero_cochain z
      (Cochain.ofHom φ) (Cochain.ofHom ψ) (add_zero n)).symm
CategoryTheory.homFromSingleObjIso

Identify the Hom complex from a single object with its additive coyoneda complex.

Source context 6 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v
open CategoryTheory Limits Opposite CochainComplex HomComplex
namespace CategoryTheory
variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] (A : C)
def homFromSingleObjIso (K : CochainComplex C ℤ) :
    (homFromSingleFunctor A).obj K ≅
      (((preadditiveCoyoneda.obj (op A)).mapHomologicalComplex
        (ComplexShape.up ℤ)).obj K)
CategoryTheory.homFromSingleIso

The raw Hom complex from a single object is naturally degreewise additive coyoneda, through the existing from-single cochain equivalence.

Source context 6 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v
open CategoryTheory Limits Opposite CochainComplex HomComplex
namespace CategoryTheory
variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] (A : C)
def homFromSingleIso :
    homFromSingleFunctor A ≅
      (preadditiveCoyoneda.obj (op A)).mapHomologicalComplex (ComplexShape.up ℤ)