Download data/lean/OAI/Probability/GaussianReplacement/Geometry.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 17.8 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/GaussianReplacement/Geometry.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/GaussianReplacement/Geometry.lean
-
curl -L -o Geometry.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/GaussianReplacement/Geometry.lean
17.8 kB
| import OAI.Probability.GaussianReplacement.Basic | |
| namespace OAI | |
| open MeasureTheory ProbabilityTheory Set Filter | |
| open scoped ENNReal NNReal RealInnerProductSpace Topology | |
| noncomputable section | |
| namespace CurrentProjection | |
| section InverseMoments | |
| variable {X : Type*} [MeasurableSpace X] | |
| omit [MeasurableSpace X] in | |
| lemma inverse_pow_dyadic_majorant (f : X β β) (m : β) (hf : β x, 0 β€ f x) (x : X) : | |
| ENNReal.ofReal ((f x)β»ΒΉ ^ m) β€ | |
| 1 + β' k : β, ({x | f x β€ (1 / 2 : β) ^ k}).indicator | |
| (fun _ => ENNReal.ofReal ((2 : β) ^ (m * (k + 1)))) x := by | |
| classical | |
| by_cases hzero : f x = 0 | |
| Β· simp only [hzero, inv_zero] | |
| exact le_add_of_le_left (by cases m <;> simp) | |
| have hxpos : 0 < f x := lt_of_le_of_ne (hf x) (Ne.symm hzero) | |
| by_cases hxone : 1 β€ f x | |
| Β· apply le_add_of_le_left | |
| have h : (f x)β»ΒΉ ^ m β€ 1 := | |
| pow_le_oneβ (inv_nonneg.mpr (hf x)) (inv_le_one_of_one_leβ hxone) | |
| simpa using ENNReal.ofReal_le_ofReal h | |
| obtain β¨k, hklo, hkhiβ© := exists_nat_pow_near_of_lt_one hxpos | |
| (le_of_not_ge hxone) (by norm_num : (0 : β) < 1 / 2) (by norm_num : (1 / 2 : β) < 1) | |
| have hinv : (f x)β»ΒΉ β€ (2 : β) ^ (k + 1) := by | |
| have h := (inv_le_invβ hxpos (pow_pos (by norm_num : (0 : β) < 1 / 2) _)).2 hklo.le | |
| simpa using h | |
| have hpow : ENNReal.ofReal ((f x)β»ΒΉ ^ m) β€ | |
| ENNReal.ofReal ((2 : β) ^ (m * (k + 1))) := by | |
| apply ENNReal.ofReal_le_ofReal | |
| simpa [β pow_mul, Nat.mul_comm] using pow_le_pow_leftβ (inv_nonneg.mpr (hf x)) hinv m | |
| calc | |
| ENNReal.ofReal ((f x)β»ΒΉ ^ m) β€ ENNReal.ofReal ((2 : β) ^ (m * (k + 1))) := hpow | |
| _ = ({x | f x β€ (1 / 2 : β) ^ k}).indicator | |
| (fun _ => ENNReal.ofReal ((2 : β) ^ (m * (k + 1)))) x := by | |
| rw [Set.indicator_of_mem (show x β {x | f x β€ (1 / 2 : β) ^ k} from hkhi)] | |
| _ β€ β' j : β, ({x | f x β€ (1 / 2 : β) ^ j}).indicator | |
| (fun _ => ENNReal.ofReal ((2 : β) ^ (m * (j + 1)))) x := | |
| ENNReal.le_tsum (f := fun j => ({x | f x β€ (1 / 2 : β) ^ j}).indicator | |
| (fun _ => ENNReal.ofReal ((2 : β) ^ (m * (j + 1)))) x) k | |
| _ β€ 1 + β' j : β, ({x | f x β€ (1 / 2 : β) ^ j}).indicator | |
| (fun _ => ENNReal.ofReal ((2 : β) ^ (m * (j + 1)))) x := le_add_left le_rfl | |
| lemma dyadic_power_cancel (m k : β) : | |
| (2 : β) ^ (m * (k + 1)) * ((1 / 2 : β) ^ k) ^ (m + 1) = | |
| (2 : β) ^ m * (1 / 2 : β) ^ k := by | |
| rw [Nat.mul_add, mul_one, pow_add, pow_succ] | |
| have h : (2 : β) ^ (m * k) * ((1 / 2 : β) ^ k) ^ m = 1 := by | |
| rw [Nat.mul_comm m k, pow_mul, β mul_pow, β mul_pow] | |
| norm_num | |
| calc | |
| 2 ^ (m * k) * 2 ^ m * (((1 / 2 : β) ^ k) ^ m * (1 / 2 : β) ^ k) = | |
| (2 ^ (m * k) * ((1 / 2 : β) ^ k) ^ m) * (2 ^ m * (1 / 2 : β) ^ k) := by ring | |
| _ = _ := by rw [h, one_mul] | |
| theorem inverse_moment_of_tube_bound (ΞΌ : Measure X) (f : X β β) (m : β) | |
| (hf : Measurable f) (hnonneg : β x, 0 β€ f x) (C : ββ₯0β) | |
| (htube : β r : β, 0 < r β r β€ 1 β | |
| ΞΌ {x | f x β€ r} β€ C * ENNReal.ofReal (r ^ (m + 1))) : | |
| β«β» x, ENNReal.ofReal ((f x)β»ΒΉ ^ m) βΞΌ β€ | |
| ΞΌ Set.univ + C * (2 : ββ₯0β) ^ (m + 1) := by | |
| classical | |
| let g : β β X β ββ₯0β := fun k => | |
| ({x | f x β€ (1 / 2 : β) ^ k}).indicator | |
| (fun _ => ENNReal.ofReal ((2 : β) ^ (m * (k + 1)))) | |
| have hg : β k, Measurable (g k) := fun k => | |
| measurable_const.indicator (measurableSet_le hf measurable_const) | |
| calc | |
| β«β» x, ENNReal.ofReal ((f x)β»ΒΉ ^ m) βΞΌ β€ β«β» x, 1 + β' k, g k x βΞΌ := | |
| lintegral_mono (inverse_pow_dyadic_majorant f m hnonneg) | |
| _ = ΞΌ Set.univ + β' k, β«β» x, g k x βΞΌ := by | |
| rw [lintegral_add_left measurable_const, lintegral_const, one_mul, lintegral_tsum (fun k => (hg k).aemeasurable)] | |
| _ β€ ΞΌ Set.univ + β' k, C * ENNReal.ofReal ((2 : β) ^ m * (1 / 2 : β) ^ k) := by | |
| apply add_le_add le_rfl | |
| apply ENNReal.tsum_le_tsum | |
| intro k | |
| dsimp only [g] | |
| rw [lintegral_indicator (measurableSet_le hf measurable_const), lintegral_const, | |
| Measure.restrict_apply_univ] | |
| calc | |
| ENNReal.ofReal ((2 : β) ^ (m * (k + 1))) * ΞΌ {x | f x β€ (1 / 2 : β) ^ k} β€ | |
| ENNReal.ofReal ((2 : β) ^ (m * (k + 1))) * | |
| (C * ENNReal.ofReal (((1 / 2 : β) ^ k) ^ (m + 1))) := by | |
| gcongr | |
| exact htube _ (by positivity) (pow_le_oneβ (by norm_num) (by norm_num)) | |
| _ = _ := by | |
| rw [β mul_assoc, mul_comm _ C, mul_assoc, β ENNReal.ofReal_mul (by positivity), | |
| dyadic_power_cancel] | |
| _ = ΞΌ Set.univ + C * (2 : ββ₯0β) ^ (m + 1) := by | |
| simp_rw [ENNReal.ofReal_mul (by positivity : (0 : β) β€ 2 ^ m), | |
| ENNReal.ofReal_pow (by norm_num : (0 : β) β€ 1 / 2), | |
| ENNReal.ofReal_pow (by norm_num : (0 : β) β€ 2)] | |
| rw [ENNReal.tsum_mul_left, ENNReal.tsum_mul_left, ENNReal.tsum_geometric] | |
| norm_num [pow_succ, mul_assoc, ENNReal.ofReal_div_of_pos] | |
| end InverseMoments | |
| section FrostmanGeometry | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [FiniteDimensional β E] [MeasurableSpace E] [BorelSpace E] | |
| def HasLocalMassBound (Ξ½ : Measure E) (a : β) : Prop := | |
| β t β Ξ½.support, β r : β, 0 < r β | |
| Ξ½ (Metric.closedBall t r) β€ ENNReal.ofReal (r ^ a) | |
| omit [BorelSpace E] in | |
| theorem HasLocalMassBound.any_center {Ξ½ : Measure E} {a : β} | |
| (hΞ½ : HasLocalMassBound Ξ½ a) (z : E) {r : β} (hr : 0 < r) : | |
| Ξ½ (Metric.closedBall z r) β€ ENNReal.ofReal ((2 * r) ^ a) := by | |
| by_cases hmass : Ξ½ (Metric.closedBall z r) = 0 | |
| Β· simp [hmass] | |
| obtain β¨t, htball, htsuppβ© := Ξ½.nonempty_inter_support_of_pos (pos_iff_ne_zero.mpr hmass) | |
| refine (measure_mono ?_).trans (hΞ½ t htsupp (2 * r) (by positivity)) | |
| intro x hx | |
| apply Metric.mem_closedBall.mpr | |
| calc | |
| dist x t β€ dist x z + dist z t := dist_triangle _ _ _ | |
| _ β€ r + r := add_le_add (Metric.mem_closedBall.mp hx) | |
| (by simpa [dist_comm] using Metric.mem_closedBall.mp htball) | |
| _ = 2 * r := by ring | |
| theorem card_le_volume_ratio (s : Finset E) {r R : β} (hr : 0 < r) (hR : 0 β€ R) | |
| (hs : β x β s, βxβ β€ R) | |
| (hsep : β x β s, β y β s, x β y β r β€ dist x y) : | |
| (s.card : β) β€ ((R + r / 2) / (r / 2)) ^ Module.finrank β E := by | |
| classical | |
| let Ξ½ : Measure E := Measure.addHaar | |
| let Ξ΄ : β := r / 2 | |
| let Ο : β := R + r / 2 | |
| have hΞ΄ : 0 < Ξ΄ := by dsimp [Ξ΄]; positivity | |
| have hΟ : 0 < Ο := by dsimp [Ο]; positivity | |
| let A : Set E := β c β s, Metric.ball c Ξ΄ | |
| have hd : Set.Pairwise (s : Set E) (fun c d => Disjoint (Metric.ball c Ξ΄) (Metric.ball d Ξ΄)) := by | |
| intro c hc d hd hcd | |
| apply Metric.ball_disjoint_ball | |
| simpa [Ξ΄] using hsep c hc d hd hcd | |
| have hsub : A β Metric.ball (0 : E) Ο := by | |
| refine iUnionβ_subset fun x hx => ?_ | |
| apply Metric.ball_subset_ball' | |
| dsimp [Ξ΄, Ο] | |
| rw [dist_zero_right] | |
| linarith [hs x hx] | |
| have I : | |
| (s.card : ββ₯0β) * ENNReal.ofReal (Ξ΄ ^ Module.finrank β E) * Ξ½ (Metric.ball 0 1) β€ | |
| ENNReal.ofReal (Ο ^ Module.finrank β E) * Ξ½ (Metric.ball 0 1) := by | |
| calc | |
| (s.card : ββ₯0β) * ENNReal.ofReal (Ξ΄ ^ Module.finrank β E) * Ξ½ (Metric.ball 0 1) = Ξ½ A := by | |
| dsimp only [A] | |
| rw [measure_biUnion_finset hd (fun _ _ => Metric.isOpen_ball.measurableSet)] | |
| simp only [Ξ½.addHaar_ball_of_pos _ hΞ΄, Finset.sum_const, nsmul_eq_mul, mul_assoc] | |
| _ β€ Ξ½ (Metric.ball (0 : E) Ο) := measure_mono hsub | |
| _ = _ := Ξ½.addHaar_ball_of_pos 0 hΟ | |
| have J : (s.card : ββ₯0β) * ENNReal.ofReal (Ξ΄ ^ Module.finrank β E) β€ | |
| ENNReal.ofReal (Ο ^ Module.finrank β E) := | |
| (ENNReal.mul_le_mul_iff_left (Metric.measure_ball_pos Ξ½ 0 zero_lt_one).ne' | |
| measure_ball_lt_top.ne).mp I | |
| have K : (s.card : β) * Ξ΄ ^ Module.finrank β E β€ Ο ^ Module.finrank β E := by | |
| simpa only [ENNReal.toReal_mul, ENNReal.toReal_natCast, | |
| ENNReal.toReal_ofReal (pow_nonneg hΞ΄.le _)] using | |
| ENNReal.toReal_le_of_le_ofReal (pow_nonneg hΟ.le _) J | |
| rw [div_pow] | |
| exact (le_div_iffβ (pow_pos hΞ΄ _)).mpr K | |
| end FrostmanGeometry | |
| section FiniteNets | |
| variable {E : Type*} [PseudoMetricSpace E] | |
| theorem exists_net_of_finite_packing_bound (A : Set E) {r : β} (hr : 0 β€ r) (N : β) | |
| (hcard : β s : Finset E, (β x β s, x β A) β | |
| (β x β s, β y β s, x β y β r < dist x y) β s.card β€ N) : | |
| β s : Finset E, (β x β s, x β A) β§ | |
| (β x β s, β y β s, x β y β r < dist x y) β§ | |
| β x β A, β y β s, dist x y β€ r := by | |
| classical | |
| let S : Set β := {n | β s : Finset E, (β x β s, x β A) β§ | |
| (β x β s, β y β s, x β y β r < dist x y) β§ s.card = n} | |
| have hS : S.Finite := (Set.finite_Iic N).subset (by | |
| rintro n β¨s, hs, hsep, rflβ© | |
| exact hcard s hs hsep) | |
| have hS0 : S.Nonempty := β¨0, β , by simpβ© | |
| obtain β¨n, hn, hmaxβ© := Set.exists_max_image S id hS hS0 | |
| obtain β¨s, hs, hsep, rflβ© := hn | |
| refine β¨s, hs, hsep, ?_β© | |
| intro x hx | |
| by_contra! hnot | |
| have hxs : x β s := by | |
| intro h | |
| have := hnot x h | |
| simpa using lt_of_le_of_lt hr this | |
| have hins : β y β insert x s, y β A := by | |
| intro y hy | |
| rcases Finset.mem_insert.mp hy with rfl | hy | |
| Β· exact hx | |
| Β· exact hs y hy | |
| have hsep' : β y β insert x s, β z β insert x s, y β z β r < dist y z := by | |
| intro y hy z hz hne | |
| rcases Finset.mem_insert.mp hy with hxy | hys | |
| Β· subst y | |
| rcases Finset.mem_insert.mp hz with hxz | hzs | |
| Β· exact (hne hxz.symm).elim | |
| Β· exact hnot z hzs | |
| Β· rcases Finset.mem_insert.mp hz with hxz | hzs | |
| Β· subst z | |
| simpa [dist_comm] using hnot y hys | |
| Β· exact hsep y hys z hzs hne | |
| have hinS : (insert x s).card β S := β¨insert x s, hins, hsep', rflβ© | |
| have hh := hmax _ hinS | |
| simp only [id_eq, Finset.card_insert_of_notMem hxs] at hh | |
| omega | |
| end FiniteNets | |
| section EuclideanNets | |
| variable {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [FiniteDimensional β E] [MeasurableSpace E] [BorelSpace E] | |
| theorem exists_unit_ball_net {r : β} (hr : 0 < r) (hr1 : r β€ 1) : | |
| β s : Finset E, (β x β s, βxβ β€ 1) β§ | |
| (s.card : β) β€ (3 / r) ^ Module.finrank β E β§ | |
| β x : E, βxβ β€ 1 β β y β s, dist x y β€ r := by | |
| classical | |
| have hbound : β s : Finset E, (β x β s, βxβ β€ 1) β | |
| (β x β s, β y β s, x β y β r < dist x y) β | |
| (s.card : β) β€ (3 / r) ^ Module.finrank β E := by | |
| intro s hs hsep | |
| refine (card_le_volume_ratio s hr zero_le_one hs | |
| (fun x hx y hy hne => (hsep x hx y hy hne).le)).trans ?_ | |
| apply pow_le_pow_leftβ (by positivity) | |
| apply (div_le_div_iffβ (by positivity : 0 < r / 2) hr).mpr | |
| nlinarith | |
| obtain β¨s, hs, hsep, hnetβ© := exists_net_of_finite_packing_bound | |
| {x : E | βxβ β€ 1} hr.le β(3 / r) ^ Module.finrank β Eββ | |
| (by | |
| intro s hs hsep | |
| exact_mod_cast (hbound s hs hsep).trans (Nat.le_ceil _)) | |
| exact β¨s, hs, hbound s hs hsep, hnetβ© | |
| end EuclideanNets | |
| section AffineTubes | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| [FiniteDimensional β E] [MeasurableSpace E] [BorelSpace E] | |
| open EuclideanGeometry | |
| theorem exists_affine_tube_cover (L : AffineSubspace β E) [Nonempty L] | |
| {r : β} (hr : 0 < r) (hr1 : r β€ 1) : | |
| β s : Finset L.direction, | |
| (s.card : β) β€ (3 / r) ^ Module.finrank β L.direction β§ | |
| β t : E, βtβ β€ 1 β Metric.infDist t L β€ r β | |
| β y β s, dist t ((y : E) + (orthogonalProjection L 0 : E)) β€ 2 * r := by | |
| classical | |
| obtain β¨s, _, hcard, hnetβ© := exists_unit_ball_net (E := L.direction) hr hr1 | |
| refine β¨s, hcard, ?_β© | |
| intro t ht hdist | |
| obtain β¨y, hy, htyβ© := hnet (L.direction.orthogonalProjectionOnto t) | |
| ((L.direction.norm_orthogonalProjectionOnto_apply_le t).trans ht) | |
| refine β¨y, hy, ?_β© | |
| have hproj : (orthogonalProjection L t : E) = | |
| (L.direction.orthogonalProjectionOnto t : E) + (orthogonalProjection L 0 : E) := by | |
| have h := (orthogonalProjection L).map_vadd (0 : E) t | |
| simpa only [vadd_eq_add, add_zero, orthogonalProjection_contLinear, | |
| AffineSubspace.coe_vadd] using congrArg (fun x : L => (x : E)) h | |
| have hpdist : dist (orthogonalProjection L t : E) | |
| ((y : E) + (orthogonalProjection L 0 : E)) β€ r := by | |
| rw [hproj, dist_add_right] | |
| exact hty | |
| have hd : dist t (orthogonalProjection L t : E) β€ r := by | |
| rwa [dist_orthogonalProjection_eq_infDist] | |
| calc | |
| dist t ((y : E) + (orthogonalProjection L 0 : E)) β€ | |
| dist t (orthogonalProjection L t : E) + | |
| dist (orthogonalProjection L t : E) ((y : E) + (orthogonalProjection L 0 : E)) := | |
| dist_triangle _ _ _ | |
| _ β€ r + r := add_le_add hd hpdist | |
| _ = 2 * r := by ring | |
| theorem HasLocalMassBound.affine_tube {Ξ½ : Measure E} {a : β} | |
| (hΞ½ : HasLocalMassBound Ξ½ a) (hsupport : Ξ½.support β Metric.closedBall 0 1) | |
| (L : AffineSubspace β E) [Nonempty L] {r : β} (hr : 0 < r) (hr1 : r β€ 1) : | |
| Ξ½ {t | Metric.infDist t L β€ r} β€ | |
| ENNReal.ofReal ((3 / r) ^ Module.finrank β L.direction * (4 * r) ^ a) := by | |
| classical | |
| obtain β¨s, hcard, hcoverβ© := exists_affine_tube_cover L hr hr1 | |
| let c : L.direction β E := fun y => (y : E) + (orthogonalProjection L 0 : E) | |
| have hsub : {t | Metric.infDist t L β€ r} β€α΅[Ξ½] | |
| β y β s, Metric.closedBall (c y) (2 * r) := by | |
| filter_upwards [Ξ½.support_mem_ae] with t ht | |
| intro hdist | |
| have htunit : βtβ β€ 1 := by simpa using hsupport ht | |
| obtain β¨y, hy, htyβ© := hcover t htunit hdist | |
| exact mem_iUnionβ.mpr β¨y, hy, htyβ© | |
| calc | |
| Ξ½ {t | Metric.infDist t L β€ r} β€ Ξ½ (β y β s, Metric.closedBall (c y) (2 * r)) := | |
| measure_mono_ae hsub | |
| _ β€ β y β s, Ξ½ (Metric.closedBall (c y) (2 * r)) := measure_biUnion_finset_le _ _ | |
| _ β€ β _y β s, ENNReal.ofReal ((4 * r) ^ a) := by | |
| refine Finset.sum_le_sum fun y _ => ?_ | |
| simpa only [show (2 : β) * (2 * r) = 4 * r by ring] using | |
| hΞ½.any_center (c y) (r := 2 * r) (by positivity) | |
| _ = (s.card : ββ₯0β) * ENNReal.ofReal ((4 * r) ^ a) := by simp | |
| _ β€ ENNReal.ofReal ((3 / r) ^ Module.finrank β L.direction) * | |
| ENNReal.ofReal ((4 * r) ^ a) := by | |
| gcongr | |
| exact_mod_cast ENNReal.ofReal_le_ofReal hcard | |
| _ = _ := (ENNReal.ofReal_mul (by positivity)).symm | |
| lemma tube_radius_factors (β : β) (a : β) {r : β} (hr : 0 < r) : | |
| (3 / r) ^ β * (4 * r) ^ a = | |
| (3 : β) ^ β * (4 : β) ^ a * r ^ (a - β) := by | |
| rw [div_pow, Real.mul_rpow (by norm_num) hr.le, | |
| Real.rpow_sub_natCast hr.ne'] | |
| ring | |
| theorem HasLocalMassBound.affine_tube_pow {Ξ½ : Measure E} {a : β} | |
| (hΞ½ : HasLocalMassBound Ξ½ a) (hsupport : Ξ½.support β Metric.closedBall 0 1) | |
| (L : AffineSubspace β E) [Nonempty L] (k : β) | |
| (hmargin : (Module.finrank β L.direction : β) + k β€ a) | |
| {r : β} (hr : 0 < r) (hr1 : r β€ 1) : | |
| Ξ½ {t | Metric.infDist t L β€ r} β€ | |
| ENNReal.ofReal ((3 : β) ^ Module.finrank β L.direction * (4 : β) ^ a) * | |
| ENNReal.ofReal (r ^ k) := by | |
| refine (hΞ½.affine_tube hsupport L hr hr1).trans ?_ | |
| rw [tube_radius_factors _ _ hr, β ENNReal.ofReal_mul (by positivity)] | |
| apply ENNReal.ofReal_le_ofReal | |
| apply mul_le_mul_of_nonneg_left _ (by positivity) | |
| rw [β Real.rpow_natCast] | |
| exact Real.rpow_le_rpow_of_exponent_ge hr hr1 (by linarith) | |
| theorem HasLocalMassBound.affine_inverse_moment {Ξ½ : Measure E} {a : β} | |
| (hΞ½ : HasLocalMassBound Ξ½ a) (hsupport : Ξ½.support β Metric.closedBall 0 1) | |
| (L : AffineSubspace β E) [Nonempty L] (m : β) | |
| (hmargin : (Module.finrank β L.direction : β) + (m + 1 : β) β€ a) : | |
| β«β» t, ENNReal.ofReal ((Metric.infDist t L)β»ΒΉ ^ m) βΞ½ β€ | |
| Ξ½ Set.univ + | |
| ENNReal.ofReal ((3 : β) ^ Module.finrank β L.direction * (4 : β) ^ a) * | |
| (2 : ββ₯0β) ^ (m + 1) := by | |
| apply inverse_moment_of_tube_bound Ξ½ _ m (Metric.continuous_infDist_pt _).measurable | |
| (fun _ => Metric.infDist_nonneg) | |
| intro r hr hr1 | |
| exact hΞ½.affine_tube_pow hsupport L (m + 1) hmargin hr hr1 | |
| theorem HasLocalMassBound.affine_null {Ξ½ : Measure E} {a : β} | |
| (hΞ½ : HasLocalMassBound Ξ½ a) (hsupport : Ξ½.support β Metric.closedBall 0 1) | |
| (L : AffineSubspace β E) [Nonempty L] | |
| (hmargin : (Module.finrank β L.direction : β) + 1 β€ a) : Ξ½ L = 0 := by | |
| let C : β := (3 : β) ^ Module.finrank β L.direction * (4 : β) ^ a | |
| have hC : 0 β€ C := by dsimp [C]; positivity | |
| have hb (n : β) : Ξ½ L β€ ENNReal.ofReal (C * (1 / 2 : β) ^ n) := by | |
| have hn : 0 < (1 / 2 : β) ^ n := by positivity | |
| have hn1 : (1 / 2 : β) ^ n β€ 1 := pow_le_oneβ (by norm_num) (by norm_num) | |
| calc | |
| Ξ½ L β€ Ξ½ {t | Metric.infDist t L β€ (1 / 2 : β) ^ n} := by | |
| apply measure_mono | |
| intro t ht | |
| simp only [mem_ofPred_eq, Metric.infDist_zero_of_mem ht] | |
| exact hn.le | |
| _ β€ ENNReal.ofReal C * ENNReal.ofReal (((1 / 2 : β) ^ n) ^ 1) := | |
| hΞ½.affine_tube_pow hsupport L 1 (by simpa using hmargin) hn hn1 | |
| _ = _ := by rw [pow_one, ENNReal.ofReal_mul hC] | |
| have hlim : Tendsto (fun n : β => ENNReal.ofReal (C * (1 / 2 : β) ^ n)) | |
| atTop (π 0) := by | |
| convert ENNReal.tendsto_ofReal ((tendsto_const_nhds (x := C)).mul | |
| (tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num : (0 : β) β€ 1 / 2) | |
| (by norm_num : (1 / 2 : β) < 1))) using 1 | |
| simp | |
| exact le_antisymm (ge_of_tendsto' hlim hb) (by positivity) | |
| end AffineTubes | |
| end CurrentProjection | |
| end | |
| end OAI | |