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/MasterInequalityNonSmooth.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.CrossTerms.Principal |
| 13 | import PoincareLib.Analysis.Elliptic.Regularity.EnergyEstimate.CrossTerms.Coefficient |
| 14 | import PoincareLib.Analysis.Elliptic.Regularity.EnergyEstimate.CrossTerms.Mixed |
| 15 | import PoincareLib.Analysis.Elliptic.Regularity.EnergyEstimate.CrossTerms.Potential |
| 16 | import PoincareLib.Analysis.Elliptic.Regularity.EnergyEstimate.CrossTerms.Source |
| 17 | |
| 18 | /-! |
| 19 | # Local elliptic energy estimates |
| 20 | |
| 21 | Adapted from Chow--Liao--Qin, `Analysis/Sobolev/Nirenberg/MasterInequality/MasterInequalityNonSmooth.lean`, |
| 22 | revision `1b535dd102b94cc42b107cca27059687888f08b3`. |
| 23 | Copyright 2026 The DifferentialGeometry contributors. Apache-2.0. |
| 24 | The adaptation changes imports and namespaces and uses smooth cutoffs. |
| 25 | -/ |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | open MeasureTheory Metric Filter Topology Set Function |
| 30 | open Poincare.Analysis.Sobolev |
| 31 | open Poincare.Analysis.Sobolev.NirenbergEuclidean |
| 32 | open Poincare.Analysis.Sobolev.NirenbergCrossBounds |
| 33 | open Poincare.Analysis.Sobolev.NirenbergCrossBoundsNonSmooth |
| 34 | open scoped ENNReal NNReal Convolution Pointwise BigOperators InnerProductSpace |
| 35 | |
| 36 | namespace Poincare.Analysis.Sobolev.NirenbergCrossBoundsNonSmooth |
| 37 | |
| 38 | variable {d : ℕ} [NeZero d] |
| 39 | |
| 40 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 41 | |
| 42 | noncomputable def nirenbergMasterYoungConstant |
| 43 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 44 | (N : ℝ) {Ω' : Set E} (hΩ'_compact : IsCompact (closure Ω')) |
| 45 | (k : Fin d) : ℝ := |
| 46 | max |
| 47 | (((1 / ((B.lam / 8) / (Fintype.card (Fin d) : ℝ))) |
| 48 | * (Classical.choose |
| 49 | (SmoothEllipticBilinearForm.bounded_a_on_compact |
| 50 | (d := d) B hΩ'_compact))^2 |
| 51 | * N^2 * (Fintype.card (Fin d) : ℝ)^2) |
| 52 | + (((Classical.choose |
| 53 | (SmoothEllipticBilinearForm.bounded_fderiv_a_on_compact |
| 54 | (d := d) B k hΩ'_compact))^2 |
| 55 | / (4 * ((B.lam / 8) / (Fintype.card (Fin d) : ℝ)))) |
| 56 | * (Fintype.card (Fin d) : ℝ)^2) |
| 57 | + (2 * (Classical.choose |
| 58 | (SmoothEllipticBilinearForm.bounded_fderiv_a_on_compact |
| 59 | (d := d) B k hΩ'_compact)) |
| 60 | * N * (Fintype.card (Fin d) : ℝ)^2) |
| 61 | + max (4 * (B.lam / 8) * N^2) |
| 62 | ((Classical.choose |
| 63 | (SmoothEllipticBilinearForm.bounded_c_on_compact |
| 64 | (d := d) B hΩ'_compact))^2 / (2 * (B.lam / 8))) |
| 65 | + max (4 * (B.lam / 8) * N^2) (1 / (2 * (B.lam / 8)))) |
| 66 | (max |
| 67 | (max (4 * (B.lam / 8) * N^2) |
| 68 | ((Classical.choose |
| 69 | (SmoothEllipticBilinearForm.bounded_c_on_compact |
| 70 | (d := d) B hΩ'_compact))^2 / (2 * (B.lam / 8)))) |
| 71 | (max (4 * (B.lam / 8) * N^2) (1 / (2 * (B.lam / 8))))) |
| 72 | |
| 73 | theorem nirenbergMasterYoungConstant_nonneg |
| 74 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 75 | {N : ℝ} (hN : 0 ≤ N) {Ω' : Set E} |
| 76 | (hΩ'_compact : IsCompact (closure Ω')) (k : Fin d) : |
| 77 | 0 ≤ nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k := by |
| 78 | classical |
| 79 | have hε₀ : (0 : ℝ) < B.lam / 8 := div_pos B.hlam_pos (by norm_num) |
| 80 | have hd_pos : (0 : ℝ) < (Fintype.card (Fin d) : ℝ) := by |
| 81 | exact_mod_cast Fintype.card_pos |
| 82 | have hε'_pos : 0 < (B.lam / 8) / (Fintype.card (Fin d) : ℝ) := div_pos hε₀ hd_pos |
| 83 | rw [nirenbergMasterYoungConstant] |
| 84 | refine le_max_of_le_left ?_ |
| 85 | refine add_nonneg (add_nonneg (add_nonneg (add_nonneg ?_ ?_) ?_) ?_) ?_ |
| 86 | · refine mul_nonneg (mul_nonneg (mul_nonneg ?_ (sq_nonneg _)) (sq_nonneg _)) |
| 87 | (sq_nonneg _) |
| 88 | exact (one_div_pos.mpr hε'_pos).le |
| 89 | · refine mul_nonneg ?_ (sq_nonneg _) |
| 90 | refine mul_nonneg (sq_nonneg _) ?_ |
| 91 | refine inv_nonneg.mpr (by linarith [hε'_pos]) |
| 92 | · refine mul_nonneg ?_ (sq_nonneg _) |
| 93 | refine mul_nonneg ?_ hN |
| 94 | refine mul_nonneg (by linarith) ?_ |
| 95 | exact (Classical.choose_spec |
| 96 | (SmoothEllipticBilinearForm.bounded_fderiv_a_on_compact |
| 97 | (d := d) B k hΩ'_compact)).1 |
| 98 | · refine le_max_of_le_left ?_ |
| 99 | refine mul_nonneg ?_ (sq_nonneg _) |
| 100 | exact mul_nonneg (by linarith) hε₀.le |
| 101 | · refine le_max_of_le_left ?_ |
| 102 | refine mul_nonneg ?_ (sq_nonneg _) |
| 103 | exact mul_nonneg (by linarith) hε₀.le |
| 104 | |
| 105 | |
| 106 | theorem nirenberg_master_inequality_after_young_nonsmooth_quantitative |
| 107 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 108 | {u f : E → ℝ} |
| 109 | (hu_l2 : MemLp u 2 (volume : Measure E)) |
| 110 | (hf_l2_loc : ∀ {Ω' : Set E}, IsCompact (closure Ω') → |
| 111 | MemLp f 2 (volume.restrict Ω')) |
| 112 | {g : Fin d → E → ℝ} |
| 113 | (hg_l2 : ∀ i, MemLp (g i) 2 (volume : Measure E)) |
| 114 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 115 | (hη_range : Set.range η ⊆ Set.Icc (0 : ℝ) 1) |
| 116 | {N : ℝ} (hN : 0 ≤ N) (h_fderiv_eta : ∀ x : E, ‖fderiv ℝ η x‖ ≤ N) |
| 117 | {Ω' : Set E} (hΩ' : IsOpen Ω') (hΩ'_closure : closure Ω' ⊆ Ω) |
| 118 | (hΩ'_compact : IsCompact (closure Ω')) |
| 119 | {R₀ : ℝ} |
| 120 | (hh_supp_in_Ω' : ∀ {h : ℝ}, |h| ≤ R₀ → |
| 121 | Metric.cthickening |h| (tsupport η) ⊆ Ω') |
| 122 | (k : Fin d) |
| 123 | (h_FK_diffQuot_u_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 124 | ∫ x in tsupport η, |
| 125 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 126 | ∂(volume : Measure E) ≤ |
| 127 | ∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 ∂(volume : Measure E)) |
| 128 | (h_v_test_sq_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 129 | ∫ x, (Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 130 | k h η u x)^2 ∂(volume : Measure E) ≤ |
| 131 | 8 * N^2 * |
| 132 | ∫ x in tsupport η, |
| 133 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 134 | ∂(volume : Measure E) + |
| 135 | 2 * ∫ x, (η x)^2 * |
| 136 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 137 | ∂(volume : Measure E)) |
| 138 | (h_master_nonsmooth : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 139 | B.lam * ∫ x, (η x)^2 * |
| 140 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 141 | ∂(volume : Measure E) ≤ |
| 142 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 143 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 144 | (fun y : E => B.a y i j) x * (η x) * |
| 145 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 146 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 147 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 148 | ∂(volume : Measure E)| + |
| 149 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 150 | Poincare.Analysis.Sobolev.diffQuot k h |
| 151 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 152 | ((g i) x) * |
| 153 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 154 | ∂(volume : Measure E)| + |
| 155 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 156 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 157 | (fun y : E => B.a y i j) x * (η x) * |
| 158 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 159 | ((g i) x) * |
| 160 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 161 | ∂(volume : Measure E)| + |
| 162 | |∫ x in Ω, f x * |
| 163 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 164 | k h η u x| + |
| 165 | |∫ x in Ω, B.c x * u x * |
| 166 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 167 | k h η u x ∂(volume : Measure E)|) : |
| 168 | ∀ ⦃h : ℝ⦄, h ≠ 0 → |h| ≤ R₀ → |
| 169 | B.lam * ∫ x, (η x)^2 * |
| 170 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 171 | ∂(volume : Measure E) ≤ |
| 172 | (B.lam / 2) * ∫ x, (η x)^2 * |
| 173 | ∑ i : Fin d, |
| 174 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 175 | ∂(volume : Measure E) + |
| 176 | nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k |
| 177 | * (∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 |
| 178 | ∂(volume : Measure E) + |
| 179 | ∫ x in Ω', (u x)^2 ∂(volume : Measure E) + |
| 180 | ∫ x in Ω', (f x)^2 ∂(volume : Measure E)) := by |
| 181 | classical |
| 182 | have hε_eff_pos₀ : (0 : ℝ) < B.lam / 8 := div_pos B.hlam_pos (by norm_num) |
| 183 | have hC1 := cross_1_bound_nonsmooth_quantitative (d := d) B hu_l2 hg_l2 |
| 184 | hη hη_supp hη_range h_fderiv_eta hΩ'_compact |
| 185 | hh_supp_in_Ω' k h_FK_diffQuot_u_bound (B.lam / 8) hε_eff_pos₀ |
| 186 | have hC2 := cross_2_bound_nonsmooth_quantitative (d := d) B hg_l2 |
| 187 | hη hη_supp hη_range hΩ' hΩ'_compact |
| 188 | hh_supp_in_Ω' k (B.lam / 8) hε_eff_pos₀ |
| 189 | have hC3 := diffQuot_coeff_cutoff_gradient_bound_nonsmooth_quantitative (d := d) B hu_l2 hg_l2 |
| 190 | hη hη_supp hη_range hN h_fderiv_eta hΩ'_compact |
| 191 | hh_supp_in_Ω' k h_FK_diffQuot_u_bound |
| 192 | have hCc := c_term_bound_nonsmooth_quantitative (d := d) B hu_l2 hg_l2 |
| 193 | hη hη_supp hΩ' hΩ'_closure hΩ'_compact hh_supp_in_Ω' k |
| 194 | (B.lam / 8) hε_eff_pos₀ h_v_test_sq_bound |
| 195 | h_FK_diffQuot_u_bound |
| 196 | have h_v_test_sq_bound_sum : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 197 | ∫ x, (Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 198 | k h η u x)^2 ∂(volume : Measure E) ≤ |
| 199 | 8 * N^2 * |
| 200 | ∫ x in tsupport η, |
| 201 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 202 | ∂(volume : Measure E) + |
| 203 | 2 * ∫ x, (η x)^2 * |
| 204 | ∑ i : Fin d, |
| 205 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2 |
| 206 | ∂(volume : Measure E) := by |
| 207 | intro h hh hh_le |
| 208 | have h_single := h_v_test_sq_bound hh hh_le |
| 209 | have h_pointwise : ∀ x : E, |
| 210 | (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 ≤ |
| 211 | (η x)^2 * ∑ i : Fin d, |
| 212 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2 := by |
| 213 | intro x |
| 214 | refine mul_le_mul_of_nonneg_left ?_ (sq_nonneg _) |
| 215 | have h_kmem : k ∈ (Finset.univ : Finset (Fin d)) := Finset.mem_univ k |
| 216 | have h_term_le_sum : |
| 217 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 ≤ |
| 218 | ∑ i : Fin d, |
| 219 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2 := |
| 220 | Finset.single_le_sum |
| 221 | (f := fun i => (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) |
| 222 | (fun i _ => sq_nonneg _) h_kmem |
| 223 | exact h_term_le_sum |
| 224 | have h_integrable_single : Integrable (fun x : E => |
| 225 | (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2) |
| 226 | (volume : Measure E) := by |
| 227 | have hint := integrable_const_eta_sq_diffQuot_g_sq (d := d) hg_l2 hη hη_supp |
| 228 | k k h 1 |
| 229 | have h_eq : (fun x : E => (η x)^2 * |
| 230 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2) = |
| 231 | (fun x : E => 1 * (η x)^2 * |
| 232 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2) := by |
| 233 | funext x; ring |
| 234 | rw [h_eq] |
| 235 | exact hint |
| 236 | have h_integrable_sum : Integrable (fun x : E => |
| 237 | (η x)^2 * ∑ i : Fin d, |
| 238 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) |
| 239 | (volume : Measure E) := by |
| 240 | have h_per_i : ∀ i : Fin d, Integrable (fun x : E => |
| 241 | (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) |
| 242 | (volume : Measure E) := by |
| 243 | intro i |
| 244 | have hint := integrable_const_eta_sq_diffQuot_g_sq (d := d) hg_l2 hη hη_supp |
| 245 | i k h 1 |
| 246 | have h_eq : (fun x : E => (η x)^2 * |
| 247 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) = |
| 248 | (fun x : E => 1 * (η x)^2 * |
| 249 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) := by |
| 250 | funext x; ring |
| 251 | rw [h_eq] |
| 252 | exact hint |
| 253 | have h_sum_int := integrable_finsetSum (Finset.univ : Finset (Fin d)) |
| 254 | (fun i _ => h_per_i i) |
| 255 | have h_eq : (fun x : E => |
| 256 | (η x)^2 * ∑ i : Fin d, |
| 257 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) = |
| 258 | (fun x : E => ∑ i : Fin d, |
| 259 | (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) := by |
| 260 | funext x |
| 261 | rw [Finset.mul_sum] |
| 262 | rw [h_eq] |
| 263 | exact h_sum_int |
| 264 | have h_int_le : |
| 265 | ∫ x, (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 266 | ∂(volume : Measure E) ≤ |
| 267 | ∫ x, (η x)^2 * ∑ i : Fin d, |
| 268 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2 |
| 269 | ∂(volume : Measure E) := |
| 270 | integral_mono h_integrable_single h_integrable_sum h_pointwise |
| 271 | have h_two_int_le : |
| 272 | 2 * ∫ x, (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 273 | ∂(volume : Measure E) ≤ |
| 274 | 2 * ∫ x, (η x)^2 * ∑ i : Fin d, |
| 275 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2 |
| 276 | ∂(volume : Measure E) := |
| 277 | mul_le_mul_of_nonneg_left h_int_le (by linarith) |
| 278 | linarith |
| 279 | have hCf := f_term_bound_nonsmooth_quantitative (d := d) hf_l2_loc hu_l2 |
| 280 | hη hη_supp hΩ'_closure hΩ'_compact hh_supp_in_Ω' k |
| 281 | h_FK_diffQuot_u_bound h_v_test_sq_bound_sum |
| 282 | (B.lam / 8) hε_eff_pos₀ |
| 283 | set ε_eff : ℝ := B.lam / 8 with hε_eff_def |
| 284 | set Λ : ℝ := Classical.choose |
| 285 | (SmoothEllipticBilinearForm.bounded_a_on_compact (d := d) B hΩ'_compact) |
| 286 | with hΛ_eq |
| 287 | set M : ℝ := Classical.choose |
| 288 | (SmoothEllipticBilinearForm.bounded_fderiv_a_on_compact (d := d) B k hΩ'_compact) |
| 289 | with hM_eq |
| 290 | set Mc : ℝ := Classical.choose |
| 291 | (SmoothEllipticBilinearForm.bounded_c_on_compact (d := d) B hΩ'_compact) |
| 292 | with hMc_eq |
| 293 | set d_real : ℝ := (Fintype.card (Fin d) : ℝ) with hd_real |
| 294 | have hd_pos : 0 < d_real := by |
| 295 | rw [hd_real]; exact_mod_cast Fintype.card_pos |
| 296 | have hε_eff_pos : 0 < ε_eff := hε_eff_pos₀ |
| 297 | have hε'_pos : 0 < ε_eff / d_real := div_pos hε_eff_pos hd_pos |
| 298 | set C1 : ℝ := (1 / (ε_eff / d_real)) * Λ^2 * N^2 * d_real^2 with hC1_def |
| 299 | set C2 : ℝ := (M^2 / (4 * (ε_eff / d_real))) * d_real^2 with hC2_def |
| 300 | set C3 : ℝ := 2 * M * N * d_real^2 with hC3_def |
| 301 | set Cc : ℝ := max (4 * ε_eff * N^2) (Mc^2 / (2 * ε_eff)) with hCc_def |
| 302 | set Cf : ℝ := max (4 * ε_eff * N^2) (1 / (2 * ε_eff)) with hCf_def |
| 303 | have hΛ_nn : 0 ≤ Λ := |
| 304 | (Classical.choose_spec |
| 305 | (SmoothEllipticBilinearForm.bounded_a_on_compact (d := d) B hΩ'_compact)).1 |
| 306 | have hM_nn : 0 ≤ M := |
| 307 | (Classical.choose_spec |
| 308 | (SmoothEllipticBilinearForm.bounded_fderiv_a_on_compact |
| 309 | (d := d) B k hΩ'_compact)).1 |
| 310 | have hMc_nn : 0 ≤ Mc := |
| 311 | (Classical.choose_spec |
| 312 | (SmoothEllipticBilinearForm.bounded_c_on_compact (d := d) B hΩ'_compact)).1 |
| 313 | have hC1_nn : 0 ≤ C1 := by |
| 314 | rw [hC1_def] |
| 315 | refine mul_nonneg (mul_nonneg (mul_nonneg ?_ (sq_nonneg _)) (sq_nonneg _)) |
| 316 | (sq_nonneg _) |
| 317 | exact (one_div_pos.mpr hε'_pos).le |
| 318 | have hC2_nn : 0 ≤ C2 := by |
| 319 | rw [hC2_def] |
| 320 | refine mul_nonneg ?_ (sq_nonneg _) |
| 321 | refine mul_nonneg (sq_nonneg _) ?_ |
| 322 | refine inv_nonneg.mpr (by linarith [hε'_pos]) |
| 323 | have hC3_nn : 0 ≤ C3 := by |
| 324 | rw [hC3_def] |
| 325 | refine mul_nonneg ?_ (sq_nonneg _) |
| 326 | refine mul_nonneg ?_ hN |
| 327 | exact mul_nonneg (by linarith) hM_nn |
| 328 | have hCc_nn : 0 ≤ Cc := by |
| 329 | rw [hCc_def] |
| 330 | refine le_max_of_le_left ?_ |
| 331 | refine mul_nonneg ?_ (sq_nonneg _) |
| 332 | exact mul_nonneg (by linarith) hε_eff_pos.le |
| 333 | have hCf_nn : 0 ≤ Cf := by |
| 334 | rw [hCf_def] |
| 335 | refine le_max_of_le_left ?_ |
| 336 | refine mul_nonneg ?_ (sq_nonneg _) |
| 337 | exact mul_nonneg (by linarith) hε_eff_pos.le |
| 338 | set C : ℝ := max (C1 + C2 + C3 + Cc + Cf) (max Cc Cf) with hC_def |
| 339 | have hC_nn : 0 ≤ C := by |
| 340 | rw [hC_def] |
| 341 | refine le_max_of_le_left ?_ |
| 342 | refine add_nonneg (add_nonneg (add_nonneg (add_nonneg hC1_nn hC2_nn) hC3_nn) hCc_nn) hCf_nn |
| 343 | intro h hh hh_le |
| 344 | set I : ℝ := ∫ x, (η x)^2 * |
| 345 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 346 | ∂(volume : Measure E) with hI_def |
| 347 | set G : ℝ := ∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 |
| 348 | ∂(volume : Measure E) with hG_def |
| 349 | set U : ℝ := ∫ x in Ω', (u x)^2 ∂(volume : Measure E) with hU_def |
| 350 | set F : ℝ := ∫ x in Ω', (f x)^2 ∂(volume : Measure E) with hF_def |
| 351 | have hI_nn : 0 ≤ I := by |
| 352 | refine integral_nonneg ?_ |
| 353 | intro x |
| 354 | refine mul_nonneg (sq_nonneg _) ?_ |
| 355 | exact Finset.sum_nonneg (fun _ _ => sq_nonneg _) |
| 356 | have hG_nn : 0 ≤ G := integral_nonneg |
| 357 | (fun x => Finset.sum_nonneg (fun i _ => sq_nonneg _)) |
| 358 | have hU_nn : 0 ≤ U := integral_nonneg (fun x => sq_nonneg _) |
| 359 | have hF_nn : 0 ≤ F := integral_nonneg (fun x => sq_nonneg _) |
| 360 | have h_master := h_master_nonsmooth hh hh_le |
| 361 | have hC1_h := hC1 hh hh_le |
| 362 | have hC2_h := hC2 hh hh_le |
| 363 | have hC3_h := hC3 hh hh_le |
| 364 | have hCc_h := hCc hh hh_le |
| 365 | have hCf_h := hCf hh hh_le |
| 366 | have h_4ε_eq : 4 * ε_eff = B.lam / 2 := by |
| 367 | rw [hε_eff_def]; ring |
| 368 | have h_combine : B.lam * I ≤ |
| 369 | 4 * ε_eff * I + (C1 + C2 + C3 + Cc + Cf) * G + Cc * U + Cf * F := by |
| 370 | have h_sum_bound : |
| 371 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, 2 * |
| 372 | Poincare.Analysis.Sobolev.translate k h |
| 373 | (fun y : E => B.a y i j) x * (η x) * |
| 374 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 375 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 376 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 377 | ∂(volume : Measure E)| + |
| 378 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 379 | Poincare.Analysis.Sobolev.diffQuot k h |
| 380 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 381 | ((g i) x) * |
| 382 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 383 | ∂(volume : Measure E)| + |
| 384 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, 2 * |
| 385 | Poincare.Analysis.Sobolev.diffQuot k h |
| 386 | (fun y : E => B.a y i j) x * (η x) * |
| 387 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 388 | ((g i) x) * |
| 389 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 390 | ∂(volume : Measure E)| + |
| 391 | |∫ x in Ω, f x * |
| 392 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 393 | k h η u x| + |
| 394 | |∫ x in Ω, B.c x * u x * |
| 395 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 396 | k h η u x ∂(volume : Measure E)| ≤ |
| 397 | (ε_eff * I + C1 * G) + (ε_eff * I + C2 * G) + (C3 * G) + |
| 398 | (ε_eff * I + Cf * (G + F)) + (ε_eff * I + Cc * (G + U)) := by |
| 399 | have h1 : |- ∑ i : Fin d, ∑ j : Fin d, ∫ x, 2 * |
| 400 | Poincare.Analysis.Sobolev.translate k h |
| 401 | (fun y : E => B.a y i j) x * (η x) * |
| 402 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 403 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 404 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 405 | ∂(volume : Measure E)| ≤ ε_eff * I + C1 * G := hC1_h |
| 406 | have h1' : |
| 407 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, 2 * |
| 408 | Poincare.Analysis.Sobolev.translate k h |
| 409 | (fun y : E => B.a y i j) x * (η x) * |
| 410 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 411 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 412 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 413 | ∂(volume : Measure E)| ≤ ε_eff * I + C1 * G := by |
| 414 | rw [← abs_neg]; exact h1 |
| 415 | have h2 : |- ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 416 | Poincare.Analysis.Sobolev.diffQuot k h |
| 417 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 418 | ((g i) x) * |
| 419 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 420 | ∂(volume : Measure E)| ≤ ε_eff * I + C2 * G := hC2_h |
| 421 | have h2' : |
| 422 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 423 | Poincare.Analysis.Sobolev.diffQuot k h |
| 424 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 425 | ((g i) x) * |
| 426 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 427 | ∂(volume : Measure E)| ≤ ε_eff * I + C2 * G := by |
| 428 | rw [← abs_neg]; exact h2 |
| 429 | have h3 : |- ∑ i : Fin d, ∑ j : Fin d, ∫ x, 2 * |
| 430 | Poincare.Analysis.Sobolev.diffQuot k h |
| 431 | (fun y : E => B.a y i j) x * (η x) * |
| 432 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 433 | ((g i) x) * |
| 434 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 435 | ∂(volume : Measure E)| ≤ C3 * G := hC3_h |
| 436 | have h3' : |
| 437 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, 2 * |
| 438 | Poincare.Analysis.Sobolev.diffQuot k h |
| 439 | (fun y : E => B.a y i j) x * (η x) * |
| 440 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 441 | ((g i) x) * |
| 442 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 443 | ∂(volume : Measure E)| ≤ C3 * G := by |
| 444 | rw [← abs_neg]; exact h3 |
| 445 | linarith |
| 446 | refine h_master.trans (h_sum_bound.trans ?_) |
| 447 | have hCc_distrib : Cc * (G + U) = Cc * G + Cc * U := by ring |
| 448 | have hCf_distrib : Cf * (G + F) = Cf * G + Cf * F := by ring |
| 449 | linarith [hCc_distrib, hCf_distrib] |
| 450 | rw [show (4 * ε_eff * I) = (B.lam / 2) * I from by rw [h_4ε_eq]] at h_combine |
| 451 | have hC_grad_le : C1 + C2 + C3 + Cc + Cf ≤ C := le_max_left _ _ |
| 452 | have hC_Cc_le : Cc ≤ C := le_trans (le_max_left _ _) (le_max_right _ _) |
| 453 | have hC_Cf_le : Cf ≤ C := le_trans (le_max_right _ _) (le_max_right _ _) |
| 454 | have h_step1 : (C1 + C2 + C3 + Cc + Cf) * G ≤ C * G := |
| 455 | mul_le_mul_of_nonneg_right hC_grad_le hG_nn |
| 456 | have h_step2 : Cc * U ≤ C * U := |
| 457 | mul_le_mul_of_nonneg_right hC_Cc_le hU_nn |
| 458 | have h_step3 : Cf * F ≤ C * F := |
| 459 | mul_le_mul_of_nonneg_right hC_Cf_le hF_nn |
| 460 | have h_C_dist : C * (G + U + F) = C * G + C * U + C * F := by ring |
| 461 | have h_const_eq : nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k = C := |
| 462 | rfl |
| 463 | rw [h_const_eq] |
| 464 | linarith |
| 465 | |
| 466 | |
| 467 | theorem nirenberg_master_inequality_absorbed_nonsmooth_quantitative |
| 468 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 469 | {u f : E → ℝ} |
| 470 | (hu_l2 : MemLp u 2 (volume : Measure E)) |
| 471 | (hf_l2_loc : ∀ {Ω' : Set E}, IsCompact (closure Ω') → |
| 472 | MemLp f 2 (volume.restrict Ω')) |
| 473 | {g : Fin d → E → ℝ} |
| 474 | (hg_l2 : ∀ i, MemLp (g i) 2 (volume : Measure E)) |
| 475 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 476 | (hη_range : Set.range η ⊆ Set.Icc (0 : ℝ) 1) |
| 477 | {N : ℝ} (hN : 0 ≤ N) (h_fderiv_eta : ∀ x : E, ‖fderiv ℝ η x‖ ≤ N) |
| 478 | {Ω' : Set E} (hΩ' : IsOpen Ω') (hΩ'_closure : closure Ω' ⊆ Ω) |
| 479 | (hΩ'_compact : IsCompact (closure Ω')) |
| 480 | {R₀ : ℝ} |
| 481 | (hh_supp_in_Ω' : ∀ {h : ℝ}, |h| ≤ R₀ → |
| 482 | Metric.cthickening |h| (tsupport η) ⊆ Ω') |
| 483 | (k : Fin d) |
| 484 | (h_FK_diffQuot_u_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 485 | ∫ x in tsupport η, |
| 486 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 487 | ∂(volume : Measure E) ≤ |
| 488 | ∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 ∂(volume : Measure E)) |
| 489 | (h_v_test_sq_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 490 | ∫ x, (Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 491 | k h η u x)^2 ∂(volume : Measure E) ≤ |
| 492 | 8 * N^2 * |
| 493 | ∫ x in tsupport η, |
| 494 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 495 | ∂(volume : Measure E) + |
| 496 | 2 * ∫ x, (η x)^2 * |
| 497 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 498 | ∂(volume : Measure E)) |
| 499 | (h_master_nonsmooth : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 500 | B.lam * ∫ x, (η x)^2 * |
| 501 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 502 | ∂(volume : Measure E) ≤ |
| 503 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 504 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 505 | (fun y : E => B.a y i j) x * (η x) * |
| 506 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 507 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 508 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 509 | ∂(volume : Measure E)| + |
| 510 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 511 | Poincare.Analysis.Sobolev.diffQuot k h |
| 512 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 513 | ((g i) x) * |
| 514 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 515 | ∂(volume : Measure E)| + |
| 516 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 517 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 518 | (fun y : E => B.a y i j) x * (η x) * |
| 519 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 520 | ((g i) x) * |
| 521 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 522 | ∂(volume : Measure E)| + |
| 523 | |∫ x in Ω, f x * |
| 524 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 525 | k h η u x| + |
| 526 | |∫ x in Ω, B.c x * u x * |
| 527 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 528 | k h η u x ∂(volume : Measure E)|) : |
| 529 | ∀ ⦃h : ℝ⦄, h ≠ 0 → |h| ≤ R₀ → |
| 530 | (B.lam / 2) * ∫ x, (η x)^2 * |
| 531 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 532 | ∂(volume : Measure E) ≤ |
| 533 | nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k |
| 534 | * (∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 |
| 535 | ∂(volume : Measure E) + |
| 536 | ∫ x in Ω', (u x)^2 ∂(volume : Measure E) + |
| 537 | ∫ x in Ω', (f x)^2 ∂(volume : Measure E)) := by |
| 538 | classical |
| 539 | have hC := nirenberg_master_inequality_after_young_nonsmooth_quantitative |
| 540 | (d := d) B hu_l2 hf_l2_loc hg_l2 hη hη_supp hη_range hN |
| 541 | h_fderiv_eta hΩ' hΩ'_closure hΩ'_compact hh_supp_in_Ω' k |
| 542 | h_FK_diffQuot_u_bound h_v_test_sq_bound |
| 543 | h_master_nonsmooth |
| 544 | intro h hh hh_le |
| 545 | have h_main := hC hh hh_le |
| 546 | set I : ℝ := ∫ x, (η x)^2 * |
| 547 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 548 | ∂(volume : Measure E) with hI_def |
| 549 | have h_lam_split : B.lam * I - (B.lam / 2) * I = (B.lam / 2) * I := by ring |
| 550 | linarith [h_main] |
| 551 | |
| 552 | |
| 553 | theorem nirenberg_diffQuot_g_localL2_bound_quantitative |
| 554 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 555 | {u f : E → ℝ} |
| 556 | (hu_l2 : MemLp u 2 (volume : Measure E)) |
| 557 | (hf_l2_loc : ∀ {Ω' : Set E}, IsCompact (closure Ω') → |
| 558 | MemLp f 2 (volume.restrict Ω')) |
| 559 | {g : Fin d → E → ℝ} |
| 560 | (hg_l2 : ∀ i, MemLp (g i) 2 (volume : Measure E)) |
| 561 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 562 | (hη_range : Set.range η ⊆ Set.Icc (0 : ℝ) 1) |
| 563 | {N : ℝ} (hN : 0 ≤ N) (h_fderiv_eta : ∀ x : E, ‖fderiv ℝ η x‖ ≤ N) |
| 564 | {Ω' Ω'' : Set E} (hΩ' : IsOpen Ω') (hΩ'_closure : closure Ω' ⊆ Ω) |
| 565 | (hΩ'_compact : IsCompact (closure Ω')) |
| 566 | {R₀ : ℝ} |
| 567 | (hh_supp_in_Ω' : ∀ {h : ℝ}, |h| ≤ R₀ → |
| 568 | Metric.cthickening |h| (tsupport η) ⊆ Ω') |
| 569 | (hη_one_on_Ω'' : ∀ x ∈ Ω'', η x = 1) |
| 570 | (hΩ''_meas : MeasurableSet Ω'') |
| 571 | (k : Fin d) |
| 572 | (h_FK_diffQuot_u_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 573 | ∫ x in tsupport η, |
| 574 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 575 | ∂(volume : Measure E) ≤ |
| 576 | ∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 ∂(volume : Measure E)) |
| 577 | (h_v_test_sq_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 578 | ∫ x, (Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 579 | k h η u x)^2 ∂(volume : Measure E) ≤ |
| 580 | 8 * N^2 * |
| 581 | ∫ x in tsupport η, |
| 582 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 583 | ∂(volume : Measure E) + |
| 584 | 2 * ∫ x, (η x)^2 * |
| 585 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 586 | ∂(volume : Measure E)) |
| 587 | (h_master_nonsmooth : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 588 | B.lam * ∫ x, (η x)^2 * |
| 589 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 590 | ∂(volume : Measure E) ≤ |
| 591 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 592 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 593 | (fun y : E => B.a y i j) x * (η x) * |
| 594 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 595 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 596 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 597 | ∂(volume : Measure E)| + |
| 598 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 599 | Poincare.Analysis.Sobolev.diffQuot k h |
| 600 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 601 | ((g i) x) * |
| 602 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 603 | ∂(volume : Measure E)| + |
| 604 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 605 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 606 | (fun y : E => B.a y i j) x * (η x) * |
| 607 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 608 | ((g i) x) * |
| 609 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 610 | ∂(volume : Measure E)| + |
| 611 | |∫ x in Ω, f x * |
| 612 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 613 | k h η u x| + |
| 614 | |∫ x in Ω, B.c x * u x * |
| 615 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 616 | k h η u x ∂(volume : Measure E)|) : |
| 617 | ∀ ⦃h : ℝ⦄, h ≠ 0 → |h| ≤ R₀ → |
| 618 | (B.lam / 2) * ∫ x in Ω'', |
| 619 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 620 | ∂(volume : Measure E) ≤ |
| 621 | nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k |
| 622 | * (∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 |
| 623 | ∂(volume : Measure E) + |
| 624 | ∫ x in Ω', (u x)^2 ∂(volume : Measure E) + |
| 625 | ∫ x in Ω', (f x)^2 ∂(volume : Measure E)) := by |
| 626 | classical |
| 627 | have hC := nirenberg_master_inequality_absorbed_nonsmooth_quantitative |
| 628 | (d := d) B hu_l2 hf_l2_loc hg_l2 hη hη_supp hη_range hN |
| 629 | h_fderiv_eta hΩ' hΩ'_closure hΩ'_compact hh_supp_in_Ω' k |
| 630 | h_FK_diffQuot_u_bound h_v_test_sq_bound |
| 631 | h_master_nonsmooth |
| 632 | intro h hh hh_le |
| 633 | have h_main := hC hh hh_le |
| 634 | set sumSq : E → ℝ := fun x : E => ∑ i : Fin d, |
| 635 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 636 | with hsumSq_def |
| 637 | have h_sumSq_nn : ∀ x : E, 0 ≤ sumSq x := by |
| 638 | intro x; exact Finset.sum_nonneg (fun i _ => sq_nonneg _) |
| 639 | have h_pointwise : ∀ x : E, |
| 640 | Ω''.indicator sumSq x ≤ (η x)^2 * sumSq x := by |
| 641 | intro x |
| 642 | by_cases hx : x ∈ Ω'' |
| 643 | · rw [Set.indicator_of_mem hx] |
| 644 | rw [hη_one_on_Ω'' x hx, one_pow, one_mul] |
| 645 | · rw [Set.indicator_of_notMem hx] |
| 646 | exact mul_nonneg (sq_nonneg _) (h_sumSq_nn x) |
| 647 | have h_eta_sq_sumSq_int : Integrable (fun x : E => (η x)^2 * sumSq x) |
| 648 | (volume : Measure E) := by |
| 649 | have h_per_i : ∀ i : Fin d, Integrable (fun x : E => |
| 650 | (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) |
| 651 | (volume : Measure E) := by |
| 652 | intro i |
| 653 | have hint := integrable_const_eta_sq_diffQuot_g_sq (d := d) hg_l2 hη hη_supp |
| 654 | i k h 1 |
| 655 | have h_eq : (fun x : E => (η x)^2 * |
| 656 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) = |
| 657 | (fun x : E => 1 * (η x)^2 * |
| 658 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) := by |
| 659 | funext x; ring |
| 660 | rw [h_eq] |
| 661 | exact hint |
| 662 | have h_sum_int := integrable_finsetSum (Finset.univ : Finset (Fin d)) |
| 663 | (fun i _ => h_per_i i) |
| 664 | have h_eq : (fun x : E => (η x)^2 * sumSq x) = |
| 665 | (fun x : E => ∑ i : Fin d, |
| 666 | (η x)^2 * (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) := by |
| 667 | funext x |
| 668 | simp only [hsumSq_def, Finset.mul_sum] |
| 669 | rw [h_eq] |
| 670 | exact h_sum_int |
| 671 | have h_indicator_int : Integrable (fun x : E => Ω''.indicator sumSq x) |
| 672 | (volume : Measure E) := by |
| 673 | refine h_eta_sq_sumSq_int.mono' ?_ ?_ |
| 674 | · refine AEStronglyMeasurable.indicator ?_ hΩ''_meas |
| 675 | have h_per_i_aesm : ∀ i : Fin d, AEStronglyMeasurable |
| 676 | (fun x : E => (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) |
| 677 | (volume : Measure E) := by |
| 678 | intro i |
| 679 | exact (aestronglyMeasurable_diffQuot (d := d) k h |
| 680 | (hg_l2 i).aestronglyMeasurable).pow 2 |
| 681 | have h_sum_aesm : AEStronglyMeasurable |
| 682 | (fun x : E => ∑ i : Fin d, |
| 683 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) |
| 684 | (volume : Measure E) := by |
| 685 | have h_aux := Finset.aestronglyMeasurable_sum |
| 686 | (Finset.univ : Finset (Fin d)) (fun i _ => h_per_i_aesm i) |
| 687 | have h_eq : (∑ i ∈ (Finset.univ : Finset (Fin d)), |
| 688 | fun x : E => (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) = |
| 689 | (fun x : E => ∑ i : Fin d, |
| 690 | (Poincare.Analysis.Sobolev.diffQuot k h (g i) x)^2) := by |
| 691 | funext x |
| 692 | rw [Finset.sum_apply] |
| 693 | rw [h_eq] at h_aux |
| 694 | exact h_aux |
| 695 | exact h_sum_aesm |
| 696 | · refine Filter.Eventually.of_forall ?_ |
| 697 | intro x |
| 698 | rw [Real.norm_eq_abs] |
| 699 | have h_indicator_nn : 0 ≤ Ω''.indicator sumSq x := |
| 700 | Set.indicator_nonneg (fun y _ => h_sumSq_nn y) x |
| 701 | rw [abs_of_nonneg h_indicator_nn] |
| 702 | exact h_pointwise x |
| 703 | have h_int_le : ∫ x, Ω''.indicator sumSq x ∂(volume : Measure E) ≤ |
| 704 | ∫ x, (η x)^2 * sumSq x ∂(volume : Measure E) := |
| 705 | integral_mono h_indicator_int h_eta_sq_sumSq_int h_pointwise |
| 706 | have h_indicator_eq : ∫ x, Ω''.indicator sumSq x ∂(volume : Measure E) = |
| 707 | ∫ x in Ω'', sumSq x ∂(volume : Measure E) := |
| 708 | MeasureTheory.integral_indicator hΩ''_meas |
| 709 | rw [h_indicator_eq] at h_int_le |
| 710 | have h_lam_half_nn : 0 ≤ B.lam / 2 := by linarith [B.hlam_pos] |
| 711 | have h_step1 : (B.lam / 2) * ∫ x in Ω'', sumSq x ∂(volume : Measure E) ≤ |
| 712 | (B.lam / 2) * ∫ x, (η x)^2 * sumSq x ∂(volume : Measure E) := |
| 713 | mul_le_mul_of_nonneg_left h_int_le h_lam_half_nn |
| 714 | exact h_step1.trans h_main |
| 715 | |
| 716 | |
| 717 | theorem nirenberg_master_inequality_after_young_nonsmooth |
| 718 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 719 | {u f : E → ℝ} |
| 720 | (hu_l2 : MemLp u 2 (volume : Measure E)) |
| 721 | (hf_l2_loc : ∀ {Ω' : Set E}, IsCompact (closure Ω') → |
| 722 | MemLp f 2 (volume.restrict Ω')) |
| 723 | {g : Fin d → E → ℝ} |
| 724 | (hg_l2 : ∀ i, MemLp (g i) 2 (volume : Measure E)) |
| 725 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 726 | (hη_range : Set.range η ⊆ Set.Icc (0 : ℝ) 1) |
| 727 | {N : ℝ} (hN : 0 ≤ N) (h_fderiv_eta : ∀ x : E, ‖fderiv ℝ η x‖ ≤ N) |
| 728 | {Ω' : Set E} (hΩ' : IsOpen Ω') (hΩ'_closure : closure Ω' ⊆ Ω) |
| 729 | (hΩ'_compact : IsCompact (closure Ω')) |
| 730 | {R₀ : ℝ} |
| 731 | (hh_supp_in_Ω' : ∀ {h : ℝ}, |h| ≤ R₀ → |
| 732 | Metric.cthickening |h| (tsupport η) ⊆ Ω') |
| 733 | (k : Fin d) |
| 734 | (h_FK_diffQuot_u_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 735 | ∫ x in tsupport η, |
| 736 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 737 | ∂(volume : Measure E) ≤ |
| 738 | ∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 ∂(volume : Measure E)) |
| 739 | (h_v_test_sq_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 740 | ∫ x, (Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 741 | k h η u x)^2 ∂(volume : Measure E) ≤ |
| 742 | 8 * N^2 * |
| 743 | ∫ x in tsupport η, |
| 744 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 745 | ∂(volume : Measure E) + |
| 746 | 2 * ∫ x, (η x)^2 * |
| 747 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 748 | ∂(volume : Measure E)) |
| 749 | (h_master_nonsmooth : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 750 | B.lam * ∫ x, (η x)^2 * |
| 751 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 752 | ∂(volume : Measure E) ≤ |
| 753 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 754 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 755 | (fun y : E => B.a y i j) x * (η x) * |
| 756 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 757 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 758 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 759 | ∂(volume : Measure E)| + |
| 760 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 761 | Poincare.Analysis.Sobolev.diffQuot k h |
| 762 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 763 | ((g i) x) * |
| 764 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 765 | ∂(volume : Measure E)| + |
| 766 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 767 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 768 | (fun y : E => B.a y i j) x * (η x) * |
| 769 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 770 | ((g i) x) * |
| 771 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 772 | ∂(volume : Measure E)| + |
| 773 | |∫ x in Ω, f x * |
| 774 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 775 | k h η u x| + |
| 776 | |∫ x in Ω, B.c x * u x * |
| 777 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 778 | k h η u x ∂(volume : Measure E)|) : |
| 779 | ∃ C : ℝ, 0 ≤ C ∧ ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 780 | B.lam * ∫ x, (η x)^2 * |
| 781 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 782 | ∂(volume : Measure E) ≤ |
| 783 | (B.lam / 2) * ∫ x, (η x)^2 * |
| 784 | ∑ i : Fin d, |
| 785 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 786 | ∂(volume : Measure E) + |
| 787 | C * (∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 |
| 788 | ∂(volume : Measure E) + |
| 789 | ∫ x in Ω', (u x)^2 ∂(volume : Measure E) + |
| 790 | ∫ x in Ω', (f x)^2 ∂(volume : Measure E)) := by |
| 791 | refine ⟨nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k, |
| 792 | nirenbergMasterYoungConstant_nonneg (d := d) B hN hΩ'_compact k, ?_⟩ |
| 793 | intro h hh hh_le |
| 794 | exact nirenberg_master_inequality_after_young_nonsmooth_quantitative |
| 795 | (d := d) B hu_l2 hf_l2_loc hg_l2 hη hη_supp hη_range hN |
| 796 | h_fderiv_eta hΩ' hΩ'_closure hΩ'_compact hh_supp_in_Ω' k |
| 797 | h_FK_diffQuot_u_bound h_v_test_sq_bound h_master_nonsmooth hh hh_le |
| 798 | |
| 799 | |
| 800 | theorem nirenberg_master_inequality_absorbed_nonsmooth |
| 801 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 802 | {u f : E → ℝ} |
| 803 | (hu_l2 : MemLp u 2 (volume : Measure E)) |
| 804 | (hf_l2_loc : ∀ {Ω' : Set E}, IsCompact (closure Ω') → |
| 805 | MemLp f 2 (volume.restrict Ω')) |
| 806 | {g : Fin d → E → ℝ} |
| 807 | (hg_l2 : ∀ i, MemLp (g i) 2 (volume : Measure E)) |
| 808 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 809 | (hη_range : Set.range η ⊆ Set.Icc (0 : ℝ) 1) |
| 810 | {N : ℝ} (hN : 0 ≤ N) (h_fderiv_eta : ∀ x : E, ‖fderiv ℝ η x‖ ≤ N) |
| 811 | {Ω' : Set E} (hΩ' : IsOpen Ω') (hΩ'_closure : closure Ω' ⊆ Ω) |
| 812 | (hΩ'_compact : IsCompact (closure Ω')) |
| 813 | {R₀ : ℝ} |
| 814 | (hh_supp_in_Ω' : ∀ {h : ℝ}, |h| ≤ R₀ → |
| 815 | Metric.cthickening |h| (tsupport η) ⊆ Ω') |
| 816 | (k : Fin d) |
| 817 | (h_FK_diffQuot_u_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 818 | ∫ x in tsupport η, |
| 819 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 820 | ∂(volume : Measure E) ≤ |
| 821 | ∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 ∂(volume : Measure E)) |
| 822 | (h_v_test_sq_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 823 | ∫ x, (Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 824 | k h η u x)^2 ∂(volume : Measure E) ≤ |
| 825 | 8 * N^2 * |
| 826 | ∫ x in tsupport η, |
| 827 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 828 | ∂(volume : Measure E) + |
| 829 | 2 * ∫ x, (η x)^2 * |
| 830 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 831 | ∂(volume : Measure E)) |
| 832 | (h_master_nonsmooth : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 833 | B.lam * ∫ x, (η x)^2 * |
| 834 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 835 | ∂(volume : Measure E) ≤ |
| 836 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 837 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 838 | (fun y : E => B.a y i j) x * (η x) * |
| 839 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 840 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 841 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 842 | ∂(volume : Measure E)| + |
| 843 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 844 | Poincare.Analysis.Sobolev.diffQuot k h |
| 845 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 846 | ((g i) x) * |
| 847 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 848 | ∂(volume : Measure E)| + |
| 849 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 850 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 851 | (fun y : E => B.a y i j) x * (η x) * |
| 852 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 853 | ((g i) x) * |
| 854 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 855 | ∂(volume : Measure E)| + |
| 856 | |∫ x in Ω, f x * |
| 857 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 858 | k h η u x| + |
| 859 | |∫ x in Ω, B.c x * u x * |
| 860 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 861 | k h η u x ∂(volume : Measure E)|) : |
| 862 | ∃ C : ℝ, 0 ≤ C ∧ ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 863 | (B.lam / 2) * ∫ x, (η x)^2 * |
| 864 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 865 | ∂(volume : Measure E) ≤ |
| 866 | C * (∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 |
| 867 | ∂(volume : Measure E) + |
| 868 | ∫ x in Ω', (u x)^2 ∂(volume : Measure E) + |
| 869 | ∫ x in Ω', (f x)^2 ∂(volume : Measure E)) := by |
| 870 | refine ⟨nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k, |
| 871 | nirenbergMasterYoungConstant_nonneg (d := d) B hN hΩ'_compact k, ?_⟩ |
| 872 | intro h hh hh_le |
| 873 | exact nirenberg_master_inequality_absorbed_nonsmooth_quantitative |
| 874 | (d := d) B hu_l2 hf_l2_loc hg_l2 hη hη_supp hη_range hN |
| 875 | h_fderiv_eta hΩ' hΩ'_closure hΩ'_compact hh_supp_in_Ω' k |
| 876 | h_FK_diffQuot_u_bound h_v_test_sq_bound h_master_nonsmooth hh hh_le |
| 877 | |
| 878 | |
| 879 | theorem nirenberg_diffQuot_g_localL2_bound |
| 880 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 881 | {u f : E → ℝ} |
| 882 | (hu_l2 : MemLp u 2 (volume : Measure E)) |
| 883 | (hf_l2_loc : ∀ {Ω' : Set E}, IsCompact (closure Ω') → |
| 884 | MemLp f 2 (volume.restrict Ω')) |
| 885 | {g : Fin d → E → ℝ} |
| 886 | (hg_l2 : ∀ i, MemLp (g i) 2 (volume : Measure E)) |
| 887 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 888 | (hη_range : Set.range η ⊆ Set.Icc (0 : ℝ) 1) |
| 889 | {N : ℝ} (hN : 0 ≤ N) (h_fderiv_eta : ∀ x : E, ‖fderiv ℝ η x‖ ≤ N) |
| 890 | {Ω' Ω'' : Set E} (hΩ' : IsOpen Ω') (hΩ'_closure : closure Ω' ⊆ Ω) |
| 891 | (hΩ'_compact : IsCompact (closure Ω')) |
| 892 | {R₀ : ℝ} |
| 893 | (hh_supp_in_Ω' : ∀ {h : ℝ}, |h| ≤ R₀ → |
| 894 | Metric.cthickening |h| (tsupport η) ⊆ Ω') |
| 895 | (hη_one_on_Ω'' : ∀ x ∈ Ω'', η x = 1) |
| 896 | (hΩ''_meas : MeasurableSet Ω'') |
| 897 | (k : Fin d) |
| 898 | (h_FK_diffQuot_u_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 899 | ∫ x in tsupport η, |
| 900 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 901 | ∂(volume : Measure E) ≤ |
| 902 | ∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 ∂(volume : Measure E)) |
| 903 | (h_v_test_sq_bound : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 904 | ∫ x, (Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 905 | k h η u x)^2 ∂(volume : Measure E) ≤ |
| 906 | 8 * N^2 * |
| 907 | ∫ x in tsupport η, |
| 908 | (Poincare.Analysis.Sobolev.diffQuot k h u x)^2 |
| 909 | ∂(volume : Measure E) + |
| 910 | 2 * ∫ x, (η x)^2 * |
| 911 | (Poincare.Analysis.Sobolev.diffQuot k h (g k) x)^2 |
| 912 | ∂(volume : Measure E)) |
| 913 | (h_master_nonsmooth : ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 914 | B.lam * ∫ x, (η x)^2 * |
| 915 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 916 | ∂(volume : Measure E) ≤ |
| 917 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 918 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 919 | (fun y : E => B.a y i j) x * (η x) * |
| 920 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 921 | Poincare.Analysis.Sobolev.diffQuot k h (g i) x * |
| 922 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 923 | ∂(volume : Measure E)| + |
| 924 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 925 | Poincare.Analysis.Sobolev.diffQuot k h |
| 926 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 927 | ((g i) x) * |
| 928 | Poincare.Analysis.Sobolev.diffQuot k h (g j) x |
| 929 | ∂(volume : Measure E)| + |
| 930 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 931 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 932 | (fun y : E => B.a y i j) x * (η x) * |
| 933 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 934 | ((g i) x) * |
| 935 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 936 | ∂(volume : Measure E)| + |
| 937 | |∫ x in Ω, f x * |
| 938 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 939 | k h η u x| + |
| 940 | |∫ x in Ω, B.c x * u x * |
| 941 | Poincare.Analysis.Sobolev.NirenbergTestFunction.nirenbergTestFunction |
| 942 | k h η u x ∂(volume : Measure E)|) : |
| 943 | ∃ C : ℝ, 0 ≤ C ∧ ∀ {h : ℝ}, h ≠ 0 → |h| ≤ R₀ → |
| 944 | (B.lam / 2) * ∫ x in Ω'', |
| 945 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h (g i) x ^ 2 |
| 946 | ∂(volume : Measure E) ≤ |
| 947 | C * (∫ x in Ω', ∑ i : Fin d, ((g i) x) ^ 2 |
| 948 | ∂(volume : Measure E) + |
| 949 | ∫ x in Ω', (u x)^2 ∂(volume : Measure E) + |
| 950 | ∫ x in Ω', (f x)^2 ∂(volume : Measure E)) := by |
| 951 | refine ⟨nirenbergMasterYoungConstant (d := d) B N hΩ'_compact k, |
| 952 | nirenbergMasterYoungConstant_nonneg (d := d) B hN hΩ'_compact k, ?_⟩ |
| 953 | intro h hh hh_le |
| 954 | exact nirenberg_diffQuot_g_localL2_bound_quantitative |
| 955 | (d := d) B hu_l2 hf_l2_loc hg_l2 hη hη_supp hη_range hN |
| 956 | h_fderiv_eta hΩ' hΩ'_closure hΩ'_compact hh_supp_in_Ω' |
| 957 | hη_one_on_Ω'' hΩ''_meas k |
| 958 | h_FK_diffQuot_u_bound h_v_test_sq_bound h_master_nonsmooth hh hh_le |
| 959 | |
| 960 | end Poincare.Analysis.Sobolev.NirenbergCrossBoundsNonSmooth |