Download data/lean/OAI/Geometry/Cannon/Conformal/OpenMapMaxSphere.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 31.3 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Cannon/Conformal/OpenMapMaxSphere.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Cannon/Conformal/OpenMapMaxSphere.lean
-
curl -L -o OpenMapMaxSphere.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Cannon/Conformal/OpenMapMaxSphere.lean
31.3 kB
| import Mathlib | |
| import OAI.Geometry.Cannon.Conformal.CutoffBump | |
| namespace OAI | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| section | |
| noncomputable section | |
| noncomputable section | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped Topology | |
| noncomputable section | |
| noncomputable section | |
| noncomputable section | |
| noncomputable section | |
| open Set Metric MeasureTheory Filter Complex | |
| open scoped Topology | |
| namespace CannonPlane | |
| lemma openMap_exists_max_on_sphere {u : β β β} (hu : Continuous u) | |
| (ho : IsOpenMap u) (c : β) {r : β} (hr : 0 < r) : | |
| β z β sphere c r, β x β closedBall c r, u x β€ u z := by | |
| obtain β¨z,hz,hmaxβ© := (isCompact_closedBall c r).exists_isMaxOn | |
| β¨c,mem_closedBall_self hr.leβ© hu.continuousOn | |
| refine β¨z,?_,hmaxβ© | |
| have hzle : dist z c β€ r := hz | |
| apply mem_sphere.mpr | |
| by_contra he | |
| have hzlt : dist z c < r := lt_of_le_of_ne hzle he | |
| have hop : IsOpen (u '' ball c r) := ho _ isOpen_ball | |
| obtain β¨Ξ΅,hΞ΅,hsubβ© := Metric.isOpen_iff.mp hop (u z) β¨z,hzlt,rflβ© | |
| have hmem : u z+Ξ΅/2 β ball (u z) Ξ΅ := by | |
| rw [mem_ball,Real.dist_eq] | |
| have ha : |u z+Ξ΅/2-u z|=Ξ΅/2 := by rw [add_sub_cancel_left,abs_of_pos (by linarith)] | |
| rw [ha]; linarith | |
| obtain β¨w,hw,hewβ© := hsub hmem | |
| have hh : u w β€ u z := hmax (ball_subset_closedBall hw) | |
| rw [hew] at hh | |
| linarith | |
| lemma openMap_exists_min_on_sphere {u : β β β} (hu : Continuous u) | |
| (ho : IsOpenMap u) (c : β) {r : β} (hr : 0 < r) : | |
| β z β sphere c r, β x β closedBall c r, u z β€ u x := by | |
| obtain β¨z,hz,hhβ© := openMap_exists_max_on_sphere hu.neg | |
| ((Homeomorph.neg β).isOpenMap.comp ho) c hr | |
| exact β¨z,hz,fun x hx => neg_le_neg_iff.mp (hh x hx)β© | |
| lemma homeomorph_disk_oscillation (F : β ββ β) (c : β) {r L : β} | |
| (hr : 0 < r) (hb : β x β sphere c r, β y β sphere c r, dist (F x) (F y) β€ L) : | |
| β x β closedBall c r, β y β closedBall c r, dist (F x) (F y) β€ 2*L := by | |
| obtain β¨a,ha,hamaxβ© := openMap_exists_max_on_sphere (continuous_re.comp F.continuous) | |
| (isOpenMap_re.comp F.isOpenMap) c hr | |
| obtain β¨b,hb',hbminβ© := openMap_exists_min_on_sphere (continuous_re.comp F.continuous) | |
| (isOpenMap_re.comp F.isOpenMap) c hr | |
| obtain β¨d,hd,hdmaxβ© := openMap_exists_max_on_sphere (continuous_im.comp F.continuous) | |
| (isOpenMap_im.comp F.isOpenMap) c hr | |
| obtain β¨e,he,heminβ© := openMap_exists_min_on_sphere (continuous_im.comp F.continuous) | |
| (isOpenMap_im.comp F.isOpenMap) c hr | |
| intro x hx y hy | |
| have hre : |(F x-F y).re| β€ L := by | |
| have hv := (abs_re_le_norm (F a-F b)).trans (show βF a-F bβ β€ L by simpa only [dist_eq_norm] using hb a ha b hb') | |
| rw [abs_le] at hv β’ | |
| simp only [sub_re] at hv β’ | |
| have h1 := hamax x hx | |
| have h2 := hamax y hy | |
| have h3 := hbmin x hx | |
| have h4 := hbmin y hy | |
| dsimp only [Function.comp_def] at h1 h2 h3 h4 | |
| constructor <;> linarith [hv.2] | |
| have him : |(F x-F y).im| β€ L := by | |
| have hv := (abs_im_le_norm (F d-F e)).trans (show βF d-F eβ β€ L by simpa only [dist_eq_norm] using hb d hd e he) | |
| rw [abs_le] at hv β’ | |
| simp only [sub_im] at hv β’ | |
| have h1 := hdmax x hx | |
| have h2 := hdmax y hy | |
| have h3 := hemin x hx | |
| have h4 := hemin y hy | |
| dsimp only [Function.comp_def] at h1 h2 h3 h4 | |
| constructor <;> linarith [hv.2] | |
| rw [dist_eq_norm] | |
| linarith [norm_le_abs_re_add_abs_im (F x-F y)] | |
| lemma integral_sq_cauchy {f : β β β} (hf : Continuous f) {a b : β} (hab : a < b) : | |
| (β« t in a..b, f t)^2 β€ (b-a)*(β« t in a..b, (f t)^2) := by | |
| let aa := β« t in a..b, f t | |
| let bb := β« t in a..b, (f t)^2 | |
| let m := aa/(b-a) | |
| have hfi := hf.intervalIntegrable (ΞΌ := volume) a b | |
| have hf2 : IntervalIntegrable (fun t => (f t)^2) volume a b := | |
| (hf.pow 2).intervalIntegrable a b | |
| have he : (β« t in a..b, (f t-m)^2)=bb-2*m*aa+m^2*(b-a) := by | |
| calc | |
| _ = β« t in a..b, ((f t)^2-2*m*f t+m^2) := | |
| intervalIntegral.integral_congr fun _ _ => by ring | |
| _ = bb-2*m*aa+m^2*(b-a) := by | |
| rw [intervalIntegral.integral_add (hf2.sub (hfi.const_mul _)) intervalIntegrable_const, | |
| intervalIntegral.integral_sub hf2 (hfi.const_mul _),intervalIntegral.integral_const_mul, | |
| intervalIntegral.integral_const] | |
| simp only [smul_eq_mul,aa,bb] | |
| ring | |
| have hp : 0 β€ β« t in a..b, (f t-m)^2 := | |
| intervalIntegral.integral_nonneg hab.le (fun _ _ => sq_nonneg _) | |
| rw [he] at hp | |
| have ht : 0 < b-a := sub_pos.mpr hab | |
| have hid : (b-a)*(bb-2*m*aa+m^2*(b-a))=(b-a)*bb-aa^2 := by | |
| dsimp only [m] | |
| field_simp | |
| ring | |
| have h := mul_nonneg ht.le hp | |
| rw [hid] at h | |
| dsimp only [aa,bb] at h | |
| linarith | |
| lemma circle_derivative_bound {F : β β β} (hf : ContDiff β 1 F) (c : β) | |
| {r : β} (hr : 0 β€ r) (ΞΈ : β) : | |
| βderiv (fun t => F (circleMap c r t)) ΞΈβ β€ r*βfderiv β F (circleMap c r ΞΈ)β := by | |
| have hd := (hf.differentiable (by simp) _).hasFDerivAt.comp_hasDerivAt ΞΈ | |
| (hasDerivAt_circleMap c r ΞΈ) | |
| change βderiv (F β circleMap c r) ΞΈβ β€ _ | |
| rw [hd.deriv] | |
| apply le_trans (ContinuousLinearMap.le_opNorm _ _) | |
| rw [norm_mul,norm_circleMap_zero,Complex.norm_I,abs_of_nonneg hr,mul_one,mul_comm] | |
| lemma circle_oscillation_bound {F : β β β} (hf : ContDiff β 1 F) (c : β) | |
| {r : β} (hr : 0 < r) : | |
| β x β sphere c r, β y β sphere c r, | |
| dist (F x) (F y) β€ r*(β« t in (-Real.pi)..Real.pi, βfderiv β F (circleMap c r t)β) := by | |
| let g : β β β := fun t => r*βfderiv β F (circleMap c r t)β | |
| have hg : Continuous g := continuous_const.mul | |
| ((hf.continuous_fderiv (by simp)).comp (continuous_circleMap c r)).norm | |
| have hcircle : circleMap c r '' Ioc (-Real.pi) Real.pi=sphere c r := by | |
| have h := (periodic_circleMap c r).image_Ioc Real.two_pi_pos (-Real.pi) | |
| rw [range_circleMap,abs_of_pos hr] at h | |
| convert h using 2; ring_nf | |
| intro x hx y hy | |
| rw [β hcircle] at hx hy | |
| obtain β¨a,ha,rflβ© := hx | |
| obtain β¨b,hb,rflβ© := hy | |
| have hbound (a b : β) (ha : a β Ioc (-Real.pi) Real.pi) | |
| (hb : b β Ioc (-Real.pi) Real.pi) (hab : a β€ b) : | |
| βF (circleMap c r b)-F (circleMap c r a)β β€ β« t in (-Real.pi)..Real.pi, g t := by | |
| apply (norm_sub_le_integral_of_norm_deriv_le_of_le hab | |
| (hf.continuous.comp (continuous_circleMap c r)).continuousOn | |
| ((hf.differentiable (by simp)).comp (differentiable_circleMap c r)).differentiableOn | |
| (.of_forall fun t _ => circle_derivative_bound hf c hr.le t) (hg.intervalIntegrable a b)).trans | |
| exact intervalIntegral.integral_mono_interval ha.1.le hab hb.2 | |
| (.of_forall fun t => mul_nonneg hr.le (norm_nonneg _)) | |
| (hg.intervalIntegrable _ _) | |
| rw [β intervalIntegral.integral_const_mul] | |
| change dist (F (circleMap c r a)) (F (circleMap c r b)) β€ β« t in (-Real.pi)..Real.pi, g t | |
| rcases le_total a b with hab | hba | |
| Β· rw [dist_eq_norm, norm_sub_rev]; exact hbound a b ha hb hab | |
| Β· rw [dist_eq_norm]; exact hbound b a hb ha hba | |
| lemma homeomorph_circle_energy (F : β ββ β) (hf : ContDiff β 1 (F : β β β)) | |
| (c : β) {r : β} (hr : 0 < r) : | |
| β x β closedBall c r, β y β closedBall c r, | |
| dist (F x) (F y)^2 β€ 8*Real.pi*r^2* | |
| (β« t in (-Real.pi)..Real.pi, βfderiv β F (circleMap c r t)β^2) := by | |
| intro x hx y hy | |
| have hosc := homeomorph_disk_oscillation F c hr (circle_oscillation_bound hf c hr) x hx y hy | |
| have hc : Continuous (fun t => βfderiv β F (circleMap c r t)β) := | |
| ((hf.continuous_fderiv (by simp)).comp (continuous_circleMap c r)).norm | |
| have hcs := integral_sq_cauchy hc (neg_lt_self Real.pi_pos) | |
| have hn : 0 β€ β« t in (-Real.pi)..Real.pi, βfderiv β F (circleMap c r t)β := | |
| intervalIntegral.integral_nonneg (neg_le_self Real.pi_pos.le) (fun _ _ => norm_nonneg _) | |
| have hs : dist (F x) (F y)^2 β€ (2*(r*(β« t in (-Real.pi)..Real.pi, | |
| βfderiv β F (circleMap c r t)β)))^2 := sq_le_sqβ dist_nonneg (by positivity) |>.mpr hosc | |
| have hm := mul_le_mul_of_nonneg_left hcs (show 0 β€ 4*r^2 by positivity) | |
| nlinarith | |
| lemma polar_circle (p : β Γ β) : Complex.polarCoord.symm p=circleMap 0 p.1 p.2 := by | |
| rw [Complex.polarCoord_symm_apply,circleMap_zero,Complex.exp_mul_I,Complex.ofReal_cos,Complex.ofReal_sin] | |
| lemma continuous_polar_circle : Continuous (fun p : β Γ β => circleMap 0 p.1 p.2) := by | |
| simp only [circleMap] | |
| fun_prop | |
| lemma disk_polar_integral_zero {g : β β β} (hg : Continuous g) {R : β} (hR : 0 β€ R) : | |
| (β« z in closedBall (0 : β) R, g z) = | |
| β« r in (0 : β)..R, r*(β« t in (-Real.pi)..Real.pi, g (circleMap 0 r t)) := by | |
| let A : Set (β Γ β) := Ioc 0 R ΓΛ’ Ioo (-Real.pi) Real.pi | |
| let T : Set (β Γ β) := Ioi 0 ΓΛ’ Ioo (-Real.pi) Real.pi | |
| let q : β Γ β β β := fun p => p.1*g (circleMap 0 p.1 p.2) | |
| have hA : MeasurableSet A := measurableSet_Ioc.prod measurableSet_Ioo | |
| have hT : MeasurableSet T := measurableSet_Ioi.prod measurableSet_Ioo | |
| have hq : Continuous q := continuous_fst.mul (hg.comp continuous_polar_circle) | |
| have hi : IntegrableOn q A := | |
| (hq.continuousOn.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set | |
| (Set.prod_mono Ioc_subset_Icc_self Ioo_subset_Icc_self) | |
| have hid (p : β Γ β) : T.indicator | |
| (fun p => p.1*(closedBall (0 : β) R).indicator g (Complex.polarCoord.symm p)) p = | |
| A.indicator q p := by | |
| by_cases ht : p β T | |
| Β· rw [Set.indicator_of_mem ht] | |
| have hr : 0 < p.1 := ht.1 | |
| have hc : Complex.polarCoord.symm p β closedBall (0 : β) R β p.1 β€ R := by | |
| simp only [mem_closedBall,dist_zero_right,Complex.norm_polarCoord_symm,abs_of_pos hr] | |
| by_cases hle : p.1 β€ R | |
| Β· rw [Set.indicator_of_mem (hc.mpr hle),Set.indicator_of_mem (show p β A from β¨β¨hr,hleβ©,ht.2β©)] | |
| simp only [q,polar_circle] | |
| Β· rw [Set.indicator_of_notMem (not_iff_not.mpr hc |>.mpr hle), | |
| Set.indicator_of_notMem (show p β A from fun hp => hle hp.1.2),mul_zero] | |
| Β· rw [Set.indicator_of_notMem ht,Set.indicator_of_notMem | |
| (show p β A from fun hp => ht β¨hp.1.1,hp.2β©)] | |
| calc | |
| _ = β« z, (closedBall (0 : β) R).indicator g z := (integral_indicator measurableSet_closedBall).symm | |
| _ = β« p in T, p.1*(closedBall (0 : β) R).indicator g (Complex.polarCoord.symm p) := by | |
| simpa only [T,smul_eq_mul,_root_.polarCoord] using | |
| (Complex.integral_comp_polarCoord_symm ((closedBall (0 : β) R).indicator g)).symm | |
| _ = β« p, A.indicator q p := by rw [β integral_indicator hT]; exact integral_congr_ae (.of_forall hid) | |
| _ = β« p in A, q p := integral_indicator hA | |
| _ = β« r in Ioc (0 : β) R, β« t in Ioo (-Real.pi) Real.pi, r*g (circleMap 0 r t) := by | |
| rw [Measure.volume_eq_prod] at hi β’ | |
| exact setIntegral_prod q hi | |
| _ = β« r in (0 : β)..R, r*(β« t in (-Real.pi)..Real.pi, g (circleMap 0 r t)) := by | |
| rw [intervalIntegral.integral_of_le hR] | |
| apply setIntegral_congr_fun measurableSet_Ioc | |
| intro r hr | |
| dsimp only | |
| rw [integral_const_mul,β integral_Ioc_eq_integral_Ioo, | |
| intervalIntegral.integral_of_le (neg_le_self Real.pi_pos.le)] | |
| lemma translated_disk_integral (g : β β β) (c : β) (R : β) : | |
| (β« z in closedBall (0 : β) R, g (c+z)) = β« z in closedBall c R, g z := by | |
| rw [β integral_indicator measurableSet_closedBall,β integral_indicator measurableSet_closedBall] | |
| calc | |
| _ = β« z, (closedBall c R).indicator g (c+z) := by | |
| apply integral_congr_ae | |
| filter_upwards [] with z | |
| have he : c+z β closedBall c R β z β closedBall (0 : β) R := by | |
| simp only [mem_closedBall,dist_eq_norm,add_sub_cancel_left,sub_zero] | |
| by_cases hz : z β closedBall (0 : β) R | |
| Β· rw [Set.indicator_of_mem hz,Set.indicator_of_mem (he.mpr hz)] | |
| Β· rw [Set.indicator_of_notMem hz,Set.indicator_of_notMem (not_iff_not.mpr he |>.mpr hz)] | |
| _ = _ := integral_add_left_eq_self _ c | |
| lemma disk_polar_integral {g : β β β} (hg : Continuous g) (c : β) {R : β} (hR : 0 β€ R) : | |
| (β« z in closedBall c R, g z) = | |
| β« r in (0 : β)..R, r*(β« t in (-Real.pi)..Real.pi, g (circleMap c r t)) := by | |
| rw [β translated_disk_integral g c R] | |
| have hc : Continuous (fun z : β => g (c+z)) := hg.comp (continuous_const.add continuous_id) | |
| simpa only [circleMap,zero_add] using disk_polar_integral_zero hc hR | |
| lemma continuous_circle_integral {g : β β β} (hg : Continuous g) (c : β) : | |
| Continuous (fun r : β => β« t in (-Real.pi)..Real.pi, g (circleMap c r t)) := by | |
| apply intervalIntegral.continuous_parametric_intervalIntegral_of_continuous _ continuous_const | |
| exact hg.comp (by simp only [circleMap]; fun_prop) | |
| lemma approximate_circle_energy (F : β ββ β) {g : β β β} | |
| (hg : ContDiff β 1 g) (c : β) {r : β} (hr : 0 < r) | |
| (x y : β) (hx : x β closedBall c r) (hy : y β closedBall c r) | |
| (happ : β z β sphere c r, dist (F z) (g z) β€ dist (F x) (F y)/8) : | |
| dist (F x) (F y)^2 β€ 32*Real.pi*r^2* | |
| (β« t in (-Real.pi)..Real.pi, βfderiv β g (circleMap c r t)β^2) := by | |
| let I := β« t in (-Real.pi)..Real.pi, βfderiv β g (circleMap c r t)β | |
| have hb : β a β sphere c r, β b β sphere c r, | |
| dist (F a) (F b) β€ r*I+dist (F x) (F y)/4 := by | |
| intro a ha b hb | |
| have ho := circle_oscillation_bound hg c hr a ha b hb | |
| have ht := dist_triangle4 (F a) (g a) (g b) (F b) | |
| have ha' := happ a ha | |
| have hb' := happ b hb | |
| rw [dist_comm (g b) (F b)] at ht | |
| dsimp only [I] at * | |
| linarith | |
| have hosc := homeomorph_disk_oscillation F c hr hb x hx y hy | |
| have hc : Continuous (fun t => βfderiv β g (circleMap c r t)β) := | |
| ((hg.continuous_fderiv (by simp)).comp (continuous_circleMap c r)).norm | |
| have hcs := integral_sq_cauchy hc (neg_lt_self Real.pi_pos) | |
| have hn : 0 β€ I := intervalIntegral.integral_nonneg | |
| (neg_le_self Real.pi_pos.le) (fun _ _ => norm_nonneg _) | |
| have hd : dist (F x) (F y) β€ 4*(r*I) := by linarith | |
| have hs : dist (F x) (F y)^2 β€ (4*(r*I))^2 := | |
| (sq_le_sqβ dist_nonneg (by positivity)).mpr hd | |
| have hm := mul_le_mul_of_nonneg_left hcs (show 0 β€ 16*r^2 by positivity) | |
| dsimp only [I] at hs | |
| nlinarith | |
| lemma approximate_log_energy (F : β ββ β) {g : β β β} | |
| (hg : ContDiff β 1 g) (c : β) {s R : β} (hs : 0 < s) (hsR : s β€ R) | |
| (x y : β) (hx : x β closedBall c s) (hy : y β closedBall c s) | |
| (happ : β z β closedBall c R, dist (F z) (g z) β€ dist (F x) (F y)/8) : | |
| dist (F x) (F y)^2*Real.log (R/s) β€ | |
| 32*Real.pi*(β« z in closedBall c R, βfderiv β g zβ^2) := by | |
| let e : β β β := fun r => r*(β« t in (-Real.pi)..Real.pi, βfderiv β g (circleMap c r t)β^2) | |
| have hg' : Continuous (fun z => βfderiv β g zβ^2) := (hg.continuous_fderiv (by simp)).norm.pow 2 | |
| have he : Continuous e := continuous_id.mul (continuous_circle_integral hg' c) | |
| have hi : IntervalIntegrable (fun r => dist (F x) (F y)^2/r) volume s R := by | |
| apply ContinuousOn.intervalIntegrable | |
| apply continuousOn_const.div continuousOn_id | |
| intro r hr | |
| rw [uIcc_of_le hsR] at hr | |
| exact ne_of_gt (hs.trans_le hr.1) | |
| have hb : (β« r in s..R, dist (F x) (F y)^2/r) β€ β« r in s..R, 32*Real.pi*e r := by | |
| apply intervalIntegral.integral_mono_on hsR hi (he.const_mul _ |>.intervalIntegrable s R) | |
| intro r hr | |
| have hrp := hs.trans_le hr.1 | |
| have h := approximate_circle_energy F hg c hrp x y | |
| (closedBall_subset_closedBall hr.1 hx) (closedBall_subset_closedBall hr.1 hy) | |
| (fun z hz => happ z (closedBall_subset_closedBall hr.2 (sphere_subset_closedBall hz))) | |
| apply (div_le_iffβ hrp).mpr | |
| dsimp only [e] | |
| nlinarith | |
| have hm : (β« r in s..R, e r) β€ β« r in (0 : β)..R, e r := by | |
| apply intervalIntegral.integral_mono_interval hs.le hsR le_rfl _ (he.intervalIntegrable _ _) | |
| apply ae_restrict_of_forall_mem measurableSet_Ioc | |
| intro r hr | |
| exact mul_nonneg hr.1.le (intervalIntegral.integral_nonneg (neg_le_self Real.pi_pos.le) | |
| (fun _ _ => sq_nonneg _)) | |
| rw [show (β« r in s..R, dist (F x) (F y)^2/r)=dist (F x) (F y)^2*Real.log (R/s) by | |
| simp only [div_eq_mul_inv] | |
| rw [intervalIntegral.integral_const_mul,integral_inv_of_pos hs (hs.trans_le hsR)] | |
| simp only [div_eq_mul_inv]] at hb | |
| rw [intervalIntegral.integral_const_mul] at hb | |
| apply hb.trans | |
| rw [disk_polar_integral hg' c (hs.le.trans hsR)] | |
| exact mul_le_mul_of_nonneg_left hm (by positivity) | |
| end CannonPlane | |
| namespace CannonMetricQC | |
| open MeasureTheory Set Metric Filter Function ContinuousLinearMap | |
| open scoped Topology Convolution ENNReal NNReal | |
| theorem weak_homeomorph_log_energy (F : β ββ β) {V W : β β β} | |
| (hVm : Measurable V) (hWm : Measurable W) | |
| (hV : LocallyIntegrable V volume) (hW : LocallyIntegrable W volume) | |
| (hVs : LocallyIntegrable (fun x => βV xβ^2) volume) | |
| (hWs : LocallyIntegrable (fun x => βW xβ^2) volume) | |
| (hv : β Ο : SchwartzMap β β, HasCompactSupport (Ο : β β β) β | |
| (β« z, Ο z*V z)= -(β« z, fderiv β (Ο : β β β) z 1*F z)) | |
| (hw : β Ο : SchwartzMap β β, HasCompactSupport (Ο : β β β) β | |
| (β« z, Ο z*W z)= -(β« z, fderiv β (Ο : β β β) z Complex.I*F z)) | |
| (c : β) {s R T : β} (hs : 0 < s) (hsR : s β€ R) (hRT : R < T) | |
| (x y : β) (hx : x β closedBall c s) (hy : y β closedBall c s) : | |
| ENNReal.ofReal (dist (F x) (F y)^2*Real.log (R/s)) β€ | |
| ENNReal.ofReal (64*Real.pi)*(β«β» z in closedBall c T, | |
| ENNReal.ofReal (βV zβ^2+βW zβ^2)) := by | |
| by_cases he : F x=F y | |
| Β· simp [he] | |
| have hd : 0 < dist (F x) (F y)/8 := div_pos (dist_pos.mpr he) (by norm_num) | |
| have htu := tendstoLocallyUniformly_iff_forall_isCompact.mp | |
| (mollify_locally_uniform F.continuous) _ (isCompact_closedBall c R) | |
| have hu := Metric.tendstoUniformlyOn_iff.mp htu _ hd | |
| have hr := mollifier_radius_tendsto.eventually (gt_mem_nhds (sub_pos.mpr hRT)) | |
| obtain β¨n,hn,hnrβ© := (hu.and hr).exists | |
| have hl := CannonPlane.approximate_log_energy F | |
| ((mollify_smooth F.continuous.locallyIntegrable n).of_le (by simp)) c hs hsR x y hx hy | |
| (fun z hz => (hn z hz).le) | |
| have hE := mollify_opNorm_energy F.continuous hVm hWm hV hW hVs hWs hv hw n c R | |
| have hm : (β«β» z in closedBall c (R+(mollifier n).rOut), | |
| ENNReal.ofReal (βV zβ^2+βW zβ^2)) β€ | |
| β«β» z in closedBall c T, ENNReal.ofReal (βV zβ^2+βW zβ^2) := | |
| lintegral_mono_set (closedBall_subset_closedBall (by linarith)) | |
| calc | |
| _ β€ ENNReal.ofReal (32*Real.pi)* | |
| ENNReal.ofReal (β« z in closedBall c R, βfderiv β (mollify F n) zβ^2) := by | |
| simpa only [ENNReal.ofReal_mul (by positivity : 0 β€ 32*Real.pi)] using | |
| ENNReal.ofReal_le_ofReal hl | |
| _ β€ ENNReal.ofReal (32*Real.pi)*(2*(β«β» z in closedBall c T, | |
| ENNReal.ofReal (βV zβ^2+βW zβ^2))) := | |
| mul_le_mul_right (hE.trans (mul_le_mul_right hm 2)) _ | |
| _ = _ := by | |
| rw [β mul_assoc,β show ENNReal.ofReal (32*Real.pi*2)=ENNReal.ofReal (32*Real.pi)*2 by | |
| rw [ENNReal.ofReal_mul (by positivity),ENNReal.ofReal_ofNat]] | |
| congr 2; ring | |
| end CannonMetricQC | |
| noncomputable section | |
| namespace CannonMetricQC | |
| open Set Metric MeasureTheory Filter | |
| open scoped Topology ENNReal NNReal | |
| lemma WeakQS.two {f : β β β} {H : β} (hH : 0 β€ H) (hf : WeakQS f H) | |
| (x y z : β) (h : dist x y β€ 2*dist x z) : | |
| dist (f x) (f y) β€ H*(H+1)*dist (f x) (f z) := by | |
| let u := midpoint β x y | |
| have hxu : dist x u=dist x y/2 := by simp [u,dist_left_midpoint,div_eq_mul_inv,mul_comm] | |
| have hux : dist u x=dist x y/2 := by rw [dist_comm,hxu] | |
| have huy : dist u y=dist x y/2 := by simp [u,dist_midpoint_right,div_eq_mul_inv,mul_comm] | |
| have h1 := hf x u z (show dist x u β€ dist x z by rw [hxu]; linarith) | |
| have h2 := hf u y x (by rw [huy,hux]) | |
| rw [dist_comm (f u) (f x)] at h2 | |
| have h3 := dist_triangle (f x) (f u) (f y) | |
| have h4 := mul_le_mul_of_nonneg_left h1 (show 0 β€ H+1 by positivity) | |
| nlinarith | |
| lemma WeakQS.four {f : β β β} {H : β} (hH : 0 β€ H) (hf : WeakQS f H) | |
| (x y z : β) (h : dist x y β€ 4*dist x z) : | |
| dist (f x) (f y) β€ (H*(H+1))^2*dist (f x) (f z) := by | |
| let u := midpoint β x y | |
| have hxu : dist x u=dist x y/2 := by simp [u,dist_left_midpoint,div_eq_mul_inv,mul_comm] | |
| have h1 := hf.two hH x y u (by rw [hxu]; linarith) | |
| have h2 := hf.two hH x u z (by rw [hxu]; linarith) | |
| exact h1.trans (by nlinarith [mul_le_mul_of_nonneg_left h2 (show 0 β€ H*(H+1) by positivity)]) | |
| theorem imageArea_upper_four (f : β ββ β) {H : β} (hH : 0 < H) | |
| (hf : WeakQS f H) (x y : β) {R : β} (hR : R β€ 4*dist x y) : | |
| imageArea f (closedBall x R) β€ ENNReal.ofReal (Real.pi*(H*(H+1))^4)* | |
| ENNReal.ofReal (dist (f x) (f y)^2) := by | |
| have hsub : f '' closedBall x R β closedBall (f x) ((H*(H+1))^2*dist (f x) (f y)) := by | |
| rintro w β¨z,hz,rflβ© | |
| rw [mem_closedBall,dist_comm] | |
| apply hf.four hH.le | |
| exact (show dist x z β€ R by simpa only [mem_closedBall,dist_comm] using hz).trans hR | |
| rw [imageArea_apply f isClosed_closedBall.measurableSet] | |
| apply (measure_mono (ΞΌ:=volume) hsub).trans | |
| rw [Complex.volume_closedBall] | |
| have hpi : (NNReal.pi : ββ₯0β)=ENNReal.ofReal Real.pi := by | |
| rw [β NNReal.coe_real_pi,ENNReal.ofReal_coe_nnreal] | |
| rw [hpi,β ENNReal.ofReal_pow (by positivity),β ENNReal.ofReal_mul (by positivity), | |
| β ENNReal.ofReal_mul (by positivity)] | |
| apply ENNReal.ofReal_le_ofReal | |
| nlinarith | |
| end CannonMetricQC | |
| noncomputable section | |
| open MeasureTheory Set Metric Filter | |
| open scoped Topology ENNReal | |
| namespace CannonMetricQC | |
| theorem measure_le_of_closedBall_le (ΞΌ Ξ½ : Measure β) [IsLocallyFiniteMeasure ΞΌ] | |
| [IsLocallyFiniteMeasure Ξ½] | |
| (h : β x r, 0 < r β ΞΌ (closedBall x r) β€ Ξ½ (closedBall x r)) : ΞΌ β€ Ξ½ := by | |
| apply Measure.le_iff.mpr | |
| intro s _ | |
| apply (Besicovitch.vitaliFamily ΞΌ).measure_le_of_frequently_le Ξ½ | |
| Measure.AbsolutelyContinuous.rfl s | |
| intro x _ | |
| apply (Besicovitch.tendsto_filterAt ΞΌ x).frequently | |
| apply Filter.Eventually.frequently | |
| filter_upwards [self_mem_nhdsWithin] with r hr | |
| exact h x r hr | |
| lemma locallyIntegrable_density_locallyFinite {e : β β β} | |
| (he : LocallyIntegrable e volume) (hp : β x, 0 β€ e x) : | |
| IsLocallyFiniteMeasure (volume.withDensity (fun x => ENNReal.ofReal (e x))) where | |
| finiteAtNhds x := by | |
| refine β¨closedBall x 1,closedBall_mem_nhds x (by norm_num),?_β© | |
| rw [withDensity_apply _ isClosed_closedBall.measurableSet, | |
| β ofReal_integral_eq_lintegral_ofReal (he.integrableOn_isCompact (isCompact_closedBall x 1)) | |
| (.of_forall hp)] | |
| exact ENNReal.ofReal_lt_top | |
| end CannonMetricQC | |
| namespace CannonMetricQC | |
| open MeasureTheory Set Metric Filter Function ContinuousLinearMap | |
| open scoped Topology Convolution ENNReal NNReal | |
| theorem weakQS_imageArea_le_energy (F : β ββ β) {H : β} (hH : 0 < H) | |
| (hF : WeakQS F H) {V W : β β β} | |
| (hVm : Measurable V) (hWm : Measurable W) | |
| (hV : LocallyIntegrable V volume) (hW : LocallyIntegrable W volume) | |
| (hVs : LocallyIntegrable (fun x => βV xβ^2) volume) | |
| (hWs : LocallyIntegrable (fun x => βW xβ^2) volume) | |
| (hv : β Ο : SchwartzMap β β, HasCompactSupport (Ο : β β β) β | |
| (β« z, Ο z*V z)= -(β« z, fderiv β (Ο : β β β) z 1*F z)) | |
| (hw : β Ο : SchwartzMap β β, HasCompactSupport (Ο : β β β) β | |
| (β« z, Ο z*W z)= -(β« z, fderiv β (Ο : β β β) z Complex.I*F z)) : | |
| imageArea F β€ (Real.toNNReal (Real.pi*(H*(H+1))^4*(64*Real.pi/Real.log 2))) β’ | |
| volume.withDensity (fun z => ENNReal.ofReal (βV zβ^2+βW zβ^2)) := by | |
| let Ξ½ := volume.withDensity (fun z => ENNReal.ofReal (βV zβ^2+βW zβ^2)) | |
| let : IsLocallyFiniteMeasure Ξ½ := locallyIntegrable_density_locallyFinite | |
| (hVs.add hWs) (fun z => add_nonneg (sq_nonneg _) (sq_nonneg _)) | |
| apply measure_le_of_closedBall_le | |
| intro c R hR | |
| let y : β := c+(R/4:β) | |
| have hcy : dist c y=R/4 := by | |
| dsimp [y] | |
| rw [dist_eq_norm] | |
| have he : c-(c+(R/4:β))=(-(R/4:β):β) := by push_cast; ring | |
| rw [he,norm_neg,Complex.norm_real,Real.norm_eq_abs,abs_of_pos (by positivity)] | |
| have hy : y β closedBall c (R/4) := by rw [mem_closedBall,dist_comm,hcy] | |
| have hl := weak_homeomorph_log_energy F hVm hWm hV hW hVs hWs hv hw c | |
| (by positivity : 0 < R/4) (by linarith : R/4 β€ R/2) (by linarith : R/2 < R) | |
| c y (mem_closedBall_self (by positivity)) hy | |
| have heq : R/2/(R/4)=(2:β) := by field_simp; ring | |
| rw [heq,ENNReal.ofReal_mul (sq_nonneg _)] at hl | |
| have hp : 0 < Real.log (2:β) := Real.log_pos (by norm_num) | |
| have hp0 : ENNReal.ofReal (Real.log (2:β)) β 0 := ne_of_gt (ENNReal.ofReal_pos.mpr hp) | |
| have hle := (ENNReal.le_div_iff_mul_le (Or.inl hp0) (Or.inl ENNReal.ofReal_ne_top)).mpr hl | |
| have hbound : ENNReal.ofReal (dist (F c) (F y)^2) β€ | |
| ENNReal.ofReal (64*Real.pi/Real.log 2)*Ξ½ (closedBall c R) := by | |
| dsimp [Ξ½] | |
| rw [withDensity_apply _ isClosed_closedBall.measurableSet,ENNReal.ofReal_div_of_pos hp] | |
| simpa only [div_eq_mul_inv,mul_assoc,mul_left_comm,mul_comm] using hle | |
| have ha := imageArea_upper_four F hH hF c y (show R β€ 4*dist c y by rw [hcy]; linarith) | |
| change imageArea F (closedBall c R) β€ | |
| ENNReal.ofReal (Real.pi*(H*(H+1))^4*(64*Real.pi/Real.log 2))*Ξ½ (closedBall c R) | |
| calc | |
| _ β€ ENNReal.ofReal (Real.pi*(H*(H+1))^4)*ENNReal.ofReal (dist (F c) (F y)^2) := ha | |
| _ β€ ENNReal.ofReal (Real.pi*(H*(H+1))^4)* | |
| (ENNReal.ofReal (64*Real.pi/Real.log 2)*Ξ½ (closedBall c R)) := | |
| mul_le_mul_right hbound _ | |
| _ = _ := by rw [ENNReal.ofReal_mul (show 0 β€ Real.pi*(H*(H+1))^4 by positivity),mul_assoc] | |
| theorem weakQS_weakW12_imageArea_ac (F : β ββ β) {H : β} (hH : 0 < H) | |
| (hF : WeakQS F H) {V W : β β β} | |
| (hVm : Measurable V) (hWm : Measurable W) | |
| (hV : LocallyIntegrable V volume) (hW : LocallyIntegrable W volume) | |
| (hVs : LocallyIntegrable (fun x => βV xβ^2) volume) | |
| (hWs : LocallyIntegrable (fun x => βW xβ^2) volume) | |
| (hv : β Ο : SchwartzMap β β, HasCompactSupport (Ο : β β β) β | |
| (β« z, Ο z*V z)= -(β« z, fderiv β (Ο : β β β) z 1*F z)) | |
| (hw : β Ο : SchwartzMap β β, HasCompactSupport (Ο : β β β) β | |
| (β« z, Ο z*W z)= -(β« z, fderiv β (Ο : β β β) z Complex.I*F z)) : | |
| imageArea F βͺ volume := by | |
| exact (Measure.absolutelyContinuous_of_le | |
| (weakQS_imageArea_le_energy F hH hF hVm hWm hV hW hVs hWs hv hw)).trans | |
| (Measure.smul_absolutelyContinuous.trans (withDensity_absolutelyContinuous _ _)) | |
| end CannonMetricQC | |
| namespace CannonMetricQC | |
| open MeasureTheory Set Metric Filter | |
| open scoped Topology ENNReal NNReal | |
| lemma weakQS_full_weakW12 (f : β ββ β) {H : β} (hH : 0 < H) (hf : WeakQS f H) (v : β) : | |
| LocallyIntegrable (fun x => fderiv β (f : β β β) x v) volume β§ | |
| LocallyIntegrable (fun x => βfderiv β (f : β β β) x vβ^2) volume β§ | |
| β Ο : SchwartzMap β β, HasCompactSupport (Ο : β β β) β | |
| (β« z, Ο z*fderiv β (f : β β β) z v)= | |
| -(β« z, fderiv β (Ο : β β β) z v*f z) := by | |
| have hp (K : Set β) (hK : IsCompact K) : | |
| IntegrableOn (fun x => fderiv β (f : β β β) x v) K volume β§ | |
| IntegrableOn (fun x => βfderiv β (f : β β β) x vβ^2) K volume := by | |
| obtain β¨R,hRβ© := (Metric.isBounded_iff_subset_closedBall (0:β)).mp hK.isBounded | |
| have hm := (weakQS_local_weakW12 f hH hf R v).1 | |
| let : IsFiniteMeasure (volume.restrict (closedBall (0 : β) R)) := | |
| β¨by simpa using (isCompact_closedBall (0 : β) R).measure_lt_top (ΞΌ := volume)β© | |
| have hv : IntegrableOn (fun x => fderiv β (f : β β β) x v) | |
| (closedBall (0 : β) R) volume := MemLp.integrable (by norm_num) hm | |
| have hs : IntegrableOn (fun x => βfderiv β (f : β β β) x vβ^2) | |
| (closedBall (0 : β) R) volume := | |
| (memLp_two_iff_integrable_sq_norm hm.aestronglyMeasurable).mp hm | |
| exact β¨hv.mono_set hR, hs.mono_set hRβ© | |
| refine β¨locallyIntegrable_iff.mpr (fun K hK => (hp K hK).1), | |
| locallyIntegrable_iff.mpr (fun K hK => (hp K hK).2),?_β© | |
| intro Ο hΟ | |
| obtain β¨R,hRβ© := (Metric.isBounded_iff_subset_closedBall (0:β)).mp hΟ.isBounded | |
| exact (weakQS_local_weakW12 f hH hf R v).2 Ο hR | |
| theorem weakQS_imageArea_ac (f : β ββ β) {H : β} (hH : 0 < H) (hf : WeakQS f H) : | |
| imageArea f βͺ volume := by | |
| obtain β¨hV,hVs,hvβ© := weakQS_full_weakW12 f hH hf 1 | |
| obtain β¨hW,hWs,hwβ© := weakQS_full_weakW12 f hH hf Complex.I | |
| exact weakQS_weakW12_imageArea_ac f hH hf | |
| (measurable_fderiv_apply_const β (f : β β β) 1) | |
| (measurable_fderiv_apply_const β (f : β β β) Complex.I) hV hW hVs hWs hv hw | |
| theorem weakQS_image_null (f : β ββ β) {H : β} (hH : 0 < H) (hf : WeakQS f H) | |
| {S : Set β} (hS : volume S=0) : volume (f '' S)=0 := by | |
| have ht := weakQS_imageArea_ac f hH hf | |
| have hz : imageArea f (toMeasurable volume S)=0 := ht (by simpa only [measure_toMeasurable] using hS) | |
| rw [imageArea_apply f (measurableSet_toMeasurable _ _)] at hz | |
| exact measure_mono_null (image_mono (subset_toMeasurable volume S)) hz | |
| end CannonMetricQC | |
| namespace CannonMetricQC | |
| open MeasureTheory Filter | |
| open scoped Topology | |
| theorem weakQS_quasiMeasurePreserving (f : β ββ β) {H : β} | |
| (hH : 0 < H) (hf : WeakQS f.symm H) : | |
| Measure.QuasiMeasurePreserving (f : β β β) volume volume := by | |
| refine β¨f.continuous.measurable,?_β© | |
| simpa only [imageArea,Homeomorph.symm_symm] using weakQS_imageArea_ac f.symm hH hf | |
| theorem weakQS_ae_bijective_fderiv (f : β ββ β) {H J : β} | |
| (hH : 0 < H) (hJ : 0 < J) (hf : WeakQS f H) (hi : WeakQS f.symm J) : | |
| βα΅ x : β, Function.Bijective (fderiv β (f : β β β) x) := by | |
| have hm := weakQS_quasiMeasurePreserving f hJ hi | |
| filter_upwards [weakQS_ae_differentiable f hH hf, | |
| hm.ae (weakQS_ae_differentiable f.symm hJ hi)] with x hx hy | |
| have hc := hy.hasFDerivAt.comp x hx.hasFDerivAt | |
| have hid : (f.symm : β β β) β (f : β β β)=id := by funext z; simp | |
| rw [hid] at hc | |
| have hh := hc.unique (hasFDerivAt_id x) | |
| have hl : Function.LeftInverse (fderiv β (f.symm : β β β) (f x)) | |
| (fderiv β (f : β β β) x) := by | |
| intro z | |
| exact congrArg (fun A : β βL[β] β => A z) hh | |
| exact β¨hl.injective,LinearMap.injective_iff_surjective.mp hl.injectiveβ© | |
| theorem weakQS_ae_fderiv_comp (f g : β ββ β) {H J K : β} | |
| (hH : 0 < H) (hJ : 0 < J) (hK : 0 < K) | |
| (hf : WeakQS f H) (hg : WeakQS g J) (hgi : WeakQS g.symm K) : | |
| βα΅ x : β, fderiv β (fun z => f (g z)) x = | |
| (fderiv β (f : β β β) (g x)).comp (fderiv β (g : β β β) x) := by | |
| filter_upwards [weakQS_ae_differentiable g hJ hg, | |
| (weakQS_quasiMeasurePreserving g hK hgi).ae (weakQS_ae_differentiable f hH hf)] | |
| with x hx hy | |
| exact (hy.hasFDerivAt.comp x hx.hasFDerivAt).fderiv | |
| end CannonMetricQC | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end | |
| end OAI | |