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 | include hgraph in |
| 30 | theorem graph_accelerationField_eq (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 31 | accelerationField T (graphCoefficient k m T A) (graphCoefficient k m T A₁) t x = |
| 32 | (accelerationField T A A₁ t (graphLinear k m x)).1 := by |
| 33 | let J := graphLinear k m |
| 34 | let L := fst ℝ Vector3 ℝ |
| 35 | have hd := (L.hasFDerivAt.comp x |
| 36 | (((A.smooth t).differentiable (by simp) (J x)).hasFDerivAt.comp x J.hasFDerivAt)).fderiv |
| 37 | change fderiv ℝ ((graphCoefficient k m T A).field t : Vector3 → Vector3) x = |
| 38 | L.comp ((fderiv ℝ (A.field t : LiftTangent → LiftTangent) (J x)).comp J) at hd |
| 39 | have hval : J (A.field t (J x)).1 = A.field t (J x) := by |
| 40 | apply Prod.ext |
| 41 | · rfl |
| 42 | · exact (sub_eq_zero.mp (hgraph t (J x))).symm |
| 43 | change (A₁.field t (J x)).1+ |
| 44 | fderiv ℝ ((graphCoefficient k m T A).field t : Vector3 → Vector3) x (A.field t (J x)).1 = _ |
| 45 | rw [hd,comp_apply,comp_apply,hval] |
| 46 | rfl |
| 47 | |
| 48 | include hgraph in |
| 49 | theorem graph_materialAcceleration_eq (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 50 | materialAcceleration T hT (graphCoefficient k m T A) (graphCoefficient k m T A₁) t x = |
| 51 | (materialAcceleration T hT A A₁ t (graphLinear k m x)).1 := by |
| 52 | unfold materialAcceleration |
| 53 | rw [graph_accelerationField_eq k m T A A₁ hgraph] |
| 54 | change (accelerationField T A A₁ t (graphLinear k m |
| 55 | ((flowData T hT (graphCoefficient k m T A)).flow 0 t x))).1 = _ |
| 56 | rw [← graph_flow_cover k m T hT A hgraph] |
| 57 | rfl |
| 58 | |
| 59 | def physicalCoefficient (ell : ℝ) : SmoothTimeField (Icc (0 : ℝ) T) Vector3 Vector3 := |
| 60 | scaledCoefficient T (graphCoefficient k m T A) ell |
| 61 | |
| 62 | @[simp] theorem physicalCoefficient_apply (ell : ℝ) (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 63 | (physicalCoefficient k m T A ell).field t x = ell • (A.field t (graphLinear k m (ell⁻¹ • x))).1 := rfl |
| 64 | |
| 65 | theorem physicalCoefficient_timeDerivative (ell : ℝ) |
| 66 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) : |
| 67 | SmoothTimeField.TimeDerivative T hT (physicalCoefficient k m T A ell) |
| 68 | (physicalCoefficient k m T A₁ ell) := |
| 69 | scaledCoefficient_timeDerivative T hT (graphCoefficient k m T A) ell |
| 70 | (graphCoefficient k m T A₁) (graphCoefficient_timeDerivative k m T hT A A₁ htime) |
| 71 | |
| 72 | include hgraph in |
| 73 | theorem physical_flow_eq (ell : ℝ) (hell : ell ≠ 0) (s t : ℝ) (x : Vector3) : |
| 74 | (flowData T hT (physicalCoefficient k m T A ell)).flow s t x = |
| 75 | ell • ((flowData T hT A).flow s t (graphLinear k m (ell⁻¹ • x))).1 := by |
| 76 | rw [physicalCoefficient,scaled_flow_eq T hT (graphCoefficient k m T A) ell hell] |
| 77 | rw [← graph_flow_eq k m T hT A hgraph] |
| 78 | rfl |
| 79 | |
| 80 | include hgraph in |
| 81 | theorem physical_displacement_eq (ell : ℝ) (hell : ell ≠ 0) |
| 82 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 83 | displacement T hT (physicalCoefficient k m T A ell) t x = |
| 84 | ell • (displacement T hT A t (graphLinear k m (ell⁻¹ • x))).1 := by |
| 85 | rw [physicalCoefficient,scaled_displacement_eq T hT (graphCoefficient k m T A) ell hell, |
| 86 | ← graph_displacement_eq k m T hT A hgraph] |
| 87 | |
| 88 | include hgraph in |
| 89 | theorem physical_materialVelocity_eq (ell : ℝ) (hell : ell ≠ 0) |
| 90 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 91 | materialVelocity T hT (physicalCoefficient k m T A ell) t x = |
| 92 | ell • (materialVelocity T hT A t (graphLinear k m (ell⁻¹ • x))).1 := by |
| 93 | rw [physicalCoefficient,scaled_materialVelocity_eq T hT (graphCoefficient k m T A) ell hell, |
| 94 | graph_materialVelocity_eq k m T hT A hgraph] |
| 95 | |
| 96 | include hgraph in |
| 97 | theorem physical_materialAcceleration_eq (ell : ℝ) (hell : ell ≠ 0) |
| 98 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 99 | materialAcceleration T hT (physicalCoefficient k m T A ell) (physicalCoefficient k m T A₁ ell) t x = |
| 100 | ell • (materialAcceleration T hT A A₁ t (graphLinear k m (ell⁻¹ • x))).1 := by |
| 101 | rw [physicalCoefficient,physicalCoefficient, |
| 102 | scaled_materialAcceleration_eq T hT (graphCoefficient k m T A) ell |
| 103 | (graphCoefficient k m T A₁) hell,graph_materialAcceleration_eq k m T hT A A₁ hgraph] |
| 104 | |
| 105 | variable (hdiv : ∀ t z, |
| 106 | LinearMap.trace ℝ LiftTangent (fderiv ℝ (A.field t : LiftTangent → LiftTangent) z).toLinearMap=0) |
| 107 | |
| 108 | include hgraph hdiv in |
| 109 | theorem physicalCoefficient_trace_zero (ell : ℝ) (hell : ell ≠ 0) |
| 110 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
| 111 | LinearMap.trace ℝ Vector3 |
| 112 | (fderiv ℝ ((physicalCoefficient k m T A ell).field t : Vector3 → Vector3) x).toLinearMap=0 := |
| 113 | scaledCoefficient_trace_zero T (graphCoefficient k m T A) ell hell |
| 114 | (graphCoefficient_trace_zero k m T A hgraph hdiv) t x |
| 115 | |
| 116 | include hgraph hdiv in |
| 117 | theorem physical_forward_measurePreserving (ell : ℝ) (hell : ell ≠ 0) (t : Icc (0 : ℝ) T) : |
| 118 | MeasurePreserving ((flowData T hT (physicalCoefficient k m T A ell)).forward t) volume volume := by |
| 119 | exact forward_measurePreserving T hT (physicalCoefficient k m T A ell) |
| 120 | (physicalCoefficient_trace_zero k m T A hgraph hdiv ell hell) volume t |
| 121 | |
| 122 | end EulerGraphInvariantFlow |