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(order/topology/filter): define topology on filter X #17219

Closed
wants to merge 40 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Oct 28, 2022

@mathlib-dependent-issues-bot mathlib-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Oct 28, 2022
Copy link
Member

@PatrickMassot PatrickMassot left a comment

Choose a reason for hiding this comment

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

It would be nice to refactor stone_cech.lean to avoid code duplication with the new file, but this can be left to a future PR.
bors d+

src/topology/filter.lean Outdated Show resolved Hide resolved
src/topology/filter.lean Show resolved Hide resolved
@bors
Copy link

bors bot commented Oct 28, 2022

✌️ 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-bot-assistant leanprover-community-bot-assistant added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Oct 28, 2022
@PatrickMassot PatrickMassot added awaiting-author A reviewer has asked the author a question or requested changes and removed delegated The PR author may merge after reviewing final suggestions. labels Oct 28, 2022
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Oct 28, 2022
@mathlib-dependent-issues-bot
Copy link
Collaborator

This PR/issue depends on:

Co-authored-by: Patrick Massot <patrickmassot@free.fr>
@urkud
Copy link
Member Author

urkud commented Oct 28, 2022

@PatrickMassot According to github, you've delegated this PR, then removed the delegated label. Was it intentional?

@urkud urkud 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 Oct 28, 2022
src/topology/filter.lean Outdated Show resolved Hide resolved

This topology has the following important properties.

* If `X` is a topological space, then the map `𝓝 : X → filter X` is a topology inducing map.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder what relationship this topology has to Cauchy.uniform_space; we have Cauchy.dense_inducing_pure_cauchy but that's for the pure filter, not neighborhood filter.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know. IMHO, we can look at this after merging this PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Even though the relationship with Cauchy.uniform_space is still unclear, ultrafilter.topological_space is just the subspace topology inherited from the topology in this PR.

Co-authored-by: Junyan Xu <junyanxumath@gmail.com>

This topology has the following important properties.

* If `X` is a topological space, then the map `𝓝 : X → filter X` is a topology inducing map.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good!

Comment on lines 77 to 79
lemma is_open_generate_from_inter_closed {g : set (set α)} (hg : ∀ s t ∈ g, s ∩ t ∈ g)
(hU : (⋃₀ g) = univ) {s} :
@is_open _ (generate_from g) s ↔ ∃ S ⊆ g, s = ⋃₀ S :=
Copy link
Collaborator

Choose a reason for hiding this comment

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

The assumption hU is topological_space.is_topological_basis.sUnion_eq and hg is stronger than exists_subset_inter, and the conclusion still holds if you replace hg by exists_subset_inter: we have topological_space.is_topological_basis.open_eq_sUnion. Maybe you could use that or we should do some refactor?

(BTW hg is also satisfied by basic opens in the prime spectrum of a commutative ring with the Zariski topology: we have prime_spectrum.basic_open_mul and prime_spectrum.is_topological_basis_basic_opens.)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess if you do letI := generate_from g then you can prove this lemma using topological_space.is_topological_basis.open_eq_sUnion easily. In your use case (is_open_iff) you don't even need letI. So I think you can just delete this lemma and use that in is_open_iff.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added is_topological_basis.open_iff_eq_sUnion and deleted my lemma. Thanks!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks! I have no more suggestions or objections, and you already got the delegation, so feel free to merge. But could you add the reference(s) you use, maybe in a future PR, because for example I'm curious to learn more about this topology but couldn't find anything relevant from a brief web search.

Copy link
Member Author

@urkud urkud Nov 1, 2022

Choose a reason for hiding this comment

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

I didn't use any reference. My goal was to have a topology such that nhds is continuous and tendsto nhds at_top (nhds at_top). AFAIR, I asked on Zulip and someone suggested to generate the topology by {l | s ∈ l}.

@PatrickMassot
Copy link
Member

@PatrickMassot According to github, you've delegated this PR, then removed the delegated label. Was it intentional?

No it wasn't. I guess there was a race condition between me and bors.

@urkud urkud added the delegated The PR author may merge after reviewing final suggestions. label Oct 31, 2022
@urkud
Copy link
Member Author

urkud commented Nov 2, 2022

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 Nov 2, 2022
@bors
Copy link

bors bot commented Nov 2, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(order/topology/filter): define topology on filter X [Merged by Bors] - feat(order/topology/filter): define topology on filter X Nov 2, 2022
@bors bors bot closed this Nov 2, 2022
@bors bors bot deleted the YK-filter-topology branch November 2, 2022 23:27
@eric-wieser eric-wieser added the hacktoberfest-accepted Without this label hacktoberfest is scared off by bors label Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. hacktoberfest-accepted Without this label hacktoberfest is scared off by bors ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-topology Topological spaces, uniform spaces, metric spaces, filters
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants