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/Coercivity.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.Substitution.Smooth |
| 13 | |
| 14 | /-! |
| 15 | # Local elliptic energy estimates |
| 16 | |
| 17 | Adapted from Chow--Liao--Qin, `Analysis/Sobolev/Nirenberg/MasterInequality/Coercivity.lean`, |
| 18 | revision `1b535dd102b94cc42b107cca27059687888f08b3`. |
| 19 | Copyright 2026 The DifferentialGeometry contributors. Apache-2.0. |
| 20 | The adaptation changes imports and namespaces and uses smooth cutoffs. |
| 21 | -/ |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | open MeasureTheory Metric Filter Topology Set Function |
| 26 | open Poincare.Analysis.Sobolev |
| 27 | open Poincare.Analysis.Sobolev.NirenbergEuclidean |
| 28 | open Poincare.Analysis.Sobolev.NirenbergTestFunction |
| 29 | open Poincare.Analysis.Sobolev.NirenbergSubstitution |
| 30 | open scoped ENNReal NNReal Convolution Pointwise BigOperators InnerProductSpace |
| 31 | |
| 32 | namespace Poincare.Analysis.Sobolev.NirenbergCoercivity |
| 33 | |
| 34 | variable {d : ℕ} [NeZero d] |
| 35 | |
| 36 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 37 | |
| 38 | private def shiftedPrincipal |
| 39 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 40 | (u : E → ℝ) (k : Fin d) (h : ℝ) (x : E) : ℝ := |
| 41 | ∑ i : Fin d, ∑ j : Fin d, |
| 42 | Poincare.Analysis.Sobolev.translate k h |
| 43 | (fun y : E => B.a y i j) x * |
| 44 | Poincare.Analysis.Sobolev.diffQuot k h |
| 45 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 46 | Poincare.Analysis.Sobolev.diffQuot k h |
| 47 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 48 | |
| 49 | private def diffQuotGradient |
| 50 | (u : E → ℝ) (k : Fin d) (h : ℝ) (x : E) : E := |
| 51 | WithLp.toLp 2 (fun i : Fin d => |
| 52 | Poincare.Analysis.Sobolev.diffQuot k h |
| 53 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x) |
| 54 | |
| 55 | omit [NeZero d] in |
| 56 | private lemma diffQuotGradient_norm_sq |
| 57 | (u : E → ℝ) (k : Fin d) (h : ℝ) (x : E) : |
| 58 | ‖diffQuotGradient u k h x‖ ^ 2 = |
| 59 | ∑ i : Fin d, |
| 60 | Poincare.Analysis.Sobolev.diffQuot k h |
| 61 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2 := by |
| 62 | unfold diffQuotGradient |
| 63 | rw [EuclideanSpace.norm_sq_eq] |
| 64 | refine Finset.sum_congr rfl ?_ |
| 65 | intro i _ |
| 66 | change ‖Poincare.Analysis.Sobolev.diffQuot k h |
| 67 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x‖ ^ 2 = _ |
| 68 | rw [Real.norm_eq_abs, sq_abs] |
| 69 | |
| 70 | private theorem shiftedPrincipal_ge |
| 71 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 72 | (u : E → ℝ) (k : Fin d) (h : ℝ) {x : E} |
| 73 | (hx_translate : x + h • EuclideanSpace.single k 1 ∈ Ω) : |
| 74 | B.lam * ‖diffQuotGradient u k h x‖ ^ 2 ≤ |
| 75 | shiftedPrincipal B u k h x := by |
| 76 | classical |
| 77 | set y : E := x + h • EuclideanSpace.single k 1 with hy_def |
| 78 | set ξ : E := diffQuotGradient u k h x with hξ_def |
| 79 | set V : Fin d → ℝ := fun i => |
| 80 | Poincare.Analysis.Sobolev.diffQuot k h |
| 81 | (fun z : E => (fderiv ℝ u z) (EuclideanSpace.single i 1)) x with hV_def |
| 82 | have hξofLp : ξ.ofLp = V := by simp [hξ_def, hV_def, diffQuotGradient] |
| 83 | have hcoer : B.lam * ‖ξ‖ ^ 2 ≤ ⟪ξ, Poincare.Analysis.Sobolev.Weak.matMulE (B.a y) ξ⟫_ℝ := |
| 84 | B.coercive y hx_translate ξ |
| 85 | have h_inner : |
| 86 | ⟪ξ, Poincare.Analysis.Sobolev.Weak.matMulE (B.a y) ξ⟫_ℝ = |
| 87 | ∑ i : Fin d, ∑ j : Fin d, |
| 88 | B.a y i j * V i * V j := by |
| 89 | have hmatofLp : (Poincare.Analysis.Sobolev.Weak.matMulE (B.a y) ξ).ofLp = (B.a y).mulVec V := by |
| 90 | rw [Poincare.Analysis.Sobolev.Weak.matMulE_ofLp, hξofLp] |
| 91 | change (Poincare.Analysis.Sobolev.Weak.matMulE (B.a y) ξ).ofLp ⬝ᵥ star ξ.ofLp = _ |
| 92 | rw [hmatofLp, hξofLp] |
| 93 | have hstarV : (star V : Fin d → ℝ) = V := by |
| 94 | funext i; simp |
| 95 | rw [hstarV] |
| 96 | change ∑ i : Fin d, (B.a y).mulVec V i * V i = _ |
| 97 | refine Finset.sum_congr rfl ?_ |
| 98 | intro i _ |
| 99 | change (∑ j : Fin d, B.a y i j * V j) * V i = ∑ j : Fin d, B.a y i j * V i * V j |
| 100 | rw [Finset.sum_mul] |
| 101 | refine Finset.sum_congr rfl ?_ |
| 102 | intro j _ |
| 103 | ring |
| 104 | have h_target : |
| 105 | shiftedPrincipal B u k h x = |
| 106 | ∑ i : Fin d, ∑ j : Fin d, B.a y i j * V i * V j := by |
| 107 | unfold shiftedPrincipal |
| 108 | refine Finset.sum_congr rfl ?_ |
| 109 | intro i _ |
| 110 | refine Finset.sum_congr rfl ?_ |
| 111 | intro j _ |
| 112 | change Poincare.Analysis.Sobolev.translate k h |
| 113 | (fun z : E => B.a z i j) x * |
| 114 | Poincare.Analysis.Sobolev.diffQuot k h |
| 115 | (fun z : E => (fderiv ℝ u z) (EuclideanSpace.single i 1)) x * |
| 116 | Poincare.Analysis.Sobolev.diffQuot k h |
| 117 | (fun z : E => (fderiv ℝ u z) (EuclideanSpace.single j 1)) x = |
| 118 | B.a y i j * V i * V j |
| 119 | rfl |
| 120 | rw [h_target] |
| 121 | rw [h_inner] at hcoer |
| 122 | exact hcoer |
| 123 | |
| 124 | private theorem principal_integrand_pointwise_decomposition |
| 125 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 126 | {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) |
| 127 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) |
| 128 | (i j k : Fin d) {h : ℝ} (hh : h ≠ 0) (x : E) : |
| 129 | Poincare.Analysis.Sobolev.diffQuot k h |
| 130 | (fun y : E => B.a y i j * |
| 131 | ((fderiv ℝ u y) (EuclideanSpace.single i 1))) x * |
| 132 | ((fderiv ℝ |
| 133 | (fun y : E => η y ^ 2 * |
| 134 | Poincare.Analysis.Sobolev.diffQuot k h u y) x) |
| 135 | (EuclideanSpace.single j 1)) = |
| 136 | Poincare.Analysis.Sobolev.translate k h |
| 137 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 138 | Poincare.Analysis.Sobolev.diffQuot k h |
| 139 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 140 | Poincare.Analysis.Sobolev.diffQuot k h |
| 141 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x + |
| 142 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 143 | (fun y : E => B.a y i j) x * (η x) * |
| 144 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 145 | Poincare.Analysis.Sobolev.diffQuot k h |
| 146 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 147 | Poincare.Analysis.Sobolev.diffQuot k h u x + |
| 148 | Poincare.Analysis.Sobolev.diffQuot k h |
| 149 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 150 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 151 | Poincare.Analysis.Sobolev.diffQuot k h |
| 152 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x + |
| 153 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 154 | (fun y : E => B.a y i j) x * (η x) * |
| 155 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 156 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 157 | Poincare.Analysis.Sobolev.diffQuot k h u x := by |
| 158 | have h_first : Poincare.Analysis.Sobolev.diffQuot k h |
| 159 | (fun y : E => B.a y i j * |
| 160 | ((fderiv ℝ u y) (EuclideanSpace.single i 1))) x = |
| 161 | Poincare.Analysis.Sobolev.translate k h |
| 162 | (fun y : E => B.a y i j) x * |
| 163 | Poincare.Analysis.Sobolev.diffQuot k h |
| 164 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x + |
| 165 | Poincare.Analysis.Sobolev.diffQuot k h |
| 166 | (fun y : E => B.a y i j) x * |
| 167 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) := |
| 168 | diffQuot_coeff_apply (d := d) k h |
| 169 | (fun y : E => B.a y i j) |
| 170 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x |
| 171 | have h_second : |
| 172 | ((fderiv ℝ |
| 173 | (fun y : E => η y ^ 2 * |
| 174 | Poincare.Analysis.Sobolev.diffQuot k h u y) x) |
| 175 | (EuclideanSpace.single j 1)) = |
| 176 | 2 * η x * ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 177 | Poincare.Analysis.Sobolev.diffQuot k h u x + |
| 178 | η x ^ 2 * |
| 179 | Poincare.Analysis.Sobolev.diffQuot k h |
| 180 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x := |
| 181 | fderiv_eta_sq_times_diffQuot_apply (d := d) hη hu k j hh x |
| 182 | rw [h_first, h_second] |
| 183 | ring |
| 184 | |
| 185 | omit [NeZero d] in |
| 186 | private lemma continuous_diffQuot_of_contDiff |
| 187 | {v : E → ℝ} (hv : ContDiff ℝ (⊤ : ℕ∞) v) (k : Fin d) (h : ℝ) : |
| 188 | Continuous (Poincare.Analysis.Sobolev.diffQuot k h v) := by |
| 189 | by_cases hh : h = 0 |
| 190 | · subst hh |
| 191 | rw [Poincare.Analysis.Sobolev.diffQuot_zero_h] |
| 192 | exact continuous_const |
| 193 | · exact (contDiff_diffQuot_of_contDiff (d := d) hv k hh).continuous |
| 194 | |
| 195 | omit [NeZero d] in |
| 196 | private lemma continuous_translate_of_continuous |
| 197 | {v : E → ℝ} (hv : Continuous v) (k : Fin d) (h : ℝ) : |
| 198 | Continuous (Poincare.Analysis.Sobolev.translate k h v) := by |
| 199 | unfold Poincare.Analysis.Sobolev.translate |
| 200 | have h_translate_map : |
| 201 | Continuous (fun y : E => y + h • EuclideanSpace.single k 1) := |
| 202 | continuous_id.add continuous_const |
| 203 | exact hv.comp h_translate_map |
| 204 | |
| 205 | theorem nirenberg_principal_decomposition |
| 206 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 207 | {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) |
| 208 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 209 | (k : Fin d) {h : ℝ} (hh : h ≠ 0) : |
| 210 | ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 211 | Poincare.Analysis.Sobolev.diffQuot k h |
| 212 | (fun y : E => B.a y i j * |
| 213 | ((fderiv ℝ u y) (EuclideanSpace.single i 1))) x * |
| 214 | ((fderiv ℝ |
| 215 | (fun y : E => η y ^ 2 * |
| 216 | Poincare.Analysis.Sobolev.diffQuot k h u y) x) |
| 217 | (EuclideanSpace.single j 1)) |
| 218 | ∂(volume : Measure E) = |
| 219 | (∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 220 | Poincare.Analysis.Sobolev.translate k h |
| 221 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 222 | Poincare.Analysis.Sobolev.diffQuot k h |
| 223 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 224 | Poincare.Analysis.Sobolev.diffQuot k h |
| 225 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 226 | ∂(volume : Measure E)) + |
| 227 | (∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 228 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 229 | (fun y : E => B.a y i j) x * (η x) * |
| 230 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 231 | Poincare.Analysis.Sobolev.diffQuot k h |
| 232 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 233 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 234 | ∂(volume : Measure E)) + |
| 235 | (∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 236 | Poincare.Analysis.Sobolev.diffQuot k h |
| 237 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 238 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 239 | Poincare.Analysis.Sobolev.diffQuot k h |
| 240 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 241 | ∂(volume : Measure E)) + |
| 242 | (∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 243 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 244 | (fun y : E => B.a y i j) x * (η x) * |
| 245 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 246 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 247 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 248 | ∂(volume : Measure E)) := by |
| 249 | classical |
| 250 | have hu_C1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 251 | have hη_C1 : ContDiff ℝ 1 η := hη.of_le (by norm_cast) |
| 252 | have h_eta_sq_supp : HasCompactSupport (fun y : E => η y ^ 2) := by |
| 253 | have heq : (fun y : E => η y ^ 2) = (fun y : E => η y * η y) := by |
| 254 | funext y; ring |
| 255 | rw [heq] |
| 256 | exact hη_supp.mul_right |
| 257 | have h_pair : ∀ i j : Fin d, ∀ x : E, |
| 258 | Poincare.Analysis.Sobolev.diffQuot k h |
| 259 | (fun y : E => B.a y i j * |
| 260 | ((fderiv ℝ u y) (EuclideanSpace.single i 1))) x * |
| 261 | ((fderiv ℝ |
| 262 | (fun y : E => η y ^ 2 * |
| 263 | Poincare.Analysis.Sobolev.diffQuot k h u y) x) |
| 264 | (EuclideanSpace.single j 1)) = |
| 265 | Poincare.Analysis.Sobolev.translate k h |
| 266 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 267 | Poincare.Analysis.Sobolev.diffQuot k h |
| 268 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 269 | Poincare.Analysis.Sobolev.diffQuot k h |
| 270 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x + |
| 271 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 272 | (fun y : E => B.a y i j) x * (η x) * |
| 273 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 274 | Poincare.Analysis.Sobolev.diffQuot k h |
| 275 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 276 | Poincare.Analysis.Sobolev.diffQuot k h u x + |
| 277 | Poincare.Analysis.Sobolev.diffQuot k h |
| 278 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 279 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 280 | Poincare.Analysis.Sobolev.diffQuot k h |
| 281 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x + |
| 282 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 283 | (fun y : E => B.a y i j) x * (η x) * |
| 284 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 285 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 286 | Poincare.Analysis.Sobolev.diffQuot k h u x := by |
| 287 | intro i j x |
| 288 | exact principal_integrand_pointwise_decomposition (d := d) B hu hη i j k hh x |
| 289 | let T1 : Fin d → Fin d → E → ℝ := fun i j x => |
| 290 | Poincare.Analysis.Sobolev.translate k h |
| 291 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 292 | Poincare.Analysis.Sobolev.diffQuot k h |
| 293 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 294 | Poincare.Analysis.Sobolev.diffQuot k h |
| 295 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 296 | let T2 : Fin d → Fin d → E → ℝ := fun i j x => |
| 297 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 298 | (fun y : E => B.a y i j) x * (η x) * |
| 299 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 300 | Poincare.Analysis.Sobolev.diffQuot k h |
| 301 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 302 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 303 | let T3 : Fin d → Fin d → E → ℝ := fun i j x => |
| 304 | Poincare.Analysis.Sobolev.diffQuot k h |
| 305 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 306 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 307 | Poincare.Analysis.Sobolev.diffQuot k h |
| 308 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 309 | let T4 : Fin d → Fin d → E → ℝ := fun i j x => |
| 310 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 311 | (fun y : E => B.a y i j) x * (η x) * |
| 312 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 313 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 314 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 315 | let LHSint : Fin d → Fin d → E → ℝ := fun i j x => |
| 316 | Poincare.Analysis.Sobolev.diffQuot k h |
| 317 | (fun y : E => B.a y i j * |
| 318 | ((fderiv ℝ u y) (EuclideanSpace.single i 1))) x * |
| 319 | ((fderiv ℝ |
| 320 | (fun y : E => η y ^ 2 * |
| 321 | Poincare.Analysis.Sobolev.diffQuot k h u y) x) |
| 322 | (EuclideanSpace.single j 1)) |
| 323 | have h_LHS_eq : ∀ i j : Fin d, ∀ x : E, |
| 324 | LHSint i j x = T1 i j x + T2 i j x + T3 i j x + T4 i j x := h_pair |
| 325 | have h_a_cont : ∀ i j : Fin d, Continuous (fun y : E => B.a y i j) := |
| 326 | fun i j => B.continuous_a i j |
| 327 | have h_translate_a_cont : ∀ i j : Fin d, |
| 328 | Continuous (Poincare.Analysis.Sobolev.translate k h |
| 329 | (fun y : E => B.a y i j)) := |
| 330 | fun i j => continuous_translate_of_continuous (d := d) |
| 331 | (h_a_cont i j) k h |
| 332 | have h_partial_u_cont : ∀ i : Fin d, |
| 333 | Continuous (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) := |
| 334 | fun i => (hu_C1.continuous_fderiv (by norm_num)).clm_apply continuous_const |
| 335 | have h_partial_η_cont : ∀ j : Fin d, |
| 336 | Continuous (fun y : E => (fderiv ℝ η y) (EuclideanSpace.single j 1)) := |
| 337 | fun j => (hη_C1.continuous_fderiv (by norm_num)).clm_apply continuous_const |
| 338 | have h_diffQuot_partial_u_cont : ∀ i : Fin d, |
| 339 | Continuous (Poincare.Analysis.Sobolev.diffQuot k h |
| 340 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1))) := by |
| 341 | intro i |
| 342 | have h_smooth : |
| 343 | ContDiff ℝ (⊤ : ℕ∞) |
| 344 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) := by |
| 345 | have h_fderiv_smooth : ContDiff ℝ (⊤ : ℕ∞) (fderiv ℝ u) := |
| 346 | hu.fderiv_right (m := (⊤ : ℕ∞)) (by simp) |
| 347 | have h_apply_smooth : |
| 348 | ContDiff ℝ (⊤ : ℕ∞) |
| 349 | (fun T : E →L[ℝ] ℝ => T (EuclideanSpace.single i 1)) := |
| 350 | (ContinuousLinearMap.apply ℝ ℝ |
| 351 | (EuclideanSpace.single i (1 : ℝ))).contDiff |
| 352 | exact h_apply_smooth.comp h_fderiv_smooth |
| 353 | exact continuous_diffQuot_of_contDiff (d := d) h_smooth k h |
| 354 | have h_diffQuot_a_cont : ∀ i j : Fin d, |
| 355 | Continuous (Poincare.Analysis.Sobolev.diffQuot k h |
| 356 | (fun y : E => B.a y i j)) := |
| 357 | fun i j => continuous_diffQuot_of_contDiff (d := d) (B.contDiff_a i j) k h |
| 358 | have h_diffQuot_u_cont : |
| 359 | Continuous (Poincare.Analysis.Sobolev.diffQuot k h u) := |
| 360 | continuous_diffQuot_of_contDiff (d := d) hu k h |
| 361 | have hT1_cont : ∀ i j : Fin d, Continuous (T1 i j) := by |
| 362 | intro i j |
| 363 | refine ((((h_translate_a_cont i j).mul (hη.continuous.pow 2)).mul |
| 364 | (h_diffQuot_partial_u_cont i)).mul |
| 365 | (h_diffQuot_partial_u_cont j)) |
| 366 | have hT2_cont : ∀ i j : Fin d, Continuous (T2 i j) := by |
| 367 | intro i j |
| 368 | refine (((((continuous_const : Continuous (fun _ : E => (2 : ℝ))).mul |
| 369 | (h_translate_a_cont i j)).mul hη.continuous).mul |
| 370 | (h_partial_η_cont j)).mul (h_diffQuot_partial_u_cont i)).mul |
| 371 | h_diffQuot_u_cont |
| 372 | have hT3_cont : ∀ i j : Fin d, Continuous (T3 i j) := by |
| 373 | intro i j |
| 374 | refine ((((h_diffQuot_a_cont i j).mul (hη.continuous.pow 2)).mul |
| 375 | (h_partial_u_cont i)).mul (h_diffQuot_partial_u_cont j)) |
| 376 | have hT4_cont : ∀ i j : Fin d, Continuous (T4 i j) := by |
| 377 | intro i j |
| 378 | refine (((((continuous_const : Continuous (fun _ : E => (2 : ℝ))).mul |
| 379 | (h_diffQuot_a_cont i j)).mul hη.continuous).mul |
| 380 | (h_partial_η_cont j)).mul (h_partial_u_cont i)).mul h_diffQuot_u_cont |
| 381 | have hLHS_cont_via_eq : ∀ i j : Fin d, Continuous (LHSint i j) := by |
| 382 | intro i j |
| 383 | have heq_fun : LHSint i j = (fun x => T1 i j x + T2 i j x + T3 i j x + T4 i j x) := by |
| 384 | funext x |
| 385 | exact h_LHS_eq i j x |
| 386 | rw [heq_fun] |
| 387 | exact (((hT1_cont i j).add (hT2_cont i j)).add (hT3_cont i j)).add |
| 388 | (hT4_cont i j) |
| 389 | have hT1_supp : ∀ i j : Fin d, HasCompactSupport (T1 i j) := by |
| 390 | intro i j |
| 391 | have h_factor_supp : HasCompactSupport (fun x : E => (η x)^2) := h_eta_sq_supp |
| 392 | change HasCompactSupport (fun x : E => |
| 393 | Poincare.Analysis.Sobolev.translate k h |
| 394 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 395 | Poincare.Analysis.Sobolev.diffQuot k h |
| 396 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 397 | Poincare.Analysis.Sobolev.diffQuot k h |
| 398 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) |
| 399 | have h_step1 : HasCompactSupport (fun x : E => |
| 400 | Poincare.Analysis.Sobolev.translate k h |
| 401 | (fun y : E => B.a y i j) x * (η x)^2) := |
| 402 | h_eta_sq_supp.mul_left |
| 403 | have h_step2 : HasCompactSupport (fun x : E => |
| 404 | Poincare.Analysis.Sobolev.translate k h |
| 405 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 406 | Poincare.Analysis.Sobolev.diffQuot k h |
| 407 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x) := |
| 408 | h_step1.mul_right |
| 409 | exact h_step2.mul_right |
| 410 | have hT2_supp : ∀ i j : Fin d, HasCompactSupport (T2 i j) := by |
| 411 | intro i j |
| 412 | change HasCompactSupport (fun x : E => |
| 413 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 414 | (fun y : E => B.a y i j) x * (η x) * |
| 415 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 416 | Poincare.Analysis.Sobolev.diffQuot k h |
| 417 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 418 | Poincare.Analysis.Sobolev.diffQuot k h u x) |
| 419 | have h_step1 : HasCompactSupport (fun x : E => |
| 420 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 421 | (fun y : E => B.a y i j) x * (η x)) := hη_supp.mul_left |
| 422 | have h_step2 : HasCompactSupport (fun x : E => |
| 423 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 424 | (fun y : E => B.a y i j) x * (η x) * |
| 425 | ((fderiv ℝ η x) (EuclideanSpace.single j 1))) := h_step1.mul_right |
| 426 | have h_step3 : HasCompactSupport (fun x : E => |
| 427 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 428 | (fun y : E => B.a y i j) x * (η x) * |
| 429 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 430 | Poincare.Analysis.Sobolev.diffQuot k h |
| 431 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x) := |
| 432 | h_step2.mul_right |
| 433 | exact h_step3.mul_right |
| 434 | have hT3_supp : ∀ i j : Fin d, HasCompactSupport (T3 i j) := by |
| 435 | intro i j |
| 436 | change HasCompactSupport (fun x : E => |
| 437 | Poincare.Analysis.Sobolev.diffQuot k h |
| 438 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 439 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 440 | Poincare.Analysis.Sobolev.diffQuot k h |
| 441 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) |
| 442 | have h_step1 : HasCompactSupport (fun x : E => |
| 443 | Poincare.Analysis.Sobolev.diffQuot k h |
| 444 | (fun y : E => B.a y i j) x * (η x)^2) := |
| 445 | h_eta_sq_supp.mul_left |
| 446 | have h_step2 : HasCompactSupport (fun x : E => |
| 447 | Poincare.Analysis.Sobolev.diffQuot k h |
| 448 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 449 | ((fderiv ℝ u x) (EuclideanSpace.single i 1))) := |
| 450 | h_step1.mul_right |
| 451 | exact h_step2.mul_right |
| 452 | have hT4_supp : ∀ i j : Fin d, HasCompactSupport (T4 i j) := by |
| 453 | intro i j |
| 454 | change HasCompactSupport (fun x : E => |
| 455 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 456 | (fun y : E => B.a y i j) x * (η x) * |
| 457 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 458 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 459 | Poincare.Analysis.Sobolev.diffQuot k h u x) |
| 460 | have h_step1 : HasCompactSupport (fun x : E => |
| 461 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 462 | (fun y : E => B.a y i j) x * (η x)) := hη_supp.mul_left |
| 463 | have h_step2 : HasCompactSupport (fun x : E => |
| 464 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 465 | (fun y : E => B.a y i j) x * (η x) * |
| 466 | ((fderiv ℝ η x) (EuclideanSpace.single j 1))) := h_step1.mul_right |
| 467 | have h_step3 : HasCompactSupport (fun x : E => |
| 468 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 469 | (fun y : E => B.a y i j) x * (η x) * |
| 470 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 471 | ((fderiv ℝ u x) (EuclideanSpace.single i 1))) := |
| 472 | h_step2.mul_right |
| 473 | exact h_step3.mul_right |
| 474 | have hLHS_supp : ∀ i j : Fin d, HasCompactSupport (LHSint i j) := by |
| 475 | intro i j |
| 476 | have heq_fun : LHSint i j = (fun x => T1 i j x + T2 i j x + T3 i j x + T4 i j x) := by |
| 477 | funext x |
| 478 | exact h_LHS_eq i j x |
| 479 | rw [heq_fun] |
| 480 | exact (((hT1_supp i j).add (hT2_supp i j)).add (hT3_supp i j)).add |
| 481 | (hT4_supp i j) |
| 482 | have hT1_int : ∀ i j : Fin d, Integrable (T1 i j) volume := fun i j => |
| 483 | (hT1_cont i j).integrable_of_hasCompactSupport (hT1_supp i j) |
| 484 | have hT2_int : ∀ i j : Fin d, Integrable (T2 i j) volume := fun i j => |
| 485 | (hT2_cont i j).integrable_of_hasCompactSupport (hT2_supp i j) |
| 486 | have hT3_int : ∀ i j : Fin d, Integrable (T3 i j) volume := fun i j => |
| 487 | (hT3_cont i j).integrable_of_hasCompactSupport (hT3_supp i j) |
| 488 | have hT4_int : ∀ i j : Fin d, Integrable (T4 i j) volume := fun i j => |
| 489 | (hT4_cont i j).integrable_of_hasCompactSupport (hT4_supp i j) |
| 490 | have h_pair_int : ∀ i j : Fin d, |
| 491 | ∫ x, LHSint i j x ∂(volume : Measure E) = |
| 492 | ∫ x, T1 i j x ∂(volume : Measure E) + |
| 493 | ∫ x, T2 i j x ∂(volume : Measure E) + |
| 494 | ∫ x, T3 i j x ∂(volume : Measure E) + |
| 495 | ∫ x, T4 i j x ∂(volume : Measure E) := by |
| 496 | intro i j |
| 497 | have heq_fun : LHSint i j = (fun x => T1 i j x + T2 i j x + T3 i j x + T4 i j x) := by |
| 498 | funext x |
| 499 | exact h_LHS_eq i j x |
| 500 | rw [heq_fun] |
| 501 | have h_step1 : |
| 502 | ∫ x, T1 i j x + T2 i j x + T3 i j x + T4 i j x ∂(volume : Measure E) = |
| 503 | (∫ x, T1 i j x + T2 i j x + T3 i j x ∂(volume : Measure E)) + |
| 504 | ∫ x, T4 i j x ∂(volume : Measure E) := |
| 505 | integral_add ((hT1_int i j).add (hT2_int i j) |>.add (hT3_int i j)) |
| 506 | (hT4_int i j) |
| 507 | have h_step2 : |
| 508 | ∫ x, T1 i j x + T2 i j x + T3 i j x ∂(volume : Measure E) = |
| 509 | (∫ x, T1 i j x + T2 i j x ∂(volume : Measure E)) + |
| 510 | ∫ x, T3 i j x ∂(volume : Measure E) := |
| 511 | integral_add ((hT1_int i j).add (hT2_int i j)) (hT3_int i j) |
| 512 | have h_step3 : |
| 513 | ∫ x, T1 i j x + T2 i j x ∂(volume : Measure E) = |
| 514 | (∫ x, T1 i j x ∂(volume : Measure E)) + |
| 515 | ∫ x, T2 i j x ∂(volume : Measure E) := |
| 516 | integral_add (hT1_int i j) (hT2_int i j) |
| 517 | rw [h_step1, h_step2, h_step3] |
| 518 | rw [show (∑ i : Fin d, ∑ j : Fin d, ∫ x, LHSint i j x ∂(volume : Measure E)) = |
| 519 | ∑ i : Fin d, ∑ j : Fin d, (∫ x, T1 i j x ∂(volume : Measure E) + |
| 520 | ∫ x, T2 i j x ∂(volume : Measure E) + |
| 521 | ∫ x, T3 i j x ∂(volume : Measure E) + |
| 522 | ∫ x, T4 i j x ∂(volume : Measure E)) from ?_] |
| 523 | · have h_split : ∀ i : Fin d, |
| 524 | (∑ j : Fin d, (∫ x, T1 i j x ∂(volume : Measure E) + |
| 525 | ∫ x, T2 i j x ∂(volume : Measure E) + |
| 526 | ∫ x, T3 i j x ∂(volume : Measure E) + |
| 527 | ∫ x, T4 i j x ∂(volume : Measure E))) = |
| 528 | (∑ j : Fin d, ∫ x, T1 i j x ∂(volume : Measure E)) + |
| 529 | (∑ j : Fin d, ∫ x, T2 i j x ∂(volume : Measure E)) + |
| 530 | (∑ j : Fin d, ∫ x, T3 i j x ∂(volume : Measure E)) + |
| 531 | (∑ j : Fin d, ∫ x, T4 i j x ∂(volume : Measure E)) := by |
| 532 | intro i |
| 533 | rw [show (fun j : Fin d => ∫ x, T1 i j x ∂(volume : Measure E) + |
| 534 | ∫ x, T2 i j x ∂(volume : Measure E) + |
| 535 | ∫ x, T3 i j x ∂(volume : Measure E) + |
| 536 | ∫ x, T4 i j x ∂(volume : Measure E)) = |
| 537 | (fun j : Fin d => (∫ x, T1 i j x ∂(volume : Measure E) + |
| 538 | ∫ x, T2 i j x ∂(volume : Measure E) + |
| 539 | ∫ x, T3 i j x ∂(volume : Measure E)) + |
| 540 | ∫ x, T4 i j x ∂(volume : Measure E)) from rfl] |
| 541 | rw [Finset.sum_add_distrib] |
| 542 | rw [show (fun j : Fin d => ∫ x, T1 i j x ∂(volume : Measure E) + |
| 543 | ∫ x, T2 i j x ∂(volume : Measure E) + |
| 544 | ∫ x, T3 i j x ∂(volume : Measure E)) = |
| 545 | (fun j : Fin d => (∫ x, T1 i j x ∂(volume : Measure E) + |
| 546 | ∫ x, T2 i j x ∂(volume : Measure E)) + |
| 547 | ∫ x, T3 i j x ∂(volume : Measure E)) from rfl] |
| 548 | rw [Finset.sum_add_distrib] |
| 549 | rw [Finset.sum_add_distrib] |
| 550 | rw [show (fun i : Fin d => ∑ j : Fin d, (∫ x, T1 i j x ∂(volume : Measure E) + |
| 551 | ∫ x, T2 i j x ∂(volume : Measure E) + |
| 552 | ∫ x, T3 i j x ∂(volume : Measure E) + |
| 553 | ∫ x, T4 i j x ∂(volume : Measure E))) = |
| 554 | (fun i : Fin d => ((∑ j : Fin d, ∫ x, T1 i j x ∂(volume : Measure E)) + |
| 555 | (∑ j : Fin d, ∫ x, T2 i j x ∂(volume : Measure E)) + |
| 556 | (∑ j : Fin d, ∫ x, T3 i j x ∂(volume : Measure E)) + |
| 557 | (∑ j : Fin d, ∫ x, T4 i j x ∂(volume : Measure E)))) from |
| 558 | funext (fun i => h_split i)] |
| 559 | rw [show (fun i : Fin d => (∑ j : Fin d, ∫ x, T1 i j x ∂(volume : Measure E)) + |
| 560 | (∑ j : Fin d, ∫ x, T2 i j x ∂(volume : Measure E)) + |
| 561 | (∑ j : Fin d, ∫ x, T3 i j x ∂(volume : Measure E)) + |
| 562 | (∑ j : Fin d, ∫ x, T4 i j x ∂(volume : Measure E))) = |
| 563 | (fun i : Fin d => ((∑ j : Fin d, ∫ x, T1 i j x ∂(volume : Measure E)) + |
| 564 | (∑ j : Fin d, ∫ x, T2 i j x ∂(volume : Measure E)) + |
| 565 | (∑ j : Fin d, ∫ x, T3 i j x ∂(volume : Measure E))) + |
| 566 | (∑ j : Fin d, ∫ x, T4 i j x ∂(volume : Measure E))) from rfl] |
| 567 | rw [Finset.sum_add_distrib] |
| 568 | rw [show (fun i : Fin d => (∑ j : Fin d, ∫ x, T1 i j x ∂(volume : Measure E)) + |
| 569 | (∑ j : Fin d, ∫ x, T2 i j x ∂(volume : Measure E)) + |
| 570 | (∑ j : Fin d, ∫ x, T3 i j x ∂(volume : Measure E))) = |
| 571 | (fun i : Fin d => ((∑ j : Fin d, ∫ x, T1 i j x ∂(volume : Measure E)) + |
| 572 | (∑ j : Fin d, ∫ x, T2 i j x ∂(volume : Measure E))) + |
| 573 | (∑ j : Fin d, ∫ x, T3 i j x ∂(volume : Measure E))) from rfl] |
| 574 | rw [Finset.sum_add_distrib] |
| 575 | rw [Finset.sum_add_distrib] |
| 576 | · refine Finset.sum_congr rfl ?_ |
| 577 | intro i _ |
| 578 | refine Finset.sum_congr rfl ?_ |
| 579 | intro j _ |
| 580 | exact h_pair_int i j |
| 581 | |
| 582 | private theorem principal_pointwise_bound |
| 583 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 584 | (u : E → ℝ) |
| 585 | {η : E → ℝ} |
| 586 | (k : Fin d) {h : ℝ} |
| 587 | (hh_supp : Metric.cthickening |h| (tsupport η) ⊆ Ω) (x : E) : |
| 588 | B.lam * (η x)^2 * |
| 589 | ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 590 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2 ≤ |
| 591 | (η x)^2 * shiftedPrincipal B u k h x := by |
| 592 | by_cases hx : x ∈ tsupport η |
| 593 | · have hx_translate : x + h • EuclideanSpace.single k 1 ∈ Ω := by |
| 594 | apply hh_supp |
| 595 | refine Metric.mem_cthickening_of_dist_le _ x |h| (tsupport η) hx ?_ |
| 596 | have hsing_norm : |
| 597 | ‖(EuclideanSpace.single k (1 : ℝ) : E)‖ = 1 := by simp |
| 598 | have hdist_eq : |
| 599 | dist (x + h • EuclideanSpace.single k 1) x = |
| 600 | ‖h • EuclideanSpace.single k (1 : ℝ)‖ := by |
| 601 | rw [dist_eq_norm] |
| 602 | have hsub : |
| 603 | (x + h • EuclideanSpace.single k 1) - x = |
| 604 | h • EuclideanSpace.single k (1 : ℝ) := by |
| 605 | rw [add_sub_cancel_left] |
| 606 | rw [hsub] |
| 607 | rw [hdist_eq] |
| 608 | rw [norm_smul, hsing_norm, mul_one, Real.norm_eq_abs] |
| 609 | have h_bound := |
| 610 | shiftedPrincipal_ge (d := d) B u k h hx_translate |
| 611 | have h_eta_nn : 0 ≤ (η x)^2 := sq_nonneg _ |
| 612 | have h_grad_norm_sq : |
| 613 | ‖diffQuotGradient u k h x‖ ^ 2 = |
| 614 | ∑ i : Fin d, |
| 615 | Poincare.Analysis.Sobolev.diffQuot k h |
| 616 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2 := |
| 617 | diffQuotGradient_norm_sq (d := d) u k h x |
| 618 | rw [← h_grad_norm_sq] |
| 619 | have h_mul := mul_le_mul_of_nonneg_left h_bound h_eta_nn |
| 620 | have h_lhs_eq : |
| 621 | B.lam * (η x)^2 * ‖diffQuotGradient u k h x‖ ^ 2 = |
| 622 | (η x)^2 * (B.lam * ‖diffQuotGradient u k h x‖ ^ 2) := by |
| 623 | ring |
| 624 | rw [h_lhs_eq] |
| 625 | exact h_mul |
| 626 | · have hη_zero : η x = 0 := image_eq_zero_of_notMem_tsupport hx |
| 627 | rw [hη_zero] |
| 628 | simp |
| 629 | |
| 630 | |
| 631 | theorem principal_term_ge_lambda_norm_sq |
| 632 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 633 | {u : E → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) |
| 634 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 635 | (k : Fin d) {h : ℝ} |
| 636 | (hh_supp : Metric.cthickening |h| (tsupport η) ⊆ Ω) : |
| 637 | B.lam * ∫ x, (η x)^2 * (∑ i : Fin d, |
| 638 | Poincare.Analysis.Sobolev.diffQuot k h |
| 639 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) |
| 640 | ∂(volume : Measure E) ≤ |
| 641 | ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 642 | Poincare.Analysis.Sobolev.translate k h |
| 643 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 644 | Poincare.Analysis.Sobolev.diffQuot k h |
| 645 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 646 | Poincare.Analysis.Sobolev.diffQuot k h |
| 647 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 648 | ∂(volume : Measure E) := by |
| 649 | classical |
| 650 | have hu_C1 : ContDiff ℝ 1 u := hu.of_le (by norm_cast) |
| 651 | have h_eta_sq_supp : HasCompactSupport (fun y : E => η y ^ 2) := by |
| 652 | have heq : (fun y : E => η y ^ 2) = (fun y : E => η y * η y) := by |
| 653 | funext y; ring |
| 654 | rw [heq] |
| 655 | exact hη_supp.mul_right |
| 656 | have h_diffQuot_partial_u_cont : ∀ i : Fin d, |
| 657 | Continuous (Poincare.Analysis.Sobolev.diffQuot k h |
| 658 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1))) := by |
| 659 | intro i |
| 660 | have h_smooth : |
| 661 | ContDiff ℝ (⊤ : ℕ∞) |
| 662 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) := by |
| 663 | have h_fderiv_smooth : ContDiff ℝ (⊤ : ℕ∞) (fderiv ℝ u) := |
| 664 | hu.fderiv_right (m := (⊤ : ℕ∞)) (by simp) |
| 665 | have h_apply_smooth : |
| 666 | ContDiff ℝ (⊤ : ℕ∞) |
| 667 | (fun T : E →L[ℝ] ℝ => T (EuclideanSpace.single i 1)) := |
| 668 | (ContinuousLinearMap.apply ℝ ℝ |
| 669 | (EuclideanSpace.single i (1 : ℝ))).contDiff |
| 670 | exact h_apply_smooth.comp h_fderiv_smooth |
| 671 | exact continuous_diffQuot_of_contDiff (d := d) h_smooth k h |
| 672 | have h_a_cont : ∀ i j : Fin d, Continuous (fun y : E => B.a y i j) := |
| 673 | fun i j => B.continuous_a i j |
| 674 | have h_translate_a_cont : ∀ i j : Fin d, |
| 675 | Continuous (Poincare.Analysis.Sobolev.translate k h |
| 676 | (fun y : E => B.a y i j)) := |
| 677 | fun i j => continuous_translate_of_continuous (d := d) |
| 678 | (h_a_cont i j) k h |
| 679 | have h_LHS_cont : Continuous (fun x : E => |
| 680 | (η x)^2 * ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 681 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) := by |
| 682 | refine (hη.continuous.pow 2).mul ?_ |
| 683 | exact continuous_finsetSum _ (fun i _ => (h_diffQuot_partial_u_cont i).pow 2) |
| 684 | have h_LHS_supp : HasCompactSupport (fun x : E => |
| 685 | (η x)^2 * ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 686 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) := |
| 687 | h_eta_sq_supp.mul_right |
| 688 | have h_LHS_int : Integrable (fun x : E => |
| 689 | (η x)^2 * ∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 690 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) |
| 691 | volume := |
| 692 | h_LHS_cont.integrable_of_hasCompactSupport h_LHS_supp |
| 693 | have hT1_cont : ∀ i j : Fin d, Continuous (fun x : E => |
| 694 | Poincare.Analysis.Sobolev.translate k h |
| 695 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 696 | Poincare.Analysis.Sobolev.diffQuot k h |
| 697 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 698 | Poincare.Analysis.Sobolev.diffQuot k h |
| 699 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) := by |
| 700 | intro i j |
| 701 | refine ((((h_translate_a_cont i j).mul (hη.continuous.pow 2)).mul |
| 702 | (h_diffQuot_partial_u_cont i)).mul (h_diffQuot_partial_u_cont j)) |
| 703 | have hT1_supp : ∀ i j : Fin d, HasCompactSupport (fun x : E => |
| 704 | Poincare.Analysis.Sobolev.translate k h |
| 705 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 706 | Poincare.Analysis.Sobolev.diffQuot k h |
| 707 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 708 | Poincare.Analysis.Sobolev.diffQuot k h |
| 709 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) := by |
| 710 | intro i j |
| 711 | have h_step1 : HasCompactSupport (fun x : E => |
| 712 | Poincare.Analysis.Sobolev.translate k h |
| 713 | (fun y : E => B.a y i j) x * (η x)^2) := |
| 714 | h_eta_sq_supp.mul_left |
| 715 | have h_step2 : HasCompactSupport (fun x : E => |
| 716 | Poincare.Analysis.Sobolev.translate k h |
| 717 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 718 | Poincare.Analysis.Sobolev.diffQuot k h |
| 719 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x) := |
| 720 | h_step1.mul_right |
| 721 | exact h_step2.mul_right |
| 722 | have hT1_int : ∀ i j : Fin d, Integrable (fun x : E => |
| 723 | Poincare.Analysis.Sobolev.translate k h |
| 724 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 725 | Poincare.Analysis.Sobolev.diffQuot k h |
| 726 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 727 | Poincare.Analysis.Sobolev.diffQuot k h |
| 728 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) |
| 729 | volume := fun i j => |
| 730 | (hT1_cont i j).integrable_of_hasCompactSupport (hT1_supp i j) |
| 731 | have h_shiftedPrincipal_cont : |
| 732 | Continuous (fun x : E => (η x)^2 * shiftedPrincipal B u k h x) := by |
| 733 | refine (hη.continuous.pow 2).mul ?_ |
| 734 | unfold shiftedPrincipal |
| 735 | refine continuous_finsetSum _ ?_ |
| 736 | intro i _ |
| 737 | refine continuous_finsetSum _ ?_ |
| 738 | intro j _ |
| 739 | refine ((h_translate_a_cont i j).mul (h_diffQuot_partial_u_cont i)).mul |
| 740 | (h_diffQuot_partial_u_cont j) |
| 741 | have h_shiftedPrincipal_supp : |
| 742 | HasCompactSupport (fun x : E => (η x)^2 * shiftedPrincipal B u k h x) := |
| 743 | h_eta_sq_supp.mul_right |
| 744 | have h_shiftedPrincipal_int : |
| 745 | Integrable (fun x : E => (η x)^2 * shiftedPrincipal B u k h x) volume := |
| 746 | h_shiftedPrincipal_cont.integrable_of_hasCompactSupport |
| 747 | h_shiftedPrincipal_supp |
| 748 | have h_pointwise_ineq : ∀ x : E, |
| 749 | B.lam * ((η x)^2 * (∑ i : Fin d, |
| 750 | Poincare.Analysis.Sobolev.diffQuot k h |
| 751 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2)) ≤ |
| 752 | (η x)^2 * shiftedPrincipal B u k h x := by |
| 753 | intro x |
| 754 | have hpw := principal_pointwise_bound (d := d) B u (η := η) k hh_supp x |
| 755 | have h_lhs_eq : |
| 756 | B.lam * ((η x)^2 * (∑ i : Fin d, |
| 757 | Poincare.Analysis.Sobolev.diffQuot k h |
| 758 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2)) = |
| 759 | B.lam * (η x)^2 * (∑ i : Fin d, |
| 760 | Poincare.Analysis.Sobolev.diffQuot k h |
| 761 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) := by |
| 762 | ring |
| 763 | rw [h_lhs_eq] |
| 764 | exact hpw |
| 765 | have h_lhs_factor : |
| 766 | B.lam * ∫ x, (η x)^2 * |
| 767 | (∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 768 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) |
| 769 | ∂(volume : Measure E) = |
| 770 | ∫ x, B.lam * ((η x)^2 * |
| 771 | (∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 772 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2)) |
| 773 | ∂(volume : Measure E) := by |
| 774 | rw [integral_const_mul] |
| 775 | rw [h_lhs_factor] |
| 776 | have h_LHS_int_mul : |
| 777 | Integrable (fun x : E => B.lam * ((η x)^2 * |
| 778 | (∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 779 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2))) |
| 780 | volume := h_LHS_int.const_mul B.lam |
| 781 | have h_int_le : |
| 782 | ∫ x, B.lam * ((η x)^2 * |
| 783 | (∑ i : Fin d, Poincare.Analysis.Sobolev.diffQuot k h |
| 784 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2)) |
| 785 | ∂(volume : Measure E) ≤ |
| 786 | ∫ x, (η x)^2 * shiftedPrincipal B u k h x ∂(volume : Measure E) := |
| 787 | integral_mono h_LHS_int_mul h_shiftedPrincipal_int h_pointwise_ineq |
| 788 | refine h_int_le.trans ?_ |
| 789 | have h_pointwise_eq : ∀ x : E, |
| 790 | (η x)^2 * shiftedPrincipal B u k h x = |
| 791 | ∑ i : Fin d, ∑ j : Fin d, |
| 792 | Poincare.Analysis.Sobolev.translate k h |
| 793 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 794 | Poincare.Analysis.Sobolev.diffQuot k h |
| 795 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 796 | Poincare.Analysis.Sobolev.diffQuot k h |
| 797 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x := by |
| 798 | intro x |
| 799 | unfold shiftedPrincipal |
| 800 | rw [Finset.mul_sum] |
| 801 | refine Finset.sum_congr rfl ?_ |
| 802 | intro i _ |
| 803 | rw [Finset.mul_sum] |
| 804 | refine Finset.sum_congr rfl ?_ |
| 805 | intro j _ |
| 806 | ring |
| 807 | have h_eq_fun : |
| 808 | (fun x : E => (η x)^2 * shiftedPrincipal B u k h x) = |
| 809 | (fun x : E => ∑ i : Fin d, ∑ j : Fin d, |
| 810 | Poincare.Analysis.Sobolev.translate k h |
| 811 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 812 | Poincare.Analysis.Sobolev.diffQuot k h |
| 813 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 814 | Poincare.Analysis.Sobolev.diffQuot k h |
| 815 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) := by |
| 816 | funext x |
| 817 | exact h_pointwise_eq x |
| 818 | rw [h_eq_fun] |
| 819 | have h_inner_int : ∀ i : Fin d, |
| 820 | Integrable (fun x : E => ∑ j : Fin d, |
| 821 | Poincare.Analysis.Sobolev.translate k h |
| 822 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 823 | Poincare.Analysis.Sobolev.diffQuot k h |
| 824 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 825 | Poincare.Analysis.Sobolev.diffQuot k h |
| 826 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) |
| 827 | volume := |
| 828 | fun i => integrable_finsetSum _ (fun j _ => hT1_int i j) |
| 829 | rw [show (fun x : E => ∑ i : Fin d, ∑ j : Fin d, |
| 830 | Poincare.Analysis.Sobolev.translate k h |
| 831 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 832 | Poincare.Analysis.Sobolev.diffQuot k h |
| 833 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 834 | Poincare.Analysis.Sobolev.diffQuot k h |
| 835 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x) = |
| 836 | (fun x : E => ∑ i : Fin d, (fun y : E => ∑ j : Fin d, |
| 837 | Poincare.Analysis.Sobolev.translate k h |
| 838 | (fun z : E => B.a z i j) y * (η y)^2 * |
| 839 | Poincare.Analysis.Sobolev.diffQuot k h |
| 840 | (fun z : E => (fderiv ℝ u z) (EuclideanSpace.single i 1)) y * |
| 841 | Poincare.Analysis.Sobolev.diffQuot k h |
| 842 | (fun z : E => (fderiv ℝ u z) (EuclideanSpace.single j 1)) y) x) |
| 843 | from rfl] |
| 844 | rw [integral_finsetSum _ (fun i _ => h_inner_int i)] |
| 845 | refine le_of_eq ?_ |
| 846 | refine Finset.sum_congr rfl ?_ |
| 847 | intro i _ |
| 848 | rw [show (fun y : E => ∑ j : Fin d, |
| 849 | Poincare.Analysis.Sobolev.translate k h |
| 850 | (fun z : E => B.a z i j) y * (η y)^2 * |
| 851 | Poincare.Analysis.Sobolev.diffQuot k h |
| 852 | (fun z : E => (fderiv ℝ u z) (EuclideanSpace.single i 1)) y * |
| 853 | Poincare.Analysis.Sobolev.diffQuot k h |
| 854 | (fun z : E => (fderiv ℝ u z) (EuclideanSpace.single j 1)) y) = |
| 855 | (fun y : E => ∑ j : Fin d, (fun z : E => |
| 856 | Poincare.Analysis.Sobolev.translate k h |
| 857 | (fun w : E => B.a w i j) z * (η z)^2 * |
| 858 | Poincare.Analysis.Sobolev.diffQuot k h |
| 859 | (fun w : E => (fderiv ℝ u w) (EuclideanSpace.single i 1)) z * |
| 860 | Poincare.Analysis.Sobolev.diffQuot k h |
| 861 | (fun w : E => (fderiv ℝ u w) (EuclideanSpace.single j 1)) z) y) |
| 862 | from rfl] |
| 863 | rw [integral_finsetSum _ (fun j _ => hT1_int i j)] |
| 864 | |
| 865 | theorem nirenberg_master_inequality |
| 866 | {Ω : Set E} (B : SmoothEllipticBilinearForm d Ω) |
| 867 | {u f : E → ℝ} |
| 868 | (h_weak : B.IsSmoothWeakSolution u f) |
| 869 | {η : E → ℝ} (hη : ContDiff ℝ (⊤ : ℕ∞) η) (hη_supp : HasCompactSupport η) |
| 870 | (k : Fin d) {h : ℝ} (hh : h ≠ 0) |
| 871 | (hh_supp : Metric.cthickening |h| (tsupport η) ⊆ Ω) : |
| 872 | B.lam * ∫ x, (η x)^2 * (∑ i : Fin d, |
| 873 | Poincare.Analysis.Sobolev.diffQuot k h |
| 874 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) |
| 875 | ∂(volume : Measure E) ≤ |
| 876 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 877 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 878 | (fun y : E => B.a y i j) x * (η x) * |
| 879 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 880 | Poincare.Analysis.Sobolev.diffQuot k h |
| 881 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 882 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 883 | ∂(volume : Measure E)| + |
| 884 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 885 | Poincare.Analysis.Sobolev.diffQuot k h |
| 886 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 887 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 888 | Poincare.Analysis.Sobolev.diffQuot k h |
| 889 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 890 | ∂(volume : Measure E)| + |
| 891 | |∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 892 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 893 | (fun y : E => B.a y i j) x * (η x) * |
| 894 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 895 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 896 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 897 | ∂(volume : Measure E)| + |
| 898 | |∫ x in Ω, f x * nirenbergTestFunction k h η u x| + |
| 899 | |∫ x in Ω, B.c x * u x * nirenbergTestFunction k h η u x| := by |
| 900 | classical |
| 901 | have hu : ContDiff ℝ (⊤ : ℕ∞) u := h_weak.1 |
| 902 | have h_sub := |
| 903 | nirenberg_substitution_identity (d := d) B h_weak hη hη_supp k hh hh_supp |
| 904 | set S : ℝ := ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 905 | Poincare.Analysis.Sobolev.diffQuot k h |
| 906 | (fun y : E => B.a y i j * |
| 907 | ((fderiv ℝ u y) (EuclideanSpace.single i 1))) x * |
| 908 | ((fderiv ℝ |
| 909 | (fun y : E => η y ^ 2 * |
| 910 | Poincare.Analysis.Sobolev.diffQuot k h u y) x) |
| 911 | (EuclideanSpace.single j 1)) |
| 912 | ∂(volume : Measure E) with hS_def |
| 913 | set Q : ℝ := ∫ x in Ω, B.c x * u x * nirenbergTestFunction k h η u x |
| 914 | with hQ_def |
| 915 | set R : ℝ := ∫ x in Ω, f x * nirenbergTestFunction k h η u x |
| 916 | with hR_def |
| 917 | have h_sub_S : -S + Q = R := h_sub |
| 918 | set P : ℝ := ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 919 | Poincare.Analysis.Sobolev.translate k h |
| 920 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 921 | Poincare.Analysis.Sobolev.diffQuot k h |
| 922 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 923 | Poincare.Analysis.Sobolev.diffQuot k h |
| 924 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 925 | ∂(volume : Measure E) with hP_def |
| 926 | set C1 : ℝ := ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 927 | 2 * Poincare.Analysis.Sobolev.translate k h |
| 928 | (fun y : E => B.a y i j) x * (η x) * |
| 929 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 930 | Poincare.Analysis.Sobolev.diffQuot k h |
| 931 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x * |
| 932 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 933 | ∂(volume : Measure E) with hC1_def |
| 934 | set C2 : ℝ := ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 935 | Poincare.Analysis.Sobolev.diffQuot k h |
| 936 | (fun y : E => B.a y i j) x * (η x)^2 * |
| 937 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 938 | Poincare.Analysis.Sobolev.diffQuot k h |
| 939 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single j 1)) x |
| 940 | ∂(volume : Measure E) with hC2_def |
| 941 | set C3 : ℝ := ∑ i : Fin d, ∑ j : Fin d, ∫ x, |
| 942 | 2 * Poincare.Analysis.Sobolev.diffQuot k h |
| 943 | (fun y : E => B.a y i j) x * (η x) * |
| 944 | ((fderiv ℝ η x) (EuclideanSpace.single j 1)) * |
| 945 | ((fderiv ℝ u x) (EuclideanSpace.single i 1)) * |
| 946 | Poincare.Analysis.Sobolev.diffQuot k h u x |
| 947 | ∂(volume : Measure E) with hC3_def |
| 948 | have h_decomp : S = P + C1 + C2 + C3 := |
| 949 | nirenberg_principal_decomposition (d := d) B hu hη hη_supp k hh |
| 950 | set L : ℝ := B.lam * ∫ x, (η x)^2 * (∑ i : Fin d, |
| 951 | Poincare.Analysis.Sobolev.diffQuot k h |
| 952 | (fun y : E => (fderiv ℝ u y) (EuclideanSpace.single i 1)) x ^ 2) |
| 953 | ∂(volume : Measure E) with hL_def |
| 954 | have h_coerc : L ≤ P := |
| 955 | principal_term_ge_lambda_norm_sq (d := d) B hu hη hη_supp k hh_supp |
| 956 | have h_S_eq : S = Q - R := by |
| 957 | have := h_sub_S |
| 958 | linarith |
| 959 | have h_P_eq : P = S - C1 - C2 - C3 := by |
| 960 | have := h_decomp |
| 961 | linarith |
| 962 | have h_chain : L ≤ -C1 - C2 - C3 - R + Q := by |
| 963 | have hP : P = -C1 - C2 - C3 - R + Q := by |
| 964 | rw [h_P_eq, h_S_eq]; ring |
| 965 | rw [hP] at h_coerc |
| 966 | exact h_coerc |
| 967 | have h_abs : -C1 - C2 - C3 - R + Q ≤ |
| 968 | |C1| + |C2| + |C3| + |R| + |Q| := by |
| 969 | have h1 : -C1 ≤ |C1| := by |
| 970 | have h := neg_abs_le C1 |
| 971 | linarith [abs_nonneg C1] |
| 972 | have h2 : -C2 ≤ |C2| := by |
| 973 | have h := neg_abs_le C2 |
| 974 | linarith [abs_nonneg C2] |
| 975 | have h3 : -C3 ≤ |C3| := by |
| 976 | have h := neg_abs_le C3 |
| 977 | linarith [abs_nonneg C3] |
| 978 | have h4 : -R ≤ |R| := by |
| 979 | have h := neg_abs_le R |
| 980 | linarith [abs_nonneg R] |
| 981 | have h5 : Q ≤ |Q| := le_abs_self Q |
| 982 | linarith |
| 983 | exact h_chain.trans h_abs |
| 984 | |
| 985 | end Poincare.Analysis.Sobolev.NirenbergCoercivity |