Skip to content

feat(AlgebraicTopology): natural transformations from singular n-chains - #46024

Open
joelriou wants to merge 8 commits into
leanprover-community:masterfrom
joelriou:singular-homology-nattrans-mk
Open

joelriou wants to merge 8 commits into
leanprover-community:masterfrom
joelriou:singular-homology-nattrans-mk

Conversation

@joelriou

@joelriou joelriou commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Natural transformations from the singular n-chains functor (with coefficients R) to a functor F : TopCat ⥤ C identify to morphisms R ⟶ F.obj (SimplexCategory.toTop.{w} ^⦋n⦌).

From https://github.com/joelriou/excision


@joelriou joelriou added WIP Work in progress t-algebraic-topology Algebraic topology labels Nov 14, 2026
@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Nov 14, 2026
@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

PR summary acb19ed295

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.AlgebraicTopology.SingularHomology.NatTrans (new file) 1783

Declarations diff (regex)

+ natTransEquiv
+ natTransMk
+ natTransMk_zero
+ natTrans_ext
+ singularChainComplex
+ singularChainComplexMap
+ singularChainComplexX_hom_ext
+ toSSet.exists_map_app_univObj_eq
+ toSSet.univObj
+ toSSet.univObj_down
+ toSSet.univObj_eq
+ toSSet.δ_univObj
+ ιSingularChainComplex
+ ι_natTransMk
+ ι_singularChainComplexMap
+ ι_singularChainComplex_d

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)

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

  • +21 new declarations
  • −0 removed declarations
+AlgebraicTopology.singularChainComplexFunctor.natTransEquiv
+AlgebraicTopology.singularChainComplexFunctor.natTransEquiv_apply
+AlgebraicTopology.singularChainComplexFunctor.natTransEquiv_symm_apply
+AlgebraicTopology.singularChainComplexFunctor.natTransMk
+AlgebraicTopology.singularChainComplexFunctor.natTransMk_zero
+AlgebraicTopology.singularChainComplexFunctor.natTrans_ext
+AlgebraicTopology.singularChainComplexFunctor.ι_natTransMk
+AlgebraicTopology.singularChainComplexFunctor.ι_natTransMk_assoc
+TopCat.singularChainComplex
+TopCat.singularChainComplexMap
+TopCat.singularChainComplexX_hom_ext
+TopCat.toSSet.exists_map_app_univObj_eq
+TopCat.toSSet.univObj
+TopCat.toSSet.univObj_down
+TopCat.toSSet.univObj_eq
+TopCat.toSSet.δ_univObj
+TopCat.ιSingularChainComplex
+TopCat.ι_singularChainComplexMap
+TopCat.ι_singularChainComplexMap_assoc
+TopCat.ι_singularChainComplex_d
+TopCat.ι_singularChainComplex_d_assoc

Decrease in strong tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (strong)
1643 -1 backward.defeqAttrib.useBackward
1879 -1 backward.isDefEq.respectTransparency.types
No changes to weak technical debt.

Current commit acb19ed295
Reference commit 4631dfb80b

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).

@joelriou joelriou removed the WIP Work in progress label Nov 14, 2026
@PatrickMassot PatrickMassot added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 20, 2026
@joelriou

Copy link
Copy Markdown
Contributor Author

@PatrickMassot: I have tried to improve docstrings in 7e16e8a

@joelriou joelriou removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 25, 2026

@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.

Apart from the expose suggestion, LGTM.

@robin-carlier robin-carlier added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Nov 27, 2026
@joelriou joelriou removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Dec 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-algebraic-topology Algebraic topology tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants