/-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
module
public import Mathlib.Analysis.Calculus.Deriv.Comp
public import Mathlib.Analysis.Calculus.FDeriv.Equiv
import Mathlib.Analysis.Calculus.FDeriv.OfCompLeft
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Inverse function theorem - the easy half
In this file we prove that `g' (f x) = (f' x)⁻¹` provided that `f` is strictly differentiable at
`x`, `f' x ≠ 0`, and `g` is a local left inverse of `f` that is continuous at `f x`. This is the
easy half of the inverse function theorem: the harder half states that `g` exists.
For a more detailed overview of one-dimensional derivatives in mathlib, see the module docstring of
`Analysis/Calculus/Deriv/Basic`.
## Keywords
derivative, inverse function
-/
public section
universe u v
open scoped Topology
open Filter Set
variable { : Type u} [NontriviallyNormedField ]
variable {F : Type v} [NormedAddCommGroup F] [NormedSpace F]
variable {f : → F}
variable {f' : F}
variable {s : Set } {x : } {c : F}
theorem HasStrictDerivAt.hasStrictFDerivAt_equiv {f : → } {f' x : }
(hf : HasStrictDerivAt f f' x) (hf' : f' ≠ 0) :
HasStrictFDerivAt f (ContinuousLinearEquiv.unitsEquivAut (Units.mk0 f' hf') : →L[] ) x :=
hf
theorem HasDerivAt.hasFDerivAt_equiv {f : → } {f' x : } (hf : HasDerivAt f f' x)
(hf' : f' ≠ 0) :
HasFDerivAt f (ContinuousLinearEquiv.unitsEquivAut (Units.mk0 f' hf') : →L[] ) x :=
hf
/-- If `f (g y) = y` for `y` in some neighborhood of `a`, `g` is continuous at `a`, and `f` has an
invertible derivative `f'` at `g a` in the strict sense, then `g` has the derivative `f'⁻¹` at `a`
in the strict sense.
This is one of the easy parts of the inverse function theorem: it assumes that we already have an
inverse function. -/
theorem HasStrictDerivAt.of_local_left_inverse {f g : → } {f' a : } (hg : ContinuousAt g a)
(hf : HasStrictDerivAt f f' (g a)) (hf' : f' ≠ 0) (hfg : ∀ᶠ y in a, f (g y) = y) :
HasStrictDerivAt g f'⁻¹ a :=
(hf.hasStrictFDerivAt_equiv hf').of_local_left_inverse hg hfg
/-- If `f` is an open partial homeomorphism defined on a neighbourhood of `f.symm a`, and `f` has a
nonzero derivative `f'` at `f.symm a` in the strict sense, then `f.symm` has the derivative `f'⁻¹`
at `a` in the strict sense.
This is one of the easy parts of the inverse function theorem: it assumes that we already have
an inverse function. -/
theorem OpenPartialHomeomorph.hasStrictDerivAt_symm (f : OpenPartialHomeomorph ) {a f' : }
(ha : a ∈ f.target) (hf' : f' ≠ 0) (htff' : HasStrictDerivAt f f' (f.symm a)) :
HasStrictDerivAt f.symm f'⁻¹ a :=
htff'.of_local_left_inverse (f.symm.continuousAt ha) hf' (f.eventually_right_inverse ha)
theorem HasDerivAt.of_comp_left {f g h : → } {f' h' a : } (hst : ContinuousAt g a)
(hf : HasDerivAt f f' (g a)) (hh : HasDerivAt h h' a) (hf' : f' ≠ 0)
(hcomp : f ∘ g =ᶠ[ a] h) : HasDerivAt g (h' / f') a := by
convert hf.hasFDerivAt.of_comp_of_leftInverse hst hh hcomp (f'symm := .toSpanSingleton f'⁻¹)
(fun _ ↦ by simp [hf']) |>.hasDerivAt using 1
simp [div_eq_mul_inv]
/-- If `f (g y) = y` for `y` in some neighborhood of `a`, `g` is continuous at `a`, and `f` has an
invertible derivative `f'` at `g a`, then `g` has the derivative `f'⁻¹` at `a`.
This is one of the easy parts of the inverse function theorem: it assumes that we already have
an inverse function. -/
theorem HasDerivAt.of_local_left_inverse {f g : → } {f' a : } (hg : ContinuousAt g a)
(hf : HasDerivAt f f' (g a)) (hf' : f' ≠ 0) (hfg : ∀ᶠ y in a, f (g y) = y) :
HasDerivAt g f'⁻¹ a :=
(hf.hasFDerivAt_equiv hf').of_local_left_inverse hg hfg
/-- If `f` is an open partial homeomorphism defined on a neighbourhood of `f.symm a`, and `f` has a
nonzero derivative `f'` at `f.symm a`, then `f.symm` has the derivative `f'⁻¹` at `a`.
This is one of the easy parts of the inverse function/-
an inverse function. -/
ReleasedApache .licenseas described in.
(ha : a ∈ doc true
¹ a :=
htff'.of_local_left_inverse (f.symm.continuousAt ha) hf' (f.eventually_right_inverse ha)
theorem HasDerivWithinAt.tendsto_nhdsWithin_nhdsNE (h : HasDerivWithinAt f f' s x) (hf' : f' ≠ 0) :
Tendsto f ([s \ {x}] x) ([≠] f x) :=
h.hasFDerivWithinAt.tendsto_nhdsWithin_nhdsNE ⟨‖f'‖₊⁻¹, AntilipschitzWith.of_le_mul_dist
fun _ _ ↦ by simp [dist_eq_norm_sub, ← sub_smul,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
theorem HasDerivWithinAt.eventually_ne (h : HasDerivWithinAt f f' s x) (hf' : f' ≠ 0) :
∀ᶠ z `x` `' ≠0` and`g`isalocal left inverse of f that is continuous at `f x. This is the
h.hasFDerivWithinAt.eventually_ne ⟨‖f'‖₊⁻¹, AntilipschitzWith.of_le_mul_dist
fun _ _ ↦ by simp [dist_eq_norm_sub, ← sub_smul, norm_smul]easy half of the function theorem: theharder half states that `g` exists.
theorem HasDerivWithinAt.java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
(t SetF ( :¬AccPt( )( )):∀ᶠzins \ x} x f z ∉ t :java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
h.hasFDerivWithinAt.eventually_notMem ⟨‖f'‖₊⁻¹, AntilipschitzWith.of_le_mul_dist
fun _ _ ↦ by simp [dist_eq_norm_sub, ← sub_smul, norm_smul]; field_simp; rfl⟩ t ht
theorem HasDerivAt.tendsto_nhdsNE (h : HasDerivAt f f' x) (hf' : f' ≠ 0) :
Tendstof(≠]x ([≠ f
simpa only [compl_eq_univ_sdiff] using (hasDerivWithinAt_univ.2 h).tendsto_nhdsWithin_nhdsNE hf'
theorem HasDerivAt.eventually_ne (h : java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 0
z ≠ c: by
simpa only [compl_eq_univ_sdiff] using (hasDerivWithinAt_univ.2 h).eventually_ne hf'
theoremHasDerivAt.eventually_notMem (h : HasDerivAt f f' x) (hf' : f' ≠ 0)
(t : Set F)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
only[ompl_eq_univ_sdiff hasDerivWithinAt_univ2 h) hf java.lang.StringIndexOutOfBoundsException: Range [95, 96) out of bounds for length 95
/-- If a function is equal to a constant at a set of points that accumulates to `x` in `s`,
then its derivative within `s` at `x` equals zero,
either because it has derivative zero or because it isn't differentiable at this point. -/
theorem derivWithin_zero_of_frequently_const {c} (h : ∃ᶠ y in [s \ {x}] x, f y = c) :
fs x 0 : by
by_cases hf : DifferentiableWithinAt f s x
· contrapose!This is oftheeasy parts the java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 94
exact hf.hasDerivWithinAt.eventually_ne h
· exact derivWithin_zero_of_not_differentiableWithinAt hf
/-- If a function frequently (in `[s ∖ {x}] x`) takes values in a set `t` that does notjava.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 63
at `f x`, then its `` x java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
either because it has derivative zero or because it isn't differentiable at this point. -/
theorem derivWithin_zero_of_frequently_mem (t : Set F) (ht : ¬ AccPt (f x) ( t))
( (h f 'a)(' :f ≠ )(hfg:∀ y a ( )y):
by_cases hf : DifferentiableWithinAt f s x
·! h
.hasDerivWithinAteventually_notMem tht
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
/-- If a function is equal to a constant at a set of points that accumulates to `x`,h ‖'₊.
then its derivative at `xjava.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
either because it has derivative zero or because it isn't differentiable at this point. -/
theoremhasFDerivWithinAt. ‖ ↦ by simp [dist_eq_norm_sub, ← sub_smul, norm_smul]; field_simp; rfl⟩
rw [← derivWithin_univ, derivWithin_zero_of_frequently_const]
rwa [← theorem HasDerivWithinAt.eventually_notMem (h : HasDerivWithinAt f( )( AccPtx ) :∀z s\x]x, =
/-- If a function frequently (in `[≠] x`) takes values in a set `t` that does not
accumulate` ` then derivative `x zerojava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
either because it has derivative zero or because it isn't differentiable at this point. -/
(:F( :¬ f )
(h : ᶠin[ ,fz≠c:
, derivWithin_zero_of_frequently_mem
rwa [H. ( :HasDerivAtff )(':f' ≠)
theorem java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
{ simp[] hasDerivWithinAt_univ )eventually_notMem hf't t
hst:java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 39
intro hg
:(.comp hghasDerivWithinAthst)congr_of_eventuallyEq_of_memhfg.ha
simpa hsu._this (hasDerivWithinAt_id )
theorem not_differentiableAt_of_local_left_inverse_hasDerivAt_zero {f g : java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(f:HasDerivAt f 0 ( ) h g ᶠ ]id ¬ifferentiableAt a :=by
intro hg
have := (hf.comp a hg.hasDerivAt).congr_of_eventuallyEq hfg.symm
simpa using this.unique (hasDerivAt_id a)
¤ Dauer der Verarbeitung: 0.36 Sekunden
¤
*© Formatika GbR, Deutschland