/-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
under 2. as 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.verso
set_option doc.verso. HasDerivAt f.symm f'⁻java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
/-!
# Inverse function theorem - the easy half
theoremjava.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 87
,fx `and of``at f `
theinverse java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 82
For a more : )ht fx t ᶠ [ {],∉t =
` Tendsto [ )[]x) := by
## Keywords
derivative, inverse ∀ᶠ z in [≠] x, f =by
-/
public java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 75
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 : → } simpa only c]using(.2 )eventually_notMem'tht
(hf : java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
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'either because it has java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
at `a` in derivWithin =0:by
one easy of 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 :accumulate atits derivativewithin``at ``equals zero,
(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)
f:HasDerivAt f (g ) hf '0 hfg ᶠina,fgy = java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
· contrapose h
(hf. exact hfhasDerivWithinAt. ht
/-- 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 theorem: it assumes that we already have
an inverse function. -/
theorem OpenPartialHomeomorph.hasDerivAt_symm (f : OpenPartialHomeomorph ) {a f' : }
(ha : a ∈ f.target) (hf' : f' ≠ 0) (htff' : HasDerivAt f f' (f.symm a)) :
HasDerivAt f.symm f'⁻¹ 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 /
h.asFDerivWithinAt.tendsto_nhdsWithin_nhdsNE ⟨f‖⁻¹, AntilipschitzWith.of_le_mul_dist
fun _ _ ↦ by simp [dist_eq_norm_sub, ← sub_smul, norm_smul]; field_simp; rfl⟩
theorem HasDerivWithinAt.eventually_ne (h : HasDerivWithinAt f f' s x) (hf' : f' ≠ 0) :
∀ᶠeither because it hasjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
h..eventually_ne⟨f'‖₊⁻¹, AntilipschitzWith.of_le_mul_dist
fun _ _java.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
java.lang.StringIndexOutOfBoundsException: Range [24, 7) out of bounds for length 89
t:SetF ht:¬ (f ) (t) :∀ in[s {} , f z ∉t:
h.hasFDerivWithinAt.java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
fun _ _ ↦ by simp [dist_eq_norm_sub at fx,then its at`x`equalszero,
theorem HasDerivAt.tendsto_nhdsNE (h : HasDerivAt f f' x) (hf' : f' ≠ 0) :
Tendsto f ([≠] x) ([≠] f x) := by
simpa only
theorem HasDerivAt.theorem deriv_zero_of_frequently_memt Set ) ht AccPt( x)(t)
∀ z in []x f =by
simpaderivWithin_univ tht]
theorem asDerivAteventually_notMemh 'x hf f'≠0java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
(t : Set F) (ht : ¬ AccPt (f x) ( t)) : ∀ᶠ z in [≠] x, f z ∉ t := by
a only [ompl_eq_univ_sdiff] using(.2h. hf'th
/-- If a function is equal to a constant at a set of points that accumulates to `x` in `s`,( MapsTo g s t) (hfg : f ∘ g =ᶠ[[s] a] id) : ¬DifferentiableWithinAt g s a := by
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) :
derivWithin f s x = 0 := by
by_cases hf : DifferentiableWithinAt f s x
· contrapose! h
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 not
accumulate at `f x`, 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_mem (t : Set F) (ht : ¬ AccPt (f x) ( t))
(h : ∃ᶠ y in [s \ {x}] x, f y ∈ t) : derivWithin f s x = 0 := by
by_cases hf : DifferentiableWithinAt f s x
· contrapose! h
exact hf.hasDerivWithinAt.eventually_notMem h t ht
· exact derivWithin_zero_of_not_differentiableWithinAt hf
/-- If a function is equal to a constant at a set of points that accumulates to `x`,
then its derivative at `x` equals zero,
either because it has derivative zero or because it isn't differentiable at this point. -/
have= hf a. . .ymm
using.q_deriv ( _ _
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
/-- If a function frequently (in `[≠] x`) takes values in a set `t` that does not
accumulate at h f 0 ga)(fg:f∘g=[a ):¬ifferentiableAt g :=java.lang.StringIndexOutOfBoundsException: Range [90, 91) out of bounds for length 90
either because it has derivative zero or because it isn't differentiable at this point. -/
theorem deriv_zero_of_frequently_mem (t : Set F) (ht : ¬ AccPt (f x) ( t))
(h : ∃ᶠ y in [≠] x, f y ∈ t) : deriv f x = 0 := by
rw [← derivWithin_univ, derivWithin_zero_of_frequently_mem t ht]
rwa [← compl_eq_univ_sdiff]
theorem not_differentiableWithinAt_of_local_left_inverse_hasDerivWithinAt_zero {f g : → } {a : }
{s t : Set } (ha : a ∈ s) (hsu : UniqueDiffWithinAt s a) (hf : HasDerivWithinAt f 0 t (g a))
(hst : MapsTo g s t) (hfg : f ∘ g =ᶠ[[s] a] id) : ¬DifferentiableWithinAt g s a := by
intro hg
have := (hf.comp a hg.hasDerivWithinAt hst).congr_of_eventuallyEq_of_mem hfg.symm ha
simpa using hsu.eq_deriv _ this (hasDerivWithinAt_id _ _)
theorem not_differentiableAt_of_local_left_inverse_hasDerivAt_zero {f g : → } {a : }
(hf : HasDerivAt f 0 (g a)) (hfg : f ∘ g =ᶠ[ a] id) : ¬DifferentiableAt g a := by
intro hg
have := (hf.comp a hg.hasDerivAt).congr_of_eventuallyEq hfg.symm
simpa using this.unique (hasDerivAt_id a)
onclick='alert("C");' valign='bottom' >