cfahlgren1/math / lean /OAI /Analysis /DiskMaximal /Cancellation.lean
cfahlgren1's picture
download
raw
40.2 kB
import OAI.Analysis.DiskMaximal.Moments
namespace OAI
open MeasureTheory Set
open scoped ENNReal NNReal Topology ContDiff
open scoped RealInnerProductSpace
open MeasureTheory Set Filter
open scoped Topology ENNReal
open scoped Real RealInnerProductSpace
open MeasureTheory Set Filter
open scoped Topology RealInnerProductSpace ContDiff
open MeasureTheory Set Filter
open scoped Topology Interval NNReal
noncomputable section
namespace LocalCancellation
lemma integrable_lip_mul {b F : ℂ → ℂ} (hb : Integrable b)
{L : ℝ≥0} (hF : LipschitzWith L F) (z : ℂ) {s : ℝ}
(hsupp : ∀ᵐ y, b y ≠ 0 → ‖y-z‖ ≤ s) : Integrable (fun y => F y * b y) := by
have hbound : ∀ᵐ y, ‖(F y - F z) * b y‖ ≤ ((L : ℝ) * s) * ‖b y‖ := by
filter_upwards [hsupp] with y hy
by_cases hby : b y = 0
· simp [hby]
· rw [norm_mul]
exact mul_le_mul_of_nonneg_right
((hF.norm_sub_le y z).trans (mul_le_mul_of_nonneg_left (hy hby) L.coe_nonneg))
(norm_nonneg _)
have hdiff : Integrable (fun y => (F y - F z) * b y) :=
(hb.norm.smul ((L : ℝ) * s)).mono'
((hF.continuous.sub continuous_const).aestronglyMeasurable.mul hb.aestronglyMeasurable) hbound
have h := hdiff.add (hb.const_mul (F z))
change Integrable (fun y => (F y-F z)*b y + F z * b y) at h
simpa only [← add_mul, sub_add_cancel] using h
/-- Cancellation against the actual integrable complex error density. -/
lemma lip_cancellation {b F : ℂ → ℂ} (hb : Integrable b) (hzero : ∫ y, b y = 0)
{L : ℝ≥0} (hF : LipschitzWith L F) (z : ℂ) {s : ℝ}
(hsupp : ∀ᵐ y, b y ≠ 0 → ‖y-z‖ ≤ s) :
‖∫ y, F y * b y‖ ≤ (L : ℝ) * s * ∫ y, ‖b y‖ := by
have hprod := integrable_lip_mul hb hF z hsupp
have he : (∫ y, (F y - F z) * b y) = ∫ y, F y * b y := by
simp_rw [sub_mul]
rw [integral_sub hprod (hb.const_mul (F z)), integral_const_mul, hzero, mul_zero, sub_zero]
rw [← he]
calc
‖∫ y, (F y-F z) * b y‖ ≤ ∫ y, ((L : ℝ) * s) * ‖b y‖ := by
apply norm_integral_le_of_norm_le (hb.norm.smul ((L : ℝ) * s))
filter_upwards [hsupp] with y hy
by_cases hby : b y = 0
· simp [hby]
· rw [norm_mul]
exact mul_le_mul_of_nonneg_right
((hF.norm_sub_le y z).trans (mul_le_mul_of_nonneg_left (hy hby) L.coe_nonneg))
(norm_nonneg _)
_ = (L : ℝ) * s * ∫ y, ‖b y‖ := integral_const_mul _ _
lemma bounded_pairing {b F : ℂ → ℂ} (hb : Integrable b) {M : ℝ}
(hF : ∀ y, ‖F y‖ ≤ M) : ‖∫ y, F y * b y‖ ≤ M * ∫ y, ‖b y‖ := by
calc
‖∫ y, F y * b y‖ ≤ ∫ y, M * ‖b y‖ := by
apply norm_integral_le_of_norm_le (hb.norm.const_mul M)
exact Eventually.of_forall (fun y => by rw [norm_mul]; exact mul_le_mul_of_nonneg_right (hF y) (norm_nonneg _))
_ = M * ∫ y, ‖b y‖ := integral_const_mul _ _
lemma min_one_le_rpow {a α : ℝ} (ha : 0 ≤ a) (hα0 : 0 ≤ α) (hα1 : α ≤ 1) :
min 1 a ≤ a ^ α := by
by_cases ha1 : a ≤ 1
· rw [min_eq_right ha1]
by_cases hz : a = 0
· rw [hz]
exact Real.rpow_nonneg (by norm_num) _
· simpa only [Real.rpow_one] using Real.rpow_le_rpow_of_exponent_ge (lt_of_le_of_ne ha (Ne.symm hz)) ha1 hα1
· rw [min_eq_left (le_of_not_ge ha1)]
exact Real.one_le_rpow (le_of_not_ge ha1) hα0
structure ErrorPiece (Cs : ℝ) where
density : ℂ → ℂ
integrable : Integrable density
size : ℝ
size_pos : 0 < size
size_le_one : size ≤ 1
center : ℂ
zero_mass : size < 1 → ∫ y, density y = 0
support : size < 1 → ∀ᵐ y, density y ≠ 0 → ‖y-center‖ ≤ Cs * size
def ErrorPiece.mass {Cs : ℝ} (b : ErrorPiece Cs) : ℝ := ∫ y, ‖b.density y‖
lemma ErrorPiece.mass_nonneg {Cs : ℝ} (b : ErrorPiece Cs) : 0 ≤ b.mass :=
integral_nonneg (fun _ => norm_nonneg _)
/-- The single-piece interpolation discount, with no smoothness assumed on the density. -/
lemma piece_discount {Cs α δ C : ℝ} (b : ErrorPiece Cs)
(hα0 : 0 ≤ α) (hα1 : α ≤ 1) (hδ : 0 < δ) (hδ1 : δ ≤ 1)
(hC : 1 ≤ C) {L : ℝ≥0} {F : ℂ → ℂ} (hF : LipschitzWith L F)
(hFb : ∀ y, ‖F y‖ ≤ 1) (hLC : (L : ℝ) * Cs ≤ C / δ) :
‖∫ y, F y * b.density y‖ ≤ C * (b.size / δ) ^ α * b.mass := by
have hr : ‖∫ y, F y * b.density y‖ ≤ b.mass := by
convert! bounded_pairing b.integrable hFb using 1
simp only [one_mul, ErrorPiece.mass]
have hCm : 0 ≤ C * b.mass := mul_nonneg (by linarith) b.mass_nonneg
have hm : ‖∫ y, F y * b.density y‖ ≤ C * min 1 (b.size/δ) * b.mass := by
by_cases hs : b.size < 1
· have hl := lip_cancellation b.integrable (b.zero_mass hs) hF b.center (b.support hs)
have hl' : ‖∫ y, F y * b.density y‖ ≤ C * (b.size/δ) * b.mass := by
have hh := mul_le_mul_of_nonneg_right hLC (mul_nonneg b.size_pos.le b.mass_nonneg)
calc
_ ≤ (L : ℝ) * (Cs * b.size) * b.mass := hl
_ ≤ C * (b.size/δ) * b.mass := by convert! hh using 1 <;> ring
have hr' : ‖∫ y, F y * b.density y‖ ≤ C * 1 * b.mass := by nlinarith [b.mass_nonneg]
by_cases hh : 1 ≤ b.size/δ
· simpa only [min_eq_left hh] using hr'
· simpa only [min_eq_right (le_of_not_ge hh)] using hl'
· have hs1 : b.size = 1 := le_antisymm b.size_le_one (le_of_not_gt hs)
have hh : 1 ≤ b.size / δ := by rw [hs1]; exact (one_le_div hδ).mpr hδ1
rw [min_eq_left hh]
nlinarith [b.mass_nonneg]
calc
_ ≤ C * min 1 (b.size/δ) * b.mass := hm
_ ≤ C * (b.size/δ)^α * b.mass := by
nlinarith [mul_le_mul_of_nonneg_left
(min_one_le_rpow (div_nonneg b.size_pos.le hδ.le) hα0 hα1) hCm]
end LocalCancellation
namespace LocalCancellation
/-- Multiplication by the position keeps a bounded-support Lipschitz test Lipschitz. -/
lemma position_lipschitz {F : ℂ → ℂ} {L M R : ℝ≥0} (hF : LipschitzWith L F)
(hM : ∀ y, ‖F y‖ ≤ M) (x : ℂ)
(hR : ∀ y, F y ≠ 0 → ‖y-x‖ ≤ R) :
LipschitzWith (R*L+M) (fun y => star (y-x) * F y) := by
apply LipschitzWith.of_dist_le_mul
intro y z
rw [dist_eq_norm, dist_eq_norm]
change ‖star (y-x)*F y - star (z-x)*F z‖ ≤ ((R : ℝ)*(L : ℝ)+(M : ℝ))*‖y-z‖
by_cases hz : F z = 0
· rw [hz, mul_zero, sub_zero]
by_cases hy : F y = 0
· simp only [hy, mul_zero, norm_zero]
positivity
· have hFy : ‖F y‖ ≤ (L : ℝ)*‖y-z‖ := by simpa only [hz, sub_zero] using hF.norm_sub_le y z
rw [norm_mul, norm_star]
have hh := mul_le_mul (hR y hy) hFy (norm_nonneg _) R.coe_nonneg
nlinarith [mul_nonneg M.coe_nonneg (norm_nonneg (y-z))]
· have he : star (y-x)*F y-star (z-x)*F z =
star (z-x)*(F y-F z)+star (y-z)*F y := by
simp only [star_sub]
ring
rw [he]
calc
_ ≤ ‖star (z-x)*(F y-F z)‖+‖star (y-z)*F y‖ := norm_add_le _ _
_ = ‖z-x‖*‖F y-F z‖+‖y-z‖*‖F y‖ := by rw [norm_mul, norm_mul, norm_star, norm_star]
_ ≤ (R : ℝ)*((L : ℝ)*‖y-z‖)+‖y-z‖*(M : ℝ) :=
add_le_add (mul_le_mul (hR z hz) (hF.norm_sub_le y z) (norm_nonneg _) R.coe_nonneg)
(mul_le_mul_of_nonneg_left (hM y) (norm_nonneg _))
_ = _ := by ring
def correction (x z y : ℂ) : ℂ := 1 - star (y-x) / star (z-x)
lemma correction_eq {x z y : ℂ} (hz : z ≠ x) :
correction x z y = star (z-y) / star (z-x) := by
have hzx : star (z-x) ≠ 0 := star_ne_zero.mpr (sub_ne_zero.mpr hz)
have he : star (z-x)-star (y-x) = star (z-y) := by simp only [star_sub]; ring
calc
correction x z y = (star (z-x)-star (y-x))/star (z-x) := by
rw [sub_div, div_self hzx]
rfl
_ = star (z-y)/star (z-x) := by rw [he]
lemma norm_correction {x z y : ℂ} (hz : z ≠ x) :
‖correction x z y‖ = ‖y-z‖ / ‖z-x‖ := by
rw [correction_eq hz, norm_div, norm_star, norm_star, norm_sub_rev z y]
lemma correction_cap_bound {x z y : ℂ} {ρ : ℝ}
(hz : (1 : ℝ)/2 ≤ ‖z-x‖) (hy : ‖y-z‖ ≤ ρ) :
‖correction x z y‖ ≤ 2*ρ := by
have hzx : 0 < ‖z-x‖ := by linarith
have hne : z ≠ x := sub_ne_zero.mp (norm_pos_iff.mp hzx)
rw [norm_correction hne]
have hρ : 0 ≤ ρ := (norm_nonneg _).trans hy
apply (div_le_iff₀ hzx).mpr
nlinarith
lemma correction_bounded {x z y : ℂ} (hz : (1 : ℝ)/2 ≤ ‖z-x‖)
(hy : ‖y-x‖ ≤ 3) : ‖correction x z y‖ ≤ 7 := by
have hzx : 0 < ‖z-x‖ := by linarith
calc
‖correction x z y‖ ≤ 1+‖y-x‖/‖z-x‖ := by
simpa only [correction, norm_one, norm_div, norm_star] using norm_sub_le (1 : ℂ) (star (y-x)/star (z-x))
_ ≤ 7 := by
have : ‖y-x‖/‖z-x‖ ≤ 6 := (div_le_iff₀ hzx).mpr (by linarith)
linarith
/-- Global Lipschitz control of the corrected increment test. -/
lemma corrected_lipschitz {F : ℂ → ℂ} {L M R H : ℝ≥0} (hF : LipschitzWith L F)
(hM : ∀ y, ‖F y‖ ≤ M) (x z : ℂ)
(hR : ∀ y, F y ≠ 0 → ‖y-x‖ ≤ R) (hH : ‖(star (z-x))⁻¹‖ ≤ H) :
LipschitzWith (L+H*(R*L+M)) (fun y => correction x z y * F y) := by
have hp := position_lipschitz hF hM x hR
apply LipschitzWith.of_dist_le_mul
intro y w
have he : correction x z y*F y-correction x z w*F w =
(F y-F w)-(star (z-x))⁻¹*(star (y-x)*F y-star (w-x)*F w) := by
simp only [correction, div_eq_mul_inv]
ring
rw [dist_eq_norm, he, dist_eq_norm]
calc
_ ≤ ‖F y-F w‖+‖(star (z-x))⁻¹*(star (y-x)*F y-star (w-x)*F w)‖ := norm_sub_le _ _
_ ≤ (L : ℝ)*‖y-w‖+(H : ℝ)*(((R : ℝ)*(L : ℝ)+(M : ℝ))*‖y-w‖) := by
apply add_le_add (hF.norm_sub_le y w)
rw [norm_mul]
exact mul_le_mul hH (hp.norm_sub_le y w) (norm_nonneg _) H.coe_nonneg
_ = _ := by simp only [NNReal.coe_add, NNReal.coe_mul]; ring
end LocalCancellation
namespace LocalCancellation
variable {ι : Type*} [Fintype ι]
def errorPrice {Cs : ℝ} (b : ι → ErrorPiece Cs) (α : ℝ) : ℝ :=
∑ d, (b d).size ^ α * (b d).mass
lemma errorPrice_nonneg {Cs : ℝ} (b : ι → ErrorPiece Cs) (α : ℝ) :
0 ≤ errorPrice b α := Finset.sum_nonneg (fun d _ =>
mul_nonneg (Real.rpow_nonneg (b d).size_pos.le _) (b d).mass_nonneg)
lemma square_rpow {δ : ℝ} (hδ : 0 ≤ δ) (α : ℝ) :
(δ^2)^α = δ^(2*α) := by
rw [Real.rpow_mul hδ, Real.rpow_two]
lemma coarse_mass_mul_le {Cs α δ : ℝ} (b : ι → ErrorPiece Cs) (hα : 0 ≤ α)
(hδ : 0 ≤ δ) :
δ^(2*α) * (∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size), (b d).mass) ≤
errorPrice b α := by
classical
rw [Finset.mul_sum]
have hp : δ^(2*α) = (δ^2)^α := (square_rpow hδ α).symm
calc
_ ≤ ∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size), (b d).size^α*(b d).mass := by
apply Finset.sum_le_sum
intro d hd
rw [hp]
exact mul_le_mul_of_nonneg_right
(Real.rpow_le_rpow (sq_nonneg δ) (Finset.mem_filter.mp hd).2 hα) (b d).mass_nonneg
_ ≤ errorPrice b α := Finset.sum_le_sum_of_subset_of_nonneg (Finset.filter_subset _ _)
(fun d _ _ => mul_nonneg (Real.rpow_nonneg (b d).size_pos.le _) (b d).mass_nonneg)
lemma fine_size_sum_le {Cs α δ : ℝ} (b : ι → ErrorPiece Cs) (hα : α ≤ 1)
(hδ : 0 ≤ δ) :
(∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2), (b d).size*(b d).mass) ≤
δ^(2*(1-α))*errorPrice b α := by
classical
calc
_ ≤ ∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2),
δ^(2*(1-α))*((b d).size^α*(b d).mass) := by
apply Finset.sum_le_sum
intro d hd
have hs : (b d).size < δ^2 := (Finset.mem_filter.mp hd).2
have he : (b d).size = (b d).size^α*(b d).size^(1-α) := by
rw [← Real.rpow_add (b d).size_pos]
simp
have hh := Real.rpow_le_rpow (b d).size_pos.le hs.le (sub_nonneg.mpr hα)
rw [square_rpow hδ] at hh
calc
_ = ((b d).size^α*(b d).size^(1-α))*(b d).mass := congrArg (fun v => v*(b d).mass) he
_ = (b d).size^(1-α)*((b d).size^α*(b d).mass) := by ring
_ ≤ _ := mul_le_mul_of_nonneg_right hh
(mul_nonneg (Real.rpow_nonneg (b d).size_pos.le _) (b d).mass_nonneg)
_ = δ^(2*(1-α)) * (∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2),
(b d).size^α*(b d).mass) := (Finset.mul_sum ..).symm
_ ≤ δ^(2*(1-α))*errorPrice b α := mul_le_mul_of_nonneg_left
(Finset.sum_le_sum_of_subset_of_nonneg (Finset.filter_subset _ _)
(fun d _ _ => mul_nonneg (Real.rpow_nonneg (b d).size_pos.le _) (b d).mass_nonneg))
(Real.rpow_nonneg hδ _)
lemma total_pairing_discount {Cs α δ C : ℝ} (b : ι → ErrorPiece Cs)
(hα0 : 0 ≤ α) (hα1 : α ≤ 1) (hδ : 0 < δ) (hδ1 : δ ≤ 1)
(hC : 1 ≤ C) {L : ℝ≥0} {F : ℂ → ℂ} (hF : LipschitzWith L F)
(hFb : ∀ y, ‖F y‖ ≤ 1) (hLC : (L : ℝ)*Cs ≤ C/δ) :
‖∑ d, ∫ y, F y*(b d).density y‖ ≤ C/δ^α*errorPrice b α := by
calc
_ ≤ ∑ d, ‖∫ y, F y*(b d).density y‖ := norm_sum_le _ _
_ ≤ ∑ d, C*((b d).size/δ)^α*(b d).mass := Finset.sum_le_sum
(fun d _ => piece_discount (b d) hα0 hα1 hδ hδ1 hC hF hFb hLC)
_ = C/δ^α*errorPrice b α := by
rw [errorPrice, Finset.mul_sum]
apply Finset.sum_congr rfl
intro d _
rw [Real.div_rpow (b d).size_pos.le hδ.le]
ring
/-- All fine errors together retain the stronger, summable power of the width. -/
lemma fine_pairing_bound {Cs α δ : ℝ} (b : ι → ErrorPiece Cs) (hCs : 0 ≤ Cs)
(hα : α ≤ 1) (hδ : 0 ≤ δ) (hδ1 : δ ≤ 1)
{L : ℝ≥0} {F : ℂ → ℂ} (hF : LipschitzWith L F) :
‖∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2), ∫ y, F y*(b d).density y‖ ≤
(L : ℝ)*Cs*δ^(2*(1-α))*errorPrice b α := by
classical
calc
_ ≤ ∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2), ‖∫ y, F y*(b d).density y‖ := norm_sum_le _ _
_ ≤ ∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2),
(L : ℝ)*Cs*((b d).size*(b d).mass) := by
apply Finset.sum_le_sum
intro d hd
have hs : (b d).size < 1 := lt_of_lt_of_le (Finset.mem_filter.mp hd).2 (by nlinarith)
have hh := lip_cancellation (b d).integrable ((b d).zero_mass hs) hF (b d).center ((b d).support hs)
convert! hh using 1
dsimp only [ErrorPiece.mass]
ring
_ = (L : ℝ)*Cs*(∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2),
(b d).size*(b d).mass) := (Finset.mul_sum ..).symm
_ ≤ (L : ℝ)*Cs*(δ^(2*(1-α))*errorPrice b α) :=
mul_le_mul_of_nonneg_left (fine_size_sum_le b hα hδ) (mul_nonneg L.coe_nonneg hCs)
_ = _ := by ring
end LocalCancellation
open MeasureTheory Set Filter
open scoped Topology NNReal Real
noncomputable section
namespace LocalCancellation
/-- Norm total-variation measure of an actual complex density. -/
def densityMeasure (b : ℂ → ℂ) : Measure ℂ := volume.withDensity (fun y => ENNReal.ofReal ‖b y‖)
lemma densityMeasure_apply {b : ℂ → ℂ} (hb : Integrable b) {D : Set ℂ}
(hD : MeasurableSet D) : densityMeasure b D = ENNReal.ofReal (∫ y in D, ‖b y‖) := by
rw [densityMeasure, withDensity_apply _ hD]
exact (ofReal_integral_eq_lintegral_ofReal hb.integrableOn.norm
(Eventually.of_forall (fun _ => norm_nonneg _))).symm
lemma densityMeasure_univ {b : ℂ → ℂ} (hb : Integrable b) :
densityMeasure b univ = ENNReal.ofReal (∫ y, ‖b y‖) := by
rw [densityMeasure_apply hb MeasurableSet.univ, Measure.restrict_univ]
lemma densityMeasure_finite {b : ℂ → ℂ} (hb : Integrable b) : IsFiniteMeasure (densityMeasure b) := by
constructor
rw [densityMeasure_univ hb]
exact ENNReal.ofReal_lt_top
/-- A cap decomposition bound, with all integrals over genuine densities. -/
lemma pairing_majorant {b F : ℂ → ℂ} (hb : Integrable b) {A : Set ℂ}
(hA : MeasurableSet A) (c d : ℝ)
(hF : ∀ y, ‖F y‖ ≤ c + d*A.indicator (fun _ => (1 : ℝ)) y) :
‖∫ y, F y*b y‖ ≤ c*(∫ y, ‖b y‖)+d*(∫ y in A, ‖b y‖) := by
have hi : Integrable (fun y => c*‖b y‖+d*A.indicator (fun y => ‖b y‖) y) :=
(hb.norm.const_mul c).add ((hb.norm.indicator hA).const_mul d)
calc
_ ≤ ∫ y, c*‖b y‖+d*A.indicator (fun y => ‖b y‖) y := by
apply norm_integral_le_of_norm_le hi
filter_upwards with y
rw [norm_mul]
have hh := mul_le_mul_of_nonneg_right (hF y) (norm_nonneg (b y))
convert! hh using 1
by_cases hy : y ∈ A
· simp only [Set.indicator_of_mem hy, mul_one]
ring
· simp only [Set.indicator_of_notMem hy, mul_zero, add_zero]
_ = _ := by
rw [integral_add (hb.norm.const_mul c) ((hb.norm.indicator hA).const_mul d),
integral_const_mul, integral_const_mul, integral_indicator hA]
/-- Cancellation of an exact complex moment allows an off-center correction. -/
lemma moment_correction {b F : ℂ → ℂ} (x z : ℂ)
(hF : Integrable (fun y => F y*b y))
(hM : Integrable (fun y => star (y-x)*F y*b y))
(hzero : ∫ y, star (y-x)*F y*b y = 0) :
(∫ y, F y*b y) = ∫ y, (1-star (y-x)/star (z-x))*F y*b y := by
have he : (fun y => (1-star (y-x)/star (z-x))*F y*b y) =
fun y => F y*b y-(star (z-x))⁻¹*(star (y-x)*F y*b y) := by
funext y
simp only [div_eq_mul_inv]
ring
rw [he, integral_sub hF (hM.const_mul _), integral_const_mul, hzero, mul_zero, sub_zero]
end LocalCancellation
namespace LocalCancellation
lemma corrected_pairing_cap {b F : ℂ → ℂ} (hb : Integrable b) {D : Set ℂ}
(hD : MeasurableSet D) (hFb : ∀ y, ‖F y‖ ≤ 1)
(hFD : ∀ y, F y ≠ 0 → y ∈ D) (x z : ℂ) {ρ : ℝ} (hρ : 0 ≤ ρ)
(hz : (1 : ℝ)/2 ≤ ‖z-x‖) (hD3 : ∀ y ∈ D, ‖y-x‖ ≤ 3) :
‖∫ y, correction x z y*F y*b y‖ ≤
2*ρ*(∫ y, ‖b y‖)+7*(∫ y in D \ Metric.ball z ρ, ‖b y‖) := by
apply pairing_majorant hb (hD.diff measurableSet_ball) (2*ρ) 7
intro y
by_cases hFy : F y = 0
· simp only [hFy, mul_zero, norm_zero]
exact add_nonneg (mul_nonneg (by norm_num) hρ)
(mul_nonneg (by norm_num) (Set.indicator_nonneg (fun _ _ => zero_le_one) y))
· have hyD := hFD y hFy
by_cases hyB : y ∈ Metric.ball z ρ
· have hc := correction_cap_bound hz (show ‖y-z‖ ≤ ρ from by simpa only [dist_eq_norm] using (Metric.mem_ball.mp hyB).le)
rw [Set.indicator_of_notMem (show y ∉ D \ Metric.ball z ρ from fun h => h.2 hyB), mul_zero, add_zero]
rw [norm_mul]
simpa only [mul_one] using mul_le_mul hc (hFb y) (norm_nonneg _) (mul_nonneg (by norm_num) hρ)
· rw [Set.indicator_of_mem (show y ∈ D \ Metric.ball z ρ from ⟨hyD,hyB⟩), mul_one]
have hc := correction_bounded hz (hD3 y hyD)
rw [norm_mul]
have hh := mul_le_mul hc (hFb y) (norm_nonneg _) (by norm_num : (0 : ℝ) ≤ 7)
nlinarith
lemma supported_pairing {b F : ℂ → ℂ} (hb : Integrable b) {D : Set ℂ}
(hD : MeasurableSet D) (hFb : ∀ y, ‖F y‖ ≤ 1)
(hFD : ∀ y, F y ≠ 0 → y ∈ D) :
‖∫ y, F y*b y‖ ≤ ∫ y in D, ‖b y‖ := by
have hh := pairing_majorant hb hD 0 1 (show ∀ y, ‖F y‖ ≤ 0+1*D.indicator (fun _ => (1 : ℝ)) y from by
intro y
by_cases hy : y ∈ D
· simpa only [Set.indicator_of_mem hy, mul_one, zero_add] using hFb y
· have hf : F y = 0 := by by_contra h; exact hy (hFD y h)
simp only [hf, norm_zero, Set.indicator_of_notMem hy, mul_zero, zero_add, le_refl])
simpa only [zero_mul, one_mul, zero_add] using hh
variable {ι : Type*} [Fintype ι]
def coarseMeasure {Cs : ℝ} (b : ι → ErrorPiece Cs) (δ : ℝ) : Measure ℂ :=
∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size), densityMeasure (b d).density
def coarseMass {Cs : ℝ} (b : ι → ErrorPiece Cs) (δ : ℝ) (D : Set ℂ) : ℝ :=
∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size), ∫ y in D, ‖(b d).density y‖
lemma coarseMass_nonneg {Cs : ℝ} (b : ι → ErrorPiece Cs) (δ : ℝ) (D : Set ℂ) :
0 ≤ coarseMass b δ D := Finset.sum_nonneg (fun _ _ => integral_nonneg (fun _ => norm_nonneg _))
lemma coarseMeasure_apply {Cs : ℝ} (b : ι → ErrorPiece Cs) (δ : ℝ) {D : Set ℂ}
(hD : MeasurableSet D) : coarseMeasure b δ D = ENNReal.ofReal (coarseMass b δ D) := by
classical
simp only [coarseMeasure, Measure.finsetSum_apply, densityMeasure_apply (b _).integrable hD,
coarseMass]
rw [ENNReal.ofReal_sum_of_nonneg (fun d _ => integral_nonneg (fun _ => norm_nonneg _))]
instance coarseMeasure_finite {Cs : ℝ} (b : ι → ErrorPiece Cs) (δ : ℝ) :
IsFiniteMeasure (coarseMeasure b δ) := by
constructor
rw [coarseMeasure_apply b δ MeasurableSet.univ]
exact ENNReal.ofReal_lt_top
lemma coarseMass_univ {Cs : ℝ} (b : ι → ErrorPiece Cs) (δ : ℝ) :
coarseMass b δ univ = ∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size), (b d).mass := by
simp only [coarseMass, ErrorPiece.mass, Measure.restrict_univ]
lemma coarseMass_bound {Cs α δ : ℝ} (b : ι → ErrorPiece Cs) (hα : 0 ≤ α)
(hδ : 0 < δ) : coarseMass b δ univ ≤ errorPrice b α / δ^(2*α) := by
rw [le_div_iff₀ (Real.rpow_pos_of_pos hδ _), mul_comm, coarseMass_univ]
exact coarse_mass_mul_le b hα hδ.le
/-- The uncorrected increment costs only shell mass plus the fine-error discount. -/
lemma increment_bound {Cs α δ : ℝ} (b : ι → ErrorPiece Cs) (hCs : 0 ≤ Cs)
(hα : α ≤ 1) (hδ : 0 ≤ δ) (hδ1 : δ ≤ 1)
{L : ℝ≥0} {F : ℂ → ℂ} (hF : LipschitzWith L F) {D : Set ℂ} (hD : MeasurableSet D)
(hFb : ∀ y, ‖F y‖ ≤ 1) (hFD : ∀ y, F y ≠ 0 → y ∈ D) :
‖∑ d, ∫ y, F y*(b d).density y‖ ≤
coarseMass b δ D+(L : ℝ)*Cs*δ^(2*(1-α))*errorPrice b α := by
classical
have he : (∑ d, ∫ y, F y*(b d).density y) =
(∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size), ∫ y, F y*(b d).density y)+
(∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2), ∫ y, F y*(b d).density y) := by
simpa only [not_le] using (Finset.sum_filter_add_sum_filter_not Finset.univ
(fun d => δ^2 ≤ (b d).size) (fun d => ∫ y, F y*(b d).density y)).symm
rw [he]
apply (norm_add_le _ _).trans
apply add_le_add
· apply (norm_sum_le _ _).trans
exact Finset.sum_le_sum (fun d _ => supported_pairing (b d).integrable hD hFb hFD)
· exact fine_pairing_bound b hCs hα hδ hδ1 hF
end LocalCancellation
namespace LocalCancellation
lemma integrable_bounded_pairing {b F : ℂ → ℂ} (hb : Integrable b)
(hF : AEStronglyMeasurable F) {M : ℝ} (hM : ∀ y, ‖F y‖ ≤ M) :
Integrable (fun y => F y*b y) := by
apply (hb.norm.const_mul M).mono' (hF.mul hb.aestronglyMeasurable)
filter_upwards with y
change ‖F y * b y‖ ≤ M * ‖b y‖
rw [norm_mul]
exact mul_le_mul_of_nonneg_right (hM y) (norm_nonneg _)
lemma position_bound {F : ℂ → ℂ} (hF : ∀ y, ‖F y‖ ≤ 1) (x : ℂ)
{R : ℝ} (hR0 : 0 ≤ R) (hR : ∀ y, F y ≠ 0 → ‖y-x‖ ≤ R) :
∀ y, ‖star (y-x)*F y‖ ≤ R := by
intro y
by_cases hy : F y = 0
· simpa only [hy, mul_zero, norm_zero] using hR0
· rw [norm_mul, norm_star]
simpa only [mul_one] using mul_le_mul (hR y hy) (hF y) (norm_nonneg _) hR0
variable {ι : Type*} [Fintype ι]
/-- The decisive corrected active increment, prior to substitution of the dyadic powers.
The zero moment is the exact one furnished by two balanced kernels, not a bound. -/
lemma corrected_increment_bound {Cs α δ ρ : ℝ} (b : ι → ErrorPiece Cs) (hCs : 0 ≤ Cs)
(hα : α ≤ 1) (hδ : 0 ≤ δ) (hδ1 : δ ≤ 1) (hρ : 0 ≤ ρ)
{L : ℝ≥0} {F : ℂ → ℂ} (hF : LipschitzWith L F) {D : Set ℂ} (hD : MeasurableSet D)
(hFb : ∀ y, ‖F y‖ ≤ 1) (hFD : ∀ y, F y ≠ 0 → y ∈ D) (x z : ℂ)
(hz : (1 : ℝ)/2 ≤ ‖z-x‖) (hD3 : ∀ y ∈ D, ‖y-x‖ ≤ 3)
(hzero : ∑ d, ∫ y, star (y-x)*F y*(b d).density y = 0) :
‖∑ d, ∫ y, F y*(b d).density y‖ ≤
2*ρ*coarseMass b δ univ+7*coarseMass b δ (D \ Metric.ball z ρ)+
((L : ℝ)+2*(3*(L : ℝ)+1))*Cs*δ^(2*(1-α))*errorPrice b α := by
classical
have hnorm : ∀ y, F y ≠ 0 → ‖y-x‖ ≤ (3 : ℝ) := fun y hy => hD3 y (hFD y hy)
have hH : ‖(star (z-x))⁻¹‖ ≤ (2 : ℝ) := by
rw [norm_inv, norm_star]
have hn : 0 < ‖z-x‖ := by linarith
rw [inv_eq_one_div, div_le_iff₀ hn]
linarith
have hcorr : LipschitzWith (L+2*(3*L+1)) (fun y => correction x z y*F y) :=
corrected_lipschitz (M := 1) (R := 3) (H := 2) hF hFb x z hnorm hH
have he (d : ι) : (∫ y, correction x z y*F y*(b d).density y) =
(∫ y, F y*(b d).density y) - (star (z-x))⁻¹*(∫ y, star (y-x)*F y*(b d).density y) := by
have hf := integrable_bounded_pairing (b d).integrable hF.continuous.aestronglyMeasurable hFb
have hm : Integrable (fun y => star (y-x)*F y*(b d).density y) :=
integrable_bounded_pairing (b d).integrable
((by fun_prop : Continuous (fun y : ℂ => star (y-x))).mul hF.continuous).aestronglyMeasurable
(position_bound hFb x (by norm_num) hnorm)
have hid : (fun y => correction x z y*F y*(b d).density y) =
fun y => F y*(b d).density y - (star (z-x))⁻¹*(star (y-x)*F y*(b d).density y) := by
funext y
simp only [correction, div_eq_mul_inv]
ring
rw [hid, integral_sub hf (hm.const_mul _), integral_const_mul]
have hall : (∑ d, ∫ y, correction x z y*F y*(b d).density y) =
∑ d, ∫ y, F y*(b d).density y := by
simp_rw [he]
rw [Finset.sum_sub_distrib, ← Finset.mul_sum, hzero, mul_zero, sub_zero]
rw [← hall]
have hsplit : (∑ d, ∫ y, correction x z y*F y*(b d).density y) =
(∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size), ∫ y, correction x z y*F y*(b d).density y)+
(∑ d ∈ Finset.univ.filter (fun d => (b d).size < δ^2), ∫ y, correction x z y*F y*(b d).density y) := by
simpa only [not_le] using (Finset.sum_filter_add_sum_filter_not Finset.univ
(fun d => δ^2 ≤ (b d).size) (fun d => ∫ y, correction x z y*F y*(b d).density y)).symm
rw [hsplit]
apply (norm_add_le _ _).trans
apply add_le_add
· calc
_ ≤ ∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size),
‖∫ y, correction x z y*F y*(b d).density y‖ := norm_sum_le _ _
_ ≤ ∑ d ∈ Finset.univ.filter (fun d => δ^2 ≤ (b d).size),
(2*ρ*(∫ y, ‖(b d).density y‖)+7*(∫ y in D \ Metric.ball z ρ, ‖(b d).density y‖)) :=
Finset.sum_le_sum (fun d _ => corrected_pairing_cap (b d).integrable hD hFb hFD x z hρ hz hD3)
_ = _ := by
rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum]
simp only [coarseMass, Measure.restrict_univ]
· exact fine_pairing_bound b hCs hα hδ hδ1 hcorr
end LocalCancellation
namespace DiskKernels
lemma kernel_nonneg {a b : ℝ} {M : ℝ≥0} (k : RadiusDensity a b M) (x y : ℂ) :
0 ≤ kernel k x y := tail_nonneg k _
lemma kernel_le_one {a b : ℝ} {M : ℝ≥0} (k : RadiusDensity a b M) (x y : ℂ) :
kernel k x y ≤ 1 := tail_le_one k _
lemma complex_kernel_lipschitz {a b : ℝ} {M : ℝ≥0} (k : RadiusDensity a b M) (x : ℂ) :
LipschitzWith M (fun y => (kernel k x y : ℂ)) := by
simpa only [one_mul, Function.comp_def] using Complex.isometry_ofReal.lipschitzWith.comp (kernel_lipschitz k x)
lemma complex_kernel_bound {a b : ℝ} {M : ℝ≥0} (k : RadiusDensity a b M) (x y : ℂ) :
‖(kernel k x y : ℂ)‖ ≤ 1 := by
simpa only [Complex.norm_real, Real.norm_eq_abs, abs_of_nonneg (kernel_nonneg k x y)] using kernel_le_one k x y
lemma difference_bound {a b c d : ℝ} {M N : ℝ≥0}
(k : RadiusDensity a b M) (l : RadiusDensity c d N) (x y : ℂ) :
‖((kernel l x y : ℂ) - kernel k x y)‖ ≤ 1 := by
rw [← Complex.ofReal_sub, Complex.norm_real, Real.norm_eq_abs, abs_le]
constructor <;> linarith [kernel_nonneg k x y, kernel_nonneg l x y, kernel_le_one k x y, kernel_le_one l x y]
lemma difference_support {r δ ε : ℝ} {M N : ℝ≥0}
(k : RadiusDensity (r-δ) (r+δ) M) (l : RadiusDensity (r-ε) (r+ε) N)
(hεδ : ε ≤ δ) (x y : ℂ) (h : (kernel l x y : ℂ) - kernel k x y ≠ 0) :
|‖y-x‖-r| ≤ δ := by
by_cases hlo : ‖y-x‖ < r-δ
· have hk : kernel k x y = 1 := kernel_one k x (by simpa only [Metric.mem_ball, dist_eq_norm] using hlo)
have hl : kernel l x y = 1 := kernel_one l x (by
simp only [Metric.mem_ball, dist_eq_norm]
linarith)
exact False.elim (h (by simp only [hk, hl, sub_self]))
· by_cases hup : r+δ ≤ ‖y-x‖
· have hk : kernel k x y = 0 := kernel_zero k x (by
simpa only [Metric.mem_ball, dist_eq_norm, not_lt] using hup)
have hl : kernel l x y = 0 := kernel_zero l x (by
simp only [Metric.mem_ball, dist_eq_norm, not_lt]
linarith)
exact False.elim (h (by simp only [hk, hl, sub_self]))
· rw [abs_le]
constructor <;> linarith
end DiskKernels
namespace DiskKernels
/-- At every point away from the boundary circle, all such mixtures tend to
the actual sharp disk. No convergence of the chosen radius densities is assumed. -/
lemma tendsto_kernel {r : ℝ} {δ : ℕ → ℝ} {M : ℕ → ℝ≥0}
(k : ∀ n, RadiusDensity (r-δ n) (r+δ n) (M n))
(hδ : Tendsto δ atTop (𝓝 0)) (x y : ℂ) (hy : ‖y-x‖ ≠ r) :
Tendsto (fun n => kernel (k n) x y) atTop
(𝓝 ((Metric.ball x r).indicator (fun _ => (1 : ℝ)) y)) := by
by_cases h : ‖y-x‖ < r
· have he : ∀ᶠ n in atTop, kernel (k n) x y = 1 := by
filter_upwards [hδ.eventually_lt_const (sub_pos.mpr h)] with n hn
exact kernel_one (k n) x (by
simp only [Metric.mem_ball, dist_eq_norm]
linarith)
have hmem : y ∈ Metric.ball x r := by simpa only [Metric.mem_ball, dist_eq_norm] using h
rw [indicator_of_mem hmem]
exact tendsto_const_nhds.congr' (he.mono fun _ hn => hn.symm)
· have hh : r < ‖y-x‖ := lt_of_le_of_ne (le_of_not_gt h) (Ne.symm hy)
have he : ∀ᶠ n in atTop, kernel (k n) x y = 0 := by
filter_upwards [hδ.eventually_lt_const (sub_pos.mpr hh)] with n hn
exact kernel_zero (k n) x (by
simp only [Metric.mem_ball, dist_eq_norm, not_lt]
linarith)
have hmem : y ∉ Metric.ball x r := by simpa only [Metric.mem_ball, dist_eq_norm] using h
rw [indicator_of_notMem hmem]
exact tendsto_const_nhds.congr' (he.mono fun _ hn => hn.symm)
/-- Dominated convergence of an arbitrary sequence of mixtures against each
actual absolutely continuous finite vector measure. -/
lemma tendsto_kernel_pairing {r : ℝ} {δ : ℕ → ℝ} {M : ℕ → ℝ≥0}
(k : ∀ n, RadiusDensity (r-δ n) (r+δ n) (M n))
(hδ : Tendsto δ atTop (𝓝 0)) (x : ℂ) {b : ℂ → ℂ} (hb : Integrable b) :
Tendsto (fun n => ∫ y, (kernel (k n) x y : ℂ)*b y) atTop
(𝓝 (∫ y in Metric.ball x r, b y)) := by
rw [← integral_indicator measurableSet_ball]
apply tendsto_integral_of_dominated_convergence (fun y => ‖b y‖)
· intro n
exact (complex_kernel_lipschitz (k n) x).continuous.aestronglyMeasurable.mul hb.aestronglyMeasurable
· exact hb.norm
· intro n
filter_upwards with y
change ‖(kernel (k n) x y : ℂ)*b y‖ ≤ ‖b y‖
rw [norm_mul]
exact mul_le_of_le_one_left (norm_nonneg _) (complex_kernel_bound (k n) x y)
· have hcircle : ∀ᵐ y : ℂ, ‖y-x‖ ≠ r := by
simpa only [Metric.mem_sphere, dist_eq_norm] using (measure_eq_zero_iff_ae_notMem.mp (Measure.addHaar_sphere volume x r))
filter_upwards [hcircle] with y hy
have h := (Complex.continuous_ofReal.tendsto _).comp (tendsto_kernel k hδ x y hy)
have hm := h.mul_const (b y)
convert! hm using 1
by_cases hmem : y ∈ Metric.ball x r
· simp only [indicator_of_mem hmem, Complex.ofReal_one, one_mul]
· simp only [indicator_of_notMem hmem, Complex.ofReal_zero, zero_mul]
end DiskKernels
namespace LocalCancellation
open DiskGeometry
variable {ι : Type*} [Fintype ι]
theorem size_step {Cs α δ ρ U : ℝ} (b : ι → ErrorPiece Cs)
(hCs : 0 ≤ Cs) (hα : α ≤ 1) (hδ : 0 < δ)
(hρ : 0 < ρ) (hρ1 : ρ ≤ 1) (hδρ : δ ≤ ρ^2/1600) (hU : 0 < U) :
∃ E : Set ℂ, MeasurableSet E ∧
volume E ≤
(ENNReal.ofReal U)⁻¹ ^ 2 *
(ENNReal.ofReal (156*δ/ρ)*ENNReal.ofReal (coarseMass b δ univ)*ENNReal.ofReal (coarseMass b δ univ)) +
(ENNReal.ofReal U)⁻¹ *
((ENNReal.ofReal (6*Real.pi)*ENNReal.ofReal (2*(200*δ/ρ^2)))*ENNReal.ofReal (coarseMass b δ univ)) ∧
∀ x ∉ E, ∀ r ∈ Icc (1 : ℝ) 2, ∀ (L : ℝ≥0) (F : ℂ → ℂ),
LipschitzWith L F → (∀ y, ‖F y‖ ≤ 1) →
(∀ y, F y ≠ 0 → y ∈ thinShell x r δ) →
(U ≤ coarseMass b δ (thinShell x r δ) →
(∑ d, ∫ y, star (y-x)*F y*(b d).density y) = 0) →
‖∑ d, ∫ y, F y*(b d).density y‖ ≤
2*ρ*coarseMass b δ univ+14*U+
((L : ℝ)+2*(3*(L : ℝ)+1))*Cs*δ^(2*(1-α))*errorPrice b α := by
obtain ⟨E, hE, hEv, hcap⟩ := shell_concentration (coarseMeasure b δ) (0 : Measure ℂ)
hρ hρ1 hδ hδρ (le_refl 0) hU
refine ⟨E, hE, ?_, ?_⟩
· simpa only [coarseMeasure_apply b δ MeasurableSet.univ, zero_div, add_zero, mul_one] using hEv
· intro x hx r hr L F hF hFb hFD hzero
have hδ1 : δ ≤ 1 := by nlinarith [sq_nonneg (ρ-1)]
have hδq : δ ≤ 1/4 := by nlinarith [sq_nonneg (ρ-1)]
have hM0 : 0 ≤ coarseMass b δ univ := by
rw [coarseMass_univ]
exact Finset.sum_nonneg (fun d _ => (b d).mass_nonneg)
have hf0 : 0 ≤ Cs*δ^(2*(1-α))*errorPrice b α :=
mul_nonneg (mul_nonneg hCs (Real.rpow_nonneg hδ.le _)) (errorPrice_nonneg b α)
by_cases hactive : U ≤ coarseMass b δ (thinShell x r δ)
· have hact : ENNReal.ofReal U ≤ coarseMeasure b δ (thinShell x r δ) := by
rw [coarseMeasure_apply b δ (measurableSet_thinShell x r δ)]
exact ENNReal.ofReal_le_ofReal hactive
obtain ⟨z, hz, hzc⟩ := hcap x hx r hr hact (by simp)
have hzc' : coarseMass b δ (thinShell x r δ \ Metric.ball z ρ) ≤ 2*U := by
rw [zero_add, coarseMeasure_apply b δ ((measurableSet_thinShell x r δ).diff measurableSet_ball)] at hzc
exact (ENNReal.ofReal_le_ofReal_iff (by positivity)).mp hzc
have hzbound : 1/2 ≤ ‖z-x‖ := by
simpa only [norm_sub_rev] using (shell_center_bounds hr hδq hz).1
have hD3 : ∀ y ∈ thinShell x r δ, ‖y-x‖ ≤ 3 := by
intro y hy
simpa only [norm_sub_rev] using (shell_center_bounds hr hδq hy).2
have hc := corrected_increment_bound b hCs hα hδ.le hδ1 hρ.le hF
(measurableSet_thinShell x r δ) hFb hFD x z hzbound hD3 (hzero hactive)
nlinarith
· have hi := increment_bound b hCs hα hδ.le hδ1 hF
(measurableSet_thinShell x r δ) hFb hFD
have hx0 : 0 ≤ 2*ρ*coarseMass b δ univ := by positivity
have hL : (L : ℝ) ≤ (L : ℝ)+2*(3*(L : ℝ)+1) := by linarith [L.coe_nonneg]
have hh := mul_le_mul_of_nonneg_right hL hf0
nlinarith
end LocalCancellation
namespace DiskGeometry
lemma thinShell_eq_diff {x : ℂ} {r δ : ℝ} :
thinShell x r δ = Metric.closedBall x (r+δ) \ Metric.ball x (r-δ) := by
ext y
simp only [thinShell, mem_ofPred_eq, abs_le, Set.mem_sdiff, Metric.mem_closedBall,
Metric.mem_ball, dist_eq_norm, not_lt]
constructor <;> intro h <;> constructor <;> linarith [h.1, h.2]
/-- Exact area of an annulus, including the inner and outer circles. -/
lemma volume_thinShell (x : ℂ) {r δ : ℝ} (hδ : 0 ≤ δ) (hr : δ ≤ r) :
volume (thinShell x r δ) = ENNReal.ofReal (4*Real.pi*r*δ) := by
have hi : 0 ≤ r-δ := sub_nonneg.mpr hr
have ho : 0 ≤ r+δ := by linarith
rw [thinShell_eq_diff, measure_sdiff (fun y hy => Metric.ball_subset_closedBall
(Metric.ball_subset_ball (by linarith) hy)) measurableSet_ball.nullMeasurableSet measure_ball_lt_top.ne,
Complex.volume_closedBall, Complex.volume_ball]
rw [← ENNReal.ofReal_pow ho, ← ENNReal.ofReal_pow hi]
rw [← (ENNReal.ofReal_coe_nnreal : ENNReal.ofReal (NNReal.pi : ℝ) = (NNReal.pi : ℝ≥0∞))]
change ENNReal.ofReal ((r+δ)^2) * ENNReal.ofReal Real.pi -
ENNReal.ofReal ((r-δ)^2) * ENNReal.ofReal Real.pi = ENNReal.ofReal (4*Real.pi*r*δ)
rw [← ENNReal.ofReal_mul (sq_nonneg _), ← ENNReal.ofReal_mul (sq_nonneg _),
← ENNReal.ofReal_sub _ (mul_nonneg (sq_nonneg _) Real.pi_pos.le)]
congr 1
ring
lemma measurableSet_shellPairs (r δ : ℝ) :
MeasurableSet {p : ℂ × ℂ | p.2 ∈ thinShell p.1 r δ} := by
exact measurableSet_le (by fun_prop : Measurable (fun p : ℂ × ℂ => |‖p.2-p.1‖-r|)) measurable_const
def shellMass (ν : Measure ℂ) (r δ : ℝ) (x : ℂ) : ℝ≥0∞ := ν (thinShell x r δ)
lemma measurable_shellMass (ν : Measure ℂ) [IsFiniteMeasure ν] (r δ : ℝ) :
Measurable (shellMass ν r δ) :=
measurable_measure_prodMk_left (measurableSet_shellPairs r δ)
lemma shell_symm (x y : ℂ) (r δ : ℝ) : y ∈ thinShell x r δ ↔ x ∈ thinShell y r δ := by
simp only [thinShell, mem_ofPred_eq, norm_sub_rev x y]
/-- The integrated shell mass is its exact area times the total input mass. -/
lemma lintegral_shellMass (ν : Measure ℂ) [IsFiniteMeasure ν] {r δ : ℝ}
(hδ : 0 ≤ δ) (hr : δ ≤ r) :
(∫⁻ x, shellMass ν r δ x) = ENNReal.ofReal (4*Real.pi*r*δ)*ν univ := by
let A : Set (ℂ × ℂ) := {p | p.2 ∈ thinShell p.1 r δ}
have hA : MeasurableSet A := measurableSet_shellPairs r δ
have he (x : ℂ) : shellMass ν r δ x = ∫⁻ y, A.indicator 1 (x,y) ∂ν := by
rw [show (fun y : ℂ => A.indicator 1 (x,y)) = (thinShell x r δ).indicator 1 by
ext y; exact (indicator_comp_right (fun y : ℂ => (x,y))).symm]
exact (lintegral_indicator_one (measurableSet_thinShell x r δ)).symm
simp_rw [he]
rw [lintegral_lintegral_swap (f := fun x y : ℂ => A.indicator 1 (x,y))
(measurable_const.indicator hA).aemeasurable]
have hei (y : ℂ) : (fun x : ℂ => A.indicator (1 : ℂ × ℂ → ℝ≥0∞) (x,y)) =
(thinShell y r δ).indicator 1 := by
ext x
by_cases h : y ∈ thinShell x r δ
· rw [indicator_of_mem (show (x,y) ∈ A from h), indicator_of_mem ((shell_symm x y r δ).mp h)]
rfl
· rw [indicator_of_notMem (show (x,y) ∉ A from h), indicator_of_notMem (fun hx => h ((shell_symm x y r δ).mpr hx))]
simp_rw [hei, lintegral_indicator_one (measurableSet_thinShell _ r δ), volume_thinShell _ hδ hr]
exact lintegral_const _
lemma shellMass_exception (ν : Measure ℂ) [IsFiniteMeasure ν] {r δ U : ℝ}
(hδ : 0 ≤ δ) (hr : δ ≤ r) (hU : 0 < U) :
MeasurableSet {x | ENNReal.ofReal U ≤ shellMass ν r δ x} ∧
volume {x | ENNReal.ofReal U ≤ shellMass ν r δ x} ≤
ENNReal.ofReal (4*Real.pi*r*δ)*ν univ / ENNReal.ofReal U := by
refine ⟨measurableSet_le measurable_const (measurable_shellMass ν r δ), ?_⟩
have h := meas_ge_le_lintegral_div (μ := (volume : Measure ℂ))
(measurable_shellMass ν r δ).aemeasurable (ENNReal.ofReal_pos.mpr hU).ne' ENNReal.ofReal_ne_top
rwa [lintegral_shellMass ν hδ hr] at h
/-- A shell whose radius is sufficiently close to an endpoint is contained
in the endpoint annulus; this covers forced endpoint radii as well. -/
lemma thinShell_subset_endpoint {x : ℂ} {r a δ : ℝ} (hra : |r-a| ≤ δ) :
thinShell x r δ ⊆ thinShell x a (2*δ) := by
intro y hy
change |‖y-x‖-r| ≤ δ at hy
change |‖y-x‖-a| ≤ 2*δ
calc
_ = |(‖y-x‖-r)+(r-a)| := by congr 1; ring
_ ≤ |‖y-x‖-r|+|r-a| := abs_add_le _ _
_ ≤ 2*δ := by linarith
end DiskGeometry
end
end
end OAI

Xet Storage Details

Size:
40.2 kB
·
Xet hash:
6b1de0d6de4a8abf550f79adb37f5b4641056f7e836136646b55e2cdcb58f505

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.