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.SmoothTimeField |
| 2 | import Euler.ContinuousPathCalculus |
| 3 | |
| 4 | /-! |
| 5 | # Smooth substitution of a continuous path into a smooth coefficient field |
| 6 | |
| 7 | The derivative is the actual pointwise derivative multiplier. A uniform |
| 8 | second-derivative remainder proves Fréchet differentiability in the path |
| 9 | sup norm, and iteration gives smoothness at every order. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | |
| 15 | open scoped ContDiff BoundedContinuousFunction Topology |
| 16 | |
| 17 | namespace SmoothTimeField |
| 18 | |
| 19 | open EulerContinuousTimeIntegral EulerContinuousPathCalculus |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {K E : Type u} [TopologicalSpace K] [CompactSpace K] |
| 24 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 25 | {V : Type u} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 26 | |
| 27 | private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance |
| 28 | private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance |
| 29 | private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 30 | private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 31 | private local instance (n : ℕ) : NormedAddCommGroup C(K, E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 32 | private local instance (n : ℕ) : NormedSpace ℝ C(K, E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 33 | |
| 34 | omit [TopologicalSpace K] [CompactSpace K] in |
| 35 | private theorem quadratic_taylor_bound |
| 36 | (f : E → V) (hf : ContDiff ℝ ∞ f) (M : ℝ) (hM : 0 ≤ M) |
| 37 | (hD₂ : ∀ x, ‖fderiv ℝ (fderiv ℝ f) x‖ ≤ M) (x v : E) : |
| 38 | ‖f (x+v) - f x - fderiv ℝ f x v‖ ≤ M * ‖v‖ ^ 2 := by |
| 39 | have hdf : Differentiable ℝ (fderiv ℝ f) := |
| 40 | (hf.fderiv_right (m := ∞) (by simp)).differentiable (by simp) |
| 41 | have hdifference (y : E) : ‖fderiv ℝ f y - fderiv ℝ f x‖ ≤ M * ‖y-x‖ := |
| 42 | Convex.norm_image_sub_le_of_norm_fderiv_le |
| 43 | (𝕜 := ℝ) (s := Set.univ) (fun z _ => hdf z) (fun z _ => hD₂ z) |
| 44 | (convex_univ : Convex ℝ (Set.univ : Set E)) (Set.mem_univ x) (Set.mem_univ y) |
| 45 | have hbound (y : E) (hy : y ∈ Metric.closedBall x ‖v‖) : |
| 46 | ‖fderiv ℝ f y - fderiv ℝ f x‖ ≤ M * ‖v‖ := by |
| 47 | exact (hdifference y).trans (mul_le_mul_of_nonneg_left (by simpa only [Metric.mem_closedBall, |
| 48 | dist_eq_norm] using hy) hM) |
| 49 | have H := Convex.norm_image_sub_le_of_norm_fderiv_le' |
| 50 | (𝕜 := ℝ) (f := f) (s := Metric.closedBall x ‖v‖) (C := M * ‖v‖) |
| 51 | (φ := fderiv ℝ f x) (x := x) (y := x+v) |
| 52 | (fun y _ => (hf.differentiable (by simp)) y) hbound (convex_closedBall x ‖v‖) |
| 53 | (by simp) (by simp [dist_eq_norm]) |
| 54 | simpa only [add_sub_cancel_left, pow_two, mul_assoc] using H |
| 55 | |
| 56 | def superposition (A : SmoothTimeField K E V) (u : C(K, E)) : C(K,V) where |
| 57 | toFun t := A.field t (u t) |
| 58 | continuous_toFun := by fun_prop |
| 59 | |
| 60 | @[simp] theorem superposition_apply (A : SmoothTimeField K E V) |
| 61 | (u : C(K,E)) (t : K) : A.superposition u t = A.field t (u t) := rfl |
| 62 | |
| 63 | def superpositionDerivative (A : SmoothTimeField K E V) (u : C(K,E)) : |
| 64 | C(K,E) →L[ℝ] C(K,V) := |
| 65 | EulerContinuousTimeIntegral.multiplier (A.derivative.superposition u) |
| 66 | |
| 67 | theorem superpositionDerivative_apply (A : SmoothTimeField K E V) |
| 68 | (u h : C(K,E)) (t : K) : |
| 69 | A.superpositionDerivative u h t = fderiv ℝ (A.field t : E → V) (u t) (h t) := by |
| 70 | change A.derivativeField t (u t) (h t) = _ |
| 71 | rw [A.derivativeField_eq] |
| 72 | |
| 73 | theorem superposition_taylor_bound (A : SmoothTimeField K E V) |
| 74 | (u v : C(K,E)) : |
| 75 | ‖A.superposition v - A.superposition u - A.superpositionDerivative u (v-u)‖ ≤ |
| 76 | ‖A.jet 2‖ * ‖v-u‖^2 := by |
| 77 | apply (ContinuousMap.norm_le _ (by positivity)).2 |
| 78 | intro t |
| 79 | change ‖A.field t (v t) - A.field t (u t) - A.superpositionDerivative u (v-u) t‖ ≤ _ |
| 80 | rw [A.superpositionDerivative_apply] |
| 81 | have h₂ (x : E) : ‖fderiv ℝ (fderiv ℝ (A.field t : E → V)) x‖ ≤ ‖A.jet 2‖ := by |
| 82 | rw [← norm_iteratedFDeriv_one, norm_iteratedFDeriv_fderiv, ← A.jet_eq] |
| 83 | exact ((A.jet 2 t).norm_coe_le_norm x).trans ((A.jet 2).norm_coe_le_norm t) |
| 84 | have h := quadratic_taylor_bound |
| 85 | (A.field t : E → V) (A.smooth t) ‖A.jet 2‖ (norm_nonneg _) h₂ (u t) (v t-u t) |
| 86 | have he : u t + (v t-u t) = v t := by abel |
| 87 | rw [he] at h |
| 88 | have hv : ‖v t-u t‖ ≤ ‖v-u‖ := (v-u).norm_coe_le_norm t |
| 89 | exact h.trans (mul_le_mul_of_nonneg_left |
| 90 | (pow_le_pow_left₀ (norm_nonneg _) hv 2) (norm_nonneg _)) |
| 91 | |
| 92 | theorem superposition_hasFDerivAt (A : SmoothTimeField K E V) (u : C(K,E)) : |
| 93 | HasFDerivAt A.superposition (A.superpositionDerivative u) u := by |
| 94 | apply hasFDerivAt_iff_tendsto.mpr |
| 95 | apply squeeze_zero |
| 96 | (fun v => mul_nonneg (inv_nonneg.mpr (norm_nonneg (v-u))) (norm_nonneg _)) |
| 97 | (g := fun v : C(K,E) => ‖A.jet 2‖ * ‖v-u‖) |
| 98 | · intro v |
| 99 | calc |
| 100 | _ ≤ ‖v-u‖⁻¹ * (‖A.jet 2‖ * ‖v-u‖^2) := |
| 101 | mul_le_mul_of_nonneg_left (A.superposition_taylor_bound u v) |
| 102 | (inv_nonneg.mpr (norm_nonneg _)) |
| 103 | _ = _ := by |
| 104 | by_cases h : ‖v-u‖ = 0 |
| 105 | · simp only [h, inv_zero, zero_mul, mul_zero] |
| 106 | · field_simp |
| 107 | · have hc : Continuous (fun v : C(K,E) => ‖A.jet 2‖ * ‖v-u‖) := by fun_prop |
| 108 | simpa only [sub_self, norm_zero, mul_zero] using hc.tendsto u |
| 109 | |
| 110 | theorem superposition_fderiv (A : SmoothTimeField K E V) : |
| 111 | fderiv ℝ A.superposition = A.superpositionDerivative := |
| 112 | funext (fun u => (A.superposition_hasFDerivAt u).fderiv) |
| 113 | |
| 114 | private theorem superposition_contDiff_nat (n : ℕ) : |
| 115 | ∀ (V : Type u) [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 116 | (A : SmoothTimeField K E V), ContDiff ℝ n A.superposition := by |
| 117 | induction n with |
| 118 | | zero => |
| 119 | intro V _ _ A |
| 120 | exact contDiff_zero.mpr (continuous_iff_continuousAt.mpr |
| 121 | (fun u => (A.superposition_hasFDerivAt u).continuousAt)) |
| 122 | | succ n ih => |
| 123 | intro V _ _ A |
| 124 | rw [Nat.cast_add, Nat.cast_one, contDiff_succ_iff_fderiv] |
| 125 | refine ⟨fun u => (A.superposition_hasFDerivAt u).differentiableAt, by simp, ?_⟩ |
| 126 | rw [A.superposition_fderiv] |
| 127 | exact contDiff_multiplier A.derivative.superposition |
| 128 | (ih (E →L[ℝ] V) A.derivative) |
| 129 | |
| 130 | theorem superposition_contDiff (A : SmoothTimeField K E V) : |
| 131 | ContDiff ℝ ∞ A.superposition := |
| 132 | contDiff_infty.mpr (fun n => superposition_contDiff_nat n V A) |
| 133 | |
| 134 | end SmoothTimeField |