-
Notifications
You must be signed in to change notification settings - Fork 298
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/locally_finite): add lemmas about option _
and sum _ _
#15923
Conversation
urkud
commented
Aug 7, 2022
@@ -594,6 +594,11 @@ theorem finite_mem_finset (s : finset α) : {a | a ∈ s}.finite := to_finite _ | |||
lemma subsingleton.finite {s : set α} (h : s.subsingleton) : s.finite := | |||
h.induction_on finite_empty finite_singleton | |||
|
|||
lemma finite_preimage_inl_and_inr {s : set (α ⊕ β)} : | |||
(sum.inl ⁻¹' s).finite ∧ (sum.inr ⁻¹' s).finite ↔ s.finite := |
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.
Do you think this should be called finite_sum
instead, to match locally_finite_sum
below?
Also, do we have the option version already?
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.
Then we should swap LHS with RHS. I'm not sure that we have an established naming (or LHS/RHS) convention for this kind of lemmas. I can start a topic on Zulip after ITP.
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.
Sorry, I meant to include "swap sides" in that comment.
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.
What is the status here?
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 got covid and didn't start the discussion on Zulip.
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
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.
LGTM, but there is an ongoing discussion.
@@ -594,6 +594,11 @@ theorem finite_mem_finset (s : finset α) : {a | a ∈ s}.finite := to_finite _ | |||
lemma subsingleton.finite {s : set α} (h : s.subsingleton) : s.finite := | |||
h.induction_on finite_empty finite_singleton | |||
|
|||
lemma finite_preimage_inl_and_inr {s : set (α ⊕ β)} : | |||
(sum.inl ⁻¹' s).finite ∧ (sum.inr ⁻¹' s).finite ↔ s.finite := |
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.
What is the status here?
There was a discussion that was supposed to take place on Zulip, but it appears it never happened. While it is slightly related to the PR, I don't think it's necessary to keep it on the queue for this reason, especially since the discussion never started. maintainer merge |
maintainer merge |
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.
Thanks 🎉
bors merge
maintainer merge |
🚀 Pull request has been placed on the maintainer queue by j-loreaux. |
… _` (#15923) Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
Pull request successfully merged into master. Build succeeded: |
option _
and sum _ _
option _
and sum _ _