Repository navigation
[Merged by Bors] - refactor(Order/CompleteLatticeIntervals): redefine sSup and sInf - #37082
astrainfinita wants to merge 8 commits into
Conversation
…or `sSup` and `sInf` In a subsequent PR, some assumptions will be added to `ordConnectedSubsetConditionallyCompleteLinearOrderOfBotTop`.
PR summary 83ba96b6b6Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
Can you explain the motivation for this more in the PR comment? |
|
As discussed on Zulip, could we instead make |
|
Currently, the lemmas for |
|
Removed awaiting-author, see Zulip. |
|
Is this supposed to be |
|
This pull request has conflicts, please merge |
sSup and sInfsSup and sInf
sSup and sInfsSup and sInf
YaelDillies
left a comment
There was a problem hiding this comment.
Are subsetSupSet/subsetInfSet even useful now?
| rintro - ⟨y, -, rfl⟩ | ||
| exact y.2 | ||
| exact (@subset_sSup_of_within ℝ (Set.Ici (0 : ℝ)) _ _ (_) s hs H A).symm | ||
| · exact @Set.OrdConnected.coe_sSup ℝ (Set.Ici 0) _ (_) _ s hs H |
There was a problem hiding this comment.
Can you explain this use of @? Same below
There was a problem hiding this comment.
The instance for NNReal is defined using the one for Nonneg, which in turn uses Set.OrdConnected.conditionallyCompleteLinearOrder. @ was already used in these proofs.
I haven't thought through how best to handle this. Perhaps we should take an injective function as an argument instead of working directly with sets. That seems orthogonal to this PR.
There was a problem hiding this comment.
Oh, is the issue that NNReal is semireducible?
There was a problem hiding this comment.
It might also be because the lemma takes an Inhabited instance parameter, while Nonneg.conditionallyCompleteLinearOrder introduces one locally.
There was a problem hiding this comment.
I tried making Inhabited s an implicit parameter, and that removed the need for @, but it might not be the right fix.
There was a problem hiding this comment.
Oh nice! But yeah let's punt this to a later PR
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks! 🚀
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
vihdzp
left a comment
There was a problem hiding this comment.
I agree that putting the deprecations at the bottom is a bit confusing, but otherwise LGTM.
|
Thanks! |
…37082) This PR introduces `OrderSupSet.chooseBot` and `OrderInfSet.chooseTop`. Unlike `OrderSupSet.choose d`, which returns `d` whenever a least upper bound does not exist, `OrderSupSet.chooseBot d` returns the bottom element in this case, and `d` only if there is no bottom element either. Thus it satisfies the requirements of `ConditionallyCompleteLinearOrder` on junk values. The `ConditionallyCompleteLinearOrder` instance on `OrdConnected` sets is redefined using them, and the new instance satisfies `OrderSupSet` and `OrderInfSet`. This is needed for #35674.
|
Pull request successfully merged into master. Build succeeded: |
sSup and sInfsSup and sInf
This PR introduces
OrderSupSet.chooseBotandOrderInfSet.chooseTop. UnlikeOrderSupSet.choose d, which returnsdwhenever a least upper bound does not exist,OrderSupSet.chooseBot dreturns the bottom element in this case, anddonly if there is no bottom element either. Thus it satisfies the requirements ofConditionallyCompleteLinearOrderon junk values.The
ConditionallyCompleteLinearOrderinstance onOrdConnectedsets is redefined using them, and the new instance satisfiesOrderSupSetandOrderInfSet. This is needed for #35674.