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.BoundedCoefficientSmooth |
| 2 | import Euler.MeanCoefficientTime |
| 3 | |
| 4 | /-! Spatial translation calculus for coefficients uniformly on a compact time interval. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerMeanCoefficients |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerSmoothLimit Set Filter |
| 11 | open scoped ContDiff BoundedContinuousFunction Topology |
| 12 | |
| 13 | section Paths |
| 14 | |
| 15 | variable {K V : Type*} [TopologicalSpace K] [CompactSpace K] |
| 16 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 17 | |
| 18 | private local instance : NormedAddCommGroup (Space →ᵇ V) := inferInstance |
| 19 | private local instance : NormedSpace ℝ (Space →ᵇ V) := inferInstance |
| 20 | private local instance : NormedAddCommGroup (Space →ᵇ (Space →L[ℝ] V)) := inferInstance |
| 21 | private local instance : NormedSpace ℝ (Space →ᵇ (Space →L[ℝ] V)) := inferInstance |
| 22 | |
| 23 | def translateCoefficientPath (A : C(K, Space →ᵇ V)) (a : Space) : C(K, Space →ᵇ V) := |
| 24 | (BoundedContinuousFunction.compContinuousCLM V ℝ |
| 25 | ⟨fun x : Space => x+a, continuous_id.add continuous_const⟩).compLeftContinuous ℝ K A |
| 26 | |
| 27 | omit [CompactSpace K] in |
| 28 | @[simp] theorem translateCoefficientPath_apply (A : C(K, Space →ᵇ V)) (a : Space) (t : K) : |
| 29 | translateCoefficientPath A a t = translated (A t) a := rfl |
| 30 | |
| 31 | def pathDirection (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) (a : Space) : C(K, Space →ᵇ V) := |
| 32 | ⟨fun t => fieldDerivativeMap (DA t) a, |
| 33 | ((derivativeBundling (V := V)).continuous.comp DA.continuous).clm_apply continuous_const⟩ |
| 34 | |
| 35 | omit [CompactSpace K] in |
| 36 | @[simp] theorem pathDirection_apply (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) |
| 37 | (a : Space) (t : K) (x : Space) : pathDirection DA a t x = DA t x a := rfl |
| 38 | |
| 39 | theorem pathDirection_norm_le (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) (a : Space) : |
| 40 | ‖pathDirection DA a‖ ≤ ‖DA‖ * ‖a‖ := by |
| 41 | apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg _) (norm_nonneg _))).2 |
| 42 | intro t |
| 43 | exact (fieldDirection_norm_le (DA t) a).trans |
| 44 | (mul_le_mul_of_nonneg_right (DA.norm_coe_le_norm t) (norm_nonneg a)) |
| 45 | |
| 46 | def pathDerivativeLinear (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) : |
| 47 | Space →ₗ[ℝ] C(K, Space →ᵇ V) where |
| 48 | toFun := pathDirection DA |
| 49 | map_add' a b := by ext t x; exact (DA t x).map_add a b |
| 50 | map_smul' c a := by ext t x; exact (DA t x).map_smul c a |
| 51 | |
| 52 | def pathDerivativeMap (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) : |
| 53 | Space →L[ℝ] C(K, Space →ᵇ V) where |
| 54 | toLinearMap := pathDerivativeLinear DA |
| 55 | cont := AddMonoidHomClass.continuous_of_bound (pathDerivativeLinear DA) ‖DA‖ |
| 56 | (pathDirection_norm_le DA) |
| 57 | |
| 58 | @[simp] theorem pathDerivativeMap_apply (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) |
| 59 | (a : Space) (t : K) (x : Space) : pathDerivativeMap DA a t x = DA t x a := rfl |
| 60 | |
| 61 | theorem pathDerivativeMap_norm_le (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) : |
| 62 | ‖pathDerivativeMap DA‖ ≤ ‖DA‖ := |
| 63 | (pathDerivativeMap DA).opNorm_le_bound (norm_nonneg DA) (pathDirection_norm_le DA) |
| 64 | |
| 65 | def pathDerivativeBundlingLinear : C(K, Space →ᵇ (Space →L[ℝ] V)) →ₗ[ℝ] |
| 66 | (Space →L[ℝ] C(K, Space →ᵇ V)) where |
| 67 | toFun := pathDerivativeMap |
| 68 | map_add' A B := by ext v t x; rfl |
| 69 | map_smul' c A := by ext v t x; rfl |
| 70 | |
| 71 | def pathDerivativeBundling : C(K, Space →ᵇ (Space →L[ℝ] V)) →L[ℝ] |
| 72 | (Space →L[ℝ] C(K, Space →ᵇ V)) where |
| 73 | toLinearMap := pathDerivativeBundlingLinear |
| 74 | cont := AddMonoidHomClass.continuous_of_bound (pathDerivativeBundlingLinear (K := K) (V := V)) 1 |
| 75 | (fun (A : C(K, Space →ᵇ (Space →L[ℝ] V))) => by |
| 76 | change ‖pathDerivativeMap A‖ ≤ 1 * ‖A‖ |
| 77 | simpa only [one_mul] using pathDerivativeMap_norm_le A) |
| 78 | |
| 79 | theorem translateCoefficientPath_taylor (A : C(K, Space →ᵇ V)) |
| 80 | (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) |
| 81 | (hA : ∀ t, ContDiff ℝ ∞ (A t : Space → V)) |
| 82 | (hDA : ∀ t x, DA t x = fderiv ℝ (A t : Space → V) x) |
| 83 | (M : ℝ) (hM : 0 ≤ M) |
| 84 | (h₂ : ∀ t x, ‖fderiv ℝ (fderiv ℝ (A t : Space → V)) x‖ ≤ M) (a b : Space) : |
| 85 | ‖translateCoefficientPath A b - translateCoefficientPath A a - |
| 86 | pathDerivativeMap (translateCoefficientPath DA a) (b-a)‖ ≤ M * ‖b-a‖^2 := by |
| 87 | apply (ContinuousMap.norm_le _ (mul_nonneg hM (sq_nonneg _))).2 |
| 88 | intro t |
| 89 | exact translated_taylor_bound (A t) (DA t) (hA t) (hDA t) M hM (h₂ t) a b |
| 90 | |
| 91 | /-- Actual spatial differentiation holds in the uniform time-path norm. -/ |
| 92 | theorem translateCoefficientPath_hasFDerivAt (A : C(K, Space →ᵇ V)) |
| 93 | (DA : C(K, Space →ᵇ (Space →L[ℝ] V))) |
| 94 | (hA : ∀ t, ContDiff ℝ ∞ (A t : Space → V)) |
| 95 | (hDA : ∀ t x, DA t x = fderiv ℝ (A t : Space → V) x) |
| 96 | (M : ℝ) (hM : 0 ≤ M) |
| 97 | (h₂ : ∀ t x, ‖fderiv ℝ (fderiv ℝ (A t : Space → V)) x‖ ≤ M) (a : Space) : |
| 98 | HasFDerivAt (translateCoefficientPath A) |
| 99 | (pathDerivativeMap (translateCoefficientPath DA a)) a := by |
| 100 | apply hasFDerivAt_iff_tendsto.mpr |
| 101 | apply squeeze_zero (fun b => mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) (norm_nonneg _)) |
| 102 | (g := fun b : Space => M * ‖b-a‖) |
| 103 | · intro b |
| 104 | calc |
| 105 | _ ≤ ‖b-a‖⁻¹ * (M * ‖b-a‖^2) := mul_le_mul_of_nonneg_left |
| 106 | (translateCoefficientPath_taylor A DA hA hDA M hM h₂ a b) |
| 107 | (inv_nonneg.mpr (norm_nonneg _)) |
| 108 | _ = M * ‖b-a‖ := by |
| 109 | by_cases h : ‖b-a‖ = 0 |
| 110 | · simp only [h, inv_zero, zero_mul, mul_zero] |
| 111 | · field_simp |
| 112 | · have hc : Continuous (fun b : Space => M * ‖b-a‖) := by fun_prop |
| 113 | simpa only [sub_self, norm_zero, mul_zero] using hc.tendsto a |
| 114 | |
| 115 | end Paths |
| 116 | |
| 117 | private local instance : NormedAddCommGroup Field := inferInstance |
| 118 | private local instance : NormedSpace ℝ Field := inferInstance |
| 119 | |
| 120 | abbrev translatedPath (T : ℝ) (A : C(Icc (0 : ℝ) T, Field)) (a : Space) : |
| 121 | C(Icc (0 : ℝ) T, Field) := translateCoefficientPath A a |
| 122 | |
| 123 | @[simp] theorem translatedPath_apply (T : ℝ) (A : C(Icc (0 : ℝ) T, Field)) |
| 124 | (a : Space) (t : Icc (0 : ℝ) T) (x : Space) : translatedPath T A a t x = A t (x+a) := rfl |
| 125 | |
| 126 | end EulerMeanCoefficients |