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: adaptations for nightly-2024-02-26 #10995
Conversation
Mathlib/Algebra/ContinuedFractions/Computation/CorrectnessTerminating.lean
Outdated
Show resolved
Hide resolved
Mathlib/Algebra/ContinuedFractions/Computation/CorrectnessTerminating.lean
Outdated
Show resolved
Hide resolved
Mathlib/Algebra/ContinuedFractions/Computation/CorrectnessTerminating.lean
Outdated
Show resolved
Hide resolved
@@ -227,10 +227,12 @@ lemma add_scaleRoots_of_natDegree_eq (p q : R[X]) (r : R) (h : natDegree p = nat | |||
r ^ (natDegree p - natDegree (p + q)) • (p + q).scaleRoots r = | |||
p.scaleRoots r + q.scaleRoots r := by | |||
ext n; simp only [coeff_smul, coeff_scaleRoots, coeff_add, smul_eq_mul, | |||
mul_comm (r ^ _), mul_assoc, ← pow_add, ← h, ← add_mul, add_comm (_ - n)] | |||
mul_comm (r ^ _), ← pow_add, ← h, ← add_mul, add_comm (_ - n)] | |||
rw [mul_assoc, ← pow_add] |
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.
Why do these not fire in simp now?
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.
They do fire, but mul_assoc
induces a max rec depth error.
I've added an "adaptation note" explaining this, but am inclined to ship.
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.
Good with me
No description provided.