Skip to content

[Merged by Bors] - feat: some lemmas about closed maps - #29144

Closed
ADedecker wants to merge 9 commits into
leanprover-community:masterfrom
ADedecker:AD_closedMap_lemmas
Closed

ADedecker wants to merge 9 commits into
leanprover-community:masterfrom
ADedecker:AD_closedMap_lemmas

Conversation

@ADedecker

@ADedecker ADedecker commented Aug 30, 2025 •

Copy link
Copy Markdown
Member

This is a compilation of (1) some observations by @PatrickMassot and (2) some lemmas written by @AntoineChambert-Loir and I for a specific application, which turned out to have a nice proof using (1). The most interesting results are:

  • isClosedMap_iff_kernImage: a map is closed iff the Set.kernImage of any open set is open (+ similar result for open maps)
  • isClosedMap_iff_comap_nhds_le: as a consequence, the map f is closed iff for any y, one has comap f (𝓝 y) ≤ 𝓝ˢ (f ⁻¹' {y}) (with equality if f is also continuous)
  • IsClosedMap.eventually_nhds_fiber is a restatement of this in eventually terms: assuming f is closed, if some property holds in the neighborhood of the fiber at y₀, then it holds on the fiber at y for all y close enough to y₀.

I expect importing issues, but let's see...

Open in Gitpod

@github-actions github-actions Bot added the t-topology Topological spaces, uniform spaces, metric spaces, filters label Aug 30, 2025
@github-actions

github-actions Bot commented Aug 30, 2025 •

Copy link
Copy Markdown

PR summary eb83b6d633

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Topology.Maps.Basic 593 594 +1 (+0.17%)
Import changes for all files
Files Import difference
4 files Mathlib.Topology.Homeomorph.Defs Mathlib.Topology.Instances.Shrink Mathlib.Topology.Maps.Basic Mathlib.Topology.Maps.OpenQuotient
1

Declarations diff

+ IsClosedMap.comap_nhdsSet_eq
+ IsClosedMap.comap_nhdsSet_le
+ IsClosedMap.comap_nhds_eq
+ IsClosedMap.comap_nhds_le
+ IsClosedMap.eventually_nhds_fiber
+ IsClosedMap.frequently_nhds_fiber
+ isClosedMap_iff_comap_nhdsSet_le
+ isClosedMap_iff_comap_nhds_le
+ isClosedMap_iff_kernImage
+ isClosedMap_iff_kernImage_interior
+ isOpenMap_iff_closure_kernImage
+ isOpenMap_iff_image_interior
+ isOpenMap_iff_kernImage
+ map_nhdsSet_eq
+ map_nhds_eq

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

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

@ADedecker
ADedecker marked this pull request as ready for review August 30, 2025 14:27

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

This is pretty nice! Cute results.

Comment thread Mathlib/Topology/Maps/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Basic.lean Resolved
Comment thread Mathlib/Topology/Maps/Basic.lean Resolved
@j-loreaux

Copy link
Copy Markdown
Contributor

bors d+

@mathlib-bors

mathlib-bors Bot commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

✌️ ADedecker can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 9, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 21, 2025
@mathlib4-merge-conflict-bot

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 22, 2025
@ADedecker

Copy link
Copy Markdown
Member Author

bors merge

mathlib-bors Bot pushed a commit that referenced this pull request Sep 22, 2025
This is a compilation of (1) some observations by @PatrickMassot and (2) some lemmas written by @AntoineChambert-Loir and I for a specific application, which turned out to have a nice proof using (1). The most interesting results are:
- `isClosedMap_iff_kernImage`: a map is closed iff the [Set.kernImage](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Data/Set/Operations.html#Set.kernImage) of any ***open set*** is open (+ similar result for open maps)
- `isClosedMap_iff_comap_nhds_le`: as a consequence, the map `f` is closed iff for any `y`, one has `comap f (𝓝 y) ≤ 𝓝ˢ (f ⁻¹' {y})` (with equality if `f` is also continuous)
- `IsClosedMap.eventually_nhds_fiber` is a restatement of this in `eventually` terms: assuming `f` is closed, if some property holds in the neighborhood of the fiber at `y₀`, then it holds on the fiber at `y` for all `y` close enough to `y₀`.

Co-authored-by: Antoine Chambert-Loir <[email protected]>
Co-authored-by: Patrick Massot <[email protected]>
@ghost ghost added the ready-to-merge This PR has been sent to bors. label Sep 22, 2025
@mathlib-bors

mathlib-bors Bot commented Sep 22, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat: some lemmas about closed maps [Merged by Bors] - feat: some lemmas about closed maps Sep 22, 2025
@mathlib-bors mathlib-bors Bot closed this Sep 22, 2025
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Oct 2, 2025
This is a compilation of (1) some observations by @PatrickMassot and (2) some lemmas written by @AntoineChambert-Loir and I for a specific application, which turned out to have a nice proof using (1). The most interesting results are:
- `isClosedMap_iff_kernImage`: a map is closed iff the [Set.kernImage](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Data/Set/Operations.html#Set.kernImage) of any ***open set*** is open (+ similar result for open maps)
- `isClosedMap_iff_comap_nhds_le`: as a consequence, the map `f` is closed iff for any `y`, one has `comap f (𝓝 y) ≤ 𝓝ˢ (f ⁻¹' {y})` (with equality if `f` is also continuous)
- `IsClosedMap.eventually_nhds_fiber` is a restatement of this in `eventually` terms: assuming `f` is closed, if some property holds in the neighborhood of the fiber at `y₀`, then it holds on the fiber at `y` for all `y` close enough to `y₀`.

Co-authored-by: Antoine Chambert-Loir <[email protected]>
Co-authored-by: Patrick Massot <[email protected]>
zhuyizheng pushed a commit to zhuyizheng/mathlib4 that referenced this pull request Oct 2, 2025
This is a compilation of (1) some observations by @PatrickMassot and (2) some lemmas written by @AntoineChambert-Loir and I for a specific application, which turned out to have a nice proof using (1). The most interesting results are:
- `isClosedMap_iff_kernImage`: a map is closed iff the [Set.kernImage](https://leanprover-community.github.io/mathlib4_docs/Mathlib/Data/Set/Operations.html#Set.kernImage) of any ***open set*** is open (+ similar result for open maps)
- `isClosedMap_iff_comap_nhds_le`: as a consequence, the map `f` is closed iff for any `y`, one has `comap f (𝓝 y) ≤ 𝓝ˢ (f ⁻¹' {y})` (with equality if `f` is also continuous)
- `IsClosedMap.eventually_nhds_fiber` is a restatement of this in `eventually` terms: assuming `f` is closed, if some property holds in the neighborhood of the fiber at `y₀`, then it holds on the fiber at `y` for all `y` close enough to `y₀`.

Co-authored-by: Antoine Chambert-Loir <[email protected]>
Co-authored-by: Patrick Massot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). 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.

5 participants