Skip to content

[Merged by Bors] - feat: more API specific to strict group homs - #41238

Closed
ADedecker wants to merge 8 commits into
leanprover-community:masterfrom
ADedecker:AD_split_strict
Closed

ADedecker wants to merge 8 commits into
leanprover-community:masterfrom
ADedecker:AD_split_strict

Conversation

@ADedecker

@ADedecker ADedecker commented Jul 1, 2026 •

Copy link
Copy Markdown
Member
  • Move the section of Topology.Maps.Strict.Basic about group homs to a new file Topology.Maps.Strict.Group
  • add more criterions for strictness of group homs
  • the first isomorphism theorem holds for strict group homs, yielding a ContinuousMulEquiv
  • various tweaks to namespaces and variables throughout the two files.

Open in Gitpod

@github-actions github-actions Bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

PR summary 3ff0e2a030

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Topology.Maps.Strict.Basic 1106 724 -382 (-34.54%)
Import changes for all files
Files Import difference
Mathlib.Topology.Maps.Strict.Basic -382
Mathlib.Topology.Maps.Strict.Group (new file) 1109

Declarations diff (regex)

+ _root_.ContinuousMulEquiv.quotientKerEquivRange
+ _root_.Homeomorph.comp_isStrictMap_iff
+ _root_.Homeomorph.isStrictMap_comp_iff
+ _root_.Homeomorph.quotientKerEquivRange
+ _root_.IsClosedMap.isStrictMap
+ _root_.IsHomeomorph.isStrictMap
+ _root_.IsOpenMap.isStrictMap
+ isStrictMap_iff_isEmbedding_kerLift
+ isStrictMap_iff_isHomeomorph_quotientKerEquivRange

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

  • +12 new declarations
  • −0 removed declarations
+AddMonoidHom.isStrictMap_iff_isEmbedding_kerLift
+AddMonoidHom.isStrictMap_iff_isHomeomorph_quotientKerEquivRange
+ContinuousAddEquiv.quotientKerEquivRange
+ContinuousMulEquiv.quotientKerEquivRange
+Homeomorph.comp_isStrictMap_iff
+Homeomorph.isStrictMap_comp_iff
+Homeomorph.quotientKerEquivRange
+IsClosedMap.isStrictMap
+IsHomeomorph.isStrictMap
+IsOpenMap.isStrictMap
+MonoidHom.isStrictMap_iff_isEmbedding_kerLift
+MonoidHom.isStrictMap_iff_isHomeomorph_quotientKerEquivRange

No changes to strong technical debt.

Increase in weak tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (weak)
5008 1 exposed public sections

Current commit 3ff0e2a030
Reference commit 6f6d267d6d

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

Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Group.lean Resolved
Comment thread Mathlib/Topology/Maps/Strict/Group.lean Resolved
homomorphism `f`. This is an avatar of the first isomorphism theorem. -/
@[to_additive /-- The isomorphism of topological additive groups `G ⧸ f.ker ≃ f.range` given by a
strict additive group homomorphism `f`. This is an avatar of the first isomorphism theorem. -/]
noncomputable def _root_.ContinuousMulEquiv.quotientKerEquivRange

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do you want to add some basic API for this?
(like toMulEquiv_, toHomeomorph_, _apply, etc...)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

One thing is that QuotientGroup.quotientKerEquivRange has no API, so I'm not sure what's the best here. I'm tempted to say "let's not flood Mathlib with API if we're not sure it's useful", but maybe I'm just lazy 😅

I'll grab something to eat before I pass out, and then maybe I'll have a clearer view here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thinking about it a bit more, I argue "let's not add API for a more specific version if the more general one doesn't have any".

Comment thread Mathlib/Topology/Maps/Strict/Group.lean Resolved

@themathqueen themathqueen left a comment

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by themathqueen.

@mathlib-triage mathlib-triage Bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 10, 2026
@sgouezel

Copy link
Copy Markdown
Contributor

bors r+
Thanks!

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jul 10, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 10, 2026
* Move the section of `Topology.Maps.Strict.Basic` about group homs to a new file `Topology.Maps.Strict.Group`
* add more criterions for strictness of group homs
* the first isomorphism theorem holds for strict group homs, yielding a [ContinuousMulEquiv](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/Algebra/ContinuousMonoidHom.html#ContinuousMulEquiv)
* various tweaks to namespaces and variables throughout the two files.
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jul 10, 2026
@mathlib-triage mathlib-triage Bot removed the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jul 10, 2026
@mathlib-bors

mathlib-bors Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat: more API specific to strict group homs [Merged by Bors] - feat: more API specific to strict group homs Jul 10, 2026
@mathlib-bors mathlib-bors Bot closed this Jul 10, 2026
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Jul 11, 2026
)

* Move the section of `Topology.Maps.Strict.Basic` about group homs to a new file `Topology.Maps.Strict.Group`
* add more criterions for strictness of group homs
* the first isomorphism theorem holds for strict group homs, yielding a [ContinuousMulEquiv](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/Algebra/ContinuousMonoidHom.html#ContinuousMulEquiv)
* various tweaks to namespaces and variables throughout the two files.
mpacholski pushed a commit to mpacholski/mathlib4 that referenced this pull request Jul 16, 2026
)

* Move the section of `Topology.Maps.Strict.Basic` about group homs to a new file `Topology.Maps.Strict.Group`
* add more criterions for strictness of group homs
* the first isomorphism theorem holds for strict group homs, yielding a [ContinuousMulEquiv](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/Algebra/ContinuousMonoidHom.html#ContinuousMulEquiv)
* various tweaks to namespaces and variables throughout the two files.
mpacholski pushed a commit to mpacholski/mathlib4 that referenced this pull request Jul 30, 2026
)

* Move the section of `Topology.Maps.Strict.Basic` about group homs to a new file `Topology.Maps.Strict.Group`
* add more criterions for strictness of group homs
* the first isomorphism theorem holds for strict group homs, yielding a [ContinuousMulEquiv](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/Algebra/ContinuousMonoidHom.html#ContinuousMulEquiv)
* various tweaks to namespaces and variables throughout the two files.
mpacholski pushed a commit to mpacholski/mathlib4 that referenced this pull request Jul 30, 2026
)

* Move the section of `Topology.Maps.Strict.Basic` about group homs to a new file `Topology.Maps.Strict.Group`
* add more criterions for strictness of group homs
* the first isomorphism theorem holds for strict group homs, yielding a [ContinuousMulEquiv](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Topology/Algebra/ContinuousMonoidHom.html#ContinuousMulEquiv)
* various tweaks to namespaces and variables throughout the two files.
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-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants