feat(Analysis/Calculus/Gradient): add toDual_gradient and companions#39202
Open
FordUniver wants to merge 2 commits into
Open
feat(Analysis/Calculus/Gradient): add toDual_gradient and companions#39202FordUniver wants to merge 2 commits into
FordUniver wants to merge 2 commits into
Conversation
Expose the Riesz isomorphism `InnerProductSpace.toDual` directly on the gradient: four new lemmas relating `(toDual 𝕜 F) (∇ f)` to `fderiv 𝕜 f` (and the `gradientWithin` and composed versions). These are the natural identifications: the gradient is defined by applying `(toDual 𝕜 F).symm` to the Fréchet derivative, so `toDual` recovers the latter. Useful when transferring statements about `fderiv` (Lipschitz constants, etc.) to the gradient via the Riesz isometry.
PR summary 45f0cc9e9bImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
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.
Add
toDual_gradient,toDual_gradientWithin, and the composed variantstoDual_comp_gradient,toDual_comp_gradientWithin— the natural inverse direction of the gradient's defining equation∇ f x := (toDual 𝕜 F).symm (fderiv 𝕜 f x). These identify(toDual 𝕜 F) (∇ f x)withfderiv 𝕜 f x(and thegradientWithinand composed forms with the corresponding fderiv versions), making the Riesz isomorphism between the two derivative views explicit. The proofs ofDifferentiableAt.hasGradientAtandDifferentiableWithinAt.hasGradientWithinAtin the same file are simplified to use them.Came up while formalizing the descent lemma for Lipschitz-smooth functions, where being able to switch between
LipschitzWith K (fderiv ℝ f)andLipschitzWith K (∇ f)is helpful, which with this PR becomestoDual_comp_gradient ▸ (toDual ℝ F).isometry.lipschitzWith_iff K. Also slightly simplifies two call sites in mathlib.