Module

HomologySequenceThreeByThree.lean

Nyll.SchemeTheory.HomologicalAlgebra.HomologySequenceThreeByThree
15 declarations indexed from sourceView source ↗

Anticommutativity of the two boundaries in a 3 × 3 diagram

The kernel of the diagonal and the sequence with first map (f, -f) supply both composites of connecting maps. Their comparison tracks the sign of the actual boundary maps.

Imports3
  • Mathlib.Algebra.Homology.HomologicalComplexAbelian
  • Mathlib.Algebra.Homology.HomologySequenceLemmas
  • Mathlib.CategoryTheory.Abelian.Refinements
Imported by2

Declarations

abbrev

K

L43 ↗
ThreeByThree.K

The kernel of the diagonal X₂₂ ⟶ X₃₃ of a 3 × 3 diagram.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
section
variable {A : Type*} [Category* A] [HasZeroMorphisms A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
abbrev K : A
ThreeByThree.incl

The inclusion of the kernel of the diagonal.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
section
variable {A : Type*} [Category* A] [HasZeroMorphisms A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
abbrev incl : K D ⟶ D.X₂.X₂
ThreeByThree.toX₃₁

The map from the kernel of the diagonal to X₃₁.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
section
variable {A : Type*} [Category* A] [Preadditive A] [Balanced A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
def toX₃₁ (h₃ : D.X₃.ShortExact) : K D ⟶ D.X₃.X₁
ThreeByThree.toX₃₁_f
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
section
variable {A : Type*} [Category* A] [Preadditive A] [Balanced A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
lemma toX₃₁_f (h₃ : D.X₃.ShortExact) : toX₃₁ D h₃ ≫ D.X₃.f = incl D ≫ D.g.τ₂
ThreeByThree.toX₁₃

The map from the kernel of the diagonal to X₁₃.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
section
variable {A : Type*} [Category* A] [Preadditive A] [Balanced A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
def toX₁₃ (h₃' : (D.map ShortComplex.π₃).ShortExact) : K D ⟶ D.X₁.X₃
ThreeByThree.toX₁₃_f
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
section
variable {A : Type*} [Category* A] [Preadditive A] [Balanced A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
lemma toX₁₃_f (h₃' : (D.map ShortComplex.π₃).ShortExact) :
    toX₁₃ D h₃' ≫ D.f.τ₃ = incl D ≫ D.X₂.g
ThreeByThree.diagSequenceToRow₃

The morphism from the kernel sequence of the diagonal to the third row.

Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
def diagSequenceToRow₃ (h₃ : D.X₃.ShortExact) :
    ShortComplex.kernelSequence (D.X₂.g ≫ D.g.τ₃) ⟶ D.X₃ where
  τ₁ := toX₃₁ D h₃
  τ₂ := D.g.τ₂
  τ₃ := 𝟙 _
  comm₁₂ := toX₃₁_f D h₃
  comm₂₃ := D.g.comm₂₃.trans (Category.comp_id _).symm
ThreeByThree.diagSequenceToCol₃

The morphism from the kernel sequence of the diagonal to the third column.

Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
def diagSequenceToCol₃ (h₃' : (D.map ShortComplex.π₃).ShortExact) :
    ShortComplex.kernelSequence (D.X₂.g ≫ D.g.τ₃) ⟶ D.map ShortComplex.π₃ where
  τ₁ := toX₁₃ D h₃'
  τ₂ := D.X₂.g
  τ₃ := 𝟙 _
  comm₁₂ := toX₁₃_f D h₃'
  comm₂₃ := (Category.comp_id _).symm
ThreeByThree.toK

The map X₁₂ ⊞ X₂₁ ⟶ ker (X₂₂ ⟶ X₃₃) induced by the sum of the two maps to X₂₂.

Source context 9 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
section
variable {A : Type*} [Category* A] [HasZeroMorphisms A] [HasBinaryBiproducts A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
def toK : D.X₁.X₂ ⊞ D.X₂.X₁ ⟶ K D
ThreeByThree.toK_incl
Source context 9 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
section
variable {A : Type*} [Category* A] [HasZeroMorphisms A] [HasBinaryBiproducts A] [HasKernels A]
  (D : ShortComplex (ShortComplex A))
lemma toK_incl : toK D ≫ incl D = biprod.desc D.f.τ₂ D.X₂.f
ThreeByThree.crossSequence

The short complex X₁₁ ⟶ X₁₂ ⊞ X₂₁ ⟶ ker (X₂₂ ⟶ X₃₃), whose first map is (f, -f).

Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
abbrev crossSequence : ShortComplex A
ThreeByThree.crossSequence_shortExact
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
variable {D}
lemma crossSequence_shortExact (h₁ : D.X₁.ShortExact) (h₂ : D.X₂.ShortExact)
    (h₃ : D.X₃.ShortExact) (h₁' : (D.map ShortComplex.π₁).ShortExact)
    (h₂' : (D.map ShortComplex.π₂).ShortExact)
    (h₃' : (D.map ShortComplex.π₃).ShortExact) :
    (crossSequence D).ShortExact
ThreeByThree.crossSequenceToRow₁

The morphism from the cross sequence to the first row: the identity on X₁₁ and the first projection on X₁₂ ⊞ X₂₁.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
variable {D}
def crossSequenceToRow₁ (h₃' : (D.map ShortComplex.π₃).ShortExact) :
    crossSequence D ⟶ D.X₁ where
  τ₁ := 𝟙 _
  τ₂ := biprod.fst
  τ₃ := toX₁₃ D h₃'
  comm₁₂ := by rw [Category.id_comp]; exact (biprod.lift_fst D.X₁.f (-D.f.τ₁)).symm
  comm₂₃ := by
    have : Mono D.f.τ₃ := h₃'.mono_f
    rw [← cancel_mono D.f.τ₃]
    simp only [Category.assoc, toX₁₃_f]
    have ht : toK D ≫ incl D ≫ D.X₂.g = biprod.desc D.f.τ₂ D.X₂.f ≫ D.X₂.g := by
      rw [← Category.assoc, toK_incl]
    rw [ht]
    ext
    · rw [biprod.inl_fst_assoc, biprod.inl_desc_assoc, D.f.comm₂₃]
    · rw [biprod.inr_fst_assoc, zero_comp, biprod.inr_desc_assoc, D.X₂.zero]
ThreeByThree.crossSequenceToCol₁

The morphism from the cross sequence to the first column: minus the identity on X₁₁ and the second projection on X₁₂ ⊞ X₂₁.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace ThreeByThree
variable {A : Type*} [Category* A] [Abelian A] (D : ShortComplex (ShortComplex A))
variable {D}
def crossSequenceToCol₁ (h₃ : D.X₃.ShortExact) :
    crossSequence D ⟶ D.map ShortComplex.π₁ where
  τ₁ := -𝟙 _
  τ₂ := biprod.snd
  τ₃ := toX₃₁ D h₃
  comm₁₂ := by
    dsimp only [ShortComplex.map, ShortComplex.π₁]
    rw [Preadditive.neg_comp, Category.id_comp, biprod.lift_snd]
  comm₂₃ := by
    dsimp only [ShortComplex.map, ShortComplex.π₁]
    have := h₃.mono_f
    rw [← cancel_mono D.X₃.f]
    simp only [Category.assoc, toX₃₁_f]
    have ht : toK D ≫ incl D ≫ D.g.τ₂ = biprod.desc D.f.τ₂ D.X₂.f ≫ D.g.τ₂ := by
      rw [← Category.assoc, toK_incl]
    have hzero : D.f.τ₂ ≫ D.g.τ₂ = 0 := by
      rw [← ShortComplex.comp_τ₂, D.zero, ShortComplex.zero_τ₂]
    rw [ht]
    ext
    · rw [biprod.inl_snd_assoc, zero_comp, biprod.inl_desc_assoc, hzero]
    · rw [biprod.inr_snd_assoc, biprod.inr_desc_assoc, D.g.comm₁₂]
HomologicalComplex.HomologySequence.δ_comp_δ_eq_neg

The connecting maps of a `3 × 3` diagram anticommute. Let D be a 3 × 3 diagram of homological complexes in an abelian category, presented as a short complex D.X₁ ⟶ D.X₂ ⟶ D.X₃ of short complexes, all of whose rows D.Xᵢ and columns D.map π_j are short exact. Then the two composites of connecting maps from the homology of the corner X₃₃ to that of the corner X₁₁, through the third row and the first column, and through the third column and the first row, differ by a sign.

Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory ComposableArrows Abelian
variable {C ι : Type*} [Category* C] [Abelian C] {c : ComplexShape ι}
open Limits
namespace HomologicalComplex.HomologySequence
open ThreeByThree in
lemma δ_comp_δ_eq_neg (D : ShortComplex (ShortComplex (HomologicalComplex C c)))
    (h₁ : D.X₁.ShortExact) (h₂ : D.X₂.ShortExact) (h₃ : D.X₃.ShortExact)
    (h₁' : (D.map ShortComplex.π₁).ShortExact) (h₂' : (D.map ShortComplex.π₂).ShortExact)
    (h₃' : (D.map ShortComplex.π₃).ShortExact) (i j k : ι) (hij : c.Rel i j) (hjk : c.Rel j k) :
    h₃.δ i j hij ≫ h₁'.δ j k hjk = -(h₃'.δ i j hij ≫ h₁.δ j k hjk)