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 | Source: https://github.com/qinz1yang/differential-geometry |
| 4 | DifferentialGeometry/Analysis/Sobolev/Nirenberg/MasterInequality/CrossBoundsDiffQuotLocalEnergyBounds.lean |
| 5 | Comparison revision: 1b535dd102b94cc42b107cca27059687888f08b3. |
| 6 | Changes: Imports, module paths, and namespaces were adapted to the subject-organized PoincareLib library. |
| 7 | License: Apache-2.0. Source licenses and notices are retained under |
| 8 | PoincareConjecture/provenance/2026-09-29/licenses/. |
| 9 | See PoincareConjecture/MODIFICATIONS.md for the reviewed source mapping. |
| 10 | -/ |
| 11 | |
| 12 | import PoincareLib.Analysis.Elliptic.Regularity.EnergyEstimate.Smooth.Coercivity |
| 13 | |
| 14 | |
| 15 | /-! |
| 16 | # Local elliptic energy estimates |
| 17 | |
| 18 | Adapted from Chow--Liao--Qin, `Analysis/Sobolev/Nirenberg/MasterInequality/CrossBoundsDiffQuotLocalEnergyBounds.lean`, |
| 19 | revision `1b535dd102b94cc42b107cca27059687888f08b3`. |
| 20 | Copyright 2026 The DifferentialGeometry contributors. Apache-2.0. |
| 21 | The adaptation changes imports and namespaces and uses smooth cutoffs. |
| 22 | -/ |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | open MeasureTheory Metric Filter Topology Set Function |
| 27 | open Poincare.Analysis.Sobolev |
| 28 | open Poincare.Analysis.Sobolev.NirenbergEuclidean |
| 29 | open Poincare.Analysis.Sobolev.NirenbergTestFunction |
| 30 | open Poincare.Analysis.Sobolev.NirenbergSubstitution |
| 31 | open Poincare.Analysis.Sobolev.NirenbergCoercivity |
| 32 | open scoped ENNReal NNReal Convolution Pointwise BigOperators InnerProductSpace |
| 33 | |
| 34 | namespace Poincare.Analysis.Sobolev.NirenbergCrossBounds |
| 35 | |
| 36 | variable {d : ℕ} [NeZero d] |
| 37 | |
| 38 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 39 | |
| 40 | omit [NeZero d] in |
| 41 | private theorem lintegral_sq_diffQuot_le_local |
| 42 | {v : E → ℝ} (hv : ContDiff ℝ 1 v) (k : Fin d) {h : ℝ} (hh : h ≠ 0) |
| 43 | {K : Set E} (_hK : MeasurableSet K) : |
| 44 | ∫⁻ x in K, (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2 ∂(volume : Measure E) ≤ |
| 45 | ∫⁻ y in Metric.cthickening |h| K, |
| 46 | (‖(fderiv ℝ v y) (EuclideanSpace.single k 1)‖ₑ : ℝ≥0∞) ^ 2 |
| 47 | ∂(volume : Measure E) := by |
| 48 | set e : E := EuclideanSpace.single k (1 : ℝ) with he |
| 49 | set H : E → ℝ≥0∞ := fun y => (‖(fderiv ℝ v y) e‖ₑ : ℝ≥0∞) ^ 2 with hH_def |
| 50 | have hfd_cont : Continuous (fun y : E => fderiv ℝ v y) := |
| 51 | hv.continuous_fderiv one_ne_zero |
| 52 | have h_partial_cont : Continuous (fun y : E => (fderiv ℝ v y) e) := |
| 53 | hfd_cont.clm_apply continuous_const |
| 54 | have hH_meas : Measurable H := by |
| 55 | rw [hH_def] |
| 56 | exact h_partial_cont.measurable.enorm.pow_const 2 |
| 57 | have hPair_meas : |
| 58 | Measurable (fun p : E × ℝ => H (p.1 + (p.2 * h) • e)) := by |
| 59 | have h1 : Measurable (fun p : E × ℝ => p.1) := measurable_fst |
| 60 | have h2 : Measurable (fun p : E × ℝ => p.2) := measurable_snd |
| 61 | have h3 : Measurable (fun p : E × ℝ => p.2 * h) := |
| 62 | h2.mul measurable_const |
| 63 | have h4 : Measurable (fun p : E × ℝ => (p.2 * h) • e) := |
| 64 | h3.smul measurable_const |
| 65 | have h5 : Measurable (fun p : E × ℝ => p.1 + (p.2 * h) • e) := |
| 66 | h1.add h4 |
| 67 | exact hH_meas.comp h5 |
| 68 | have hpt : ∀ x : E, |
| 69 | (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2 ≤ |
| 70 | ∫⁻ s in Set.Ioc (0 : ℝ) 1, H (x + (s * h) • e) := by |
| 71 | intro x |
| 72 | have hreal := sq_diffQuot_le_integral_sq_partialDeriv (d := d) hv k hh x |
| 73 | have hLHS_eq : |
| 74 | (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2 = |
| 75 | ENNReal.ofReal ((diffQuot k h v x) ^ 2) := by |
| 76 | rw [Real.enorm_eq_ofReal_abs, ← ENNReal.ofReal_pow (abs_nonneg _) 2, |
| 77 | sq_abs] |
| 78 | have hgamma_cont : Continuous (fun s : ℝ => x + (s * h) • e) := |
| 79 | continuous_const.add |
| 80 | ((continuous_id.mul continuous_const).smul continuous_const) |
| 81 | have hreal_int_cont : Continuous (fun s : ℝ => |
| 82 | ((fderiv ℝ v (x + (s * h) • e)) e) ^ 2) := |
| 83 | ((h_partial_cont.comp hgamma_cont)).pow 2 |
| 84 | have hreal_int : |
| 85 | Integrable (fun s : ℝ => ((fderiv ℝ v (x + (s * h) • e)) e) ^ 2) |
| 86 | ((volume : Measure ℝ).restrict (Set.Ioc (0 : ℝ) 1)) := |
| 87 | hreal_int_cont.integrableOn_Ioc (a := 0) (b := 1) |
| 88 | have hConvert : |
| 89 | ENNReal.ofReal |
| 90 | (∫ s in Set.Ioc (0 : ℝ) 1, |
| 91 | ((fderiv ℝ v (x + (s * h) • e)) e) ^ 2) = |
| 92 | ∫⁻ s in Set.Ioc (0 : ℝ) 1, H (x + (s * h) • e) := by |
| 93 | rw [ofReal_integral_eq_lintegral_ofReal hreal_int |
| 94 | (Filter.Eventually.of_forall (fun _ => sq_nonneg _))] |
| 95 | refine lintegral_congr_ae ?_ |
| 96 | filter_upwards with s |
| 97 | change ENNReal.ofReal (((fderiv ℝ v (x + (s * h) • e)) e) ^ 2) = |
| 98 | (‖(fderiv ℝ v (x + (s * h) • e)) e‖ₑ : ℝ≥0∞) ^ 2 |
| 99 | rw [Real.enorm_eq_ofReal_abs, ← ENNReal.ofReal_pow (abs_nonneg _) 2, |
| 100 | sq_abs] |
| 101 | rw [hLHS_eq, ← hConvert] |
| 102 | exact ENNReal.ofReal_le_ofReal hreal |
| 103 | have h_step12 : |
| 104 | ∫⁻ x in K, (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2 ∂(volume : Measure E) ≤ |
| 105 | ∫⁻ x in K, |
| 106 | (∫⁻ s in Set.Ioc (0 : ℝ) 1, H (x + (s * h) • e)) |
| 107 | ∂(volume : Measure E) := by |
| 108 | refine lintegral_mono ?_ |
| 109 | intro x; exact hpt x |
| 110 | have h_swap : |
| 111 | ∫⁻ x in K, |
| 112 | ∫⁻ s in Set.Ioc (0 : ℝ) 1, H (x + (s * h) • e) ∂(volume : Measure ℝ) |
| 113 | ∂(volume : Measure E) = |
| 114 | ∫⁻ s in Set.Ioc (0 : ℝ) 1, |
| 115 | ∫⁻ x in K, H (x + (s * h) • e) ∂(volume : Measure E) |
| 116 | ∂(volume : Measure ℝ) := by |
| 117 | exact lintegral_lintegral_swap hPair_meas.aemeasurable |
| 118 | have hTrans : ∀ s : ℝ, s ∈ Set.Ioc (0 : ℝ) 1 → |
| 119 | ∫⁻ x in K, H (x + (s * h) • e) ∂(volume : Measure E) ≤ |
| 120 | ∫⁻ y in Metric.cthickening |h| K, H y ∂(volume : Measure E) := by |
| 121 | intro s hs |
| 122 | have hMP : MeasurePreserving |
| 123 | (fun x : E => x + (s * h) • e) volume volume := |
| 124 | measurePreserving_add_right volume _ |
| 125 | have hME : MeasurableEmbedding (fun x : E => x + (s * h) • e) := |
| 126 | (Homeomorph.addRight ((s * h) • e)).measurableEmbedding |
| 127 | have h_change : |
| 128 | ∫⁻ x in K, H (x + (s * h) • e) ∂(volume : Measure E) = |
| 129 | ∫⁻ y in (fun x : E => x + (s * h) • e) '' K, H y |
| 130 | ∂(volume : Measure E) := |
| 131 | hMP.setLIntegral_comp_emb hME H K |
| 132 | rw [h_change] |
| 133 | have h_subset : (fun x : E => x + (s * h) • e) '' K ⊆ |
| 134 | Metric.cthickening |h| K := by |
| 135 | intro y hy |
| 136 | obtain ⟨x, hxK, hxy⟩ := hy |
| 137 | refine Metric.mem_cthickening_of_dist_le _ x |h| K hxK ?_ |
| 138 | have hdist_eq : dist y x = ‖(s * h) • e‖ := by |
| 139 | rw [dist_eq_norm, ← hxy] |
| 140 | change ‖(x + (s * h) • e) - x‖ = ‖(s * h) • e‖ |
| 141 | rw [add_sub_cancel_left] |
| 142 | rw [hdist_eq] |
| 143 | have hsing_norm : |
| 144 | ‖(EuclideanSpace.single k (1 : ℝ) : E)‖ = 1 := by simp |
| 145 | rw [norm_smul, hsing_norm, mul_one, Real.norm_eq_abs] |
| 146 | have hs_nn : 0 ≤ s := le_of_lt hs.1 |
| 147 | have hs_le_one : s ≤ 1 := hs.2 |
| 148 | have habs_eq : |s * h| = s * |h| := by |
| 149 | rw [abs_mul, abs_of_nonneg hs_nn] |
| 150 | rw [habs_eq] |
| 151 | have habs_h_nn : 0 ≤ |h| := abs_nonneg h |
| 152 | calc s * |h| ≤ 1 * |h| := |
| 153 | mul_le_mul_of_nonneg_right hs_le_one habs_h_nn |
| 154 | _ = |h| := one_mul _ |
| 155 | exact lintegral_mono_set h_subset |
| 156 | calc ∫⁻ x in K, (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2 ∂(volume : Measure E) |
| 157 | ≤ ∫⁻ x in K, |
| 158 | (∫⁻ s in Set.Ioc (0 : ℝ) 1, H (x + (s * h) • e)) |
| 159 | ∂(volume : Measure E) := h_step12 |
| 160 | _ = ∫⁻ s in Set.Ioc (0 : ℝ) 1, |
| 161 | ∫⁻ x in K, H (x + (s * h) • e) ∂(volume : Measure E) |
| 162 | ∂((volume : Measure ℝ)) := h_swap |
| 163 | _ ≤ ∫⁻ _s in Set.Ioc (0 : ℝ) 1, |
| 164 | ∫⁻ y in Metric.cthickening |h| K, H y ∂(volume : Measure E) |
| 165 | ∂((volume : Measure ℝ)) := by |
| 166 | refine setLIntegral_mono_ae measurable_const.aemeasurable ?_ |
| 167 | refine Filter.Eventually.of_forall ?_ |
| 168 | intro s hs |
| 169 | exact hTrans s hs |
| 170 | _ = ∫⁻ y in Metric.cthickening |h| K, H y ∂(volume : Measure E) := by |
| 171 | rw [lintegral_const, Measure.restrict_apply MeasurableSet.univ] |
| 172 | simp [Real.volume_Ioc] |
| 173 | |
| 174 | omit [NeZero d] in |
| 175 | theorem integral_sq_diffQuot_le_local |
| 176 | {v : E → ℝ} (hv : ContDiff ℝ 1 v) (k : Fin d) {h : ℝ} (hh : h ≠ 0) |
| 177 | {K : Set E} (hK : MeasurableSet K) |
| 178 | (h_thick_int : Integrable |
| 179 | (fun y : E => ((fderiv ℝ v y) (EuclideanSpace.single k 1)) ^ 2) |
| 180 | ((volume : Measure E).restrict (Metric.cthickening |h| K))) : |
| 181 | ∫ x in K, (diffQuot k h v x) ^ 2 ∂(volume : Measure E) ≤ |
| 182 | ∫ y in Metric.cthickening |h| K, |
| 183 | ((fderiv ℝ v y) (EuclideanSpace.single k 1)) ^ 2 |
| 184 | ∂(volume : Measure E) := by |
| 185 | set fL : E → ℝ := fun x => (diffQuot k h v x) ^ 2 with hfL_def |
| 186 | set fR : E → ℝ := fun y => ((fderiv ℝ v y) (EuclideanSpace.single k 1)) ^ 2 |
| 187 | with hfR_def |
| 188 | have hLHS_nonneg : ∀ x : E, 0 ≤ fL x := fun _ => sq_nonneg _ |
| 189 | have hRHS_nonneg : ∀ y : E, 0 ≤ fR y := fun _ => sq_nonneg _ |
| 190 | have h_lintegral := lintegral_sq_diffQuot_le_local (d := d) hv k hh hK |
| 191 | have h_norm_LHS : ∀ x : E, |
| 192 | (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2 = ENNReal.ofReal (fL x) := by |
| 193 | intro x |
| 194 | change (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2 = ENNReal.ofReal ((diffQuot k h v x) ^ 2) |
| 195 | rw [Real.enorm_eq_ofReal_abs, ← ENNReal.ofReal_pow (abs_nonneg _) 2, sq_abs] |
| 196 | have h_norm_RHS : ∀ y : E, |
| 197 | (‖(fderiv ℝ v y) (EuclideanSpace.single k 1)‖ₑ : ℝ≥0∞) ^ 2 = |
| 198 | ENNReal.ofReal (fR y) := by |
| 199 | intro y |
| 200 | change (‖(fderiv ℝ v y) (EuclideanSpace.single k 1)‖ₑ : ℝ≥0∞) ^ 2 = |
| 201 | ENNReal.ofReal (((fderiv ℝ v y) (EuclideanSpace.single k 1)) ^ 2) |
| 202 | rw [Real.enorm_eq_ofReal_abs, ← ENNReal.ofReal_pow (abs_nonneg _) 2, sq_abs] |
| 203 | have h_lintegral_real : |
| 204 | ∫⁻ x in K, ENNReal.ofReal (fL x) ∂(volume : Measure E) ≤ |
| 205 | ∫⁻ y in Metric.cthickening |h| K, ENNReal.ofReal (fR y) |
| 206 | ∂(volume : Measure E) := by |
| 207 | have h1 : (fun x : E => (‖diffQuot k h v x‖ₑ : ℝ≥0∞) ^ 2) = |
| 208 | fun x : E => ENNReal.ofReal (fL x) := by |
| 209 | funext x; exact h_norm_LHS x |
| 210 | have h2 : (fun y : E => (‖(fderiv ℝ v y) (EuclideanSpace.single k 1)‖ₑ : ℝ≥0∞) ^ 2) = |
| 211 | fun y : E => ENNReal.ofReal (fR y) := by |
| 212 | funext y; exact h_norm_RHS y |
| 213 | rw [← h1, ← h2]; exact h_lintegral |
| 214 | have hRHS_fin : ∫⁻ y in Metric.cthickening |h| K, ENNReal.ofReal (fR y) |
| 215 | ∂(volume : Measure E) ≠ ∞ := by |
| 216 | have h := h_thick_int |
| 217 | rw [← ofReal_integral_eq_lintegral_ofReal h |
| 218 | (Filter.Eventually.of_forall hRHS_nonneg)] |
| 219 | exact ENNReal.ofReal_ne_top |
| 220 | have hLHS_fin : ∫⁻ x in K, ENNReal.ofReal (fL x) ∂(volume : Measure E) ≠ ∞ := |
| 221 | fun h_eq_top => hRHS_fin (le_antisymm le_top |
| 222 | (by rw [← h_eq_top]; exact h_lintegral_real)) |
| 223 | have hL_meas : AEStronglyMeasurable fL ((volume : Measure E).restrict K) := by |
| 224 | have hfL_cont : Continuous fL := by |
| 225 | have hfL_cont : Continuous (diffQuot k h v) := by |
| 226 | by_cases hh0 : h = 0 |
| 227 | · subst hh0 |
| 228 | rw [diffQuot_zero_h] |
| 229 | exact continuous_const |
| 230 | · have hv_cont : Continuous v := hv.continuous |
| 231 | have h_translate : |
| 232 | Continuous (fun x : E => v (x + h • EuclideanSpace.single k 1)) := by |
| 233 | have h_add : Continuous (fun x : E => x + h • EuclideanSpace.single k 1) := |
| 234 | continuous_id.add continuous_const |
| 235 | exact hv_cont.comp h_add |
| 236 | have h_diff : Continuous (fun x : E => |
| 237 | v (x + h • EuclideanSpace.single k 1) - v x) := |
| 238 | h_translate.sub hv_cont |
| 239 | have h_div : Continuous (fun x : E => |
| 240 | (v (x + h • EuclideanSpace.single k 1) - v x) / h) := |
| 241 | h_diff.div_const h |
| 242 | have heq : (diffQuot k h v) = |
| 243 | fun x : E => (v (x + h • EuclideanSpace.single k 1) - v x) / h := by |
| 244 | funext x |
| 245 | exact diffQuot_apply_of_ne (d := d) k hh0 v x |
| 246 | rw [heq]; exact h_div |
| 247 | exact hfL_cont.pow 2 |
| 248 | exact hfL_cont.aestronglyMeasurable |
| 249 | have hL_int : Integrable fL ((volume : Measure E).restrict K) := by |
| 250 | refine ⟨hL_meas, ?_⟩ |
| 251 | rw [hasFiniteIntegral_iff_enorm] |
| 252 | have h_eq : ∀ x : E, (‖fL x‖ₑ : ℝ≥0∞) = ENNReal.ofReal (fL x) := by |
| 253 | intro x |
| 254 | rw [Real.enorm_eq_ofReal (hLHS_nonneg x)] |
| 255 | have heq_lin : ∫⁻ x in K, (‖fL x‖ₑ : ℝ≥0∞) ∂(volume : Measure E) = |
| 256 | ∫⁻ x in K, ENNReal.ofReal (fL x) ∂(volume : Measure E) := |
| 257 | lintegral_congr (fun x => h_eq x) |
| 258 | rw [heq_lin] |
| 259 | exact lt_of_le_of_lt (le_refl _) (lt_of_le_of_ne le_top hLHS_fin) |
| 260 | rw [integral_eq_lintegral_of_nonneg_ae |
| 261 | (Filter.Eventually.of_forall hLHS_nonneg) hL_meas] |
| 262 | rw [integral_eq_lintegral_of_nonneg_ae |
| 263 | (Filter.Eventually.of_forall hRHS_nonneg) h_thick_int.aestronglyMeasurable] |
| 264 | exact ENNReal.toReal_mono hRHS_fin h_lintegral_real |
| 265 | |
| 266 | omit [NeZero d] in |
| 267 | private theorem integral_diffQuot_sq_on_tsupport_le |
| 268 | {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) (k : Fin d) {h : ℝ} (hh : h ≠ 0) |
| 269 | (η : E → ℝ) |
| 270 | {Ω' : Set E} (hΩ' : IsOpen Ω') (hΩ'_compact : IsCompact (closure Ω')) |
| 271 | (hh_supp_in_Ω' : Metric.cthickening |h| (tsupport η) ⊆ Ω') : |
| 272 | ∫ x in tsupport η, (diffQuot k h u x)^2 ∂(volume : Measure E) ≤ |
| 273 | ∫ x in Ω', ((fderiv ℝ u x) (EuclideanSpace.single k 1))^2 |
| 274 | ∂(volume : Measure E) := by |
| 275 | have h_tsupp_meas : MeasurableSet (tsupport η) := |
| 276 | isClosed_tsupport η |>.measurableSet |
| 277 | have hu_C1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 278 | have h_deriv_cont : Continuous (fun y : E => |
| 279 | ((fderiv ℝ u y) (EuclideanSpace.single k 1))^2) := by |
| 280 | have h_fderiv_cont : Continuous (fderiv ℝ u) := |
| 281 | hu_C1.continuous_fderiv (by norm_num) |
| 282 | exact (h_fderiv_cont.clm_apply continuous_const).pow 2 |
| 283 | have h_thick_compact : IsCompact (Metric.cthickening |h| (tsupport η)) := by |
| 284 | have h_thick_closed : IsClosed (Metric.cthickening |h| (tsupport η)) := |
| 285 | isClosed_cthickening |
| 286 | have h_thick_subset_clO : Metric.cthickening |h| (tsupport η) ⊆ closure Ω' := |
| 287 | hh_supp_in_Ω'.trans subset_closure |
| 288 | exact hΩ'_compact.of_isClosed_subset h_thick_closed h_thick_subset_clO |
| 289 | have h_thick_int : |
| 290 | Integrable (fun y : E => |
| 291 | ((fderiv ℝ u y) (EuclideanSpace.single k 1))^2) |
| 292 | ((volume : Measure E).restrict (Metric.cthickening |h| (tsupport η))) := by |
| 293 | refine ContinuousOn.integrableOn_compact h_thick_compact ?_ |
| 294 | exact h_deriv_cont.continuousOn |
| 295 | have h_local := integral_sq_diffQuot_le_local (d := d) hu_C1 k hh |
| 296 | h_tsupp_meas h_thick_int |
| 297 | have h_Ω'_meas : MeasurableSet Ω' := hΩ'.measurableSet |
| 298 | have h_clΩ'_int : |
| 299 | Integrable (fun y : E => |
| 300 | ((fderiv ℝ u y) (EuclideanSpace.single k 1))^2) |
| 301 | ((volume : Measure E).restrict (closure Ω')) := |
| 302 | ContinuousOn.integrableOn_compact hΩ'_compact h_deriv_cont.continuousOn |
| 303 | have h_Ω'_int : |
| 304 | Integrable (fun y : E => |
| 305 | ((fderiv ℝ u y) (EuclideanSpace.single k 1))^2) |
| 306 | ((volume : Measure E).restrict Ω') := by |
| 307 | have : (volume : Measure E).restrict Ω' ≤ (volume : Measure E).restrict (closure Ω') := |
| 308 | Measure.restrict_mono subset_closure (le_refl _) |
| 309 | exact h_clΩ'_int.mono_measure this |
| 310 | have h_setIntegral_mono : |
| 311 | ∫ y in Metric.cthickening |h| (tsupport η), |
| 312 | ((fderiv ℝ u y) (EuclideanSpace.single k 1))^2 |
| 313 | ∂(volume : Measure E) ≤ |
| 314 | ∫ y in Ω', ((fderiv ℝ u y) (EuclideanSpace.single k 1))^2 |
| 315 | ∂(volume : Measure E) := by |
| 316 | refine setIntegral_mono_set h_Ω'_int ?_ ?_ |
| 317 | · refine Filter.Eventually.of_forall ?_; intro x; exact sq_nonneg _ |
| 318 | · exact (Filter.Eventually.of_forall hh_supp_in_Ω').mono (fun _ h => h) |
| 319 | exact h_local.trans h_setIntegral_mono |
| 320 | |
| 321 | noncomputable def absorbingIntegral |
| 322 | (k : Fin d) (h : ℝ) (η u : E → ℝ) : ℝ := |
| 323 | ∫ x, (η x)^2 * |
| 324 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 325 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2 |
| 326 | ∂(volume : Measure E) |
| 327 | |
| 328 | noncomputable def gradL2sqOn (Ω' : Set E) (u : E → ℝ) : ℝ := |
| 329 | ∫ x in Ω', |
| 330 | ∑ i : Fin d, ((fderiv ℝ u x) (EuclideanSpace.single i 1)) ^ 2 |
| 331 | ∂(volume : Measure E) |
| 332 | |
| 333 | omit [NeZero d] in |
| 334 | lemma absorbingIntegral_nonneg |
| 335 | (k : Fin d) (h : ℝ) (η u : E → ℝ) : |
| 336 | 0 ≤ absorbingIntegral (d := d) k h η u := by |
| 337 | unfold absorbingIntegral |
| 338 | refine integral_nonneg ?_ |
| 339 | intro x |
| 340 | refine mul_nonneg (sq_nonneg _) ?_ |
| 341 | exact Finset.sum_nonneg (fun _ _ => sq_nonneg _) |
| 342 | |
| 343 | omit [NeZero d] in |
| 344 | private lemma gradL2sqOn_nonneg (Ω' : Set E) (u : E → ℝ) : |
| 345 | 0 ≤ gradL2sqOn (d := d) Ω' u := by |
| 346 | unfold gradL2sqOn |
| 347 | refine integral_nonneg ?_ |
| 348 | intro x |
| 349 | exact Finset.sum_nonneg (fun _ _ => sq_nonneg _) |
| 350 | |
| 351 | omit [NeZero d] in |
| 352 | theorem integral_diffQuot_sq_on_tsupport_le_gradL2sqOn |
| 353 | {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) (k : Fin d) {h : ℝ} (hh : h ≠ 0) |
| 354 | (η : E → ℝ) |
| 355 | {Ω' : Set E} (hΩ' : IsOpen Ω') (hΩ'_compact : IsCompact (closure Ω')) |
| 356 | (hh_supp_in_Ω' : Metric.cthickening |h| (tsupport η) ⊆ Ω') : |
| 357 | ∫ x in tsupport η, (diffQuot k h u x)^2 ∂(volume : Measure E) ≤ |
| 358 | gradL2sqOn (d := d) Ω' u := by |
| 359 | have h_step1 := integral_diffQuot_sq_on_tsupport_le (d := d) hu k hh η hΩ' |
| 360 | hΩ'_compact hh_supp_in_Ω' |
| 361 | refine h_step1.trans ?_ |
| 362 | unfold gradL2sqOn |
| 363 | have hu_C1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 364 | have h_fderiv_cont : Continuous (fderiv ℝ u) := |
| 365 | hu_C1.continuous_fderiv (by norm_num) |
| 366 | have h_partial_cont : ∀ i : Fin d, |
| 367 | Continuous (fun x : E => ((fderiv ℝ u x) (EuclideanSpace.single i 1))) := |
| 368 | fun i => h_fderiv_cont.clm_apply continuous_const |
| 369 | have h_partial_sq_cont : ∀ i : Fin d, |
| 370 | Continuous (fun x : E => ((fderiv ℝ u x) (EuclideanSpace.single i 1))^2) := |
| 371 | fun i => (h_partial_cont i).pow 2 |
| 372 | have h_clΩ'_int : ∀ i : Fin d, Integrable |
| 373 | (fun x : E => ((fderiv ℝ u x) (EuclideanSpace.single i 1))^2) |
| 374 | ((volume : Measure E).restrict (closure Ω')) := |
| 375 | fun i => ContinuousOn.integrableOn_compact hΩ'_compact (h_partial_sq_cont i).continuousOn |
| 376 | have h_Ω'_int : ∀ i : Fin d, Integrable |
| 377 | (fun x : E => ((fderiv ℝ u x) (EuclideanSpace.single i 1))^2) |
| 378 | ((volume : Measure E).restrict Ω') := |
| 379 | fun i => (h_clΩ'_int i).mono_measure (Measure.restrict_mono subset_closure (le_refl _)) |
| 380 | have h_sum_int : Integrable (fun x : E => |
| 381 | ∑ i : Fin d, ((fderiv ℝ u x) (EuclideanSpace.single i 1))^2) |
| 382 | ((volume : Measure E).restrict Ω') := |
| 383 | integrable_finsetSum _ (fun i _ => h_Ω'_int i) |
| 384 | refine setIntegral_mono_on (h_Ω'_int k) h_sum_int hΩ'.measurableSet ?_ |
| 385 | intro x _ |
| 386 | refine Finset.single_le_sum (f := fun i => |
| 387 | ((fderiv ℝ u x) (EuclideanSpace.single i 1))^2) ?_ (Finset.mem_univ k) |
| 388 | intro i _ |
| 389 | exact sq_nonneg _ |
| 390 | |
| 391 | end Poincare.Analysis.Sobolev.NirenbergCrossBounds |