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.SmoothFlowJets |
| 2 | import Euler.SmoothTimeFieldJoint |
| 3 | import Euler.SeparatingTimeDerivative |
| 4 | |
| 5 | /-! The actual acceleration of the constructed nonlinear flow is the |
| 6 | material derivative of its velocity, including the one-sided endpoint |
| 7 | identities. All coefficient time derivatives are literal hypotheses. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | |
| 12 | open scoped ContDiff Topology |
| 13 | |
| 14 | namespace EulerSmoothBanachFlow |
| 15 | |
| 16 | open Set Filter EulerVolterraConvolution EulerContinuousTimeIntegral |
| 17 | |
| 18 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 19 | (T : ℝ) (hT : 0 ≤ T) (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 20 | |
| 21 | def accelerationFamily (x : E) : C(Icc (0 : ℝ) T,E) := |
| 22 | A₁.superposition (pathFamily T hT A x) + |
| 23 | multiplier (A.derivative.superposition (pathFamily T hT A x)) (velocityFamily T hT A x) |
| 24 | |
| 25 | theorem accelerationFamily_apply (x : E) (t : Icc (0 : ℝ) T) : |
| 26 | accelerationFamily T hT A A₁ x t = |
| 27 | A₁.field t ((flowData T hT A).forward t x) + |
| 28 | fderiv ℝ (A.field t : E → E) ((flowData T hT A).forward t x) |
| 29 | (A.field t ((flowData T hT A).forward t x)) := by |
| 30 | change A₁.field t ((flowData T hT A).forward t x) + |
| 31 | A.derivativeField t ((flowData T hT A).forward t x) |
| 32 | (A.field t ((flowData T hT A).forward t x)) = _ |
| 33 | rw [A.derivativeField_eq] |
| 34 | |
| 35 | theorem pathFamily_time_derivative (x : E) (t : Icc (0 : ℝ) T) : |
| 36 | HasDerivWithinAt (extendPath T hT (pathFamily T hT A x)) |
| 37 | (velocityFamily T hT A x t) (Icc (0 : ℝ) T) t := by |
| 38 | apply (pathFamily_hasDerivWithinAt T hT A x t).congr_of_mem _ t.property |
| 39 | intro s hs |
| 40 | simp only [extendPath, projIcc_of_mem hT hs, pathFamily_apply] |
| 41 | |
| 42 | theorem velocityFamily_time_derivative_interior |
| 43 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 44 | (x : E) (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 45 | HasDerivAt (extendPath T hT (velocityFamily T hT A x)) |
| 46 | (accelerationFamily T hT A A₁ x ⟨t,ht.1.le,ht.2.le⟩) t := by |
| 47 | have hf := (pathFamily_time_derivative T hT A x ⟨t,ht.1.le,ht.2.le⟩).hasDerivAt |
| 48 | (Icc_mem_nhds ht.1 ht.2) |
| 49 | have hd := SmoothTimeField.realField_hasFDerivAt T hT A A₁ htime t ht |
| 50 | (extendPath T hT (pathFamily T hT A x) t) |
| 51 | have h := hd.comp_hasDerivAt t ((hasDerivAt_id t).prodMk hf) |
| 52 | convert h using 1 |
| 53 | · rfl |
| 54 | · simp only [SmoothTimeField.jointDerivative, ContinuousLinearMap.coprod_apply, |
| 55 | ContinuousLinearMap.toSpanSingleton_apply, one_smul] |
| 56 | simp only [SmoothTimeField.realField, extendPath, |
| 57 | projIcc_of_mem hT ⟨ht.1.le,ht.2.le⟩] |
| 58 | rfl |
| 59 | |
| 60 | theorem velocityFamily_time_derivative |
| 61 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 62 | (x : E) (t : Icc (0 : ℝ) T) : |
| 63 | HasDerivWithinAt (extendPath T hT (velocityFamily T hT A x)) |
| 64 | (accelerationFamily T hT A A₁ x t) (Icc (0 : ℝ) T) t := by |
| 65 | apply EulerSeparatingTimeDerivative.hasDerivWithinAt T hT |
| 66 | (velocityFamily T hT A x) (accelerationFamily T hT A A₁ x) |
| 67 | (fun _ : Unit => ContinuousLinearMap.id ℝ E) |
| 68 | · intro u v h |
| 69 | exact congrFun h () |
| 70 | · intro _ s hs |
| 71 | exact velocityFamily_time_derivative_interior T hT A A₁ htime x s hs |
| 72 | |
| 73 | theorem forward_second_time_derivative |
| 74 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 75 | (x : E) (t : Icc (0 : ℝ) T) : |
| 76 | HasDerivWithinAt (fun s => deriv (fun r => (flowData T hT A).forward r x) s) |
| 77 | (accelerationFamily T hT A A₁ x t) (Icc (0 : ℝ) T) t := by |
| 78 | apply (velocityFamily_time_derivative T hT A A₁ htime x t).congr_of_mem _ t.property |
| 79 | intro s hs |
| 80 | rw [((flowData T hT A).forward_hasDerivAt s x).deriv] |
| 81 | change (flowData T hT A).velocity s ((flowData T hT A).forward s x) = |
| 82 | velocityFamily T hT A x (projIcc 0 T hT s) |
| 83 | rw [projIcc_of_mem hT hs] |
| 84 | exact EulerBoundedLipschitzFlow.ofTimeInterval_velocity T hT A.field |
| 85 | ‖A.derivative.field‖₊ (velocity_lipschitz T A) ⟨s,hs⟩ _ |
| 86 | |
| 87 | end EulerSmoothBanachFlow |