Download data/lean/OAI/AlgebraicGeometry/CycleClass/Geometric/DerivativePuncturedHomotopy.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.64 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/CycleClass/Geometric/DerivativePuncturedHomotopy.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/CycleClass/Geometric/DerivativePuncturedHomotopy.lean
-
curl -L -o DerivativePuncturedHomotopy.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/CycleClass/Geometric/DerivativePuncturedHomotopy.lean
6.64 kB
| import OAI.AlgebraicGeometry.CycleClass.Geometric.NormalSphere | |
| import Mathlib.Analysis.Calculus.FDeriv.Equiv | |
| /-! # Derivative Punctured Homotopy -/ | |
| namespace OAI.AlgebraicGeometry.CycleClass.Geometric.DerivativePuncturedHomotopy.Cycles | |
| noncomputable section | |
| /-! | |
| # A differentiable germ and its invertible derivative on a punctured ball | |
| An invertible derivative controls the error relative to the derivative's own | |
| norm. On a sufficiently small punctured ball, the straight line between the | |
| translated map and its derivative consequently avoids zero. This constructs | |
| the local topological homotopy needed for comparing nonlinear coordinate | |
| changes with their linear derivatives. No local orientation class or excision | |
| theorem is assumed. | |
| -/ | |
| open Filter Set | |
| open scoped _root_.Topology | |
| variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] | |
| /-- The derivative error is eventually at most half the derivative norm. -/ | |
| theorem eventually_derivative_remainder_small {f : E β F} (L : E βL[β] F) | |
| (hf : HasFDerivAt f (L : E βL[β] F) 0) : | |
| βαΆ x in π (0 : E), βf x - f 0 - L xβ β€ (1 / 2 : β) * βL xβ := by | |
| have h := (hf.isEquivalent_sub L.toHomeomorph.isInducing).isLittleO | |
| simpa only [Pi.sub_apply, sub_zero, ContinuousLinearEquiv.coe_coe] using | |
| h.bound (by norm_num : (0 : β) < 1 / 2) | |
| /-- A perturbation by at most half the norm stays away from zero throughout | |
| the straight-line interpolation. -/ | |
| theorem straightLine_ne_zero_of_half_norm {u v : F} (hu : u β 0) | |
| (herror : βv - uβ β€ (1 / 2 : β) * βuβ) (t : unitInterval) : | |
| u + (t : β) β’ (v - u) β 0 := by | |
| intro hzero | |
| have hnorm : βuβ = β(t : β) β’ (v - u)β := by | |
| calc | |
| βuβ = β-((t : β) β’ (v - u))β := congrArg norm (eq_neg_of_add_eq_zero_left hzero) | |
| _ = β(t : β) β’ (v - u)β := norm_neg _ | |
| have hbound : β(t : β) β’ (v - u)β β€ (1 / 2 : β) * βuβ := by | |
| calc | |
| β(t : β) β’ (v - u)β = (t : β) * βv - uβ := by | |
| rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg t.property.1] | |
| _ β€ βv - uβ := mul_le_of_le_one_left (norm_nonneg _) t.property.2 | |
| _ β€ (1 / 2 : β) * βuβ := herror | |
| have hpos : 0 < βuβ := norm_pos_iff.mpr hu | |
| linarith | |
| /-- The actual punctured ball in a normed model space. -/ | |
| abbrev PuncturedBall (E : Type*) [NormedAddCommGroup E] (r : β) := | |
| {x : E // x β 0 β§ βxβ < r} | |
| /-- Restriction of an invertible linear derivative to a punctured ball. -/ | |
| def puncturedBallLinearMap (L : E βL[β] F) (r : β) : | |
| C(PuncturedBall E r, NormalSphere.Cycles.PuncturedNormal F) where | |
| toFun x := β¨L x.1, by | |
| change L x.1 β 0 | |
| intro hx | |
| exact x.property.1 (L.injective (by simpa only [map_zero] using hx))β© | |
| continuous_toFun := by | |
| apply Continuous.subtype_mk | |
| exact L.continuous.comp continuous_subtype_val | |
| /-- Restriction of the translated nonlinear map; the quantitative error | |
| estimate proves its values avoid zero. -/ | |
| def puncturedBallTranslatedMap {f : E β F} (L : E βL[β] F) (r : β) | |
| (hc : ContinuousOn f (Metric.ball 0 r)) | |
| (he : β x, βxβ < r β βf x - f 0 - L xβ β€ (1 / 2 : β) * βL xβ) : | |
| C(PuncturedBall E r, NormalSphere.Cycles.PuncturedNormal F) where | |
| toFun x := β¨f x.1 - f 0, by | |
| change f x.1 - f 0 β 0 | |
| have hL : L x.1 β 0 := by | |
| intro hx | |
| exact x.property.1 (L.injective (by simpa only [map_zero] using hx)) | |
| simpa using straightLine_ne_zero_of_half_norm hL (he x.1 x.property.2) | |
| (1 : unitInterval)β© | |
| continuous_toFun := by | |
| have hfc : Continuous (fun x : PuncturedBall E r => f x.1) := by | |
| apply hc.comp_continuous continuous_subtype_val | |
| intro x | |
| simpa only [Metric.mem_ball, dist_zero_right] using x.property.2 | |
| exact (hfc.sub continuous_const).subtype_mk _ | |
| /-- The actual zero-avoiding homotopy between the derivative and the | |
| translated nonlinear map on the chosen punctured ball. -/ | |
| def derivativePuncturedBallHomotopy {f : E β F} (L : E βL[β] F) (r : β) | |
| (hc : ContinuousOn f (Metric.ball 0 r)) | |
| (he : β x, βxβ < r β βf x - f 0 - L xβ β€ (1 / 2 : β) * βL xβ) : | |
| ContinuousMap.Homotopy (puncturedBallLinearMap L r) | |
| (puncturedBallTranslatedMap L r hc he) where | |
| toFun z := β¨L z.2.1 + (z.1 : β) β’ (f z.2.1 - f 0 - L z.2.1), by | |
| change L z.2.1 + (z.1 : β) β’ ((f z.2.1 - f 0) - L z.2.1) β 0 | |
| apply straightLine_ne_zero_of_half_norm | |
| Β· intro hx | |
| exact z.2.property.1 (L.injective (by simpa only [map_zero] using hx)) | |
| Β· exact he z.2.1 z.2.property.2β© | |
| continuous_toFun := by | |
| have hfc : Continuous (fun x : PuncturedBall E r => f x.1) := by | |
| apply hc.comp_continuous continuous_subtype_val | |
| intro x | |
| simpa only [Metric.mem_ball, dist_zero_right] using x.property.2 | |
| exact ((L.continuous.comp (continuous_subtype_val.comp continuous_snd)).add | |
| ((continuous_subtype_val.comp continuous_fst).smul | |
| (((hfc.comp continuous_snd).sub continuous_const).sub | |
| (L.continuous.comp (continuous_subtype_val.comp continuous_snd))))).subtype_mk _ | |
| map_zero_left x := by | |
| apply Subtype.ext | |
| simp [puncturedBallLinearMap] | |
| map_one_left x := by | |
| apply Subtype.ext | |
| simp [puncturedBallTranslatedMap] | |
| /-- Differentiability with an invertible derivative supplies a positive | |
| radius on which the nonlinear germ has the explicit punctured homotopy. -/ | |
| theorem exists_derivativePuncturedBallHomotopy {f : E β F} | |
| (L : E βL[β] F) (hf : HasFDerivAt f (L : E βL[β] F) 0) | |
| {U : Set E} (hU : U β π (0 : E)) (hc : ContinuousOn f U) : | |
| β r : β, 0 < r β§ β (hc' : ContinuousOn f (Metric.ball 0 r)) | |
| (he : β x, βxβ < r β βf x - f 0 - L xβ β€ (1 / 2 : β) * βL xβ), | |
| Nonempty (ContinuousMap.Homotopy (puncturedBallLinearMap L r) | |
| (puncturedBallTranslatedMap L r hc' he)) := by | |
| have hmem : U β© {x | βf x - f 0 - L xβ β€ (1 / 2 : β) * βL xβ} β | |
| π (0 : E) := inter_mem hU (eventually_derivative_remainder_small L hf) | |
| obtain β¨r, hr, hballβ© := Metric.mem_nhds_iff.mp hmem | |
| have hc' : ContinuousOn f (Metric.ball 0 r) := hc.mono fun x hx => (hball hx).1 | |
| have he : β x, βxβ < r β βf x - f 0 - L xβ β€ (1 / 2 : β) * βL xβ := by | |
| intro x hx | |
| exact (hball (by simpa only [Metric.mem_ball, dist_zero_right] using hx)).2 | |
| exact β¨r, hr, hc', he, β¨derivativePuncturedBallHomotopy L r hc' heβ©β© | |
| end | |
| end OAI.AlgebraicGeometry.CycleClass.Geometric.DerivativePuncturedHomotopy.Cycles | |