Skip to content

Commit 7acaa1e

Browse files
committed
perf(RingTheory/Polynomial/DegreeLT): optimize proof for kernel checking (leanprover-community#33794)
`Polynomial.taylorLinearEquiv_symm` used to take ~9s in the kernel on a fast machine and an astounding 2hrs when checked externally, without the module system restrictions. Making definitional rewrites explicit reduces type checking to <100ms in both scenarios.
1 parent 499b544 commit 7acaa1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mathlib/Algebra/Polynomial/Derivative.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ theorem iterate_derivative_derivative_mul_X_sq {n : ℕ} (p : R[X]) :
552552
rcases n with rfl | n; · simp
553553
rcases n with rfl | n; · simp [sum_range_succ, ← mul_assoc]
554554
suffices ((n + 1 + 1) * (n + 1) / 2) * 2 = (n + 1 + 1) * (n + 1) by
555-
simp [this, -nsmul_eq_mul, sum_range_succ, Nat.choose_two_right]
555+
simp -implicitDefEqProofs [this, -nsmul_eq_mul, sum_range_succ, Nat.choose_two_right]
556556
ring
557557
rw [mul_comm (n + 1 + 1)]
558558
exact Nat.div_mul_cancel (Nat.two_dvd_mul_add_one _)

0 commit comments

Comments
 (0)