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] - feat(data/complex/exponential): bound on exp for arbitrary arguments #8667
Conversation
Co-authored-by: Eric <37984851+ericrbg@users.noreply.github.com>
Would it be possible to use a lemma characterising |
If #8576 is coming in the next few days, and you all think it's important to avoid changing this until it's done feel free to block this. Otherwise, I can also address any other comments about the code. |
Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Johan Commelin <johan@commelin.net>
I pushed a golf. |
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
…8667) This PR is for a new lemma (currently called `exp_bound'`) which proves `exp x` is close to its `n`th degree taylor expansion for sufficiently large `n`. Unlike the previous bound, this lemma can be instantiated on any real `x` rather than just `x` with absolute value less than or equal to 1. I am separating this lemma out from #8002 because I think it stands on its own. The last time I checked it was sorry free - but that was before I merged with master and moved it to a different branch. It may also benefit from a little golfing. There are a few lemmas I proved as well to support this - one about the relative size of factorials and a few about sums of geometric sequences. The ~~geometric series ones should probably be generalized and moved to another file~~ this generalization sort of exists and is in the algebra.geom_sum file. I didn't find it initially since I was searching for "geometric" not "geom".
Pull request successfully merged into master. Build succeeded: |
This PR is for a new lemma (currently called
exp_bound'
) which provesexp x
is close to itsn
th degree taylor expansion for sufficiently largen
. Unlike the previous bound, this lemma can be instantiated on any realx
rather than justx
with absolute value less than or equal to 1. I am separating this lemma out from #8002 because I think it stands on its own.The last time I checked it was sorry free - but that was before I merged with master and moved it to a different branch. It may also benefit from a little golfing.
There are a few lemmas I proved as well to support this - one about the relative size of factorials and a few about sums of geometric sequences. The
geometric series ones should probably be generalized and moved to another filethis generalization sort of exists and is in the algebra.geom_sum file. I didn't find it initially since I was searching for "geometric" not "geom".