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.SolutionDefinitions |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 3 | |
| 4 | /-! Ordinary spatial smoothness, finite energy, and the pointwise time equation |
| 5 | follow from the independent Comparator solution class. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open Set MeasureTheory |
| 10 | open scoped ContDiff Topology |
| 11 | |
| 12 | namespace Euler.EulerExistenceAndSmoothnessR3 |
| 13 | |
| 14 | local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) |
| 15 | |
| 16 | variable {u₀ : ℝ³ → ℝ³} {v : ℝ³ → ℝ → ℝ³} {p : ℝ³ → ℝ → ℝ} |
| 17 | (h : EulerExistenceAndSmoothnessR3 u₀ v p) |
| 18 | |
| 19 | include h |
| 20 | |
| 21 | theorem velocity_contDiff (t : ℝ) (ht : 0 ≤ t) : ContDiff ℝ ∞ (v · t) := by |
| 22 | exact h.velocity_smooth.comp_contDiff (contDiff_id.prodMk contDiff_const) |
| 23 | (fun x => ⟨mem_univ x, ht⟩) |
| 24 | |
| 25 | theorem pressure_contDiff (t : ℝ) (ht : 0 ≤ t) : ContDiff ℝ ∞ (p · t) := by |
| 26 | exact h.pressure_smooth.comp_contDiff (contDiff_id.prodMk contDiff_const) |
| 27 | (fun x => ⟨mem_univ x, ht⟩) |
| 28 | |
| 29 | theorem velocity_memLp (t : ℝ) (ht : 0 ≤ t) : MemLp (v · t) 2 volume := by |
| 30 | exact (memLp_norm_iff (h.velocity_contDiff t ht).continuous.aestronglyMeasurable).mp |
| 31 | (h.integrable t ht) |
| 32 | |
| 33 | theorem pointwise_euler (x : ℝ³) (t : ℝ) (ht : 0 < t) : |
| 34 | HasDerivAt (v x ·) |
| 35 | (-fderiv ℝ (v · t) x (v x t) - gradient (p · t) x) t := by |
| 36 | have hs : ContDiffOn ℝ ∞ (v x ·) (Ici 0) := |
| 37 | h.velocity_smooth.comp (contDiff_const.prodMk contDiff_id).contDiffOn |
| 38 | (fun r hr => ⟨mem_univ x, hr⟩) |
| 39 | have hd : DifferentiableAt ℝ (v x ·) t := |
| 40 | (hs.differentiableOn (by simp) t ht.le).differentiableAt (Ici_mem_nhds ht) |
| 41 | have he := h.euler x t ht.le |
| 42 | rw [derivWithin_of_mem_nhds (Ici_mem_nhds ht)] at he |
| 43 | have he' : deriv (v x ·) t = |
| 44 | -fderiv ℝ (v · t) x (v x t) - gradient (p · t) x := by |
| 45 | simpa only [sub_eq_add_neg, add_comm] using eq_sub_of_add_eq he |
| 46 | rw [← he'] |
| 47 | exact hd.hasDerivAt |
| 48 | |
| 49 | end Euler.EulerExistenceAndSmoothnessR3 |