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.SmoothGraphFlow |
| 2 | import Euler.SmoothScaledFlow |
| 3 | |
| 4 | /-! The true physical graph flow and its first two time derivatives. |
| 5 | The change of labels is an actual ODE conjugacy, and the resulting |
| 6 | three-dimensional flow preserves ordinary Lebesgue volume. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerGraphInvariantFlow |
| 11 | |
| 12 | open Set MeasureTheory ContinuousLinearMap EulerLiftedGradientSpace EulerSmoothBanachFlow |
| 13 | EulerSmoothFlowGevrey |
| 14 | open scoped ContDiff |
| 15 | |
| 16 | variable (k : ℝ) (m : Vector3) (T : ℝ) (hT : 0 ≤ T) |
| 17 | (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) LiftTangent LiftTangent) |
| 18 | (hgraph : ∀ t z, graphConstraint k m (A.field t z)=0) |
| 19 | |
| 20 | include hgraph in |
| 21 | theorem graph_materialVelocity_eq (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 22 | materialVelocity T hT (graphCoefficient k m T A) t x = |
| 23 | (materialVelocity T hT A t (graphLinear k m x)).1 := by |
| 24 | change (A.field t (graphLinear k m |
| 25 | ((flowData T hT (graphCoefficient k m T A)).flow 0 t x))).1 = _ |
| 26 | rw [← graph_flow_cover k m T hT A hgraph] |
| 27 | rfl |
| 28 | |
| 29 | def physicalCoefficient (ell : ℝ) : SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := |
| 30 | scaledCoefficient T (graphCoefficient k m T A) ell |
| 31 | |
| 32 | @[simp] theorem physicalCoefficient_apply (ell : ℝ) (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 33 | (physicalCoefficient k m T A ell).field t x = ell • (A.field t (graphLinear k m (ell⁻¹ • x))).1 := rfl |
| 34 | |
| 35 | theorem physicalCoefficient_timeDerivative (ell : ℝ) |
| 36 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) : |
| 37 | SmoothTimeField.TimeDerivative T hT (physicalCoefficient k m T A ell) |
| 38 | (physicalCoefficient k m T A₁ ell) := |
| 39 | scaledCoefficient_timeDerivative T hT (graphCoefficient k m T A) ell |
| 40 | (graphCoefficient k m T A₁) (graphCoefficient_timeDerivative k m T hT A A₁ htime) |
| 41 | |
| 42 | include hgraph in |
| 43 | theorem physical_displacement_eq (ell : ℝ) (hell : ell ≠ 0) |
| 44 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 45 | displacement T hT (physicalCoefficient k m T A ell) t x = |
| 46 | ell • (displacement T hT A t (graphLinear k m (ell⁻¹ • x))).1 := by |
| 47 | rw [physicalCoefficient,scaled_displacement_eq T hT (graphCoefficient k m T A) ell hell, |
| 48 | ← graph_displacement_eq k m T hT A hgraph] |
| 49 | |
| 50 | include hgraph in |
| 51 | theorem physical_materialVelocity_eq (ell : ℝ) (hell : ell ≠ 0) |
| 52 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 53 | materialVelocity T hT (physicalCoefficient k m T A ell) t x = |
| 54 | ell • (materialVelocity T hT A t (graphLinear k m (ell⁻¹ • x))).1 := by |
| 55 | rw [physicalCoefficient,scaled_materialVelocity_eq T hT (graphCoefficient k m T A) ell hell, |
| 56 | graph_materialVelocity_eq k m T hT A hgraph] |
| 57 | |
| 58 | variable (hdiv : ∀ t z, |
| 59 | LinearMap.trace ℝ LiftTangent (fderiv ℝ (A.field t : LiftTangent → LiftTangent) z).toLinearMap=0) |
| 60 | |
| 61 | include hgraph hdiv in |
| 62 | theorem physicalCoefficient_trace_zero (ell : ℝ) (hell : ell ≠ 0) |
| 63 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 64 | LinearMap.trace ℝ Vector3 |
| 65 | (fderiv ℝ ((physicalCoefficient k m T A ell).field t : Vector3 → Vector3) x).toLinearMap=0 := |
| 66 | scaledCoefficient_trace_zero T (graphCoefficient k m T A) ell hell |
| 67 | (graphCoefficient_trace_zero k m T A hgraph hdiv) t x |
| 68 | |
| 69 | include hgraph hdiv in |
| 70 | theorem physical_forward_measurePreserving (ell : ℝ) (hell : ell ≠ 0) (t : Icc (0 : ℝ) T) : |
| 71 | MeasurePreserving ((flowData T hT (physicalCoefficient k m T A ell)).forward t) volume volume := by |
| 72 | exact forward_measurePreserving T hT (physicalCoefficient k m T A ell) |
| 73 | (physicalCoefficient_trace_zero k m T A hgraph hdiv ell hell) volume t |
| 74 | |
| 75 | end EulerGraphInvariantFlow |