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(set_theory/ordinal_arithmetic): Coefficients of Cantor Normal Form #12681

Closed
wants to merge 10 commits into from

Conversation

vihdzp
Copy link
Collaborator

@vihdzp vihdzp commented Mar 14, 2022

We prove all coefficients of the base-b expansion of an ordinal are less than b. We also tweak the parameters of various other theorems.


Open in Gitpod

@vihdzp vihdzp added the awaiting-review The author would like community review of the PR label Mar 14, 2022
@leanprover-community-bot-assistant leanprover-community-bot-assistant added blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. and removed blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. labels Mar 14, 2022
@leanprover-community-bot-assistant
Copy link
Collaborator

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Mar 15, 2022
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Mar 16, 2022
src/set_theory/ordinal_arithmetic.lean Show resolved Hide resolved
src/set_theory/ordinal_arithmetic.lean Outdated Show resolved Hide resolved
src/set_theory/ordinal_arithmetic.lean Outdated Show resolved Hide resolved
src/set_theory/ordinal_arithmetic.lean Outdated Show resolved Hide resolved
@fpvandoorn fpvandoorn added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Mar 28, 2022
@vihdzp vihdzp 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 Mar 29, 2022
@@ -2019,7 +2019,7 @@ by rw [CNF_rec, dif_neg o0]
base-`b` expansion of `o`.

`CNF b (b ^ u₁ * v₁ + b ^ u₂ * v₂) = [(u₁, v₁), (u₂, v₂)]` -/
def CNF (b := omega) (o : ordinal) : list (ordinal × ordinal) :=
def CNF (b o : ordinal) : list (ordinal × ordinal) :=
Copy link
Member

Choose a reason for hiding this comment

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

If you require that b and o have the same universe level in almost every property about CNF, shouldn't you just require it in the definition of CNF?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is required in the definition. But writing p ∈ ordinal × ordinal seems to confuse the kernel, and it ends with all of my lemmas having everything in universe max ?1 ?2 instead of using a single universe. This is why I need the universe annotations.

Copy link
Member

Choose a reason for hiding this comment

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

Oh I see. Yeah, that sometimes happens. Thanks for the clarification!

@fpvandoorn fpvandoorn added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Mar 31, 2022
@fpvandoorn
Copy link
Member

Other than that point, this LGTM.

bors d+

@bors
Copy link

bors bot commented Mar 31, 2022

✌️ vihdzp can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added the delegated The PR author may merge after reviewing final suggestions. label Mar 31, 2022
@vihdzp
Copy link
Collaborator Author

vihdzp commented Apr 1, 2022

bors r+

bors bot pushed a commit that referenced this pull request Apr 1, 2022
…rm (#12681)

We prove all coefficients of the base-b expansion of an ordinal are less than `b`. We also tweak the parameters of various other theorems.
@bors
Copy link

bors bot commented Apr 1, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(set_theory/ordinal_arithmetic): Coefficients of Cantor Normal Form [Merged by Bors] - feat(set_theory/ordinal_arithmetic): Coefficients of Cantor Normal Form Apr 1, 2022
@bors bors bot closed this Apr 1, 2022
@bors bors bot deleted the CNF_lt_snd branch April 1, 2022 20:35
jjaassoonn pushed a commit that referenced this pull request Apr 7, 2022
…rm (#12681)

We prove all coefficients of the base-b expansion of an ordinal are less than `b`. We also tweak the parameters of various other theorems.
jjaassoonn pushed a commit that referenced this pull request Apr 7, 2022
…rm (#12681)

We prove all coefficients of the base-b expansion of an ordinal are less than `b`. We also tweak the parameters of various other theorems.
jjaassoonn pushed a commit that referenced this pull request Apr 7, 2022
…rm (#12681)

We prove all coefficients of the base-b expansion of an ordinal are less than `b`. We also tweak the parameters of various other theorems.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-author A reviewer has asked the author a question or requested changes delegated The PR author may merge after reviewing final suggestions.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants