-
Notifications
You must be signed in to change notification settings - Fork 297
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
chore(algebra/ring/defs): backport reordering from #3840 #18967
Conversation
theorem bernoulli'_power_series_mul_exp_sub_one_aux (n : ℕ) : | ||
∑ (p : ℕ × ℕ) in antidiagonal n, bernoulli' p.fst / p.fst! * ((p.snd + 1) * p.snd!)⁻¹ = (n!)⁻¹ := |
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 to resolve a timeout.
@@ -143,8 +143,7 @@ lemma mul_poly_of_interest_aux2 (n : ℕ) : | |||
(p ^ n * witt_mul p n : mv_polynomial (fin 2 × ℕ) ℤ) + witt_poly_prod_remainder p n = | |||
witt_poly_prod p n := | |||
begin | |||
convert mul_poly_of_interest_aux1 p n, | |||
rw [sum_range_succ, add_comm, nat.sub_self, pow_zero, pow_one], | |||
rw [← mul_poly_of_interest_aux1 p n, sum_range_succ, add_comm, nat.sub_self, pow_zero, pow_one], |
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 was timing out, but the direct rw is fast.
-- Backporting note: this used to extend `(A →L[𝕜] A) × (A →L[𝕜] A)` | ||
-- rather than having fields `fst` and `snd`. | ||
-- However the mathlib4 refactor https://github.com/leanprover-community/mathlib4/pull/3840 | ||
-- when backported caused a timeout here. I don't understand why this timeout occurs, |
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.
I can have a look at this tomorrow
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.
Thanks. I'm not sure that it's actually any worse this way. In fact, a benefit of the refactor I was forced to do here is that the fields could be called L
and R
as originally intended!
!bench |
@sgouezel, we don't have |
A sanity check for leanprover-community/mathlib4#3840.