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] - feat: Exterior of a set #6982

Closed
wants to merge 15 commits into from
Closed

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Sep 6, 2023

In an Alexandrov-discrete space, every set has a smallest neighborhood. We call this neighborhood the exterior of the set. It is completely analogous to the interior, except that all inclusions are reversed.


Open in Gitpod

In an Alexandrov-discrete space, every set has a smallest neighborhood. We call this neighborhood the *exterior* of the set. It is completely analogous to the interior, except that all inclusions are reversed.
@YaelDillies YaelDillies added awaiting-review t-topology Topological spaces, uniform spaces, metric spaces, filters labels Sep 6, 2023
@YaelDillies YaelDillies added the blocked-by-other-PR This PR depends on another PR to Mathlib label Sep 6, 2023
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the blocked-by-other-PR This PR depends on another PR to Mathlib label Sep 6, 2023
@leanprover-community-mathlib4-bot
Copy link
Collaborator

This PR/issue depends on:

Mathlib/Topology/AlexandrovDiscrete.lean Outdated Show resolved Hide resolved
Comment on lines +59 to +60
(interior_maximal (iInter_mono λ _ ↦ interior_subset) $ isOpen_iInter λ _ ↦
isOpen_interior).antisymm' $ subset_iInter λ _ ↦ interior_mono $ iInter_subset _ _
Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty sure that our new convention is to indent the body of all declarations, even in term mode. Also, <| is preferred to $, and fun to λ.

Copy link
Collaborator Author

@YaelDillies YaelDillies Sep 7, 2023

Choose a reason for hiding this comment

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

How is <| preferred over $? This does not appear in the style guide.

This to me looks like a mathportism. Mathport output code which uses <| even though we haven't decided on using it over $.

Copy link
Member

Choose a reason for hiding this comment

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

Well it mentions <| but not $.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not looking for style suggestions, really. Especially when they involve more ASCII art than the alternative.

Copy link
Member

Choose a reason for hiding this comment

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

I'm unresolving this at least for the indentation part, which is clearly stated in the style guide.

Copy link
Member

Choose a reason for hiding this comment

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

Regarding "mathportism", I really don't think that's what's happening here. People have already spent quite some time doing new maths in Lean4, and there's been complains about a lot of things but almost none about this. I can't speak for everyone, but at least I willingly embraced the new style for the most part, and not because it was used by mathport.

Of course that doesn't mean that it's clearly better, but I would say that for now it's better to stick to what's used in the existing human-written codebase, and that means fun and <|.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Then your argument is saying that I can stick to λ and $: λ is used 395 times across 79 files, and $ at least 619 times across 202 files.

Again, I am not looking for style suggestions.

Mathlib/Topology/AlexandrovDiscrete.lean Outdated Show resolved Hide resolved
Mathlib/Topology/AlexandrovDiscrete.lean Outdated Show resolved Hide resolved
Mathlib/Topology/AlexandrovDiscrete.lean Outdated Show resolved Hide resolved
@ADedecker ADedecker added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review labels Sep 7, 2023
@YaelDillies YaelDillies added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes labels Sep 7, 2023
@ADedecker ADedecker added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review labels Sep 7, 2023
@YaelDillies YaelDillies added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes labels Sep 14, 2023
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Sep 14, 2023
bors bot pushed a commit that referenced this pull request Sep 14, 2023
In an Alexandrov-discrete space, every set has a smallest neighborhood. We call this neighborhood the *exterior* of the set. It is completely analogous to the interior, except that all inclusions are reversed.
@bors
Copy link

bors bot commented Sep 14, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: Exterior of a set [Merged by Bors] - feat: Exterior of a set Sep 14, 2023
@bors bors bot closed this Sep 14, 2023
@bors bors bot deleted the exterior branch September 14, 2023 11:42
kodyvajjha pushed a commit that referenced this pull request Sep 22, 2023
In an Alexandrov-discrete space, every set has a smallest neighborhood. We call this neighborhood the *exterior* of the set. It is completely analogous to the interior, except that all inclusions are reversed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

4 participants