-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Merged by Bors] - perf: shortcut instances for Semiring
#39719
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -357,8 +357,7 @@ theorem Nat.smul_eq_mul {n n' : ℕ} {r : R} (hr : n = r) (hn : n' = n) (a : R) | |
| subst_vars | ||
| simp only [nsmul_eq_mul] | ||
|
|
||
| omit [CommSemiring R] in | ||
| theorem Int.smul_eq_mul {n n' : ℤ} {r : R} [CommRing R] (hr : n = r) (hn : n' = n) (a : R) : | ||
| theorem Int.smul_eq_mul {R} {n n' : ℤ} {r : R} [CommRing R] (hr : n = r) (hn : n' = n) (a : R) : | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| n' • a = r * a := by | ||
| subst_vars | ||
| simp only [zsmul_eq_mul] | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,9 +203,6 @@ info: Try these: | |
| [apply] norm_num | ||
| Remaining subgoals: | ||
| ⊢ a /ₚ u₁ + b /ₚ u₁ = (a + b) /ₚ u₁ | ||
| [apply] ring_nf | ||
| Remaining subgoals: | ||
| ⊢ a /ₚ u₁ + b /ₚ u₁ = (a + b) /ₚ u₁ | ||
|
Comment on lines
-206
to
-208
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This |
||
| [apply] abel_nf | ||
| Remaining subgoals: | ||
| ⊢ a /ₚ u₁ + b /ₚ u₁ = (a + b) /ₚ u₁ | ||
|
|
||
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 is now needed due to a bug in
with_reducible rfl: it doesn't bump the transparency when unifying instance arguments, so it fails, and we need to addrfl.