Zulip Chat Archive

Stream: new members

Topic: Derivative rules


Bjørn Kjos-Hanssen (Apr 22 2022 at 01:09):

How come the basic rules for derivatives in Lean like f'+g'=(f+g)' are always stated at a point, like f'(x)+g'(x)=(f+g)'(x)?

Eric Wieser (Apr 22 2022 at 06:52):

Can you link to a lemma that demonstrates what you're thinking of?

Jireh Loreaux (Apr 22 2022 at 07:11):

If I had to guess, docs#deriv_sum?

Eric Wieser (Apr 22 2022 at 07:54):

I guess docs#deriv_add

Eric Wieser (Apr 22 2022 at 07:55):

It needs to be applied due to the differentiable_at arguments

Anatole Dedecker (Apr 22 2022 at 07:58):

I think one of the reasons we don’t also have a non applied version is because the API for deriv is copied from the one of fderiv and, except for basics things like addition, such rules tend to be really hard to write non applied in the context of fderiv

Anatole Dedecker (Apr 22 2022 at 08:00):

For example the composition rule would be really awkward to write in this way, you’d have to mix pointwise composition of linear maps with composition for the point you’re evaluating fderiv at

Bjørn Kjos-Hanssen (Apr 22 2022 at 18:11):

OK thanks @Anatole Dedecker. Sounds like a non-applied version for deriv could still be added.


Last updated: Dec 20 2023 at 11:08 UTC