lemmaopenMap_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
proof · 17
lines
obtain ⟨z,hz,hmax⟩ := (isCompact_closedBall c r).exists_isMaxOn
⟨c,mem_closedBall_self hr.le⟩ hu.continuousOn
refine ⟨z,?_,hmax⟩
havehzle : dist z c ≤ r := hz
apply mem_sphere.mpr
by_contra he
havehzlt : dist z c < r := lt_of_le_of_ne hzle he
havehop : IsOpen (u '' ball c r) := ho _ isOpen_ball
obtain ⟨ε,hε,hsub⟩ :=Metric.isOpen_iff.mp hop (u z) ⟨z,hzlt,rfl⟩
havehmem : u z+ε/2∈ ball (u z) ε :=by
rw [mem_ball,Real.dist_eq]
haveha : |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
havehh : u w ≤ u z := hmax (ball_subset_closedBall hw)
rw [hew] at hh
linarith
lemmahomeomorph_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
proof · 31
lines
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
havehre : |(F x-F y).re| ≤L:=byhave hv := (abs_re_le_norm (F a-F b)).trans (show ‖F a-F b‖ ≤Lby 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]
havehim : |(F x-F y).im| ≤L:=byhave hv := (abs_im_le_norm (F d-F e)).trans (show ‖F d-F e‖ ≤Lby 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)]
lemmaintegral_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
proof · 28
lines
let aa :=∫ t in a..b, f t
let bb :=∫ t in a..b, (f t)^2let m := aa/(b-a)
have hfi := hf.intervalIntegrable (μ := volume) a b
havehf2 : IntervalIntegrable (fun t => (f t)^2) volume a b :=
(hf.pow 2).intervalIntegrable a b
havehe : (∫ t in a..b, (f t-m)^2)=bb-2*m*aa+m^2*(b-a) :=bycalc
_ = ∫ 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
havehp : 0≤∫ t in a..b, (f t-m)^2:=
intervalIntegral.integral_nonneg hab.le (fun _ _ => sq_nonneg _)
rw [he] at hp
haveht : 0 < b-a := sub_pos.mpr hab
havehid : (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
lemmacircle_oscillation_bound {F : ℂ→ℂ} (hf : ContDiffℝ1F) (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
proof · 26
lines
letg : ℝ→ℝ:=fun t => r*‖fderiv ℝF (circleMap c r t)‖
havehg : Continuous g := continuous_const.mul
((hf.continuous_fderiv (by simp)).comp (continuous_circleMap c r)).norm
havehcircle : circleMap c r '' Ioc (-Real.pi) Real.pi=sphere c r :=byhave h := (periodic_circleMap c r).image_Ioc Real.two_pi_pos (-Real.pi)
rw [range_circleMap,abs_of_pos hr] at h
convert h using2; 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
lemmahomeomorph_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
proof · 11
lines
intro x hx y hy
have hosc := homeomorph_disk_oscillation F c hr (circle_oscillation_bound hf c hr) x hx y hy
havehc : 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)
havehn : 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 _)
havehs : 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 (show0≤4*r^2by positivity)
nlinarith
lemmadisk_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
proof · 41
lines
letA : Set (ℝ×ℝ) :=Ioc0R×ˢ Ioo (-Real.pi) Real.pi
letT : Set (ℝ×ℝ) :=Ioi0×ˢ Ioo (-Real.pi) Real.pi
letq : ℝ×ℝ→ℝ:=fun p => p.1*g (circleMap 0 p.1 p.2)
havehA : MeasurableSetA:= measurableSet_Ioc.prod measurableSet_Ioo
havehT : MeasurableSetT:= measurableSet_Ioi.prod measurableSet_Ioo
havehq : Continuous q := continuous_fst.mul (hg.comp continuous_polar_circle)
havehi : IntegrableOn q A:=
(hq.continuousOn.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set
(Set.prod_mono Ioc_subset_Icc_selfIoo_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 :=byby_cases ht : p ∈T
· rw [Set.indicator_of_mem ht]
havehr : 0 < p.1:= ht.1havehc : 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 ∈Afrom ⟨⟨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 ∉Afromfun hp => hle hp.1.2),mul_zero]
· rw [Set.indicator_of_notMem ht,Set.indicator_of_notMem
(show p ∉Afromfun hp => ht ⟨hp.1.1,hp.2⟩)]
calc
_ = ∫ z, (closedBall (0 : ℂ) R).indicator g z := (integral_indicator measurableSet_closedBall).symm
_ = ∫ p inT, 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 inA, q p := integral_indicator hA
_ = ∫ r inIoc (0 : ℝ) R, ∫ t inIoo (-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)]
lemmadisk_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
proof · 3
lines
rw [← translated_disk_integral g c R]
havehc : Continuous (funz : ℂ=> g (c+z)) := hg.comp (continuous_const.add continuous_id)
simpa only [circleMap,zero_add] using disk_polar_integral_zero hc hR
lemmaapproximate_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
proof · 23
lines
letI:=∫ t in (-Real.pi)..Real.pi, ‖fderiv ℝ g (circleMap c r t)‖
havehb : ∀ 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
havehc : 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)
havehn : 0≤I:= intervalIntegral.integral_nonneg
(neg_le_self Real.pi_pos.le) (fun _ _ => norm_nonneg _)
havehd : dist (F x) (F y) ≤4*(r*I) :=by linarith
havehs : 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 (show0≤16*r^2by positivity)
dsimp only [I] at hs
nlinarith
lemmaapproximate_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
proof · 33
lines
lete : ℝ→ℝ:=fun r => r*(∫ t in (-Real.pi)..Real.pi, ‖fderiv ℝ g (circleMap c r t)‖^2)
havehg' : Continuous (fun z => ‖fderiv ℝ g z‖^2) := (hg.continuous_fderiv (by simp)).norm.pow 2havehe : Continuous e := continuous_id.mul (continuous_circle_integral hg' c)
havehi : 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)
havehb : (∫ 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.1have 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
havehm : (∫ 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)
lemmaWeakQS.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
proof · 10
lines
let u := midpoint ℝ x y
havehxu : dist x u=dist x y/2:=by simp [u,dist_left_midpoint,div_eq_mul_inv,mul_comm]
havehux : dist u x=dist x y/2:=by rw [dist_comm,hxu]
havehuy : 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 (show0≤H+1by positivity)
nlinarith
lemmaWeakQS.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
proof · 5
lines
let u := midpoint ℝ x y
havehxu : 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 (show0≤H*(H+1) by positivity)])
theoremmeasure_le_of_closedBall_le (μ ν : Measureℂ) [IsLocallyFiniteMeasure μ]
[IsLocallyFiniteMeasure ν]
(h : ∀ x r, 0 < r → μ (closedBall x r) ≤ ν (closedBall x r)) : μ ≤ ν :=by
proof · 9
lines
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
lemmalocallyIntegrable_density_locallyFinite {e : ℂ→ℝ}
(he : LocallyIntegrable e volume) (hp : ∀ x, 0≤ e x) :
IsLocallyFiniteMeasure (volume.withDensity (fun x =>ENNReal.ofReal (e x))) where
proof · 6
lines
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
theoremweakQS_ae_fderiv_comp (f g : ℂ ≃ₜ ℂ) {HJK : ℝ}
(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
proof · 4
lines
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