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.FiniteIntervalFlow |
| 2 | import Euler.SmoothTimeSuperposition |
| 3 | import Mathlib.Analysis.Calculus.InverseFunctionTheorem.ContDiff |
| 4 | import Euler.LinearFundamentalPath |
| 5 | import Euler.LinearDuhamelOperator |
| 6 | |
| 7 | /-! |
| 8 | # Smooth dependence of the constructed flow on its initial position |
| 9 | |
| 10 | The actual Picard flow is a continuous family of paths. Its integral |
| 11 | equation is inverted locally on the path Banach space: the derivative is |
| 12 | the genuine Volterra operator, whose two-sided inverse was constructed |
| 13 | from the linear ODE. This proves smooth label dependence at every order. |
| 14 | -/ |
| 15 | |
| 16 | /-! ## From `Euler/SmoothImplicitLift.lean` |
| 17 | |
| 18 | The text of `Euler/SmoothImplicitLift.lean`, folded into this file, which was its only importer. -/ |
| 19 | |
| 20 | section |
| 21 | |
| 22 | /-! A continuous, already constructed solution of a smooth identity is |
| 23 | smooth when the derivative in its value variable is invertible. The local |
| 24 | inverse theorem proves regularity; no new solution is postulated. -/ |
| 25 | |
| 26 | noncomputable section |
| 27 | |
| 28 | open Filter Function |
| 29 | open scoped Topology ContDiff |
| 30 | |
| 31 | namespace EulerSmoothImplicitLift |
| 32 | |
| 33 | variable {P E F : Type*} |
| 34 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 35 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 36 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 37 | |
| 38 | theorem contDiffAt_of_identity |
| 39 | (Y : P → E) (G : E → F) (H : P → F) (x : P) (n : ℕ∞ω) |
| 40 | (hn : n ≠ 0) (hY : ContinuousAt Y x) |
| 41 | (hG : ContDiffAt ℝ n G (Y x)) (hH : ContDiffAt ℝ n H x) |
| 42 | (L : E ≃L[ℝ] F) (hL : HasFDerivAt G (L : E →L[ℝ] F) (Y x)) |
| 43 | (heq : ∀ y, G (Y y) = H y) : ContDiffAt ℝ n Y x := by |
| 44 | let J := hG.localInverse hL hn |
| 45 | have hJ : ContDiffAt ℝ n J (H x) := by |
| 46 | rw [← heq x] |
| 47 | exact hG.to_localInverse hL hn |
| 48 | have hleft : ∀ᶠ z in 𝓝 (Y x), J (G z) = z := |
| 49 | (hG.hasStrictFDerivAt' hL hn).eventually_left_inverse |
| 50 | have he : Y =ᶠ[𝓝 x] J ∘ H := by |
| 51 | filter_upwards [hY.tendsto.eventually hleft] with y hy |
| 52 | change Y y = J (H y) |
| 53 | rw [← heq y] |
| 54 | exact hy.symm |
| 55 | exact (hJ.comp x hH).congr_of_eventuallyEq he |
| 56 | |
| 57 | end EulerSmoothImplicitLift |
| 58 | end |
| 59 | |
| 60 | end |
| 61 | |
| 62 | noncomputable section |
| 63 | |
| 64 | |
| 65 | open scoped ContDiff BoundedContinuousFunction NNReal |
| 66 | |
| 67 | namespace EulerSmoothBanachFlow |
| 68 | |
| 69 | open Set EulerContinuousTimeIntegral |
| 70 | EulerBoundedLipschitzFlow EulerLinearDuhamel |
| 71 | |
| 72 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 73 | (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 74 | |
| 75 | omit [CompleteSpace E] in |
| 76 | theorem velocity_lipschitz (t : Icc (0 : ℝ) T) : |
| 77 | LipschitzWith ‖A.derivative.field‖₊ (A.field t : E → E) := by |
| 78 | apply lipschitzWith_of_nnnorm_fderiv_le ((A.smooth t).differentiable (by simp)) |
| 79 | intro x |
| 80 | apply NNReal.coe_le_coe.mp |
| 81 | change ‖fderiv ℝ (A.field t : E → E) x‖ ≤ ‖A.derivative.field‖ |
| 82 | rw [← A.derivativeField_eq] |
| 83 | exact ((A.derivative.field t).norm_coe_le_norm x).trans |
| 84 | (A.derivative.field.norm_coe_le_norm t) |
| 85 | |
| 86 | def flowData : EulerBoundedLipschitzFlow.Data E := |
| 87 | ofTimeInterval T hT A.field ‖A.derivative.field‖₊ (velocity_lipschitz T A) |
| 88 | |
| 89 | def pathFamily : C(E, C(Icc (0 : ℝ) T, E)) := |
| 90 | (⟨fun p : E × Icc (0 : ℝ) T => (flowData T hT A).forward p.2 p.1, |
| 91 | (flowData T hT A).forward_joint_continuous.comp |
| 92 | ((continuous_subtype_val.comp continuous_snd).prodMk continuous_fst)⟩ : |
| 93 | C(E × Icc (0 : ℝ) T, E)).curry |
| 94 | |
| 95 | @[simp] theorem pathFamily_apply (x : E) (t : Icc (0 : ℝ) T) : |
| 96 | pathFamily T hT A x t = (flowData T hT A).forward t x := rfl |
| 97 | |
| 98 | def pathOperator (u : C(Icc (0 : ℝ) T, E)) : C(Icc (0 : ℝ) T, E) := |
| 99 | u - EulerContinuousTimeIntegral.integral T hT (A.superposition u) |
| 100 | |
| 101 | theorem pathOperator_contDiff : ContDiff ℝ ∞ (pathOperator T hT A) := by |
| 102 | have hI := ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 103 | (E := C(Icc (0 : ℝ) T, E)) (F := C(Icc (0 : ℝ) T, E)) |
| 104 | (EulerContinuousTimeIntegral.integral T hT) |
| 105 | exact contDiff_id.sub (ContDiff.comp |
| 106 | (g := EulerContinuousTimeIntegral.integral T hT) (f := A.superposition) |
| 107 | hI A.superposition_contDiff) |
| 108 | |
| 109 | theorem pathOperator_hasFDerivAt (u : C(Icc (0 : ℝ) T, E)) : |
| 110 | HasFDerivAt (pathOperator T hT A) |
| 111 | (volterraOperator T hT (A.derivative.superposition u)) u := by |
| 112 | have hI : HasFDerivAt |
| 113 | (EulerContinuousTimeIntegral.integral T hT : |
| 114 | C(Icc (0 : ℝ) T, E) → C(Icc (0 : ℝ) T, E)) |
| 115 | (EulerContinuousTimeIntegral.integral T hT) (A.superposition u) := |
| 116 | ContinuousLinearMap.hasFDerivAt (𝕜 := ℝ) |
| 117 | (E := C(Icc (0 : ℝ) T, E)) (F := C(Icc (0 : ℝ) T, E)) |
| 118 | (x := A.superposition u) (EulerContinuousTimeIntegral.integral (E := E) T hT) |
| 119 | exact (hasFDerivAt_id u).sub (HasFDerivAt.comp |
| 120 | (E := C(Icc (0 : ℝ) T, E)) (F := C(Icc (0 : ℝ) T, E)) |
| 121 | (G := C(Icc (0 : ℝ) T, E)) u hI (A.superposition_hasFDerivAt u)) |
| 122 | |
| 123 | theorem pathFamily_hasDerivWithinAt (x : E) (t : Icc (0 : ℝ) T) : |
| 124 | HasDerivWithinAt (fun s => (flowData T hT A).forward s x) |
| 125 | (A.superposition (pathFamily T hT A x) t) (Icc (0 : ℝ) T) t := by |
| 126 | have h := (flowData T hT A).forward_hasDerivAt t x |
| 127 | have hv : (flowData T hT A).velocity t ((flowData T hT A).forward t x) = |
| 128 | A.superposition (pathFamily T hT A x) t := by |
| 129 | change (ofTimeInterval T hT A.field ‖A.derivative.field‖₊ (velocity_lipschitz T A)).velocity |
| 130 | t ((flowData T hT A).forward t x) = _ |
| 131 | rw [ofTimeInterval_velocity] |
| 132 | rfl |
| 133 | rw [hv] at h |
| 134 | exact h.hasDerivWithinAt |
| 135 | |
| 136 | theorem pathFamily_integral (x : E) : |
| 137 | pathFamily T hT A x = (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) x + |
| 138 | EulerContinuousTimeIntegral.integral T hT (A.superposition (pathFamily T hT A x)) := by |
| 139 | apply ContinuousMap.ext |
| 140 | intro t |
| 141 | have h := eq_initial_add_integral T hT (A.superposition (pathFamily T hT A x)) |
| 142 | (fun s => (flowData T hT A).forward s x) (pathFamily_hasDerivWithinAt T hT A x) t |
| 143 | change (flowData T hT A).forward t x = x + |
| 144 | EulerContinuousTimeIntegral.integral T hT (A.superposition (pathFamily T hT A x)) t |
| 145 | simpa only [(flowData T hT A).forward_zero] using h |
| 146 | |
| 147 | theorem pathOperator_pathFamily (x : E) : |
| 148 | pathOperator T hT A (pathFamily T hT A x) = |
| 149 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) x := |
| 150 | sub_eq_iff_eq_add.mpr (pathFamily_integral T hT A x) |
| 151 | |
| 152 | /-- The actual nonlinear flow has smooth dependence on its initial point, |
| 153 | in the uniform path norm on the whole prescribed time interval. -/ |
| 154 | theorem pathFamily_contDiff : ContDiff ℝ ∞ (pathFamily T hT A) := by |
| 155 | rw [contDiff_iff_contDiffAt] |
| 156 | intro x |
| 157 | let U := constructedEvolution T hT (A.derivative.superposition (pathFamily T hT A x)) |
| 158 | have hconst := ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) |
| 159 | (E := E) (F := C(Icc (0 : ℝ) T, E)) |
| 160 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) |
| 161 | apply EulerSmoothImplicitLift.contDiffAt_of_identity |
| 162 | (pathFamily T hT A) (pathOperator T hT A) |
| 163 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) x ∞ (by simp) |
| 164 | (pathFamily T hT A).continuous.continuousAt (pathOperator_contDiff T hT A).contDiffAt |
| 165 | hconst.contDiffAt U.volterraEquiv |
| 166 | · exact pathOperator_hasFDerivAt T hT A (pathFamily T hT A x) |
| 167 | · exact pathOperator_pathFamily T hT A |
| 168 | |
| 169 | theorem forward_contDiff (t : Icc (0 : ℝ) T) : |
| 170 | ContDiff ℝ ∞ (fun x => (flowData T hT A).forward t x) := by |
| 171 | exact (ContinuousMap.evalCLM ℝ t).contDiff.comp (pathFamily_contDiff T hT A) |
| 172 | |
| 173 | end EulerSmoothBanachFlow |