Repository navigation
[Merged by Bors] - refactor: use OrderSupSet in ConditionallyCompleteLattice - #35674
astrainfinita wants to merge 95 commits into
Conversation
PR summary fedbc4bb12
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Algebra.Tropical.Lattice | 446 | 447 | +1 (+0.22%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.Algebra.Tropical.Lattice |
1 |
Declarations diff (regex)
+ IsLUB.iSup_set_eq
+ exists_isBot_iff_isBot_sSup_empty
+ instance : NoMaxOrder ℤ := ⟨fun x ↦ ⟨x.succ, Int.lt_succ_self _⟩⟩
+ instance : NoMinOrder ℤ := ⟨fun x ↦ ⟨x.pred, Int.pred_self_lt _⟩⟩
+ instance [ConditionallyCompleteLattice R] : ConditionallyCompleteLattice (MinTropical R)
+ instance [Preorder R] [OrderInfSet R] : OrderInfSet (MinTropical R)
+ instance [Preorder R] [OrderSupSet R] : OrderSupSet (MinTropical R)
- instance [ConditionallyCompleteLattice R] :
You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.
Declarations diff (Lean)
✅ Lean-aware diff — post-build, computed from the Lean environment (commit
fedbc4b).
- +17 new declarations
- −6 removed declarations
+ConditionallyCompleteLattice.exists_isGLB_of_nonempty_bddBelow
+ConditionallyCompleteLattice.exists_isLUB_of_nonempty_bddAbove
-ConditionallyCompleteLattice.isGLB_csInf
-ConditionallyCompleteLattice.isLUB_csSup
-ConditionallyCompleteLattice.toInfSet
+ConditionallyCompleteLattice.toOrderInfSet
+ConditionallyCompleteLattice.toOrderSupSet
-ConditionallyCompleteLattice.toSupSet
-ConditionallyCompleteLinearOrderBot.csSup_empty
+Int.instNoMaxOrder
+Int.instNoMinOrder
+IsGLB.iInf_set_eq
+IsLUB.iSup_set_eq
+MaxTropical.instOrderInfSet
+MaxTropical.instOrderSupSet
+MinTropical.instOrderInfSet
+MinTropical.instOrderSupSet
+Order.IsPredLimit.iInf_Ioi
+Order.IsPredPrelimit.iInf_Ioi
+Order.IsPredPrelimit.sInf_Ioi
-WellFoundedLT.min.congr_simp
+exists_isBot_iff_isBot_sSup_empty
+exists_isTop_iff_isTop_sInf_emptyNo changes to strong technical debt.
No changes to weak technical debt.
Current commit fedbc4bb12
Reference commit c40b024c1b
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).
|
This pull request has conflicts, please merge |
cd4c3fc to
a43e0d5
Compare
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks!
maintainer delegate
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
j-loreaux
left a comment
There was a problem hiding this comment.
Thanks! I'm glad to see we're making progress on this refactor.
bors merge
Refactor `ConditionallyCompleteLattice` to extend `OrderSupSet` and `OrderInfSet` instead of `SupSet` and `InfSet`, and drop the now-redundant `csSup_empty` field from `ConditionallyCompleteLinearOrderBot`. `OrderSupSet` implies `sSup ∅ = ⊥`, so we no longer need some nonemptiness assumptions. Also add shortcut instances `NoBotOrder ℤ` and `NoTopOrder ℤ` for `ConditionallyCompleteLinearOrder ℤ`. The cleanup of `ConditionallyCompleteLinearOrderBot` API is split into #45436 and #45438, and the typeclass itself will be deprecated in #45438.
|
Pull request successfully merged into master. Build succeeded:
|
OrderSupSet in ConditionallyCompleteLatticeOrderSupSet in ConditionallyCompleteLattice
…over-community#35674) Refactor `ConditionallyCompleteLattice` to extend `OrderSupSet` and `OrderInfSet` instead of `SupSet` and `InfSet`, and drop the now-redundant `csSup_empty` field from `ConditionallyCompleteLinearOrderBot`. `OrderSupSet` implies `sSup ∅ = ⊥`, so we no longer need some nonemptiness assumptions. Also add shortcut instances `NoBotOrder ℤ` and `NoTopOrder ℤ` for `ConditionallyCompleteLinearOrder ℤ`. The cleanup of `ConditionallyCompleteLinearOrderBot` API is split into leanprover-community#45436 and leanprover-community#45438, and the typeclass itself will be deprecated in leanprover-community#45438.
Refactor
ConditionallyCompleteLatticeto extendOrderSupSetandOrderInfSetinstead ofSupSetandInfSet, and drop the now-redundantcsSup_emptyfield fromConditionallyCompleteLinearOrderBot.OrderSupSetimpliessSup ∅ = ⊥, so we no longer need some nonemptiness assumptions.Also add shortcut instances
NoBotOrder ℤandNoTopOrder ℤforConditionallyCompleteLinearOrder ℤ.The cleanup of
ConditionallyCompleteLinearOrderBotAPI is split into #45436 and #45438, and the typeclass itself will be deprecated in #45438.IsLUBIsGLBinConditionallyCompleteLattice#35774SemilatticeSup.ofIsLUB,Lattice.ofIsLUBofIsGLB#37079sSupandsInf#37082OrderSupSet#38328OrderSupSetinstances onWithTop#45406Zulip