Download data/lean/OAI/Analysis/DiskMaximal/Scales.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 34.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DiskMaximal/Scales.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/DiskMaximal/Scales.lean
-
curl -L -o Scales.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DiskMaximal/Scales.lean
34.8 kB
Lean 4 Β· 38
declarations statementsfull
| import OAI.Analysis.DiskMaximal.Cancellation | |
| 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 | |
| open MeasureTheory Set Filter | |
| open scoped Topology NNReal Real | |
| noncomputable section | |
| namespace DiskScales | |
| def width (Ξ΄ : β) (n : β) : β := Ξ΄*(1/2 : β)^n | |
| lemma width_pos {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) (n : β) : 0 < width Ξ΄ n := by | |
| unfold width | |
| positivity | |
| lemma width_le {Ξ΄ : β} (hΞ΄ : 0 β€ Ξ΄) (n : β) : width Ξ΄ n β€ Ξ΄ := by | |
| unfold width | |
| exact mul_le_of_le_one_right hΞ΄ (pow_le_oneβ (by norm_num) (by norm_num)) | |
| lemma width_succ (Ξ΄ : β) (n : β) : width Ξ΄ (n+1) = width Ξ΄ n / 2 := by | |
| simp only [width, pow_succ] | |
| ring | |
| lemma width_antitone {Ξ΄ : β} (hΞ΄ : 0 β€ Ξ΄) : Antitone (width Ξ΄) := by | |
| apply antitone_nat_of_succ_le | |
| intro n | |
| rw [width_succ] | |
| have : 0 β€ width Ξ΄ n := mul_nonneg hΞ΄ (pow_nonneg (by norm_num) _) | |
| linarith | |
| lemma tendsto_width (Ξ΄ : β) : Tendsto (width Ξ΄) atTop (π 0) := by | |
| change Tendsto (fun n => Ξ΄*(1/2 : β)^n) atTop (π 0) | |
| simpa only [mul_zero] using | |
| (tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num : (0 : β) β€ 1/2) | |
| (by norm_num : (1/2 : β) < 1)).const_mul Ξ΄ | |
| lemma width_rpow {Ξ΄ : β} (hΞ΄ : 0 β€ Ξ΄) (p : β) (n : β) : | |
| (width Ξ΄ n)^p = Ξ΄^p*((1/2 : β)^p)^n := by | |
| rw [width, Real.mul_rpow hΞ΄ (pow_nonneg (by norm_num) n)] | |
| congr 1 | |
| rw [β Real.rpow_natCast, β Real.rpow_mul (by norm_num), | |
| mul_comm (n : β) p, Real.rpow_mul (by norm_num), Real.rpow_natCast] | |
| lemma ratio_norm_lt {p : β} (hp : 0 < p) : β(1/2 : β)^pβ < 1 := by | |
| rw [Real.norm_eq_abs, abs_of_nonneg (Real.rpow_nonneg (by norm_num) _)] | |
| exact Real.rpow_lt_one (by norm_num) (by norm_num) hp | |
| lemma summable_width_rpow {Ξ΄ p : β} (hΞ΄ : 0 β€ Ξ΄) (hp : 0 < p) : | |
| Summable (fun n => (width Ξ΄ n)^p) := by | |
| simp_rw [width_rpow hΞ΄] | |
| exact (summable_geometric_of_norm_lt_one (ratio_norm_lt hp)).mul_left _ | |
| lemma tsum_width_rpow {Ξ΄ p : β} (hΞ΄ : 0 β€ Ξ΄) (hp : 0 < p) : | |
| (β' n, (width Ξ΄ n)^p) = Ξ΄^p / (1-(1/2 : β)^p) := by | |
| simp_rw [width_rpow hΞ΄] | |
| rw [tsum_mul_left, tsum_geometric_of_norm_lt_one (ratio_norm_lt hp)] | |
| rfl | |
| lemma scaled_increment {Cs A t Ξ΄ M L : β} (hCs : 0 β€ Cs) (hA : 0 β€ A) | |
| (hAt : A β€ t) (hΞ΄ : 0 < Ξ΄) (hΞ΄1 : Ξ΄ β€ 1) | |
| (hM : M β€ A*Ξ΄^(-(1/50 : β))) (hL : L β€ 648/Ξ΄) : | |
| 2*Ξ΄^(1/5 : β)*M+14*(t*Ξ΄^(1/10 : β))+ | |
| (L+2*(3*L+1))*Cs*Ξ΄^(2*(1-(1/100 : β)))*A β€ | |
| (16+4538*Cs)*t*Ξ΄^(1/10 : β) := by | |
| have ht : 0 β€ t := hA.trans hAt | |
| have hc : L+2*(3*L+1) β€ 4538/Ξ΄ := by | |
| have hh : L*Ξ΄ β€ 648 := (le_div_iffβ hΞ΄).mp hL | |
| apply (le_div_iffβ hΞ΄).mpr | |
| nlinarith | |
| have he1 : Ξ΄^(1/5 : β)*Ξ΄^(-(1/50 : β)) = Ξ΄^(9/50 : β) := by | |
| rw [β Real.rpow_add hΞ΄] | |
| norm_num | |
| have he2 : Ξ΄β»ΒΉ*Ξ΄^(2*(1-(1/100 : β))) = Ξ΄^(49/50 : β) := by | |
| rw [β Real.rpow_neg_one, β Real.rpow_add hΞ΄] | |
| norm_num | |
| have hb1 : Ξ΄^(9/50 : β) β€ Ξ΄^(1/10 : β) := | |
| Real.rpow_le_rpow_of_exponent_ge hΞ΄ hΞ΄1 (by norm_num) | |
| have hb2 : Ξ΄^(49/50 : β) β€ Ξ΄^(1/10 : β) := | |
| Real.rpow_le_rpow_of_exponent_ge hΞ΄ hΞ΄1 (by norm_num) | |
| have hm : 2*Ξ΄^(1/5 : β)*M β€ 2*t*Ξ΄^(1/10 : β) := by | |
| calc | |
| _ β€ 2*Ξ΄^(1/5 : β)*(A*Ξ΄^(-(1/50 : β))) := | |
| mul_le_mul_of_nonneg_left hM (by positivity) | |
| _ = 2*A*Ξ΄^(9/50 : β) := by rw [β he1]; ring | |
| _ β€ 2*t*Ξ΄^(1/10 : β) := mul_le_mul (by linarith) hb1 | |
| (Real.rpow_nonneg hΞ΄.le _) (by positivity) | |
| have hf : (L+2*(3*L+1))*Cs*Ξ΄^(2*(1-(1/100 : β)))*A β€ | |
| 4538*Cs*t*Ξ΄^(1/10 : β) := by | |
| calc | |
| _ β€ (4538/Ξ΄)*Cs*Ξ΄^(2*(1-(1/100 : β)))*A := by gcongr | |
| _ = 4538*Cs*A*Ξ΄^(49/50 : β) := by rw [β he2]; ring | |
| _ β€ 4538*Cs*t*Ξ΄^(1/10 : β) := mul_le_mul (by gcongr) hb2 | |
| (Real.rpow_nonneg hΞ΄.le _) (by positivity) | |
| nlinarith | |
| /-- A single small width works for both shell geometry and every smaller width. -/ | |
| lemma exists_admissible_width : β Ξ΄β : β, 0 < Ξ΄β β§ Ξ΄β β€ 1/4 β§ | |
| β Ξ΄ : β, 0 < Ξ΄ β Ξ΄ β€ Ξ΄β β Ξ΄ β€ (Ξ΄^(1/5 : β))^2/1600 := by | |
| have ht : Tendsto (fun Ξ΄ : β => Ξ΄^(3/5 : β)) (π 0) (π 0) := by | |
| simpa using (Real.continuous_rpow_const (by norm_num : (0 : β) β€ 3/5)).tendsto 0 | |
| have hev := ht.eventually_lt_const (by norm_num : (0 : β) < 1/1600) | |
| obtain β¨l,u,hu,hsβ© := mem_nhds_iff_exists_Ioo_subset.mp hev | |
| let d := min (u/2) (1/4) | |
| have hd : 0 < d := lt_min (by linarith [hu.2]) (by norm_num) | |
| refine β¨d, hd, min_le_right _ _, fun Ξ΄ hΞ΄ hΞ΄d => ?_β© | |
| have hdltu : d < u := lt_of_le_of_lt (min_le_left _ _) (by linarith [hu.2]) | |
| have hp : Ξ΄^(3/5 : β) < 1/1600 := hs β¨lt_trans hu.1 hΞ΄, lt_of_le_of_lt hΞ΄d hdltuβ© | |
| have he : Ξ΄ = Ξ΄^(3/5 : β)*(Ξ΄^(1/5 : β))^2 := by | |
| rw [β Real.rpow_natCast, β Real.rpow_mul hΞ΄.le, β Real.rpow_add hΞ΄] | |
| norm_num | |
| calc | |
| Ξ΄ = Ξ΄^(3/5 : β)*(Ξ΄^(1/5 : β))^2 := he | |
| _ β€ (Ξ΄^(1/5 : β))^2/1600 := | |
| (mul_le_mul_of_nonneg_right hp.le (sq_nonneg _)).trans_eq (by ring) | |
| end DiskScales | |
| namespace LocalCancellation | |
| open DiskGeometry DiskKernels DiskScales | |
| variable {ΞΉ : Type*} [Fintype ΞΉ] | |
| /-- Uniform exceptional sets controlling a whole decreasing sequence of disk | |
| mixtures. Only active increments require the exact balanced moment. -/ | |
| theorem size_sequence {Cs d t : β} (b : ΞΉ β ErrorPiece Cs) | |
| (hCs : 0 β€ Cs) (hd : 0 < d) (hdq : d β€ 1/4) | |
| (hgeom : β Ξ΄ : β, 0 < Ξ΄ β Ξ΄ β€ d β Ξ΄ β€ (Ξ΄^(1/5 : β))^2/1600) | |
| (ht : 0 < t) (hAt : errorPrice b (1/100) β€ t) : | |
| β E : Set β, MeasurableSet E β§ | |
| volume E β€ β' n : β, ( | |
| (ENNReal.ofReal (t*(width d n)^(1/10 : β)))β»ΒΉ ^ 2 * | |
| (ENNReal.ofReal (156*width d n/(width d n)^(1/5 : β))* | |
| ENNReal.ofReal (coarseMass b (width d n) univ)*ENNReal.ofReal (coarseMass b (width d n) univ)) + | |
| (ENNReal.ofReal (t*(width d n)^(1/10 : β)))β»ΒΉ * | |
| ((ENNReal.ofReal (6*Real.pi)*ENNReal.ofReal (2*(200*width d n/((width d n)^(1/5 : β))^2)))* | |
| ENNReal.ofReal (coarseMass b (width d n) univ))) β§ | |
| β x β E, β r β Icc (1 : β) 2, | |
| β k : β n : β, RadiusDensity (r-width d n) (r+width d n) | |
| β¨216/width d n, div_nonneg (by norm_num) (width_pos hd n).leβ©, | |
| (β n, t*(width d n)^(1/10 : β) β€ coarseMass b (width d n) (thinShell x r (width d n)) β | |
| (β j, β« y, star (y-x)*((kernel (k (n+1)) x y : β)-kernel (k n) x y)*(b j).density y) = 0) β | |
| ββ j, β« y in Metric.ball x r, (b j).density yβ β€ | |
| (1+216*Cs)/d^(1/100 : β)*errorPrice b (1/100)+ | |
| (16+4538*Cs)*t*d^(1/10 : β)/(1-(1/2 : β)^(1/10 : β)) := by | |
| have hd1 : d β€ 1 := by linarith | |
| have hwp (n : β) : 0 < width d n := width_pos hd n | |
| have hw1 (n : β) : width d n β€ 1 := (width_le hd.le n).trans hd1 | |
| have hΟ (n : β) : 0 < (width d n)^(1/5 : β) := Real.rpow_pos_of_pos (hwp n) _ | |
| have hΟ1 (n : β) : (width d n)^(1/5 : β) β€ 1 := | |
| Real.rpow_le_one (hwp n).le (hw1 n) (by norm_num) | |
| have hs (n : β) := size_step b hCs (by norm_num : (1/100 : β) β€ 1) | |
| (hwp n) (hΟ n) (hΟ1 n) (hgeom _ (hwp n) (width_le hd.le n)) | |
| (mul_pos ht (Real.rpow_pos_of_pos (hwp n) (1/10 : β))) | |
| choose E hE hEv hEst using hs | |
| refine β¨β n, E n, MeasurableSet.iUnion hE, | |
| (measure_iUnion_le E).trans (ENNReal.tsum_le_tsum hEv), ?_β© | |
| intro x hx r hr k hz | |
| have hxE (n : β) : x β E n := fun hn => hx (mem_iUnion.mpr β¨n,hnβ©) | |
| let P (n : β) : β := β j, β« y, (kernel (k n) x y : β)*(b j).density y | |
| let B : β := β j, β« y in Metric.ball x r, (b j).density y | |
| have hPi (n : β) (j : ΞΉ) : Integrable (fun y => (kernel (k n) x y : β)*(b j).density y) := | |
| integrable_bounded_pairing (b j).integrable (complex_kernel_lipschitz (k n) x).continuous.aestronglyMeasurable (complex_kernel_bound (k n) x) | |
| have hdist (n : β) : dist (P n) (P (n+1)) β€ | |
| (16+4538*Cs)*t*(width d n)^(1/10 : β) := by | |
| let F (y : β) : β := (kernel (k (n+1)) x y : β)-kernel (k n) x y | |
| have hL : 216/width d (n+1)+216/width d n β€ 648/width d n := by | |
| rw [width_succ] | |
| apply le_of_eq | |
| ring | |
| have hF := (complex_kernel_lipschitz (k (n+1)) x).sub (complex_kernel_lipschitz (k n) x) | |
| have hbnd := hEst n x (hxE n) r hr _ F hF | |
| (difference_bound (k n) (k (n+1)) x) | |
| (difference_support (k n) (k (n+1)) (width_antitone hd.le (Nat.le_succ n)) x) | |
| (hz n) | |
| have hM : coarseMass b (width d n) univ β€ | |
| errorPrice b (1/100)*(width d n)^(-(1/50 : β)) := by | |
| have hh := coarseMass_bound b (by norm_num : (0 : β) β€ 1/100) (hwp n) | |
| norm_num at hh | |
| simpa only [Real.rpow_neg (hwp n).le, div_eq_mul_inv] using hh | |
| have hstep := scaled_increment hCs (errorPrice_nonneg b (1/100)) hAt (hwp n) (hw1 n) hM hL | |
| have he : P (n+1)-P n = β j, β« y, F y*(b j).density y := by | |
| change (β j, β« y, (kernel (k (n+1)) x y : β)*(b j).density y) - | |
| (β j, β« y, (kernel (k n) x y : β)*(b j).density y) = _ | |
| rw [β Finset.sum_sub_distrib] | |
| apply Finset.sum_congr rfl | |
| intro j _ | |
| rw [β integral_sub (hPi (n+1) j) (hPi n j)] | |
| congr 1 | |
| ext y | |
| simp only [F, sub_mul] | |
| rw [dist_eq_norm, norm_sub_rev, he] | |
| exact hbnd.trans hstep | |
| have hlim : Tendsto P atTop (π B) := | |
| tendsto_finsetSum Finset.univ (fun j _ => tendsto_kernel_pairing k (tendsto_width d) x (b j).integrable) | |
| have hsm : Summable (fun n => (16+4538*Cs)*t*(width d n)^(1/10 : β)) := | |
| (summable_width_rpow hd.le (by norm_num : (0 : β) < 1/10)).mul_left _ | |
| have htail := dist_le_tsum_of_dist_le_of_tendstoβ _ hdist hsm hlim | |
| rw [tsum_mul_left, tsum_width_rpow hd.le (by norm_num : (0 : β) < 1/10)] at htail | |
| have hstart : βP 0β β€ (1+216*Cs)/d^(1/100 : β)*errorPrice b (1/100) := by | |
| have hh := total_pairing_discount b (by norm_num : (0 : β) β€ 1/100) | |
| (by norm_num : (1/100 : β) β€ 1) (hwp 0) (hw1 0) | |
| (show 1 β€ 1+216*Cs by linarith) | |
| (complex_kernel_lipschitz (k 0) x) (complex_kernel_bound (k 0) x) | |
| (show (216/width d 0)*Cs β€ (1+216*Cs)/width d 0 by | |
| apply (le_div_iffβ (hwp 0)).mpr | |
| field_simp [(hwp 0).ne'] | |
| linarith) | |
| simpa only [P, width, pow_zero, mul_one] using hh | |
| calc | |
| βBβ = βP 0+(B-P 0)β := by congr 1; ring | |
| _ β€ βP 0β+βB-P 0β := norm_add_le _ _ | |
| _ = βP 0β+dist (P 0) B := by rw [dist_eq_norm, norm_sub_rev] | |
| _ β€ (1+216*Cs)/d^(1/100 : β)*errorPrice b (1/100)+ | |
| (16+4538*Cs)*t*(d^(1/10 : β)/(1-(1/2 : β)^(1/10 : β))) := | |
| add_le_add hstart htail | |
| _ = _ := by ring | |
| end LocalCancellation | |
| namespace DiskGeometry | |
| def endpointFailure (Ξ½ : Measure β) (Ξ΄ U : β) : Set β := | |
| {x | ENNReal.ofReal U β€ shellMass Ξ½ 1 (2*Ξ΄) x} βͺ | |
| {x | ENNReal.ofReal U β€ shellMass Ξ½ 2 (2*Ξ΄) x} | |
| lemma endpoint_failure_bound (Ξ½ : Measure β) [IsFiniteMeasure Ξ½] | |
| {Ξ΄ U : β} (hΞ΄ : 0 β€ Ξ΄) (hΞ΄q : Ξ΄ β€ 1/4) (hU : 0 < U) : | |
| MeasurableSet (endpointFailure Ξ½ Ξ΄ U) β§ | |
| volume (endpointFailure Ξ½ Ξ΄ U) β€ ENNReal.ofReal (24*Real.pi*Ξ΄)*Ξ½ univ/ENNReal.ofReal U := by | |
| obtain β¨h1,hb1β© := shellMass_exception Ξ½ (show 0 β€ 2*Ξ΄ by positivity) | |
| (show 2*Ξ΄ β€ 1 by linarith) hU | |
| obtain β¨h2,hb2β© := shellMass_exception Ξ½ (show 0 β€ 2*Ξ΄ by positivity) | |
| (show 2*Ξ΄ β€ 2 by linarith) hU | |
| refine β¨h1.union h2, (measure_union_le _ _).trans ((add_le_add hb1 hb2).trans_eq ?_)β© | |
| simp only [div_eq_mul_inv] | |
| rw [β add_mul, β add_mul, β ENNReal.ofReal_add (by positivity) (by positivity)] | |
| congr 3 | |
| ring | |
| lemma active_away_from_endpoints (Ξ½ : Measure β) {x : β} {Ξ΄ U r : β} | |
| (hx : x β endpointFailure Ξ½ Ξ΄ U) (hr : r β Icc (1 : β) 2) | |
| (ha : ENNReal.ofReal U β€ Ξ½ (thinShell x r Ξ΄)) : | |
| 1+Ξ΄ β€ r β§ r+Ξ΄ β€ 2 := by | |
| constructor | |
| Β· by_contra hh | |
| have he : |r-1| β€ Ξ΄ := by rw [abs_of_nonneg (by linarith [hr.1])]; linarith | |
| exact hx (Or.inl (ha.trans (measure_mono (thinShell_subset_endpoint he)))) | |
| Β· by_contra hh | |
| have he : |r-2| β€ Ξ΄ := by rw [abs_of_nonpos (by linarith [hr.2])]; linarith | |
| exact hx (Or.inr (ha.trans (measure_mono (thinShell_subset_endpoint he)))) | |
| end DiskGeometry | |
| namespace DiskMoments | |
| open DiskKernels DiskGeometry | |
| def EndpointRadius (g : β β β) (x : β) (r : β) : Prop := | |
| r β Icc (1 : β) 2 β§ (r = 1 β¨ r = 2 β¨ | |
| β t β Icc (1 : β) 2, signedAverage g x t β€ signedAverage g x r) | |
| /-- Every band-maximizing or forced-endpoint radius has honest mixtures; | |
| balancing is imposed exactly when its width stays inside the band. -/ | |
| lemma endpoint_kernel {g : β β β} (hg : ContDiff β 1 g) {x : β} {r Ξ΄ : β} | |
| (hr : EndpointRadius g x r) (hΞ΄ : 0 < Ξ΄) (hΞ΄q : Ξ΄ β€ 1/4) : | |
| β k : RadiusDensity (r-Ξ΄) (r+Ξ΄) β¨216/Ξ΄, by positivityβ©, | |
| (1+Ξ΄ β€ r β§ r+Ξ΄ β€ 2 β | |
| (β« y, kernel k x y β’ (star (y-x)*gradient g y)) = 0) := by | |
| by_cases hi : 1+Ξ΄ β€ r β§ r+Ξ΄ β€ 2 | |
| Β· have hm : β t β Icc (1 : β) 2, signedAverage g x t β€ signedAverage g x r := by | |
| rcases hr.2 with h | h | h | |
| Β· linarith [hi.1] | |
| Β· linarith [hi.2] | |
| Β· exact h | |
| obtain β¨k,hkβ© := balanced_kernel hg x hr.1 hΞ΄ hΞ΄q | |
| (hm _ β¨by linarith [hi.1], by linarith [hr.1.2]β©) | |
| (hm _ β¨by linarith [hr.1.1], hi.2β©) | |
| exact β¨k, fun _ => hkβ© | |
| Β· have ha : (1 : β)/2 β€ r-Ξ΄ := by linarith [hr.1.1] | |
| have hb : r+Ξ΄ β€ (3 : β) := by linarith [hr.1.2] | |
| have hab : r-Ξ΄ < r+Ξ΄ := by linarith | |
| let k := inverseCubeDensity (r-Ξ΄) (r+Ξ΄) ha hb hab | |
| refine β¨enlarge k le_rfl le_rfl ?_, fun h => (hi h).elimβ© | |
| change 216/(r+Ξ΄-(r-Ξ΄)) β€ 216/Ξ΄ | |
| apply div_le_div_of_nonneg_left (by norm_num) hΞ΄ | |
| linarith | |
| end DiskMoments | |
| namespace LocalCancellation | |
| open DiskKernels DiskMoments DiskGeometry DiskScales | |
| variable {ΞΉ : Type*} [Fintype ΞΉ] | |
| lemma moment_pairing_integrable {Cs r Ξ΄ : β} (b : ErrorPiece Cs) | |
| {M : ββ₯0} (k : RadiusDensity (r-Ξ΄) (r+Ξ΄) M) (x : β) (hr : r+Ξ΄ β€ 3) : | |
| Integrable (fun y => star (y-x)*(kernel k x y : β)*b.density y) := by | |
| apply integrable_bounded_pairing b.integrable | |
| ((by fun_prop : Continuous (fun y : β => star (y-x))).mul | |
| (complex_kernel_lipschitz k x).continuous).aestronglyMeasurable | |
| apply position_bound (complex_kernel_bound k x) x (by norm_num : (0 : β) β€ 3) | |
| intro y hy | |
| have hyb : y β Metric.ball x (r+Ξ΄) := by | |
| by_contra hh | |
| exact hy (by rw [kernel_zero k x hh, Complex.ofReal_zero]) | |
| exact (show βy-xβ < r+Ξ΄ by simpa only [Metric.mem_ball, dist_eq_norm] using hyb).le.trans hr | |
| /-- A local equality of genuine densities suffices for all supported moments. -/ | |
| lemma moment_pairing_decomposition {Cs r Ξ΄ : β} (b : ΞΉ β ErrorPiece Cs) | |
| {M : ββ₯0} (k : RadiusDensity (r-Ξ΄) (r+Ξ΄) M) (x : β) {h : β β β} | |
| (hr : r+Ξ΄ β€ 3) (hh : βα΅ y, y β Metric.ball x 3 β β j, (b j).density y = h y) : | |
| (β j, β« y, star (y-x)*(kernel k x y : β)*(b j).density y) = | |
| β« y, kernel k x y β’ (star (y-x)*h y) := by | |
| rw [β integral_finsetSum _ (fun j _ => moment_pairing_integrable (b j) k x hr)] | |
| apply integral_congr_ae | |
| filter_upwards [hh] with y hy | |
| simp only [β Finset.mul_sum] | |
| by_cases hmem : y β Metric.ball x 3 | |
| Β· rw [hy hmem, Complex.real_smul] | |
| ring | |
| Β· have hk : kernel k x y = 0 := kernel_zero k x | |
| (fun hb => hmem (lt_of_lt_of_le hb hr)) | |
| rw [hk, Complex.ofReal_zero, mul_zero, zero_mul, zero_smul] | |
| lemma moment_difference_decomposition {Cs r Ξ΄ Ξ΅ : β} (b : ΞΉ β ErrorPiece Cs) | |
| {M N : ββ₯0} (k : RadiusDensity (r-Ξ΄) (r+Ξ΄) M) | |
| (l : RadiusDensity (r-Ξ΅) (r+Ξ΅) N) (x : β) {h : β β β} | |
| (hrΞ΄ : r+Ξ΄ β€ 3) (hrΞ΅ : r+Ξ΅ β€ 3) | |
| (hh : βα΅ y, y β Metric.ball x 3 β β j, (b j).density y = h y) | |
| (hk : (β« y, kernel k x y β’ (star (y-x)*h y)) = 0) | |
| (hl : (β« y, kernel l x y β’ (star (y-x)*h y)) = 0) : | |
| (β j, β« y, star (y-x)*((kernel l x y : β)-kernel k x y)*(b j).density y) = 0 := by | |
| have he : β j, (β« y, star (y-x)*((kernel l x y : β)-kernel k x y)*(b j).density y) = | |
| (β« y, star (y-x)*(kernel l x y : β)*(b j).density y) - | |
| (β« y, star (y-x)*(kernel k x y : β)*(b j).density y) := by | |
| intro j | |
| rw [β integral_sub (moment_pairing_integrable (b j) l x hrΞ΅) | |
| (moment_pairing_integrable (b j) k x hrΞ΄)] | |
| congr 1 | |
| ext y | |
| ring | |
| simp_rw [he] | |
| rw [Finset.sum_sub_distrib, moment_pairing_decomposition b l x hrΞ΅ hh, | |
| moment_pairing_decomposition b k x hrΞ΄ hh, hk, hl, sub_self] | |
| lemma ball_pairing_decomposition {Cs r : β} (b : ΞΉ β ErrorPiece Cs) | |
| (x : β) {h : β β β} (hr : r β€ 3) | |
| (hh : βα΅ y, y β Metric.ball x 3 β β j, (b j).density y = h y) : | |
| (β j, β« y in Metric.ball x r, (b j).density y) = β« y in Metric.ball x r, h y := by | |
| rw [β integral_finsetSum _ (fun j _ => (b j).integrable.integrableOn)] | |
| apply setIntegral_congr_ae measurableSet_ball | |
| filter_upwards [hh] with y hy hyb | |
| exact hy (lt_of_lt_of_le hyb hr) | |
| /-- The full raw band-endpoint size estimate. All maxima and both forced radii | |
| are simultaneous, with no measurable radius selection required. -/ | |
| theorem size_endpoint_raw {Cs d t : β} (b : ΞΉ β ErrorPiece Cs) | |
| (hCs : 0 β€ Cs) (hd : 0 < d) (hdq : d β€ 1/4) | |
| (hgeom : β Ξ΄ : β, 0 < Ξ΄ β Ξ΄ β€ d β Ξ΄ β€ (Ξ΄^(1/5 : β))^2/1600) | |
| (ht : 0 < t) (hAt : errorPrice b (1/100) β€ t) | |
| {g : β β β} (hg : ContDiff β 1 g) : | |
| β E : Set β, MeasurableSet E β§ | |
| volume E β€ β' n : β, ( | |
| (ENNReal.ofReal (t*(width d n)^(1/10 : β)))β»ΒΉ ^ 2 * | |
| (ENNReal.ofReal (156*width d n/(width d n)^(1/5 : β))* | |
| ENNReal.ofReal (coarseMass b (width d n) univ)*ENNReal.ofReal (coarseMass b (width d n) univ)) + | |
| (ENNReal.ofReal (t*(width d n)^(1/10 : β)))β»ΒΉ * | |
| ((ENNReal.ofReal (6*Real.pi)*ENNReal.ofReal (2*(200*width d n/((width d n)^(1/5 : β))^2)))* | |
| ENNReal.ofReal (coarseMass b (width d n) univ)) + | |
| ENNReal.ofReal (24*Real.pi*width d n)*ENNReal.ofReal (coarseMass b (width d n) univ)/ | |
| ENNReal.ofReal (t*(width d n)^(1/10 : β))) β§ | |
| β x β E, | |
| (βα΅ y, y β Metric.ball x 3 β β j, (b j).density y = gradient g y) β | |
| β r, EndpointRadius g x r β | |
| ββ« y in Metric.ball x r, gradient g yβ β€ | |
| (1+216*Cs)/d^(1/100 : β)*errorPrice b (1/100)+ | |
| (16+4538*Cs)*t*d^(1/10 : β)/(1-(1/2 : β)^(1/10 : β)) := by | |
| have hwp (n : β) : 0 < width d n := width_pos hd n | |
| have hwq (n : β) : width d n β€ 1/4 := (width_le hd.le n).trans hdq | |
| let F (n : β) := endpointFailure (coarseMeasure b (width d n)) (width d n) | |
| (t*(width d n)^(1/10 : β)) | |
| have hF (n : β) := endpoint_failure_bound (coarseMeasure b (width d n)) | |
| (hwp n).le (hwq n) (mul_pos ht (Real.rpow_pos_of_pos (hwp n) (1/10 : β))) | |
| obtain β¨E,hE,hEv,hEstβ© := size_sequence b hCs hd hdq hgeom ht hAt | |
| refine β¨E βͺ β n, F n, hE.union (MeasurableSet.iUnion fun n => (hF n).1), ?_, ?_β© | |
| Β· apply (measure_union_le _ _).trans | |
| apply (add_le_add hEv ((measure_iUnion_le F).trans (ENNReal.tsum_le_tsum (fun n => (hF n).2)))).trans_eq | |
| rw [β ENNReal.tsum_add] | |
| congr 1 | |
| funext n | |
| rw [coarseMeasure_apply b (width d n) MeasurableSet.univ] | |
| Β· intro x hx hh r hr | |
| have hxE : x β E := fun h => hx (Or.inl h) | |
| have hxF (n : β) : x β F n := fun h => hx (Or.inr (mem_iUnion.mpr β¨n,hβ©)) | |
| choose k hk using fun n => endpoint_kernel hg hr (hwp n) (hwq n) | |
| rw [β ball_pairing_decomposition b x (by linarith [hr.1.2]) hh] | |
| apply hEst x hxE r hr.1 k | |
| intro n ha | |
| have haway : 1+width d n β€ r β§ r+width d n β€ 2 := by | |
| apply active_away_from_endpoints (coarseMeasure b (width d n)) (hxF n) hr.1 | |
| rw [coarseMeasure_apply b (width d n) (measurableSet_thinShell x r (width d n))] | |
| exact ENNReal.ofReal_le_ofReal ha | |
| have haway' : 1+width d (n+1) β€ r β§ r+width d (n+1) β€ 2 := by | |
| have hw := width_antitone hd.le (Nat.le_succ n) | |
| constructor <;> linarith [haway.1,haway.2] | |
| exact moment_difference_decomposition b (k n) (k (n+1)) x | |
| (by linarith [hr.1.2,hwq n]) (by linarith [hr.1.2,hwq (n+1)]) hh | |
| (hk n haway) (hk (n+1) haway') | |
| end LocalCancellation | |
| namespace DiskScales | |
| lemma first_power_identity {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) : | |
| (Ξ΄^(1/10 : β))β»ΒΉ^2 * (Ξ΄ / Ξ΄^(1/5 : β) * Ξ΄^(-(1/50 : β)) * Ξ΄^(-(1/50 : β))) = | |
| Ξ΄^(14/25 : β) := by | |
| rw [β Real.rpow_neg hΞ΄.le, β Real.rpow_natCast, β Real.rpow_mul hΞ΄.le] | |
| have he (a : β) : Ξ΄ / Ξ΄^a = Ξ΄^(1-a) := by | |
| rw [Real.rpow_sub hΞ΄, Real.rpow_one] | |
| rw [he] | |
| rw [β mul_assoc, β mul_assoc, β Real.rpow_add hΞ΄, β Real.rpow_add hΞ΄, β Real.rpow_add hΞ΄] | |
| norm_num | |
| lemma second_power_identity {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) : | |
| (Ξ΄^(1/10 : β))β»ΒΉ * (Ξ΄ / (Ξ΄^(1/5 : β))^2 * Ξ΄^(-(1/50 : β))) = | |
| Ξ΄^(12/25 : β) := by | |
| rw [β Real.rpow_neg hΞ΄.le, β Real.rpow_natCast, β Real.rpow_mul hΞ΄.le] | |
| have he (a : β) : Ξ΄ / Ξ΄^a = Ξ΄^(1-a) := by | |
| rw [Real.rpow_sub hΞ΄, Real.rpow_one] | |
| rw [he] | |
| rw [β mul_assoc, β Real.rpow_add hΞ΄, β Real.rpow_add hΞ΄] | |
| norm_num | |
| lemma endpoint_power_identity {Ξ΄ : β} (hΞ΄ : 0 < Ξ΄) : | |
| Ξ΄ * Ξ΄^(-(1/50 : β)) / Ξ΄^(1/10 : β) = Ξ΄^(22/25 : β) := by | |
| have he : Ξ΄ * Ξ΄^(-(1/50 : β)) = Ξ΄^(1-(1/50 : β)) := by | |
| simp only [Real.rpow_sub hΞ΄, Real.rpow_one, Real.rpow_neg hΞ΄.le, div_eq_mul_inv] | |
| rw [he, β Real.rpow_sub hΞ΄] | |
| norm_num | |
| /-- The two geometric failure mechanisms have integrable superlevel powers. -/ | |
| lemma shell_tail_scaled {A t Ξ΄ M : β} (hA : 0 β€ A) (ht : 0 < t) | |
| (hΞ΄ : 0 < Ξ΄) (hΞ΄1 : Ξ΄ β€ 1) (hM0 : 0 β€ M) | |
| (hM : M β€ A*Ξ΄^(-(1/50 : β))) : | |
| (ENNReal.ofReal (t*Ξ΄^(1/10 : β)))β»ΒΉ ^ 2 * | |
| (ENNReal.ofReal (156*Ξ΄/Ξ΄^(1/5 : β))*ENNReal.ofReal M*ENNReal.ofReal M) + | |
| (ENNReal.ofReal (t*Ξ΄^(1/10 : β)))β»ΒΉ * | |
| ((ENNReal.ofReal (6*Real.pi)*ENNReal.ofReal (2*(200*Ξ΄/(Ξ΄^(1/5 : β))^2)))*ENNReal.ofReal M) β€ | |
| ENNReal.ofReal (156*(A/t)^2*Ξ΄^(14/25 : β)+2400*Real.pi*(A/t)*Ξ΄^(9/25 : β)) := by | |
| have hU : 0 < t*Ξ΄^(1/10 : β) := mul_pos ht (Real.rpow_pos_of_pos hΞ΄ _) | |
| rw [β ENNReal.ofReal_inv_of_pos hU, β ENNReal.ofReal_pow (inv_nonneg.mpr hU.le)] | |
| have hp : 0 β€ 156*Ξ΄/Ξ΄^(1/5 : β) := by positivity | |
| have hp' : 0 β€ 2*(200*Ξ΄/(Ξ΄^(1/5 : β))^2) := by positivity | |
| rw [β ENNReal.ofReal_mul hp, β ENNReal.ofReal_mul (mul_nonneg hp hM0), | |
| β ENNReal.ofReal_mul (sq_nonneg _), | |
| β ENNReal.ofReal_mul (show (0 : β) β€ 6*Real.pi by positivity), | |
| β ENNReal.ofReal_mul (mul_nonneg (by positivity) hp'), | |
| β ENNReal.ofReal_mul (inv_nonneg.mpr hU.le), | |
| β ENNReal.ofReal_add (by positivity) (by positivity)] | |
| apply ENNReal.ofReal_le_ofReal | |
| have hfirst : (t*Ξ΄^(1/10 : β))β»ΒΉ^2 * (156*Ξ΄/Ξ΄^(1/5 : β)*M*M) β€ | |
| 156*(A/t)^2*Ξ΄^(14/25 : β) := by | |
| calc | |
| _ β€ (t*Ξ΄^(1/10 : β))β»ΒΉ^2 * | |
| (156*Ξ΄/Ξ΄^(1/5 : β)*(A*Ξ΄^(-(1/50 : β)))*(A*Ξ΄^(-(1/50 : β)))) := by gcongr | |
| _ = 156*(A/t)^2*Ξ΄^(14/25 : β) := by | |
| rw [β first_power_identity hΞ΄] | |
| simp only [mul_inv_rev] | |
| ring | |
| have hsecond : (t*Ξ΄^(1/10 : β))β»ΒΉ * | |
| (6*Real.pi*(2*(200*Ξ΄/(Ξ΄^(1/5 : β))^2))*M) β€ | |
| 2400*Real.pi*(A/t)*Ξ΄^(9/25 : β) := by | |
| calc | |
| _ β€ (t*Ξ΄^(1/10 : β))β»ΒΉ * | |
| (6*Real.pi*(2*(200*Ξ΄/(Ξ΄^(1/5 : β))^2))*(A*Ξ΄^(-(1/50 : β)))) := by gcongr | |
| _ = 2400*Real.pi*(A/t)*Ξ΄^(12/25 : β) := by | |
| rw [β second_power_identity hΞ΄] | |
| simp only [mul_inv_rev] | |
| ring | |
| _ β€ 2400*Real.pi*(A/t)*Ξ΄^(9/25 : β) := | |
| mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge hΞ΄ hΞ΄1 (by norm_num)) (by positivity) | |
| exact add_le_add hfirst hsecond | |
| lemma endpoint_tail_scaled {A t Ξ΄ M : β} (hA : 0 β€ A) (ht : 0 < t) | |
| (hΞ΄ : 0 < Ξ΄) (hΞ΄1 : Ξ΄ β€ 1) | |
| (hM : M β€ A*Ξ΄^(-(1/50 : β))) : | |
| ENNReal.ofReal (24*Real.pi*Ξ΄)*ENNReal.ofReal M / ENNReal.ofReal (t*Ξ΄^(1/10 : β)) β€ | |
| ENNReal.ofReal (24*Real.pi*(A/t)*Ξ΄^(9/25 : β)) := by | |
| rw [β ENNReal.ofReal_mul (by positivity), β ENNReal.ofReal_div_of_pos (by positivity)] | |
| apply ENNReal.ofReal_le_ofReal | |
| calc | |
| _ β€ (24*Real.pi*Ξ΄)*(A*Ξ΄^(-(1/50 : β)))/(t*Ξ΄^(1/10 : β)) := by gcongr | |
| _ = 24*Real.pi*(A/t)*Ξ΄^(22/25 : β) := by | |
| rw [β endpoint_power_identity hΞ΄] | |
| ring | |
| _ β€ 24*Real.pi*(A/t)*Ξ΄^(9/25 : β) := | |
| mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge hΞ΄ hΞ΄1 (by norm_num)) (by positivity) | |
| end DiskScales | |
| namespace DiskScales | |
| lemma norm_geometric_rpow_lt {p : β} (hp : 0 < p) : (1/2 : β)^p < 1 := | |
| Real.rpow_lt_one (by norm_num) (by norm_num) hp | |
| lemma raw_endpoint_tail_scaled {A t Ξ΄ M : β} (hA : 0 β€ A) (ht : 0 < t) | |
| (hΞ΄ : 0 < Ξ΄) (hΞ΄1 : Ξ΄ β€ 1) (hM0 : 0 β€ M) | |
| (hM : M β€ A*Ξ΄^(-(1/50 : β))) : | |
| (ENNReal.ofReal (t*Ξ΄^(1/10 : β)))β»ΒΉ ^ 2 * | |
| (ENNReal.ofReal (156*Ξ΄/Ξ΄^(1/5 : β))*ENNReal.ofReal M*ENNReal.ofReal M) + | |
| (ENNReal.ofReal (t*Ξ΄^(1/10 : β)))β»ΒΉ * | |
| ((ENNReal.ofReal (6*Real.pi)*ENNReal.ofReal (2*(200*Ξ΄/(Ξ΄^(1/5 : β))^2)))*ENNReal.ofReal M) + | |
| ENNReal.ofReal (24*Real.pi*Ξ΄)*ENNReal.ofReal M/ENNReal.ofReal (t*Ξ΄^(1/10 : β)) β€ | |
| ENNReal.ofReal (156*(A/t)^2*Ξ΄^(14/25 : β)+2424*Real.pi*(A/t)*Ξ΄^(9/25 : β)) := by | |
| calc | |
| _ β€ ENNReal.ofReal (156*(A/t)^2*Ξ΄^(14/25 : β)+2400*Real.pi*(A/t)*Ξ΄^(9/25 : β)) + | |
| ENNReal.ofReal (24*Real.pi*(A/t)*Ξ΄^(9/25 : β)) := | |
| add_le_add (shell_tail_scaled hA ht hΞ΄ hΞ΄1 hM0 hM) | |
| (endpoint_tail_scaled hA ht hΞ΄ hΞ΄1 hM) | |
| _ = _ := by | |
| rw [β ENNReal.ofReal_add (by positivity) (by positivity)] | |
| congr 1 | |
| ring | |
| lemma geometric_tail_sum {A t d : β} (hA : 0 β€ A) (ht : 0 < t) (hd : 0 β€ d) : | |
| (β' n : β, ENNReal.ofReal | |
| (156*(A/t)^2*(width d n)^(14/25 : β)+2424*Real.pi*(A/t)*(width d n)^(9/25 : β))) = | |
| ENNReal.ofReal (156*(A/t)^2*d^(14/25 : β)/(1-(1/2 : β)^(14/25 : β))+ | |
| 2424*Real.pi*(A/t)*d^(9/25 : β)/(1-(1/2 : β)^(9/25 : β))) := by | |
| have h1 := (summable_width_rpow hd (by norm_num : (0 : β) < 14/25)).mul_left (156*(A/t)^2) | |
| have h2 := (summable_width_rpow hd (by norm_num : (0 : β) < 9/25)).mul_left (2424*Real.pi*(A/t)) | |
| have hn (n : β) : 0 β€ width d n := mul_nonneg hd (pow_nonneg (by norm_num) n) | |
| have hc1 : 0 β€ 156*(A/t)^2 := by positivity | |
| have hc2 : 0 β€ 2424*Real.pi*(A/t) := by positivity | |
| rw [β ENNReal.ofReal_tsum_of_nonneg (fun n => add_nonneg | |
| (mul_nonneg hc1 (Real.rpow_nonneg (hn n) _)) | |
| (mul_nonneg hc2 (Real.rpow_nonneg (hn n) _))) (h1.add h2), | |
| Summable.tsum_add h1 h2, tsum_mul_left, tsum_mul_left, | |
| tsum_width_rpow hd (by norm_num : (0 : β) < 14/25), | |
| tsum_width_rpow hd (by norm_num : (0 : β) < 9/25)] | |
| congr 1 | |
| ring | |
| /-- After the initial-width choice d=A/t, the failure exponents are strictly | |
| larger than one, rather than the nonintegrable weak-(1,1) exponent. -/ | |
| lemma starting_width_tail {A t : β} (hA : 0 < A) (ht : 0 < t) : | |
| 156*(A/t)^2*(A/t)^(14/25 : β)/(1-(1/2 : β)^(14/25 : β))+ | |
| 2424*Real.pi*(A/t)*(A/t)^(9/25 : β)/(1-(1/2 : β)^(9/25 : β)) = | |
| (156/(1-(1/2 : β)^(14/25 : β)))*(A/t)^(64/25 : β)+ | |
| (2424*Real.pi/(1-(1/2 : β)^(9/25 : β)))*(A/t)^(34/25 : β) := by | |
| have hq : 0 < A/t := div_pos hA ht | |
| have he1 : (A/t)^2*(A/t)^(14/25 : β) = (A/t)^(64/25 : β) := by | |
| rw [β Real.rpow_natCast, β Real.rpow_add hq] | |
| norm_num | |
| have he2 : (A/t)*(A/t)^(9/25 : β) = (A/t)^(34/25 : β) := by | |
| conv_lhs => lhs; rw [β Real.rpow_one (A/t)] | |
| rw [β Real.rpow_add hq] | |
| norm_num | |
| calc | |
| _ = (156/(1-(1/2 : β)^(14/25 : β)))*((A/t)^2*(A/t)^(14/25 : β))+ | |
| (2424*Real.pi/(1-(1/2 : β)^(9/25 : β)))*((A/t)*(A/t)^(9/25 : β)) := by ring | |
| _ = _ := by rw [he1,he2] | |
| end DiskScales | |
| namespace DiskScales | |
| lemma size_start_identity {Cs A t : β} (hA : 0 < A) (ht : 0 < t) : | |
| (1+216*Cs)/(A/t)^(1/100 : β)*A+ | |
| (16+4538*Cs)*t*(A/t)^(1/10 : β)/(1-(1/2 : β)^(1/10 : β)) = | |
| t*((1+216*Cs)*(A/t)^(99/100 : β)+ | |
| (16+4538*Cs)*(A/t)^(1/10 : β)/(1-(1/2 : β)^(1/10 : β))) := by | |
| have hq : 0 < A/t := div_pos hA ht | |
| have he : (A/t)/(A/t)^(1/100 : β) = (A/t)^(99/100 : β) := by | |
| have hh := Real.rpow_sub hq (1 : β) (1/100 : β) | |
| norm_num at hh | |
| exact hh.symm | |
| have hAt : t*(A/t) = A := by field_simp | |
| calc | |
| _ = t*((1+216*Cs)*((A/t)/(A/t)^(1/100 : β))+ | |
| (16+4538*Cs)*(A/t)^(1/10 : β)/(1-(1/2 : β)^(1/10 : β))) := by | |
| rw [mul_add] | |
| congr 1 | |
| Β· calc | |
| _ = (1+216*Cs)/(A/t)^(1/100 : β)*(t*(A/t)) := by rw [hAt] | |
| _ = _ := by ring | |
| Β· ring | |
| _ = _ := by rw [he] | |
| /-- One fixed small-width cutoff enforces geometry and the strict endpoint | |
| size threshold at every smaller positive width. -/ | |
| lemma exists_size_parameters (Cs : β) : | |
| β dβ : β, 0 < dβ β§ dβ β€ 1/4 β§ | |
| (β Ξ΄ : β, 0 < Ξ΄ β Ξ΄ β€ dβ β Ξ΄ β€ (Ξ΄^(1/5 : β))^2/1600) β§ | |
| (β Ξ΄ : β, 0 < Ξ΄ β Ξ΄ β€ dβ β | |
| (1+216*Cs)*Ξ΄^(99/100 : β)+ | |
| (16+4538*Cs)*Ξ΄^(1/10 : β)/(1-(1/2 : β)^(1/10 : β)) β€ 1) := by | |
| obtain β¨d,hd,hdq,hgeomβ© := exists_admissible_width | |
| have ht : Tendsto (fun Ξ΄ : β => (1+216*Cs)*Ξ΄^(99/100 : β)+ | |
| (16+4538*Cs)*Ξ΄^(1/10 : β)/(1-(1/2 : β)^(1/10 : β))) (π 0) (π 0) := by | |
| have h1 := (Real.continuous_rpow_const (by norm_num : (0 : β) β€ 99/100)).tendsto 0 | |
| have h2 := (Real.continuous_rpow_const (by norm_num : (0 : β) β€ 1/10)).tendsto 0 | |
| simpa using (h1.const_mul (1+216*Cs)).add ((h2.const_mul (16+4538*Cs)).div_const _) | |
| obtain β¨l,u,hu,hsβ© := mem_nhds_iff_exists_Ioo_subset.mp | |
| (ht.eventually_lt_const (by norm_num : (0 : β) < 1)) | |
| let dβ := min d (u/2) | |
| have hd0 : 0 < dβ := lt_min hd (by linarith [hu.2]) | |
| refine β¨dβ,hd0,(min_le_left _ _).trans hdq,fun Ξ΄ hΞ΄ hΞ΄d => hgeom Ξ΄ hΞ΄ (hΞ΄d.trans (min_le_left _ _)), ?_β© | |
| intro Ξ΄ hΞ΄ hΞ΄d | |
| apply le_of_lt | |
| apply hs | |
| exact β¨lt_trans hu.1 hΞ΄, lt_of_le_of_lt hΞ΄d ((min_le_right _ _).trans_lt (by linarith [hu.2]))β© | |
| end DiskScales | |
| namespace DiskScales | |
| def sizeTailConstant : β := | |
| 156/(1-(1/2 : β)^(14/25 : β))+2424*Real.pi/(1-(1/2 : β)^(9/25 : β)) | |
| lemma sizeTailConstant_pos : 0 < sizeTailConstant := by | |
| have h1 : 0 < 1-(1/2 : β)^(14/25 : β) := sub_pos.mpr (norm_geometric_rpow_lt (by norm_num)) | |
| have h2 : 0 < 1-(1/2 : β)^(9/25 : β) := sub_pos.mpr (norm_geometric_rpow_lt (by norm_num)) | |
| unfold sizeTailConstant | |
| positivity | |
| lemma collapse_size_tail {q : β} (hq : 0 < q) (hq1 : q β€ 1) : | |
| (156/(1-(1/2 : β)^(14/25 : β)))*q^(64/25 : β)+ | |
| (2424*Real.pi/(1-(1/2 : β)^(9/25 : β)))*q^(34/25 : β) β€ | |
| sizeTailConstant*q^(34/25 : β) := by | |
| have hc : 0 β€ 156/(1-(1/2 : β)^(14/25 : β)) := | |
| div_nonneg (by norm_num) (sub_nonneg.mpr ((norm_geometric_rpow_lt (by norm_num)).le)) | |
| have he := mul_le_mul_of_nonneg_left | |
| (Real.rpow_le_rpow_of_exponent_ge hq hq1 (by norm_num : (34/25 : β) β€ 64/25)) hc | |
| unfold sizeTailConstant | |
| nlinarith | |
| end DiskScales | |
| namespace LocalCancellation | |
| open DiskKernels DiskMoments DiskGeometry DiskScales | |
| variable {ΞΉ : Type*} [Fintype ΞΉ] | |
| /-- The uniform integrable superlevel tail, with both forced band endpoints. | |
| The only decomposition assumption is equality of the specified densities on | |
| each observation disk. No direction positivity is needed for this size bound. -/ | |
| theorem size_tail {Cs : β} (hCs : 0 β€ Cs) : | |
| β L : β, 1 β€ L β§ β {ΞΉ : Type*} [Fintype ΞΉ] (b : ΞΉ β ErrorPiece Cs), | |
| 0 < errorPrice b (1/100) β β t : β, L*errorPrice b (1/100) β€ t β | |
| β g : β β β, ContDiff β 1 g β | |
| β E : Set β, MeasurableSet E β§ | |
| volume E β€ ENNReal.ofReal (sizeTailConstant*(errorPrice b (1/100)/t)^(34/25 : β)) β§ | |
| β x β E, | |
| (βα΅ y, y β Metric.ball x 3 β β j, (b j).density y = gradient g y) β | |
| β r, EndpointRadius g x r β ββ« y in Metric.ball x r, gradient g yβ β€ t := by | |
| obtain β¨dβ,hd0,hdq,hgeom,hsmallβ© := exists_size_parameters Cs | |
| have hL : 1 β€ (1 : β)/dβ := (le_div_iffβ hd0).mpr (by linarith) | |
| refine β¨1/dβ,hL,?_β© | |
| intro ΞΉ _ b hA t ht g hg | |
| let A := errorPrice b (1/100) | |
| have hAt : A β€ t := (le_mul_of_one_le_left hA.le hL).trans ht | |
| have ht0 : 0 < t := lt_of_lt_of_le hA hAt | |
| have hqd : A/t β€ dβ := by | |
| apply (div_le_iffβ ht0).mpr | |
| have hh : A/dβ β€ t := by simpa only [A,one_div, div_eq_mul_inv, mul_comm, mul_one] using ht | |
| have hh' := (div_le_iffβ hd0).mp hh | |
| linarith | |
| have hq0 : 0 < A/t := div_pos hA ht0 | |
| have hq1 : A/t β€ 1 := by linarith | |
| have hqq : A/t β€ 1/4 := hqd.trans hdq | |
| obtain β¨E,hE,hEv,hEstβ© := size_endpoint_raw b hCs hq0 hqq | |
| (fun Ξ΄ hΞ΄ hΞ΄q => hgeom Ξ΄ hΞ΄ (hΞ΄q.trans hqd)) ht0 hAt hg | |
| refine β¨E,hE,?_,?_β© | |
| Β· apply hEv.trans | |
| calc | |
| _ β€ β' n : β, ENNReal.ofReal | |
| (156*(A/t)^2*(width (A/t) n)^(14/25 : β)+ | |
| 2424*Real.pi*(A/t)*(width (A/t) n)^(9/25 : β)) := by | |
| apply ENNReal.tsum_le_tsum | |
| intro n | |
| have hw0 : 0 < width (A/t) n := width_pos hq0 n | |
| have hw1 : width (A/t) n β€ 1 := (width_le hq0.le n).trans hq1 | |
| apply raw_endpoint_tail_scaled hA.le ht0 hw0 hw1 (coarseMass_nonneg b _ _) | |
| have hh := coarseMass_bound b (by norm_num : (0 : β) β€ 1/100) hw0 | |
| norm_num at hh | |
| rw [Real.rpow_neg hw0.le] | |
| exact hh | |
| _ = ENNReal.ofReal | |
| ((156/(1-(1/2 : β)^(14/25 : β)))*(A/t)^(64/25 : β)+ | |
| (2424*Real.pi/(1-(1/2 : β)^(9/25 : β)))*(A/t)^(34/25 : β)) := by | |
| rw [geometric_tail_sum hA.le ht0 hq0.le, starting_width_tail hA ht0] | |
| _ β€ ENNReal.ofReal (sizeTailConstant*(A/t)^(34/25 : β)) := | |
| ENNReal.ofReal_le_ofReal (collapse_size_tail hq0 hq1) | |
| Β· intro x hx hh r hr | |
| apply (hEst x hx hh r hr).trans | |
| rw [size_start_identity hA ht0] | |
| exact (mul_le_mul_of_nonneg_left (hsmall _ hq0 hqd) ht0.le).trans_eq (mul_one t) | |
| end LocalCancellation | |
| end | |
| end OAI | |
Outline
- def
width22 - lemma
width_pos24 - lemma
width_le28 - lemma
width_succ32 - lemma
width_antitone36 - lemma
tendsto_width43 - lemma
width_rpow49 - lemma
ratio_norm_lt56 - lemma
summable_width_rpow60 - lemma
tsum_width_rpow65 - lemma
scaled_increment71 - lemma
exists_admissible_width109 - theorem
size_sequence136 - def
endpointFailure233 - lemma
endpoint_failure_bound237 - lemma
active_away_from_endpoints251 - def
EndpointRadius268 - lemma
endpoint_kernel274 - lemma
moment_pairing_integrable304 - lemma
moment_pairing_decomposition318 - lemma
moment_difference_decomposition334 - lemma
ball_pairing_decomposition355 - theorem
size_endpoint_raw366 - lemma
first_power_identity423 - lemma
second_power_identity433 - lemma
endpoint_power_identity443 - lemma
shell_tail_scaled451 - lemma
endpoint_tail_scaled493 - lemma
norm_geometric_rpow_lt512 - lemma
raw_endpoint_tail_scaled515 - lemma
geometric_tail_sum534 - lemma
starting_width_tail555 - lemma
size_start_identity577 - lemma
exists_size_parameters601 - def
sizeTailConstant627 - lemma
sizeTailConstant_pos630 - lemma
collapse_size_tail636 - theorem
size_tail656