-
Notifications
You must be signed in to change notification settings - Fork 298
[Merged by Bors] - feat(analysis/locally_convex): locally convex hausdorff spaces #17937
Conversation
Shorten all lines to less than 100 chars to pass linter.
There was a problem hiding this 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.
Implemented stylistic suggestions from Moritz Doll.
… with_seminorms_hausdorff
Remove double arguments, should now pass linter
Make first implication of t2_iff_separating into a shorter, direct proof
Realized that both implications of |
There was a problem hiding this 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.
Split up iff into two implications; make proofs largely direct
Split up the two implications as desired, made the proofs more direct where possible, and implemented @mcdoll's suggestions. Thanks again! |
There was a problem hiding this 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
Co-authored-by: Moritz Doll <[email protected]>
Thanks once again, learning some more style details with every review :) |
There was a problem hiding this 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.
Co-authored-by: Moritz Doll <[email protected]>
…unity/mathlib into with_seminorms_hausdorff
There was a problem hiding this 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
Co-authored-by: Yaël Dillies <[email protected]> Co-authored-by: Anatole Dedecker <[email protected]>
There was a problem hiding this 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.
maintainer merge |
🚀 Pull request has been placed on the maintainer queue by mcdoll. |
bors merge |
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]>
Pull request successfully merged into master. Build succeeded: |
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.