Skip to content
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] - refactor(analysis/calculus/deriv): split comp and scomp #2410

Closed
wants to merge 2 commits into from

Conversation

sgouezel
Copy link
Collaborator

The derivative of the composition of a function and a scalar function was written using smul, regardless of the fact that the first function was vector-valued (in which case smul is not avoidable) or scalar-valued (in which case it can be replaced by mul). Instead, this PR introduces two sets of lemmas (named scomp for the first type and comp for the second type) to get the usual multiplication in the formula for the derivative of the composition of two scalar functions.

@PatrickMassot
Copy link
Member

bors merge

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Apr 13, 2020
bors bot pushed a commit that referenced this pull request Apr 13, 2020
The derivative of the composition of a function and a scalar function was written using `smul`, regardless of the fact that the first function was vector-valued (in which case `smul` is not avoidable)  or scalar-valued (in which case it can be replaced by `mul`). Instead, this PR introduces two sets of lemmas (named `scomp` for the first type and `comp` for the second type) to get the usual multiplication in the formula for the derivative of the composition of two scalar functions.
@bors
Copy link

bors bot commented Apr 14, 2020

Build failed:

  • Build mathlib

@bryangingechen
Copy link
Collaborator

It looks like this was caught up in the github actions failures that occurred earlier today.

bors r+

bors bot pushed a commit that referenced this pull request Apr 14, 2020
The derivative of the composition of a function and a scalar function was written using `smul`, regardless of the fact that the first function was vector-valued (in which case `smul` is not avoidable)  or scalar-valued (in which case it can be replaced by `mul`). Instead, this PR introduces two sets of lemmas (named `scomp` for the first type and `comp` for the second type) to get the usual multiplication in the formula for the derivative of the composition of two scalar functions.
@bryangingechen
Copy link
Collaborator

leanpkg build is still running after 5 hours again so maybe there is something wrong with the code after all?

@bors
Copy link

bors bot commented Apr 14, 2020

Build failed:

@sgouezel
Copy link
Collaborator Author

Fixed build.

bors r+

bors bot pushed a commit that referenced this pull request Apr 14, 2020
The derivative of the composition of a function and a scalar function was written using `smul`, regardless of the fact that the first function was vector-valued (in which case `smul` is not avoidable)  or scalar-valued (in which case it can be replaced by `mul`). Instead, this PR introduces two sets of lemmas (named `scomp` for the first type and `comp` for the second type) to get the usual multiplication in the formula for the derivative of the composition of two scalar functions.
@bors
Copy link

bors bot commented Apr 14, 2020

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title refactor(analysis/calculus/deriv): split comp and scomp [Merged by Bors] - refactor(analysis/calculus/deriv): split comp and scomp Apr 14, 2020
@bors bors bot closed this Apr 14, 2020
@bors bors bot deleted the mul_deriv branch April 14, 2020 12:11
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 15, 2020
…ommunity#2410)

The derivative of the composition of a function and a scalar function was written using `smul`, regardless of the fact that the first function was vector-valued (in which case `smul` is not avoidable)  or scalar-valued (in which case it can be replaced by `mul`). Instead, this PR introduces two sets of lemmas (named `scomp` for the first type and `comp` for the second type) to get the usual multiplication in the formula for the derivative of the composition of two scalar functions.
anrddh pushed a commit to anrddh/mathlib that referenced this pull request May 16, 2020
…ommunity#2410)

The derivative of the composition of a function and a scalar function was written using `smul`, regardless of the fact that the first function was vector-valued (in which case `smul` is not avoidable)  or scalar-valued (in which case it can be replaced by `mul`). Instead, this PR introduces two sets of lemmas (named `scomp` for the first type and `comp` for the second type) to get the usual multiplication in the formula for the derivative of the composition of two scalar functions.
cipher1024 pushed a commit to cipher1024/mathlib that referenced this pull request Mar 15, 2022
…ommunity#2410)

The derivative of the composition of a function and a scalar function was written using `smul`, regardless of the fact that the first function was vector-valued (in which case `smul` is not avoidable)  or scalar-valued (in which case it can be replaced by `mul`). Instead, this PR introduces two sets of lemmas (named `scomp` for the first type and `comp` for the second type) to get the usual multiplication in the formula for the derivative of the composition of two scalar functions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants