Long exact sequences, four and five lemmas, and Ext with disjoint unions and products
Lib.General.Algebra.LongExactSequences.lean
Reading
Upstream documentation written by Claude
Long exact sequences of abelian groups are packaged as a structure, so that diagram chases, among them the four and five lemmas, are proved once for all cohomology sequences. In the category
New.Variety.AbFunctor Cof functors fromCto abelian groups, withNew.Variety.H N F ndenoting Ext^n(N, F), short exact sequences in either variable give long exact Ext sequences, and comparison maps give morphisms between them.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Main definitions and results
New.Variety.LongExactSeq,New.Variety.LongExactSeq.Hom: the sequences and their morphisms.New.Variety.LongExactSeq.Hom.four_lemma(four lemma) andNew.Variety.LongExactSeq.Hom.five_lemma(five lemma).New.Variety.LongExactSeq.contravariant,New.Variety.LongExactSeq.covariant: the long exact Ext sequences of a short exact sequence in the first and in the second variable;New.Variety.Comparison.pull_hom_contravariantandNew.Variety.Comparison.pull_hom_covariantsay that comparison maps give morphisms between them.New.Variety.isCohomEquiv_iff_subsingleton: in a short exact sequence 0 → X₁ → X₂ → X₃ → 0, the map X₁ → X₂ is an equivalence for F iff the quotient X₃ has no cohomology with values in F.New.Variety.H.sigma_bijective: the cohomologyNew.Variety.H (freeAb.obj Y) F nof a disjoint unionY = New.Variety.sigma Xof set-valued functors is the product of the cohomology groups of theX i, by pull-back (New.Variety.H.map) along the inclusions.New.Variety.H.pi_bijective: the map Ext^n(N, ∏ F_i) → ∏ Ext^n(N, F_i) is bijective, for the objectwise productNew.Variety.piAbFunctor.
Notions from other files:
New.Variety.IsCohomEquiv: α: N' → N is an equivalence for F: the pull-back Ext^n(N,F) → Ext^n(N',F) is bijective for every n;New.Variety.AllBijective fsays that every map f n is bijective.
Declarations
lemma H.pi_bijective (n : ℕ) : Bijective fun (x : H N (piAbFunctor F) n) (i : I) ↦ push N (π F i) n x
Import route to Main
Lib.General.Algebra.LongExactSequences → Lib.Cohomology.Etale.BijectiveComparisons (pinned import) → Lib.Cohomology.Etale.DenseSubfunctors (pinned import) → Lib.General.Geometry.EtaleCharts (pinned import) → Lib.General.Geometry.PointsOfProperSchemes (pinned import) → Lib.Shimura.AbelianScheme.TangentCoordinates (pinned import) → Lib.Shimura.Uniformisation.HolomorphicFamilies (pinned import) → New.Derivatives.Vacuum.TightFrames (pinned import) → New.Derivatives.Vacuum.IntegralVacuum (pinned import) → New.Reduction.Data.AdmissibleData (pinned import) → New.Reduction.Data.Existence (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)