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.ComparatorSobolevEvolution |
| 2 | import Euler.ComparatorMaximalFields |
| 3 | |
| 4 | /-! The canonical maximal solution in the reference's ordinary-function |
| 5 | Sobolev class. All regularity is inherited from its existing shorter evolutions. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation |
| 10 | EulerLpTranslation.SmoothL2Field EulerOrdinarySobolev |
| 11 | open scoped Topology ContDiff |
| 12 | |
| 13 | namespace Euler.ComparatorBridge |
| 14 | |
| 15 | variable {A : SmoothL2Field Space} (L : FiniteLifespan A) |
| 16 | |
| 17 | def maximalDerivativeField (t : L.Time) : SmoothL2Field Space := |
| 18 | eulerRhs (L.maximalField t) (L.maximalPressureField t) |
| 19 | |
| 20 | theorem maximalDerivativeField_eq_evolution (S : ℝ) (hS : 0 < S) |
| 21 | (hSL : S < L.duration) (t : Icc (0 : ℝ) S) : |
| 22 | maximalDerivativeField L (L.shorterTime S hSL t) = |
| 23 | (L.evolution S hS hSL).derivative t := by |
| 24 | rw [maximalDerivativeField, L.maximalField_eq_evolution S hS hSL, |
| 25 | L.maximalPressureField_eq_evolution S hS hSL, Evolution.derivative_eq_eulerRhs] |
| 26 | |
| 27 | theorem maximalDerivativeField_jet_continuous (n : ℕ) : |
| 28 | Continuous (fun t : L.Time => (maximalDerivativeField L t).jetLp n) := by |
| 29 | apply L.continuous_of_shorter_restrictions |
| 30 | intro S hS hSL |
| 31 | simp only [maximalDerivativeField_eq_evolution L S hS hSL] |
| 32 | exact (L.evolution S hS hSL).derivative_continuous n |
| 33 | |
| 34 | def maximalDerivativeExtension (x : Space) (t : ℝ) : Space := |
| 35 | if ht : t ∈ Ico (0 : ℝ) L.duration then (maximalDerivativeField L ⟨t, ht⟩).field x else 0 |
| 36 | |
| 37 | theorem maximalDerivativeExtension_eq (t : L.Time) : |
| 38 | (maximalDerivativeExtension L · (t : ℝ)) = (maximalDerivativeField L t).field := by |
| 39 | funext x |
| 40 | simp only [maximalDerivativeExtension, dite_eq_left t.property] |
| 41 | |
| 42 | theorem maximalVelocityExtension_eq_evolution (S : ℝ) (hS : 0 < S) |
| 43 | (hSL : S < L.duration) (t : Icc (0 : ℝ) S) : |
| 44 | (maximalVelocityExtension L · (t : ℝ)) = ((L.evolution S hS hSL).velocity t).field := |
| 45 | (maximalVelocityExtension_eq L (L.shorterTime S hSL t)).trans |
| 46 | (L.maximalVelocity_eq_evolution S hS hSL t) |
| 47 | |
| 48 | theorem maximalVelocityExtension_sobolevSmooth : |
| 49 | Euler.SobolevSmoothOn (Ico 0 L.duration) (maximalVelocityExtension L) := |
| 50 | sobolevSmoothOn_of_path L.maximalField L.maximalField_jet_continuous _ |
| 51 | (maximalVelocityExtension_eq L) |
| 52 | |
| 53 | theorem maximalDerivativeExtension_sobolevSmooth : |
| 54 | Euler.SobolevSmoothOn (Ico 0 L.duration) (maximalDerivativeExtension L) := |
| 55 | sobolevSmoothOn_of_path (maximalDerivativeField L) |
| 56 | (maximalDerivativeField_jet_continuous L) _ (maximalDerivativeExtension_eq L) |
| 57 | |
| 58 | theorem maximalVelocityExtension_hasDerivAt (t : ℝ) (ht : t ∈ Ioo 0 L.duration) : |
| 59 | HasDerivAt (fun s => Euler.toL2 (maximalVelocityExtension L · s)) |
| 60 | (Euler.toL2 (maximalDerivativeExtension L · t)) t := by |
| 61 | let s : L.Time := ⟨t, ht.1.le, ht.2⟩ |
| 62 | let S := L.intermediateHorizon s |
| 63 | have hS : 0 < S := L.intermediateHorizon_pos s |
| 64 | have hSL : S < L.duration := L.intermediateHorizon_lt s |
| 65 | have htS : t < S := L.time_lt_intermediateHorizon s |
| 66 | let r : Icc (0 : ℝ) S := ⟨t, ht.1.le, htS.le⟩ |
| 67 | have hd := ((L.evolution S hS hSL).velocityPath_hasDerivWithinAt r).hasDerivAt |
| 68 | (Icc_mem_nhds ht.1 htS) |
| 69 | rw [Evolution.velocityPath_extend] at hd |
| 70 | have he : Euler.toL2 (maximalDerivativeExtension L · t) = |
| 71 | ((L.evolution S hS hSL).derivative r).toLp := by |
| 72 | change Euler.toL2 (maximalDerivativeExtension L · |
| 73 | (L.shorterTime S hSL r : ℝ)) = _ |
| 74 | rw [maximalDerivativeExtension_eq L (L.shorterTime S hSL r), toL2_field, |
| 75 | maximalDerivativeField_eq_evolution L S hS hSL] |
| 76 | rw [he] |
| 77 | apply hd.congr_of_eventuallyEq |
| 78 | filter_upwards [Ioo_mem_nhds ht.1 htS] with u hu |
| 79 | rw [maximalVelocityExtension_eq_evolution L S hS hSL ⟨u, hu.1.le, hu.2.le⟩, |
| 80 | toL2_field, projIcc_of_mem hS.le ⟨hu.1.le, hu.2.le⟩] |
| 81 | |
| 82 | theorem maximal_sobolevSolution : |
| 83 | EulerSobolevExistenceAndSmoothnessR3On (Ico 0 L.duration) A.field |
| 84 | (maximalVelocityExtension L) (maximalPressureExtension L) := by |
| 85 | refine ⟨fun x t ht => maximalVelocityExtension_divergence L t ht x, |
| 86 | fun x => congrFun (maximalVelocityExtension_initial L) x, |
| 87 | maximalVelocityExtension_sobolevSmooth L, ?_, maximalDerivativeExtension L, |
| 88 | maximalDerivativeExtension_sobolevSmooth L, ?_, ?_⟩ |
| 89 | · intro t ht |
| 90 | have hi : t ∈ Ico 0 L.duration := interior_subset ht |
| 91 | rw [maximalPressureExtension_eq L ⟨t, hi⟩] |
| 92 | exact (L.maximalPressure_spec ⟨t, hi⟩).1.differentiable (by simp) |
| 93 | · intro t ht |
| 94 | exact maximalVelocityExtension_hasDerivAt L t (by simpa only [interior_Ico] using ht) |
| 95 | · intro x t ht |
| 96 | have hi : t ∈ Ico 0 L.duration := interior_subset ht |
| 97 | have hd := congrFun (maximalDerivativeExtension_eq L ⟨t, hi⟩) x |
| 98 | have hv := congrFun (maximalVelocityExtension_eq L ⟨t, hi⟩) x |
| 99 | rw [hd, hv, maximalVelocityExtension_eq L ⟨t, hi⟩, |
| 100 | maximalPressureExtension_eq L ⟨t, hi⟩, maximalDerivativeField, eulerRhs_field, |
| 101 | (L.maximalPressure_spec ⟨t, hi⟩).2.2 x] |
| 102 | change (-fderiv ℝ (L.maximalField ⟨t, hi⟩).field x |
| 103 | ((L.maximalField ⟨t, hi⟩).field x) - (L.maximalPressureField ⟨t, hi⟩).field x) + |
| 104 | fderiv ℝ (L.maximalField ⟨t, hi⟩).field x ((L.maximalField ⟨t, hi⟩).field x) = _ |
| 105 | abel |
| 106 | |
| 107 | theorem maximal_sobolev_existence_iff (T : ℝ) (hT : 0 < T) : |
| 108 | (∃ v p, EulerSobolevExistenceAndSmoothnessR3On (Icc 0 T) A.field v p) ↔ |
| 109 | T < L.duration := by |
| 110 | rw [exists_sobolevSolution_iff A T hT, L.hasScalarEulerEvolution_iff] |
| 111 | exact and_iff_right hT |
| 112 | |
| 113 | end Euler.ComparatorBridge |