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.SmoothTimeFieldPrecomp |
| 2 | import Euler.SmoothTimeFieldLinear |
| 3 | import Euler.SmoothFlowTimeGevrey |
| 4 | import Euler.SmoothFlowVolume |
| 5 | import Euler.SmoothFlowAcceleration |
| 6 | |
| 7 | /-! A physical label dilation of a smooth velocity has the conjugate |
| 8 | actual flow. Displacement, material velocity and material acceleration |
| 9 | are the literal dilations of the corresponding original fields. -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerSmoothBanachFlow |
| 14 | |
| 15 | open Set ContinuousLinearMap MeasureTheory EulerSmoothFlowGevrey |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) (ell : ℝ) |
| 20 | |
| 21 | def scaledCoefficient : SmoothTimeField (Icc (0 : ℝ) T) E E := |
| 22 | (A.precompLinear (ell⁻¹ • ContinuousLinearMap.id ℝ E)).map (ell • ContinuousLinearMap.id ℝ E) |
| 23 | |
| 24 | @[simp] theorem scaledCoefficient_apply (t : Icc (0 : ℝ) T) (x : E) : |
| 25 | (scaledCoefficient T A ell).field t x = ell • A.field t (ell⁻¹ • x) := rfl |
| 26 | |
| 27 | theorem scaledCoefficient_timeDerivative |
| 28 | (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 29 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) : |
| 30 | SmoothTimeField.TimeDerivative T hT (scaledCoefficient T A ell) (scaledCoefficient T A₁ ell) := |
| 31 | (htime.precompLinear (ell⁻¹ • ContinuousLinearMap.id ℝ E)).map (ell • ContinuousLinearMap.id ℝ E) |
| 32 | |
| 33 | variable [FiniteDimensional ℝ E] |
| 34 | |
| 35 | theorem scaled_flow_eq (hell : ell ≠ 0) (s t : ℝ) (x : E) : |
| 36 | (flowData T hT (scaledCoefficient T A ell)).flow s t x = |
| 37 | ell • (flowData T hT A).flow s t (ell⁻¹ • x) := by |
| 38 | let V := flowData T hT (scaledCoefficient T A ell) |
| 39 | have hd (r : ℝ) : HasDerivAt (fun q => ell • (flowData T hT A).flow s q (ell⁻¹ • x)) |
| 40 | (V.velocity r (ell • (flowData T hT A).flow s r (ell⁻¹ • x))) r := by |
| 41 | have h := ((flowData T hT A).flow_hasDerivAt s r (ell⁻¹ • x)).const_smul ell |
| 42 | convert h using 1 |
| 43 | · rfl |
| 44 | · change ell • A.field (projIcc 0 T hT r) |
| 45 | (ell⁻¹ • (ell • (flowData T hT A).flow s r (ell⁻¹ • x))) = _ |
| 46 | simp only [smul_smul,inv_mul_cancel₀ hell,one_smul] |
| 47 | rfl |
| 48 | have hi : ell • (flowData T hT A).flow s s (ell⁻¹ • x) = x := by |
| 49 | simp only [EulerBoundedLipschitzFlow.Data.flow_initial,smul_smul,mul_inv_cancel₀ hell,one_smul] |
| 50 | exact (congrFun (V.flow_unique s x _ hd hi) t).symm |
| 51 | |
| 52 | theorem scaled_displacement_eq (hell : ell ≠ 0) (t : Icc (0 : ℝ) T) (x : E) : |
| 53 | displacement T hT (scaledCoefficient T A ell) t x = |
| 54 | ell • displacement T hT A t (ell⁻¹ • x) := by |
| 55 | rw [displacement_eq,displacement_eq] |
| 56 | change (flowData T hT (scaledCoefficient T A ell)).flow 0 t x-x = _ |
| 57 | rw [scaled_flow_eq T hT A ell hell,smul_sub,smul_smul,mul_inv_cancel₀ hell,one_smul] |
| 58 | rfl |
| 59 | |
| 60 | theorem scaled_materialVelocity_eq (hell : ell ≠ 0) (t : Icc (0 : ℝ) T) (x : E) : |
| 61 | materialVelocity T hT (scaledCoefficient T A ell) t x = |
| 62 | ell • materialVelocity T hT A t (ell⁻¹ • x) := by |
| 63 | unfold materialVelocity |
| 64 | rw [scaledCoefficient_apply] |
| 65 | change ell • A.field t (ell⁻¹ • (flowData T hT (scaledCoefficient T A ell)).flow 0 t x) = _ |
| 66 | rw [scaled_flow_eq T hT A ell hell,smul_smul,inv_mul_cancel₀ hell,one_smul] |
| 67 | rfl |
| 68 | |
| 69 | omit [FiniteDimensional ℝ E] in |
| 70 | theorem scaledCoefficient_fderiv (hell : ell ≠ 0) (t : Icc (0 : ℝ) T) (x : E) : |
| 71 | fderiv ℝ ((scaledCoefficient T A ell).field t : E → E) x = |
| 72 | fderiv ℝ (A.field t : E → E) (ell⁻¹ • x) := by |
| 73 | have h := ((((A.smooth t).differentiable (by simp) (ell⁻¹ • x)).hasFDerivAt).comp x |
| 74 | ((ell⁻¹ • ContinuousLinearMap.id ℝ E).hasFDerivAt)).const_smul ell |
| 75 | change HasFDerivAt (fun y => ell • A.field t (ell⁻¹ • y)) _ x at h |
| 76 | change fderiv ℝ (fun y => ell • A.field t (ell⁻¹ • y)) x = _ |
| 77 | rw [h.fderiv] |
| 78 | ext v |
| 79 | simp only [FunLike.coe_smul,Pi.smul_apply,comp_apply,id_apply,map_smul,smul_smul,mul_inv_cancel₀ hell,one_smul] |
| 80 | |
| 81 | omit [FiniteDimensional ℝ E] in |
| 82 | theorem scaled_accelerationField_eq |
| 83 | (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (hell : ell ≠ 0) |
| 84 | (t : Icc (0 : ℝ) T) (x : E) : |
| 85 | accelerationField T (scaledCoefficient T A ell) (scaledCoefficient T A₁ ell) t x = |
| 86 | ell • accelerationField T A A₁ t (ell⁻¹ • x) := by |
| 87 | simp only [accelerationField,scaledCoefficient_apply,scaledCoefficient_fderiv T A ell hell, |
| 88 | map_smul,smul_add] |
| 89 | |
| 90 | theorem scaled_materialAcceleration_eq |
| 91 | (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) (hell : ell ≠ 0) |
| 92 | (t : Icc (0 : ℝ) T) (x : E) : |
| 93 | materialAcceleration T hT (scaledCoefficient T A ell) (scaledCoefficient T A₁ ell) t x = |
| 94 | ell • materialAcceleration T hT A A₁ t (ell⁻¹ • x) := by |
| 95 | unfold materialAcceleration |
| 96 | rw [scaled_accelerationField_eq T A ell A₁ hell] |
| 97 | change ell • accelerationField T A A₁ t |
| 98 | (ell⁻¹ • (flowData T hT (scaledCoefficient T A ell)).flow 0 t x) = _ |
| 99 | rw [scaled_flow_eq T hT A ell hell,smul_smul,inv_mul_cancel₀ hell,one_smul] |
| 100 | rfl |
| 101 | |
| 102 | omit [FiniteDimensional ℝ E] in |
| 103 | theorem scaledCoefficient_trace_zero (hell : ell ≠ 0) |
| 104 | (hdiv : ∀ t x, LinearMap.trace ℝ E (fderiv ℝ (A.field t : E → E) x).toLinearMap=0) |
| 105 | (t : Icc (0 : ℝ) T) (x : E) : |
| 106 | LinearMap.trace ℝ E (fderiv ℝ ((scaledCoefficient T A ell).field t : E → E) x).toLinearMap=0 := by |
| 107 | rw [scaledCoefficient_fderiv T A ell hell] |
| 108 | exact hdiv t _ |
| 109 | |
| 110 | end EulerSmoothBanachFlow |