-
Notifications
You must be signed in to change notification settings - Fork 381
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: Lemma for fderiv
of scalar function
#14502
Conversation
…alar is multiplication of deriv
This comment was marked as outdated.
This comment was marked as outdated.
Thanks for your contribution to mathlib! I guess you'd like code to be reviewed - hence I have labelled it |
fderiv
of scalar functionfderiv
of scalar function
This lemma looks good to me. I would like a different name though (we want to avoid primes, and also the other two names are not great). |
Actually, can you add a version for |
|
Thanks! bors merge |
Adds lemma for simplifying the Fréchet derivative when applied to a function maping scalars to scalars. This (currently named `fderiv_deriv'`) is a special case of `fderiv_deriv`. Neither of `simp`, `fun_prop`, `aesop`, `exact?` , `apply?` currently seems to make progress on it. Possibly, it should be instead stated as `(fderiv 𝕜 f x : 𝕜 → 𝕜) = ((deriv f x) * ·)` if that makes it more likely to be applied by `simp`? I think it should be marked `@[simp]` because one would basically always prefer the right hand side to the left hand side of the equality. Does that make sense? I also think `fderiv_deriv` should be marked `@[simp]`, though maybe there is a reason why it isn't. Marking it such requires a change to the proof of `deriv_fderiv`, which was using a `simp` rather than a `simp only` (not a [non-terminal simp](https://leanprover-community.github.io/glossary.html#non-terminal-simp) but still to be avoided, I would assume?). Maybe other things are also likely to break, however, if those are added to simp?
Pull request successfully merged into master. Build succeeded: |
fderiv
of scalar functionfderiv
of scalar function
Adds lemma for simplifying the Fréchet derivative when applied to a function maping scalars to scalars.
This (currently named
fderiv_deriv'
) is a special case offderiv_deriv
. Neither ofsimp
,fun_prop
,aesop
,exact?
,apply?
currently seems to make progress on it.Possibly, it should be instead stated as
(fderiv 𝕜 f x : 𝕜 → 𝕜) = ((deriv f x) * ·)
if that makes it more likely to be applied bysimp
?I think it should be marked
@[simp]
because one would basically always prefer the right hand side to the left hand side of the equality. Does that make sense?I also think
fderiv_deriv
should be marked@[simp]
, though maybe there is a reason why it isn't. Marking it such requires a change to the proof ofderiv_fderiv
, which was using asimp
rather than asimp only
(not a non-terminal simp but still to be avoided, I would assume?). Maybe other things are also likely to break, however, if those are added to simp?