[Merged by Bors] - feat: Lemmas DifferentiableAt.add_iff_left, DifferentiableAt.add_iff_right#14593
[Merged by Bors] - feat: Lemmas DifferentiableAt.add_iff_left, DifferentiableAt.add_iff_right#14593adomasbaliuka wants to merge 13 commits intomasterfrom
DifferentiableAt.add_iff_left, DifferentiableAt.add_iff_right#14593Conversation
Lemmas say: at a point, the sum of a differentiable and a non-differentiable function is non-differentiable
PR summary a5922d1d7bImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
Let's test if |
|
!bench |
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
|
@YaelDillies Could you please remind me what's our convention about |
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
|
Here are the benchmark results for commit a839b02. |
|
LGTM but I don't remember what's our convention about |
|
✌️ YaelDillies can now approve this pull request. To approve and merge a pull request, simply reply with |
YaelDillies
left a comment
There was a problem hiding this comment.
binOp_iff_left should be of the form P (binOp f g) \iff P f, and binOp_iff_right should be of the form P (binOp f g) \iff P g.
Can you add the corresponding sub lemmas?
Also replaces simp by simp only. Those simps were terminal, so maybe OK, but I still like seeing what lemmas get used when reading a proof.
Now the linter complains that old lemmas (which concern the special case of subtracting constant) can be proved by simp. What to do?
|
|
Remove the simp from the old lemmas (/deprecate the old lemmas since they are superseded?) Can you also add the |
Because, e.g., differentiableAt_const also has it.
…ff and differentiable*_const_(sub|add)_iff Because simp can prove these now using the more general lemmas
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks!
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
…ff_right` (#14593) Given a function differentiable at a point, the result of adding a second function is differentiable (there) iff the second function is differentiable (there).
|
This PR was included in a batch that was canceled, it will be automatically retried |
…ff_right` (#14593) Given a function differentiable at a point, the result of adding a second function is differentiable (there) iff the second function is differentiable (there).
|
Pull request successfully merged into master. Build succeeded: |
DifferentiableAt.add_iff_left, DifferentiableAt.add_iff_rightDifferentiableAt.add_iff_left, DifferentiableAt.add_iff_right
Given a function differentiable at a point, the result of adding a second function is differentiable (there) iff the second function is differentiable (there).
The part that's new is: at a point, the sum of a differentiable and a non-differentiable function is non-differentiable.
The other direction of the
iffis already covered byDifferentiableAt.add.Lemmas are marked
@[simp]because otherifflemmas in that file are marked as such.Needed for #9734