Skip to content
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

refactor(Analysis/Calculus/FormalMultilinearSeries): generalize to additive monoids #9467

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Jan 5, 2024

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.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.

This also adds a new sub_apply lemma for good measure.


Open in Gitpod

…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.
@eric-wieser eric-wieser added awaiting-review awaiting-CI t-analysis Analysis (normed *, calculus) labels Jan 5, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Feb 6, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 2, 2024
@eric-wieser
Copy link
Member Author

!bench

@leanprover-bot
Copy link
Collaborator

Here are the benchmark results for commit ee16fce.
There were significant changes against commit 1aabff1:

  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%

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) t-analysis Analysis (normed *, calculus)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants