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(Data/Set/Intervals/Disjoint): i[Inter|Union]_Ii[c|o]... #10298

Closed
wants to merge 6 commits into from

Conversation

mo271
Copy link
Collaborator

@mo271 mo271 commented Feb 6, 2024


Open in Gitpod

@mo271
Copy link
Collaborator Author

mo271 commented Feb 6, 2024

This prepares removing some lemmas from Probability/Kernel/CondCdf. Zulip discussion

@mo271 mo271 added awaiting-review The author would like community review of the PR awaiting-CI labels Feb 6, 2024
@@ -253,4 +255,26 @@ theorem iUnion_Iic_eq_Iic_iSup {R : Type*} [CompleteLinearOrder R] {f : ι → R
@iUnion_Ici_eq_Ici_iInf ι (OrderDual R) _ f has_greatest_elem
#align Union_Iic_eq_Iic_supr iUnion_Iic_eq_Iic_iSup

theorem iUnion_Iio_of_not_bddAbove_range (hf : ¬ BddAbove (range f)) :
Copy link
Member

Choose a reason for hiding this comment

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

Please add order-dual versions (probably using the OrderDual trick).

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I thought the version below, now renamed iUnion_Iio_eq_univ_iff and iInter_Iio_eq_empty_iff are duals of each other. Do you mean some other sort of dual statement? If yes, which one?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ping @urkud

@@ -253,4 +255,26 @@ theorem iUnion_Iic_eq_Iic_iSup {R : Type*} [CompleteLinearOrder R] {f : ι → R
@iUnion_Ici_eq_Ici_iInf ι (OrderDual R) _ f has_greatest_elem
#align Union_Iic_eq_Iic_supr iUnion_Iic_eq_Iic_iSup

theorem iUnion_Iio_of_not_bddAbove_range (hf : ¬ BddAbove (range f)) :
⋃ i, Iio (f i) = univ := by
simpa [not_bddAbove_iff, Set.eq_univ_iff_forall] using hf
Copy link
Member

Choose a reason for hiding this comment

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

simpa says that it can be an iff lemma.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Made it an iff lemma.
Is the name good like this?

@urkud urkud added awaiting-author A reviewer has asked the author a question or requested changes t-order Order hierarchy and removed awaiting-review The author would like community review of the PR labels Feb 11, 2024
@mo271 mo271 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 12, 2024
@RemyDegenne RemyDegenne requested a review from urkud March 25, 2024 09:50
Copy link
Contributor

@RemyDegenne RemyDegenne left a comment

Choose a reason for hiding this comment

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

I just have comments about the names, to make them match the other lemmas you introduce. Apart from that, LGTM.
bors d+

Mathlib/Data/Set/Intervals/Disjoint.lean Outdated Show resolved Hide resolved
Mathlib/Data/Set/Intervals/Disjoint.lean Outdated Show resolved Hide resolved
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 26, 2024

✌️ mo271 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-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Mar 26, 2024
@mo271
Copy link
Collaborator Author

mo271 commented Mar 26, 2024

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 26, 2024
Co-authored-by: Moritz Firsching <firsching@google.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 26, 2024

Build failed (retrying...):

@mo271
Copy link
Collaborator Author

mo271 commented Mar 26, 2024

will fix the build...

@mathlib-bors
Copy link

mathlib-bors bot commented Mar 26, 2024

Canceled.

@mo271
Copy link
Collaborator Author

mo271 commented Mar 26, 2024

fixed the name and rebased

@mo271
Copy link
Collaborator Author

mo271 commented Mar 26, 2024

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Mar 26, 2024
Co-authored-by: Moritz Firsching <firsching@google.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Mar 26, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat(Data/Set/Intervals/Disjoint): i[Inter|Union]_Ii[c|o]... [Merged by Bors] - feat(Data/Set/Intervals/Disjoint): i[Inter|Union]_Ii[c|o]... Mar 26, 2024
@mathlib-bors mathlib-bors bot closed this Mar 26, 2024
@mathlib-bors mathlib-bors bot deleted the mo271/union_inter_bdd branch March 26, 2024 16:32
mathlib-bors bot pushed a commit that referenced this pull request Mar 27, 2024
- [x] depends on: #10298 


Co-authored-by: Moritz Firsching <firsching@google.com>
Louddy pushed a commit that referenced this pull request Apr 15, 2024
Co-authored-by: Moritz Firsching <firsching@google.com>
Louddy pushed a commit that referenced this pull request Apr 15, 2024
- [x] depends on: #10298 


Co-authored-by: Moritz Firsching <firsching@google.com>
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
Co-authored-by: Moritz Firsching <firsching@google.com>
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
- [x] depends on: #10298 


Co-authored-by: Moritz Firsching <firsching@google.com>
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
Co-authored-by: Moritz Firsching <firsching@google.com>
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
- [x] depends on: #10298 


Co-authored-by: Moritz Firsching <firsching@google.com>
callesonne pushed a commit that referenced this pull request Apr 22, 2024
Co-authored-by: Moritz Firsching <firsching@google.com>
callesonne pushed a commit that referenced this pull request Apr 22, 2024
- [x] depends on: #10298 


Co-authored-by: Moritz Firsching <firsching@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated t-order Order hierarchy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants