Skip to content

[Merged by Bors] - feat(Algebra/Homology): better sign for the connecting homomorphism for the contravariant long exact sequence of Ext-groups - #43492

Closed
joelriou wants to merge 5 commits into
leanprover-community:masterfrom
joelriou:ext-contravariant-connecting
Closed

joelriou wants to merge 5 commits into
leanprover-community:masterfrom
joelriou:ext-contravariant-connecting

Conversation

@joelriou

@joelriou joelriou commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

We previously obtained the covariant and contravariant long exact sequences of Ext-groups by using the pre- or post-composition with a class in $$Ext^1$$ (and the composition of Ext-groups corresponds to composition of morphisms in the derived category). However, in the case of the contravariant exact sequence, it seems to me that the definition in the most careful mathematical literature gives a different sign for the connecting homomorphism. I am adding a new definition Ext.δ for this purpose.
Apart from the fact that I have done some computations on paper, the only convincing evidence I can provide is #43224, where we compute this Ext.δ using an injective resolution, and it is consistent with a computation involving the snake lemma for suitable cochain complexes of morphisms https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Homology/HomotopyCategory/HomComplex.html
(The statement from #43224 is at https://github.com/joelriou/mathlib4/blob/0cbb295838e45b27515796a1d46224dbe7a696b9/Mathlib/CategoryTheory/Abelian/Injective/Ext.lean#L326)


Open in Gitpod

…or the contravariant long exact sequence of Ext-groups
@joelriou joelriou added the t-category-theory Category theory label Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

PR summary 1c068e1394

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ δ
+ δ_exact₁
+ δ_exact₃

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean -- stale; merge master and push to refresh)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit fd1c26e).

  • +5 new declarations
  • −0 removed declarations
+CategoryTheory.Abelian.Ext.δ
+CategoryTheory.Abelian.Ext.δ.congr_simp
+CategoryTheory.Abelian.Ext.δ_apply
+CategoryTheory.Abelian.Ext.δ_exact₁
+CategoryTheory.Abelian.Ext.δ_exact₃

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 1c068e1394
Reference commit 9ba2df1bca

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@robin-carlier robin-carlier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t want to start a bikeshedding war, but I would argue it is not the place of mathlib to emit judgements on which references are careful and which aren’t.

@robin-carlier robin-carlier left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

maintainer merge

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by robin-carlier.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Sep 7, 2026
@jcommelin

Copy link
Copy Markdown
Member

Thanks 🎉

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 7, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Sep 7, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
…or the contravariant long exact sequence of Ext-groups (#43492)

We previously obtained the covariant and contravariant long exact sequences of `Ext`-groups by using the pre- or post-composition with a class in $$Ext^1$$ (and the composition of `Ext`-groups corresponds to composition of morphisms in the derived category). However, in the case of the contravariant exact sequence, it *seems* to me that the definition in the most careful mathematical literature gives a different sign for the connecting homomorphism. I am adding a new definition `Ext.δ` for this purpose.
Apart from the fact that I have done some computations on paper, the only convincing evidence I can provide is #43224, where we compute this `Ext.δ` using an injective resolution, and it is consistent with a computation involving the snake lemma for suitable cochain complexes of morphisms https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Homology/HomotopyCategory/HomComplex.html
(The statement from #43224 is at https://github.com/joelriou/mathlib4/blob/0cbb295838e45b27515796a1d46224dbe7a696b9/Mathlib/CategoryTheory/Abelian/Injective/Ext.lean#L326)
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 7, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Sep 7, 2026
@grunweg

grunweg commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

This PR has a long line, which makes CI fail. Can you fix this, please? Thanks!
bors r-
bors d+

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 7, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Bors build canceled.

Address comments or fix if necessary, and then someone with permission can run bors r+.

@mathlib-bors

mathlib-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

✌️ joelriou can now approve this pull request until 2026-09-21 13:07 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, Wanted/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean, Wanted.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@mathlib-bors mathlib-bors Bot removed the ready-to-merge This PR has been sent to bors. label Sep 7, 2026
@joelriou

joelriou commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Sorry for the long line...

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 7, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 7, 2026
…or the contravariant long exact sequence of Ext-groups (#43492)

We previously obtained the covariant and contravariant long exact sequences of `Ext`-groups by using the pre- or post-composition with a class in $$Ext^1$$ (and the composition of `Ext`-groups corresponds to composition of morphisms in the derived category). However, in the case of the contravariant exact sequence, it *seems* to me that the definition in the most careful mathematical literature gives a different sign for the connecting homomorphism. I am adding a new definition `Ext.δ` for this purpose.
Apart from the fact that I have done some computations on paper, the only convincing evidence I can provide is #43224, where we compute this `Ext.δ` using an injective resolution, and it is consistent with a computation involving the snake lemma for suitable cochain complexes of morphisms https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/Homology/HomotopyCategory/HomComplex.html
(The statement from #43224 is at https://github.com/joelriou/mathlib4/blob/0cbb295838e45b27515796a1d46224dbe7a696b9/Mathlib/CategoryTheory/Abelian/Injective/Ext.lean#L326)
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 7, 2026
@robin-carlier

Copy link
Copy Markdown
Contributor

I should be the one apologizing for the long line, it was caused by my suggestion.

@mathlib-bors

mathlib-bors Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(Algebra/Homology): better sign for the connecting homomorphism for the contravariant long exact sequence of Ext-groups [Merged by Bors] - feat(Algebra/Homology): better sign for the connecting homomorphism for the contravariant long exact sequence of Ext-groups Sep 7, 2026
@mathlib-bors mathlib-bors Bot closed this Sep 7, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-category-theory Category theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants