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/Integrated): delete 11 of the unit's 21 declarations #231
Open
+0 −108 NavierStokes/IntegratedMeanBalances.lean View file
| @@ -55,13 +55,6 @@ theorem deriv_smooth {f : ℝ → ℝ} (hf : ContDiff ℝ ∞ f) : | ||
| 55 | 55 | theorem ae_radial_ne_zero : ∀ᵐ r : ℝ, r ≠ 0 := by |
| 56 | 56 | simpa only [mem_singleton_iff] using (countable_singleton (0 : ℝ)).ae_notMem volume |
| 57 | 57 | |
| 58 | -theorem integral_deriv_zero {f : ℝ → ℝ} (hf : ContDiff ℝ ∞ f) | |
| 59 | - (hs : HasCompactSupport f) : (∫ r, deriv f r) = 0 := | |
| 60 | - integral_eq_zero_of_hasDerivAt_of_integrable | |
| 61 | - (fun r => (hf.differentiable (by simp) r).hasDerivAt) | |
| 62 | - ((deriv_smooth hf).continuous.integrable_of_hasCompactSupport hs.deriv) | |
| 63 | - (hf.continuous.integrable_of_hasCompactSupport hs) | |
| 64 | - | |
| 65 | 58 | /-- Weighted integration by parts; compact support supplies both endpoint terms. -/ |
| 66 | 59 | theorem moment_deriv_succ {f : ℝ → ℝ} (hf : ContDiff ℝ ∞ f) |
| 67 | 60 | (hs : HasCompactSupport f) (n : ℕ) : |
| @@ -365,28 +358,10 @@ theorem fixedPartial_smooth (v : (P × ℝ) × ℝ) {F : (P × ℝ) × ℝ → | ||
| 365 | 358 | (hF : ContDiff ℝ ∞ F) : ContDiff ℝ ∞ (fixedPartial v F) := |
| 366 | 359 | (hF.fderiv_right (by simp)).clm_apply contDiff_const |
| 367 | 360 | |
| 368 | -theorem fixedPartial_periodic (v : (P × ℝ) × ℝ) {F : (P × ℝ) × ℝ → ℝ} | |
| 369 | - (hp : TorusPeriodic F) : TorusPeriodic (fixedPartial v F) := by | |
| 370 | - constructor | |
| 371 | - · intro q | |
| 372 | - have he : (fun x => F (x + ((0, 0), 1))) = F := funext hp.first | |
| 373 | - have hd := congrArg (fun f => fderiv ℝ f q) he | |
| 374 | - rw [fderiv_comp_add_right] at hd | |
| 375 | - exact congrArg (fun L : ((P × ℝ) × ℝ) →L[ℝ] ℝ => L v) hd | |
| 376 | - · intro q | |
| 377 | - have he : (fun x => F (x + ((0, 1), 0))) = F := funext hp.second | |
| 378 | - have hd := congrArg (fun f => fderiv ℝ f q) he | |
| 379 | - rw [fderiv_comp_add_right] at hd | |
| 380 | - exact congrArg (fun L : ((P × ℝ) × ℝ) →L[ℝ] ℝ => L v) hd | |
| 381 | - | |
| 382 | 361 | theorem torusInner_smooth {F : (P × ℝ) × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) : |
| 383 | 362 | ContDiff ℝ ∞ (torusInner F) := |
| 384 | 363 | TransportPrimitive.parameterIntegral_contDiff (g := F) hF 0 1 |
| 385 | 364 | |
| 386 | -theorem torusAverage_smooth {F : (P × ℝ) × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) : | |
| 387 | - ContDiff ℝ ∞ (torusAverage F) := | |
| 388 | - TransportPrimitive.parameterIntegral_contDiff (g := torusInner F) (torusInner_smooth hF) 0 1 | |
| 389 | - | |
| 390 | 365 | /-- Both parameter-integral interchanges are proved from joint smoothness on |
| 391 | 366 | the compact torus coordinate square. -/ |
| 392 | 367 | theorem torusAverage_fderiv {F : (P × ℝ) × ℝ → ℝ} (hF : ContDiff ℝ ∞ F) (p v : P) : |
| @@ -480,55 +455,6 @@ theorem torusAverage_torusPartial_zero (v : ℝ × ℝ) {F : (P × ℝ) × ℝ | ||
| 480 | 455 | torusAverage_first_zero hF hp, torusAverage_second_zero hF hp] |
| 481 | 456 | simp |
| 482 | 457 | |
| 483 | -noncomputable def graphPartial (a : P → ℝ) (v : P) (w : ℝ × ℝ) | |
| 484 | - (F : (P × ℝ) × ℝ → ℝ) (q : (P × ℝ) × ℝ) : ℝ := | |
| 485 | - slowPartial v F q + a q.1.1 * torusPartial w F q | |
| 486 | - | |
| 487 | -theorem graphPartial_smooth {a : P → ℝ} {F : (P × ℝ) × ℝ → ℝ} | |
| 488 | - (ha : ContDiff ℝ ∞ a) (hF : ContDiff ℝ ∞ F) (v : P) (w : ℝ × ℝ) : | |
| 489 | - ContDiff ℝ ∞ (graphPartial a v w F) := | |
| 490 | - (fixedPartial_smooth _ hF).add ((ha.comp contDiff_fst.fst).mul (fixedPartial_smooth _ hF)) | |
| 491 | - | |
| 492 | -theorem graphPartial_periodic (a : P → ℝ) (v : P) (w : ℝ × ℝ) | |
| 493 | - {F : (P × ℝ) × ℝ → ℝ} (hp : TorusPeriodic F) : | |
| 494 | - TorusPeriodic (graphPartial a v w F) := by | |
| 495 | - have hs := fixedPartial_periodic ((v, 0), 0) hp | |
| 496 | - have ht := fixedPartial_periodic ((0, w.2), w.1) hp | |
| 497 | - constructor | |
| 498 | - · intro q | |
| 499 | - simp only [graphPartial, slowPartial, torusPartial] | |
| 500 | - rw [hs.first, ht.first] | |
| 501 | - simp only [Prod.add_def, add_zero] | |
| 502 | - · intro q | |
| 503 | - simp only [graphPartial, slowPartial, torusPartial] | |
| 504 | - rw [hs.second, ht.second] | |
| 505 | - simp only [Prod.add_def, add_zero] | |
| 506 | - | |
| 507 | -/-- Graph lift terms integrate to zero; only the genuine slow derivative remains. -/ | |
| 508 | -theorem torusAverage_graphPartial {a : P → ℝ} {F : (P × ℝ) × ℝ → ℝ} | |
| 509 | - (ha : ContDiff ℝ ∞ a) (hF : ContDiff ℝ ∞ F) (hp : TorusPeriodic F) | |
| 510 | - (v p : P) (w : ℝ × ℝ) : | |
| 511 | - torusAverage (graphPartial a v w F) p = fderiv ℝ (torusAverage F) p v := by | |
| 512 | - have hs : ContDiff ℝ ∞ (slowPartial v F) := fixedPartial_smooth _ hF | |
| 513 | - have ht : ContDiff ℝ ∞ (fun q => a q.1.1 * torusPartial w F q) := | |
| 514 | - (ha.comp contDiff_fst.fst).mul (fixedPartial_smooth _ hF) | |
| 515 | - unfold graphPartial | |
| 516 | - rw [torusAverage_add hs ht, torusAverage_coeff_mul, | |
| 517 | - torusAverage_torusPartial_zero w hF hp, mul_zero, add_zero] | |
| 518 | - exact (torusAverage_fderiv hF p v).symm | |
| 519 | - | |
| 520 | -theorem torusAverage_graphPartial_twice {a : P → ℝ} {F : (P × ℝ) × ℝ → ℝ} | |
| 521 | - (ha : ContDiff ℝ ∞ a) (hF : ContDiff ℝ ∞ F) (hp : TorusPeriodic F) | |
| 522 | - (v p : P) (w : ℝ × ℝ) : | |
| 523 | - torusAverage (graphPartial a v w (graphPartial a v w F)) p = | |
| 524 | - fderiv ℝ (fun q => fderiv ℝ (torusAverage F) q v) p v := by | |
| 525 | - rw [torusAverage_graphPartial ha (graphPartial_smooth ha hF v w) | |
| 526 | - (graphPartial_periodic a v w hp)] | |
| 527 | - have he : torusAverage (graphPartial a v w F) = | |
| 528 | - (fun q => fderiv ℝ (torusAverage F) q v) := | |
| 529 | - funext (fun q => torusAverage_graphPartial ha hF hp v q w) | |
| 530 | - rw [he] | |
| 531 | - | |
| 532 | 458 | end Torus |
| 533 | 459 | |
| 534 | 460 | /-! ## The averaged chart balances and their exact weighted integrals -/ |
| @@ -766,15 +692,6 @@ theorem radialDivergence_supported {a b : ℝ} {f : ℝ → ℝ} | ||
| 766 | 692 | simp [radialDivergence, zero_of_not_mem_interval hs hn, |
| 767 | 693 | zero_of_not_mem_interval (deriv_support_interval hs) hn] |
| 768 | 694 | |
| 769 | -theorem angularViscosity_supported {a b : ℝ} {f : ℝ → ℝ} | |
| 770 | - (hs : support f ⊆ Icc a b) : support (angularRadialViscosity f) ⊆ Icc a b := by | |
| 771 | - intro r hr | |
| 772 | - by_contra hn | |
| 773 | - apply hr | |
| 774 | - simp [angularRadialViscosity, zero_of_not_mem_interval hs hn, | |
| 775 | - zero_of_not_mem_interval (deriv_support_interval hs) hn, | |
| 776 | - zero_of_not_mem_interval (deriv_support_interval (deriv_support_interval hs)) hn] | |
| 777 | - | |
| 778 | 695 | theorem axialViscosity_supported {a b : ℝ} {f : ℝ → ℝ} |
| 779 | 696 | (hs : support f ⊆ Icc a b) : support (axialRadialViscosity f) ⊆ Icc a b := by |
| 780 | 697 | intro r hr |
| @@ -792,21 +709,6 @@ theorem SmoothShell.zero_of_not_mem {a b : ℝ} {F : MeanField} (hF : SmoothShel | ||
| 792 | 709 | by_contra h |
| 793 | 710 | exact hx (hF.supported h) |
| 794 | 711 | |
| 795 | -theorem angularBalance_supported {a b : ℝ} (ε : ℝ) | |
| 796 | - {v radialFlux axialFlux virtualFlux : MeanField} | |
| 797 | - (hv : SmoothShell a b v) (hr : SmoothShell a b radialFlux) | |
| 798 | - (hz : SmoothShell a b axialFlux) (hT : SmoothShell a b virtualFlux) : | |
| 799 | - RadialAlias.RadiallySupported a b (angularBalance ε v radialFlux axialFlux virtualFlux) := by | |
| 800 | - intro x hx | |
| 801 | - by_contra hn | |
| 802 | - apply hx | |
| 803 | - simp [angularBalance, | |
| 804 | - (hv.partial (1, 0)).zero_of_not_mem hn, (hz.partial (0, 1)).zero_of_not_mem hn, | |
| 805 | - ((hv.partial (0, 1)).partial (0, 1)).zero_of_not_mem hn, | |
| 806 | - zero_of_not_mem_interval (radialDivergence_supported (hr.slice_support x.2) 2) hn, | |
| 807 | - zero_of_not_mem_interval (radialDivergence_supported (hT.slice_support x.2) 2) hn, | |
| 808 | - zero_of_not_mem_interval (angularViscosity_supported (hv.slice_support x.2)) hn] | |
| 809 | - | |
| 810 | 712 | theorem axialBalance_supported {a b : ℝ} (ε : ℝ) |
| 811 | 713 | {γ radialFlux axialFlux pressure virtualFlux : MeanField} |
| 812 | 714 | (hγ : SmoothShell a b γ) (hr : SmoothShell a b radialFlux) |
| @@ -830,16 +732,6 @@ theorem positive_radialMoment {a b : ℝ} (ha : 0 < a) {F : MeanField} | ||
| 830 | 732 | intro r hr |
| 831 | 733 | exact hs (right_ne_zero_of_mul hr) |
| 832 | 734 | |
| 833 | -theorem integrated_angular_positive {a b : ℝ} (ha : 0 < a) (ε : ℝ) | |
| 834 | - {v radialFlux axialFlux virtualFlux : MeanField} | |
| 835 | - (hv : SmoothShell a b v) (hr : SmoothShell a b radialFlux) | |
| 836 | - (hz : SmoothShell a b axialFlux) (hT : SmoothShell a b virtualFlux) | |
| 837 | - (hmass : radialMoment 2 v = 0) (p : MeanParameter) : | |
| 838 | - (∫ r in Ioi (0 : ℝ), r ^ 2 * angularBalance ε v radialFlux axialFlux virtualFlux (r, p)) = | |
| 839 | - ε * fderiv ℝ (radialMoment 2 axialFlux) p (0, 1) := by | |
| 840 | - rw [positive_radialMoment ha (angularBalance_supported ε hv hr hz hT), | |
| 841 | - integrated_angular_balance ε hv hr hz hT hmass] | |
| 842 | - | |
| 843 | 735 | theorem integrated_axial_positive {a b : ℝ} (ha : 0 < a) (ε : ℝ) |
| 844 | 736 | {γ radialFlux axialFlux pressure virtualFlux gr ρ : MeanField} |
| 845 | 737 | (hγ : SmoothShell a b γ) (hr : SmoothShell a b radialFlux) |
+36 −0 routes/s1-ns-integrated-1/README.md added View file
| @@ -0,0 +1,36 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-integrated-1 | |
| 6 | + | |
| 7 | +One declarations unit of S-1 (issue #10), family `NavierStokes/Integrated*`, wave 1. The unit names 21 | |
| 8 | +declarations of `NavierStokes/IntegratedMeanBalances.lean`; this deletes 11 of them (108 lines, deletions only). | |
| 9 | + | |
| 10 | +The other 10 stay, so they are left out of this pull request. `integrated_axial_constructed_pressure` has a | |
| 11 | +docstring that cites the paper: "The second identity of (34) with pressure supplied by the actual compact primitive | |
| 12 | +(33)" (this file's other docstrings use (32)–(34) the same way, as the Navier–Stokes paper's equation numbers), and | |
| 13 | +the project's rule keeps a declaration whose docstring cites the paper. Its proof refers to | |
| 14 | +`integrated_axial_positive`, which refers to `positive_radialMoment` and `axialBalance_supported`, which refer to | |
| 15 | +`SmoothShell.slice_support`, `SmoothShell.zero_of_not_mem`, `zero_of_not_mem_interval`, `deriv_support_interval`, | |
| 16 | +`radialDivergence_supported` and `axialViscosity_supported`; those stay with it. That is 10 of the unit's 21. | |
| 17 | + | |
| 18 | +Deleted: `integral_deriv_zero`, `fixedPartial_periodic`, `torusAverage_smooth`, `graphPartial`, | |
| 19 | +`graphPartial_smooth`, `graphPartial_periodic`, `torusAverage_graphPartial`, `torusAverage_graphPartial_twice`, | |
| 20 | +`angularViscosity_supported`, `angularBalance_supported`, `integrated_angular_positive`. | |
| 21 | + | |
| 22 | +Checks on the tree after the deletion: | |
| 23 | + | |
| 24 | +- `git grep -n -w` for each deleted short name finds nothing, except `fixedPartial_periodic`, which finds only the | |
| 25 | + two other declarations of that short name (`NavierStokes/ParametricTorusInverse.lean:72`, | |
| 26 | + `NavierStokes/SmoothFamilyTorusInverse.lean:69`), on different types. | |
| 27 | +- No deleted docstring cites the paper; the only one that did (`integrated_axial_constructed_pressure`) is one of | |
| 28 | + the 10 left in. | |
| 29 | +- No statement or proof that stays is changed, and no other file is touched. | |
| 30 | +- `python3 checks/challenge.py .` ends with `ok: …`. | |
| 31 | + | |
| 32 | +## Next | |
| 33 | + | |
| 34 | +The maintainer's review after `challenge` and `build`. The 10 left back are tied to the paper's (33)/(34) through | |
| 35 | +the one docstring; the family's later units (`s1-ns-integrated-2`, `-3`, `-4`) are in other waves and other pull | |
| 36 | +requests. | |