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(Analysis/Calculus/{Iterated}Deriv/*): add lemmas on composition with negation #11173
Conversation
For the new lemmas on iterated derivatives to work, the file they are in needs to import |
LGTM maintainer merge |
π Pull request has been placed on the maintainer queue by loefflerd. |
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
β¦with negation (#11173) This adds ```lean lemma deriv_comp_neg (f : π β F) (a : π) : deriv (fun x β¦ f (-x)) a = -deriv f (-a) /-- A variant of `deriv_const_smul` without differentiability assumption when the scalar multiplication is by field elements. -/ lemma deriv_const_smul' {f : π β F} {x : π} {R : Type*} [Field R] [Module R F] [SMulCommClass π R F] [ContinuousConstSMul R F] (c : R) : deriv (fun y β¦ c β’ f y) x = c β’ deriv f x lemma iteratedDeriv_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ -(f x)) a = -(iteratedDeriv n f a) lemma iteratedDeriv_comp_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ f (-x)) a = (-1 : π) ^ n β’ iteratedDeriv n f (-a) ``` which will come in handy in some future PRs on L-series. See [here](https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/L-series/near/424858837) on Zulip.
Pull request successfully merged into master. Build succeeded: |
β¦with negation (#11173) This adds ```lean lemma deriv_comp_neg (f : π β F) (a : π) : deriv (fun x β¦ f (-x)) a = -deriv f (-a) /-- A variant of `deriv_const_smul` without differentiability assumption when the scalar multiplication is by field elements. -/ lemma deriv_const_smul' {f : π β F} {x : π} {R : Type*} [Field R] [Module R F] [SMulCommClass π R F] [ContinuousConstSMul R F] (c : R) : deriv (fun y β¦ c β’ f y) x = c β’ deriv f x lemma iteratedDeriv_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ -(f x)) a = -(iteratedDeriv n f a) lemma iteratedDeriv_comp_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ f (-x)) a = (-1 : π) ^ n β’ iteratedDeriv n f (-a) ``` which will come in handy in some future PRs on L-series. See [here](https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/L-series/near/424858837) on Zulip.
β¦with negation (#11173) This adds ```lean lemma deriv_comp_neg (f : π β F) (a : π) : deriv (fun x β¦ f (-x)) a = -deriv f (-a) /-- A variant of `deriv_const_smul` without differentiability assumption when the scalar multiplication is by field elements. -/ lemma deriv_const_smul' {f : π β F} {x : π} {R : Type*} [Field R] [Module R F] [SMulCommClass π R F] [ContinuousConstSMul R F] (c : R) : deriv (fun y β¦ c β’ f y) x = c β’ deriv f x lemma iteratedDeriv_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ -(f x)) a = -(iteratedDeriv n f a) lemma iteratedDeriv_comp_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ f (-x)) a = (-1 : π) ^ n β’ iteratedDeriv n f (-a) ``` which will come in handy in some future PRs on L-series. See [here](https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/L-series/near/424858837) on Zulip.
β¦with negation (#11173) This adds ```lean lemma deriv_comp_neg (f : π β F) (a : π) : deriv (fun x β¦ f (-x)) a = -deriv f (-a) /-- A variant of `deriv_const_smul` without differentiability assumption when the scalar multiplication is by field elements. -/ lemma deriv_const_smul' {f : π β F} {x : π} {R : Type*} [Field R] [Module R F] [SMulCommClass π R F] [ContinuousConstSMul R F] (c : R) : deriv (fun y β¦ c β’ f y) x = c β’ deriv f x lemma iteratedDeriv_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ -(f x)) a = -(iteratedDeriv n f a) lemma iteratedDeriv_comp_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ f (-x)) a = (-1 : π) ^ n β’ iteratedDeriv n f (-a) ``` which will come in handy in some future PRs on L-series. See [here](https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/L-series/near/424858837) on Zulip.
β¦with negation (#11173) This adds ```lean lemma deriv_comp_neg (f : π β F) (a : π) : deriv (fun x β¦ f (-x)) a = -deriv f (-a) /-- A variant of `deriv_const_smul` without differentiability assumption when the scalar multiplication is by field elements. -/ lemma deriv_const_smul' {f : π β F} {x : π} {R : Type*} [Field R] [Module R F] [SMulCommClass π R F] [ContinuousConstSMul R F] (c : R) : deriv (fun y β¦ c β’ f y) x = c β’ deriv f x lemma iteratedDeriv_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ -(f x)) a = -(iteratedDeriv n f a) lemma iteratedDeriv_comp_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ f (-x)) a = (-1 : π) ^ n β’ iteratedDeriv n f (-a) ``` which will come in handy in some future PRs on L-series. See [here](https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/L-series/near/424858837) on Zulip.
β¦with negation (#11173) This adds ```lean lemma deriv_comp_neg (f : π β F) (a : π) : deriv (fun x β¦ f (-x)) a = -deriv f (-a) /-- A variant of `deriv_const_smul` without differentiability assumption when the scalar multiplication is by field elements. -/ lemma deriv_const_smul' {f : π β F} {x : π} {R : Type*} [Field R] [Module R F] [SMulCommClass π R F] [ContinuousConstSMul R F] (c : R) : deriv (fun y β¦ c β’ f y) x = c β’ deriv f x lemma iteratedDeriv_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ -(f x)) a = -(iteratedDeriv n f a) lemma iteratedDeriv_comp_neg (n : β) (f : π β F) (a : π) : iteratedDeriv n (fun x β¦ f (-x)) a = (-1 : π) ^ n β’ iteratedDeriv n f (-a) ``` which will come in handy in some future PRs on L-series. See [here](https://leanprover.zulipchat.com/#narrow/stream/144837-PR-reviews/topic/L-series/near/424858837) on Zulip.
This adds
which will come in handy in some future PRs on L-series.
See here on Zulip.