Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - feat(analysis/locally_convex): locally convex hausdorff spaces #17937

Closed
wants to merge 19 commits into from

Conversation

LukasMias
Copy link
Collaborator

Adds that locally convex spaces whose topology is induced by a family of seminorms are Hausdorff iff the family of seminorms is separating, together with some helper lemmas. Closes issue #15565.


Open in Gitpod

@LukasMias LukasMias added awaiting-review The author would like community review of the PR t-topology Topological spaces, uniform spaces, metric spaces, filters labels Dec 14, 2022
Copy link
Member

@mcdoll mcdoll left a comment

Choose a reason for hiding this comment

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

I've made some stylistic comments, I will have a proper look tomorrow.

src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
@mcdoll mcdoll added the t-analysis Analysis (normed *, calculus) label Dec 14, 2022
@LukasMias LukasMias self-assigned this Dec 14, 2022
@LukasMias LukasMias linked an issue Dec 14, 2022 that may be closed by this pull request
Remove double arguments, should now pass linter
Make first implication of t2_iff_separating into a shorter, direct proof
@LukasMias
Copy link
Collaborator Author

Realized that both implications of t2_iff_separating can probably be made into direct proofs. Only have the time to do this for the first implication now (and it's a bit sloppy still with a very long simp only), but planning to remedy this later today.

Copy link
Member

@mcdoll mcdoll left a comment

Choose a reason for hiding this comment

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

Second round.

I agree that you should split the theorem in two version (you can still have a iff version if you want). For the t2_space → .. direction t2_space should obviously be an instance.

src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
@mcdoll mcdoll added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Dec 15, 2022
Split up iff into two implications; make proofs largely direct
@LukasMias
Copy link
Collaborator Author

Split up the two implications as desired, made the proofs more direct where possible, and implemented @mcdoll's suggestions. Thanks again!

@LukasMias LukasMias added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Dec 15, 2022
Copy link
Member

@mcdoll mcdoll left a comment

Choose a reason for hiding this comment

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

Third round, I think we are getting close

src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/seminorm.lean Outdated Show resolved Hide resolved
src/analysis/seminorm.lean Outdated Show resolved Hide resolved
@mcdoll mcdoll added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Dec 15, 2022
@LukasMias
Copy link
Collaborator Author

Thanks once again, learning some more style details with every review :)

@LukasMias LukasMias added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Dec 15, 2022
Copy link
Member

@mcdoll mcdoll left a comment

Choose a reason for hiding this comment

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

Some more suggestions.

I am always happy to see new people contribute to the analysis part of mathlib.

src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
@mcdoll mcdoll added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Dec 15, 2022
@LukasMias LukasMias added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Dec 15, 2022
src/analysis/seminorm.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/seminorm.lean Outdated Show resolved Hide resolved
Copy link
Member

@ADedecker ADedecker left a comment

Choose a reason for hiding this comment

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

Congratulations for your first PR! 🎉

I don't have a lot to add about the "technicalities of Lean" side, your code looks really good, so I added suggestions on how to use the existing API more efficiently. You don't have to adopt all of them, but I think this is a great way to get familiar with Mathlib so I wanted to at least explain how to make your life easier.

Basically, the key mathematical point that can make your life easier is that spaces satisfying with_seminorms are topological groups, and we have a ton of general facts about topological groups in mathlib. Most interesting for you is the fact that a topological group is T2 if and only if {0} is closed, and you can probably see why this makes things much easier!

Note: Unfortunately, we don't have the lemma saying that with_seminorms imply topological_add_group yet, but you should add it. I used the following in my suggestions:

lemma with_seminorms.topological_add_group (hp : with_seminorms p) : topological_add_group E :=
begin
  rw hp.with_seminorms_eq,
  exact add_group_filter_basis.is_topological_add_group _
end

src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
Copy link
Member

@mcdoll mcdoll left a comment

Choose a reason for hiding this comment

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

I think this looks very good, but now we might want to change everything from t1 to t2.

src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
src/analysis/locally_convex/with_seminorms.lean Outdated Show resolved Hide resolved
@mcdoll
Copy link
Member

mcdoll commented Dec 19, 2022

maintainer merge

@github-actions
Copy link

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

@PatrickMassot
Copy link
Member

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Dec 19, 2022
bors bot pushed a commit that referenced this pull request Dec 19, 2022
Adds that locally convex spaces whose topology is induced by a family of seminorms are Hausdorff iff the family of seminorms is separating, together with some helper lemmas. Closes issue #15565.



Co-authored-by: Lukas Miaskiwskyi <[email protected]>
@bors
Copy link

bors bot commented Dec 19, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(analysis/locally_convex): locally convex hausdorff spaces [Merged by Bors] - feat(analysis/locally_convex): locally convex hausdorff spaces Dec 19, 2022
@bors bors bot closed this Dec 19, 2022
@bors bors bot deleted the with_seminorms_hausdorff branch December 19, 2022 02:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-analysis Analysis (normed *, calculus) t-topology Topological spaces, uniform spaces, metric spaces, filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Locally convex Hausdorff spaces
5 participants