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.R3WeakPressure |
| 2 | |
| 3 | /-! |
| 4 | # The smooth momentum equation supplies the pressure representation |
| 5 | |
| 6 | All representation identities use compact test functions. Only the velocity |
| 7 | and stress, rather than their derivatives or the pressure, require global |
| 8 | integrability. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | namespace NavierStokes.R3WeakPressure |
| 13 | |
| 14 | open Set Filter MeasureTheory TemperedDistribution FourierTransform |
| 15 | open R3SpaceTime R3SpaceTimePressure |
| 16 | open scoped SchwartzMap LineDeriv Topology ContDiff ENNReal |
| 17 | |
| 18 | theorem represents_zero : Represents (0 : 𝓢'(Domain, ℂ)) (fun _ => 0) := by |
| 19 | intro φ _ |
| 20 | simp |
| 21 | |
| 22 | theorem Represents.congr {T : 𝓢'(Domain, ℂ)} {f g : Domain → ℂ} |
| 23 | (hT : Represents T f) (he : f = g) : Represents T g := he ▸ hT |
| 24 | |
| 25 | theorem Represents.add {S T : 𝓢'(Domain, ℂ)} {f g : Domain → ℂ} |
| 26 | (hS : Represents S f) (hT : Represents T g) (hf : Continuous f) (hg : Continuous g) : |
| 27 | Represents (S + T) (fun z => f z + g z) := by |
| 28 | intro φ hφ |
| 29 | rw [add_apply, hS φ hφ, hT φ hφ] |
| 30 | simp_rw [mul_add] |
| 31 | exact (integral_add |
| 32 | ((φ.continuous.mul hf).integrable_of_hasCompactSupport hφ.mul_right) |
| 33 | ((φ.continuous.mul hg).integrable_of_hasCompactSupport hφ.mul_right)).symm |
| 34 | |
| 35 | theorem Represents.neg {T : 𝓢'(Domain, ℂ)} {f : Domain → ℂ} |
| 36 | (hT : Represents T f) : Represents (-T) (fun z => -f z) := by |
| 37 | intro φ hφ |
| 38 | rw [neg_apply, hT φ hφ] |
| 39 | simp only [mul_neg, integral_neg] |
| 40 | |
| 41 | theorem Represents.sub {S T : 𝓢'(Domain, ℂ)} {f g : Domain → ℂ} |
| 42 | (hS : Represents S f) (hT : Represents T g) (hf : Continuous f) (hg : Continuous g) : |
| 43 | Represents (S - T) (fun z => f z - g z) := by |
| 44 | simpa only [sub_eq_add_neg] using hS.add hT.neg hf hg.neg |
| 45 | |
| 46 | theorem Represents.sum {ι : Type*} (s : Finset ι) (T : ι → 𝓢'(Domain, ℂ)) |
| 47 | (f : ι → Domain → ℂ) (hT : ∀ i ∈ s, Represents (T i) (f i)) |
| 48 | (hf : ∀ i ∈ s, Continuous (f i)) : Represents (∑ i ∈ s, T i) (fun z => ∑ i ∈ s, f i z) := by |
| 49 | intro φ hφ |
| 50 | simp only [sum_apply, Finset.mul_sum] |
| 51 | rw [integral_finsetSum _ (fun i hi => show Integrable (fun z => φ z * f i z) from |
| 52 | (φ.continuous.mul (hf i hi)).integrable_of_hasCompactSupport hφ.mul_right)] |
| 53 | apply Finset.sum_congr rfl |
| 54 | intro i hi |
| 55 | exact hT i hi φ hφ |
| 56 | |
| 57 | def functionLaplacian (f : Domain → ℂ) (z : Domain) : ℂ := |
| 58 | ∑ i, directional (spaceDirection i) (directional (spaceDirection i) f) z |
| 59 | |
| 60 | theorem functionLaplacian_contDiff {f : Domain → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 61 | ContDiff ℝ ∞ (functionLaplacian f) := by |
| 62 | exact ContDiff.sum fun i _ => partial_contDiff (partial_contDiff hf _) _ |
| 63 | |
| 64 | theorem Represents.spatialLaplacian {T : 𝓢'(Domain, ℂ)} {f : Domain → ℂ} |
| 65 | (hT : Represents T f) (hf : ContDiff ℝ ∞ f) : |
| 66 | Represents (spatialLaplacian T) (functionLaplacian f) := by |
| 67 | apply Represents.sum |
| 68 | · intro i _ |
| 69 | exact (hT.lineDeriv (hf.of_le (by simp)) _).lineDeriv |
| 70 | ((partial_contDiff hf _).of_le (by simp)) _ |
| 71 | · intro i _ |
| 72 | exact (partial_contDiff (partial_contDiff hf _) _).continuous |
| 73 | |
| 74 | def functionDivergence (U : Fin 3 → Domain → ℂ) (z : Domain) : ℂ := |
| 75 | ∑ i, directional (spaceDirection i) (U i) z |
| 76 | |
| 77 | theorem divergence_zero_of_smooth (U : Fin 3 → Domain → ℂ) |
| 78 | (hU : ∀ i, MemLp (U i) 2) (hs : ∀ i, ContDiff ℝ ∞ (U i)) |
| 79 | (hd : ∀ z, functionDivergence U z = 0) : |
| 80 | divergence (fun i => ((hU i).toLp (U i) : 𝓢'(Domain, ℂ))) = 0 := by |
| 81 | have hr : Represents (divergence (fun i => ((hU i).toLp (U i) : 𝓢'(Domain, ℂ)))) |
| 82 | (functionDivergence U) := by |
| 83 | apply Represents.sum |
| 84 | · intro i _ |
| 85 | exact (represents_lp (hU i)).lineDeriv ((hs i).of_le (by simp)) _ |
| 86 | · intro i _ |
| 87 | exact (partial_contDiff (hs i) _).continuous |
| 88 | exact (hr.congr (funext hd)).ext represents_zero |
| 89 | |
| 90 | def functionMomentum (U V : Fin 3 → Domain → ℂ) (G : Fin 3 → Fin 3 → Domain → ℂ) |
| 91 | (i : Fin 3) (z : Domain) : ℂ := |
| 92 | functionLaplacian (U i) z - directional timeDirection (U i) z + V i z - |
| 93 | ∑ j, directional (spaceDirection j) (G i j) z |
| 94 | |
| 95 | theorem represents_momentumGradient |
| 96 | (U V : Fin 3 → Domain → ℂ) (G : Fin 3 → Fin 3 → Domain → ℂ) |
| 97 | (hU : ∀ i, MemLp (U i) 2) (hV : ∀ i, MemLp (V i) 2) |
| 98 | (hG : ∀ i j, MemLp (G i j) 1) |
| 99 | (sU : ∀ i, ContDiff ℝ ∞ (U i)) (sV : ∀ i, ContDiff ℝ ∞ (V i)) |
| 100 | (sG : ∀ i j, ContDiff ℝ ∞ (G i j)) (i : Fin 3) : |
| 101 | Represents (momentumGradient (fun i => (hU i).toLp (U i)) |
| 102 | (fun i => (hV i).toLp (V i)) (fun i j => (hG i j).toLp (G i j)) i) |
| 103 | (functionMomentum U V G i) := by |
| 104 | apply Represents.sub |
| 105 | · apply Represents.add |
| 106 | · exact ((represents_lp (hU i)).spatialLaplacian (sU i)).sub |
| 107 | ((represents_lp (hU i)).lineDeriv ((sU i).of_le (by simp)) _) |
| 108 | (functionLaplacian_contDiff (sU i)).continuous (partial_contDiff (sU i) _).continuous |
| 109 | · exact represents_lp (hV i) |
| 110 | · exact (functionLaplacian_contDiff (sU i)).continuous.sub (partial_contDiff (sU i) _).continuous |
| 111 | · exact (sV i).continuous |
| 112 | · apply Represents.sum |
| 113 | · intro j _ |
| 114 | exact (represents_lp (hG i j)).lineDeriv ((sG i j).of_le (by simp)) _ |
| 115 | · intro j _ |
| 116 | exact (partial_contDiff (sG i j) _).continuous |
| 117 | · exact ((functionLaplacian_contDiff (sU i)).continuous.sub |
| 118 | (partial_contDiff (sU i) _).continuous).add (sV i).continuous |
| 119 | · exact continuous_finsetSum _ fun j _ => (partial_contDiff (sG i j) _).continuous |
| 120 | |
| 121 | /-- Direct pressure recovery from a smooth, divergence-free momentum |
| 122 | identity. This is the form used after multiplying the equation by a compact |
| 123 | time cutoff. -/ |
| 124 | theorem smooth_pressure_gradient |
| 125 | (U V : Fin 3 → Domain → ℂ) (G : Fin 3 → Fin 3 → Domain → ℂ) (p : Domain → ℂ) |
| 126 | (hU : ∀ i, MemLp (U i) 2) (hV : ∀ i, MemLp (V i) 2) |
| 127 | (hG : ∀ i j, MemLp (G i j) 1) |
| 128 | (sU : ∀ i, ContDiff ℝ ∞ (U i)) (sV : ∀ i, ContDiff ℝ ∞ (V i)) |
| 129 | (sG : ∀ i j, ContDiff ℝ ∞ (G i j)) (sp : ContDiff ℝ ∞ p) |
| 130 | (dU : ∀ z, functionDivergence U z = 0) (dV : ∀ z, functionDivergence V z = 0) |
| 131 | (heq : ∀ i z, functionMomentum U V G i z = directional (spaceDirection i) p z) |
| 132 | (i : Fin 3) : |
| 133 | Represents (∂_{spaceDirection i} (stressPressure (fun i j => (hG i j).toLp (G i j)))) |
| 134 | (directional (spaceDirection i) p) := by |
| 135 | let UL i := (hU i).toLp (U i) |
| 136 | let VL i := (hV i).toLp (V i) |
| 137 | let stressLp (i j : Fin 3) := (hG i j).toLp (G i j) |
| 138 | have hrep i : Represents (momentumGradient UL VL stressLp i) (directional (spaceDirection i) p) := |
| 139 | (represents_momentumGradient U V G hU hV hG sU sV sG i).congr (funext (heq i)) |
| 140 | have hn i := pressure_gradient_unique UL VL stressLp p |
| 141 | (divergence_zero_of_smooth U hU sU dU) (divergence_zero_of_smooth V hV sV dV) |
| 142 | (fun i φ hφ => (hrep i φ hφ).trans (integration_by_parts (sp.of_le (by simp)) φ hφ _)) i |
| 143 | rw [← hn i] |
| 144 | exact hrep i |
| 145 | |
| 146 | end NavierStokes.R3WeakPressure |