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

chore(NavierStokes/Polar): delete 16 declarations nothing uses #255
Merged
+0 −126 NavierStokes/PolarCharts.lean View file
| @@ -53,9 +53,6 @@ theorem unrotate_rotate (j : Index) (p : Plane) : unrotate j (rotate j p) = p := | ||
| 53 | 53 | theorem rotate_unrotate (j : Index) (p : Plane) : rotate j (unrotate j p) = p := by |
| 54 | 54 | fin_cases j <;> simp [rotate, unrotate] |
| 55 | 55 | |
| 56 | -theorem norm_rotate (j : Index) (p : Plane) : ‖rotate j p‖ = ‖p‖ := by | |
| 57 | - fin_cases j <;> simp [rotate, Prod.norm_def, max_comm] | |
| 58 | - | |
| 59 | 56 | theorem rotate_sum_sq (j : Index) (p : Plane) : |
| 60 | 57 | (rotate j p).1 ^ 2 + (rotate j p).2 ^ 2 = p.1 ^ 2 + p.2 ^ 2 := by |
| 61 | 58 | fin_cases j <;> simp [rotate] <;> ring |
| @@ -163,14 +160,6 @@ theorem localChart_polar (j : Index) {r θ : ℝ} (hr : 0 < r) | ||
| 163 | 160 | rw [localChart, hrot, baseChart_polar hr hθ] |
| 164 | 161 | simp |
| 165 | 162 | |
| 166 | -theorem localChart_contDiffAt (j : Index) {p : Plane} (hp : 0 < (rotate j p).1) : | |
| 167 | - ContDiffAt ℝ ∞ (localChart j) p := by | |
| 168 | - have hc : ContDiffAt ℝ ∞ (rotate j) p := (rotate_contDiff j).contDiffAt | |
| 169 | - have hrad : (rotate j p).1 ^ 2 + (rotate j p).2 ^ 2 ≠ 0 := by | |
| 170 | - nlinarith [sq_nonneg (rotate j p).2] | |
| 171 | - exact ((hc.fst.pow 2).add (hc.snd.pow 2)).sqrt hrad |>.prodMk | |
| 172 | - ((hc.snd.div hc.fst hp.ne').arctan.add contDiffAt_const) | |
| 173 | - | |
| 174 | 163 | /-- The original normalized compact annulus uses the product norm. -/ |
| 175 | 164 | noncomputable def annulus (a b : ℝ) : Set Plane := |
| 176 | 165 | Metric.closedBall 0 b ∩ {p | a ≤ ‖p‖} |
| @@ -185,10 +174,6 @@ noncomputable def chartDomain (a : ℝ) (j : Index) : Set Plane := | ||
| 185 | 174 | theorem chartDomain_open (a : ℝ) (j : Index) : IsOpen (chartDomain a j) := |
| 186 | 175 | isOpen_lt continuous_const (rotate_contDiff j).continuous.fst |
| 187 | 176 | |
| 188 | -theorem sector_isCompact (a b : ℝ) (j : Index) : IsCompact (sector a b j) := | |
| 189 | - (isCompact_closedBall 0 b).inter_right | |
| 190 | - (isClosed_le continuous_const (rotate_contDiff j).continuous.fst) | |
| 191 | - | |
| 192 | 177 | theorem sector_subset_chartDomain {a b : ℝ} (ha : 0 < a) (j : Index) : |
| 193 | 178 | sector a b j ⊆ chartDomain a j := by |
| 194 | 179 | intro p hp |
| @@ -215,17 +200,6 @@ theorem annulus_covered {a b : ℝ} (ha : 0 < a) {p : Plane} (hp : p ∈ annulus | ||
| 215 | 200 | change a / 2 ≤ (rotate j p).1 |
| 216 | 201 | linarith |
| 217 | 202 | |
| 218 | -/-- The same four sectors cover a compact annulus defined by the Euclidean | |
| 219 | -radius, with the stated margin `rotated x ≥ a/2`. -/ | |
| 220 | -theorem euclidean_annulus_covered {a b : ℝ} {p : Plane} | |
| 221 | - (hlo : a ≤ radius p) (hhi : radius p ≤ b) : | |
| 222 | - ∃ j : Index, p ∈ sector a b j := by | |
| 223 | - have hn : a / 2 ≤ ‖p‖ := by linarith [radius_le_two_norm p] | |
| 224 | - obtain ⟨j, hj⟩ := exists_rotate_fst_ge hn | |
| 225 | - refine ⟨j, ?_, hj⟩ | |
| 226 | - rw [Metric.mem_closedBall, dist_zero_right] | |
| 227 | - exact (norm_le_radius p).trans hhi | |
| 228 | - | |
| 229 | 203 | /-- A concrete global extension of the base polar chart. -/ |
| 230 | 204 | noncomputable def extendedBase (a : ℝ) (p : Plane) : Plane := |
| 231 | 205 | (Real.sqrt (RadialPullback.positiveRadius (a ^ 2 / 32) (p.1 ^ 2 + p.2 ^ 2)), |
| @@ -262,11 +236,6 @@ theorem chart_eq_localChart {a : ℝ} (ha : 0 < a) (j : Index) {p : Plane} | ||
| 262 | 236 | (hp : p ∈ chartDomain a j) : chart a j p = localChart j p := by |
| 263 | 237 | simp only [chart, extendedBase_eq ha hp, localChart] |
| 264 | 238 | |
| 265 | -theorem chart_eventuallyEq_localChart {a : ℝ} (ha : 0 < a) (j : Index) {p : Plane} | |
| 266 | - (hp : p ∈ chartDomain a j) : chart a j =ᶠ[𝓝 p] localChart j := by | |
| 267 | - filter_upwards [(chartDomain_open a j).mem_nhds hp] with q hq | |
| 268 | - exact chart_eq_localChart ha j hq | |
| 269 | - | |
| 270 | 239 | theorem polar_chart {a : ℝ} (ha : 0 < a) (j : Index) {p : Plane} |
| 271 | 240 | (hp : p ∈ chartDomain a j) : polar (chart a j p) = p := by |
| 272 | 241 | rw [chart_eq_localChart ha j hp] |
| @@ -279,16 +248,6 @@ theorem chart_polar {a : ℝ} (ha : 0 < a) (j : Index) {r θ : ℝ} | ||
| 279 | 248 | (hp : polar (r, θ) ∈ chartDomain a j) : chart a j (polar (r, θ)) = (r, θ) := by |
| 280 | 249 | rw [chart_eq_localChart ha j hp, localChart_polar j hr hθ] |
| 281 | 250 | |
| 282 | -/-- On the compact sectors every actual derivative of the global extension | |
| 283 | -equals the derivative of the genuine local polar inverse. -/ | |
| 284 | -theorem chart_jet_eq_localChart {a : ℝ} (ha : 0 < a) (j : Index) {p : Plane} | |
| 285 | - (hp : p ∈ chartDomain a j) (k : ℕ) : | |
| 286 | - iteratedFDeriv ℝ k (chart a j) p = iteratedFDeriv ℝ k (localChart j) p := by | |
| 287 | - have he := chart_eventuallyEq_localChart ha j hp | |
| 288 | - have he' : chart a j =ᶠ[𝓝[univ] p] localChart j := by simpa using he | |
| 289 | - simpa only [iteratedFDerivWithin_univ] using | |
| 290 | - he'.iteratedFDerivWithin_eq he.eq_of_nhds k | |
| 291 | - | |
| 292 | 251 | /-- A single constant bounds all actual jets up to the given order for all |
| 293 | 252 | four explicit chart extensions on the fixed closed ball. -/ |
| 294 | 253 | theorem chart_finiteJets_uniform {a : ℝ} (ha : 0 < a) (b : ℝ) (m : ℕ) : |
| @@ -309,17 +268,6 @@ theorem chart_finiteJets_uniform {a : ℝ} (ha : 0 < a) (b : ℝ) (m : ℕ) : | ||
| 309 | 268 | Finset.single_le_sum (fun v _ => abs_nonneg (B v)) (Finset.mem_univ i) |
| 310 | 269 | exact (hB i p hp).trans ((le_abs_self (B i)).trans (by linarith)) |
| 311 | 270 | |
| 312 | -/-- The compact sectors cover the annulus and carry one uniform bound for the | |
| 313 | -actual local inverse jets, not merely for a prescribed jet family. -/ | |
| 314 | -theorem localChart_finiteJets_uniform {a : ℝ} (ha : 0 < a) (b : ℝ) (m : ℕ) : | |
| 315 | - ∃ C : ℝ, 1 ≤ C ∧ ∀ j : Index, ∀ k ≤ m, ∀ p ∈ sector a b j, | |
| 316 | - ‖iteratedFDeriv ℝ k (localChart j) p‖ ≤ C := by | |
| 317 | - obtain ⟨C, hC, hB⟩ := chart_finiteJets_uniform ha b m | |
| 318 | - refine ⟨C, hC, ?_⟩ | |
| 319 | - intro j k hk p hp | |
| 320 | - rw [← chart_jet_eq_localChart ha j (sector_subset_chartDomain ha j hp) k] | |
| 321 | - exact hB j k hk p hp.1 | |
| 322 | - | |
| 323 | 271 | section Scaling |
| 324 | 272 | |
| 325 | 273 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| @@ -331,16 +279,6 @@ theorem norm_jet_comp_linear {f : Plane → Plane} (hf : ContDiff ℝ ∞ f) | ||
| 331 | 279 | rw [L.iteratedFDeriv_comp_right hf p (nat_le_smooth k)] |
| 332 | 280 | simpa using (iteratedFDeriv ℝ k f (L p)).norm_compContinuousLinearMap_le (fun _ => L) |
| 333 | 281 | |
| 334 | -theorem chart_comp_linear_finiteJets {a : ℝ} (ha : 0 < a) (b : ℝ) (m : ℕ) : | |
| 335 | - ∃ C : ℝ, 1 ≤ C ∧ ∀ j : Index, ∀ k ≤ m, ∀ (L : E →L[ℝ] Plane) (p : E), | |
| 336 | - L p ∈ Metric.closedBall (0 : Plane) b → | |
| 337 | - ‖iteratedFDeriv ℝ k (chart a j ∘ L) p‖ ≤ C * ‖L‖ ^ k := by | |
| 338 | - obtain ⟨C, hC, hB⟩ := chart_finiteJets_uniform ha b m | |
| 339 | - refine ⟨C, hC, ?_⟩ | |
| 340 | - intro j k hk L p hp | |
| 341 | - exact (norm_jet_comp_linear (chart_contDiff ha j) L p k).trans | |
| 342 | - (mul_le_mul_of_nonneg_right (hB j k hk (L p) hp) (pow_nonneg (norm_nonneg _) _)) | |
| 343 | - | |
| 344 | 282 | end Scaling |
| 345 | 283 | |
| 346 | 284 | noncomputable def scalePlane (Q : ℝ) : Plane →L[ℝ] Plane := |
| @@ -349,38 +287,10 @@ noncomputable def scalePlane (Q : ℝ) : Plane →L[ℝ] Plane := | ||
| 349 | 287 | @[simp] theorem scalePlane_apply (Q : ℝ) (p : Plane) : |
| 350 | 288 | scalePlane Q p = Q ^ (-(1 / 2 : ℝ)) • p := rfl |
| 351 | 289 | |
| 352 | -theorem norm_scalePlane_le {Q : ℝ} (hQ : 0 < Q) : | |
| 353 | - ‖scalePlane Q‖ ≤ Q ^ (-(1 / 2 : ℝ)) := by | |
| 354 | - apply ContinuousLinearMap.opNorm_le_bound _ (Real.rpow_nonneg hQ.le _) | |
| 355 | - intro p | |
| 356 | - rw [scalePlane_apply, norm_smul, Real.norm_of_nonneg (Real.rpow_nonneg hQ.le _)] | |
| 357 | - | |
| 358 | 290 | /-- The physical input is scaled by `1 / sqrt Q` before taking the polar chart. -/ |
| 359 | 291 | noncomputable def physicalChart (a : ℝ) (j : Index) (Q : ℝ) : Plane → Plane := |
| 360 | 292 | chart a j ∘ scalePlane Q |
| 361 | 293 | |
| 362 | -theorem physicalChart_contDiff {a : ℝ} (ha : 0 < a) (j : Index) (Q : ℝ) : | |
| 363 | - ContDiff ℝ ∞ (physicalChart a j Q) := | |
| 364 | - (chart_contDiff ha j).comp (scalePlane Q).contDiff | |
| 365 | - | |
| 366 | -/-- Each physical derivative costs exactly the fixed half-power of `Q`. | |
| 367 | -The constant is chosen before `Q`, the chart, and the evaluation point. -/ | |
| 368 | -theorem physicalChart_finiteJets_uniform {a : ℝ} (ha : 0 < a) (b : ℝ) (m : ℕ) : | |
| 369 | - ∃ C : ℝ, 1 ≤ C ∧ ∀ (Q : ℝ), 0 < Q → ∀ j : Index, ∀ k ≤ m, ∀ p : Plane, | |
| 370 | - scalePlane Q p ∈ Metric.closedBall (0 : Plane) b → | |
| 371 | - ‖iteratedFDeriv ℝ k (physicalChart a j Q) p‖ ≤ C * Q ^ (-(k : ℝ) / 2) := by | |
| 372 | - obtain ⟨C, hC, hB⟩ := chart_comp_linear_finiteJets (E := Plane) ha b m | |
| 373 | - refine ⟨C, hC, ?_⟩ | |
| 374 | - intro Q hQ j k hk p hp | |
| 375 | - have h := hB j k hk (scalePlane Q) p hp | |
| 376 | - have hs : ‖scalePlane Q‖ ^ k ≤ (Q ^ (-(1 / 2 : ℝ))) ^ k := | |
| 377 | - pow_le_pow_left₀ (norm_nonneg _) (norm_scalePlane_le hQ) k | |
| 378 | - have he : (Q ^ (-(1 / 2 : ℝ))) ^ k = Q ^ (-(k : ℝ) / 2) := by | |
| 379 | - rw [← Real.rpow_mul_natCast hQ.le] | |
| 380 | - congr 1 | |
| 381 | - ring | |
| 382 | - exact h.trans ((mul_le_mul_of_nonneg_left hs (by linarith)).trans_eq (by rw [he])) | |
| 383 | - | |
| 384 | 294 | theorem rotate_smul (j : Index) (c : ℝ) (p : Plane) : rotate j (c • p) = c • rotate j p := by |
| 385 | 295 | fin_cases j <;> ext <;> simp [rotate, mul_neg] |
| 386 | 296 | |
| @@ -394,24 +304,6 @@ theorem localChart_smul (j : Index) {c : ℝ} (hc : 0 < c) (p : Plane) : | ||
| 394 | 304 | simp only [localChart_apply, radius_smul hc, rotate_smul, Prod.smul_fst, |
| 395 | 305 | Prod.smul_snd, smul_eq_mul, mul_div_mul_left _ _ hc.ne'] |
| 396 | 306 | |
| 397 | -theorem scalePlane_eq_inv_sqrt {Q : ℝ} (hQ : 0 < Q) (p : Plane) : | |
| 398 | - scalePlane Q p = (Real.sqrt Q)⁻¹ • p := by | |
| 399 | - rw [scalePlane_apply, Real.rpow_neg hQ.le, Real.sqrt_eq_rpow] | |
| 400 | - | |
| 401 | -theorem physicalChart_eq {a Q : ℝ} (ha : 0 < a) (hQ : 0 < Q) (j : Index) {p : Plane} | |
| 402 | - (hp : scalePlane Q p ∈ chartDomain a j) : | |
| 403 | - physicalChart a j Q p = (radius p / Real.sqrt Q, (localChart j p).2) := by | |
| 404 | - rw [physicalChart, comp_apply, chart_eq_localChart ha j hp, | |
| 405 | - scalePlane_eq_inv_sqrt hQ, localChart_smul j (inv_pos.mpr (Real.sqrt_pos.2 hQ))] | |
| 406 | - rw [localChart_apply] | |
| 407 | - simp only [inv_mul_eq_div] | |
| 408 | - | |
| 409 | -theorem physicalChart_inverse {a Q : ℝ} (ha : 0 < a) (hQ : 0 < Q) (j : Index) {p : Plane} | |
| 410 | - (hp : scalePlane Q p ∈ chartDomain a j) : | |
| 411 | - Real.sqrt Q • polar (physicalChart a j Q p) = p := by | |
| 412 | - rw [physicalChart, comp_apply, polar_chart ha j hp, scalePlane_eq_inv_sqrt hQ, | |
| 413 | - smul_smul, mul_inv_cancel₀ (Real.sqrt_pos.2 hQ).ne', one_smul] | |
| 414 | - | |
| 415 | 307 | /-- Angles from two valid local inverse charts differ by an integer full turn. -/ |
| 416 | 308 | theorem localChart_angle_difference (i j : Index) {p : Plane} |
| 417 | 309 | (hi : 0 < (rotate i p).1) (hj : 0 < (rotate j p).1) : |
| @@ -458,22 +350,4 @@ theorem chart_periodic_agree {V : Type*} {a : ℝ} (ha : 0 < a) (f : Plane → V | ||
| 458 | 350 | · have h : a / 4 < (rotate j p).1 := hj |
| 459 | 351 | linarith |
| 460 | 352 | |
| 461 | -theorem chart_periodic_eventuallyEq {V : Type*} {a : ℝ} (ha : 0 < a) (f : Plane → V) | |
| 462 | - (hf : ∀ r : ℝ, Periodic (fun θ => f (r, θ)) (2 * Real.pi)) | |
| 463 | - (i j : Index) {p : Plane} (hi : p ∈ chartDomain a i) (hj : p ∈ chartDomain a j) : | |
| 464 | - f ∘ chart a i =ᶠ[𝓝 p] f ∘ chart a j := by | |
| 465 | - filter_upwards [(chartDomain_open a i).mem_nhds hi, (chartDomain_open a j).mem_nhds hj] | |
| 466 | - with q hqi hqj | |
| 467 | - exact chart_periodic_agree ha f hf i j hqi hqj | |
| 468 | - | |
| 469 | -theorem chart_periodic_jets_agree {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 470 | - {a : ℝ} (ha : 0 < a) (f : Plane → V) | |
| 471 | - (hf : ∀ r : ℝ, Periodic (fun θ => f (r, θ)) (2 * Real.pi)) | |
| 472 | - (i j : Index) {p : Plane} (hi : p ∈ chartDomain a i) (hj : p ∈ chartDomain a j) (k : ℕ) : | |
| 473 | - iteratedFDeriv ℝ k (f ∘ chart a i) p = iteratedFDeriv ℝ k (f ∘ chart a j) p := by | |
| 474 | - have he := chart_periodic_eventuallyEq ha f hf i j hi hj | |
| 475 | - have he' : f ∘ chart a i =ᶠ[𝓝[univ] p] f ∘ chart a j := by simpa using he | |
| 476 | - simpa only [iteratedFDerivWithin_univ] using | |
| 477 | - he'.iteratedFDerivWithin_eq he.eq_of_nhds k | |
| 478 | - | |
| 479 | 353 | end NavierStokes.PolarCharts |
+11 −0 routes/s1-ns-polar-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-polar-1 | |
| 6 | + | |
| 7 | +One unit of S-1: delete declarations nothing uses, in the family `NavierStokes/Polar*`. This unit deletes 16 declarations from `NavierStokes/PolarCharts.lean` (126 lines), all of them unreachable from the paper's results on `main` at `239393c` under the rule that a declaration Treant removed stays when a paper result, a paper-citing docstring, or a staying declaration names it. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +Open the pull request and let the maintainer read the deletions. Nothing else in this family is touched; a further unit would take the next family, not this file again. | |