Skip to content

Commit

Permalink
fix(analysis/calculus/fderiv_symmetric): speed up tactic block from 3…
Browse files Browse the repository at this point in the history
….6s to 180ms (#11426)

The timings are measured for the single small begin/end block. The proof as a whole is still around 7.6s, down from 11s.

The fault here was likely the `convert`, which presumably spent a lot of time trying to unify typeclass arguments.
  • Loading branch information
eric-wieser committed Jan 13, 2022
1 parent 0f79668 commit ea9f964
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/analysis/calculus/fderiv_symmetric.lean
Expand Up @@ -157,10 +157,7 @@ begin
{ refine ⟨_, xt_mem t ⟨ht.1, ht.2.le⟩⟩,
rw [add_assoc, add_mem_ball_iff_norm],
exact I.trans_lt hδ },
have := sδ H,
simp only [mem_set_of_eq] at this,
convert this;
abel
simpa only [mem_set_of_eq, add_assoc x, add_sub_cancel'] using sδ H,
end
... ≤ (ε * (∥h • v∥ + ∥h • w∥)) * (∥h • w∥) :
begin
Expand Down

0 comments on commit ea9f964

Please sign in to comment.