-
Notifications
You must be signed in to change notification settings - Fork 892
[Merged by Bors] - refactor(Analysis/Calculus/FormalMultilinearSeries): generalize to additive monoids #9467
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
Conversation
|
!bench |
|
Here are the benchmark results for commit ee16fce. Benchmark Metric Change
==========================================================================
- ~Mathlib.Analysis.Analytic.Basic instructions 12.0%
- ~Mathlib.Analysis.Analytic.CPolynomial instructions 13.2%
- ~Mathlib.Analysis.Calculus.ContDiff.Basic instructions 6.5%
- ~Mathlib.Analysis.Calculus.ContDiff.Defs instructions 10.3%
+ ~Mathlib.Analysis.Calculus.FormalMultilinearSeries instructions -14.6% |
…ditive monoids While many of the lemmas cease to apply, the definitions of sequences and their sums are still perfectly well-behaved in additive monoids; no negation is needed. We could use this to generalize `NormedSpace.exp` such that it works with `NNReal`, but unless leanprover-community/mathlib3#16554 or similar lands and provides a `DivisionSemiring.nnqsmul` field, that would conflict with #8370.
ee16fce to
2fa0dbc
Compare
YaelDillies
left a comment
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 rebased to get rid of a conflict. Looks good to me.
maintainer merge
PR summary 1b91388834Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
|
!bench |
Co-authored-by: damiano <adomani@gmail.com>
adomani
left a comment
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.
Looks like I was not completely thorough re-generalising! 😄
|
Here are the benchmark results for commit 2fa0dbc. Benchmark Metric Change
=========================================================================
- ~Mathlib.Analysis.Analytic.Basic instructions 17.4%
- ~Mathlib.Analysis.Analytic.CPolynomial instructions 17.9%
- ~Mathlib.Analysis.Analytic.Constructions instructions 15.6%
- ~Mathlib.Analysis.Calculus.ContDiff.Basic instructions 8.0%
- ~Mathlib.Analysis.Calculus.ContDiff.Defs instructions 17.2%
- ~Mathlib.Analysis.Calculus.ContDiff.FTaylorSeries instructions 9.0%
- ~Mathlib.Analysis.Calculus.ContDiff.FaaDiBruno instructions 8.6%
- ~Mathlib.Analysis.Calculus.FDeriv.Analytic instructions 4.9% |
2 files, Instructions +22.0⬝10⁹
2 files, Instructions +5.0⬝10⁹
2 files, Instructions +1.0⬝10⁹
|
|
I like where this PR is going: I would like not to have to worry about the slow-downs! |
|
I also like this PR. I wrote a quick message here to check that we should merge this despite the performance regression. |
|
Btw, the |
j-loreaux
left a comment
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'm in favor of this despite the slowdowns.
YaelDillies
left a comment
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.
Me too
|
bors merge |
…ditive monoids (#9467) While many of the lemmas cease to apply, the definitions of sequences and their sums are still perfectly well-behaved in additive monoids; no negation is needed. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
|
Pull request successfully merged into master. Build succeeded: |
While many of the lemmas cease to apply,
the definitions of sequences and their sums are still perfectly well-behaved in additive monoids; no negation is needed.
In future, we could use this to generalize
NormedSpace.expsuch that it works withNNReal, but unless leanprover-community/mathlib3#16554 or #11203 lands and provides aDivisionSemiring.nnqsmulfield, that would conflict with #8370.EDIT(Yaël): #11203 landed.