Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #194 chore(NavierStokes/Flat): delete 64 declarations nothing uses
1 commit
+0 −387 NavierStokes/FlatCovariance.lean View file
| @@ -50,15 +50,6 @@ def signedAmplitude (σ τ : ℝ) (κ : Vec2) (G : ℝ → Mat2) | ||
| 50 | 50 | (T R : ℝ → Vec2) (x : ℝ) : Vec2 := |
| 51 | 51 | fun i => inverseCoefficients τ κ G R x i / (2 * primaryAmplitude σ κ G T x i) |
| 52 | 52 | |
| 53 | -theorem sqrt_edge (c x : ℝ) : Real.sqrt (edge c x) = edge (c / 2) x := by | |
| 54 | - by_cases hx : x ≤ 0 | |
| 55 | - · simp [FlatCutoff.edge_of_nonpos c hx, FlatCutoff.edge_of_nonpos (c / 2) hx] | |
| 56 | - · have hp : 0 < x := lt_of_not_ge hx | |
| 57 | - rw [FlatCutoff.edge_of_pos c hp, FlatCutoff.edge_of_pos (c / 2) hp, | |
| 58 | - ← Real.exp_half] | |
| 59 | - congr 1 | |
| 60 | - ring | |
| 61 | - | |
| 62 | 53 | theorem edge_mul (c d x : ℝ) : edge c x * edge d x = edge (c + d) x := by |
| 63 | 54 | by_cases hx : x ≤ 0 |
| 64 | 55 | · simp [FlatCutoff.edge_of_nonpos c hx, FlatCutoff.edge_of_nonpos d hx, |
| @@ -69,17 +60,6 @@ theorem edge_mul (c d x : ℝ) : edge c x * edge d x = edge (c + d) x := by | ||
| 69 | 60 | congr 1 |
| 70 | 61 | ring |
| 71 | 62 | |
| 72 | -theorem edge_sq (c x : ℝ) : edge c x ^ 2 = edge (2 * c) x := by | |
| 73 | - rw [pow_two, edge_mul] | |
| 74 | - congr 1 | |
| 75 | - ring | |
| 76 | - | |
| 77 | -theorem squared_column_factors (lam : Vec2) (G : ℝ → Mat2) (x : ℝ) : | |
| 78 | - columns (G x) (fun j => edge (lam j) x ^ 2) = | |
| 79 | - edgeMatrix (fun j => 2 * lam j) G x := by | |
| 80 | - ext i j | |
| 81 | - simp only [columns, edgeMatrix, edge_sq] | |
| 82 | - | |
| 83 | 63 | theorem determinant_columns (G : Mat2) (c : Vec2) : |
| 84 | 64 | (columns G c).det = c 0 * c 1 * G.det := by |
| 85 | 65 | simp only [Matrix.det_fin_two, columns] |
| @@ -120,11 +100,6 @@ theorem primaryAmplitude_of_nonpos (σ : ℝ) (κ : Vec2) | ||
| 120 | 100 | primaryAmplitude σ κ G T x i = 0 := by |
| 121 | 101 | simp [primaryAmplitude, inverseCoefficients_of_nonpos σ κ G T hx] |
| 122 | 102 | |
| 123 | -theorem signedAmplitude_of_nonpos (σ τ : ℝ) (κ : Vec2) | |
| 124 | - (G : ℝ → Mat2) (T R : ℝ → Vec2) {x : ℝ} (hx : x ≤ 0) (i : Fin 2) : | |
| 125 | - signedAmplitude σ τ κ G T R x i = 0 := by | |
| 126 | - simp [signedAmplitude, inverseCoefficients_of_nonpos τ κ G R hx] | |
| 127 | - | |
| 128 | 103 | /-- Exact cancellation of the column exponential in the actual inverse. |
| 129 | 104 | This identity includes the edge and the full zero half-line. -/ |
| 130 | 105 | theorem inverseCoefficients_factor (σ : ℝ) (κ : Vec2) |
| @@ -144,54 +119,6 @@ theorem inverseCoefficients_factor (σ : ℝ) (κ : Vec2) | ||
| 144 | 119 | (fun j => ne_of_gt (FlatCutoff.edge_pos (κ j) hp)) i] |
| 145 | 120 | rw [congrFun (FlatCutoff.edge_div_edge σ (κ i)) x] |
| 146 | 121 | |
| 147 | -/-- Taking the square root halves the *remaining* exponential exponent. -/ | |
| 148 | -theorem primaryAmplitude_factor (σ : ℝ) (κ : Vec2) | |
| 149 | - (G : ℝ → Mat2) (T : ℝ → Vec2) {x : ℝ} (hG : (G x).det ≠ 0) (i : Fin 2) : | |
| 150 | - primaryAmplitude σ κ G T x i = edge ((σ - κ i) / 2) x * | |
| 151 | - SmoothCovariance.amplitudes (G x) (T x) i := by | |
| 152 | - unfold primaryAmplitude | |
| 153 | - rw [inverseCoefficients_factor σ κ G T hG i, | |
| 154 | - Real.sqrt_mul (FlatCutoff.edge_nonneg (σ - κ i) x), sqrt_edge] | |
| 155 | - rfl | |
| 156 | - | |
| 157 | -/-- The signed update retains the explicitly computed exponential margin; | |
| 158 | -the target `R` may have either sign. -/ | |
| 159 | -theorem signedAmplitude_factor (σ τ : ℝ) (κ : Vec2) | |
| 160 | - (G : ℝ → Mat2) (T R : ℝ → Vec2) {x : ℝ} (hG : (G x).det ≠ 0) (i : Fin 2) : | |
| 161 | - signedAmplitude σ τ κ G T R x i = edge (τ - (σ + κ i) / 2) x * | |
| 162 | - (SmoothCovariance.weights (G x) (R x) i / | |
| 163 | - (2 * SmoothCovariance.amplitudes (G x) (T x) i)) := by | |
| 164 | - unfold signedAmplitude | |
| 165 | - rw [inverseCoefficients_factor τ κ G R hG i, primaryAmplitude_factor σ κ G T hG i] | |
| 166 | - calc | |
| 167 | - _ = (edge (τ - κ i) x / edge ((σ - κ i) / 2) x) * | |
| 168 | - (SmoothCovariance.weights (G x) (R x) i / | |
| 169 | - (2 * SmoothCovariance.amplitudes (G x) (T x) i)) := by | |
| 170 | - simp only [div_eq_mul_inv, _root_.mul_inv_rev] | |
| 171 | - ring | |
| 172 | - _ = _ := by | |
| 173 | - rw [congrFun (FlatCutoff.edge_div_edge (τ - κ i) ((σ - κ i) / 2)) x] | |
| 174 | - congr 2 | |
| 175 | - ring | |
| 176 | - | |
| 177 | -/-- Exact linearity in a scalar target factor, with no regularity or | |
| 178 | -nonvanishing assumption on that factor. -/ | |
| 179 | -theorem inverseCoefficients_target_factor (σ : ℝ) (κ : Vec2) | |
| 180 | - (G : ℝ → Mat2) (T : ℝ → Vec2) (f : ℝ → ℝ) (x : ℝ) (i : Fin 2) : | |
| 181 | - inverseCoefficients σ κ G (fun y j => f y * T y j) x i = | |
| 182 | - f x * inverseCoefficients σ κ G T x i := by | |
| 183 | - simp only [inverseCoefficients, edgeTarget, scaledTarget, Matrix.mulVec, | |
| 184 | - dotProduct, Fin.sum_univ_two] | |
| 185 | - ring | |
| 186 | - | |
| 187 | -theorem signedAmplitude_target_factor (σ τ : ℝ) (κ : Vec2) | |
| 188 | - (G : ℝ → Mat2) (T R : ℝ → Vec2) (f : ℝ → ℝ) (x : ℝ) (i : Fin 2) : | |
| 189 | - signedAmplitude σ τ κ G T (fun y j => f y * R y j) x i = | |
| 190 | - f x * signedAmplitude σ τ κ G T R x i := by | |
| 191 | - unfold signedAmplitude | |
| 192 | - rw [inverseCoefficients_target_factor] | |
| 193 | - ring | |
| 194 | - | |
| 195 | 122 | theorem inverseCoefficients_pos {σ : ℝ} {κ : Vec2} |
| 196 | 123 | {G : ℝ → Mat2} {T : ℝ → Vec2} {x : ℝ} |
| 197 | 124 | (hcone : SmoothCovariance.StrictCone (G x) (T x)) (hx : 0 < x) (i : Fin 2) : |
| @@ -220,23 +147,6 @@ theorem inverse_reconstruct (σ : ℝ) (κ : Vec2) | ||
| 220 | 147 | Matrix.mul_nonsing_inv _ (isUnit_iff_ne_zero.mpr (edgeMatrix_det_ne_zero hG hp)), |
| 221 | 148 | Matrix.one_mulVec] |
| 222 | 149 | |
| 223 | -theorem primary_reconstruct {σ : ℝ} {κ : Vec2} | |
| 224 | - {G : ℝ → Mat2} {T : ℝ → Vec2} {x : ℝ} | |
| 225 | - (hcone : SmoothCovariance.StrictCone (G x) (T x)) : | |
| 226 | - (edgeMatrix κ G x).mulVec (fun i => primaryAmplitude σ κ G T x i ^ 2) = | |
| 227 | - edgeTarget σ T x := by | |
| 228 | - have hy : ∀ i, 0 ≤ inverseCoefficients σ κ G T x i := by | |
| 229 | - intro i | |
| 230 | - by_cases hx : x ≤ 0 | |
| 231 | - · simp [inverseCoefficients_of_nonpos σ κ G T hx] | |
| 232 | - · exact le_of_lt (inverseCoefficients_pos hcone (lt_of_not_ge hx) i) | |
| 233 | - have hs : (fun i => primaryAmplitude σ κ G T x i ^ 2) = | |
| 234 | - inverseCoefficients σ κ G T x := by | |
| 235 | - funext i | |
| 236 | - exact Real.sq_sqrt (hy i) | |
| 237 | - rw [hs] | |
| 238 | - exact inverse_reconstruct σ κ G T hcone.det_ne_zero | |
| 239 | - | |
| 240 | 150 | /-- Exact two-sided cross covariance of the primary and signed increment. -/ |
| 241 | 151 | theorem signed_cross_reconstruct {σ τ : ℝ} {κ : Vec2} |
| 242 | 152 | {G : ℝ → Mat2} {T R : ℝ → Vec2} {x : ℝ} |
| @@ -263,317 +173,20 @@ section Smooth | ||
| 263 | 173 | variable {s : Set ℝ} {σ τ : ℝ} {κ : Vec2} |
| 264 | 174 | variable {G : ℝ → Mat2} {T R : ℝ → Vec2} |
| 265 | 175 | |
| 266 | -theorem edgeMatrix_contDiffOn | |
| 267 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 268 | - (hκ : ∀ i, 0 < κ i) (i j : Fin 2) : | |
| 269 | - ContDiffOn ℝ ∞ (fun x => edgeMatrix κ G x i j) s := | |
| 270 | - (FlatCutoff.edge_contDiff (hκ j) (n := ⊤)).contDiffOn.mul (hG i j) | |
| 271 | - | |
| 272 | -theorem edgeTarget_contDiffOn | |
| 273 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 274 | - (hσ : 0 < σ) (i : Fin 2) : | |
| 275 | - ContDiffOn ℝ ∞ (fun x => edgeTarget σ T x i) s := | |
| 276 | - (FlatCutoff.edge_contDiff hσ (n := ⊤)).contDiffOn.mul (hT i) | |
| 277 | - | |
| 278 | -/-- Smooth inverse coefficients at the edge, proved by the surviving | |
| 279 | -exponential factor even though the actual matrix degenerates there. -/ | |
| 280 | -theorem inverseCoefficients_contDiffOn | |
| 281 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 282 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 283 | - (hdet : ∀ x ∈ s, (G x).det ≠ 0) | |
| 284 | - (hgap : ∀ i, κ i < σ) (i : Fin 2) : | |
| 285 | - ContDiffOn ℝ ∞ (fun x => inverseCoefficients σ κ G T x i) s := by | |
| 286 | - apply ((FlatCutoff.edge_contDiff (sub_pos.mpr (hgap i)) (n := ⊤)).contDiffOn.mul | |
| 287 | - (SmoothCovariance.contDiffOn_weights hG hT hdet i)).congr | |
| 288 | - intro x hx | |
| 289 | - exact inverseCoefficients_factor σ κ G T (hdet x hx) i | |
| 290 | - | |
| 291 | -theorem primaryAmplitude_contDiffOn | |
| 292 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 293 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 294 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) | |
| 295 | - (hgap : ∀ i, κ i < σ) (i : Fin 2) : | |
| 296 | - ContDiffOn ℝ ∞ (fun x => primaryAmplitude σ κ G T x i) s := by | |
| 297 | - have hp : 0 < (σ - κ i) / 2 := by linarith [hgap i] | |
| 298 | - apply ((FlatCutoff.edge_contDiff hp (n := ⊤)).contDiffOn.mul | |
| 299 | - (SmoothCovariance.contDiffOn_amplitudes hG hT hcone i)).congr | |
| 300 | - intro x hx | |
| 301 | - exact primaryAmplitude_factor σ κ G T (hcone x hx).det_ne_zero i | |
| 302 | - | |
| 303 | -/-- Every fixed inverse-power loss is absorbed by the concrete primary | |
| 304 | -exponential, including at zero. -/ | |
| 305 | -theorem primaryAmplitude_div_pow_contDiffOn | |
| 306 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 307 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 308 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) | |
| 309 | - (hgap : ∀ i, κ i < σ) (i : Fin 2) (loss : ℕ) : | |
| 310 | - ContDiffOn ℝ ∞ (fun x => primaryAmplitude σ κ G T x i / x ^ loss) s := by | |
| 311 | - have hp : 0 < (σ - κ i) / 2 := by linarith [hgap i] | |
| 312 | - apply ((FlatCutoff.edge_div_pow_contDiff hp loss (n := ⊤)).contDiffOn.mul | |
| 313 | - (SmoothCovariance.contDiffOn_amplitudes hG hT hcone i)).congr | |
| 314 | - intro x hx | |
| 315 | - rw [primaryAmplitude_factor σ κ G T (hcone x hx).det_ne_zero i] | |
| 316 | - ring | |
| 317 | - | |
| 318 | -/-- The normalized signed quotient is smooth because its denominator is | |
| 319 | -proved strictly positive from the explicit normalized cone. -/ | |
| 320 | -theorem signed_normal_contDiffOn | |
| 321 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 322 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 323 | - (hR : ∀ i, ContDiffOn ℝ ∞ (fun x => R x i) s) | |
| 324 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) (i : Fin 2) : | |
| 325 | - ContDiffOn ℝ ∞ (fun x => SmoothCovariance.weights (G x) (R x) i / | |
| 326 | - (2 * SmoothCovariance.amplitudes (G x) (T x) i)) s := by | |
| 327 | - apply (SmoothCovariance.contDiffOn_weights hG hR | |
| 328 | - (fun x hx => (hcone x hx).det_ne_zero) i).div | |
| 329 | - (contDiffOn_const.mul (SmoothCovariance.contDiffOn_amplitudes hG hT hcone i)) | |
| 330 | - intro x hx | |
| 331 | - exact mul_ne_zero (by norm_num) (ne_of_gt ((hcone x hx).amplitudes_pos i)) | |
| 332 | - | |
| 333 | -theorem signedAmplitude_contDiffOn | |
| 334 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 335 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 336 | - (hR : ∀ i, ContDiffOn ℝ ∞ (fun x => R x i) s) | |
| 337 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) | |
| 338 | - (hgap : ∀ i, (σ + κ i) / 2 < τ) (i : Fin 2) : | |
| 339 | - ContDiffOn ℝ ∞ (fun x => signedAmplitude σ τ κ G T R x i) s := by | |
| 340 | - apply ((FlatCutoff.edge_contDiff (sub_pos.mpr (hgap i)) (n := ⊤)).contDiffOn.mul | |
| 341 | - (signed_normal_contDiffOn hG hT hR hcone i)).congr | |
| 342 | - intro x hx | |
| 343 | - exact signedAmplitude_factor σ τ κ G T R (hcone x hx).det_ne_zero i | |
| 344 | - | |
| 345 | -theorem signedAmplitude_div_pow_contDiffOn | |
| 346 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 347 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 348 | - (hR : ∀ i, ContDiffOn ℝ ∞ (fun x => R x i) s) | |
| 349 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) | |
| 350 | - (hgap : ∀ i, (σ + κ i) / 2 < τ) (i : Fin 2) (loss : ℕ) : | |
| 351 | - ContDiffOn ℝ ∞ (fun x => signedAmplitude σ τ κ G T R x i / x ^ loss) s := by | |
| 352 | - apply ((FlatCutoff.edge_div_pow_contDiff (sub_pos.mpr (hgap i)) loss (n := ⊤)).contDiffOn.mul | |
| 353 | - (signed_normal_contDiffOn hG hT hR hcone i)).congr | |
| 354 | - intro x hx | |
| 355 | - rw [signedAmplitude_factor σ τ κ G T R (hcone x hx).det_ne_zero i] | |
| 356 | - ring | |
| 357 | - | |
| 358 | -/-- An actual signed-stress numerator with an inverse-power loss still gives | |
| 359 | -a smooth signed amplitude. Smoothness of the singular quotient is a result. -/ | |
| 360 | -theorem signed_inverse_power_target_contDiffOn | |
| 361 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 362 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 363 | - (hR : ∀ i, ContDiffOn ℝ ∞ (fun x => R x i) s) | |
| 364 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) | |
| 365 | - (hgap : ∀ i, (σ + κ i) / 2 < τ) (i : Fin 2) (loss : ℕ) : | |
| 366 | - ContDiffOn ℝ ∞ (fun x => signedAmplitude σ τ κ G T | |
| 367 | - (fun y j => (y ^ loss)⁻¹ * R y j) x i) s := by | |
| 368 | - apply (signedAmplitude_div_pow_contDiffOn hG hT hR hcone hgap i loss).congr | |
| 369 | - intro x hx | |
| 370 | - rw [signedAmplitude_target_factor] | |
| 371 | - simp only [div_eq_mul_inv] | |
| 372 | - ring | |
| 373 | - | |
| 374 | -/-- When a fundamental column factor is `edge λᵢ` and covariance therefore | |
| 375 | -carries its square, the concrete condition is exactly `λᵢ < σ / 2`. A signed | |
| 376 | -stress with the same target envelope retains the same flat exponent. -/ | |
| 377 | -theorem squared_factors_smooth {lam : Vec2} | |
| 378 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 379 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 380 | - (hR : ∀ i, ContDiffOn ℝ ∞ (fun x => R x i) s) | |
| 381 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) | |
| 382 | - (hgap : ∀ i, lam i < σ / 2) (i : Fin 2) (loss : ℕ) : | |
| 383 | - ContDiffOn ℝ ∞ (fun x => primaryAmplitude σ (fun j => 2 * lam j) G T x i / x ^ loss) s ∧ | |
| 384 | - ContDiffOn ℝ ∞ (fun x => signedAmplitude σ σ (fun j => 2 * lam j) G T R x i / x ^ loss) s := by | |
| 385 | - constructor | |
| 386 | - · exact primaryAmplitude_div_pow_contDiffOn hG hT hcone | |
| 387 | - (fun j => by linarith [hgap j]) i loss | |
| 388 | - · exact signedAmplitude_div_pow_contDiffOn hG hT hR hcone | |
| 389 | - (fun j => by linarith [hgap j]) i loss | |
| 390 | - | |
| 391 | -/-- The requested stricter half-exponent condition also suffices when the | |
| 392 | -exponential appears directly in a covariance column, without a square. -/ | |
| 393 | -theorem direct_half_factors_smooth | |
| 394 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun x => G x i j) s) | |
| 395 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun x => T x i) s) | |
| 396 | - (hR : ∀ i, ContDiffOn ℝ ∞ (fun x => R x i) s) | |
| 397 | - (hcone : ∀ x ∈ s, SmoothCovariance.StrictCone (G x) (T x)) | |
| 398 | - (hσ : 0 < σ) (hgap : ∀ i, κ i < σ / 2) (i : Fin 2) (loss : ℕ) : | |
| 399 | - ContDiffOn ℝ ∞ (fun x => primaryAmplitude σ κ G T x i / x ^ loss) s ∧ | |
| 400 | - ContDiffOn ℝ ∞ (fun x => signedAmplitude σ σ κ G T R x i / x ^ loss) s := by | |
| 401 | - constructor | |
| 402 | - · exact primaryAmplitude_div_pow_contDiffOn hG hT hcone | |
| 403 | - (fun j => by linarith [hgap j]) i loss | |
| 404 | - · exact signedAmplitude_div_pow_contDiffOn hG hT hR hcone | |
| 405 | - (fun j => by linarith [hgap j]) i loss | |
| 406 | - | |
| 407 | 176 | end Smooth |
| 408 | 177 | |
| 409 | -/-- Concrete compact-family lower bounds with the vanishing factors left | |
| 410 | -explicit. In particular the primary square-root denominator is controlled. -/ | |
| 411 | -theorem compact_weighted_lower_bounds {K : Set ℝ} (hK : IsCompact K) | |
| 412 | - {σ : ℝ} {κ : Vec2} {G : ℝ → Mat2} {T : ℝ → Vec2} | |
| 413 | - (hG : ∀ i j, ContinuousOn (fun x => G x i j) K) | |
| 414 | - (hT : ∀ i, ContinuousOn (fun x => T x i) K) | |
| 415 | - (hcone : ∀ x ∈ K, SmoothCovariance.StrictCone (G x) (T x)) : | |
| 416 | - ∃ δ : ℝ, 0 < δ ∧ ∀ x ∈ K, ∀ i, | |
| 417 | - δ * edge (σ - κ i) x ≤ inverseCoefficients σ κ G T x i ∧ | |
| 418 | - δ * edge ((σ - κ i) / 2) x ≤ primaryAmplitude σ κ G T x i := by | |
| 419 | - obtain ⟨δ, hδ, hbound⟩ := SmoothCovariance.compact_uniform_amplitudes hK hG hT hcone | |
| 420 | - refine ⟨δ, hδ, ?_⟩ | |
| 421 | - intro x hx i | |
| 422 | - rw [inverseCoefficients_factor σ κ G T (hcone x hx).det_ne_zero i, | |
| 423 | - primaryAmplitude_factor σ κ G T (hcone x hx).det_ne_zero i] | |
| 424 | - constructor | |
| 425 | - · simpa only [mul_comm] using mul_le_mul_of_nonneg_left ((hbound x hx).2 i).1 | |
| 426 | - (FlatCutoff.edge_nonneg (σ - κ i) x) | |
| 427 | - · simpa only [mul_comm] using mul_le_mul_of_nonneg_left ((hbound x hx).2 i).2 | |
| 428 | - (FlatCutoff.edge_nonneg ((σ - κ i) / 2) x) | |
| 429 | - | |
| 430 | -/-- A smooth function that is zero on the nonpositive half-line has every | |
| 431 | -derivative zero at the joining point. -/ | |
| 432 | -theorem iteratedDeriv_zero_of_nonpos_zero {f : ℝ → ℝ} | |
| 433 | - (hf : ContDiff ℝ ∞ f) (hzero : ∀ x ≤ 0, f x = 0) (n : ℕ) : | |
| 434 | - iteratedDeriv n f 0 = 0 := by | |
| 435 | - have hz : iteratedDeriv n (fun _ : ℝ => (0 : ℝ)) = fun _ => 0 := by | |
| 436 | - induction n with | |
| 437 | - | zero => rw [iteratedDeriv_zero] | |
| 438 | - | succ n ih => | |
| 439 | - rw [iteratedDeriv_succ, ih] | |
| 440 | - funext x | |
| 441 | - exact deriv_const x 0 | |
| 442 | - have heq : EqOn f (fun _ : ℝ => (0 : ℝ)) (Iio 0) := | |
| 443 | - fun x hx => hzero x hx.le | |
| 444 | - have hd := heq.iteratedDeriv_of_isOpen isOpen_Iio n | |
| 445 | - rw [hz] at hd | |
| 446 | - have hc : Continuous (iteratedDeriv n f) := hf.continuous_iteratedDeriv n | |
| 447 | - (WithTop.coe_le_coe.mpr (le_top : (n : ℕ∞) ≤ ⊤)) | |
| 448 | - have hcl := hd.closure hc continuous_const | |
| 449 | - apply hcl | |
| 450 | - simp | |
| 451 | - | |
| 452 | 178 | section GlobalFlatness |
| 453 | 179 | |
| 454 | 180 | variable {σ τ : ℝ} {κ : Vec2} {G : ℝ → Mat2} {T R : ℝ → Vec2} |
| 455 | 181 | |
| 456 | -theorem primaryAmplitude_div_pow_contDiff | |
| 457 | - (hG : ∀ i j, ContDiff ℝ ∞ (fun x => G x i j)) | |
| 458 | - (hT : ∀ i, ContDiff ℝ ∞ (fun x => T x i)) | |
| 459 | - (hcone : ∀ x, SmoothCovariance.StrictCone (G x) (T x)) | |
| 460 | - (hgap : ∀ i, κ i < σ) (i : Fin 2) (loss : ℕ) : | |
| 461 | - ContDiff ℝ ∞ (fun x => primaryAmplitude σ κ G T x i / x ^ loss) := | |
| 462 | - contDiffOn_univ.mp (primaryAmplitude_div_pow_contDiffOn | |
| 463 | - (fun i j => (hG i j).contDiffOn) (fun i => (hT i).contDiffOn) | |
| 464 | - (fun x _ => hcone x) hgap i loss) | |
| 465 | - | |
| 466 | -theorem signedAmplitude_div_pow_contDiff | |
| 467 | - (hG : ∀ i j, ContDiff ℝ ∞ (fun x => G x i j)) | |
| 468 | - (hT : ∀ i, ContDiff ℝ ∞ (fun x => T x i)) | |
| 469 | - (hR : ∀ i, ContDiff ℝ ∞ (fun x => R x i)) | |
| 470 | - (hcone : ∀ x, SmoothCovariance.StrictCone (G x) (T x)) | |
| 471 | - (hgap : ∀ i, (σ + κ i) / 2 < τ) (i : Fin 2) (loss : ℕ) : | |
| 472 | - ContDiff ℝ ∞ (fun x => signedAmplitude σ τ κ G T R x i / x ^ loss) := | |
| 473 | - contDiffOn_univ.mp (signedAmplitude_div_pow_contDiffOn | |
| 474 | - (fun i j => (hG i j).contDiffOn) (fun i => (hT i).contDiffOn) | |
| 475 | - (fun i => (hR i).contDiffOn) (fun x _ => hcone x) hgap i loss) | |
| 476 | - | |
| 477 | -/-- Actual all-order flatness of the primary, also after every fixed | |
| 478 | -inverse-power loss, obtained from the proved smooth zero extension. -/ | |
| 479 | -theorem primary_weighted_derivatives_zero | |
| 480 | - (hG : ∀ i j, ContDiff ℝ ∞ (fun x => G x i j)) | |
| 481 | - (hT : ∀ i, ContDiff ℝ ∞ (fun x => T x i)) | |
| 482 | - (hcone : ∀ x, SmoothCovariance.StrictCone (G x) (T x)) | |
| 483 | - (hgap : ∀ i, κ i < σ) (i : Fin 2) (loss n : ℕ) : | |
| 484 | - iteratedDeriv n (fun x => primaryAmplitude σ κ G T x i / x ^ loss) 0 = 0 := by | |
| 485 | - apply iteratedDeriv_zero_of_nonpos_zero | |
| 486 | - (primaryAmplitude_div_pow_contDiff hG hT hcone hgap i loss) | |
| 487 | - intro x hx | |
| 488 | - simp [primaryAmplitude_of_nonpos σ κ G T hx i] | |
| 489 | - | |
| 490 | -theorem signed_weighted_derivatives_zero | |
| 491 | - (hG : ∀ i j, ContDiff ℝ ∞ (fun x => G x i j)) | |
| 492 | - (hT : ∀ i, ContDiff ℝ ∞ (fun x => T x i)) | |
| 493 | - (hR : ∀ i, ContDiff ℝ ∞ (fun x => R x i)) | |
| 494 | - (hcone : ∀ x, SmoothCovariance.StrictCone (G x) (T x)) | |
| 495 | - (hgap : ∀ i, (σ + κ i) / 2 < τ) (i : Fin 2) (loss n : ℕ) : | |
| 496 | - iteratedDeriv n (fun x => signedAmplitude σ τ κ G T R x i / x ^ loss) 0 = 0 := by | |
| 497 | - apply iteratedDeriv_zero_of_nonpos_zero | |
| 498 | - (signedAmplitude_div_pow_contDiff hG hT hR hcone hgap i loss) | |
| 499 | - intro x hx | |
| 500 | - simp [signedAmplitude_of_nonpos σ τ κ G T R hx i] | |
| 501 | - | |
| 502 | 182 | end GlobalFlatness |
| 503 | 183 | |
| 504 | 184 | section ParameterFamilies |
| 505 | 185 | |
| 506 | 186 | variable {E : Type*} |
| 507 | 187 | |
| 508 | -/-- Evaluation of the actual inverse amplitude at a smooth signed edge | |
| 509 | -coordinate, with independent smooth parameters in the normalized data. -/ | |
| 510 | -def parameterPrimary (σ : ℝ) (κ : Vec2) (d : E → ℝ) | |
| 511 | - (G : E → Mat2) (T : E → Vec2) (z : E) : Vec2 := | |
| 512 | - primaryAmplitude σ κ (fun _ => G z) (fun _ => T z) (d z) | |
| 513 | - | |
| 514 | -def parameterSigned (σ τ : ℝ) (κ : Vec2) (d : E → ℝ) | |
| 515 | - (G : E → Mat2) (T R : E → Vec2) (z : E) : Vec2 := | |
| 516 | - signedAmplitude σ τ κ (fun _ => G z) (fun _ => T z) (fun _ => R z) (d z) | |
| 517 | - | |
| 518 | -theorem parameterPrimary_of_nonpos (σ : ℝ) (κ : Vec2) (d : E → ℝ) | |
| 519 | - (G : E → Mat2) (T : E → Vec2) {z : E} (hz : d z ≤ 0) (i : Fin 2) : | |
| 520 | - parameterPrimary σ κ d G T z i = 0 := | |
| 521 | - primaryAmplitude_of_nonpos σ κ (fun _ => G z) (fun _ => T z) hz i | |
| 522 | - | |
| 523 | -theorem parameterSigned_of_nonpos (σ τ : ℝ) (κ : Vec2) (d : E → ℝ) | |
| 524 | - (G : E → Mat2) (T R : E → Vec2) {z : E} (hz : d z ≤ 0) (i : Fin 2) : | |
| 525 | - parameterSigned σ τ κ d G T R z i = 0 := | |
| 526 | - signedAmplitude_of_nonpos σ τ κ (fun _ => G z) (fun _ => T z) (fun _ => R z) hz i | |
| 527 | - | |
| 528 | 188 | variable [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 529 | 189 | |
| 530 | -/-- Joint smoothness in the edge coordinate and all additional parameters, | |
| 531 | -after any fixed inverse power of the edge coordinate. -/ | |
| 532 | -theorem parameterPrimary_div_pow_contDiffOn | |
| 533 | - {s : Set E} {σ : ℝ} {κ : Vec2} {d : E → ℝ} | |
| 534 | - {G : E → Mat2} {T : E → Vec2} | |
| 535 | - (hd : ContDiffOn ℝ ∞ d s) | |
| 536 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun z => G z i j) s) | |
| 537 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun z => T z i) s) | |
| 538 | - (hcone : ∀ z ∈ s, SmoothCovariance.StrictCone (G z) (T z)) | |
| 539 | - (hgap : ∀ i, κ i < σ) (i : Fin 2) (loss : ℕ) : | |
| 540 | - ContDiffOn ℝ ∞ (fun z => parameterPrimary σ κ d G T z i / d z ^ loss) s := by | |
| 541 | - have hp : 0 < (σ - κ i) / 2 := by linarith [hgap i] | |
| 542 | - apply (((FlatCutoff.edge_div_pow_contDiff hp loss (n := ⊤)).comp_contDiffOn hd).mul | |
| 543 | - (SmoothCovariance.contDiffOn_amplitudes hG hT hcone i)).congr | |
| 544 | - intro z hz | |
| 545 | - unfold parameterPrimary | |
| 546 | - rw [primaryAmplitude_factor σ κ (fun _ => G z) (fun _ => T z) | |
| 547 | - (hcone z hz).det_ne_zero i] | |
| 548 | - dsimp only [Function.comp_def] | |
| 549 | - ring | |
| 550 | - | |
| 551 | -theorem parameterSigned_div_pow_contDiffOn | |
| 552 | - {s : Set E} {σ τ : ℝ} {κ : Vec2} {d : E → ℝ} | |
| 553 | - {G : E → Mat2} {T R : E → Vec2} | |
| 554 | - (hd : ContDiffOn ℝ ∞ d s) | |
| 555 | - (hG : ∀ i j, ContDiffOn ℝ ∞ (fun z => G z i j) s) | |
| 556 | - (hT : ∀ i, ContDiffOn ℝ ∞ (fun z => T z i) s) | |
| 557 | - (hR : ∀ i, ContDiffOn ℝ ∞ (fun z => R z i) s) | |
| 558 | - (hcone : ∀ z ∈ s, SmoothCovariance.StrictCone (G z) (T z)) | |
| 559 | - (hgap : ∀ i, (σ + κ i) / 2 < τ) (i : Fin 2) (loss : ℕ) : | |
| 560 | - ContDiffOn ℝ ∞ (fun z => parameterSigned σ τ κ d G T R z i / d z ^ loss) s := by | |
| 561 | - have hn : ContDiffOn ℝ ∞ (fun z => SmoothCovariance.weights (G z) (R z) i / | |
| 562 | - (2 * SmoothCovariance.amplitudes (G z) (T z) i)) s := by | |
| 563 | - apply (SmoothCovariance.contDiffOn_weights hG hR | |
| 564 | - (fun z hz => (hcone z hz).det_ne_zero) i).div | |
| 565 | - (contDiffOn_const.mul (SmoothCovariance.contDiffOn_amplitudes hG hT hcone i)) | |
| 566 | - intro z hz | |
| 567 | - exact mul_ne_zero (by norm_num) (ne_of_gt ((hcone z hz).amplitudes_pos i)) | |
| 568 | - apply (((FlatCutoff.edge_div_pow_contDiff (sub_pos.mpr (hgap i)) loss | |
| 569 | - (n := ⊤)).comp_contDiffOn hd).mul hn).congr | |
| 570 | - intro z hz | |
| 571 | - unfold parameterSigned | |
| 572 | - rw [signedAmplitude_factor σ τ κ (fun _ => G z) (fun _ => T z) (fun _ => R z) | |
| 573 | - (hcone z hz).det_ne_zero i] | |
| 574 | - dsimp only [Function.comp_def] | |
| 575 | - ring | |
| 576 | - | |
| 577 | 190 | end ParameterFamilies |
| 578 | 191 | |
| 579 | 192 | end NavierStokes.FlatCovariance |
+0 −19 NavierStokes/FlatCutoff.lean View file
| @@ -151,12 +151,6 @@ theorem iteratedDeriv_polynomialEdge {c : ℝ} (hc : 0 < c) (p : ℝ[X]) (m : | ||
| 151 | 151 | funext x |
| 152 | 152 | simp [polynomialEdge] |
| 153 | 153 | |
| 154 | -/-- Every actual derivative vanishes at the joining point. -/ | |
| 155 | -theorem iteratedDeriv_edge_zero {c : ℝ} (hc : 0 < c) (m : ℕ) : | |
| 156 | - iteratedDeriv m (edge c) 0 = 0 := by | |
| 157 | - rw [← polynomialEdge_one c, iteratedDeriv_polynomialEdge hc 1 m] | |
| 158 | - exact polynomialEdge_zero c _ | |
| 159 | - | |
| 160 | 154 | /-- Division by an arbitrary natural power stays inside the smooth family. -/ |
| 161 | 155 | theorem polynomialEdge_div_pow (c : ℝ) (p : ℝ[X]) (loss : ℕ) : |
| 162 | 156 | (fun x => polynomialEdge c p x / x ^ loss) = polynomialEdge c (p * X ^ loss) := by |
| @@ -169,14 +163,6 @@ theorem edge_div_pow_contDiff {c : ℝ} (hc : 0 < c) (loss : ℕ) {n : ℕ∞} : | ||
| 169 | 163 | rw [← polynomialEdge_one c, polynomialEdge_div_pow] |
| 170 | 164 | exact polynomialEdge_contDiff hc _ |
| 171 | 165 | |
| 172 | -/-- Every inverse-power weighted derivative of the edge is smooth. -/ | |
| 173 | -theorem weighted_iteratedDeriv_contDiff {c : ℝ} (hc : 0 < c) | |
| 174 | - (m loss : ℕ) {n : ℕ∞} : | |
| 175 | - ContDiff ℝ n (fun x => iteratedDeriv m (edge c) x / x ^ loss) := by | |
| 176 | - rw [← polynomialEdge_one c, iteratedDeriv_polynomialEdge hc 1 m, | |
| 177 | - polynomialEdge_div_pow] | |
| 178 | - exact polynomialEdge_contDiff hc _ | |
| 179 | - | |
| 180 | 166 | /-- Every derivative decays faster than every inverse power can grow. This |
| 181 | 167 | is a limit for the constructed function, with no assumed flatness predicate. -/ |
| 182 | 168 | theorem weighted_iteratedDeriv_tendsto_zero {c : ℝ} (hc : 0 < c) (m loss : ℕ) : |
| @@ -196,9 +182,4 @@ theorem edge_div_edge (c d : ℝ) : | ||
| 196 | 182 | congr 1 |
| 197 | 183 | ring |
| 198 | 184 | |
| 199 | -theorem edge_quotient_contDiff {c d : ℝ} (hdc : d < c) {n : ℕ∞} : | |
| 200 | - ContDiff ℝ n (fun x => edge c x / edge d x) := by | |
| 201 | - rw [edge_div_edge] | |
| 202 | - exact edge_contDiff (sub_pos.mpr hdc) | |
| 203 | - | |
| 204 | 185 | end NavierStokes.FlatCutoff |
+0 −16 NavierStokes/FlatDyadicExtension.lean View file
| @@ -245,20 +245,4 @@ theorem dyadic_product_smooth_and_flat {Ω : Set D} (hΩ : IsOpen Ω) | ||
| 245 | 245 | · exact fun hin => (not_lt_of_ge he.le) hin.1 |
| 246 | 246 | · exact fun hin => (not_lt_of_ge he.ge) hin.2 |
| 247 | 247 | |
| 248 | -theorem dyadic_product_contDiffOn {Ω : Set D} (hΩ : IsOpen Ω) | |
| 249 | - {q : D → ℝ} (hq : ContDiffOn ℝ ∞ q Ω) {g : D → E} | |
| 250 | - (hg : ContDiffOn ℝ ∞ g (windowDomain Ω q (1 / 2) 2)) | |
| 251 | - (hB : LocalJetBounds Ω q g) : | |
| 252 | - ContDiffOn ℝ ∞ (fun x => SquaredPartition.dyadicProfile (q x) • g x) Ω := | |
| 253 | - (dyadic_product_smooth_and_flat hΩ hq hg hB).1 | |
| 254 | - | |
| 255 | -theorem dyadic_product_face {Ω : Set D} (hΩ : IsOpen Ω) | |
| 256 | - {q : D → ℝ} (hq : ContDiffOn ℝ ∞ q Ω) {g : D → E} | |
| 257 | - (hg : ContDiffOn ℝ ∞ g (windowDomain Ω q (1 / 2) 2)) | |
| 258 | - (hB : LocalJetBounds Ω q g) {x : D} (hx : x ∈ Ω) (he : q x = 1 / 2 ∨ q x = 2) : | |
| 259 | - ContDiffAt ℝ ∞ (fun y => SquaredPartition.dyadicProfile (q y) • g y) x ∧ | |
| 260 | - ∀ n : ℕ, iteratedFDeriv ℝ n (fun y => SquaredPartition.dyadicProfile (q y) • g y) x = 0 := | |
| 261 | - ⟨(dyadic_product_contDiffOn hΩ hq hg hB).contDiffAt (hΩ.mem_nhds hx), | |
| 262 | - (dyadic_product_smooth_and_flat hΩ hq hg hB).2 x hx he⟩ | |
| 263 | - | |
| 264 | 248 | end NavierStokes.FlatDyadicExtension |
+0 −6 NavierStokes/FlatKernelBounds.lean View file
| @@ -374,12 +374,6 @@ theorem kernel_contDiff_x {b : ℝ → ℝ} (hb : ContDiff ℝ ∞ b) | ||
| 374 | 374 | simp_rw [kernel_eq_expr] |
| 375 | 375 | exact contDiff_const.mul ((kernelExpr j).contDiff_eval hb ht) |
| 376 | 376 | |
| 377 | -theorem kernel_iteratedDeriv_contDiff_x {b : ℝ → ℝ} (hb : ContDiff ℝ ∞ b) | |
| 378 | - (c : ℝ) (j n : ℕ) {t : ℝ} (ht : 0 ≤ t) : | |
| 379 | - ContDiff ℝ ∞ (iteratedDeriv n (fun x => kernel c j b x t)) := by | |
| 380 | - rw [iteratedDeriv_kernel hb c j n ht] | |
| 381 | - exact contDiff_const.mul (((Expr.diff^[n]) (kernelExpr j)).contDiff_eval hb ht) | |
| 382 | - | |
| 383 | 377 | theorem unweighted_iteratedDeriv_bound {b : ℝ → ℝ} (hb : ContDiff ℝ ∞ b) |
| 384 | 378 | (j n : ℕ) {R : ℝ} (hR : 0 ≤ R) : |
| 385 | 379 | ∃ C : ℝ, ∃ N : ℕ, 0 ≤ C ∧ ∀ x t : ℝ, |x| ≤ R → 0 ≤ t → |
+0 −231 NavierStokes/FlatPrimitive.lean View file
| @@ -77,38 +77,6 @@ theorem primitive_of_nonpos (c : ℝ) (j : ℕ) (b : ℝ → ℝ) | ||
| 77 | 77 | simp [integrand, edge_of_nonpos c hu0] |
| 78 | 78 | _ = 0 := intervalIntegral.integral_zero |
| 79 | 79 | |
| 80 | -/-- Smoothness and equality to zero on a closed half-line imply that every | |
| 81 | -actual derivative vanishes there. This does not assume the derivative values. -/ | |
| 82 | -theorem iteratedDeriv_zero_on_nonpos {f : ℝ → ℝ} (hf : ContDiff ℝ ∞ f) | |
| 83 | - (hzero : ∀ x : ℝ, x ≤ 0 → f x = 0) (m : ℕ) : | |
| 84 | - ∀ x : ℝ, x ≤ 0 → iteratedDeriv m f x = 0 := by | |
| 85 | - induction m with | |
| 86 | - | zero => simpa only [iteratedDeriv_zero] using hzero | |
| 87 | - | succ m ih => | |
| 88 | - intro x hx | |
| 89 | - rw [iteratedDeriv_succ] | |
| 90 | - apply (uniqueDiffOn_Iic x x (mem_Iic.mpr le_rfl)).eq_deriv (Iic x) | |
| 91 | - ((hf.differentiable_iteratedDeriv m (by exact_mod_cast ENat.natCast_lt_top m) x).hasDerivAt.hasDerivWithinAt) | |
| 92 | - exact (hasDerivWithinAt_const x (Iic x) (0 : ℝ)).congr_of_mem | |
| 93 | - (fun y hy => ih y (hy.trans hx)) (mem_Iic.mpr le_rfl) | |
| 94 | - | |
| 95 | -theorem primitive_iteratedDeriv_zero {c : ℝ} (hc : 0 < c) (j : ℕ) | |
| 96 | - {b : ℝ → ℝ} (hb : ContDiff ℝ ∞ b) (m : ℕ) : | |
| 97 | - iteratedDeriv m (primitive c j b) 0 = 0 := | |
| 98 | - iteratedDeriv_zero_on_nonpos (primitive_contDiff hc j hb) | |
| 99 | - (fun _x hx => primitive_of_nonpos c j b hx) m 0 le_rfl | |
| 100 | - | |
| 101 | -/-- Exact fundamental theorem of calculus for the explicit derivative | |
| 102 | -polynomial family constructed in `FlatCutoff`. -/ | |
| 103 | -theorem integral_derivativePolynomial {c : ℝ} (hc : 0 < c) (p : ℝ[X]) (x : ℝ) : | |
| 104 | - (∫ u in (0 : ℝ)..x, polynomialEdge c (derivativePolynomial c p) u) = | |
| 105 | - polynomialEdge c p x := by | |
| 106 | - have hcont : Continuous (polynomialEdge c (derivativePolynomial c p)) := | |
| 107 | - (polynomialEdge_contDiff hc _ : ContDiff ℝ ∞ _).continuous | |
| 108 | - simpa only [polynomialEdge_zero, sub_zero] using | |
| 109 | - intervalIntegral.integral_eq_sub_of_hasDerivAt | |
| 110 | - (fun u _hu => polynomialEdge_hasDerivAt hc p u) (hcont.intervalIntegrable 0 x) | |
| 111 | - | |
| 112 | 80 | theorem edge_hasDerivAt {c : ℝ} (hc : 0 < c) (x : ℝ) : |
| 113 | 81 | HasDerivAt (edge c) (2 * c * edge c x / x ^ 3) x := by |
| 114 | 82 | have h := polynomialEdge_hasDerivAt hc (1 : ℝ[X]) x |
| @@ -123,203 +91,4 @@ theorem scale_contDiff {c : ℝ} (hc : 0 < c) (j : ℕ) {n : ℕ∞} : | ||
| 123 | 91 | |
| 124 | 92 | @[simp] theorem scale_zero (c : ℝ) (j : ℕ) : scale c j 0 = 0 := by simp [scale] |
| 125 | 93 | |
| 126 | -theorem scale_hasDerivAt {c : ℝ} (hc : 0 < c) (j : ℕ) (x : ℝ) : | |
| 127 | - HasDerivAt (scale c j) | |
| 128 | - ((edge c x / x ^ j) * (2 * c + (3 - (j : ℝ)) * x ^ 2)) x := by | |
| 129 | - unfold scale | |
| 130 | - by_cases hx : x = 0 | |
| 131 | - · subst x | |
| 132 | - have h := (((edge_div_pow_contDiff hc j : ContDiff ℝ ∞ _).differentiable | |
| 133 | - (by simp) 0).hasDerivAt).fun_mul ((hasDerivAt_id (0 : ℝ)).fun_pow 3) | |
| 134 | - simpa [scale] using h | |
| 135 | - · have h := (((edge_hasDerivAt hc x).fun_div ((hasDerivAt_id x).fun_pow j) | |
| 136 | - (pow_ne_zero j hx)).fun_mul ((hasDerivAt_id x).fun_pow 3)) | |
| 137 | - simp only [id_eq] at h | |
| 138 | - convert! h using 1 | |
| 139 | - cases j with | |
| 140 | - | zero => simp; field_simp | |
| 141 | - | succ j => | |
| 142 | - simp only [Nat.add_sub_cancel, Nat.cast_add, Nat.cast_one, | |
| 143 | - Nat.cast_ofNat, mul_one, pow_succ] | |
| 144 | - field_simp; ring | |
| 145 | - | |
| 146 | -/-- The coefficient produced when differentiating `scale c j * a`. | |
| 147 | -This is an explicit differential expression in the chosen smooth factor. -/ | |
| 148 | -def sourceCoefficient (c : ℝ) (j : ℕ) (a : ℝ → ℝ) (x : ℝ) : ℝ := | |
| 149 | - (2 * c + (3 - (j : ℝ)) * x ^ 2) * a x + x ^ 3 * deriv a x | |
| 150 | - | |
| 151 | -theorem sourceCoefficient_contDiff (c : ℝ) (j : ℕ) {a : ℝ → ℝ} | |
| 152 | - (ha : ContDiff ℝ ∞ a) : ContDiff ℝ ∞ (sourceCoefficient c j a) := by | |
| 153 | - have hd : ContDiff ℝ ∞ (deriv a) := (contDiff_infty_iff_deriv.mp ha).2 | |
| 154 | - exact ((contDiff_const.add (contDiff_const.mul (contDiff_id.pow 2))).mul ha).add | |
| 155 | - ((contDiff_id.pow 3).mul hd) | |
| 156 | - | |
| 157 | -/-- A genuine primitive factorization for the explicit family of coefficients | |
| 158 | -obtained from any smooth factor `a`, proved by the fundamental theorem of | |
| 159 | -calculus rather than assumed as a representation hypothesis. -/ | |
| 160 | -theorem primitive_sourceCoefficient {c : ℝ} (hc : 0 < c) (j : ℕ) | |
| 161 | - {a : ℝ → ℝ} (ha : ContDiff ℝ ∞ a) (x : ℝ) : | |
| 162 | - primitive c j (sourceCoefficient c j a) x = scale c j x * a x := by | |
| 163 | - have hderiv : ∀ u : ℝ, HasDerivAt (fun y => scale c j y * a y) | |
| 164 | - (integrand c j (sourceCoefficient c j a) u) u := by | |
| 165 | - intro u | |
| 166 | - convert! (scale_hasDerivAt hc j u).mul | |
| 167 | - ((ha.differentiable (by simp) u).hasDerivAt) using 1 | |
| 168 | - simp only [integrand, sourceCoefficient, scale] | |
| 169 | - ring | |
| 170 | - have hcont := integrand_continuous hc j (sourceCoefficient_contDiff c j ha).continuous | |
| 171 | - simpa only [primitive, scale_zero, zero_mul, sub_zero] using | |
| 172 | - intervalIntegral.integral_eq_sub_of_hasDerivAt (fun u _hu => hderiv u) | |
| 173 | - (hcont.intervalIntegrable 0 x) | |
| 174 | - | |
| 175 | -/-- An exact integration-by-parts recurrence for every smooth coefficient. | |
| 176 | -The new coefficient is `(3-j) x² b + x³ b'`, which vanishes to at least | |
| 177 | -second order at the endpoint. -/ | |
| 178 | -theorem primitive_recurrence {c : ℝ} (hc : 0 < c) (j : ℕ) | |
| 179 | - {b : ℝ → ℝ} (hb : ContDiff ℝ ∞ b) (x : ℝ) : | |
| 180 | - (2 * c) * primitive c j b x = | |
| 181 | - scale c j x * b x - primitive c j (sourceCoefficient 0 j b) x := by | |
| 182 | - have hf := integrand_continuous hc j hb.continuous | |
| 183 | - have hr := integrand_continuous hc j (sourceCoefficient_contDiff 0 j hb).continuous | |
| 184 | - have hcf : Continuous (fun u => (2 * c) * integrand c j b u) := continuous_const.mul hf | |
| 185 | - have hsplit : primitive c j (sourceCoefficient c j b) x = | |
| 186 | - (2 * c) * primitive c j b x + primitive c j (sourceCoefficient 0 j b) x := by | |
| 187 | - unfold primitive | |
| 188 | - calc | |
| 189 | - (∫ u in (0 : ℝ)..x, integrand c j (sourceCoefficient c j b) u) = | |
| 190 | - ∫ u in (0 : ℝ)..x, | |
| 191 | - (2 * c) * integrand c j b u + integrand c j (sourceCoefficient 0 j b) u := by | |
| 192 | - apply intervalIntegral.integral_congr | |
| 193 | - intro u _hu | |
| 194 | - simp only [integrand, sourceCoefficient] | |
| 195 | - ring | |
| 196 | - _ = _ := by | |
| 197 | - rw [intervalIntegral.integral_add (hcf.intervalIntegrable 0 x) | |
| 198 | - (hr.intervalIntegrable 0 x), intervalIntegral.integral_const_mul] | |
| 199 | - rw [primitive_sourceCoefficient hc j hb x] at hsplit | |
| 200 | - linarith | |
| 201 | - | |
| 202 | -/-- An exact constant-coefficient case of the claimed terminal factorization: | |
| 203 | -for `j = 3`, the remaining smooth factor is the constant `1 / (2c)`. -/ | |
| 204 | -theorem primitive_three_one {c : ℝ} (hc : 0 < c) (x : ℝ) : | |
| 205 | - primitive c 3 (fun _ => 1) x = edge c x / (2 * c) := by | |
| 206 | - have hc2 : 2 * c ≠ 0 := mul_ne_zero (by norm_num) hc.ne' | |
| 207 | - have hderiv : ∀ u : ℝ, HasDerivAt (fun y => edge c y / (2 * c)) | |
| 208 | - (integrand c 3 (fun _ => 1) u) u := by | |
| 209 | - intro u | |
| 210 | - convert! (edge_hasDerivAt hc u).div_const (2 * c) using 1 | |
| 211 | - simp only [integrand, mul_one] | |
| 212 | - rw [div_div, mul_comm (u ^ 3) (2 * c), mul_div_mul_left _ _ hc2] | |
| 213 | - have hcont := integrand_continuous hc 3 (continuous_const : Continuous (fun _ : ℝ => (1 : ℝ))) | |
| 214 | - simpa only [primitive, edge_zero, zero_div, sub_zero] using | |
| 215 | - intervalIntegral.integral_eq_sub_of_hasDerivAt (fun u _hu => hderiv u) | |
| 216 | - (hcont.intervalIntegrable 0 x) | |
| 217 | - | |
| 218 | -/-- The natural primitive scale is strictly positive inside the active edge. -/ | |
| 219 | -theorem scale_pos (c : ℝ) (j : ℕ) {x : ℝ} (hx : 0 < x) : 0 < scale c j x := | |
| 220 | - mul_pos (div_pos (edge_pos c hx) (pow_pos hx j)) (pow_pos hx 3) | |
| 221 | - | |
| 222 | -/-- The leading quotient limit for an arbitrary continuous coefficient. | |
| 223 | -This is a genuine asymptotic statement about the integral; smoothness of the | |
| 224 | -quotient to all orders is a stronger assertion. -/ | |
| 225 | -theorem primitive_normalized_tendsto {c : ℝ} (hc : 0 < c) (j : ℕ) | |
| 226 | - {b : ℝ → ℝ} (hb : Continuous b) : | |
| 227 | - Tendsto (fun x => primitive c j b x / scale c j x) (𝓝[>] 0) | |
| 228 | - (𝓝 (b 0 / (2 * c))) := by | |
| 229 | - have h2c : 0 < 2 * c := mul_pos (by norm_num) hc | |
| 230 | - have hDcont : Continuous (fun x : ℝ => 2 * c + (3 - (j : ℝ)) * x ^ 2) := | |
| 231 | - continuous_const.add (continuous_const.mul (continuous_id.pow 2)) | |
| 232 | - have hD : Tendsto (fun x : ℝ => 2 * c + (3 - (j : ℝ)) * x ^ 2) | |
| 233 | - (𝓝[>] 0) (𝓝 (2 * c)) := by | |
| 234 | - simpa using (hDcont.tendsto 0).mono_left nhdsWithin_le_nhds | |
| 235 | - have hDpos : ∀ᶠ x in 𝓝[>] (0 : ℝ), 0 < 2 * c + (3 - (j : ℝ)) * x ^ 2 := | |
| 236 | - hD.eventually (lt_mem_nhds h2c) | |
| 237 | - have hF : Tendsto (primitive c j b) (𝓝[>] 0) (𝓝 0) := by | |
| 238 | - simpa only [primitive_zero] using | |
| 239 | - ((primitive_hasDerivAt hc j hb 0).continuousAt.tendsto.mono_left nhdsWithin_le_nhds) | |
| 240 | - have hS : Tendsto (scale c j) (𝓝[>] 0) (𝓝 0) := by | |
| 241 | - simpa only [scale_zero] using | |
| 242 | - (((scale_contDiff hc j : ContDiff ℝ ∞ _).continuous.tendsto 0).mono_left nhdsWithin_le_nhds) | |
| 243 | - refine HasDerivAt.lhopital_zero_nhdsGT | |
| 244 | - (Eventually.of_forall fun x => primitive_hasDerivAt hc j hb x) | |
| 245 | - (Eventually.of_forall fun x => scale_hasDerivAt hc j x) ?_ hF hS ?_ | |
| 246 | - · filter_upwards [self_mem_nhdsWithin, hDpos] with x hx hdx | |
| 247 | - exact (mul_pos (div_pos (edge_pos c hx) (pow_pos hx j)) hdx).ne' | |
| 248 | - · refine (((hb.tendsto 0).mono_left nhdsWithin_le_nhds).div hD h2c.ne').congr' ?_ | |
| 249 | - filter_upwards [self_mem_nhdsWithin] with x hx | |
| 250 | - have hp : edge c x / x ^ j ≠ 0 := (div_pos (edge_pos c hx) (pow_pos hx j)).ne' | |
| 251 | - exact (mul_div_mul_left (b x) (2 * c + (3 - (j : ℝ)) * x ^ 2) hp).symm | |
| 252 | - | |
| 253 | -/-- The normalized factor with its rigorously identified endpoint value. -/ | |
| 254 | -def normalizedPrimitive (c : ℝ) (j : ℕ) (b : ℝ → ℝ) (x : ℝ) : ℝ := | |
| 255 | - if x = 0 then b 0 / (2 * c) else primitive c j b x / scale c j x | |
| 256 | - | |
| 257 | -theorem normalizedPrimitive_continuousWithinAt_zero {c : ℝ} (hc : 0 < c) (j : ℕ) | |
| 258 | - {b : ℝ → ℝ} (hb : Continuous b) : | |
| 259 | - ContinuousWithinAt (normalizedPrimitive c j b) (Ici 0) 0 := by | |
| 260 | - apply continuousWithinAt_Ioi_iff_Ici.mp | |
| 261 | - change Tendsto (normalizedPrimitive c j b) (𝓝[>] 0) (𝓝 (normalizedPrimitive c j b 0)) | |
| 262 | - rw [show normalizedPrimitive c j b 0 = b 0 / (2 * c) by simp [normalizedPrimitive]] | |
| 263 | - refine (primitive_normalized_tendsto hc j hb).congr' ?_ | |
| 264 | - filter_upwards [self_mem_nhdsWithin] with x hx | |
| 265 | - simp [normalizedPrimitive, (show 0 < x from hx).ne'] | |
| 266 | - | |
| 267 | -/-- The actual integral factors on the closed positive half-line, with the | |
| 268 | -factor proved continuous at zero above. No smoothness conclusion is inferred | |
| 269 | -merely from this quotient definition. -/ | |
| 270 | -theorem normalizedPrimitive_factorization (c : ℝ) (j : ℕ) (b : ℝ → ℝ) | |
| 271 | - {x : ℝ} (hx : 0 ≤ x) : | |
| 272 | - primitive c j b x = scale c j x * normalizedPrimitive c j b x := by | |
| 273 | - rcases eq_or_lt_of_le hx with hzero | hpos | |
| 274 | - · subst x | |
| 275 | - simp | |
| 276 | - · have hs : scale c j x ≠ 0 := (scale_pos c j hpos).ne' | |
| 277 | - simp only [normalizedPrimitive, ite_eq_right hpos.ne'] | |
| 278 | - field_simp | |
| 279 | - | |
| 280 | -/-- A strictly positive endpoint coefficient gives an actual positive | |
| 281 | -normalized primitive on a sufficiently short terminal interval. -/ | |
| 282 | -theorem primitive_normalized_eventually_pos {c : ℝ} (hc : 0 < c) (j : ℕ) | |
| 283 | - {b : ℝ → ℝ} (hb : Continuous b) (hb0 : 0 < b 0) : | |
| 284 | - ∀ᶠ x in 𝓝[>] 0, 0 < primitive c j b x / scale c j x := | |
| 285 | - (primitive_normalized_tendsto hc j hb).eventually | |
| 286 | - (lt_mem_nhds (div_pos hb0 (mul_pos (by norm_num) hc))) | |
| 287 | - | |
| 288 | -/-- The actual primitive vanishes faster than every natural power, even for | |
| 289 | -a merely continuous coefficient. This does not assume flatness of the | |
| 290 | -primitive or a factorization by a smooth function. -/ | |
| 291 | -theorem primitive_div_pow_tendsto_zero {c : ℝ} (hc : 0 < c) (j : ℕ) | |
| 292 | - {b : ℝ → ℝ} (hb : Continuous b) (loss : ℕ) : | |
| 293 | - Tendsto (fun x => primitive c j b x / x ^ loss) (𝓝[>] 0) (𝓝 0) := by | |
| 294 | - have hF : Tendsto (primitive c j b) (𝓝[>] 0) (𝓝 0) := by | |
| 295 | - simpa only [primitive_zero] using | |
| 296 | - ((primitive_hasDerivAt hc j hb 0).continuousAt.tendsto.mono_left nhdsWithin_le_nhds) | |
| 297 | - cases loss with | |
| 298 | - | zero => simpa using hF | |
| 299 | - | succ n => | |
| 300 | - have hn : (n + 1 : ℝ) ≠ 0 := by positivity | |
| 301 | - have hG : Tendsto (fun x : ℝ => x ^ (n + 1)) (𝓝[>] 0) (𝓝 0) := by | |
| 302 | - simpa using ((continuous_id.fun_pow (n + 1)).tendsto (0 : ℝ)).mono_left nhdsWithin_le_nhds | |
| 303 | - have hE : Tendsto (fun x => edge c x / x ^ (j + n)) (𝓝[>] 0) (𝓝 0) := | |
| 304 | - (weighted_iteratedDeriv_tendsto_zero hc 0 (j + n)).mono_left nhdsWithin_le_nhds | |
| 305 | - have hB : Tendsto (fun x => b x / (n + 1 : ℝ)) (𝓝[>] 0) | |
| 306 | - (𝓝 (b 0 / (n + 1 : ℝ))) := | |
| 307 | - ((hb.tendsto 0).mono_left nhdsWithin_le_nhds).div_const _ | |
| 308 | - have hratio : Tendsto | |
| 309 | - (fun x => integrand c j b x / ((n + 1 : ℝ) * x ^ n)) (𝓝[>] 0) (𝓝 0) := by | |
| 310 | - have hlim := hE.mul hB | |
| 311 | - simp only [zero_mul] at hlim | |
| 312 | - refine hlim.congr' ?_ | |
| 313 | - filter_upwards [self_mem_nhdsWithin] with x hx | |
| 314 | - dsimp [integrand] | |
| 315 | - rw [pow_add] | |
| 316 | - field_simp | |
| 317 | - refine HasDerivAt.lhopital_zero_nhdsGT | |
| 318 | - (Eventually.of_forall fun x => primitive_hasDerivAt hc j hb x) | |
| 319 | - (Eventually.of_forall fun x => ?_) | |
| 320 | - ?_ hF hG hratio | |
| 321 | - · simpa using (hasDerivAt_id x).fun_pow (n + 1) | |
| 322 | - · filter_upwards [self_mem_nhdsWithin] with x hx | |
| 323 | - exact mul_ne_zero hn (pow_ne_zero n (show 0 < x from hx).ne') | |
| 324 | - | |
| 325 | 94 | end NavierStokes.FlatPrimitive |
+0 −57 NavierStokes/FlatPrimitiveFactor.lean View file
| @@ -45,20 +45,6 @@ theorem denominator_sq (x : ℝ) {t : ℝ} (ht : 0 ≤ t) : | ||
| 45 | 45 | denominator x t ^ 2 = 1 + x ^ 2 * t := |
| 46 | 46 | Real.sq_sqrt (denominator_inner_pos x ht).le |
| 47 | 47 | |
| 48 | -/-- The square-root notation is exactly the real power appearing in the | |
| 49 | -substitution formula, including when `j < 3`. -/ | |
| 50 | -theorem denominator_ratio_eq_rpow (j : ℕ) (x : ℝ) {t : ℝ} (ht : 0 ≤ t) : | |
| 51 | - denominator x t ^ j / denominator x t ^ 3 = | |
| 52 | - (1 + x ^ 2 * t) ^ (((j : ℝ) - 3) / 2) := by | |
| 53 | - have ha := denominator_inner_pos x ht | |
| 54 | - rw [denominator, Real.sqrt_eq_rpow] | |
| 55 | - rw [← Real.rpow_natCast ((1 + x ^ 2 * t) ^ (1 / 2 : ℝ)) j, | |
| 56 | - ← Real.rpow_natCast ((1 + x ^ 2 * t) ^ (1 / 2 : ℝ)) 3] | |
| 57 | - rw [← Real.rpow_mul ha.le, ← Real.rpow_mul ha.le, ← Real.rpow_sub ha] | |
| 58 | - congr 1 | |
| 59 | - norm_num | |
| 60 | - ring | |
| 61 | - | |
| 62 | 48 | theorem coordinate_pos {x t : ℝ} (hx : 0 < x) (ht : 0 ≤ t) : 0 < coordinate x t := |
| 63 | 49 | div_pos hx (denominator_pos x ht) |
| 64 | 50 | |
| @@ -157,14 +143,6 @@ theorem primitive_eq_scale_mul_factor (c : ℝ) (j : ℕ) (b : ℝ → ℝ) | ||
| 157 | 143 | exact transformed_integrand c j b hx ht.le |
| 158 | 144 | _ = scale c j x * factor c j b x := integral_const_mul _ _ |
| 159 | 145 | |
| 160 | -/-- The transformed integral is the normalized primitive for positive `x`. -/ | |
| 161 | -theorem factor_eq_normalized_primitive (c : ℝ) (j : ℕ) (b : ℝ → ℝ) | |
| 162 | - {x : ℝ} (hx : 0 < x) : | |
| 163 | - factor c j b x = primitive c j b x / scale c j x := by | |
| 164 | - have hs : scale c j x ≠ 0 := (scale_pos c j hx).ne' | |
| 165 | - rw [primitive_eq_scale_mul_factor c j b hx] | |
| 166 | - field_simp [hs] | |
| 167 | - | |
| 168 | 146 | theorem kernel_at_zero (c : ℝ) (j : ℕ) (b : ℝ → ℝ) (t : ℝ) : |
| 169 | 147 | kernel c j b 0 t = (b 0 / 2) * Real.exp (-c * t) := by |
| 170 | 148 | simp [kernel, denominator, coordinate] |
| @@ -258,28 +236,6 @@ theorem factor_contDiff {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} | ||
| 258 | 236 | (kernel_ae_contDiff c j hb) (kernel_iteratedDeriv_measurable c j hb) |
| 259 | 237 | (kernel_locallyDominated hc j hb) |
| 260 | 238 | |
| 261 | -theorem factor_iteratedDeriv {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} | |
| 262 | - (hb : ContDiff ℝ ∞ b) (n : ℕ) (x : ℝ) : | |
| 263 | - iteratedDeriv n (factor c j b) x = | |
| 264 | - ∫ t in Ioi (0 : ℝ), iteratedDeriv n (fun y => kernel c j b y t) x := | |
| 265 | - NavierStokes.SmoothParameterIntegral.iteratedDeriv_integral | |
| 266 | - (kernel_ae_contDiff c j hb) (kernel_iteratedDeriv_measurable c j hb) | |
| 267 | - (kernel_locallyDominated hc j hb) n x | |
| 268 | - | |
| 269 | -/-- Full smooth factorization of the actual terminal primitive, with its | |
| 270 | -endpoint value fixed by the coefficient. The smooth factor is constructed | |
| 271 | -as an improper integral rather than assumed. -/ | |
| 272 | -theorem exists_smooth_factor {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} | |
| 273 | - (hb : ContDiff ℝ ∞ b) : | |
| 274 | - ∃ F : ℝ → ℝ, ContDiff ℝ ∞ F ∧ F 0 = b 0 / (2 * c) ∧ | |
| 275 | - ∀ x : ℝ, 0 ≤ x → primitive c j b x = scale c j x * F x := by | |
| 276 | - refine ⟨factor c j b, factor_contDiff hc j hb, factor_at_zero hc j b, ?_⟩ | |
| 277 | - intro x hx | |
| 278 | - rcases eq_or_lt_of_le hx with hzero | hpos | |
| 279 | - · subst x | |
| 280 | - simp | |
| 281 | - · exact primitive_eq_scale_mul_factor c j b hpos | |
| 282 | - | |
| 283 | 239 | theorem integral_exp_eq_primitive (c : ℝ) (j : ℕ) (b : ℝ → ℝ) |
| 284 | 240 | {x : ℝ} (hx : 0 ≤ x) : |
| 285 | 241 | (∫ u in (0 : ℝ)..x, (Real.exp (-c / u ^ 2) / u ^ j) * b u) = |
| @@ -299,19 +255,6 @@ theorem scale_eq_rpow (c : ℝ) (j : ℕ) {x : ℝ} (hx : 0 < x) : | ||
| 299 | 255 | rw [← Real.rpow_natCast x 3, ← Real.rpow_natCast x j, ← Real.rpow_sub hx] |
| 300 | 256 | norm_num |
| 301 | 257 | |
| 302 | -/-- The manuscript's scalar primitive factorization in its original | |
| 303 | -exponential and real-power notation, with a genuine smooth extension. -/ | |
| 304 | -theorem exists_smooth_factor_original {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} | |
| 305 | - (hb : ContDiff ℝ ∞ b) : | |
| 306 | - ∃ F : ℝ → ℝ, ContDiff ℝ ∞ F ∧ F 0 = b 0 / (2 * c) ∧ | |
| 307 | - ∀ x : ℝ, 0 < x → | |
| 308 | - (∫ u in (0 : ℝ)..x, (Real.exp (-c / u ^ 2) / u ^ j) * b u) = | |
| 309 | - Real.exp (-c / x ^ 2) * x ^ (3 - (j : ℝ)) * F x := by | |
| 310 | - refine ⟨factor c j b, factor_contDiff hc j hb, factor_at_zero hc j b, ?_⟩ | |
| 311 | - intro x hx | |
| 312 | - rw [integral_exp_eq_primitive c j b hx.le, | |
| 313 | - primitive_eq_scale_mul_factor c j b hx, scale_eq_rpow c j hx] | |
| 314 | - | |
| 315 | 258 | theorem factor_sqrt_contDiffAt_zero {c : ℝ} (hc : 0 < c) (j : ℕ) {b : ℝ → ℝ} |
| 316 | 259 | (hb : ContDiff ℝ ∞ b) (hb0 : 0 < b 0) : |
| 317 | 260 | ContDiffAt ℝ ∞ (fun x => Real.sqrt (factor c j b x)) 0 := by |
+0 −39 NavierStokes/FlatPrimitivePaper.lean View file
| @@ -71,43 +71,4 @@ theorem smooth_extension_on_compact {K U : Set E} (hK : IsCompact K) | ||
| 71 | 71 | rw [hχK hx] |
| 72 | 72 | exact one_mul _ |
| 73 | 73 | |
| 74 | -/-- The parameterized `heat:flat-primitive` identity and all mixed jet | |
| 75 | -bounds on a compact rectangle, for locally smooth coefficient data. -/ | |
| 76 | -theorem exists_factor_on_rectangle {K : Set E} (hK : IsCompact K) | |
| 77 | - {δ₀ c : ℝ} (hδ : 0 < δ₀) (hc : 0 < c) (j : ℕ) | |
| 78 | - {U : Set (E × ℝ)} (hU : IsOpen U) (hKU : K ×ˢ Icc 0 δ₀ ⊆ U) | |
| 79 | - {b : E × ℝ → ℝ} (hb : ContDiffOn ℝ ∞ b U) : | |
| 80 | - ∃ B : E × ℝ → ℝ, ContDiff ℝ ∞ B ∧ | |
| 81 | - (∀ p ∈ K, B (p, 0) = b (p, 0) / c) ∧ | |
| 82 | - (∀ p ∈ K, ∀ δ ∈ Ioc 0 δ₀, | |
| 83 | - (∫ u in (0 : ℝ)..δ, (Real.exp (-c / u ^ 2) / u ^ j) * b (p, u)) = | |
| 84 | - (1 / 2 : ℝ) * Real.exp (-c / δ ^ 2) * δ ^ (3 - (j : ℝ)) * B (p, δ)) ∧ | |
| 85 | - (∀ n : ℕ, ∃ C ≥ 0, ∀ p ∈ K, ∀ δ ∈ Icc 0 δ₀, | |
| 86 | - ‖iteratedFDeriv ℝ n B (p, δ)‖ ≤ C) := by | |
| 87 | - obtain ⟨b', hb', heq⟩ := smooth_extension_on_compact (hK.prod isCompact_Icc) hU hKU hb | |
| 88 | - let B : E × ℝ → ℝ := fun x => 2 * ParametricFlatFactor.factor c j b' x | |
| 89 | - have hB : ContDiff ℝ ∞ B := contDiff_const.mul (ParametricFlatFactor.factor_contDiff hc j hb') | |
| 90 | - refine ⟨B, hB, ?_, ?_, ?_⟩ | |
| 91 | - · intro p hp | |
| 92 | - dsimp [B] | |
| 93 | - rw [ParametricFlatFactor.factor_at_zero hc j b', heq ⟨hp, le_rfl, hδ.le⟩] | |
| 94 | - field_simp | |
| 95 | - · intro p hp δ hδ' | |
| 96 | - have hi : (∫ u in (0 : ℝ)..δ, (Real.exp (-c / u ^ 2) / u ^ j) * b (p, u)) = | |
| 97 | - ∫ u in (0 : ℝ)..δ, (Real.exp (-c / u ^ 2) / u ^ j) * b' (p, u) := by | |
| 98 | - apply intervalIntegral.integral_congr | |
| 99 | - intro u hu | |
| 100 | - have hu' : u ∈ Icc 0 δ := by simpa [uIcc_of_le hδ'.1.le] using hu | |
| 101 | - change _ * b (p, u) = _ * b' (p, u) | |
| 102 | - rw [heq (x := (p, u)) ⟨hp, hu'.1, hu'.2.trans hδ'.2⟩] | |
| 103 | - rw [hi, ParametricFlatFactor.integral_original_factorization c j b' p hδ'.1] | |
| 104 | - dsimp [B] | |
| 105 | - ring | |
| 106 | - · intro n | |
| 107 | - have hcB := hB.continuous_iteratedFDeriv | |
| 108 | - (m := n) (le_of_lt (WithTop.coe_lt_coe.mpr (ENat.natCast_lt_top n))) | |
| 109 | - obtain ⟨C, hC⟩ := (hK.prod isCompact_Icc).exists_bound_of_continuousOn hcB.continuousOn | |
| 110 | - exact ⟨max C 0, le_max_right _ _, fun p hp δ hδ' => (hC (p, δ) ⟨hp, hδ'⟩).trans | |
| 111 | - (le_max_left _ _)⟩ | |
| 112 | - | |
| 113 | 74 | end NavierStokes.FlatPrimitivePaper |
+0 −41 NavierStokes/FlatZeroExtension.lean View file
| @@ -69,30 +69,6 @@ depend on its derivative order as well as the parameter point. -/ | ||
| 69 | 69 | def LocalGaussianJets (c : ℝ) (U : Set E) (f : E × ℝ → F) : Prop := |
| 70 | 70 | ∀ n : ℕ, LocalGaussianBound c U (iteratedFDeriv ℝ n f) |
| 71 | 71 | |
| 72 | -omit [NormedSpace ℝ E] [NormedSpace ℝ F] in | |
| 73 | -theorem LocalGaussianBound.of_uniform {c C : ℝ} {N : ℕ} {U : Set E} | |
| 74 | - {g : E × ℝ → F} (hC : 0 ≤ C) | |
| 75 | - (hbound : ∀ y ∈ U, ∀ δ ∈ Ioo (0 : ℝ) 1, | |
| 76 | - ‖g (y, δ)‖ ≤ C * edge c δ / δ ^ N) : LocalGaussianBound c U g := by | |
| 77 | - intro _ _ | |
| 78 | - refine ⟨univ, univ_mem, C, hC, N, ?_⟩ | |
| 79 | - intro y hy δ hδ | |
| 80 | - exact hbound y hy.2 δ hδ | |
| 81 | - | |
| 82 | -omit [NormedSpace ℝ E] [NormedSpace ℝ F] in | |
| 83 | -/-- Adapter from the unextended exponential written in analytic estimates. -/ | |
| 84 | -theorem LocalGaussianBound.of_exp_bound {c : ℝ} {U : Set E} {g : E × ℝ → F} | |
| 85 | - (hbound : ∀ x ∈ U, ∃ V ∈ 𝓝 x, ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, | |
| 86 | - ∀ y ∈ V ∩ U, ∀ δ ∈ Ioo (0 : ℝ) 1, | |
| 87 | - ‖g (y, δ)‖ ≤ C * Real.exp (-c / δ ^ 2) / δ ^ N) : | |
| 88 | - LocalGaussianBound c U g := by | |
| 89 | - intro x hx | |
| 90 | - obtain ⟨V, hV, C, hC, N, hb⟩ := hbound x hx | |
| 91 | - refine ⟨V, hV, C, hC, N, ?_⟩ | |
| 92 | - intro y hy δ hδ | |
| 93 | - rw [edge_of_pos c hδ.1] | |
| 94 | - exact hb y hy δ hδ | |
| 95 | - | |
| 96 | 72 | theorem edge_div_pow_tendsto_zero {c : ℝ} (hc : 0 < c) (N : ℕ) : |
| 97 | 73 | Tendsto (fun δ : ℝ => edge c δ / δ ^ N) (𝓝 0) (𝓝 0) := by |
| 98 | 74 | simpa only [iteratedDeriv_zero] using weighted_iteratedDeriv_tendsto_zero hc 0 N |
| @@ -223,21 +199,4 @@ theorem iteratedFDeriv_zeroExtension_edge {c : ℝ} (hc : 0 < c) | ||
| 223 | 199 | iteratedFDeriv ℝ n (zeroExtension f) (x, 0) = 0 := |
| 224 | 200 | iteratedFDeriv_zeroExtension_nonpos hc hU hf hB n hx le_rfl |
| 225 | 201 | |
| 226 | -/-- The main theorem stated directly with local exponential estimates of | |
| 227 | -every actual tensor. The interval and neighborhood bounds remain explicit. -/ | |
| 228 | -theorem contDiffOn_zeroExtension_of_exp_bounds {c : ℝ} (hc : 0 < c) | |
| 229 | - {U : Set E} (hU : IsOpen U) {f : E × ℝ → F} | |
| 230 | - (hf : ContDiffOn ℝ ∞ f (U ×ˢ Ioi 0)) | |
| 231 | - (hbound : ∀ n : ℕ, ∀ x ∈ U, ∃ V ∈ 𝓝 x, ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, | |
| 232 | - ∀ y ∈ V ∩ U, ∀ δ ∈ Ioo (0 : ℝ) 1, | |
| 233 | - ‖iteratedFDeriv ℝ n f (y, δ)‖ ≤ C * Real.exp (-c / δ ^ 2) / δ ^ N) : | |
| 234 | - ContDiffOn ℝ ∞ (zeroExtension f) (U ×ˢ univ) := | |
| 235 | - contDiffOn_zeroExtension hc hU hf (fun n => LocalGaussianBound.of_exp_bound (hbound n)) | |
| 236 | - | |
| 237 | -theorem contDiff_zeroExtension {c : ℝ} (hc : 0 < c) {f : E × ℝ → F} | |
| 238 | - (hf : ContDiffOn ℝ ∞ f (univ ×ˢ Ioi 0)) (hB : LocalGaussianJets c univ f) : | |
| 239 | - ContDiff ℝ ∞ (zeroExtension f) := by | |
| 240 | - simpa only [univ_prod_univ, contDiffOn_univ] using | |
| 241 | - contDiffOn_zeroExtension hc isOpen_univ hf hB | |
| 242 | - | |
| 243 | 202 | end NavierStokes.FlatZeroExtension |
+34 −0 routes/s1-ns-flat-1/README.md added View file
| @@ -0,0 +1,34 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-flat-1 | |
| 6 | + | |
| 7 | +One unit of #10 (S-1), family `NavierStokes/Flat*`: the 64 declarations that | |
| 8 | +nothing uses in the eight `Flat*` files, 796 lines: | |
| 9 | + | |
| 10 | +- `NavierStokes/FlatCovariance.lean` (32 declarations) | |
| 11 | +- `NavierStokes/FlatCutoff.lean` (3) | |
| 12 | +- `NavierStokes/FlatDyadicExtension.lean` (2) | |
| 13 | +- `NavierStokes/FlatKernelBounds.lean` (1) | |
| 14 | +- `NavierStokes/FlatPrimitive.lean` (16) | |
| 15 | +- `NavierStokes/FlatPrimitiveFactor.lean` (5) | |
| 16 | +- `NavierStokes/FlatPrimitivePaper.lean` (1) | |
| 17 | +- `NavierStokes/FlatZeroExtension.lean` (4) | |
| 18 | + | |
| 19 | +The list is Treant's (upstream `f9e8bc5`), re-read here from main's declaration | |
| 20 | +graph under this project's rule: nothing whose docstring cites the paper and | |
| 21 | +nothing that a declaration of the paper's results reaches is in it. The diff is | |
| 22 | +deletions only (0 lines added), so no statement or proof that stays changes. | |
| 23 | + | |
| 24 | +Checked: `git grep -n -w` of every deleted short name finds no remaining user. | |
| 25 | +The only hits are declarations of the same short name elsewhere | |
| 26 | +(`GaussianTailFlat.sqrt_edge`, `WeightedQuotients.sqrt_edge`, and `scale_pos` | |
| 27 | +fields and lemmas in other files), none of them a use of a `Flat*` declaration. | |
| 28 | +No deleted docstring cites a numbered lemma, theorem, proposition, corollary, | |
| 29 | +section or equation. | |
| 30 | + | |
| 31 | +## Next | |
| 32 | + | |
| 33 | +The maintainer's review after `challenge` and `build`; the other family units | |
| 34 | +follow in pull requests of their own. | |