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.BoundedFlowContinuity |
| 2 | |
| 3 | /-! Construction of the flow and its continuous inverse from a genuine |
| 4 | bounded continuous velocity on the prescribed finite time interval. |
| 5 | Endpoint extension only defines the auxiliary velocity outside that |
| 6 | interval; all stated ODE identities use the original velocity. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open Set Metric |
| 11 | open scoped Topology NNReal BoundedContinuousFunction |
| 12 | |
| 13 | namespace EulerBoundedLipschitzFlow |
| 14 | |
| 15 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 16 | |
| 17 | def ofTimeInterval (T : ℝ) (hT : 0 ≤ T) |
| 18 | (u : C(Icc (0 : ℝ) T, E →ᵇ E)) (K : ℝ≥0) |
| 19 | (hLip : ∀ t, LipschitzWith K (u t)) : Data E where |
| 20 | velocity t x := u (projIcc 0 T hT t) x |
| 21 | continuous := by fun_prop |
| 22 | lipschitzConstant := K |
| 23 | lipschitz t := hLip (projIcc 0 T hT t) |
| 24 | speedBound := ‖u‖₊ |
| 25 | speed t x := ((u (projIcc 0 T hT t)).norm_coe_le_norm x).trans |
| 26 | (u.norm_coe_le_norm (projIcc 0 T hT t)) |
| 27 | |
| 28 | omit [NormedSpace ℝ E] in |
| 29 | @[simp] theorem ofTimeInterval_velocity (T : ℝ) (hT : 0 ≤ T) |
| 30 | (u : C(Icc (0 : ℝ) T, E →ᵇ E)) (K : ℝ≥0) |
| 31 | (hLip : ∀ t, LipschitzWith K (u t)) (t : Icc (0 : ℝ) T) (x : E) : |
| 32 | (ofTimeInterval T hT u K hLip).velocity t x = u t x := by |
| 33 | simp only [ofTimeInterval, projIcc_of_mem _ t.property] |
| 34 | |
| 35 | variable [CompleteSpace E] |
| 36 | |
| 37 | /-- The actual finite-time flow has an actual two-sided continuous inverse. |
| 38 | No flow map, inverse map or ODE solution is assumed. -/ |
| 39 | theorem exists_flow_and_inverse (T : ℝ) (hT : 0 ≤ T) |
| 40 | (u : C(Icc (0 : ℝ) T, E →ᵇ E)) (K : ℝ≥0) |
| 41 | (hLip : ∀ t, LipschitzWith K (u t)) : |
| 42 | ∃ X Y : ℝ → E → E, |
| 43 | (∀ x, X 0 x = x) ∧ (∀ x, Y 0 x = x) ∧ |
| 44 | Continuous (Function.uncurry X) ∧ Continuous (Function.uncurry Y) ∧ |
| 45 | (∀ t x, Y t (X t x) = x) ∧ (∀ t x, X t (Y t x) = x) ∧ |
| 46 | (∀ (t : Icc (0 : ℝ) T) x, |
| 47 | HasDerivAt (fun s => X s x) (u t (X t x)) t) ∧ |
| 48 | (∀ (t : Icc (0 : ℝ) T) x, dist (X t x) x ≤ ‖u‖*|t.1|) := by |
| 49 | let V := ofTimeInterval T hT u K hLip |
| 50 | refine ⟨V.forward, V.backward, V.forward_zero, V.backward_zero, |
| 51 | V.forward_joint_continuous, V.backward_joint_continuous, |
| 52 | V.backward_forward, V.forward_backward, ?_, ?_⟩ |
| 53 | · intro t x |
| 54 | have h := V.forward_hasDerivAt t x |
| 55 | simpa only [V, ofTimeInterval_velocity] using h |
| 56 | · intro t x |
| 57 | exact V.forward_displacement t x |
| 58 | |
| 59 | end EulerBoundedLipschitzFlow |