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 NavierStokes.R3.H3Energy |
| 2 | import NavierStokes.R3.H3StrongSolution |
| 3 | |
| 4 | /-! # Weak–strong comparison in the ordinary H³ class -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | open Set Filter MeasureTheory |
| 9 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 10 | |
| 11 | namespace NavierStokesR3.H3Comparison |
| 12 | |
| 13 | open ProblemStatement |
| 14 | open NavierStokes.ProblemStatement (pressureGradient) |
| 15 | |
| 16 | private theorem advection_sub (u v : Space → Space) (du dv : Fin 3 → Space → Space) (x : Space) : |
| 17 | weakAdvection u du x - weakAdvection v dv x = |
| 18 | weakAdvection (fun x => u x - v x) du x + |
| 19 | weakAdvection v (fun i x => du i x - dv i x) x := by |
| 20 | simp only [weakAdvection, PiLp.sub_apply, sub_smul, smul_sub, |
| 21 | Finset.sum_sub_distrib] |
| 22 | abel |
| 23 | |
| 24 | /-- Comparison with a reference whose spatial derivative is uniformly |
| 25 | bounded. All competitor derivatives remain weak H³ jets. The pressure |
| 26 | pairing premise is the sole hook for the separate arbitrary-pressure |
| 27 | orthogonality theorem; no energy inequality is assumed. -/ |
| 28 | theorem strong_unique_of_pressure_pairing {ν T : ℝ} (hν : 0 ≤ ν) |
| 29 | {f u v : VelocityField} {p q : PressureField} |
| 30 | (hu : StrongSolutionOnIcc ν f 0 T u p) (hv : StrongSolutionOnIcc ν f 0 T v q) |
| 31 | (A : ℝ → Space → Space →L[ℝ] Space) {G : ℝ} (hG : 0 ≤ G) |
| 32 | (hAm : ∀ t ∈ Ioo (0 : ℝ) T, AEStronglyMeasurable (A t) volume) |
| 33 | (hAb : ∀ t ∈ Ioo (0 : ℝ) T, ∀ x, ‖A t x‖ ≤ G) |
| 34 | (hAe : ∀ t ∈ Ioo (0 : ℝ) T, ∀ᵐ x ∂volume, ∀ z : Space, |
| 35 | A t x z = ∑ i : Fin 3, z i • hu.curve.first i (t, x)) |
| 36 | (hpg : ∀ t ∈ Ioo (0 : ℝ) T, |
| 37 | MemLp (fun x => pressureGradient p t x - pressureGradient q t x) 2 volume) |
| 38 | (hpressure : ∀ t ∈ Ioo (0 : ℝ) T, |
| 39 | (∫ x, ⟪u (t, x) - v (t, x), pressureGradient p t x - pressureGradient q t x⟫_ℝ) = 0) |
| 40 | (hinitial : ∀ x, u (0, x) = v (0, x)) : |
| 41 | ∀ t ∈ Icc (0 : ℝ) T, ∀ x, u (t, x) = v (t, x) := by |
| 42 | let W : ℝ → Lp Space 2 (volume : Measure Space) := |
| 43 | fun t => hu.curve.velocityLp t - hv.curve.velocityLp t |
| 44 | let D : ℝ → Lp Space 2 (volume : Measure Space) := fun t => |
| 45 | if ht : t ∈ Ioo (0 : ℝ) T then |
| 46 | ((hu.timeDerivative_memLp t ht).sub (hv.timeDerivative_memLp t ht)).toLp |
| 47 | (fun x => hu.timeDerivative (t, x) - hv.timeDerivative (t, x)) else 0 |
| 48 | have hd (t : ℝ) (ht : t ∈ Ioo (0 : ℝ) T) : HasDerivAt W (D t) t := by |
| 49 | dsimp only [D] |
| 50 | rw [dite_eq_left ht] |
| 51 | exact (hu.hasDerivAt_velocity t ht).sub (hv.hasDerivAt_velocity t ht) |
| 52 | have hzero : W 0 = 0 := by |
| 53 | have hz : (0 : ℝ) ∈ Icc (0 : ℝ) T := ⟨le_rfl, hu.time_lt.le⟩ |
| 54 | dsimp only [W] |
| 55 | rw [hu.curve.velocityLp_eq hz, hv.curve.velocityLp_eq hz] |
| 56 | apply sub_eq_zero.mpr |
| 57 | apply Lp.ext |
| 58 | filter_upwards [(hu.curve.approximation 0 hz).memLp.coeFn_toLp, |
| 59 | (hv.curve.approximation 0 hz).memLp.coeFn_toLp] with x hx hy |
| 60 | rw [hx, hy, hinitial] |
| 61 | have hrate (t : ℝ) (ht : t ∈ Ioo (0 : ℝ) T) : 2 * ⟪W t, D t⟫_ℝ ≤ 2 * G * ‖W t‖ ^ 2 := by |
| 62 | have htc : t ∈ Icc (0 : ℝ) T := ⟨ht.1.le, ht.2.le⟩ |
| 63 | let hU := hu.curve.approximation t htc |
| 64 | let hV := hv.curve.approximation t htc |
| 65 | let hW := hU.sub hV |
| 66 | have heW : W t = hW.memLp.toLp (fun x => u (t, x) - v (t, x)) := by |
| 67 | dsimp only [W] |
| 68 | rw [hu.curve.velocityLp_eq htc, hv.curve.velocityLp_eq htc] |
| 69 | rfl |
| 70 | have heD : D t = ((hu.timeDerivative_memLp t ht).sub (hv.timeDerivative_memLp t ht)).toLp |
| 71 | (fun x => hu.timeDerivative (t, x) - hv.timeDerivative (t, x)) := dite_eq_left ht |
| 72 | have heNS : ∀ᵐ x ∂volume, |
| 73 | hu.timeDerivative (t, x) - hv.timeDerivative (t, x) = |
| 74 | ν • (∑ i : Fin 3, (hu.curve.second i i (t, x) - hv.curve.second i i (t, x))) - |
| 75 | A t x (u (t, x) - v (t, x)) - |
| 76 | (∑ i : Fin 3, v (t, x) i • (hu.curve.first i (t, x) - hv.curve.first i (t, x))) - |
| 77 | (pressureGradient p t x - pressureGradient q t x) := by |
| 78 | filter_upwards [hu.navier_stokes t ht, hv.navier_stokes t ht, hAe t ht] with x hux hvx hAx |
| 79 | have hut : hu.timeDerivative (t, x) = f (t, x) - |
| 80 | weakAdvection (fun y => u (t, y)) (fun i y => hu.curve.first i (t, y)) x + |
| 81 | ν • weakLaplacian (fun i j y => hu.curve.second i j (t, y)) x - pressureGradient p t x := by |
| 82 | rw [← hux] |
| 83 | abel |
| 84 | have hvt : hv.timeDerivative (t, x) = f (t, x) - |
| 85 | weakAdvection (fun y => v (t, y)) (fun i y => hv.curve.first i (t, y)) x + |
| 86 | ν • weakLaplacian (fun i j y => hv.curve.second i j (t, y)) x - pressureGradient q t x := by |
| 87 | rw [← hvx] |
| 88 | abel |
| 89 | have ha := advection_sub (fun y => u (t, y)) (fun y => v (t, y)) |
| 90 | (fun i y => hu.curve.first i (t, y)) (fun i y => hv.curve.first i (t, y)) x |
| 91 | change _ = (∑ i : Fin 3, (u (t, x) - v (t, x)) i • hu.curve.first i (t, x)) + _ at ha |
| 92 | rw [← hAx] at ha |
| 93 | rw [hut, hvt, Finset.sum_sub_distrib, smul_sub] |
| 94 | dsimp only [weakLaplacian] at * |
| 95 | have ha' := (sub_eq_iff_eq_add).mp ha |
| 96 | rw [ha'] |
| 97 | dsimp only [weakAdvection] |
| 98 | abel |
| 99 | have hh := difference_rate_le hW hV |
| 100 | ((hu.curve.spatial_continuous t htc).sub (hv.curve.spatial_continuous t htc)) |
| 101 | (hv.curve.spatial_continuous t htc) (hpg t ht) hν (A t) (hAm t ht) (hAb t ht) |
| 102 | (hv.divergence_free t ht) (hpressure t ht) heNS |
| 103 | rw [heW, heD, inner_toLp, ← integral_norm_sq_eq_toLp] |
| 104 | exact hh |
| 105 | have hz := hilbert_curve_zero hu.time_lt.le hG |
| 106 | (hu.curve.continuousOn_velocityLp.sub hv.curve.continuousOn_velocityLp) hzero hd hrate |
| 107 | intro t ht x |
| 108 | have he : (hu.curve.approximation t ht).memLp.toLp (fun y => u (t, y)) = |
| 109 | (hv.curve.approximation t ht).memLp.toLp (fun y => v (t, y)) := by |
| 110 | apply sub_eq_zero.mp |
| 111 | simpa only [W, Pi.sub_apply, hu.curve.velocityLp_eq ht, hv.curve.velocityLp_eq ht] using! hz t ht |
| 112 | exact congrFun (eq_of_toLp_eq (hu.curve.approximation t ht).memLp (hv.curve.approximation t ht).memLp |
| 113 | (hu.curve.spatial_continuous t ht) (hv.curve.spatial_continuous t ht) he) x |
| 114 | |
| 115 | end NavierStokesR3.H3Comparison |