Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - refactor(UniformSpace): change the definition #10901

Closed
wants to merge 61 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Feb 23, 2024

  • replace isOpen_uniformity with nhds_eq_comap_uniformity
    as I suggested in refactor: redefine UniformSpace #2028
  • don't extend UniformSpace.Core so that we can drop refl,
    as it follows from nhds_eq_comap_uniformity;
  • drop UniformSpace.mk' - can't be a match_pattern anymore;
  • deprecate UniformSpace.ofNhdsEqComap.

Open in Gitpod

We had duplicated API between topological spaces and uniform spaces.
In this PR I mostly deduplicate it with some exceptions:

- `SeparationQuotient.lift'` and `SeparationQuotient.map`
  are leftovers from the old version
  that are designed to work with uniform spaces;
- probably, some theorems/instances still assume `UniformSpace`
  when `TopologicalSpace` would work.
This is an abbreviation for `Filter.lim`
that deduces `Nonempty` from `Cauchy`.

Use it to drop unneeded `Nonempty`/`Inhabited` assumptions.
@urkud urkud added awaiting-review The author would like community review of the PR awaiting-CI labels Mar 11, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Mar 11, 2024
Copy link
Contributor

@sgouezel sgouezel left a comment

Choose a reason for hiding this comment

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

bors d+
Thanks for doing this!

Mathlib/Topology/UniformSpace/Basic.lean Outdated Show resolved Hide resolved
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 18, 2024

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

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Mar 18, 2024
@urkud
Copy link
Member Author

urkud commented Mar 20, 2024

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Mar 20, 2024
mathlib-bors bot pushed a commit that referenced this pull request Mar 20, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 20, 2024

Build failed (retrying...):

mathlib-bors bot pushed a commit that referenced this pull request Mar 20, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 20, 2024

Build failed:

@urkud
Copy link
Member Author

urkud commented Mar 20, 2024

bors merge

mathlib-bors bot pushed a commit that referenced this pull request Mar 20, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 20, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor(UniformSpace): change the definition [Merged by Bors] - refactor(UniformSpace): change the definition Mar 20, 2024
@mathlib-bors mathlib-bors bot closed this Mar 20, 2024
@mathlib-bors mathlib-bors bot deleted the YK-uniform-defs branch March 20, 2024 13:56
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
utensil pushed a commit that referenced this pull request Mar 26, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
Louddy pushed a commit that referenced this pull request Apr 15, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
callesonne pushed a commit that referenced this pull request Apr 22, 2024
- replace `isOpen_uniformity` with `nhds_eq_comap_uniformity`
  as I suggested in #2028
- don't extend `UniformSpace.Core` so that we can drop `refl`,
  as it follows from `nhds_eq_comap_uniformity`;
- drop `UniformSpace.mk'` - can't be a `match_pattern` anymore;
- deprecate `UniformSpace.ofNhdsEqComap`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated 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.

None yet

3 participants