-
Notifications
You must be signed in to change notification settings - Fork 444
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
feat: add missing theorems for + 1
and - 1
normal form
#4242
feat: add missing theorems for + 1
and - 1
normal form
#4242
Conversation
This comment will track theorems involving Init.PreludeI don't think the corresponding
Init.Data.Nat.Basic
Init.Data.Nat.Lemmas
Init.Data.Nat.Bitwise
Init.Data.Nat.Div
Init.Data.Nat.Gcd
Init.Data.Nat.Mod
|
Mathlib CI status (docs):
|
6775c5b
to
757ddd3
Compare
n + 1
normal formn + 1
and n - 1
normal form
n + 1
and n - 1
normal form+ 1
and - 1
normal form
I think I've covered everything in Init.Data.Nat with a few exceptions. CI keeps failing, is this because I changed to doc-string for |
There are four test failures, and they are caused by this PR. Have a go at fixing them, please, but feel free to ping if you get stuck. |
For such a potentially disruptive change, we'll also need a successful Mathlib build. You can push changes to the |
I think I understand what is happening.
I changed the doc-string of Is my change to the doc-string good? Should I revert to the prior doc-string? Or do you have a better suggestion? If the doc-string is good, I would just copy-paste the output as it currently is produced into |
7c0c201
to
4e66964
Compare
I fixed some failing tests. Keeping the doc-string as is and changing the tests. The remaining failures also show up in PR #4263, so I wait until they are resolved there, in the hopes it will resolve them here as well. |
I'm not sure what you mean, lean-pr-testing-4242 shows the diff at the bottom. Do you want me to create a Mathlib PR? The only meaningful change is the one in |
That link is all I was looking for. Sorry, could have made it myself! |
Would you mind clicking resolve on conversations above that you're sure have been resolved satisfactorily? |
Okay, I think I am mostly happy. It would be great if you could get a Or at least assure me that once this lands, merging |
Nat.add_one_pos already exists in Mathlib, I created the same theorem in core with the name |
Let's go with the |
Everything is green. What's next? |
Sorry, I'd lost track of this one. Reviewing again now. (I ran into problems where this PR would have helped, and was surprised it hadn't landed, oops!) |
Nat.succ_eq_add_one
andNat.pred_eq_sub_one
are now simp lemmas. For theorems aboutNat.succ
orNat.pred
without corresponding theorem for+ 1
or- 1
, this adds the corresponding theorem.