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.R3PressureFourier |
| 2 | import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace |
| 3 | import Mathlib.Analysis.InnerProductSpace.ProdL2 |
| 4 | |
| 5 | /-! |
| 6 | # Euclidean space-time for pressure recovery |
| 7 | |
| 8 | The `L²` product of time and three-space has the product Lebesgue measure. |
| 9 | A compact time cutoff of a uniformly finite-energy velocity therefore lives |
| 10 | in an ordinary Sobolev space on this four-dimensional inner product space. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | namespace NavierStokes.R3SpaceTime |
| 15 | |
| 16 | open Set Filter MeasureTheory ProblemStatement FourierTransform TemperedDistribution |
| 17 | open scoped SchwartzMap LineDeriv Topology RealInnerProductSpace |
| 18 | |
| 19 | abbrev Domain := WithLp 2 (ℝ × Space) |
| 20 | |
| 21 | def timeProj : Domain →L[ℝ] ℝ := WithLp.fstL 2 ℝ ℝ Space |
| 22 | |
| 23 | def spaceProj : Domain →L[ℝ] Space := WithLp.sndL 2 ℝ ℝ Space |
| 24 | |
| 25 | def timeDirection : Domain := WithLp.toLp 2 (1, (0 : Space)) |
| 26 | |
| 27 | def spaceDirection (i : Fin 3) : Domain := WithLp.toLp 2 (0, coordinateVector i) |
| 28 | |
| 29 | def pack (t : ℝ) (x : Space) : Domain := WithLp.toLp 2 (t, x) |
| 30 | |
| 31 | @[simp] theorem timeProj_pack (t : ℝ) (x : Space) : timeProj (pack t x) = t := rfl |
| 32 | @[simp] theorem spaceProj_pack (t : ℝ) (x : Space) : spaceProj (pack t x) = x := rfl |
| 33 | @[simp] theorem pack_proj (z : Domain) : pack (timeProj z) (spaceProj z) = z := rfl |
| 34 | |
| 35 | theorem finrank_domain : Module.finrank ℝ Domain = 4 := by |
| 36 | rw [(WithLp.linearEquiv 2 ℝ (ℝ × Space)).finrank_eq, Module.finrank_prod] |
| 37 | norm_num |
| 38 | |
| 39 | theorem norm_spaceProj_le (z : Domain) : ‖spaceProj z‖ ≤ ‖z‖ := WithLp.norm_snd_le ℝ z |
| 40 | |
| 41 | theorem integral_eq_prod {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 42 | (f : Domain → F) : (∫ z : Domain, f z) = ∫ tx : ℝ × Space, f (pack tx.1 tx.2) := |
| 43 | ((WithLp.volume_preserving_toLp ℝ Space).integral_comp |
| 44 | (MeasurableEquiv.toLp 2 (ℝ × Space)).measurableEmbedding f).symm |
| 45 | |
| 46 | theorem integrable_iff_prod {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 47 | (f : Domain → F) : Integrable f ↔ Integrable (fun tx : ℝ × Space => f (pack tx.1 tx.2)) := |
| 48 | ((WithLp.volume_preserving_toLp ℝ Space).integrable_comp_emb |
| 49 | (MeasurableEquiv.toLp 2 (ℝ × Space)).measurableEmbedding).symm |
| 50 | |
| 51 | theorem volume_spatial_zero : volume {z : Domain | spaceProj z = 0} = 0 := by |
| 52 | have he : {z : Domain | spaceProj z = 0} = WithLp.ofLp ⁻¹' (univ ×ˢ ({0} : Set Space)) := by |
| 53 | ext z |
| 54 | simp [spaceProj, WithLp.sndL] |
| 55 | rw [he, (WithLp.volume_preserving_ofLp ℝ Space).measure_preimage (by measurability)] |
| 56 | change ((volume : Measure ℝ).prod (volume : Measure Space)) (univ ×ˢ {0}) = 0 |
| 57 | rw [Measure.prod_prod] |
| 58 | simp |
| 59 | |
| 60 | theorem inner_spaceDirection (z : Domain) (i : Fin 3) : inner ℝ z (spaceDirection i) = spaceProj z i := by |
| 61 | simp [spaceDirection, WithLp.prod_inner_apply, spaceProj, WithLp.sndL, |
| 62 | coordinateVector, EuclideanSpace.inner_single_right] |
| 63 | |
| 64 | def coordinateSymbol (i : Fin 3) (z : Domain) : ℂ := (spaceProj z i : ℝ) |
| 65 | |
| 66 | def laplacianSymbol (z : Domain) : ℂ := (‖spaceProj z‖ ^ 2 : ℝ) |
| 67 | |
| 68 | def spatialLaplacian (f : 𝓢'(Domain, ℂ)) : 𝓢'(Domain, ℂ) := |
| 69 | ∑ i : Fin 3, ∂_{spaceDirection i} (∂_{spaceDirection i} f) |
| 70 | |
| 71 | theorem coordinateSymbol_temperate (i : Fin 3) : (coordinateSymbol i).HasTemperateGrowth := by |
| 72 | exact (Complex.ofRealCLM.comp ((EuclideanSpace.proj i).comp spaceProj)).hasTemperateGrowth |
| 73 | |
| 74 | theorem laplacianSymbol_temperate : laplacianSymbol.HasTemperateGrowth := by |
| 75 | exact Complex.ofRealCLM.hasTemperateGrowth.comp |
| 76 | ((Function.hasTemperateGrowth_norm_sq Space).comp spaceProj.hasTemperateGrowth) |
| 77 | |
| 78 | theorem laplacianSymbol_eq_sum : laplacianSymbol = ∑ i : Fin 3, coordinateSymbol i * coordinateSymbol i := by |
| 79 | funext z |
| 80 | simp only [laplacianSymbol, coordinateSymbol, Finset.sum_apply, Pi.mul_apply] |
| 81 | rw [PiLp.norm_sq_eq_of_L2] |
| 82 | push_cast |
| 83 | apply Finset.sum_congr rfl |
| 84 | intro i _ |
| 85 | simp only [Real.norm_eq_abs] |
| 86 | norm_cast |
| 87 | simpa only [pow_two] using sq_abs (spaceProj z i) |
| 88 | |
| 89 | theorem fourier_second_derivative (i j : Fin 3) (f : 𝓢'(Domain, ℂ)) : |
| 90 | 𝓕 (∂_{spaceDirection i} (∂_{spaceDirection j} f)) = |
| 91 | -(2 * Real.pi : ℂ) ^ 2 • |
| 92 | smulLeftCLM ℂ (coordinateSymbol i * coordinateSymbol j) (𝓕 f) := by |
| 93 | rw [fourier_lineDerivOp_eq, fourier_lineDerivOp_eq] |
| 94 | have he (i : Fin 3) : (fun z : Domain => Complex.ofReal (inner ℝ z (spaceDirection i))) = coordinateSymbol i := by |
| 95 | funext z |
| 96 | rw [inner_spaceDirection] |
| 97 | rfl |
| 98 | rw [he i, he j, map_smul, smul_smul, |
| 99 | smulLeftCLM_smulLeftCLM_apply (coordinateSymbol_temperate j) (coordinateSymbol_temperate i), |
| 100 | mul_comm (coordinateSymbol j) (coordinateSymbol i)] |
| 101 | congr 1 |
| 102 | ring_nf |
| 103 | simp |
| 104 | |
| 105 | theorem fourier_spatialLaplacian (f : 𝓢'(Domain, ℂ)) : |
| 106 | 𝓕 (spatialLaplacian f) = -(2 * Real.pi : ℂ) ^ 2 • smulLeftCLM ℂ laplacianSymbol (𝓕 f) := by |
| 107 | rw [spatialLaplacian, fourier_sum] |
| 108 | simp only [fourier_second_derivative] |
| 109 | rw [← Finset.smul_sum, laplacianSymbol_eq_sum] |
| 110 | congr 1 |
| 111 | change (∑ i : Fin 3, (smulLeftCLM ℂ (coordinateSymbol i * coordinateSymbol i)) (𝓕 f)) = |
| 112 | (smulLeftCLM ℂ (fun z => ∑ i : Fin 3, (coordinateSymbol i * coordinateSymbol i) z)) (𝓕 f) |
| 113 | rw [smulLeftCLM_sum (fun i _ => (coordinateSymbol_temperate i).mul (coordinateSymbol_temperate i))] |
| 114 | simp only [sum_apply] |
| 115 | |
| 116 | end NavierStokes.R3SpaceTime |