Repository navigation
[Merged by Bors] - feat(Order/ConditionallyCompleteLattice/WithTop): OrderSupSet instances on WithTop - #45406
astrainfinita wants to merge 14 commits into
Conversation
…hTop` This PR moves the material on `sSup` and `sInf` on `WithTop α` and `WithBot α` from `Order/ConditionallyCompleteLattice/Basic` and `Order/ConditionallyCompleteLattice/Indexed` to a new file `Order/ConditionallyCompleteLattice/WithTop`. This material was scattered over five places in the two files, although the rest of these files does not depend on it.
…nces on `WithTop` Adds `OrderSupSet (WithTop α)` and `OrderInfSet (WithTop α)` instances (and their `WithBot` duals), and cleans up the API for `sSup` and `sInf` on `WithTop`.
PR summary 57ad922567Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (weak) |
|---|---|---|
| 5145 | -1 | exposed public sections |
Current commit 57ad922567
Reference commit 5216ddb526
This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
vihdzp
left a comment
There was a problem hiding this comment.
Went through the diff, looks good to me :) Much cleaner proofs.
|
This PR/issue depends on: |
|
This pull request has conflicts, please merge |
| simp [h] | ||
| · exact (WithTop.isLUB_sSup' h).2 ha⟩ | ||
| isGLB_sInf S := ⟨fun a haS ↦ | ||
| isGLB_sInf S := private ⟨fun a haS ↦ |
There was a problem hiding this comment.
Why is the private attribute needed?
There was a problem hiding this comment.
The InfSet instance is now marked as @[no_expose]. Its definition is no longer unfoldable across modules.
| end LE | ||
|
|
||
| @[to_dual] | ||
| theorem isCompl_range_coe : IsCompl (range ((↑) : α → WithTop α)) {⊤} := |
There was a problem hiding this comment.
This doesn't seem to belong here. Can we move this to an earlier file?
There was a problem hiding this comment.
I couldn't find a better place for this.
There was a problem hiding this comment.
This belongs in the file defining the order on WithTop. Do you get issues if you import Set.range and the lattice structure on Set there? At any rate, you could at least move this lemma to the top of the file instead of stranding it in the middle!
There was a problem hiding this comment.
Putting it in Order/WithBot.lean would add these imports:
public import Mathlib.Order.BooleanAlgebra.Set
public import Mathlib.Order.Disjoint
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks!
maintainer delegate
| @[to_dual] | ||
| theorem isCompl_range_coe : IsCompl (range ((↑) : α → WithTop α)) {⊤} := | ||
| eq_compl_iff_isCompl.1 <| Set.ext fun _ ↦ ne_top_iff_exists.symm |
There was a problem hiding this comment.
Can you add a comment that this lemma is out of place?
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
|
LGTM bors d+ |
|
✌️ astrainfinita can now approve this pull request until 2026-12-01 21:55 UTC (in 2 weeks). To approve and merge, reply with
|
|
bors r+ |
…nces on `WithTop` (#45406) Adds `OrderSupSet (WithTop α)` and `OrderInfSet (WithTop α)` instances (and their `WithBot` duals), and cleans up the API for `sSup` and `sInf` on `WithTop`.
|
Pull request successfully merged into master. Build succeeded: |
OrderSupSet instances on WithTopOrderSupSet instances on WithTop
Adds
OrderSupSet (WithTop α)andOrderInfSet (WithTop α)instances (and theirWithBotduals), and cleans up the API forsSupandsInfonWithTop.WithTop#45402