Download data/lean/OAI/Analysis/Fourier/SquareFunction/Square/ExtensionDense.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.07 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/Square/ExtensionDense.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Fourier/SquareFunction/Square/ExtensionDense.lean
-
curl -L -o ExtensionDense.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Fourier/SquareFunction/Square/ExtensionDense.lean
2.07 kB
| import Mathlib | |
| noncomputable section | |
| open Set Filter | |
| open scoped Topology | |
| namespace OAI.Analysis.Fourier.SquareFunction | |
| /-- A Lipschitz map on a dense, possibly redundantly indexed core has a | |
| unique continuous extension to the ambient space. No injectivity or | |
| completion of the core is assumed. -/ | |
| theorem exists_lipschitz_extension_dense | |
| {I A B : Type*} [PseudoMetricSpace A] [MetricSpace B] [CompleteSpace B] | |
| (i : I β A) (hi : DenseRange i) (f : I β B) (C : NNReal) | |
| (hf : β x y, dist (f x) (f y) β€ C * dist (i x) (i y)) : | |
| β F : A β B, LipschitzWith C F β§ (β x, F (i x) = f x) β§ | |
| β G : A β B, Continuous G β (β x, G (i x) = f x) β G = F := by | |
| let g : Set.range i β B := fun x => f x.property.choose | |
| have hg (x : I) : g β¨i x,β¨x,rflβ©β© = f x := by | |
| apply dist_eq_zero.mp | |
| apply le_antisymm _ dist_nonneg | |
| simpa only [g, (show i (Exists.choose (show β y, i y = i x from β¨x,rflβ©)) = i x from | |
| Exists.choose_spec (show β y, i y = i x from β¨x,rflβ©)),dist_self,mul_zero] using | |
| hf (Exists.choose (show β y, i y = i x from β¨x,rflβ©)) x | |
| have hglip : LipschitzWith C g := by | |
| apply LipschitzWith.of_dist_le_mul | |
| intro x y | |
| simpa only [g,x.property.choose_spec,y.property.choose_spec,Subtype.dist_eq] using | |
| hf x.property.choose y.property.choose | |
| let F := hi.extend g | |
| have hc : Continuous F := (hi.uniformContinuous_extend hglip.uniformContinuous).continuous | |
| have hFi (x : I) : F (i x) = f x := | |
| (hi.extend_of_ind hglip.uniformContinuous β¨i x,β¨x,rflβ©β©).trans (hg x) | |
| have hF : LipschitzWith C F := by | |
| apply LipschitzWith.of_dist_le_mul | |
| intro x y | |
| refine hi.induction_onβ ?_ ?_ x y | |
| Β· exact isClosed_le (hc.fst'.dist hc.snd') | |
| (continuous_const.mul (continuous_fst.dist continuous_snd)) | |
| Β· intro a b | |
| rw [hFi,hFi] | |
| exact hf a b | |
| refine β¨F,hF,hFi,?_β© | |
| intro G hG hGi | |
| funext x | |
| exact hi.induction_on x (isClosed_eq hG hc) (fun a => (hGi a).trans (hFi a).symm) | |
| end OAI.Analysis.Fourier.SquareFunction | |