Added differentiability of the max function#1819
Open
lstrsrmn wants to merge 13 commits intomath-comp:masterfrom
Open
Added differentiability of the max function#1819lstrsrmn wants to merge 13 commits intomath-comp:masterfrom
lstrsrmn wants to merge 13 commits intomath-comp:masterfrom
Conversation
Added a lemma for showing \max is differentiable Added two lemmas for differentiating the max function when the order is known at the point.
05b906e to
d77b796
Compare
41a8000 to
2638f48
Compare
Member
|
Thanks for the contribution. |
Contributor
Author
|
Hello, Thank you for you help. Fact der_max f g x v :
f x <> g x -> derivable f x v -> derivable g x v ->
(fun h => h^-1 *: (((f \max g) \o shift x) (h *: v) - (f \max g) x)) @
0^' --> if f x < g x then 'D_v g x else 'D_v f x.So that its more general and fits with the library more. Should I redraft this pr or make a new one with an update from this format to the newer better one? |
Contributor
Author
|
Sorry I made a mistake and merged the wrong branch, should be fixed now. A few helpful lemmas were added to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added a lemma for showing \max is differentiable
Added two lemmas for differentiating the max function when the order is known at the point.
Motivation for this change
Differentiability of max can be useful and is general enough it should be added to the library.
Checklist
CHANGELOG_UNRELEASED.mdReference: How to document
Merge policy
As a rule of thumb:
all compile are preferentially merged into master.
Reminder to reviewers