[Merged by Bors] - feat(SetTheory): regular cardinals have a least element#21780
[Merged by Bors] - feat(SetTheory): regular cardinals have a least element#21780
Conversation
PR summary b5510cc486Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
|
|
I am not certain - Joël can correct me - but I think this is a case where remaining in the same universe is important, since the definition of (co)limits in a category does need to be specific about its universe levels. (If I'm mistaken however, and we don't need to stay in the same universe, then I agree Iio could be better). |
|
Indeed, Bhavik is right. In my application, I have an auxiliary universe parameter |
Mathlib/SetTheory/Ordinal/Basic.lean
Outdated
| exact ⟨⟨c.out, lift_mk_eq.{u, _, v + 1}.1 (hc.trans (congr rfl c.mk_out.symm))⟩⟩ | ||
|
|
||
| /-- If a cardinal `c` is non zero, then `c.ord.toType` has a least element. -/ | ||
| noncomputable def orderBotToType (c : Cardinal) (hc : c ≠ 0) : |
There was a problem hiding this comment.
This should match Ordinal.toTypeOrderBotOfPos in both name and arguments. Though, I wouldn't mind changing the latter into this, since its current name is more unwieldy and it's slightly easier to get x ≠ 0 than 0 < x (particularly now that we don't yet have a CanonicallyOrderedAdd instance for Ordinal).
There was a problem hiding this comment.
Yeah, I think taking in the != 0 argument is better in both cases.
To me orderBotToType is a slightly better name, it certainly matches the symbol read of the statement. Would you mind adjusting Ordinal.toTypeOrderBotOfPos closer to the name here?
There was a problem hiding this comment.
I have deprecated Ordinal.toTypeOrderBotOfPos, and I think the new definition may just be named Ordinal.toTypeOrderBot.
|
bors d+ |
|
✌️ joelriou can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: Bhavik Mehta <bhavikmehta8@gmail.com>
|
Thanks! bors merge |
`Ordinal.toTypeOrderBotOfPos` is deprecated in favour of a new definition `Ordinal.toTypeOrderBotOfPos` which takes an assumption `o ≠ 0`. A similar definition is introduced for cardinals, and a lemma `Cardinal.IsRegular.ne_zero` is added. As a result, if `c` is a regular cardinal, then `c.ord.toType` has a least element. Co-authored-by: Joël Riou <37772949+joelriou@users.noreply.github.com>
|
Pull request successfully merged into master. Build succeeded: |
Ordinal.toTypeOrderBotOfPosis deprecated in favour of a new definitionOrdinal.toTypeOrderBotOfPoswhich takes an assumptiono ≠ 0. A similar definition is introduced for cardinals, and a lemmaCardinal.IsRegular.ne_zerois added. As a result, ifcis a regular cardinal, thenc.ord.toTypehas a least element.