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(topology/algebra/group): added (right/left)_coset_(open/closed) #11876

Closed
wants to merge 6 commits into from

Conversation

Sebastian-Monnet
Copy link
Collaborator

Added lemmas saying that, in a topological group, cosets of an open (resp. closed) set are open (resp. closed).


Open in Gitpod

@Sebastian-Monnet Sebastian-Monnet added the awaiting-review The author would like community review of the PR label Feb 6, 2022
@ocfnash ocfnash 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 Feb 9, 2022
@Sebastian-Monnet Sebastian-Monnet 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 Feb 10, 2022
Copy link
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -67,10 +67,18 @@ by { ext, refl }
lemma is_open_map_mul_left (a : G) : is_open_map (λ x, a * x) :=
(homeomorph.mul_left a).is_open_map

@[to_additive is_open.left_add_coset]
lemma is_open.left_coset {U : set G} (x : G) (h : is_open U) : is_open (left_coset x U) :=
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you need to swap the order of the arguments for dot notation to work:

Suggested change
lemma is_open.left_coset {U : set G} (x : G) (h : is_open U) : is_open (left_coset x U) :=
lemma is_open.left_coset {U : set G} (h : is_open U) (x : G) : is_open (left_coset x U) :=

and likewise with the other lemmas below

Copy link
Member

Choose a reason for hiding this comment

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

Dot notation doesn't care about the argument order here, the original was fine

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it does matter in some situations. For example the following:

example {U : set G} (h : is_open U) : ∀ x, is_open (left_coset x U) := h.left_coset

only works when is_open.left_coset is defined with x following h.

I admit that the ordering does not matter for something of the form:

example {U : set G} (h : is_open U) (x : G) : is_open (left_coset x U) := h.left_coset x

which is likely to be the more typical usage.

I'm happy to be corrected if there's more to it!

Copy link
Collaborator

@ocfnash ocfnash 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 we should swap the argument orders as indicated and then this will be good to go.

Copy link
Collaborator

@ocfnash ocfnash 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 d+

@bors
Copy link

bors bot commented Feb 10, 2022

✌️ Sebastian-Monnet 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 Feb 10, 2022
@ocfnash
Copy link
Collaborator

ocfnash commented Feb 10, 2022

bors merge

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Feb 10, 2022
bors bot pushed a commit that referenced this pull request Feb 11, 2022
…11876)

Added lemmas saying that, in a topological group, cosets of an open (resp. closed) set are open (resp. closed).
@bors
Copy link

bors bot commented Feb 11, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(topology/algebra/group): added (right/left)_coset_(open/closed) [Merged by Bors] - feat(topology/algebra/group): added (right/left)_coset_(open/closed) Feb 11, 2022
@bors bors bot closed this Feb 11, 2022
@bors bors bot deleted the open_cosets branch February 11, 2022 03:14
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. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants