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.MeanCoefficientPathJets |
| 2 | import Euler.TransverseStrongEquation |
| 3 | import Euler.OperatorGevreyCalculus |
| 4 | |
| 5 | /-! |
| 6 | # Actual source coefficient paths for the transverse inverse |
| 7 | |
| 8 | Evaluation of the uniformly smooth spatial coefficient path gives a genuine |
| 9 | smooth map from position to time paths. Restriction to the fixed orthonormal |
| 10 | reference plane is a linear contraction. The pointwise source derivative |
| 11 | bounds therefore imply exactly the time-path coefficient bounds required by |
| 12 | the constructed transverse inverse. |
| 13 | -/ |
| 14 | |
| 15 | /-! ## From `Euler/TransverseSourceFrame.lean` |
| 16 | |
| 17 | The text of `Euler/TransverseSourceFrame.lean`, folded into this file, which was its only importer. -/ |
| 18 | |
| 19 | section |
| 20 | |
| 21 | /-! |
| 22 | # The source frame `Q = F R⊥` |
| 23 | |
| 24 | These coefficient lemmas discharge the moving-plane range and lower-frame |
| 25 | hypotheses using the prescribed invertible deformation and orthonormal reference |
| 26 | plane. No inverse solution or acceleration is supplied as input. |
| 27 | -/ |
| 28 | |
| 29 | noncomputable section |
| 30 | |
| 31 | namespace EulerTransverseSourceFrame |
| 32 | |
| 33 | open Set InnerProductSpace ContinuousLinearMap MeasureTheory |
| 34 | EulerTimeLp EulerTerminalTimePrimitive EulerVolterraConvolution |
| 35 | EulerTransverseFrameCoordinates EulerTransverseVariationalInverse |
| 36 | EulerTransverseCoordinateRegularity EulerTransverseStrongEquation |
| 37 | EulerTransverseGramInverse |
| 38 | |
| 39 | variable {U E : Type*} |
| 40 | [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 41 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 42 | |
| 43 | variable (m₀ : E) (R : U ≃ₗᵢ[ℝ] referencePlane m₀) |
| 44 | |
| 45 | /-- The fixed orthonormal reference-plane embedding. -/ |
| 46 | def referenceEmbedding : U →L[ℝ] E := |
| 47 | (referencePlane m₀).subtypeL.comp R.toContinuousLinearEquiv.toContinuousLinearMap |
| 48 | |
| 49 | /-- Applying the source deformation to the fixed orthonormal reference plane. -/ |
| 50 | def framePath (T : ℝ) (F : C(Icc (0 : ℝ) T, E →L[ℝ] E)) : |
| 51 | C(Icc (0 : ℝ) T, U →L[ℝ] E) := |
| 52 | ⟨fun t => (F t).comp (referenceEmbedding m₀ R), F.continuous.clm_comp continuous_const⟩ |
| 53 | |
| 54 | omit [CompleteSpace U] [CompleteSpace E] in |
| 55 | /-- The frame is literally the source expression `F R⊥`. -/ |
| 56 | theorem framePath_apply (T : ℝ) (F : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 57 | (t : Icc (0 : ℝ) T) (x : U) : |
| 58 | framePath m₀ R T F t x = F t (R x : E) := rfl |
| 59 | |
| 60 | omit [CompleteSpace U] in |
| 61 | /-- The source frame maps into the moving tangent plane. -/ |
| 62 | theorem framePath_tangent (T : ℝ) (F : Icc (0 : ℝ) T → E ≃L[ℝ] E) |
| 63 | (A : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 64 | (hA : ∀ t, A t = (F t).toContinuousLinearMap) |
| 65 | (t : Icc (0 : ℝ) T) (x : U) : |
| 66 | ⟪movingNormal (F t) m₀, framePath m₀ R T A t x⟫_ℝ = 0 := by |
| 67 | apply (tangent_iff (F t) m₀ _).2 |
| 68 | rw [framePath_apply, hA] |
| 69 | change (F t).symm (F t (R x : E)) ∈ referencePlane m₀ |
| 70 | rw [ContinuousLinearEquiv.symm_apply_apply] |
| 71 | exact (R x).property |
| 72 | |
| 73 | omit [CompleteSpace U] in |
| 74 | /-- Every moving tangent vector is in the range of the actual source frame. -/ |
| 75 | theorem framePath_range (T : ℝ) (F : Icc (0 : ℝ) T → E ≃L[ℝ] E) |
| 76 | (A : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 77 | (hA : ∀ t, A t = (F t).toContinuousLinearMap) |
| 78 | (t : Icc (0 : ℝ) T) (η : E) (hη : ⟪movingNormal (F t) m₀, η⟫_ℝ = 0) : |
| 79 | ∃ x : U, framePath m₀ R T A t x = η := by |
| 80 | refine ⟨frameCoordinates (F t) m₀ R η, ?_⟩ |
| 81 | rw [framePath_apply, hA] |
| 82 | exact frame_reconstruct (F t) m₀ η R hη |
| 83 | |
| 84 | omit [CompleteSpace U] [CompleteSpace E] in |
| 85 | /-- A bound on `F⁻¹` gives a quantitative lower frame bound, because `R⊥` is isometric. -/ |
| 86 | theorem framePath_lower_bound (T : ℝ) (F : Icc (0 : ℝ) T → E ≃L[ℝ] E) |
| 87 | (A : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 88 | (hA : ∀ t, A t = (F t).toContinuousLinearMap) |
| 89 | (B : ℝ) (hB : 0 < B) (hinv : ∀ t, ‖(F t).symm.toContinuousLinearMap‖ ≤ B) |
| 90 | (t : Icc (0 : ℝ) T) (x : U) : |
| 91 | (B⁻¹)^2 * ‖x‖^2 ≤ ‖framePath m₀ R T A t x‖^2 := by |
| 92 | have hn : ‖x‖ ≤ B * ‖framePath m₀ R T A t x‖ := by |
| 93 | calc |
| 94 | ‖x‖ = ‖(F t).symm (framePath m₀ R T A t x)‖ := by |
| 95 | rw [framePath_apply, hA] |
| 96 | change ‖x‖ = ‖(F t).symm (F t (R x : E))‖ |
| 97 | rw [ContinuousLinearEquiv.symm_apply_apply] |
| 98 | exact (R.norm_map x).symm |
| 99 | _ ≤ ‖(F t).symm.toContinuousLinearMap‖ * ‖framePath m₀ R T A t x‖ := |
| 100 | (F t).symm.toContinuousLinearMap.le_opNorm _ |
| 101 | _ ≤ B * ‖framePath m₀ R T A t x‖ := |
| 102 | mul_le_mul_of_nonneg_right (hinv t) (norm_nonneg _) |
| 103 | have hdiv : ‖x‖ / B ≤ ‖framePath m₀ R T A t x‖ := |
| 104 | (div_le_iff₀ hB).2 (by simpa only [mul_comm] using hn) |
| 105 | have hs := (sq_le_sq₀ (div_nonneg (norm_nonneg x) hB.le) (norm_nonneg _)).2 hdiv |
| 106 | simpa only [div_eq_mul_inv, mul_pow, mul_comm] using hs |
| 107 | |
| 108 | omit [CompleteSpace U] [CompleteSpace E] in |
| 109 | /-- The actual within-interval derivative commutes with a fixed reference frame. -/ |
| 110 | theorem framePath_hasDerivWithinAt (T : ℝ) (hT : 0 ≤ T) |
| 111 | (A A₁ : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 112 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 113 | HasDerivWithinAt (extendPath T hT A) (A₁ t) (Icc (0 : ℝ) T) t) |
| 114 | (t : Icc (0 : ℝ) T) : |
| 115 | HasDerivWithinAt (extendPath T hT (framePath m₀ R T A)) |
| 116 | (framePath m₀ R T A₁ t) (Icc (0 : ℝ) T) t := by |
| 117 | have h := (hd t).clm_comp (hasDerivWithinAt_const (t : ℝ) (Icc (0 : ℝ) T) (referenceEmbedding m₀ R)) |
| 118 | convert h using 1 |
| 119 | · rfl |
| 120 | · simp only [comp_zero, add_zero] |
| 121 | rfl |
| 122 | |
| 123 | omit [CompleteSpace U] [CompleteSpace E] in |
| 124 | /-- The source equation `F_tt = -H F` gives the precise frame equation used in (10). -/ |
| 125 | theorem framePath_second_equation (T : ℝ) |
| 126 | (A A₂ H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 127 | (hframe : ∀ t, A₂ t = -((H t).comp (A t))) (t : Icc (0 : ℝ) T) : |
| 128 | framePath m₀ R T A₂ t = -((H t).comp (framePath m₀ R T A t)) := by |
| 129 | apply ContinuousLinearMap.ext |
| 130 | intro x |
| 131 | simp only [framePath_apply, hframe, neg_apply, comp_apply] |
| 132 | |
| 133 | /-- For the literal source frame `F R⊥`, the actual transverse inverse has |
| 134 | zero-endpoint H² coordinates satisfying equation (10). All range and inverse |
| 135 | bounds used by the strong theorem are discharged from `F` and `R⊥` here. -/ |
| 136 | theorem sourceFrame_strong (T : ℝ) (hT : 0 < T) |
| 137 | (F : Icc (0 : ℝ) T → E ≃L[ℝ] E) |
| 138 | (A A₁ A₂ H : C(Icc (0 : ℝ) T, E →L[ℝ] E)) |
| 139 | (hA : ∀ t, A t = (F t).toContinuousLinearMap) |
| 140 | (B : ℝ) (hB : 0 < B) (hinv : ∀ t, ‖(F t).symm.toContinuousLinearMap‖ ≤ B) |
| 141 | (hd : ∀ t : Icc (0 : ℝ) T, |
| 142 | HasDerivWithinAt (extendPath T hT.le A) (A₁ t) (Icc (0 : ℝ) T) t) |
| 143 | (hd₁ : ∀ t : Icc (0 : ℝ) T, |
| 144 | HasDerivWithinAt (extendPath T hT.le A₁) (A₂ t) (Icc (0 : ℝ) T) t) |
| 145 | (hframe : ∀ t, A₂ t = -((H t).comp (A t))) |
| 146 | (K : ℝ) (hK : 0 ≤ K) (hH : ∀ t x, ⟪H t x, x⟫_ℝ ≤ K * ‖x‖^2) |
| 147 | (hsmall : K * (T^2/2) ≤ 1/2) (f : TimeLp T E) : |
| 148 | let m := fun t => movingNormal (F t) m₀ |
| 149 | let u : TimeLp T E := transverseSolver T hT.le m H K hK hH hsmall f |
| 150 | ∃ (ξ v : ℝ → U) (a : TimeLp T U), |
| 151 | AbsolutelyContinuousOnInterval ξ 0 T ∧ AbsolutelyContinuousOnInterval v 0 T ∧ |
| 152 | ξ 0 = 0 ∧ ξ T = 0 ∧ |
| 153 | (∀ t : Icc (0 : ℝ) T, F t (R (ξ t) : E) = realPrimitive T u t) ∧ |
| 154 | (∀ᵐ t ∂timeMeasure T, HasDerivAt ξ (v t) t) ∧ |
| 155 | (∀ᵐ t ∂timeMeasure T, HasDerivAt v (a t) t) ∧ |
| 156 | ∀ᵐ t ∂timeMeasure T, |
| 157 | gram (extendPath T hT.le (framePath m₀ R T A) t) (a t) = |
| 158 | (extendPath T hT.le (framePath m₀ R T A) t).adjoint |
| 159 | (f t - (2 : ℝ) • extendPath T hT.le (framePath m₀ R T A₁) t (v t)) := by |
| 160 | let Q := framePath m₀ R T A |
| 161 | let Q₁ := framePath m₀ R T A₁ |
| 162 | let Q₂ := framePath m₀ R T A₂ |
| 163 | let m := fun t => movingNormal (F t) m₀ |
| 164 | let c := (B⁻¹)^2 |
| 165 | have hc : 0 < c := pow_pos (inv_pos.mpr hB) 2 |
| 166 | have hQ : ∀ t x, c * ‖x‖^2 ≤ ‖Q t x‖^2 := framePath_lower_bound m₀ R T F A hA B hB hinv |
| 167 | have hQd := framePath_hasDerivWithinAt m₀ R T hT.le A A₁ hd |
| 168 | have hQ₁d := framePath_hasDerivWithinAt m₀ R T hT.le A₁ A₂ hd₁ |
| 169 | let u := transverseSolver T hT.le m H K hK hH hsmall f |
| 170 | obtain ⟨v, hξAC, hvAC, _, hξder, hvder, heq⟩ := |
| 171 | transverseSolver_strong T hT.le Q Q₁ Q₂ c hc hQ hQd hQ₁d hT m |
| 172 | (framePath_tangent m₀ R T F A hA) (framePath_range m₀ R T F A hA) |
| 173 | H K hK hH hsmall (framePath_second_equation m₀ R T A A₂ H hframe) f |
| 174 | refine ⟨coordinatePrimitive T hT.le Q c hc hQ (u : TimeLp T E), v, |
| 175 | coordinateSecondDerivative T hT.le Q Q₁ Q₂ c hc hQ H (u : TimeLp T E) f, |
| 176 | hξAC, hvAC, coordinatePrimitive_initial T hT.le Q c hc hQ m u, |
| 177 | coordinatePrimitive_terminal T hT.le Q c hc hQ (u : TimeLp T E), ?_, hξder, hvder, heq⟩ |
| 178 | intro t |
| 179 | have hrec := coordinatePrimitive_reconstruct T hT.le Q c hc hQ m |
| 180 | (framePath_range m₀ R T F A hA) u t |
| 181 | change A t (R (coordinatePrimitive T hT.le Q c hc hQ (u : TimeLp T E) t) : E) = _ at hrec |
| 182 | rw [hA t] at hrec |
| 183 | exact hrec |
| 184 | |
| 185 | end EulerTransverseSourceFrame |
| 186 | end |
| 187 | |
| 188 | end |
| 189 | |
| 190 | noncomputable section |
| 191 | |
| 192 | open scoped ContDiff BoundedContinuousFunction |
| 193 | |
| 194 | |
| 195 | namespace EulerTransverseSourceCoefficientPath |
| 196 | |
| 197 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients |
| 198 | EulerTransverseFrameCoordinates EulerTransverseSourceFrame |
| 199 | EulerOperatorGevreyCalculus EulerGevrey |
| 200 | |
| 201 | section Evaluation |
| 202 | |
| 203 | variable {K V : Type*} [TopologicalSpace K] [CompactSpace K] |
| 204 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 205 | |
| 206 | private local instance : NormedAddCommGroup (Space →ᵇ V) := inferInstance |
| 207 | private local instance : NormedSpace ℝ (Space →ᵇ V) := inferInstance |
| 208 | |
| 209 | /-- Actual spatial evaluation, performed uniformly along the time path. -/ |
| 210 | def pathEvaluation (x : Space) : C(K,Space →ᵇ V) →L[ℝ] C(K,V) := |
| 211 | (BoundedContinuousFunction.evalCLM ℝ x).compLeftContinuous ℝ K |
| 212 | |
| 213 | /-- The source coefficient viewed as a time path at a spatial position. -/ |
| 214 | def pointPath (A : SmoothCoefficientPath K V) (x : Space) : C(K,V) := |
| 215 | pathEvaluation 0 (translateCoefficientPath A.field x) |
| 216 | |
| 217 | /-- The coefficient path has the literal prescribed pointwise values. -/ |
| 218 | theorem pointPath_apply (A : SmoothCoefficientPath K V) (x : Space) (t : K) : |
| 219 | pointPath A x t = A.field t x := by |
| 220 | change A.field t (0+x) = A.field t x |
| 221 | rw [zero_add] |
| 222 | |
| 223 | variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 224 | |
| 225 | end Evaluation |
| 226 | |
| 227 | section Frame |
| 228 | |
| 229 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 230 | |
| 231 | private local instance : NormedAddCommGroup (U →L[ℝ] Space) := inferInstance |
| 232 | private local instance : NormedSpace ℝ (U →L[ℝ] Space) := inferInstance |
| 233 | private local instance (T : ℝ) : NormedAddCommGroup C(Icc (0 : ℝ) T,U →L[ℝ] Space) := inferInstance |
| 234 | private local instance (T : ℝ) : NormedSpace ℝ C(Icc (0 : ℝ) T,U →L[ℝ] Space) := inferInstance |
| 235 | private local instance (T : ℝ) : NormedAddCommGroup C(Icc (0 : ℝ) T,Space →L[ℝ] Space) := inferInstance |
| 236 | private local instance (T : ℝ) : NormedSpace ℝ C(Icc (0 : ℝ) T,Space →L[ℝ] Space) := inferInstance |
| 237 | |
| 238 | variable (m₀ : Space) (Rperp : U ≃ₗᵢ[ℝ] referencePlane m₀) |
| 239 | |
| 240 | /-- The fixed orthonormal reference embedding is a contraction, including a trivial plane. -/ |
| 241 | theorem referenceEmbedding_norm : ‖referenceEmbedding m₀ Rperp‖ ≤ 1 := by |
| 242 | apply opNorm_le_bound _ zero_le_one |
| 243 | intro v |
| 244 | change ‖Rperp v‖ ≤ 1*‖v‖ |
| 245 | rw [one_mul, Rperp.norm_map] |
| 246 | |
| 247 | /-- Restrict an actual coefficient operator to the reference plane. -/ |
| 248 | def referenceRestriction : (Space →L[ℝ] Space) →L[ℝ] (U →L[ℝ] Space) := |
| 249 | (compL ℝ U Space Space).flip (referenceEmbedding m₀ Rperp) |
| 250 | |
| 251 | variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 252 | |
| 253 | end Frame |
| 254 | |
| 255 | end EulerTransverseSourceCoefficientPath |