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 Euler.BaseEulerParent |
| 2 | import Euler.SmoothL2GevreyCalculus |
| 3 | import Euler.LpParameterIntegral |
| 4 | import Euler.SmoothTimeFieldTimeJets |
| 5 | |
| 6 | /-! Actual ordinary L² displacement, material velocity and acceleration |
| 7 | for the base flow. The displacement estimate integrates the real spatial |
| 8 | jets of the flow, and the other two estimates use volume preservation. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerBaseEulerParent |
| 13 | |
| 14 | open Set MeasureTheory Filter EulerSmoothLimit EulerSmoothBanachFlow |
| 15 | EulerSmoothFlowGevrey EulerLpTranslation EulerGevrey EulerVolterraConvolution |
| 16 | open scoped ContDiff BoundedContinuousFunction Interval |
| 17 | |
| 18 | private local instance (n : ℕ) : NormedAddCommGroup (Space [×n]→L[ℝ] Space) := inferInstance |
| 19 | private local instance (n : ℕ) : NormedSpace ℝ (Space [×n]→L[ℝ] Space) := inferInstance |
| 20 | private local instance (n : ℕ) : NormedAddCommGroup (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance |
| 21 | private local instance (n : ℕ) : NormedSpace ℝ (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance |
| 22 | |
| 23 | structure L2Data (I : Input) where |
| 24 | velocity : Icc (0 : ℝ) I.T → SmoothL2Field Space |
| 25 | derivative : Icc (0 : ℝ) I.T → SmoothL2Field Space |
| 26 | velocity_match : ∀ t x, (velocity t).field x=I.field.field t x |
| 27 | derivative_match : ∀ t x, (derivative t).field x=I.derivative.field t x |
| 28 | C : ℝ |
| 29 | S : ℝ |
| 30 | C₁ : ℝ |
| 31 | S₁ : ℝ |
| 32 | C_nonneg : 0 ≤ C |
| 33 | S_nonneg : 0 ≤ S |
| 34 | C₁_nonneg : 0 ≤ C₁ |
| 35 | S₁_nonneg : 0 ≤ S₁ |
| 36 | velocity_bound : ∀ t, (velocity t).HasJetBound C S |
| 37 | derivative_bound : ∀ t, (derivative t).HasJetBound C₁ S₁ |
| 38 | |
| 39 | namespace L2Data |
| 40 | |
| 41 | variable {I : Input} (L : L2Data I) |
| 42 | |
| 43 | def velocityRadius : ℝ := flowRadius I.B I.R I.T L.S |
| 44 | |
| 45 | theorem velocityRadius_nonneg : 0 ≤ L.velocityRadius := by |
| 46 | have hb := I.B_nonneg |
| 47 | have hr := I.R_pos |
| 48 | have ht := I.T_pos |
| 49 | have hs := L.S_nonneg |
| 50 | dsimp [velocityRadius,flowRadius] |
| 51 | positivity |
| 52 | |
| 53 | def velocityField (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := |
| 54 | SmoothL2Field.composeField ((flowData I.T I.T_pos.le I.field).forward t) |
| 55 | (forward_contDiff I.T I.T_pos.le I.field t) |
| 56 | (forward_measurePreserving I.T I.T_pos.le I.field I.divergence volume t) |
| 57 | (1+I.B*I.T) (4*I.R+1) |
| 58 | (add_nonneg zero_le_one (mul_nonneg I.B_nonneg I.T_pos.le)) |
| 59 | (add_nonneg (mul_nonneg (by norm_num) I.R_pos.le) zero_le_one) |
| 60 | (fun n hn => forward_positive_bound I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos |
| 61 | I.small I.bound n hn t) |
| 62 | (L.velocity t) L.C L.S L.C_nonneg L.S_nonneg (L.velocity_bound t) |
| 63 | |
| 64 | theorem velocityField_bound (t : Icc (0 : ℝ) I.T) : |
| 65 | (L.velocityField t).HasJetBound L.C L.velocityRadius := by |
| 66 | unfold velocityField velocityRadius |
| 67 | apply SmoothL2Field.composeField_bound |
| 68 | |
| 69 | theorem velocityField_apply (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 70 | (L.velocityField t).field x=I.velocity.field t x := by |
| 71 | change (L.velocity t).field ((flowData I.T I.T_pos.le I.field).forward t x)=_ |
| 72 | rw [L.velocity_match,I.velocity_apply] |
| 73 | rfl |
| 74 | |
| 75 | theorem velocityField_jet (n : ℕ) (t : Icc (0 : ℝ) I.T) : |
| 76 | iteratedFDeriv ℝ n (L.velocityField t).field = |
| 77 | fun x => I.velocity.jet n t x := by |
| 78 | rw [show (L.velocityField t).field = (I.velocity.field t : Space → Space) from |
| 79 | funext (L.velocityField_apply t)] |
| 80 | exact funext (fun x => (I.velocity.jet_eq n t x).symm) |
| 81 | |
| 82 | theorem displacement_jet_integral (n : ℕ) (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 83 | I.displacement.jet n t x = |
| 84 | ∫ s in (0 : ℝ)..(t : ℝ), extendPath I.T I.T_pos.le (I.velocity.jet n) s x := by |
| 85 | let f : C(Icc (0 : ℝ) I.T,Space [×n]→L[ℝ] Space) := |
| 86 | ⟨fun s => I.velocity.jet n s x, |
| 87 | (BoundedContinuousFunction.evalCLM ℝ x).continuous.comp (I.velocity.jet n).continuous⟩ |
| 88 | have h := EulerContinuousTimeIntegral.eq_initial_add_integral I.T I.T_pos.le f |
| 89 | (fun s => extendPath I.T I.T_pos.le (I.displacement.jet n) s x) |
| 90 | (fun s => SmoothTimeField.TimeDerivative.jet_pointwise I.T I.T_pos.le |
| 91 | I.displacement I.velocity I.displacement_time n x s) t |
| 92 | have hz : I.displacement.jet n ⟨0,le_rfl,I.T_pos.le⟩ x=0 := by |
| 93 | rw [I.displacement.jet_eq] |
| 94 | have he : (I.displacement.field ⟨0,le_rfl,I.T_pos.le⟩ : Space → Space)=0 := |
| 95 | funext I.displacement_initial |
| 96 | rw [he,iteratedFDeriv_zero] |
| 97 | rfl |
| 98 | simp only [extendPath,projIcc_of_mem I.T_pos.le t.property, |
| 99 | projIcc_of_mem I.T_pos.le (show (0 : ℝ) ∈ Icc 0 I.T from ⟨le_rfl,I.T_pos.le⟩),hz, |
| 100 | zero_add,EulerContinuousTimeIntegral.integral_apply,EulerContinuousTimeIntegral.realIntegral] at h |
| 101 | exact h |
| 102 | |
| 103 | theorem displacement_memLp_and_bound (n : ℕ) (t : Icc (0 : ℝ) I.T) : |
| 104 | MemLp (iteratedFDeriv ℝ n (I.displacement.field t : Space → Space)) 2 volume ∧ |
| 105 | (eLpNorm (iteratedFDeriv ℝ n (I.displacement.field t : Space → Space)) 2 volume).toReal ≤ |
| 106 | I.T*L.C*L.velocityRadius^n*(n.factorial : ℝ)^2 := by |
| 107 | let f : ℝ × Space → Space [×n]→L[ℝ] Space := |
| 108 | fun p => extendPath I.T I.T_pos.le (I.velocity.jet n) p.1 p.2 |
| 109 | have hc : Continuous f := by |
| 110 | have ht := extendPath_continuous I.T I.T_pos.le (I.velocity.jet n) |
| 111 | dsimp [f] |
| 112 | fun_prop |
| 113 | have hb : ∀ s : ℝ, MemLp (fun x => f (s,x)) 2 volume ∧ |
| 114 | (eLpNorm (fun x => f (s,x)) 2 volume).toReal ≤ |
| 115 | L.C*L.velocityRadius^n*(n.factorial : ℝ)^2 := by |
| 116 | intro s |
| 117 | have he : (fun x => f (s,x)) = |
| 118 | iteratedFDeriv ℝ n (L.velocityField (projIcc 0 I.T I.T_pos.le s)).field := |
| 119 | (L.velocityField_jet n (projIcc 0 I.T I.T_pos.le s)).symm |
| 120 | rw [he] |
| 121 | exact ⟨(L.velocityField _).integrable n,by |
| 122 | rw [← SmoothL2Field.norm_jetLp] |
| 123 | exact L.velocityField_bound _ n⟩ |
| 124 | have hp := EulerLpParameterIntegral.intervalIntegral_memLp_and_bound (t : ℝ) t.property.1 |
| 125 | volume f hc.aestronglyMeasurable (L.C*L.velocityRadius^n*(n.factorial : ℝ)^2) |
| 126 | (mul_nonneg (mul_nonneg L.C_nonneg (pow_nonneg L.velocityRadius_nonneg n)) (sq_nonneg _)) |
| 127 | (Eventually.of_forall hb) |
| 128 | have he : (fun x => ∫ s in (0 : ℝ)..(t : ℝ), f (s,x)) = |
| 129 | iteratedFDeriv ℝ n (I.displacement.field t : Space → Space) := by |
| 130 | funext x |
| 131 | exact (displacement_jet_integral (I := I) n t x).symm.trans (I.displacement.jet_eq n t x) |
| 132 | rw [he] at hp |
| 133 | refine ⟨hp.1,hp.2.trans ?_⟩ |
| 134 | have ht := mul_le_mul_of_nonneg_right t.property.2 |
| 135 | (mul_nonneg (mul_nonneg L.C_nonneg (pow_nonneg L.velocityRadius_nonneg n)) |
| 136 | (sq_nonneg (n.factorial : ℝ))) |
| 137 | exact ht.trans_eq (by ring) |
| 138 | |
| 139 | def displacementField (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space where |
| 140 | field := I.displacement.field t |
| 141 | smooth := I.displacement.smooth t |
| 142 | integrable n := (L.displacement_memLp_and_bound n t).1 |
| 143 | |
| 144 | theorem displacementField_bound (t : Icc (0 : ℝ) I.T) : |
| 145 | (L.displacementField t).HasJetBound (I.T*L.C) L.velocityRadius := by |
| 146 | intro n |
| 147 | rw [SmoothL2Field.norm_jetLp] |
| 148 | exact (L.displacement_memLp_and_bound n t).2 |
| 149 | |
| 150 | def accelerationSourceRadius : ℝ := 4*I.R+L.S+L.S₁ |
| 151 | |
| 152 | theorem accelerationSourceRadius_nonneg : 0 ≤ L.accelerationSourceRadius := by |
| 153 | have hr := I.R_pos |
| 154 | have hs := L.S_nonneg |
| 155 | have hs₁ := L.S₁_nonneg |
| 156 | dsimp [accelerationSourceRadius] |
| 157 | positivity |
| 158 | |
| 159 | theorem field_derivative_bound (t : Icc (0 : ℝ) I.T) : |
| 160 | HasSupBound (fderiv ℝ (I.field.field t : Space → Space)) (I.B*I.R) L.accelerationSourceRadius := by |
| 161 | have h : HasSupBound (I.field.field t : Space → Space) I.B I.R := |
| 162 | fun n x => field_jet_bound I.T I.field I.B I.R I.bound n t x |
| 163 | exact (h.derivative I.B_nonneg I.R_pos.le).mono (mul_nonneg I.B_nonneg I.R_pos.le) |
| 164 | (mul_nonneg (by norm_num) I.R_pos.le) le_rfl |
| 165 | (by dsimp [accelerationSourceRadius]; linarith [L.S_nonneg,L.S₁_nonneg]) |
| 166 | |
| 167 | def accelerationProduct (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := |
| 168 | SmoothL2Field.productField (fderiv ℝ (I.field.field t : Space → Space)) |
| 169 | ((I.field.smooth t).fderiv_right (m := ∞) (by simp)) (L.velocity t) |
| 170 | (I.B*I.R) L.C L.accelerationSourceRadius (mul_nonneg I.B_nonneg I.R_pos.le) L.C_nonneg |
| 171 | L.accelerationSourceRadius_nonneg (L.field_derivative_bound t) |
| 172 | ((L.velocity_bound t).mono L.C_nonneg L.S_nonneg le_rfl |
| 173 | (by dsimp [accelerationSourceRadius]; linarith [I.R_pos,L.S₁_nonneg])) |
| 174 | |
| 175 | def accelerationSource (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := |
| 176 | SmoothL2Field.addField (L.derivative t) (L.accelerationProduct t) |
| 177 | |
| 178 | def accelerationAmplitude : ℝ := L.C₁+3*(I.B*I.R)*L.C |
| 179 | |
| 180 | theorem accelerationAmplitude_nonneg : 0 ≤ L.accelerationAmplitude := by |
| 181 | have hb := I.B_nonneg |
| 182 | have hr := I.R_pos |
| 183 | have hc := L.C_nonneg |
| 184 | have hc₁ := L.C₁_nonneg |
| 185 | dsimp [accelerationAmplitude] |
| 186 | positivity |
| 187 | |
| 188 | theorem accelerationSource_bound (t : Icc (0 : ℝ) I.T) : |
| 189 | (L.accelerationSource t).HasJetBound L.accelerationAmplitude L.accelerationSourceRadius := by |
| 190 | apply SmoothL2Field.HasJetBound.add |
| 191 | · exact (L.derivative_bound t).mono L.C₁_nonneg L.S₁_nonneg le_rfl |
| 192 | (by dsimp [accelerationSourceRadius]; linarith [I.R_pos,L.S_nonneg]) |
| 193 | · exact SmoothL2Field.productField_bound _ _ _ _ _ _ _ _ _ _ _ |
| 194 | |
| 195 | def accelerationRadius : ℝ := flowRadius I.B I.R I.T L.accelerationSourceRadius |
| 196 | |
| 197 | theorem accelerationRadius_nonneg : 0 ≤ L.accelerationRadius := by |
| 198 | have hb := I.B_nonneg |
| 199 | have hr := I.R_pos |
| 200 | have ht := I.T_pos |
| 201 | have hs := L.accelerationSourceRadius_nonneg |
| 202 | dsimp [accelerationRadius,flowRadius] |
| 203 | positivity |
| 204 | |
| 205 | def accelerationField (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := |
| 206 | SmoothL2Field.composeField ((flowData I.T I.T_pos.le I.field).forward t) |
| 207 | (forward_contDiff I.T I.T_pos.le I.field t) |
| 208 | (forward_measurePreserving I.T I.T_pos.le I.field I.divergence volume t) |
| 209 | (1+I.B*I.T) (4*I.R+1) |
| 210 | (add_nonneg zero_le_one (mul_nonneg I.B_nonneg I.T_pos.le)) |
| 211 | (add_nonneg (mul_nonneg (by norm_num) I.R_pos.le) zero_le_one) |
| 212 | (fun n hn => forward_positive_bound I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos |
| 213 | I.small I.bound n hn t) |
| 214 | (L.accelerationSource t) L.accelerationAmplitude L.accelerationSourceRadius |
| 215 | L.accelerationAmplitude_nonneg L.accelerationSourceRadius_nonneg (L.accelerationSource_bound t) |
| 216 | |
| 217 | theorem accelerationField_bound (t : Icc (0 : ℝ) I.T) : |
| 218 | (L.accelerationField t).HasJetBound L.accelerationAmplitude L.accelerationRadius := by |
| 219 | unfold accelerationField accelerationRadius |
| 220 | apply SmoothL2Field.composeField_bound |
| 221 | |
| 222 | theorem accelerationField_apply (t : Icc (0 : ℝ) I.T) (x : Space) : |
| 223 | (L.accelerationField t).field x=I.acceleration.field t x := by |
| 224 | change (L.derivative t).field ((flowData I.T I.T_pos.le I.field).forward t x) + |
| 225 | fderiv ℝ (I.field.field t : Space → Space) ((flowData I.T I.T_pos.le I.field).forward t x) |
| 226 | ((L.velocity t).field ((flowData I.T I.T_pos.le I.field).forward t x)) = _ |
| 227 | rw [L.derivative_match,L.velocity_match,I.acceleration_apply,accelerationFamily_apply] |
| 228 | |
| 229 | end L2Data |
| 230 | end EulerBaseEulerParent |