-
Notifications
You must be signed in to change notification settings - Fork 251
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: port Data.Polynomial.Degree.Lemmas #2723
Conversation
ChrisHughes24
commented
Mar 8, 2023
Mathbin -> Mathlib fix certain import statements move "by" to end of line add import to Mathlib.lean
Mathlib/Data/Nat/WithBot.lean
Outdated
@@ -91,6 +91,10 @@ theorem add_one_le_of_lt {n m : WithBot ℕ} (h : n < m) : n + 1 ≤ m := by | |||
exacts [(not_lt_bot h).elim, WithBot.some_le_some.2 (WithBot.some_lt_some.1 h)] | |||
#align nat.with_bot.add_one_le_of_lt Nat.WithBot.add_one_le_of_lt | |||
|
|||
--Porting note: new theorem, wasn't necessary in Lean3 but now the coercions are syntactically | |||
--different. | |||
theorem cast_eq_some (n : ℕ) : Nat.cast n = WithBot.some n := rfl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This theorem already exists: Nat.cast_withBot
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for the new theorem, which is a duplicate.
bors r+ |
Merge conflict. |
bors r+ |
1 similar comment
bors r+ |
Already running a review |
Pull request successfully merged into master. Build succeeded:
|