feat(Tactic): tactic for computing asymptotics of real functions#28291
feat(Tactic): tactic for computing asymptotics of real functions#28291vasnesterov wants to merge 66 commits intoleanprover-community:masterfrom
Conversation
|
Hi! I'm still excited about your PR and this tactic. If/when you split out further pieces into reviewable PRs, I can try to find a reviewer for them. |
By the way, this offer still stands, whenever you find time for this. (There's no rush on my side - but I'm happy to help.) |
|
@grunweg Thanks for the support! I'm planning to do a major refactoring that will improve the tactic on functions with complex cancellations. For example, my tactic can’t yet prove this limit: example :
let f := fun x ↦ exp x * ((x + 1)⁻¹ - (x + 1)⁻¹)
Tendsto f atTop (𝓝 0) := by
compute_asymptoticsI don’t think such functions are very important in practice, but it still feels wrong that my tactic can’t handle most of the limits in Section 8 of Gruntz’s thesis. After that I'll start splitting this into smaller pieces and PRing them |
|
@vasnesterov I've just had a quick look over this PR and I have a few remarks and questions as follows:
|
|
|
@vasnesterov Thanks, this all sounds marvelous. I can't yet tell what will be the outcome yet but I can say several of us our very excited about a tactic like this and that I look forward to having a clearer diff. Thanks so much! |
|
This pull request has conflicts, please merge |
|
This pull request has conflicts, please merge |
…sterov/mathlib4 into vasnesterov/tendsto_tactic
It's an auxiliary PR which implements the entire
compute_asymptoticstactic. I am spliting it into multiple small PRs.Tactic description: https://vasnesterov.github.io/compute_asymptotics
Zulip announcement: #announce > New tactic: `compute_asymptotics`
In this PR I implement the
compute_asymptoticstactic. Its purpose is to compute asymptotics of functions fromℝtoℝ. So far it is able to compute the limit of any function constructed using arithmetic operations (+,-,*,/, inversion), powers, logarithms, and exponents.For more examples see
compute_asymptotics.leanin tests.TODO
compute_limitas well.References
I am basically implementing this article about computing asymptotics in Isabelle by Manuel Eberl.
Small PRs
Here's a few smaller PRs coming from this one, ordered by importance:
Seq:FriendlyOperationAPI #35072Majorizedpredicate #34356WellFormedBasislemmas #34422Tendsto f atTop l#34403Seq#34311