Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: lemmas about derivatives of affine maps (#4508)
- Loading branch information
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/- | ||
Copyright (c) 2023 Yury Kudryashov. All rights reserved. | ||
Released under Apache 2.0 license as described in the file LICENSE. | ||
Authors: Yury Kudryashov | ||
-/ | ||
import Mathlib.Analysis.Calculus.Deriv.Add | ||
import Mathlib.Analysis.Calculus.Deriv.Linear | ||
import Mathlib.LinearAlgebra.AffineSpace.AffineMap | ||
/-! | ||
# Derivatives of affine maps | ||
In this file we prove formulas for one-dimensional derivatives of affine maps `f : π βα΅[π] E`. We | ||
also specialise some of these results to `AffineMap.lineMap` because it is useful to transfer MVT | ||
from dimension 1 to a domain in higher dimension. | ||
## TODO | ||
Add theorems about `deriv`s and `fderiv`s of `ContinuousAffineMap`s once they will be ported to | ||
Mathlib 4. | ||
## Keywords | ||
affine map, derivative, differentiability | ||
-/ | ||
|
||
variable {π : Type _} [NontriviallyNormedField π] | ||
{E : Type _} [NormedAddCommGroup E] [NormedSpace π E] | ||
(f : π βα΅[π] E) {a b : E} {L : Filter π} {s : Set π} {x : π} | ||
|
||
namespace AffineMap | ||
|
||
theorem hasStrictDerivAt : HasStrictDerivAt f (f.linear 1) x := by | ||
rw [f.decomp] | ||
exact f.linear.hasStrictDerivAt.add_const (f 0) | ||
|
||
theorem hasDerivAtFilter : HasDerivAtFilter f (f.linear 1) x L := by | ||
rw [f.decomp] | ||
exact f.linear.hasDerivAtFilter.add_const (f 0) | ||
|
||
theorem hasDerivWithinAt : HasDerivWithinAt f (f.linear 1) s x := f.hasDerivAtFilter | ||
theorem hasDerivAt : HasDerivAt f (f.linear 1) x := f.hasDerivAtFilter | ||
|
||
protected theorem derivWithin (hs : UniqueDiffWithinAt π s x) : | ||
derivWithin f s x = f.linear 1 := | ||
f.hasDerivWithinAt.derivWithin hs | ||
|
||
@[simp] protected theorem deriv : deriv f x = f.linear 1 := f.hasDerivAt.deriv | ||
|
||
protected theorem differentiableAt : DifferentiableAt π f x := f.hasDerivAt.differentiableAt | ||
protected theorem differentiable : Differentiable π f := fun _ β¦ f.differentiableAt | ||
|
||
protected theorem differentiableWithinAt : DifferentiableWithinAt π f s x := | ||
f.differentiableAt.differentiableWithinAt | ||
|
||
protected theorem differentiableOn : DifferentiableOn π f s := fun _ _ β¦ f.differentiableWithinAt | ||
|
||
/-! | ||
### Line map | ||
In this section we specialize some lemmas to `AffineMap.lineMap` because this map is very useful to | ||
deduce higher dimensional lemmas from one-dimensional versions. | ||
-/ | ||
|
||
theorem hasStrictDerivAt_lineMap : HasStrictDerivAt (lineMap a b) (b - a) x := by | ||
simpa using (lineMap a b : π βα΅[π] E).hasStrictDerivAt | ||
|
||
theorem hasDerivAt_lineMap : HasDerivAt (lineMap a b) (b - a) x := | ||
hasStrictDerivAt_lineMap.hasDerivAt | ||
|
||
theorem hasDerivWithinAt_lineMap : HasDerivWithinAt (lineMap a b) (b - a) s x := | ||
hasDerivAt_lineMap.hasDerivWithinAt | ||
|
||
end AffineMap |