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.CompactEnergy |
| 2 | import Mathlib.MeasureTheory.Function.L2Space |
| 3 | import Mathlib.MeasureTheory.Function.LpSpace.Indicator |
| 4 | |
| 5 | /-! # Sobolev fields represented by smooth compact approximations |
| 6 | |
| 7 | The derivatives in these records are genuine weak derivatives: each is the |
| 8 | L² limit of the corresponding derivatives of a single sequence of smooth, compactly supported fields. |
| 9 | No pointwise differentiability is required of the limiting field. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open Set Filter MeasureTheory |
| 15 | open scoped ContDiff Topology |
| 16 | |
| 17 | namespace NavierStokesR3.H3Comparison |
| 18 | |
| 19 | open NavierStokes.ProblemStatement |
| 20 | open NavierStokes.PeriodicIntegration (spatialPartial) |
| 21 | open NavierStokes.PeriodicUniqueness (spatial_partial_contDiff) |
| 22 | |
| 23 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 24 | |
| 25 | /-- Compact smooth fields are in the ordinary whole-space L² space. -/ |
| 26 | theorem smooth_compact_memLp {f : Space → E} (hf : ContDiff ℝ ∞ f) |
| 27 | (hc : HasCompactSupport f) : MemLp f 2 volume := |
| 28 | hf.continuous.memLp_of_hasCompactSupport hc |
| 29 | |
| 30 | /-- The standard completion definition of a first-order Sobolev field. -/ |
| 31 | structure H1Approximation (f : Space → E) (df : Fin 3 → Space → E) where |
| 32 | memLp : MemLp f 2 volume |
| 33 | derivative_memLp : ∀ i, MemLp (df i) 2 volume |
| 34 | approx : ℕ → Space → E |
| 35 | smooth : ∀ n, ContDiff ℝ ∞ (approx n) |
| 36 | compact : ∀ n, HasCompactSupport (approx n) |
| 37 | approx_memLp : ∀ n, MemLp (approx n) 2 volume |
| 38 | derivative_approx_memLp : ∀ n i, MemLp (spatialPartial i (approx n)) 2 volume |
| 39 | tendsto : Tendsto (fun n => (approx_memLp n).toLp (approx n)) atTop (𝓝 (memLp.toLp f)) |
| 40 | derivative_tendsto : ∀ i, |
| 41 | Tendsto (fun n => (derivative_approx_memLp n i).toLp (spatialPartial i (approx n))) |
| 42 | atTop (𝓝 ((derivative_memLp i).toLp (df i))) |
| 43 | |
| 44 | variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℝ F] |
| 45 | |
| 46 | /-- A bounded linear map acts continuously on representatives in L². -/ |
| 47 | theorem toLp_comp (L : E →L[ℝ] F) {f : Space → E} (hf : MemLp f 2 volume) : |
| 48 | (L.comp_memLp' hf).toLp (L ∘ f) = L.compLpL 2 volume (hf.toLp f) := by |
| 49 | apply Lp.ext |
| 50 | filter_upwards [(L.comp_memLp' hf).coeFn_toLp, |
| 51 | L.coeFn_compLpL (hf.toLp f), hf.coeFn_toLp] with x hx hy hz |
| 52 | simp only [hx, hy, Function.comp_apply, hz] |
| 53 | |
| 54 | private theorem partial_comp (L : E →L[ℝ] F) {f : Space → E} |
| 55 | (hf : ContDiff ℝ ∞ f) (i : Fin 3) : |
| 56 | spatialPartial i (L ∘ f) = L ∘ spatialPartial i f := by |
| 57 | funext x |
| 58 | have hd := (L.hasFDerivAt.comp x (hf.differentiable (by simp) x).hasFDerivAt).fderiv |
| 59 | exact congrArg (fun M => M (coordinateVector i)) hd |
| 60 | |
| 61 | /-- Taking a component or any fixed bounded linear image preserves genuine |
| 62 | weak first derivatives. -/ |
| 63 | def H1Approximation.map {f : Space → E} {df : Fin 3 → Space → E} |
| 64 | (hf : H1Approximation f df) (L : E →L[ℝ] F) : |
| 65 | H1Approximation (L ∘ f) (fun i => L ∘ df i) where |
| 66 | memLp := L.comp_memLp' hf.memLp |
| 67 | derivative_memLp := fun i => L.comp_memLp' (hf.derivative_memLp i) |
| 68 | approx := fun n => L ∘ hf.approx n |
| 69 | smooth := fun n => L.contDiff.comp (hf.smooth n) |
| 70 | compact := fun n => (hf.compact n).comp_left L.map_zero |
| 71 | approx_memLp := fun n => L.comp_memLp' (hf.approx_memLp n) |
| 72 | derivative_approx_memLp := fun n i => by |
| 73 | rw [partial_comp L (hf.smooth n) i] |
| 74 | exact L.comp_memLp' (hf.derivative_approx_memLp n i) |
| 75 | tendsto := by |
| 76 | exact (L.compLpL 2 volume).continuous.tendsto _ |>.comp hf.tendsto |
| 77 | derivative_tendsto := by |
| 78 | intro i |
| 79 | simp only [partial_comp L, hf.smooth] |
| 80 | exact (L.compLpL 2 volume).continuous.tendsto _ |>.comp (hf.derivative_tendsto i) |
| 81 | |
| 82 | /-- One smooth compact approximation controls all ordered derivatives through |
| 83 | order three, the usual completion definition of H³ on Euclidean space. -/ |
| 84 | structure H3Approximation (f : Space → E) (df : Fin 3 → Space → E) |
| 85 | (ddf : Fin 3 → Fin 3 → Space → E) |
| 86 | (dddf : Fin 3 → Fin 3 → Fin 3 → Space → E) extends H1Approximation f df where |
| 87 | second_memLp : ∀ i j, MemLp (ddf i j) 2 volume |
| 88 | third_memLp : ∀ i j k, MemLp (dddf i j k) 2 volume |
| 89 | second_approx_memLp : ∀ n i j, |
| 90 | MemLp (spatialPartial i (spatialPartial j (approx n))) 2 volume |
| 91 | third_approx_memLp : ∀ n i j k, |
| 92 | MemLp (spatialPartial i (spatialPartial j (spatialPartial k (approx n)))) 2 volume |
| 93 | second_tendsto : ∀ i j, |
| 94 | Tendsto (fun n => (second_approx_memLp n i j).toLp |
| 95 | (spatialPartial i (spatialPartial j (approx n)))) atTop |
| 96 | (𝓝 ((second_memLp i j).toLp (ddf i j))) |
| 97 | third_tendsto : ∀ i j k, |
| 98 | Tendsto (fun n => (third_approx_memLp n i j k).toLp |
| 99 | (spatialPartial i (spatialPartial j (spatialPartial k (approx n))))) atTop |
| 100 | (𝓝 ((third_memLp i j k).toLp (dddf i j k))) |
| 101 | |
| 102 | namespace H3Approximation |
| 103 | |
| 104 | variable {f : Space → E} {df : Fin 3 → Space → E} |
| 105 | {ddf : Fin 3 → Fin 3 → Space → E} {dddf : Fin 3 → Fin 3 → Fin 3 → Space → E} |
| 106 | |
| 107 | /-- The weak derivative is itself an H¹ field, with the next weak jets. -/ |
| 108 | def partial_toH1 (h : H3Approximation f df ddf dddf) (i : Fin 3) : |
| 109 | H1Approximation (df i) (fun j => ddf j i) where |
| 110 | memLp := h.derivative_memLp i |
| 111 | derivative_memLp := fun j => h.second_memLp j i |
| 112 | approx := fun n => spatialPartial i (h.approx n) |
| 113 | smooth := fun n => spatial_partial_contDiff (h.smooth n) i |
| 114 | compact := fun n => (h.compact n).fderiv_apply ℝ (coordinateVector i) |
| 115 | approx_memLp := fun n => h.derivative_approx_memLp n i |
| 116 | derivative_approx_memLp := fun n j => h.second_approx_memLp n j i |
| 117 | tendsto := h.derivative_tendsto i |
| 118 | derivative_tendsto := fun j => h.second_tendsto j i |
| 119 | |
| 120 | /-- Every compact smooth field supplies its weak jets by a constant |
| 121 | approximating sequence. -/ |
| 122 | def of_contDiff_compact (hf : ContDiff ℝ ∞ f) (hc : HasCompactSupport f) : |
| 123 | H3Approximation f (fun i => spatialPartial i f) |
| 124 | (fun i j => spatialPartial i (spatialPartial j f)) |
| 125 | (fun i j k => spatialPartial i (spatialPartial j (spatialPartial k f))) where |
| 126 | memLp := smooth_compact_memLp hf hc |
| 127 | derivative_memLp := fun i => smooth_compact_memLp (spatial_partial_contDiff hf i) |
| 128 | (hc.fderiv_apply ℝ (coordinateVector i)) |
| 129 | approx := fun _ => f |
| 130 | smooth := fun _ => hf |
| 131 | compact := fun _ => hc |
| 132 | approx_memLp := fun _ => smooth_compact_memLp hf hc |
| 133 | derivative_approx_memLp := fun _ i => smooth_compact_memLp (spatial_partial_contDiff hf i) |
| 134 | (hc.fderiv_apply ℝ (coordinateVector i)) |
| 135 | tendsto := tendsto_const_nhds |
| 136 | derivative_tendsto := fun _ => tendsto_const_nhds |
| 137 | second_memLp := fun i j => smooth_compact_memLp |
| 138 | (spatial_partial_contDiff (spatial_partial_contDiff hf j) i) |
| 139 | ((hc.fderiv_apply ℝ (coordinateVector j)).fderiv_apply ℝ (coordinateVector i)) |
| 140 | third_memLp := fun i j k => smooth_compact_memLp |
| 141 | (spatial_partial_contDiff (spatial_partial_contDiff (spatial_partial_contDiff hf k) j) i) |
| 142 | (((hc.fderiv_apply ℝ (coordinateVector k)).fderiv_apply ℝ (coordinateVector j)).fderiv_apply ℝ (coordinateVector i)) |
| 143 | second_approx_memLp := fun _ i j => smooth_compact_memLp |
| 144 | (spatial_partial_contDiff (spatial_partial_contDiff hf j) i) |
| 145 | ((hc.fderiv_apply ℝ (coordinateVector j)).fderiv_apply ℝ (coordinateVector i)) |
| 146 | third_approx_memLp := fun _ i j k => smooth_compact_memLp |
| 147 | (spatial_partial_contDiff (spatial_partial_contDiff (spatial_partial_contDiff hf k) j) i) |
| 148 | (((hc.fderiv_apply ℝ (coordinateVector k)).fderiv_apply ℝ (coordinateVector j)).fderiv_apply ℝ (coordinateVector i)) |
| 149 | second_tendsto := fun _ _ => tendsto_const_nhds |
| 150 | third_tendsto := fun _ _ _ => tendsto_const_nhds |
| 151 | |
| 152 | end H3Approximation |
| 153 | |
| 154 | end NavierStokesR3.H3Comparison |