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.H3Transport |
| 2 | import NavierStokes.R3.ComparisonGronwall |
| 3 | |
| 4 | /-! # Difference energy for ordinary H³ fields |
| 5 | |
| 6 | The time derivative is a derivative in the L² Hilbert space. Spatial |
| 7 | integration by parts uses the actual weak derivative approximations. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set Filter MeasureTheory |
| 13 | open scoped ContDiff Topology BigOperators InnerProductSpace |
| 14 | |
| 15 | namespace NavierStokesR3.H3Comparison |
| 16 | |
| 17 | open NavierStokes.ProblemStatement |
| 18 | |
| 19 | /-- The L² Hilbert norm is the ordinary integral, with no totalized |
| 20 | nonintegrable expression entering the identity. -/ |
| 21 | theorem integral_norm_sq_eq_toLp {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 22 | {f : Space → E} (hf : MemLp f 2 volume) : |
| 23 | (∫ x, ‖f x‖ ^ 2) = ‖hf.toLp f‖ ^ 2 := by |
| 24 | rw [← real_inner_self_eq_norm_sq, inner_toLp] |
| 25 | simp only [real_inner_self_eq_norm_sq] |
| 26 | |
| 27 | /-- Differentiability in L² suffices to differentiate the whole-space energy; |
| 28 | no pointwise or joint time smoothness is needed. -/ |
| 29 | theorem hasDerivAt_integral_norm_sq {u : ℝ → Space → Space} {du : Space → Space} |
| 30 | (hu : ∀ t, MemLp (u t) 2 volume) (hdu : MemLp du 2 volume) {t : ℝ} |
| 31 | (hd : HasDerivAt (fun s => (hu s).toLp (u s)) (hdu.toLp du) t) : |
| 32 | HasDerivAt (fun s => ∫ x, ‖u s x‖ ^ 2) (2 * ∫ x, ⟪u t x, du x⟫_ℝ) t := by |
| 33 | have he : (fun s => ∫ x, ‖u s x‖ ^ 2) = fun s => ‖(hu s).toLp (u s)‖ ^ 2 := |
| 34 | funext (fun s => integral_norm_sq_eq_toLp (hu s)) |
| 35 | rw [he] |
| 36 | simpa only [inner_toLp] using hd.norm_sq |
| 37 | |
| 38 | /-- The exact weak difference equation yields the usual Gronwall energy |
| 39 | bound. Pressure orthogonality is a separate analytic input, allowing any |
| 40 | valid normalization or homogeneous-gradient recovery theorem. -/ |
| 41 | theorem difference_rate_le {w v dt g : Space → Space} |
| 42 | {dw dv : Fin 3 → Space → Space} |
| 43 | {ddw ddv : Fin 3 → Fin 3 → Space → Space} |
| 44 | {dddw dddv : Fin 3 → Fin 3 → Fin 3 → Space → Space} |
| 45 | (hw : H3Approximation w dw ddw dddw) (hv : H3Approximation v dv ddv dddv) |
| 46 | (hcw : Continuous w) (hcv : Continuous v) |
| 47 | (hg : MemLp g 2 volume) {ν G : ℝ} (hν : 0 ≤ ν) |
| 48 | (A : Space → Space →L[ℝ] Space) (hA : AEStronglyMeasurable A volume) |
| 49 | (hG : ∀ x, ‖A x‖ ≤ G) |
| 50 | (hdiv : ∀ᵐ x ∂volume, (∑ i : Fin 3, dv i x i) = 0) |
| 51 | (hpressure : (∫ x, ⟪w x, g x⟫_ℝ) = 0) |
| 52 | (hNS : ∀ᵐ x ∂volume, dt x = ν • (∑ i : Fin 3, ddw i i x) - A x (w x) - |
| 53 | (∑ i : Fin 3, (v x i) • dw i x) - g x) : |
| 54 | 2 * (∫ x, ⟪w x, dt x⟫_ℝ) ≤ 2 * G * (∫ x, ‖w x‖ ^ 2) := by |
| 55 | have hAw : MemLp (fun x => A x (w x)) 2 volume := by |
| 56 | apply hw.memLp.of_le_mul |
| 57 | ((continuous_fst.clm_apply continuous_snd).comp_aestronglyMeasurable (hA.prodMk hw.memLp.1)) |
| 58 | exact Filter.Eventually.of_forall (fun x => |
| 59 | ((A x).le_opNorm (w x)).trans (mul_le_mul_of_nonneg_right (hG x) (norm_nonneg _))) |
| 60 | have hiC := integrable_inner_of_memLp hw.memLp hAw |
| 61 | have hiP := integrable_inner_of_memLp hw.memLp hg |
| 62 | have hiL : Integrable (fun x => ⟪w x, ∑ i : Fin 3, ddw i i x⟫_ℝ) := by |
| 63 | simp only [inner_sum] |
| 64 | exact integrable_finsetSum _ (fun i _ => integrable_inner_of_memLp hw.memLp (hw.second_memLp i i)) |
| 65 | have hiT : Integrable (fun x => ∑ i : Fin 3, v x i * ⟪w x, dw i x⟫_ℝ) := |
| 66 | integrable_finsetSum _ (fun i _ => integrable_transport hw.memLp hv.memLp.1 hw.derivative_memLp |
| 67 | (H3Embedding.norm_le_weakH3Norm hv hcv) i) |
| 68 | have hid : (∫ x, ⟪w x, dt x⟫_ℝ) = |
| 69 | ν * (∫ x, ⟪w x, ∑ i : Fin 3, ddw i i x⟫_ℝ) - |
| 70 | (∫ x, ⟪w x, A x (w x)⟫_ℝ) - |
| 71 | (∫ x, ∑ i : Fin 3, v x i * ⟪w x, dw i x⟫_ℝ) - (∫ x, ⟪w x, g x⟫_ℝ) := by |
| 72 | have he : (fun x => ⟪w x, dt x⟫_ℝ) =ᵐ[volume] |
| 73 | (fun x => ν * ⟪w x, ∑ i : Fin 3, ddw i i x⟫_ℝ - ⟪w x, A x (w x)⟫_ℝ - |
| 74 | (∑ i : Fin 3, v x i * ⟪w x, dw i x⟫_ℝ) - ⟪w x, g x⟫_ℝ) := by |
| 75 | filter_upwards [hNS] with x hx |
| 76 | rw [hx] |
| 77 | simp only [inner_sub_right, inner_smul_right, inner_sum] |
| 78 | have hsub₁ := integral_sub (((hiL.const_mul ν).sub hiC).sub hiT) hiP |
| 79 | have hsub₂ := integral_sub ((hiL.const_mul ν).sub hiC) hiT |
| 80 | have hsub₃ := integral_sub (hiL.const_mul ν) hiC |
| 81 | simp only [Pi.sub_apply] at hsub₁ hsub₂ hsub₃ |
| 82 | rw [integral_congr_ae he, hsub₁, hsub₂, hsub₃, integral_const_mul] |
| 83 | rw [hw.integral_inner_laplacian, hw.transport_zero hv hcw hcv hdiv, hpressure, |
| 84 | sub_zero, sub_zero] at hid |
| 85 | have hnonneg : 0 ≤ ∑ i : Fin 3, ∫ x, ‖dw i x‖ ^ 2 := |
| 86 | Finset.sum_nonneg (fun _ _ => integral_nonneg (fun _ => sq_nonneg _)) |
| 87 | have hie : Integrable (fun x => ‖w x‖ ^ 2) := |
| 88 | (memLp_two_iff_integrable_sq_norm hw.memLp.1).mp hw.memLp |
| 89 | have hneg : -(∫ x, ⟪w x, A x (w x)⟫_ℝ) ≤ G * (∫ x, ‖w x‖ ^ 2) := by |
| 90 | rw [← integral_neg, ← integral_const_mul] |
| 91 | apply integral_mono hiC.neg (hie.const_mul G) |
| 92 | intro x |
| 93 | calc |
| 94 | -⟪w x, A x (w x)⟫_ℝ ≤ ‖⟪w x, A x (w x)⟫_ℝ‖ := neg_le_abs _ |
| 95 | _ ≤ ‖w x‖ * ‖A x (w x)‖ := norm_inner_le_norm _ _ |
| 96 | _ ≤ ‖w x‖ * (G * ‖w x‖) := |
| 97 | mul_le_mul_of_nonneg_left (((A x).le_opNorm _).trans |
| 98 | (mul_le_mul_of_nonneg_right (hG x) (norm_nonneg _))) (norm_nonneg _) |
| 99 | _ = G * ‖w x‖ ^ 2 := by ring |
| 100 | rw [hid] |
| 101 | nlinarith [mul_nonneg hν hnonneg] |
| 102 | |
| 103 | /-- Gronwall in the L² Hilbert space, with only interior differentiability |
| 104 | and continuity at the endpoints. -/ |
| 105 | theorem hilbert_curve_zero {T G : ℝ} (hT : 0 ≤ T) (hG : 0 ≤ G) |
| 106 | {W D : ℝ → Lp Space 2 (volume : Measure Space)} |
| 107 | (hc : ContinuousOn W (Icc 0 T)) (hzero : W 0 = 0) |
| 108 | (hd : ∀ t ∈ Ioo 0 T, HasDerivAt W (D t) t) |
| 109 | (hrate : ∀ t ∈ Ioo 0 T, 2 * ⟪W t, D t⟫_ℝ ≤ 2 * G * ‖W t‖ ^ 2) : |
| 110 | ∀ t ∈ Icc 0 T, W t = 0 := by |
| 111 | have hinit : ‖W 0‖ ^ 2 ≤ 0 := by rw [hzero, norm_zero]; norm_num |
| 112 | have hbound := ComparisonGronwall.le_exp_mul_of_deriv_le hT |
| 113 | (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hG) (le_refl (0 : ℝ)) |
| 114 | (hc.norm.pow 2) hinit (fun t ht => (hd t ht).norm_sq) |
| 115 | (fun t ht => by simpa only [add_zero, Pi.pow_apply] using! hrate t ht) |
| 116 | intro t ht |
| 117 | have he : ‖W t‖ ^ 2 = 0 := by |
| 118 | apply le_antisymm _ (sq_nonneg _) |
| 119 | simpa only [zero_mul, Pi.pow_apply] using! hbound t ht |
| 120 | exact norm_eq_zero.mp (sq_eq_zero_iff.mp he) |
| 121 | |
| 122 | /-- Equality in L² implies equality of the continuous spatial representatives. -/ |
| 123 | theorem eq_of_toLp_eq {u v : Space → Space} (hu : MemLp u 2 volume) (hv : MemLp v 2 volume) |
| 124 | (hcu : Continuous u) (hcv : Continuous v) (he : hu.toLp u = hv.toLp v) : u = v := by |
| 125 | have hae : u =ᵐ[volume] v := by |
| 126 | filter_upwards [hu.coeFn_toLp, hv.coeFn_toLp] with x hx hy |
| 127 | rw [← hx, ← hy, he] |
| 128 | exact Measure.eq_of_ae_eq hae hcu hcv |
| 129 | |
| 130 | end NavierStokesR3.H3Comparison |