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

| 1 | import Euler.MeanHarmonicCutoffEnergy |
| 2 | |
| 3 | /-! Actual nested smooth cutoffs, with finite derivative bounds independent of the field. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerMeanHarmonic |
| 8 | |
| 9 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus EulerMeanSolenoidal |
| 10 | open scoped ContDiff |
| 11 | |
| 12 | private theorem derivative_bound_exists (f : Space → ℝ) (hc : HasCompactSupport f) |
| 13 | (hs : ContDiff ℝ ∞ f) (n : ℕ) : ∃ C : ℝ, ∀ x, ‖iteratedFDeriv ℝ n f x‖ ≤ C := |
| 14 | (hc.iteratedFDeriv n).exists_bound_of_continuous (hs.continuous_iteratedFDeriv (by simp)) |
| 15 | |
| 16 | def derivativeBound (f : Space → ℝ) (hc : HasCompactSupport f) |
| 17 | (hs : ContDiff ℝ ∞ f) (n : ℕ) : ℝ := |
| 18 | max 1 (Classical.choose (derivative_bound_exists f hc hs n)) |
| 19 | |
| 20 | theorem one_le_derivativeBound (f : Space → ℝ) (hc : HasCompactSupport f) |
| 21 | (hs : ContDiff ℝ ∞ f) (n : ℕ) : 1 ≤ derivativeBound f hc hs n := le_max_left _ _ |
| 22 | |
| 23 | theorem norm_iteratedFDeriv_le_derivativeBound (f : Space → ℝ) (hc : HasCompactSupport f) |
| 24 | (hs : ContDiff ℝ ∞ f) (n : ℕ) (x : Space) : |
| 25 | ‖iteratedFDeriv ℝ n f x‖ ≤ derivativeBound f hc hs n := |
| 26 | (Classical.choose_spec (derivative_bound_exists f hc hs n) x).trans (le_max_right _ _) |
| 27 | |
| 28 | theorem norm_gradient_le_derivativeBound (f : Space → ℝ) (hc : HasCompactSupport f) |
| 29 | (hs : ContDiff ℝ ∞ f) (x : Space) : ‖gradient f x‖ ≤ derivativeBound f hc hs 1 := by |
| 30 | have hn : ‖gradient f x‖ = ‖fderiv ℝ f x‖ := (toDual ℝ Space).symm.norm_map _ |
| 31 | rw [hn, ← norm_iteratedFDeriv_one] |
| 32 | exact norm_iteratedFDeriv_le_derivativeBound f hc hs 1 x |
| 33 | |
| 34 | theorem abs_secondPartial_le_derivativeBound (f : Space → ℝ) (hc : HasCompactSupport f) |
| 35 | (hs : ContDiff ℝ ∞ f) (i : Fin 3) (x : Space) : |
| 36 | |partialDerivative (partialDerivative f i) i x| ≤ derivativeBound f hc hs 2 := by |
| 37 | rw [partialDerivative_twice f hs i x, ← Real.norm_eq_abs] |
| 38 | have h := (iteratedFDeriv ℝ 2 f x).le_opNorm (fun _ : Fin 2 => EuclideanSpace.single i 1) |
| 39 | have hb : ‖iteratedFDeriv ℝ 2 f x (fun _ : Fin 2 => EuclideanSpace.single i 1)‖ ≤ |
| 40 | ‖iteratedFDeriv ℝ 2 f x‖ := by |
| 41 | simpa only [PiLp.norm_single, norm_one, Finset.prod_const_one, mul_one] using h |
| 42 | exact hb.trans (norm_iteratedFDeriv_le_derivativeBound f hc hs 2 x) |
| 43 | |
| 44 | def innerBump : ContDiffBump (0 : Space) := ⟨1/2, 5/8, by norm_num, by norm_num⟩ |
| 45 | def middleBump : ContDiffBump (0 : Space) := ⟨3/4, 13/16, by norm_num, by norm_num⟩ |
| 46 | def outerBump : ContDiffBump (0 : Space) := ⟨7/8, 15/16, by norm_num, by norm_num⟩ |
| 47 | |
| 48 | def innerCutoff : Space → ℝ := innerBump |
| 49 | def middleCutoff : Space → ℝ := middleBump |
| 50 | def outerCutoff : Space → ℝ := outerBump |
| 51 | |
| 52 | theorem inner_smooth : ContDiff ℝ ∞ innerCutoff := innerBump.contDiff |
| 53 | theorem middle_smooth : ContDiff ℝ ∞ middleCutoff := middleBump.contDiff |
| 54 | theorem outer_smooth : ContDiff ℝ ∞ outerCutoff := outerBump.contDiff |
| 55 | theorem inner_compact : HasCompactSupport innerCutoff := innerBump.hasCompactSupport |
| 56 | theorem middle_compact : HasCompactSupport middleCutoff := middleBump.hasCompactSupport |
| 57 | theorem outer_compact : HasCompactSupport outerCutoff := outerBump.hasCompactSupport |
| 58 | |
| 59 | theorem inner_support : tsupport innerCutoff = Metric.closedBall 0 (5/8 : ℝ) := |
| 60 | innerBump.tsupport_eq |
| 61 | theorem middle_support : tsupport middleCutoff = Metric.closedBall 0 (13/16 : ℝ) := |
| 62 | middleBump.tsupport_eq |
| 63 | theorem outer_support : tsupport outerCutoff = Metric.closedBall 0 (15/16 : ℝ) := |
| 64 | outerBump.tsupport_eq |
| 65 | |
| 66 | theorem abs_inner_le_one (x : Space) : |innerCutoff x| ≤ 1 := by |
| 67 | change |innerBump x| ≤ 1 |
| 68 | rw [abs_of_nonneg innerBump.nonneg] |
| 69 | exact innerBump.le_one |
| 70 | theorem abs_middle_le_one (x : Space) : |middleCutoff x| ≤ 1 := by |
| 71 | change |middleBump x| ≤ 1 |
| 72 | rw [abs_of_nonneg middleBump.nonneg] |
| 73 | exact middleBump.le_one |
| 74 | theorem abs_outer_le_one (x : Space) : |outerCutoff x| ≤ 1 := by |
| 75 | change |outerBump x| ≤ 1 |
| 76 | rw [abs_of_nonneg outerBump.nonneg] |
| 77 | exact outerBump.le_one |
| 78 | |
| 79 | theorem inner_one_on_halfBall {x : Space} (hx : x ∈ Metric.closedBall 0 (1/2 : ℝ)) : |
| 80 | innerCutoff x = 1 := innerBump.one_of_mem_closedBall hx |
| 81 | |
| 82 | theorem middle_one_on_inner_support {x : Space} (hx : x ∈ tsupport innerCutoff) : |
| 83 | middleCutoff x = 1 := by |
| 84 | rw [inner_support] at hx |
| 85 | exact middleBump.one_of_mem_closedBall |
| 86 | (Metric.closedBall_subset_closedBall (by norm_num [middleBump]) hx) |
| 87 | |
| 88 | theorem outer_one_on_middle_support {x : Space} (hx : x ∈ tsupport middleCutoff) : |
| 89 | outerCutoff x = 1 := by |
| 90 | rw [middle_support] at hx |
| 91 | exact outerBump.one_of_mem_closedBall |
| 92 | (Metric.closedBall_subset_closedBall (by norm_num [outerBump]) hx) |
| 93 | |
| 94 | theorem outer_one_on_inner_support {x : Space} (hx : x ∈ tsupport innerCutoff) : |
| 95 | outerCutoff x = 1 := by |
| 96 | rw [inner_support] at hx |
| 97 | exact outerBump.one_of_mem_closedBall |
| 98 | (Metric.closedBall_subset_closedBall (by norm_num [outerBump]) hx) |
| 99 | |
| 100 | theorem outer_support_unitBall : tsupport outerCutoff ⊆ Metric.ball 0 (1 : ℝ) := by |
| 101 | rw [outer_support] |
| 102 | exact Metric.closedBall_subset_ball (by norm_num) |
| 103 | |
| 104 | theorem middle_support_unitBall : tsupport middleCutoff ⊆ Metric.ball 0 (1 : ℝ) := by |
| 105 | rw [middle_support] |
| 106 | exact Metric.closedBall_subset_ball (by norm_num) |
| 107 | |
| 108 | end EulerMeanHarmonic |