Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | /- |
| 2 | Provenance and modification notice (recorded 2026-09-29). |
| 3 | Notices for the adapted source: |
| 4 | Copyright 2026 The DifferentialGeometry contributors |
| 5 | Copyright 2026 Scott Armstrong and Julia Kempe |
| 6 | Source: https://github.com/qinz1yang/differential-geometry |
| 7 | DifferentialGeometry/External/DeGiorgi/Poincare.lean |
| 8 | Comparison revision: 1b535dd102b94cc42b107cca27059687888f08b3. |
| 9 | Changes: Imports, module paths, and namespaces were adapted to the subject-organized PoincareLib library. The local file extracts a subset of the upstream development. |
| 10 | Additional provenance: https://github.com/scottnarmstrong/DeGiorgi |
| 11 | DeGiorgi/Poincare.lean |
| 12 | Comparison revision: 4c1b3077d3782b24065184df4ba59501b2e56fc7. |
| 13 | DeGiorgi material was incorporated through DifferentialGeometry. |
| 14 | Upstream modification notice: Modified 2026-04-28: updated internal import paths for project namespace |
| 15 | Upstream modification notice: Modified 2026-05-16: style-warning cleanup |
| 16 | License: Apache-2.0. Source licenses and notices are retained under |
| 17 | PoincareConjecture/provenance/2026-09-29/licenses/. |
| 18 | See PoincareConjecture/MODIFICATIONS.md for the reviewed source mapping. |
| 19 | -/ |
| 20 | |
| 21 | import PoincareLib.Analysis.Elliptic.Regularity.Sobolev.Weak.WholeSpace |
| 22 | |
| 23 | /-! |
| 24 | Adapted from Chow--Liao--Qin, revision `1b535dd102b94cc42b107cca27059687888f08b3`, |
| 25 | `DifferentialGeometry/External/DeGiorgi/Poincare.lean`. |
| 26 | Apache-2.0; see `PoincareConjecture/provenance/2026-09-29/licenses/DifferentialGeometry/LICENSE`. |
| 27 | -/ |
| 28 | |
| 29 | noncomputable section |
| 30 | |
| 31 | open MeasureTheory Metric Filter Set |
| 32 | open scoped ENNReal NNReal |
| 33 | |
| 34 | namespace Poincare.Analysis.Sobolev.Weak |
| 35 | |
| 36 | variable {d : ℕ} [NeZero d] |
| 37 | |
| 38 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 39 | |
| 40 | noncomputable def CPoincVal (d : ℕ) : ℝ := |
| 41 | 2 ^ (d + 1) * d |
| 42 | |
| 43 | omit [NeZero d] in |
| 44 | theorem C_poinc_val_pos (hd : 0 < d) : 0 < CPoincVal d := by |
| 45 | unfold CPoincVal |
| 46 | positivity |
| 47 | |
| 48 | /-- Pointwise Euclidean norm of the classical gradient of a smooth scalar |
| 49 | function, written in coordinates. This matches the weak-gradient norm used in |
| 50 | the Sobolev witness layer for smooth functions. -/ |
| 51 | noncomputable def smoothGradNorm (u : E → ℝ) : E → ℝ := |
| 52 | fun x => ‖WithLp.toLp 2 (fun i => (fderiv ℝ u x) (EuclideanSpace.single i 1))‖ |
| 53 | |
| 54 | omit [NeZero d] in |
| 55 | theorem norm_fderiv_eq_smoothGradNorm |
| 56 | {u : E → ℝ} {x : E} : |
| 57 | ‖fderiv ℝ u x‖ = smoothGradNorm u x := by |
| 58 | let v : E := (InnerProductSpace.toDual ℝ E).symm (fderiv ℝ u x) |
| 59 | have hv : |
| 60 | v = WithLp.toLp 2 |
| 61 | (fun i => (fderiv ℝ u x) (EuclideanSpace.single i 1)) := by |
| 62 | have hv_map : (InnerProductSpace.toDual ℝ E) v = fderiv ℝ u x := by |
| 63 | simp [v] |
| 64 | ext i |
| 65 | calc |
| 66 | v i = inner ℝ v (EuclideanSpace.single i (1 : ℝ)) := by |
| 67 | simpa using |
| 68 | (EuclideanSpace.inner_single_right (i := i) (a := (1 : ℝ)) v).symm |
| 69 | _ = ((InnerProductSpace.toDual ℝ E) v) (EuclideanSpace.single i (1 : ℝ)) := by |
| 70 | rw [InnerProductSpace.toDual_apply_apply] |
| 71 | _ = (fderiv ℝ u x) (EuclideanSpace.single i (1 : ℝ)) := by |
| 72 | rw [hv_map] |
| 73 | _ = (WithLp.toLp 2 |
| 74 | (fun j => (fderiv ℝ u x) (EuclideanSpace.single j 1))) i := by |
| 75 | simp |
| 76 | calc |
| 77 | ‖fderiv ℝ u x‖ = ‖v‖ := by |
| 78 | change ‖fderiv ℝ u x‖ = ‖(InnerProductSpace.toDual ℝ E).symm (fderiv ℝ u x)‖ |
| 79 | exact (((InnerProductSpace.toDual ℝ E).symm.norm_map |
| 80 | (fderiv ℝ u x))).symm |
| 81 | _ = smoothGradNorm u x := by |
| 82 | simp [smoothGradNorm, hv] |
| 83 | |
| 84 | omit [NeZero d] in |
| 85 | theorem smoothGradNorm_eq_zero_of_notMem_tsupport |
| 86 | {u : E → ℝ} {x : E} (hx : x ∉ tsupport u) : |
| 87 | smoothGradNorm u x = 0 := by |
| 88 | rw [smoothGradNorm] |
| 89 | have hfderiv_zero : fderiv ℝ u x = 0 := |
| 90 | fderiv_of_notMem_tsupport (𝕜 := ℝ) (f := u) hx |
| 91 | have hzero : (fun i : Fin d => (0 : ℝ)) = 0 := by |
| 92 | ext i |
| 93 | simp |
| 94 | simp [hfderiv_zero, hzero] |
| 95 | |
| 96 | omit [NeZero d] in |
| 97 | theorem support_smoothGradNorm_subset_tsupport |
| 98 | {u : E → ℝ} : |
| 99 | Function.support (smoothGradNorm u) ⊆ tsupport u := by |
| 100 | refine Function.support_subset_iff'.2 ?_ |
| 101 | intro x hx |
| 102 | exact smoothGradNorm_eq_zero_of_notMem_tsupport hx |
| 103 | |
| 104 | omit [NeZero d] in |
| 105 | theorem smoothCompactSupport_L2_bound_on_bounded_ge_two |
| 106 | {Ω : Set E} (hd : 2 ≤ d) (hΩ_bdd : Bornology.IsBounded Ω) : |
| 107 | ∃ C : ℝ≥0∞, C < ∞ ∧ |
| 108 | ∀ {u : E → ℝ}, ContDiff ℝ (⊤ : ℕ∞) u → HasCompactSupport u → tsupport u ⊆ Ω → |
| 109 | eLpNorm u 2 (volume.restrict Ω) ≤ |
| 110 | C * eLpNorm (smoothGradNorm u) 2 (volume.restrict Ω) := by |
| 111 | obtain ⟨R, hR_pos, hΩ_sub⟩ := hΩ_bdd.subset_closedBall_lt (0 : ℝ) (0 : E) |
| 112 | let s : Set E := Metric.closedBall (0 : E) R |
| 113 | have hs_bdd : Bornology.IsBounded s := Metric.isBounded_closedBall |
| 114 | have hs_finite : volume s < ∞ := measure_closedBall_lt_top |
| 115 | by_cases hd_eq_two : d = 2 |
| 116 | · let Csob : ℝ≥0 := MeasureTheory.eLpNormLESNormFDerivOfLeConst ℝ volume s 1 2 |
| 117 | let C : ℝ≥0∞ := (Csob : ℝ≥0∞) * (volume s) ^ (1 / (1 : ℝ) - 1 / (2 : ℝ)) |
| 118 | refine ⟨C, ?_, ?_⟩ |
| 119 | · dsimp [C] |
| 120 | exact ENNReal.mul_lt_top ENNReal.coe_lt_top <| |
| 121 | ENNReal.rpow_lt_top_of_nonneg (by positivity) hs_finite.ne |
| 122 | · intro u hu hu_cpt hu_sub |
| 123 | have hu1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 124 | have hu_support_sub : Function.support u ⊆ Ω := subset_closure.trans hu_sub |
| 125 | have hu_support_sub_s : Function.support u ⊆ s := hu_support_sub.trans hΩ_sub |
| 126 | have hgrad_support_sub : Function.support (smoothGradNorm u) ⊆ Ω := |
| 127 | support_smoothGradNorm_subset_tsupport.trans hu_sub |
| 128 | have hgrad_support_sub_s : Function.support (smoothGradNorm u) ⊆ s := |
| 129 | hgrad_support_sub.trans hΩ_sub |
| 130 | have hgrad_cont : Continuous (smoothGradNorm u) := by |
| 131 | have hcont_fderiv : Continuous (fderiv ℝ u) := |
| 132 | hu.continuous_fderiv (by simp) |
| 133 | have hsmooth_eq : smoothGradNorm u = fun x => ‖fderiv ℝ u x‖ := by |
| 134 | ext x |
| 135 | exact (norm_fderiv_eq_smoothGradNorm (u := u) (x := x)).symm |
| 136 | rw [hsmooth_eq] |
| 137 | exact continuous_norm.comp hcont_fderiv |
| 138 | have hu_eq_full : |
| 139 | eLpNorm u 2 (volume.restrict Ω) = eLpNorm u 2 volume := by |
| 140 | rw [eLpNorm_restrict_eq_of_support_subset hu_support_sub] |
| 141 | have hgrad_eq_full : |
| 142 | eLpNorm (smoothGradNorm u) 2 (volume.restrict Ω) = |
| 143 | eLpNorm (smoothGradNorm u) 2 volume := by |
| 144 | rw [eLpNorm_restrict_eq_of_support_subset hgrad_support_sub] |
| 145 | have hgrad_eq_s_one : |
| 146 | eLpNorm (smoothGradNorm u) (ENNReal.ofReal 1) (volume.restrict s) = |
| 147 | eLpNorm (smoothGradNorm u) (ENNReal.ofReal 1) volume := by |
| 148 | rw [eLpNorm_restrict_eq_of_support_subset hgrad_support_sub_s] |
| 149 | have hgrad_eq_s_two : |
| 150 | eLpNorm (smoothGradNorm u) 2 (volume.restrict s) = |
| 151 | eLpNorm (smoothGradNorm u) 2 volume := by |
| 152 | rw [eLpNorm_restrict_eq_of_support_subset hgrad_support_sub_s] |
| 153 | have hgrad_aesm_s : |
| 154 | AEStronglyMeasurable (smoothGradNorm u) (volume.restrict s) := |
| 155 | hgrad_cont.aestronglyMeasurable |
| 156 | have hsobolev : |
| 157 | eLpNorm u 2 volume ≤ |
| 158 | (Csob : ℝ≥0∞) * eLpNorm (fderiv ℝ u) 1 volume := by |
| 159 | have h2p : (1 : ℝ≥0) < Module.finrank ℝ E := by |
| 160 | rw [finrank_euclideanSpace_fin, hd_eq_two] |
| 161 | norm_num |
| 162 | have hpq : |
| 163 | ((1 : ℝ≥0) : ℝ)⁻¹ - (Module.finrank ℝ E : ℝ)⁻¹ ≤ |
| 164 | ((2 : ℝ≥0) : ℝ)⁻¹ := by |
| 165 | rw [finrank_euclideanSpace_fin, hd_eq_two] |
| 166 | norm_num |
| 167 | simpa [Csob] using |
| 168 | (MeasureTheory.eLpNorm_le_eLpNorm_fderiv_of_le |
| 169 | (μ := volume) (F := ℝ) (u := u) (s := s) hu1 hu_support_sub_s |
| 170 | (p := (1 : ℝ≥0)) (q := (2 : ℝ≥0)) (by norm_num) h2p hpq hs_bdd) |
| 171 | have hgrad_eq_one : |
| 172 | eLpNorm (fderiv ℝ u) 1 volume = |
| 173 | eLpNorm (smoothGradNorm u) 1 volume := by |
| 174 | calc |
| 175 | eLpNorm (fderiv ℝ u) 1 volume |
| 176 | = eLpNorm (fun x => ‖fderiv ℝ u x‖) 1 volume := by |
| 177 | exact (eLpNorm_norm (f := fderiv ℝ u) (p := (1 : ℝ≥0∞)) (μ := volume)).symm |
| 178 | _ = eLpNorm (smoothGradNorm u) 1 volume := by |
| 179 | exact eLpNorm_congr_ae (Eventually.of_forall fun x => |
| 180 | norm_fderiv_eq_smoothGradNorm (u := u) (x := x)) |
| 181 | have hsobolev' : |
| 182 | eLpNorm u 2 volume ≤ |
| 183 | (Csob : ℝ≥0∞) * eLpNorm (smoothGradNorm u) 1 volume := by |
| 184 | rwa [hgrad_eq_one] at hsobolev |
| 185 | have hcompare : |
| 186 | eLpNorm (smoothGradNorm u) 1 (volume.restrict s) ≤ |
| 187 | eLpNorm (smoothGradNorm u) 2 (volume.restrict s) * |
| 188 | (volume s) ^ (1 / (1 : ℝ) - 1 / (2 : ℝ)) := by |
| 189 | simpa [s, Measure.restrict_apply_univ] using |
| 190 | (eLpNorm_le_eLpNorm_mul_rpow_measure_univ |
| 191 | (μ := volume.restrict s) (f := smoothGradNorm u) |
| 192 | (p := (1 : ℝ≥0∞)) (q := (2 : ℝ≥0∞)) (by norm_num) hgrad_aesm_s) |
| 193 | rw [hu_eq_full, hgrad_eq_full] |
| 194 | calc |
| 195 | eLpNorm u 2 volume |
| 196 | ≤ (Csob : ℝ≥0∞) * eLpNorm (smoothGradNorm u) 1 volume := hsobolev' |
| 197 | _ = (Csob : ℝ≥0∞) * eLpNorm (smoothGradNorm u) 1 (volume.restrict s) := by |
| 198 | congr 1 |
| 199 | simpa using hgrad_eq_s_one.symm |
| 200 | _ ≤ (Csob : ℝ≥0∞) * |
| 201 | (eLpNorm (smoothGradNorm u) 2 (volume.restrict s) * |
| 202 | (volume s) ^ (1 / (1 : ℝ) - 1 / (2 : ℝ))) := by |
| 203 | gcongr |
| 204 | _ = C * eLpNorm (smoothGradNorm u) 2 volume := by |
| 205 | rw [hgrad_eq_s_two] |
| 206 | dsimp [C] |
| 207 | rw [mul_assoc, mul_comm (eLpNorm (smoothGradNorm u) 2 volume) ((volume s) ^ _)] |
| 208 | · have hne : 2 ≠ d := by |
| 209 | intro h |
| 210 | exact hd_eq_two h.symm |
| 211 | have hd_gt_two : 2 < d := lt_of_le_of_ne hd hne |
| 212 | let Csob : ℝ≥0 := MeasureTheory.eLpNormLESNormFDerivOfLeConst ℝ volume s 2 2 |
| 213 | let C : ℝ≥0∞ := Csob |
| 214 | refine ⟨C, ?_, ?_⟩ |
| 215 | · dsimp [C] |
| 216 | exact ENNReal.coe_lt_top |
| 217 | · intro u hu hu_cpt hu_sub |
| 218 | have hu1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 219 | have hu_support_sub : Function.support u ⊆ Ω := subset_closure.trans hu_sub |
| 220 | have hu_support_sub_s : Function.support u ⊆ s := hu_support_sub.trans hΩ_sub |
| 221 | have hgrad_support_sub : Function.support (smoothGradNorm u) ⊆ Ω := |
| 222 | support_smoothGradNorm_subset_tsupport.trans hu_sub |
| 223 | have hu_eq_full : |
| 224 | eLpNorm u 2 (volume.restrict Ω) = eLpNorm u 2 volume := by |
| 225 | rw [eLpNorm_restrict_eq_of_support_subset hu_support_sub] |
| 226 | have hgrad_eq_full : |
| 227 | eLpNorm (smoothGradNorm u) 2 (volume.restrict Ω) = |
| 228 | eLpNorm (smoothGradNorm u) 2 volume := by |
| 229 | rw [eLpNorm_restrict_eq_of_support_subset hgrad_support_sub] |
| 230 | have hsobolev : |
| 231 | eLpNorm u 2 volume ≤ |
| 232 | (Csob : ℝ≥0∞) * eLpNorm (fderiv ℝ u) 2 volume := by |
| 233 | have h2p : (2 : ℝ≥0) < Module.finrank ℝ E := by |
| 234 | rw [finrank_euclideanSpace_fin] |
| 235 | exact_mod_cast hd_gt_two |
| 236 | simpa [Csob] using |
| 237 | (MeasureTheory.eLpNorm_le_eLpNorm_fderiv |
| 238 | (μ := volume) (F := ℝ) (u := u) (s := s) hu1 hu_support_sub_s |
| 239 | (p := (2 : ℝ≥0)) (by norm_num) h2p hs_bdd) |
| 240 | have hgrad_eq_two : |
| 241 | eLpNorm (fderiv ℝ u) 2 volume = |
| 242 | eLpNorm (smoothGradNorm u) 2 volume := by |
| 243 | calc |
| 244 | eLpNorm (fderiv ℝ u) 2 volume |
| 245 | = eLpNorm (fun x => ‖fderiv ℝ u x‖) 2 volume := by |
| 246 | exact (eLpNorm_norm (f := fderiv ℝ u) (p := (2 : ℝ≥0∞)) (μ := volume)).symm |
| 247 | _ = eLpNorm (smoothGradNorm u) 2 volume := by |
| 248 | exact eLpNorm_congr_ae (Eventually.of_forall fun x => |
| 249 | norm_fderiv_eq_smoothGradNorm (u := u) (x := x)) |
| 250 | have hsobolev' : |
| 251 | eLpNorm u 2 volume ≤ |
| 252 | (Csob : ℝ≥0∞) * eLpNorm (smoothGradNorm u) 2 volume := by |
| 253 | rwa [hgrad_eq_two] at hsobolev |
| 254 | rw [hu_eq_full, hgrad_eq_full] |
| 255 | calc |
| 256 | eLpNorm u 2 volume |
| 257 | ≤ (Csob : ℝ≥0∞) * eLpNorm (smoothGradNorm u) 2 volume := hsobolev' |
| 258 | _ = C * eLpNorm (smoothGradNorm u) 2 volume := by |
| 259 | rfl |
| 260 | |
| 261 | omit [NeZero d] in |
| 262 | private lemma indicator_integrable_on_sphere_prod |
| 263 | {R : ℝ} {F : E → ℝ} (hF : IntegrableOn F (Metric.ball (0 : E) R) volume) : |
| 264 | Integrable |
| 265 | (fun p : Metric.sphere (0 : E) 1 × Set.Ioi (0 : ℝ) => |
| 266 | (Metric.ball (0 : E) R).indicator F (p.2.1 • (p.1 : E))) |
| 267 | ((volume : Measure E).toSphere.prod |
| 268 | (Measure.volumeIoiPow (Module.finrank ℝ E - 1))) := by |
| 269 | set σ := (volume : Measure E).toSphere |
| 270 | set ρ := Measure.volumeIoiPow (Module.finrank ℝ E - 1) |
| 271 | set G := (Metric.ball (0 : E) R).indicator F |
| 272 | have hmp := (volume : Measure E).measurePreserving_homeomorphUnitSphereProd |
| 273 | have hemb := (homeomorphUnitSphereProd E).measurableEmbedding |
| 274 | rw [← hmp.integrable_comp_emb hemb] |
| 275 | have hcomp : ((fun p : Metric.sphere (0 : E) 1 × Set.Ioi (0 : ℝ) => |
| 276 | G (p.2.1 • (p.1 : E))) ∘ homeomorphUnitSphereProd E) = G ∘ Subtype.val := by |
| 277 | funext ⟨z, hz⟩ |
| 278 | simp only [Function.comp_apply, homeomorphUnitSphereProd_apply_snd_coe, |
| 279 | homeomorphUnitSphereProd_apply_fst_coe] |
| 280 | change G (‖z‖ • (‖z‖⁻¹ • z)) = G z |
| 281 | rw [smul_smul, mul_inv_cancel₀ (norm_ne_zero_iff.mpr (Set.mem_compl_singleton_iff.mp hz)), |
| 282 | one_smul] |
| 283 | rw [hcomp, ← integrableOn_iff_comap_subtypeVal (measurableSet_singleton _).compl] |
| 284 | have hG_int : Integrable G volume := |
| 285 | (integrable_indicator_iff measurableSet_ball).mpr hF |
| 286 | exact hG_int.integrableOn |
| 287 | |
| 288 | theorem sphere_radial_integral_ball |
| 289 | {R : ℝ} (_hR : 0 < R) {F : E → ℝ} |
| 290 | (hF : IntegrableOn F (Metric.ball (0 : E) R) volume) : |
| 291 | ∫ z in Metric.ball (0 : E) R, F z ∂volume = |
| 292 | ∫ ω in Set.univ, |
| 293 | (∫ r in Set.Ioo (0 : ℝ) R, r ^ (d - 1 : ℕ) • F (r • (ω : E))) |
| 294 | ∂(volume : Measure E).toSphere := by |
| 295 | let _ := _hR |
| 296 | set G : E → ℝ := (Metric.ball (0 : E) R).indicator F |
| 297 | have hstep1 : ∫ z in Metric.ball (0 : E) R, F z ∂volume = ∫ z, G z ∂volume := by |
| 298 | simp [G, integral_indicator measurableSet_ball] |
| 299 | have hstep1' : ∫ z, G z ∂volume = |
| 300 | ∫ z : ({(0 : E)}ᶜ : Set E), G z ∂((volume : Measure E).comap (↑)) := by |
| 301 | rw [integral_subtype_comap (measurableSet_singleton _).compl, |
| 302 | restrict_compl_singleton] |
| 303 | have hmp := (volume : Measure E).measurePreserving_homeomorphUnitSphereProd |
| 304 | have hemb := (homeomorphUnitSphereProd E).measurableEmbedding |
| 305 | have hstep2 : |
| 306 | ∫ z : ({(0 : E)}ᶜ : Set E), G z ∂((volume : Measure E).comap (↑)) = |
| 307 | ∫ p : Metric.sphere (0 : E) 1 × Set.Ioi (0 : ℝ), |
| 308 | G (p.2.1 • (p.1 : E)) |
| 309 | ∂(volume : Measure E).toSphere.prod (Measure.volumeIoiPow (Module.finrank ℝ E - 1)) := by |
| 310 | convert hmp.integral_comp hemb (fun p => G (p.2.1 • (p.1 : E))) using 1 |
| 311 | congr 1 |
| 312 | ext ⟨z, hz⟩ |
| 313 | simp only [homeomorphUnitSphereProd_apply_snd_coe, |
| 314 | homeomorphUnitSphereProd_apply_fst_coe] at hz ⊢ |
| 315 | congr 1 |
| 316 | have hne : ‖z‖ ≠ 0 := norm_ne_zero_iff.mpr hz |
| 317 | rw [smul_smul, mul_inv_cancel₀ hne, one_smul] |
| 318 | have hG_simp : ∀ (ω : Metric.sphere (0 : E) 1) (r : Set.Ioi (0 : ℝ)), |
| 319 | G (r.1 • (ω : E)) = if r.1 < R then F (r.1 • (ω : E)) else 0 := by |
| 320 | intro ⟨ω, hω⟩ ⟨r, hr⟩ |
| 321 | simp only [G, Set.indicator, Metric.mem_ball, dist_zero_right] |
| 322 | have hω_norm : ‖ω‖ = 1 := by simpa using hω |
| 323 | rw [norm_smul, Real.norm_of_nonneg (le_of_lt hr), hω_norm, mul_one] |
| 324 | rw [hstep1, hstep1', hstep2] |
| 325 | set σ := (volume : Measure E).toSphere |
| 326 | set n := Module.finrank ℝ E - 1 |
| 327 | set ρ := Measure.volumeIoiPow n |
| 328 | have hInteg : Integrable (fun p : Metric.sphere (0 : E) 1 × Set.Ioi (0 : ℝ) => |
| 329 | G (p.2.1 • (p.1 : E))) (σ.prod ρ) := |
| 330 | indicator_integrable_on_sphere_prod hF |
| 331 | have hFubini : |
| 332 | ∫ p : Metric.sphere (0 : E) 1 × Set.Ioi (0 : ℝ), |
| 333 | G (p.2.1 • (p.1 : E)) ∂σ.prod ρ = |
| 334 | ∫ ω : Metric.sphere (0 : E) 1, |
| 335 | (∫ r : Set.Ioi (0 : ℝ), G (r.1 • (ω : E)) ∂ρ) ∂σ := |
| 336 | integral_prod |
| 337 | (f := fun (p : Metric.sphere (0 : E) 1 × Set.Ioi (0 : ℝ)) => |
| 338 | G (p.2.1 • (p.1 : E))) |
| 339 | hInteg |
| 340 | rw [hFubini] |
| 341 | rw [setIntegral_univ] |
| 342 | congr 1 |
| 343 | ext ω |
| 344 | simp only [ρ, Measure.volumeIoiPow] |
| 345 | rw [integral_withDensity_eq_integral_toReal_smul |
| 346 | ((measurable_subtype_coe.pow_const _).ennreal_ofReal) |
| 347 | (by filter_upwards with ⟨r, hr⟩; exact ENNReal.ofReal_lt_top)] |
| 348 | have h5b : ∫ r : Set.Ioi (0 : ℝ), |
| 349 | (ENNReal.ofReal (r.1 ^ n)).toReal • G (r.1 • (ω : E)) |
| 350 | ∂(Measure.comap Subtype.val volume) = |
| 351 | ∫ r in Set.Ioi (0 : ℝ), r ^ n • G (r • (ω : E)) ∂volume := by |
| 352 | have : (fun (r : Set.Ioi (0 : ℝ)) => |
| 353 | (ENNReal.ofReal (r.1 ^ n)).toReal • G (r.1 • (ω : E))) = |
| 354 | (fun (r : Set.Ioi (0 : ℝ)) => r.1 ^ n • G (r.1 • (ω : E))) := by |
| 355 | ext ⟨r, hr⟩ |
| 356 | rw [ENNReal.toReal_ofReal (pow_nonneg hr.le _)] |
| 357 | rw [this] |
| 358 | exact integral_subtype_comap (α := ℝ) measurableSet_Ioi |
| 359 | (fun r => r ^ n • G (r • (ω : E))) |
| 360 | rw [h5b] |
| 361 | have hfin : n = d - 1 := by simp [n] |
| 362 | rw [show (∫ r in Set.Ioo (0 : ℝ) R, r ^ (d - 1 : ℕ) • F (r • (ω : E))) = |
| 363 | ∫ r in Set.Ioi (0 : ℝ), |
| 364 | (Set.Ioo (0 : ℝ) R).indicator (fun r => r ^ (d - 1 : ℕ) • F (r • (ω : E))) r from by |
| 365 | rw [setIntegral_indicator measurableSet_Ioo, |
| 366 | show Set.Ioi (0 : ℝ) ∩ Set.Ioo 0 R = Set.Ioo 0 R from |
| 367 | Set.inter_eq_right.mpr Set.Ioo_subset_Ioi_self]] |
| 368 | apply setIntegral_congr_fun measurableSet_Ioi |
| 369 | intro r hr |
| 370 | rw [hfin] |
| 371 | have hr_pos : 0 < r := hr |
| 372 | simp only [Set.indicator, Set.mem_Ioo, hr_pos, true_and, smul_eq_mul] |
| 373 | rw [hG_simp ω ⟨r, hr⟩] |
| 374 | by_cases hlt : r < R |
| 375 | · simp [hlt] |
| 376 | · simp [hlt, mul_zero] |
| 377 | |
| 378 | theorem polar_identity_ball |
| 379 | {R : ℝ} (hR : 0 < R) {f : E → ℝ} |
| 380 | (hf : IntegrableOn (fun z => f z * ‖z‖ ^ (1 - (d : ℝ))) (Metric.ball (0 : E) R) volume) : |
| 381 | ∫ ω in Set.univ, |
| 382 | (∫ s in Set.Ioo (0 : ℝ) R, f (s • (ω : E))) |
| 383 | ∂(volume : Measure E).toSphere = |
| 384 | ∫ z in Metric.ball (0 : E) R, f z * ‖z‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 385 | set g : E → ℝ := fun z => f z * ‖z‖ ^ (1 - (d : ℝ)) |
| 386 | have hpolar := sphere_radial_integral_ball hR hf |
| 387 | rw [hpolar] |
| 388 | congr 1 |
| 389 | ext ω |
| 390 | apply setIntegral_congr_fun measurableSet_Ioo |
| 391 | intro r ⟨hr_pos, hr_lt⟩ |
| 392 | simp only [g, smul_eq_mul] |
| 393 | have hω_norm : ‖(ω : E)‖ = 1 := by |
| 394 | have hm := ω.2 |
| 395 | simp only [Metric.mem_sphere, dist_zero_right] at hm |
| 396 | exact hm |
| 397 | rw [norm_smul, Real.norm_of_nonneg hr_pos.le, hω_norm, mul_one] |
| 398 | have hd_ge : 1 ≤ d := Nat.one_le_iff_ne_zero.mpr (NeZero.ne d) |
| 399 | have hrpow_nat : (r : ℝ) ^ (d - 1 : ℕ) * r ^ (1 - (d : ℝ)) = 1 := by |
| 400 | rw [← Real.rpow_natCast r (d - 1), Nat.cast_sub hd_ge, ← Real.rpow_add hr_pos] |
| 401 | norm_num |
| 402 | have : r ^ (d - 1 : ℕ) * (f (r • (ω : E)) * r ^ (1 - (d : ℝ))) = f (r • (ω : E)) := by |
| 403 | rw [mul_comm (f _) _, ← mul_assoc, hrpow_nat, one_mul] |
| 404 | linarith |
| 405 | |
| 406 | omit [NeZero d] in |
| 407 | theorem norm_sub_le_integral_fderiv_along_segment |
| 408 | {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) (x y : E) : |
| 409 | ‖u x - u y‖ ≤ ∫ t in (0 : ℝ)..‖x - y‖, |
| 410 | ‖fderiv ℝ u (x + t • (‖x - y‖⁻¹ • (y - x)))‖ := by |
| 411 | by_cases hxy : x = y |
| 412 | · simp [hxy] |
| 413 | set ω : E := ‖x - y‖⁻¹ • (y - x) |
| 414 | set γ : ℝ → E := fun t => x + t • ω |
| 415 | have hγ : ∀ t, HasDerivAt γ ω t := by |
| 416 | intro t |
| 417 | have : HasDerivAt (fun t => t • ω) ω t := by |
| 418 | simpa using (hasDerivAt_id t).smul_const ω |
| 419 | exact this.const_add x |
| 420 | have huγ : ∀ t, HasDerivAt (u ∘ γ) ((fderiv ℝ u (γ t)) ω) t := by |
| 421 | intro t |
| 422 | exact (hu.differentiable (by norm_cast)).differentiableAt.hasFDerivAt.comp_hasDerivAt t |
| 423 | (hγ t) |
| 424 | have hγ0 : γ 0 = x := by simp [γ] |
| 425 | have hγ1 : γ ‖x - y‖ = y := by |
| 426 | simp only [γ, ω, smul_smul] |
| 427 | rw [mul_inv_cancel₀ (norm_ne_zero_iff.mpr (sub_ne_zero.mpr hxy)), one_smul] |
| 428 | abel |
| 429 | have hfderiv_cont : Continuous (fderiv ℝ u) := by |
| 430 | have h1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 431 | exact h1.continuous_fderiv (by norm_num) |
| 432 | have hγ_cont : Continuous γ := by fun_prop |
| 433 | have hcont_comp : Continuous (fun t => (fderiv ℝ u (γ t)) ω) := |
| 434 | (hfderiv_cont.comp hγ_cont).clm_apply continuous_const |
| 435 | have hint1 : IntervalIntegrable (fun t => (fderiv ℝ u (γ t)) ω) volume 0 ‖x - y‖ := |
| 436 | hcont_comp.intervalIntegrable _ _ |
| 437 | have hint2 : IntervalIntegrable (fun t => ‖fderiv ℝ u (γ t)‖) volume 0 ‖x - y‖ := |
| 438 | (continuous_norm.comp (hfderiv_cont.comp hγ_cont)).intervalIntegrable _ _ |
| 439 | have hftc : u y - u x = ∫ t in (0 : ℝ)..‖x - y‖, (fderiv ℝ u (γ t)) ω := by |
| 440 | have := intervalIntegral.integral_eq_sub_of_hasDerivAt (fun t _ => huγ t) hint1 |
| 441 | simp only [Function.comp_apply, hγ0, hγ1] at this |
| 442 | linarith |
| 443 | have hω_norm : ‖ω‖ = 1 := by |
| 444 | change ‖‖x - y‖⁻¹ • (y - x)‖ = 1 |
| 445 | rw [norm_smul, norm_inv, norm_norm, norm_sub_rev y x, |
| 446 | inv_mul_cancel₀ (norm_ne_zero_iff.mpr (sub_ne_zero.mpr hxy))] |
| 447 | rw [norm_sub_rev] |
| 448 | calc ‖u y - u x‖ = ‖∫ t in (0 : ℝ)..‖x - y‖, (fderiv ℝ u (γ t)) ω‖ := by rw [hftc] |
| 449 | _ ≤ ∫ t in (0 : ℝ)..‖x - y‖, ‖(fderiv ℝ u (γ t)) ω‖ := |
| 450 | intervalIntegral.norm_integral_le_integral_norm (norm_nonneg _) |
| 451 | _ ≤ ∫ t in (0 : ℝ)..‖x - y‖, ‖fderiv ℝ u (γ t)‖ := by |
| 452 | apply intervalIntegral.integral_mono_on (norm_nonneg _) hint1.norm hint2 |
| 453 | intro t ht |
| 454 | calc ‖(fderiv ℝ u (γ t)) ω‖ ≤ ‖fderiv ℝ u (γ t)‖ * ‖ω‖ := |
| 455 | ContinuousLinearMap.le_opNorm _ _ |
| 456 | _ = ‖fderiv ℝ u (γ t)‖ := by rw [hω_norm, mul_one] |
| 457 | |
| 458 | theorem star_shaped_polar_identity |
| 459 | {R : ℝ} (hR : 0 < R) {x : E} (hx : x ∈ Metric.ball (0 : E) R) |
| 460 | {f : E → ℝ} (hf : IntegrableOn (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) |
| 461 | (Metric.ball (0 : E) R) volume) : |
| 462 | ∫ ω in Set.univ, |
| 463 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 464 | (Metric.ball (0 : E) R).indicator (fun y => f y) (x + s • (ω : E))) |
| 465 | ∂(volume : Measure E).toSphere = |
| 466 | ∫ y in Metric.ball (0 : E) R, f y * ‖y - x‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 467 | set B := Metric.ball (0 : E) R |
| 468 | set g : E → ℝ := fun z => B.indicator (fun y => f y) (x + z) |
| 469 | have hpolar := polar_identity_ball (show (0 : ℝ) < 2 * R by linarith) |
| 470 | (f := g) (hf := by |
| 471 | have heq : (fun z => g z * ‖z‖ ^ (1 - (d : ℝ))) =ᵐ[volume.restrict (Metric.ball 0 (2*R))] |
| 472 | (fun z => B.indicator (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) (x + z)) := by |
| 473 | filter_upwards with z |
| 474 | simp only [g, Set.indicator] |
| 475 | split_ifs with h |
| 476 | · congr 1 |
| 477 | congr 1 |
| 478 | show ‖z‖ = ‖(x + z) - x‖ |
| 479 | abel_nf |
| 480 | · simp |
| 481 | rw [IntegrableOn, integrable_congr heq] |
| 482 | apply Integrable.integrableOn |
| 483 | set F := B.indicator (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) |
| 484 | have hF_int : Integrable F volume := (integrable_indicator_iff measurableSet_ball).mpr hf |
| 485 | rw [show (fun z => F (x + z)) = F ∘ (· + x) from by ext z; rw [add_comm]; rfl] |
| 486 | exact (measurePreserving_add_right volume x).integrable_comp_of_integrable hF_int) |
| 487 | have hRHS : ∫ z in Metric.ball (0 : E) (2 * R), g z * ‖z‖ ^ (1 - (d : ℝ)) ∂volume = |
| 488 | ∫ y in B, f y * ‖y - x‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 489 | have hx_norm : ‖x‖ < R := by rwa [Metric.mem_ball, dist_zero_right] at hx |
| 490 | have hfun_eq : ∀ z, g z * ‖z‖ ^ (1 - (d : ℝ)) = |
| 491 | B.indicator (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) (x + z) := by |
| 492 | intro z |
| 493 | simp only [g, Set.indicator] |
| 494 | split_ifs with h |
| 495 | · congr 1 |
| 496 | show ‖z‖ ^ (1 - (d : ℝ)) = ‖x + z - x‖ ^ (1 - (d : ℝ)) |
| 497 | congr 1 |
| 498 | abel_nf |
| 499 | · ring |
| 500 | conv_lhs => |
| 501 | arg 2 |
| 502 | ext z |
| 503 | rw [hfun_eq] |
| 504 | set h : E → ℝ := B.indicator (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) |
| 505 | calc ∫ z in Metric.ball (0 : E) (2 * R), h (x + z) ∂volume |
| 506 | = ∫ z, h (x + z) ∂volume := by |
| 507 | rw [← integral_indicator measurableSet_ball] |
| 508 | apply integral_congr_ae |
| 509 | filter_upwards with z |
| 510 | simp only [Set.indicator] |
| 511 | split_ifs with hz |
| 512 | · rfl |
| 513 | · simp only [h, Set.indicator] |
| 514 | split_ifs with hb |
| 515 | · exfalso |
| 516 | apply hz |
| 517 | simp only [B, Metric.mem_ball, dist_zero_right] at hb ⊢ |
| 518 | calc ‖z‖ ≤ ‖x + z‖ + ‖x‖ := by |
| 519 | calc ‖z‖ = ‖(x + z) + (-x)‖ := by abel_nf |
| 520 | _ ≤ ‖x + z‖ + ‖-x‖ := norm_add_le _ _ |
| 521 | _ = ‖x + z‖ + ‖x‖ := by rw [norm_neg] |
| 522 | _ < R + R := add_lt_add hb hx_norm |
| 523 | _ = 2 * R := by ring |
| 524 | · rfl |
| 525 | _ = ∫ y, h y ∂volume := by |
| 526 | rw [show (fun z => h (x + z)) = (fun z => h (z + x)) from by ext z; rw [add_comm]] |
| 527 | exact integral_add_right_eq_self _ x |
| 528 | _ = ∫ y in B, f y * ‖y - x‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 529 | exact integral_indicator measurableSet_ball |
| 530 | calc ∫ ω in Set.univ, |
| 531 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), B.indicator (fun y => f y) (x + s • (ω : E))) |
| 532 | ∂(volume : Measure E).toSphere |
| 533 | = ∫ ω in Set.univ, |
| 534 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), g (s • (ω : E))) |
| 535 | ∂(volume : Measure E).toSphere := by rfl |
| 536 | _ = ∫ z in Metric.ball (0 : E) (2 * R), g z * ‖z‖ ^ (1 - (d : ℝ)) ∂volume := |
| 537 | hpolar |
| 538 | _ = ∫ y in B, f y * ‖y - x‖ ^ (1 - (d : ℝ)) ∂volume := hRHS |
| 539 | |
| 540 | omit [NeZero d] in |
| 541 | private lemma ray_mem_ball_of_mem_ball |
| 542 | {R : ℝ} {x : E} {ω : Metric.sphere (0 : E) 1} {s t : ℝ} |
| 543 | (hx : x ∈ Metric.ball (0 : E) R) |
| 544 | (hs_ball : x + s • (ω : E) ∈ Metric.ball (0 : E) R) |
| 545 | (hs : 0 < s) (ht : t ∈ Set.Icc (0 : ℝ) s) : |
| 546 | x + t • (ω : E) ∈ Metric.ball (0 : E) R := by |
| 547 | have hts : t / s ∈ Set.Icc (0 : ℝ) 1 := by |
| 548 | constructor |
| 549 | · exact div_nonneg ht.1 hs.le |
| 550 | · have hts' : t ≤ (1 : ℝ) * s := by simpa using ht.2 |
| 551 | exact (div_le_iff₀ hs).2 hts' |
| 552 | have hconv := (convex_ball (0 : E) R).add_smul_sub_mem hx hs_ball hts |
| 553 | have hrewrite : x + t • (ω : E) = x + (t / s) • ((x + s • (ω : E)) - x) := by |
| 554 | calc |
| 555 | x + t • (ω : E) = x + (((t / s) * s) • (ω : E)) := by |
| 556 | congr 2 |
| 557 | rw [div_eq_mul_inv, mul_assoc, inv_mul_cancel₀ hs.ne', mul_one] |
| 558 | _ = x + (t / s) • (s • (ω : E)) := by rw [smul_smul] |
| 559 | _ = x + (t / s) • ((x + s • (ω : E)) - x) := by congr 2; abel_nf |
| 560 | rw [hrewrite] |
| 561 | exact hconv |
| 562 | |
| 563 | omit [NeZero d] in |
| 564 | private lemma integrableOn_radial_indicator_fderiv |
| 565 | {R : ℝ} (_hR : 0 < R) {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) |
| 566 | (x : E) (ω : Metric.sphere (0 : E) 1) : |
| 567 | IntegrableOn |
| 568 | (fun t : ℝ => |
| 569 | (Metric.ball (0 : E) R).indicator (fun y => ‖fderiv ℝ u y‖) |
| 570 | (x + t • (ω : E))) |
| 571 | (Set.Ioo (0 : ℝ) (2 * R)) volume := by |
| 572 | set g : ℝ → ℝ := fun t => ‖fderiv ℝ u (x + t • (ω : E))‖ |
| 573 | set S : Set ℝ := {t : ℝ | ‖x + t • (ω : E)‖ < R} |
| 574 | have hg_cont : Continuous g := by |
| 575 | have hfderiv_cont : Continuous (fderiv ℝ u) := by |
| 576 | have h1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 577 | exact h1.continuous_fderiv (by norm_num) |
| 578 | have hline_cont : Continuous (fun t : ℝ => x + t • (ω : E)) := |
| 579 | continuous_const.add (continuous_id.smul continuous_const) |
| 580 | exact continuous_norm.comp (hfderiv_cont.comp hline_cont) |
| 581 | have hg_int_Icc : IntegrableOn g (Set.Icc (0 : ℝ) (2 * R)) volume := |
| 582 | (hg_cont.continuousOn.integrableOn_compact |
| 583 | (isCompact_Icc : IsCompact (Set.Icc (0 : ℝ) (2 * R)))) |
| 584 | have hS_meas : MeasurableSet S := by |
| 585 | have hcont : Continuous fun t : ℝ => ‖x + t • (ω : E)‖ := |
| 586 | continuous_norm.comp (continuous_const.add (continuous_id.smul continuous_const)) |
| 587 | exact (measurableSet_Iio).preimage hcont.measurable |
| 588 | have hind_int_Icc : IntegrableOn (S.indicator g) (Set.Icc (0 : ℝ) (2 * R)) volume := |
| 589 | hg_int_Icc.indicator hS_meas |
| 590 | have hsubset : Set.Ioo (0 : ℝ) (2 * R) ⊆ Set.Icc (0 : ℝ) (2 * R) := by |
| 591 | intro t ht |
| 592 | exact ⟨le_of_lt ht.1, le_of_lt ht.2⟩ |
| 593 | refine (hind_int_Icc.mono_set hsubset).congr_fun ?_ measurableSet_Ioo |
| 594 | intro t ht |
| 595 | by_cases hmem : ‖x + t • (ω : E)‖ < R |
| 596 | · simp [g, S, hmem, Metric.mem_ball, dist_zero_right] |
| 597 | · simp [g, S, hmem, Metric.mem_ball, dist_zero_right] |
| 598 | |
| 599 | omit [NeZero d] in |
| 600 | private theorem integrable_sphere_radial_integral_ball |
| 601 | {R : ℝ} (_hR : 0 < R) {F : E → ℝ} |
| 602 | (hF : IntegrableOn F (Metric.ball (0 : E) R) volume) : |
| 603 | Integrable |
| 604 | (fun ω : Metric.sphere (0 : E) 1 => |
| 605 | ∫ r in Set.Ioo (0 : ℝ) R, r ^ (d - 1 : ℕ) • F (r • (ω : E)) ∂volume) |
| 606 | ((volume : Measure E).toSphere) := by |
| 607 | set G : E → ℝ := (Metric.ball (0 : E) R).indicator F |
| 608 | set σ := (volume : Measure E).toSphere |
| 609 | set n := Module.finrank ℝ E - 1 |
| 610 | set ρ := Measure.volumeIoiPow n |
| 611 | have hInteg : Integrable (fun p : Metric.sphere (0 : E) 1 × Set.Ioi (0 : ℝ) => |
| 612 | G (p.2.1 • (p.1 : E))) (σ.prod ρ) := |
| 613 | indicator_integrable_on_sphere_prod hF |
| 614 | have hOuter : Integrable |
| 615 | (fun ω : Metric.sphere (0 : E) 1 => |
| 616 | ∫ r : Set.Ioi (0 : ℝ), G (r.1 • (ω : E)) ∂ρ) σ := by |
| 617 | simpa [σ, ρ] using hInteg.integral_prod_left |
| 618 | refine hOuter.congr ?_ |
| 619 | filter_upwards with ω |
| 620 | simp only [ρ, Measure.volumeIoiPow] |
| 621 | rw [integral_withDensity_eq_integral_toReal_smul |
| 622 | ((measurable_subtype_coe.pow_const _).ennreal_ofReal) |
| 623 | (by filter_upwards with ⟨r, hr⟩; exact ENNReal.ofReal_lt_top)] |
| 624 | have h5b : ∫ r : Set.Ioi (0 : ℝ), |
| 625 | (ENNReal.ofReal (r.1 ^ n)).toReal • G (r.1 • (ω : E)) |
| 626 | ∂(Measure.comap Subtype.val volume) = |
| 627 | ∫ r in Set.Ioi (0 : ℝ), r ^ n • G (r • (ω : E)) ∂volume := by |
| 628 | have : (fun (r : Set.Ioi (0 : ℝ)) => |
| 629 | (ENNReal.ofReal (r.1 ^ n)).toReal • G (r.1 • (ω : E))) = |
| 630 | (fun (r : Set.Ioi (0 : ℝ)) => r.1 ^ n • G (r.1 • (ω : E))) := by |
| 631 | ext ⟨r, hr⟩ |
| 632 | rw [ENNReal.toReal_ofReal (pow_nonneg hr.le _)] |
| 633 | rw [this] |
| 634 | exact integral_subtype_comap (α := ℝ) measurableSet_Ioi |
| 635 | (fun r => r ^ n • G (r • (ω : E))) |
| 636 | rw [h5b] |
| 637 | have hfin : n = d - 1 := by simp [n] |
| 638 | rw [show (∫ r in Set.Ioo (0 : ℝ) R, r ^ (d - 1 : ℕ) • F (r • (ω : E))) = |
| 639 | ∫ r in Set.Ioi (0 : ℝ), |
| 640 | (Set.Ioo (0 : ℝ) R).indicator (fun r => r ^ (d - 1 : ℕ) • F (r • (ω : E))) r from by |
| 641 | rw [setIntegral_indicator measurableSet_Ioo, |
| 642 | show Set.Ioi (0 : ℝ) ∩ Set.Ioo 0 R = Set.Ioo 0 R from |
| 643 | Set.inter_eq_right.mpr Set.Ioo_subset_Ioi_self]] |
| 644 | apply setIntegral_congr_fun measurableSet_Ioi |
| 645 | intro r hr |
| 646 | rw [hfin] |
| 647 | have hr_pos : 0 < r := hr |
| 648 | have hω_norm : ‖(ω : E)‖ = 1 := by |
| 649 | simpa only [Metric.mem_sphere, dist_zero_right] using ω.2 |
| 650 | simp only [G, Set.indicator, Metric.mem_ball, dist_zero_right, Set.mem_Ioo, hr_pos, true_and, |
| 651 | smul_eq_mul] |
| 652 | rw [norm_smul, Real.norm_of_nonneg hr_pos.le, hω_norm, mul_one] |
| 653 | by_cases hlt : r < R |
| 654 | · simp [hlt] |
| 655 | · simp [hlt] |
| 656 | |
| 657 | private theorem integrable_polar_radial |
| 658 | {R : ℝ} (hR : 0 < R) {f : E → ℝ} |
| 659 | (hf : IntegrableOn (fun z => f z * ‖z‖ ^ (1 - (d : ℝ))) (Metric.ball (0 : E) R) volume) : |
| 660 | Integrable |
| 661 | (fun ω : Metric.sphere (0 : E) 1 => |
| 662 | ∫ s in Set.Ioo (0 : ℝ) R, f (s • (ω : E)) ∂volume) |
| 663 | ((volume : Measure E).toSphere) := by |
| 664 | have hbase := integrable_sphere_radial_integral_ball |
| 665 | (d := d) (R := R) hR |
| 666 | (F := fun z => f z * ‖z‖ ^ (1 - (d : ℝ))) hf |
| 667 | refine hbase.congr ?_ |
| 668 | filter_upwards with ω |
| 669 | apply setIntegral_congr_fun measurableSet_Ioo |
| 670 | intro r hr |
| 671 | have hr_pos : 0 < r := hr.1 |
| 672 | have hω_norm : ‖(ω : E)‖ = 1 := by |
| 673 | simpa only [Metric.mem_sphere, dist_zero_right] using ω.2 |
| 674 | simp only [smul_eq_mul] |
| 675 | rw [norm_smul, Real.norm_of_nonneg hr_pos.le, hω_norm, mul_one] |
| 676 | have hd_ge : 1 ≤ d := Nat.one_le_iff_ne_zero.mpr (NeZero.ne d) |
| 677 | have hrpow_nat : (r : ℝ) ^ (d - 1 : ℕ) * r ^ (1 - (d : ℝ)) = 1 := by |
| 678 | rw [← Real.rpow_natCast r (d - 1), Nat.cast_sub hd_ge, ← Real.rpow_add hr_pos] |
| 679 | norm_num |
| 680 | rw [mul_comm (f (r • (ω : E))) _, ← mul_assoc, hrpow_nat, one_mul] |
| 681 | |
| 682 | private theorem integrable_star_shaped_radial |
| 683 | {R : ℝ} (hR : 0 < R) {x : E} (_hx : x ∈ Metric.ball (0 : E) R) |
| 684 | {f : E → ℝ} (hf : IntegrableOn (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) |
| 685 | (Metric.ball (0 : E) R) volume) : |
| 686 | Integrable |
| 687 | (fun ω : Metric.sphere (0 : E) 1 => |
| 688 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 689 | (Metric.ball (0 : E) R).indicator (fun y => f y) (x + s • (ω : E)) ∂volume) |
| 690 | ((volume : Measure E).toSphere) := by |
| 691 | set B := Metric.ball (0 : E) R |
| 692 | set g : E → ℝ := fun z => B.indicator (fun y => f y) (x + z) |
| 693 | have hg_int : |
| 694 | IntegrableOn (fun z => g z * ‖z‖ ^ (1 - (d : ℝ))) |
| 695 | (Metric.ball (0 : E) (2 * R)) volume := by |
| 696 | have heq : (fun z => g z * ‖z‖ ^ (1 - (d : ℝ))) =ᵐ[volume.restrict (Metric.ball 0 (2 * R))] |
| 697 | (fun z => B.indicator (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) (x + z)) := by |
| 698 | filter_upwards with z |
| 699 | simp only [g, Set.indicator] |
| 700 | split_ifs with h |
| 701 | · congr 1 |
| 702 | congr 1 |
| 703 | show ‖z‖ = ‖(x + z) - x‖ |
| 704 | abel_nf |
| 705 | · simp |
| 706 | rw [IntegrableOn, integrable_congr heq] |
| 707 | apply Integrable.integrableOn |
| 708 | set F := B.indicator (fun y => f y * ‖y - x‖ ^ (1 - (d : ℝ))) |
| 709 | have hF_int : Integrable F volume := (integrable_indicator_iff measurableSet_ball).mpr hf |
| 710 | rw [show (fun z => F (x + z)) = F ∘ (· + x) from by ext z; rw [add_comm]; rfl] |
| 711 | exact (measurePreserving_add_right volume x).integrable_comp_of_integrable hF_int |
| 712 | simpa [g, B] using integrable_polar_radial |
| 713 | (d := d) (R := 2 * R) (hR := by linarith) (f := g) hg_int |
| 714 | |
| 715 | private theorem translated_ball_sphere_radial_identity |
| 716 | {R : ℝ} (hR : 0 < R) {x : E} (hx : x ∈ Metric.ball (0 : E) R) |
| 717 | {f : E → ℝ} (hf : IntegrableOn f (Metric.ball (0 : E) R) volume) : |
| 718 | ∫ ω in Set.univ, |
| 719 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 720 | s ^ (d - 1 : ℕ) • |
| 721 | (Metric.ball (0 : E) R).indicator (fun y => f y) (x + s • (ω : E)) ∂volume) |
| 722 | ∂(volume : Measure E).toSphere = |
| 723 | ∫ y in Metric.ball (0 : E) R, f y ∂volume := by |
| 724 | set B := Metric.ball (0 : E) R |
| 725 | set g : E → ℝ := fun z => B.indicator (fun y => f y) (x + z) |
| 726 | have hg_int : IntegrableOn g (Metric.ball (0 : E) (2 * R)) volume := by |
| 727 | have hF_int : Integrable (B.indicator f) volume := |
| 728 | (integrable_indicator_iff measurableSet_ball).mpr hf |
| 729 | have hcomp : Integrable (fun z => B.indicator f (x + z)) volume := by |
| 730 | rw [show (fun z => B.indicator f (x + z)) = (B.indicator f) ∘ (· + x) from by |
| 731 | ext z |
| 732 | rw [add_comm] |
| 733 | rfl] |
| 734 | exact (measurePreserving_add_right volume x).integrable_comp_of_integrable hF_int |
| 735 | exact hcomp.integrableOn |
| 736 | have hrad := sphere_radial_integral_ball (d := d) (R := 2 * R) |
| 737 | (show (0 : ℝ) < 2 * R by linarith) (F := g) hg_int |
| 738 | have hRHS : ∫ z in Metric.ball (0 : E) (2 * R), g z ∂volume = |
| 739 | ∫ y in B, f y ∂volume := by |
| 740 | have hx_norm : ‖x‖ < R := by rwa [Metric.mem_ball, dist_zero_right] at hx |
| 741 | set h : E → ℝ := B.indicator f |
| 742 | calc ∫ z in Metric.ball (0 : E) (2 * R), h (x + z) ∂volume |
| 743 | = ∫ z, h (x + z) ∂volume := by |
| 744 | rw [← integral_indicator measurableSet_ball] |
| 745 | apply integral_congr_ae |
| 746 | filter_upwards with z |
| 747 | simp only [Set.indicator] |
| 748 | split_ifs with hz |
| 749 | · rfl |
| 750 | · simp only [h, Set.indicator] |
| 751 | split_ifs with hb |
| 752 | · exfalso |
| 753 | apply hz |
| 754 | simp only [B, Metric.mem_ball, dist_zero_right] at hb ⊢ |
| 755 | calc ‖z‖ ≤ ‖x + z‖ + ‖x‖ := by |
| 756 | calc ‖z‖ = ‖(x + z) + (-x)‖ := by abel_nf |
| 757 | _ ≤ ‖x + z‖ + ‖-x‖ := norm_add_le _ _ |
| 758 | _ = ‖x + z‖ + ‖x‖ := by rw [norm_neg] |
| 759 | _ < R + R := add_lt_add hb hx_norm |
| 760 | _ = 2 * R := by ring |
| 761 | · rfl |
| 762 | _ = ∫ y, h y ∂volume := by |
| 763 | rw [show (fun z => h (x + z)) = (fun z => h (z + x)) from by ext z; rw [add_comm]] |
| 764 | exact integral_add_right_eq_self _ x |
| 765 | _ = ∫ y in B, f y ∂volume := by |
| 766 | exact integral_indicator measurableSet_ball |
| 767 | calc ∫ ω in Set.univ, |
| 768 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 769 | s ^ (d - 1 : ℕ) • B.indicator (fun y => f y) (x + s • (ω : E)) ∂volume) |
| 770 | ∂(volume : Measure E).toSphere |
| 771 | = ∫ ω in Set.univ, |
| 772 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), s ^ (d - 1 : ℕ) • g (s • (ω : E)) ∂volume) |
| 773 | ∂(volume : Measure E).toSphere := by rfl |
| 774 | _ = ∫ z in Metric.ball (0 : E) (2 * R), g z ∂volume := hrad.symm |
| 775 | _ = ∫ y in B, f y ∂volume := hRHS |
| 776 | |
| 777 | theorem integral_norm_rpow_neg_ball {R : ℝ} (hR : 0 < R) : |
| 778 | ∫ x in Metric.ball (0 : E) R, ‖x‖ ^ (1 - (d : ℝ)) ∂volume = |
| 779 | ↑d * (volume (Metric.ball (0 : E) 1)).toReal * R := by |
| 780 | let f : ℝ → ℝ := fun r => if 0 < r ∧ r < R then r ^ (1 - (d : ℝ)) else 0 |
| 781 | have hconv : ∫ x in Metric.ball (0 : E) R, ‖x‖ ^ (1 - (d : ℝ)) ∂volume = |
| 782 | ∫ x : E, f (‖x‖) ∂volume := by |
| 783 | rw [← integral_indicator measurableSet_ball] |
| 784 | refine integral_congr_ae ?_ |
| 785 | have hmeas0 : (volume : Measure E) {(0 : E)} = 0 := measure_singleton _ |
| 786 | have hae : ∀ᵐ x ∂(volume : Measure E), x ≠ (0 : E) := |
| 787 | compl_mem_ae_iff.mpr hmeas0 |
| 788 | filter_upwards [hae] with x hx |
| 789 | simp only [f, indicator, Metric.mem_ball, dist_zero_right] |
| 790 | have hpos : 0 < ‖x‖ := norm_pos_iff.mpr hx |
| 791 | simp only [and_iff_right hpos] |
| 792 | have hrad : ∫ x : E, f (‖x‖) ∂volume = |
| 793 | ↑(Module.finrank ℝ E) • (volume : Measure E).real (Metric.ball 0 1) • |
| 794 | ∫ y in Set.Ioi (0 : ℝ), y ^ (Module.finrank ℝ E - 1) • f y := |
| 795 | MeasureTheory.integral_fun_norm_addHaar (μ := (volume : Measure E)) f |
| 796 | have hfin : Module.finrank ℝ E = d := finrank_euclideanSpace_fin |
| 797 | have h1d : ∫ y in Set.Ioi (0 : ℝ), y ^ (Module.finrank ℝ E - 1) • f y = R := by |
| 798 | rw [hfin] |
| 799 | have hsupp : ∀ y ∈ Set.Ioi (0 : ℝ), y ^ (d - 1) • f y = |
| 800 | Set.indicator (Set.Ioo 0 R) (fun _ => (1 : ℝ)) y := by |
| 801 | intro y hy |
| 802 | have hy_pos : 0 < y := hy |
| 803 | by_cases hlt : y < R |
| 804 | · simp only [f, smul_eq_mul, Set.indicator, Set.mem_Ioo, hy_pos, hlt, true_and, |
| 805 | if_true] |
| 806 | rw [← Real.rpow_natCast y (d - 1), |
| 807 | Nat.cast_sub (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d)), |
| 808 | ← Real.rpow_add hy_pos] |
| 809 | norm_num |
| 810 | · simp only [f, smul_eq_mul, Set.indicator, Set.mem_Ioo, hy_pos, hlt, true_and, |
| 811 | if_false, mul_zero] |
| 812 | rw [setIntegral_congr_fun measurableSet_Ioi hsupp] |
| 813 | rw [setIntegral_indicator measurableSet_Ioo] |
| 814 | rw [show Set.Ioi (0 : ℝ) ∩ Set.Ioo 0 R = Set.Ioo 0 R from |
| 815 | Set.inter_eq_right.mpr Set.Ioo_subset_Ioi_self] |
| 816 | simp only [setIntegral_const, smul_eq_mul, mul_one, Measure.real, |
| 817 | Real.volume_Ioo, ENNReal.toReal_ofReal (by linarith : (0 : ℝ) ≤ R - 0)] |
| 818 | ring |
| 819 | rw [hconv, hrad, h1d, hfin] |
| 820 | simp [nsmul_eq_mul, Measure.real] |
| 821 | ring |
| 822 | |
| 823 | theorem riesz_kernel_integrable |
| 824 | {R : ℝ} (_hR : 0 < R) : |
| 825 | IntegrableOn (fun x : E => ‖x‖ ^ (1 - (d : ℝ))) |
| 826 | (Metric.ball (0 : E) R) volume := by |
| 827 | let _ := _hR |
| 828 | let g : ℝ → ℝ := fun r => if r < R then r ^ (1 - (d : ℝ)) else 0 |
| 829 | have hag : (fun x : E => ‖x‖ ^ (1 - (d : ℝ))) =ᵐ[volume.restrict (Metric.ball (0 : E) R)] |
| 830 | (g ∘ (‖·‖)) := by |
| 831 | filter_upwards [ae_restrict_mem measurableSet_ball] with x hx |
| 832 | simp only [Function.comp_apply, g, Metric.mem_ball, dist_zero_right] at hx ⊢ |
| 833 | rw [if_pos hx] |
| 834 | rw [IntegrableOn, integrable_congr hag] |
| 835 | suffices h : Integrable (fun x : E => g ‖x‖) volume from h.integrableOn |
| 836 | have h1d : IntegrableOn (fun y : ℝ => y ^ (Module.finrank ℝ E - 1) • g y) (Set.Ioi 0) := by |
| 837 | have hfin : Module.finrank ℝ E = d := finrank_euclideanSpace_fin |
| 838 | set h_ind : ℝ → ℝ := (Set.Ioo (0 : ℝ) R).indicator (fun _ => (1 : ℝ)) |
| 839 | have heq : Set.EqOn (fun y : ℝ => y ^ (Module.finrank ℝ E - 1) • g y) |
| 840 | h_ind (Set.Ioi 0) := by |
| 841 | intro r hr |
| 842 | simp only [Set.mem_Ioi] at hr |
| 843 | simp only [g, smul_eq_mul, h_ind, Set.indicator, Set.mem_Ioo] |
| 844 | split_ifs with h1 h2 |
| 845 | · rw [hfin, ← Real.rpow_natCast r (d - 1), |
| 846 | Nat.cast_sub (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d)), |
| 847 | ← Real.rpow_add hr] |
| 848 | norm_num |
| 849 | · next h2 => exact absurd ⟨hr, h1⟩ h2 |
| 850 | · next h1 h2 => exact absurd h2.2 h1 |
| 851 | · simp [mul_zero] |
| 852 | have h_ind_int : IntegrableOn h_ind (Set.Ioi 0) := by |
| 853 | apply Integrable.integrableOn |
| 854 | exact integrable_indicator_iff measurableSet_Ioo |>.mpr |
| 855 | (integrableOn_const (hs := measure_Ioo_lt_top.ne)) |
| 856 | exact h_ind_int.congr_fun heq.symm measurableSet_Ioi |
| 857 | exact (MeasureTheory.integrable_fun_norm_addHaar (μ := volume) (f := g)).mpr h1d |
| 858 | |
| 859 | theorem riesz_kernel_L1_bound |
| 860 | {R : ℝ} (hR : 0 < R) (x : E) (hx : x ∈ Metric.ball (0 : E) R) : |
| 861 | ∫ y in Metric.ball (0 : E) R, |
| 862 | ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume ≤ |
| 863 | ↑d * (volume (Metric.ball (0 : E) 1)).toReal * (2 * R) := by |
| 864 | have hx_dist : dist x 0 < R := Metric.mem_ball.mp hx |
| 865 | have hBsub : Metric.ball (0 : E) R ⊆ Metric.ball x (2 * R) := by |
| 866 | intro y hy |
| 867 | rw [Metric.mem_ball] at hy ⊢ |
| 868 | calc dist y x ≤ dist y 0 + dist 0 x := dist_triangle y 0 x |
| 869 | _ < R + R := by rw [dist_comm] at hx_dist; linarith [Metric.mem_ball.mp hy] |
| 870 | _ = 2 * R := by ring |
| 871 | calc ∫ y in Metric.ball (0 : E) R, ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume |
| 872 | ≤ ∫ z in Metric.ball (0 : E) (2 * R), ‖z‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 873 | have hmp := measurePreserving_add_right (volume : Measure E) x |
| 874 | have hemb := (MeasurableEquiv.addRight x : E ≃ᵐ E).measurableEmbedding |
| 875 | have hpre : (· + x) ⁻¹' Metric.ball x (2 * R) = Metric.ball (0 : E) (2 * R) := by |
| 876 | ext z; simp [Metric.mem_ball] |
| 877 | have htrans : ∫ y in Metric.ball x (2 * R), ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume = |
| 878 | ∫ z in Metric.ball (0 : E) (2 * R), ‖z‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 879 | rw [← hmp.setIntegral_preimage_emb hemb, hpre] |
| 880 | congr 1 with z |
| 881 | show ‖x - (z + x)‖ ^ (1 - (d : ℝ)) = ‖z‖ ^ (1 - (d : ℝ)) |
| 882 | simp [norm_neg] |
| 883 | have hinteg : IntegrableOn (fun y => ‖x - y‖ ^ (1 - (d : ℝ))) |
| 884 | (Metric.ball x (2 * R)) volume := by |
| 885 | have h2R : (0 : ℝ) < 2 * R := by linarith |
| 886 | rw [← hmp.integrableOn_comp_preimage hemb, hpre] |
| 887 | exact (riesz_kernel_integrable h2R).congr |
| 888 | (ae_of_all _ (fun z => by |
| 889 | change ‖z‖ ^ (1 - (d : ℝ)) = ‖x - (z + x)‖ ^ (1 - (d : ℝ)) |
| 890 | simp [norm_neg])) |
| 891 | calc ∫ y in Metric.ball (0 : E) R, ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume |
| 892 | ≤ ∫ y in Metric.ball x (2 * R), ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 893 | apply setIntegral_mono_set hinteg |
| 894 | · exact ae_of_all _ (fun y => Real.rpow_nonneg (norm_nonneg _) _) |
| 895 | · exact hBsub.eventuallyLE |
| 896 | _ = ∫ z in Metric.ball (0 : E) (2 * R), ‖z‖ ^ (1 - (d : ℝ)) ∂volume := htrans |
| 897 | _ = ↑d * (volume (Metric.ball (0 : E) 1)).toReal * (2 * R) := by |
| 898 | exact integral_norm_rpow_neg_ball (by linarith) |
| 899 | |
| 900 | theorem representation_formula_smooth |
| 901 | {R : ℝ} (hR : 0 < R) |
| 902 | {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) (x : E) (hx : x ∈ Metric.ball (0 : E) R) : |
| 903 | ‖u x - ⨍ y in Metric.ball (0 : E) R, u y ∂volume‖ ≤ |
| 904 | (2 : ℝ) ^ d / ((d : ℝ) * (volume (Metric.ball (0 : E) 1)).toReal) * |
| 905 | ∫ y in Metric.ball (0 : E) R, |
| 906 | ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 907 | set B := Metric.ball (0 : E) R |
| 908 | set ubar := ⨍ y in B, u y ∂volume |
| 909 | have h1 : ‖u x - ubar‖ ≤ ⨍ y in B, ‖u x - u y‖ ∂volume := by |
| 910 | have hB_ne : volume B ≠ 0 := by |
| 911 | simp only [ne_eq, B] |
| 912 | exact (measure_ball_pos volume 0 hR).ne' |
| 913 | have hB_fin : volume B ≠ ⊤ := measure_ball_lt_top.ne |
| 914 | have hu_int : IntegrableOn u B volume := |
| 915 | (hu.continuous.continuousOn.integrableOn_compact (isCompact_closedBall 0 R)).mono_set |
| 916 | Metric.ball_subset_closedBall |
| 917 | set μ := volume.restrict B |
| 918 | have : IsFiniteMeasure μ := ⟨by rw [Measure.restrict_apply_univ]; exact hB_fin.lt_top⟩ |
| 919 | have : NeZero μ := ⟨by rwa [ne_eq, Measure.restrict_eq_zero]⟩ |
| 920 | have havg_eq : u x - ubar = ⨍ y, (u x - u y) ∂μ := by |
| 921 | change u x - ⨍ y, u y ∂μ = ⨍ y, (u x - u y) ∂μ |
| 922 | rw [average_eq, average_eq, |
| 923 | integral_sub (integrable_const (u x)) hu_int.integrable, |
| 924 | integral_const, smul_sub] |
| 925 | have hne : (μ.real Set.univ) ≠ 0 := by |
| 926 | rw [measureReal_def, Measure.restrict_apply_univ] |
| 927 | exact ENNReal.toReal_ne_zero.mpr ⟨hB_ne, hB_fin⟩ |
| 928 | rw [inv_smul_smul₀ hne] |
| 929 | rw [havg_eq] |
| 930 | change ‖⨍ y, (u x - u y) ∂μ‖ ≤ ⨍ y, ‖u x - u y‖ ∂μ |
| 931 | simp only [average_eq] |
| 932 | calc ‖(μ.real Set.univ)⁻¹ • ∫ y, (u x - u y) ∂μ‖ |
| 933 | ≤ ‖(μ.real Set.univ)⁻¹‖ * ‖∫ y, (u x - u y) ∂μ‖ := norm_smul_le _ _ |
| 934 | _ ≤ ‖(μ.real Set.univ)⁻¹‖ * ∫ y, ‖u x - u y‖ ∂μ := |
| 935 | mul_le_mul_of_nonneg_left (norm_integral_le_integral_norm _) (norm_nonneg _) |
| 936 | _ = (μ.real Set.univ)⁻¹ • ∫ y, ‖u x - u y‖ ∂μ := by |
| 937 | rw [Real.norm_of_nonneg (inv_nonneg.mpr measureReal_nonneg), smul_eq_mul] |
| 938 | set C_rep := (2 : ℝ) ^ d / ((d : ℝ) * (volume (Metric.ball (0 : E) 1)).toReal) |
| 939 | suffices h2 : ⨍ y in B, ‖u x - u y‖ ∂volume ≤ |
| 940 | C_rep * ∫ y in B, ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume from |
| 941 | le_trans h1 h2 |
| 942 | have hB_ne : volume B ≠ 0 := by |
| 943 | simp only [ne_eq, B]; exact (measure_ball_pos volume 0 hR).ne' |
| 944 | have hB_fin : volume B ≠ ⊤ := measure_ball_lt_top.ne |
| 945 | have hvol_pos : (0 : ℝ) < (volume B).toReal := |
| 946 | ENNReal.toReal_pos hB_ne hB_fin |
| 947 | have hd_pos : (0 : ℝ) < d := Nat.cast_pos.mpr (NeZero.pos d) |
| 948 | have hvol1_pos : (0 : ℝ) < (volume (Metric.ball (0 : E) 1)).toReal := |
| 949 | ENNReal.toReal_pos (measure_ball_pos volume 0 one_pos).ne' measure_ball_lt_top.ne |
| 950 | set volB := (volume B).toReal |
| 951 | have hH_int : IntegrableOn (fun y : E => ‖u x - u y‖) B volume := by |
| 952 | have hcont : Continuous (fun y : E => ‖u x - u y‖) := |
| 953 | continuous_norm.comp (continuous_const.sub hu.continuous) |
| 954 | exact (hcont.continuousOn.integrableOn_compact (isCompact_closedBall 0 R)).mono_set |
| 955 | Metric.ball_subset_closedBall |
| 956 | have hfderiv_cont : Continuous (fderiv ℝ u) := by |
| 957 | have h1u : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 958 | exact h1u.continuous_fderiv (by norm_num) |
| 959 | have hgrad_cont : Continuous (fun y : E => ‖fderiv ℝ u y‖) := |
| 960 | continuous_norm.comp hfderiv_cont |
| 961 | obtain ⟨C0, hC0⟩ := |
| 962 | IsCompact.exists_bound_of_continuousOn (isCompact_closedBall (0 : E) R) hgrad_cont.continuousOn |
| 963 | set M : ℝ := max C0 0 |
| 964 | have hM_nonneg : 0 ≤ M := le_max_right _ _ |
| 965 | have hM_bound : ∀ y ∈ B, ‖fderiv ℝ u y‖ ≤ M := by |
| 966 | intro y hy |
| 967 | have hy' : y ∈ Metric.closedBall (0 : E) R := Metric.ball_subset_closedBall hy |
| 968 | have hbound := hC0 y hy' |
| 969 | rw [Real.norm_of_nonneg (norm_nonneg _)] at hbound |
| 970 | exact hbound.trans (le_max_left _ _) |
| 971 | have hBsub : B ⊆ Metric.ball x (2 * R) := by |
| 972 | intro y hy |
| 973 | rw [Metric.mem_ball] at hy ⊢ |
| 974 | have hx_dist : dist x 0 < R := Metric.mem_ball.mp hx |
| 975 | calc dist y x ≤ dist y 0 + dist 0 x := dist_triangle y 0 x |
| 976 | _ < R + R := by rw [dist_comm] at hx_dist; linarith [Metric.mem_ball.mp hy] |
| 977 | _ = 2 * R := by ring |
| 978 | have hk_big : IntegrableOn (fun y : E => ‖y - x‖ ^ (1 - (d : ℝ))) |
| 979 | (Metric.ball x (2 * R)) volume := by |
| 980 | have hmp := measurePreserving_add_right (volume : Measure E) x |
| 981 | have hemb := (MeasurableEquiv.addRight x : E ≃ᵐ E).measurableEmbedding |
| 982 | have hpre : (· + x) ⁻¹' Metric.ball x (2 * R) = Metric.ball (0 : E) (2 * R) := by |
| 983 | ext z |
| 984 | simp [Metric.mem_ball] |
| 985 | rw [← hmp.integrableOn_comp_preimage hemb, hpre] |
| 986 | have h2R : (0 : ℝ) < 2 * R := by linarith |
| 987 | exact (riesz_kernel_integrable (d := d) h2R).congr |
| 988 | (ae_of_all _ (fun z => by |
| 989 | change ‖z‖ ^ (1 - (d : ℝ)) = ‖(z + x) - x‖ ^ (1 - (d : ℝ)) |
| 990 | abel_nf)) |
| 991 | have hk : IntegrableOn (fun y : E => ‖y - x‖ ^ (1 - (d : ℝ))) B volume := |
| 992 | hk_big.mono_set hBsub |
| 993 | have hfG : IntegrableOn (fun y : E => ‖fderiv ℝ u y‖ * ‖y - x‖ ^ (1 - (d : ℝ))) B volume := by |
| 994 | rw [IntegrableOn] at hk ⊢ |
| 995 | have hmajor : Integrable (fun y : E => M * ‖y - x‖ ^ (1 - (d : ℝ))) (volume.restrict B) := |
| 996 | hk.const_mul M |
| 997 | apply Integrable.mono' hmajor |
| 998 | · have hmeas : |
| 999 | Measurable (fun y : E => ‖fderiv ℝ u y‖ * ‖y - x‖ ^ (1 - (d : ℝ))) := by |
| 1000 | measurability |
| 1001 | exact hmeas.aestronglyMeasurable.restrict |
| 1002 | · filter_upwards [ae_restrict_mem measurableSet_ball] with y hy |
| 1003 | have hk_nonneg : 0 ≤ ‖y - x‖ ^ (1 - (d : ℝ)) := Real.rpow_nonneg (norm_nonneg _) _ |
| 1004 | have hleft_nonneg : 0 ≤ ‖fderiv ℝ u y‖ * ‖y - x‖ ^ (1 - (d : ℝ)) := |
| 1005 | mul_nonneg (norm_nonneg _) hk_nonneg |
| 1006 | have hright_nonneg : 0 ≤ M * ‖y - x‖ ^ (1 - (d : ℝ)) := |
| 1007 | mul_nonneg hM_nonneg hk_nonneg |
| 1008 | simpa [Real.norm_of_nonneg hleft_nonneg, Real.norm_of_nonneg hright_nonneg] using |
| 1009 | (mul_le_mul_of_nonneg_right (hM_bound y hy) hk_nonneg) |
| 1010 | have houterG_int := integrable_star_shaped_radial |
| 1011 | (d := d) (R := R) hR (x := x) hx (f := fun y => ‖fderiv ℝ u y‖) hfG |
| 1012 | have hkernel_symm : |
| 1013 | ∫ y in B, ‖fderiv ℝ u y‖ * ‖y - x‖ ^ (1 - (d : ℝ)) ∂volume = |
| 1014 | ∫ y in B, ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 1015 | apply setIntegral_congr_fun measurableSet_ball |
| 1016 | intro y hy |
| 1017 | simp [norm_sub_rev] |
| 1018 | have hrad_u : |
| 1019 | ∫ ω in Set.univ, |
| 1020 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1021 | s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) (x + s • (ω : E)) ∂volume) |
| 1022 | ∂(volume : Measure E).toSphere |
| 1023 | = ∫ y in B, ‖u x - u y‖ ∂volume := by |
| 1024 | simpa [B] using translated_ball_sphere_radial_identity |
| 1025 | (d := d) (R := R) hR (x := x) hx (f := fun y => ‖u x - u y‖) hH_int |
| 1026 | have hpointwise : |
| 1027 | ∀ ω : Metric.sphere (0 : E) 1, |
| 1028 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1029 | s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) (x + s • (ω : E)) ∂volume |
| 1030 | ≤ ((2 * R) ^ d / ↑d) * |
| 1031 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1032 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + s • (ω : E)) ∂volume := by |
| 1033 | intro ω |
| 1034 | set Cω := ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1035 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + s • (ω : E)) ∂volume |
| 1036 | have hCω_nonneg : 0 ≤ Cω := by |
| 1037 | apply integral_nonneg |
| 1038 | intro s |
| 1039 | by_cases hs_ball : x + s • (ω : E) ∈ B <;> simp [B, hs_ball] |
| 1040 | have hpow_int : |
| 1041 | IntegrableOn (fun s : ℝ => Cω * s ^ (d - 1 : ℕ)) |
| 1042 | (Set.Ioo (0 : ℝ) (2 * R)) volume := by |
| 1043 | have hcont : Continuous (fun s : ℝ => Cω * s ^ (d - 1 : ℕ)) := |
| 1044 | continuous_const.mul (continuous_id.pow _) |
| 1045 | have hsubset : Set.Ioo (0 : ℝ) (2 * R) ⊆ Set.Icc (0 : ℝ) (2 * R) := by |
| 1046 | intro s hs |
| 1047 | exact ⟨le_of_lt hs.1, le_of_lt hs.2⟩ |
| 1048 | exact (hcont.continuousOn.integrableOn_compact |
| 1049 | (isCompact_Icc : IsCompact (Set.Icc (0 : ℝ) (2 * R)))).mono_set hsubset |
| 1050 | have hnonneg_lhs : |
| 1051 | 0 ≤ᵐ[volume.restrict (Set.Ioo (0 : ℝ) (2 * R))] |
| 1052 | (fun s : ℝ => s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) |
| 1053 | (x + s • (ω : E))) := by |
| 1054 | filter_upwards [ae_restrict_mem measurableSet_Ioo] with s hs |
| 1055 | by_cases hs_ball : x + s • (ω : E) ∈ B |
| 1056 | · simpa [B, hs_ball, smul_eq_mul] using |
| 1057 | mul_nonneg (pow_nonneg hs.1.le _) (norm_nonneg (u x - u (x + s • (ω : E)))) |
| 1058 | · simp [B, hs_ball, smul_eq_mul] |
| 1059 | have hrad_le : |
| 1060 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1061 | s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) (x + s • (ω : E)) ∂volume |
| 1062 | ≤ ∫ s in Set.Ioo (0 : ℝ) (2 * R), Cω * s ^ (d - 1 : ℕ) ∂volume := by |
| 1063 | apply integral_mono_of_nonneg hnonneg_lhs hpow_int.integrable |
| 1064 | filter_upwards [ae_restrict_mem measurableSet_Ioo] with s hs |
| 1065 | have hs_pos : 0 < s := hs.1 |
| 1066 | by_cases hs_ball : x + s • (ω : E) ∈ B |
| 1067 | · have hω_norm : ‖(ω : E)‖ = 1 := by |
| 1068 | simpa only [Metric.mem_sphere, dist_zero_right] using ω.2 |
| 1069 | have hnorm : ‖x - (x + s • (ω : E))‖ = s := by |
| 1070 | calc |
| 1071 | ‖x - (x + s • (ω : E))‖ = ‖-(s • (ω : E))‖ := by congr 1; abel_nf |
| 1072 | _ = ‖s • (ω : E)‖ := norm_neg _ |
| 1073 | _ = s := by rw [norm_smul, Real.norm_of_nonneg hs_pos.le, hω_norm, mul_one] |
| 1074 | have hdir : s⁻¹ • ((x + s • (ω : E)) - x) = (ω : E) := by |
| 1075 | calc |
| 1076 | s⁻¹ • ((x + s • (ω : E)) - x) = s⁻¹ • (s • (ω : E)) := by congr 2; abel_nf |
| 1077 | _ = (s⁻¹ * s) • (ω : E) := by rw [smul_smul] |
| 1078 | _ = (ω : E) := by rw [inv_mul_cancel₀ hs_pos.ne', one_smul] |
| 1079 | have hseg0 := norm_sub_le_integral_fderiv_along_segment |
| 1080 | (d := d) (u := u) hu x (x + s • (ω : E)) |
| 1081 | have hseg : |
| 1082 | ‖u x - u (x + s • (ω : E))‖ ≤ |
| 1083 | ∫ t in (0 : ℝ)..s, ‖fderiv ℝ u (x + t • (ω : E))‖ := by |
| 1084 | calc |
| 1085 | ‖u x - u (x + s • (ω : E))‖ |
| 1086 | ≤ ∫ t in (0 : ℝ)..‖x - (x + s • (ω : E))‖, |
| 1087 | ‖fderiv ℝ u (x + t • (‖x - (x + s • (ω : E))‖⁻¹ • ((x + s • (ω : E)) - x)))‖ := |
| 1088 | hseg0 |
| 1089 | _ = ∫ t in (0 : ℝ)..s, ‖fderiv ℝ u (x + t • (ω : E))‖ := by |
| 1090 | rw [hnorm] |
| 1091 | congr with t |
| 1092 | simp [smul_smul, hs_pos.ne'] |
| 1093 | have hrad_eq : |
| 1094 | ∫ t in (0 : ℝ)..s, ‖fderiv ℝ u (x + t • (ω : E))‖ = |
| 1095 | ∫ t in (0 : ℝ)..s, |
| 1096 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + t • (ω : E)) ∂volume := by |
| 1097 | rw [intervalIntegral.integral_of_le hs_pos.le, intervalIntegral.integral_of_le hs_pos.le] |
| 1098 | apply setIntegral_congr_fun measurableSet_Ioc |
| 1099 | intro t ht |
| 1100 | have htIcc : t ∈ Set.Icc (0 : ℝ) s := ⟨le_of_lt ht.1, ht.2⟩ |
| 1101 | have hmem := ray_mem_ball_of_mem_ball (d := d) hx hs_ball hs_pos htIcc |
| 1102 | simp [B, hmem] |
| 1103 | have hsubset_s : Set.Ioo (0 : ℝ) s ⊆ Set.Ioo (0 : ℝ) (2 * R) := by |
| 1104 | intro t ht |
| 1105 | exact ⟨ht.1, lt_of_lt_of_le ht.2 hs.2.le⟩ |
| 1106 | have hmono : |
| 1107 | ∫ t in (0 : ℝ)..s, |
| 1108 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + t • (ω : E)) ∂volume |
| 1109 | ≤ Cω := by |
| 1110 | rw [intervalIntegral.integral_of_le hs_pos.le, integral_Ioc_eq_integral_Ioo] |
| 1111 | apply setIntegral_mono_set |
| 1112 | (integrableOn_radial_indicator_fderiv (d := d) hR hu x ω) |
| 1113 | · filter_upwards [ae_restrict_mem measurableSet_Ioo] with t ht |
| 1114 | by_cases ht_ball : x + t • (ω : E) ∈ B <;> simp [B, ht_ball] |
| 1115 | · exact hsubset_s.eventuallyLE |
| 1116 | have hk_nonneg : 0 ≤ s ^ (d - 1 : ℕ) := pow_nonneg hs_pos.le _ |
| 1117 | have hseg' : ‖u x - u (x + s • (ω : E))‖ ≤ Cω := by |
| 1118 | exact hseg.trans (by rw [hrad_eq]; exact hmono) |
| 1119 | have hmul : ‖u x - u (x + s • (ω : E))‖ * s ^ (d - 1 : ℕ) ≤ Cω * s ^ (d - 1 : ℕ) := |
| 1120 | mul_le_mul_of_nonneg_right hseg' hk_nonneg |
| 1121 | simpa [B, hs_ball, smul_eq_mul, mul_comm] using hmul |
| 1122 | · have : 0 ≤ Cω * s ^ (d - 1 : ℕ) := mul_nonneg hCω_nonneg (pow_nonneg hs_pos.le _) |
| 1123 | simpa [B, hs_ball, smul_eq_mul] using this |
| 1124 | have hpow_eval : |
| 1125 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), s ^ (d - 1 : ℕ) ∂volume = |
| 1126 | (2 * R) ^ d / ↑d := by |
| 1127 | have h2R : (0 : ℝ) < 2 * R := by linarith |
| 1128 | calc |
| 1129 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), s ^ (d - 1 : ℕ) ∂volume |
| 1130 | = ∫ s in Set.Ioc (0 : ℝ) (2 * R), s ^ (d - 1 : ℕ) ∂volume := by |
| 1131 | rw [integral_Ioc_eq_integral_Ioo] |
| 1132 | _ = ∫ s in (0 : ℝ)..(2 * R), s ^ (d - 1 : ℕ) := by |
| 1133 | rw [← intervalIntegral.integral_of_le h2R.le] |
| 1134 | _ = ((2 * R) ^ d - 0 ^ d) / ↑d := by |
| 1135 | rw [integral_pow (a := (0 : ℝ)) (b := 2 * R) (n := d - 1)] |
| 1136 | simp [Nat.sub_add_cancel (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d)), |
| 1137 | Nat.cast_sub (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d))] |
| 1138 | _ = (2 * R) ^ d / ↑d := by |
| 1139 | simp [NeZero.ne d] |
| 1140 | calc |
| 1141 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1142 | s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) (x + s • (ω : E)) ∂volume |
| 1143 | ≤ ∫ s in Set.Ioo (0 : ℝ) (2 * R), Cω * s ^ (d - 1 : ℕ) ∂volume := hrad_le |
| 1144 | _ = Cω * ((2 * R) ^ d / ↑d) := by |
| 1145 | rw [integral_const_mul, hpow_eval] |
| 1146 | _ = ((2 * R) ^ d / ↑d) * Cω := by ring |
| 1147 | have houter_nonneg : |
| 1148 | 0 ≤ᵐ[(volume : Measure E).toSphere] |
| 1149 | (fun ω : Metric.sphere (0 : E) 1 => |
| 1150 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1151 | s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) (x + s • (ω : E)) ∂volume) := by |
| 1152 | filter_upwards with ω |
| 1153 | rw [← integral_indicator measurableSet_Ioo] |
| 1154 | apply integral_nonneg |
| 1155 | intro s |
| 1156 | by_cases hs : s ∈ Set.Ioo (0 : ℝ) (2 * R) |
| 1157 | · by_cases hs_ball : x + s • (ω : E) ∈ B |
| 1158 | · simpa [hs, B, hs_ball, smul_eq_mul] using |
| 1159 | mul_nonneg (pow_nonneg hs.1.le _) (norm_nonneg (u x - u (x + s • (ω : E)))) |
| 1160 | · simp [hs, B, hs_ball, smul_eq_mul] |
| 1161 | · simp [hs] |
| 1162 | have houter_le : |
| 1163 | ∫ ω in Set.univ, |
| 1164 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1165 | s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) (x + s • (ω : E)) ∂volume) |
| 1166 | ∂(volume : Measure E).toSphere |
| 1167 | ≤ |
| 1168 | ∫ ω in Set.univ, |
| 1169 | (((2 * R) ^ d / ↑d) * |
| 1170 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1171 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + s • (ω : E)) ∂volume) |
| 1172 | ∂(volume : Measure E).toSphere := by |
| 1173 | simpa [setIntegral_univ] using integral_mono_of_nonneg houter_nonneg |
| 1174 | (houterG_int.const_mul ((2 * R) ^ d / ↑d)) |
| 1175 | (ae_of_all _ hpointwise) |
| 1176 | have hrad_g : |
| 1177 | ∫ ω in Set.univ, |
| 1178 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1179 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + s • (ω : E)) ∂volume) |
| 1180 | ∂(volume : Measure E).toSphere |
| 1181 | = ∫ y in B, ‖fderiv ℝ u y‖ * ‖y - x‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 1182 | simpa [B] using star_shaped_polar_identity |
| 1183 | (d := d) (R := R) hR (x := x) hx (f := fun y => ‖fderiv ℝ u y‖) hfG |
| 1184 | have hkey_integral : ∫ y in B, ‖u x - u y‖ ∂volume ≤ |
| 1185 | ((2 * R) ^ d / ↑d) * |
| 1186 | ∫ y in B, ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 1187 | calc |
| 1188 | ∫ y in B, ‖u x - u y‖ ∂volume |
| 1189 | = ∫ ω in Set.univ, |
| 1190 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1191 | s ^ (d - 1 : ℕ) • B.indicator (fun y => ‖u x - u y‖) (x + s • (ω : E)) ∂volume) |
| 1192 | ∂(volume : Measure E).toSphere := by |
| 1193 | symm |
| 1194 | exact hrad_u |
| 1195 | _ ≤ ∫ ω in Set.univ, |
| 1196 | (((2 * R) ^ d / ↑d) * |
| 1197 | ∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1198 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + s • (ω : E)) ∂volume) |
| 1199 | ∂(volume : Measure E).toSphere := houter_le |
| 1200 | _ = ((2 * R) ^ d / ↑d) * |
| 1201 | ∫ ω in Set.univ, |
| 1202 | (∫ s in Set.Ioo (0 : ℝ) (2 * R), |
| 1203 | B.indicator (fun y => ‖fderiv ℝ u y‖) (x + s • (ω : E)) ∂volume) |
| 1204 | ∂(volume : Measure E).toSphere := by |
| 1205 | rw [integral_const_mul] |
| 1206 | _ = ((2 * R) ^ d / ↑d) * |
| 1207 | ∫ y in B, ‖fderiv ℝ u y‖ * ‖y - x‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 1208 | rw [hrad_g] |
| 1209 | _ = ((2 * R) ^ d / ↑d) * |
| 1210 | ∫ y in B, ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 1211 | rw [hkernel_symm] |
| 1212 | have hfin : Module.finrank ℝ E = d := finrank_euclideanSpace_fin |
| 1213 | have hvolB_eq : volB = (volume (Metric.ball (0 : E) 1)).toReal * R ^ d := by |
| 1214 | simp only [volB, B] |
| 1215 | rw [MeasureTheory.Measure.addHaar_ball_of_pos _ _ hR] |
| 1216 | rw [ENNReal.toReal_mul, hfin, ENNReal.toReal_ofReal (pow_nonneg hR.le d)] |
| 1217 | ring |
| 1218 | have havg_unfold : ⨍ y in B, ‖u x - u y‖ ∂volume = |
| 1219 | volB⁻¹ * ∫ y in B, ‖u x - u y‖ ∂volume := by |
| 1220 | change _ = (volume B).toReal⁻¹ * _ |
| 1221 | rw [average_eq, smul_eq_mul, measureReal_restrict_apply_univ, measureReal_def] |
| 1222 | rw [havg_unfold] |
| 1223 | calc volB⁻¹ * ∫ y in B, ‖u x - u y‖ ∂volume |
| 1224 | ≤ volB⁻¹ * (((2 * R) ^ d / ↑d) * |
| 1225 | ∫ y in B, ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume) := by |
| 1226 | apply mul_le_mul_of_nonneg_left _ (inv_nonneg.mpr hvol_pos.le) |
| 1227 | exact hkey_integral |
| 1228 | _ = (volB⁻¹ * ((2 * R) ^ d / ↑d)) * |
| 1229 | ∫ y in B, ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume := by ring |
| 1230 | _ = C_rep * ∫ y in B, ‖fderiv ℝ u y‖ * ‖x - y‖ ^ (1 - (d : ℝ)) ∂volume := by |
| 1231 | congr 1 |
| 1232 | simp only [C_rep, hvolB_eq, mul_pow] |
| 1233 | field_simp |
| 1234 | |
| 1235 | |
| 1236 | end Poincare.Analysis.Sobolev.Weak |