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
[Merged by Bors] - perf(Topology.Algebra.Module): factor out smul
#11331
Conversation
!bench |
Here are the benchmark results for commit 3c14401. Benchmark Metric Change
===========================================================================
+ ~Mathlib.Analysis.Calculus.FDeriv.Mul instructions -8.9%
+ ~Mathlib.Analysis.InnerProductSpace.Adjoint instructions -10.4%
+ ~Mathlib.Analysis.InnerProductSpace.Basic instructions -4.7%
+ ~Mathlib.Analysis.NormedSpace.OperatorNorm.Bilinear instructions -13.0%
+ ~Mathlib.Analysis.NormedSpace.Star.Multiplier instructions -5.9%
+ ~Mathlib.Geometry.Manifold.ContMDiff.NormedSpace instructions -12.6% |
@[simp, nolint simpNF] -- `simp` times out trying to find `Module ℂ (E →L[ℂ] ℂ)` but this fine | ||
-- with all of `Mathlib` opened -- no idea why |
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.
missing a word?
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.
Better english now hopefully
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.
That looks fine but what's the interaction with https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/.2311521.20speeding.20up.20lots.20of.20instances ? Won't that discussion make this PR obsolete soon?
So it in fact works in tandem. |
Okay, let's go maintainer merge |
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
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 🎉
bors merge
Pull request successfully merged into master. Build succeeded: |
smul
smul
We want to avoid making Lean unfold
smul
during unification. A separate instance does helps at the cost of some elaboration failures.