Skip to content

[Merged by Bors] - fix(TopologicalSpace/Basic): restore curly braces in continuous_def#10110

Closed
grunweg wants to merge 6 commits intomasterfrom
MR-fixup-continuous-def
Closed

[Merged by Bors] - fix(TopologicalSpace/Basic): restore curly braces in continuous_def#10110
grunweg wants to merge 6 commits intomasterfrom
MR-fixup-continuous-def

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Jan 29, 2024

These were placed on purpose; reverting them caused breakage downstream.


Follow-up to #9993.

Open in Gitpod

These were placed on purpose; reverting them caused breakage downstream.
@grunweg grunweg added awaiting-review t-topology Topological spaces, uniform spaces, metric spaces, filters labels Jan 29, 2024
@grunweg grunweg added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jan 29, 2024
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jan 29, 2024
Co-authored-by: Junyan Xu <junyanxu.math@gmail.com>
theorem continuous_def : Continuous f ↔ ∀ s, IsOpen s → IsOpen (f ⁻¹' s) :=
-- The curly braces are intentional, so this definitions works well with simp
-- when topologies are not those provided by instances.
theorem continuous_def {_ : TopologicalSpace X} {_ : TopologicalSpace Y} :
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.

I don't know whether this is necessarily the right thing to do (my downstream code does not care one way or the other), but I just wanted to note: to fully revert the change, you would need to re-add the {f : X → Y} parameter here after the TopologicalSpace parameters. Then I think you would not need the other changes in Order.lean.

theorem continuous_def {_ : TopologicalSpace X} {_ : TopologicalSpace Y} {f : X → Y} :
Continuous f ↔ ∀ s, IsOpen s → IsOpen (f ⁻¹' s) :=

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.

Indeed, I think it's better to have f come last.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair point. I have changed the order.

@sgouezel sgouezel added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Feb 9, 2024
@grunweg grunweg added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Feb 10, 2024
@urkud
Copy link
Copy Markdown
Member

urkud commented Feb 11, 2024

I'm sorry for merging #9993 too soon.

@urkud
Copy link
Copy Markdown
Member

urkud commented Feb 12, 2024

bors d=Ruben-VandeVelde

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 12, 2024

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

@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Feb 12, 2024
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Feb 16, 2024

I have incorporated the suggestion and merged master.

@urkud
Copy link
Copy Markdown
Member

urkud commented Feb 16, 2024

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Feb 16, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 16, 2024
…#10110)

These were placed on purpose; reverting them caused breakage downstream.



Co-authored-by: grunweg <grunweg@posteo.de>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Feb 16, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title fix(TopologicalSpace/Basic): restore curly braces in continuous_def [Merged by Bors] - fix(TopologicalSpace/Basic): restore curly braces in continuous_def Feb 16, 2024
@mathlib-bors mathlib-bors bot closed this Feb 16, 2024
@mathlib-bors mathlib-bors bot deleted the MR-fixup-continuous-def branch February 16, 2024 16:10
riccardobrasca pushed a commit that referenced this pull request Feb 18, 2024
…#10110)

These were placed on purpose; reverting them caused breakage downstream.



Co-authored-by: grunweg <grunweg@posteo.de>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
…#10110)

These were placed on purpose; reverting them caused breakage downstream.



Co-authored-by: grunweg <grunweg@posteo.de>
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
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.

6 participants