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.MeanBoundaryDerivative |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.FiniteDimension |
| 3 | |
| 4 | /-! Full spatial-parameter smoothness of the actual localized Newtonian operators. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerMeanBoundary |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerMeanSolenoidal EulerMeanGradientTest Filter |
| 11 | open scoped ContDiff Topology |
| 12 | |
| 13 | theorem Cutoff.translate_add (χ : Cutoff) (a b : Space) : |
| 14 | (χ.translate a).translate b = χ.translate (a+b) := by |
| 15 | apply Cutoff.ext |
| 16 | funext x |
| 17 | change χ.field ((x+b)+a) = χ.field (x+(a+b)) |
| 18 | congr 1 |
| 19 | abel |
| 20 | |
| 21 | theorem Cutoff.directional_translate (χ : Cutoff) (a b : Space) : |
| 22 | (χ.translate b).directional a = (χ.directional a).translate b := by |
| 23 | apply Cutoff.ext |
| 24 | funext x |
| 25 | change (fderiv ℝ (fun y => χ.field (y+b)) x) a = (fderiv ℝ χ.field (x+b)) a |
| 26 | rw [fderiv_comp_add_right] |
| 27 | |
| 28 | theorem Cutoff.directional_add (χ : Cutoff) (a b : Space) : |
| 29 | χ.directional (a+b) = (χ.directional a).add (χ.directional b) := by |
| 30 | apply Cutoff.ext |
| 31 | exact funext fun x => (fderiv ℝ χ.field x).map_add a b |
| 32 | |
| 33 | theorem Cutoff.directional_smul (χ : Cutoff) (c : ℝ) (a : Space) : |
| 34 | χ.directional (c • a) = (χ.directional a).scale c := by |
| 35 | apply Cutoff.ext |
| 36 | exact funext fun x => (fderiv ℝ χ.field x).map_smul c a |
| 37 | |
| 38 | section LinearCutoffOperation |
| 39 | |
| 40 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 41 | |
| 42 | /-- The derivative with respect to a translation parameter of an operation linear in the cutoff. -/ |
| 43 | def cutoffDirectionalMap (L : Cutoff → E) |
| 44 | (hadd : ∀ χ ψ, L (χ.add ψ) = L χ + L ψ) |
| 45 | (hsmul : ∀ χ c, L (χ.scale c) = c • L χ) (χ : Cutoff) : Space →L[ℝ] E := |
| 46 | LinearMap.toContinuousLinearMap |
| 47 | { toFun := fun a => L (χ.directional a) |
| 48 | map_add' := fun a b => by rw [Cutoff.directional_add, hadd] |
| 49 | map_smul' := fun c a => by rw [Cutoff.directional_smul, hsmul]; rfl } |
| 50 | |
| 51 | @[simp] theorem cutoffDirectionalMap_apply (L : Cutoff → E) |
| 52 | (hadd : ∀ χ ψ, L (χ.add ψ) = L χ + L ψ) |
| 53 | (hsmul : ∀ χ c, L (χ.scale c) = c • L χ) (χ : Cutoff) (a : Space) : |
| 54 | cutoffDirectionalMap L hadd hsmul χ a = L (χ.directional a) := rfl |
| 55 | |
| 56 | theorem cutoffOperation_differenceError (L : Cutoff → E) |
| 57 | (hsmul : ∀ χ c, L (χ.scale c) = c • L χ) |
| 58 | (hsub : ∀ χ ψ, L (χ.sub ψ) = L χ - L ψ) (χ : Cutoff) (a b : Space) : |
| 59 | L ((χ.translate a).differenceError (b-a) 1) = |
| 60 | L (χ.translate b) - L (χ.translate a) - L ((χ.translate a).directional (b-a)) := by |
| 61 | rw [Cutoff.differenceError, hsub, Cutoff.differenceQuotient, hsmul, hsub] |
| 62 | simp only [inv_one, one_smul, Cutoff.translate_add, add_sub_cancel] |
| 63 | |
| 64 | /-- The proved cutoff dual norm and a genuine Taylor remainder give the full Fréchet derivative. -/ |
| 65 | theorem cutoffOperation_hasFDerivAt (L : Cutoff → E) |
| 66 | (hadd : ∀ χ ψ, L (χ.add ψ) = L χ + L ψ) |
| 67 | (hsmul : ∀ χ c, L (χ.scale c) = c • L χ) |
| 68 | (hsub : ∀ χ ψ, L (χ.sub ψ) = L χ - L ψ) |
| 69 | (hbound : ∀ χ, ‖L χ‖ ≤ cutoffBound χ) (χ : Cutoff) (a : Space) : |
| 70 | HasFDerivAt (fun b : Space => L (χ.translate b)) |
| 71 | (cutoffDirectionalMap L hadd hsmul (χ.translate a)) a := by |
| 72 | obtain ⟨R, M₂, M₃, hM₂, hM₃, hs, h₂, h₃⟩ := (χ.translate a).exists_taylor_controls |
| 73 | have hstep : ∀ᶠ b : Space in 𝓝 a, ‖b-a‖ ≤ 1 := by |
| 74 | have hc : ContinuousAt (fun b : Space => ‖b-a‖) a := by fun_prop |
| 75 | exact (hc.eventually (gt_mem_nhds (by simp : ‖a-a‖ < 1))).mono (fun _ h => h.le) |
| 76 | have hrem (b : Space) (hb : ‖b-a‖ ≤ 1) : |
| 77 | ‖L (χ.translate b) - L (χ.translate a) - |
| 78 | cutoffDirectionalMap L hadd hsmul (χ.translate a) (b-a)‖ ≤ |
| 79 | cutoffDifferenceConstant R M₂ M₃ * ‖b-a‖^2 := by |
| 80 | rw [cutoffDirectionalMap_apply, ← cutoffOperation_differenceError L hsmul hsub] |
| 81 | have H := (hbound _).trans |
| 82 | (cutoffBound_differenceError (χ.translate a) R M₂ M₃ hM₂ hM₃ hs h₂ h₃ |
| 83 | (b-a) 1 one_ne_zero (by simpa only [one_smul] using hb)) |
| 84 | simpa only [abs_one, mul_one] using H |
| 85 | apply hasFDerivAt_iff_tendsto.mpr |
| 86 | refine squeeze_zero' (Eventually.of_forall (fun b => |
| 87 | mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) (norm_nonneg _))) ?_ ?_ |
| 88 | (g := fun b : Space => cutoffDifferenceConstant R M₂ M₃ * ‖b-a‖) |
| 89 | · filter_upwards [hstep] with b hb |
| 90 | calc |
| 91 | _ ≤ ‖b-a‖⁻¹ * (cutoffDifferenceConstant R M₂ M₃ * ‖b-a‖^2) := |
| 92 | mul_le_mul_of_nonneg_left (hrem b hb) (inv_nonneg.mpr (norm_nonneg _)) |
| 93 | _ = cutoffDifferenceConstant R M₂ M₃ * ‖b-a‖ := by |
| 94 | by_cases h : ‖b-a‖ = 0 |
| 95 | · simp only [h, inv_zero, zero_mul, mul_zero] |
| 96 | · field_simp |
| 97 | · have hc : Continuous (fun b : Space => cutoffDifferenceConstant R M₂ M₃ * ‖b-a‖) := by fun_prop |
| 98 | simpa only [sub_self, norm_zero, mul_zero] using hc.tendsto a |
| 99 | |
| 100 | /-- Induction differentiates the actual cutoff repeatedly, with no smoothness hypothesis on L. -/ |
| 101 | theorem cutoffOperation_contDiff (L : Cutoff → E) |
| 102 | (hadd : ∀ χ ψ, L (χ.add ψ) = L χ + L ψ) |
| 103 | (hsmul : ∀ χ c, L (χ.scale c) = c • L χ) |
| 104 | (hsub : ∀ χ ψ, L (χ.sub ψ) = L χ - L ψ) |
| 105 | (hbound : ∀ χ, ‖L χ‖ ≤ cutoffBound χ) (χ : Cutoff) : |
| 106 | ContDiff ℝ ∞ (fun a : Space => L (χ.translate a)) := by |
| 107 | have hnat : ∀ n : ℕ, ∀ ψ : Cutoff, ContDiff ℝ n (fun a : Space => L (ψ.translate a)) := by |
| 108 | intro n |
| 109 | induction n with |
| 110 | | zero => |
| 111 | intro ψ |
| 112 | exact contDiff_zero.mpr (continuous_iff_continuousAt.mpr |
| 113 | (fun a => (cutoffOperation_hasFDerivAt L hadd hsmul hsub hbound ψ a).continuousAt)) |
| 114 | | succ n ih => |
| 115 | intro ψ |
| 116 | apply contDiff_succ_iff_hasFDerivAt.mpr |
| 117 | refine ⟨fun a => cutoffDirectionalMap L hadd hsmul (ψ.translate a), ?_, |
| 118 | fun a => cutoffOperation_hasFDerivAt L hadd hsmul hsub hbound ψ a⟩ |
| 119 | apply contDiff_clm_apply_iff.mpr |
| 120 | intro b |
| 121 | simpa only [cutoffDirectionalMap_apply, Cutoff.directional_translate] using ih (ψ.directional b) |
| 122 | exact contDiff_iff_forall_nat_le.mpr (fun n _ => hnat n χ) |
| 123 | |
| 124 | end LinearCutoffOperation |
| 125 | |
| 126 | /-- Actual Fréchet derivative of the cutoff-curl extension. -/ |
| 127 | theorem cutoffCurl_hasFDerivAt (χ : Cutoff) (a : Space) : |
| 128 | HasFDerivAt (fun b : Space => cutoffCurl (χ.translate b)) |
| 129 | (cutoffDirectionalMap cutoffCurl cutoffCurl_add cutoffCurl_scale (χ.translate a)) a := |
| 130 | cutoffOperation_hasFDerivAt cutoffCurl cutoffCurl_add cutoffCurl_scale cutoffCurl_sub |
| 131 | cutoffCurl_norm_le χ a |
| 132 | |
| 133 | /-- Actual Fréchet derivative of the weak Newtonian potential. -/ |
| 134 | theorem weakPotential_hasFDerivAt (χ : Cutoff) (a : Space) : |
| 135 | HasFDerivAt (fun b : Space => weakPotential (χ.translate b)) |
| 136 | (cutoffDirectionalMap weakPotential weakPotential_add weakPotential_scale (χ.translate a)) a := |
| 137 | cutoffOperation_hasFDerivAt weakPotential weakPotential_add weakPotential_scale weakPotential_sub |
| 138 | weakPotential_operatorNorm_le χ a |
| 139 | |
| 140 | theorem cutoffCurl_contDiff (χ : Cutoff) : |
| 141 | ContDiff ℝ ∞ (fun a : Space => cutoffCurl (χ.translate a)) := |
| 142 | cutoffOperation_contDiff cutoffCurl cutoffCurl_add cutoffCurl_scale cutoffCurl_sub |
| 143 | cutoffCurl_norm_le χ |
| 144 | |
| 145 | theorem weakPotential_contDiff (χ : Cutoff) : |
| 146 | ContDiff ℝ ∞ (fun a : Space => weakPotential (χ.translate a)) := |
| 147 | cutoffOperation_contDiff weakPotential weakPotential_add weakPotential_scale weakPotential_sub |
| 148 | weakPotential_operatorNorm_le χ |
| 149 | |
| 150 | /-- Joint translation of both cutoffs is smooth in the full three-dimensional parameter. -/ |
| 151 | theorem mixedBoundaryOperator_contDiff (χ ψ : Cutoff) : |
| 152 | ContDiff ℝ ∞ (fun a : Space => |
| 153 | mixedBoundaryOperator (χ.translate a) (ψ.translate a)) := |
| 154 | (cutoffCurl_contDiff χ).clm_comp (weakPotential_contDiff ψ) |
| 155 | |
| 156 | end EulerMeanBoundary |