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.SmoothCoefficientPathMap |
| 2 | import Euler.TransverseSourceCoefficientPath |
| 3 | |
| 4 | /-! |
| 5 | # Source deformation data for the concrete transverse packet provider |
| 6 | |
| 7 | Only the prescribed deformation, its inverse, and their actual time identity |
| 8 | are inputs. The transverse frame, normal, both coercivity constants, and all |
| 9 | geometry needed by the forward solve are derived below. |
| 10 | -/ |
| 11 | |
| 12 | /-! ## From `Euler/TransverseBoundedFrame.lean` |
| 13 | |
| 14 | The text of `Euler/TransverseBoundedFrame.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! |
| 19 | # The literal source frame as a uniformly smooth bounded coefficient path |
| 20 | |
| 21 | The reference-plane restriction is a fixed linear contraction. The actual |
| 22 | source fields F and F_t therefore construct the full bounded frame fields, |
| 23 | with their genuine jets and time derivative. A pointwise bound on F⁻¹ proves |
| 24 | the uniform frame coercivity used by the constructed Gram inverse. |
| 25 | -/ |
| 26 | |
| 27 | noncomputable section |
| 28 | |
| 29 | namespace EulerTransverseBoundedFrame |
| 30 | |
| 31 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients |
| 32 | EulerTransverseFrameCoordinates EulerTransverseSourceFrame EulerTransverseSourceCoefficientPath |
| 33 | EulerVolterraConvolution |
| 34 | open scoped BoundedContinuousFunction ContDiff |
| 35 | |
| 36 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 37 | (m₀ : Space) (R : U ≃ₗᵢ[ℝ] referencePlane m₀) |
| 38 | |
| 39 | /-- Restricting a matrix to the orthonormal reference plane is a contraction. -/ |
| 40 | theorem restriction_norm : ‖referenceRestriction m₀ R‖ ≤ 1 := by |
| 41 | apply opNorm_le_bound _ zero_le_one |
| 42 | intro A |
| 43 | change ‖A.comp (referenceEmbedding m₀ R)‖ ≤ 1*‖A‖ |
| 44 | exact (opNorm_comp_le A (referenceEmbedding m₀ R)).trans |
| 45 | (by simpa only [mul_one,one_mul] using |
| 46 | mul_le_mul_of_nonneg_left (referenceEmbedding_norm m₀ R) (norm_nonneg A)) |
| 47 | |
| 48 | variable {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 49 | |
| 50 | /-- The actual source F R⊥, including all its uniformly continuous spatial jets. -/ |
| 51 | def coefficient (F : SmoothCoefficientPath K (Space →L[ℝ] Space)) : |
| 52 | SmoothCoefficientPath K (U →L[ℝ] Space) := |
| 53 | SmoothCoefficientPath.map (referenceRestriction m₀ R) F |
| 54 | |
| 55 | @[simp] theorem coefficient_apply (F : SmoothCoefficientPath K (Space →L[ℝ] Space)) |
| 56 | (t : K) (x : Space) (v : U) : (coefficient m₀ R F).field t x v = F.field t x (R v : Space) := rfl |
| 57 | |
| 58 | /-- The original pointwise source coefficient derivative bound survives without loss. -/ |
| 59 | theorem coefficient_derivative_bound (F : SmoothCoefficientPath K (Space →L[ℝ] Space)) |
| 60 | (n : ℕ) (C : ℝ) |
| 61 | (hF : ∀ t x, ‖iteratedFDeriv ℝ n (F.field t : Space → Space →L[ℝ] Space) x‖ ≤ C) |
| 62 | (t : K) (x : Space) : |
| 63 | ‖iteratedFDeriv ℝ n ((coefficient m₀ R F).field t : Space → U →L[ℝ] Space) x‖ ≤ C := |
| 64 | SmoothCoefficientPath.map_derivative_bound (referenceRestriction m₀ R) (restriction_norm m₀ R) F n C hF t x |
| 65 | |
| 66 | /-- The uniform inverse-frame bound gives the precise squared lower frame bound. -/ |
| 67 | theorem coefficient_lower (F : SmoothCoefficientPath K (Space →L[ℝ] Space)) |
| 68 | (FInv : K → Space → Space →L[ℝ] Space) (B : ℝ) (hB : 0 < B) |
| 69 | (hInv : ∀ t x v, FInv t x (F.field t x v) = v) |
| 70 | (hNorm : ∀ t x, ‖FInv t x‖ ≤ B) (t : K) (x : Space) (v : U) : |
| 71 | (B⁻¹)^2*‖v‖^2 ≤ ‖(coefficient m₀ R F).field t x v‖^2 := by |
| 72 | have hn : ‖v‖ ≤ B*‖(coefficient m₀ R F).field t x v‖ := by |
| 73 | calc |
| 74 | ‖v‖ = ‖(R v : Space)‖ := (R.norm_map v).symm |
| 75 | _ = ‖FInv t x (F.field t x (R v : Space))‖ := congrArg norm (hInv t x (R v : Space)).symm |
| 76 | _ ≤ ‖FInv t x‖*‖F.field t x (R v : Space)‖ := (FInv t x).le_opNorm _ |
| 77 | _ ≤ B*‖(coefficient m₀ R F).field t x v‖ := |
| 78 | mul_le_mul_of_nonneg_right (hNorm t x) (norm_nonneg _) |
| 79 | have hdiv : ‖v‖/B ≤ ‖(coefficient m₀ R F).field t x v‖ := |
| 80 | (div_le_iff₀ hB).2 (by simpa only [mul_comm] using hn) |
| 81 | have hs := (sq_le_sq₀ (div_nonneg (norm_nonneg v) hB.le) (norm_nonneg _)).2 hdiv |
| 82 | simpa only [div_eq_mul_inv,mul_pow,mul_comm] using hs |
| 83 | |
| 84 | section Time |
| 85 | |
| 86 | variable (T : ℝ) (hT : 0 ≤ T) |
| 87 | (F F₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space)) |
| 88 | |
| 89 | /-- The actual source time derivative also commutes with the reference restriction. -/ |
| 90 | theorem coefficient_hasDerivWithinAt |
| 91 | (hF : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : Space, |
| 92 | HasDerivWithinAt (fun s => extendPath T hT F.field s x) |
| 93 | (extendPath T hT F₁.field t x) (Icc (0 : ℝ) T) t) |
| 94 | (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) (x : Space) : |
| 95 | HasDerivWithinAt (fun s => extendPath T hT (coefficient m₀ R F).field s x) |
| 96 | (extendPath T hT (coefficient m₀ R F₁).field t x) (Icc (0 : ℝ) T) t := by |
| 97 | have hd := (referenceRestriction m₀ R).hasFDerivAt.comp_hasDerivWithinAt t (hF t ht x) |
| 98 | exact hd |
| 99 | |
| 100 | end Time |
| 101 | |
| 102 | end EulerTransverseBoundedFrame |
| 103 | end |
| 104 | |
| 105 | end |
| 106 | |
| 107 | /-! ## From `Euler/TransverseBoundedGeometry.lean` |
| 108 | |
| 109 | The text of `Euler/TransverseBoundedGeometry.lean`, folded into this file, which was its only importer. -/ |
| 110 | |
| 111 | section |
| 112 | |
| 113 | /-! |
| 114 | # Source geometry for the bounded frame and normal |
| 115 | |
| 116 | The literal fields Q=F R⊥ and m=F⁻ᵀm₀ satisfy the tangency, range, strain, |
| 117 | and quantitative normal lower bounds used by the actual transverse solver. |
| 118 | Only the original deformation and its genuine pointwise inverse are inputs. |
| 119 | -/ |
| 120 | |
| 121 | noncomputable section |
| 122 | |
| 123 | namespace EulerTransverseBoundedFrame |
| 124 | |
| 125 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients |
| 126 | EulerTransverseFrameCoordinates |
| 127 | open scoped BoundedContinuousFunction ContDiff |
| 128 | |
| 129 | variable (m₀ : Space) |
| 130 | |
| 131 | /-- The fixed linear operation sending F⁻¹ to F⁻ᵀm₀. -/ |
| 132 | def normalMap : (Space →L[ℝ] Space) →L[ℝ] Space := |
| 133 | (ContinuousLinearMap.apply ℝ Space m₀).comp |
| 134 | (ContinuousLinearMap.adjoint.toContinuousLinearEquiv.toContinuousLinearMap : |
| 135 | (Space →L[ℝ] Space) →L[ℝ] (Space →L[ℝ] Space)) |
| 136 | |
| 137 | @[simp] theorem normalMap_apply (A : Space →L[ℝ] Space) : normalMap m₀ A = A.adjoint m₀ := rfl |
| 138 | |
| 139 | theorem normalMap_norm (hm₀ : ‖m₀‖ = 1) : ‖normalMap m₀‖ ≤ 1 := by |
| 140 | apply opNorm_le_bound _ zero_le_one |
| 141 | intro A |
| 142 | change ‖A.adjoint m₀‖ ≤ 1*‖A‖ |
| 143 | have h := A.adjoint.le_opNorm m₀ |
| 144 | simpa only [hm₀,mul_one,one_mul,ContinuousLinearEquiv.coe_coe, |
| 145 | LinearIsometryEquiv.norm_map] using h |
| 146 | |
| 147 | variable {K : Type*} [TopologicalSpace K] [CompactSpace K] |
| 148 | |
| 149 | /-- The normal has the genuine spatial jets inherited from the inverse deformation. -/ |
| 150 | def normalCoefficient (FInv : SmoothCoefficientPath K (Space →L[ℝ] Space)) : |
| 151 | SmoothCoefficientPath K Space := SmoothCoefficientPath.map (normalMap m₀) FInv |
| 152 | |
| 153 | @[simp] theorem normalCoefficient_apply (FInv : SmoothCoefficientPath K (Space →L[ℝ] Space)) |
| 154 | (t : K) (x : Space) : (normalCoefficient m₀ FInv).field t x = (FInv.field t x).adjoint m₀ := rfl |
| 155 | |
| 156 | theorem normalCoefficient_derivative_bound (FInv : SmoothCoefficientPath K (Space →L[ℝ] Space)) |
| 157 | (hm₀ : ‖m₀‖ = 1) (n : ℕ) (C : ℝ) |
| 158 | (hF : ∀ t x, ‖iteratedFDeriv ℝ n (FInv.field t : Space → Space →L[ℝ] Space) x‖ ≤ C) |
| 159 | (t : K) (x : Space) : |
| 160 | ‖iteratedFDeriv ℝ n ((normalCoefficient m₀ FInv).field t : Space → Space) x‖ ≤ C := |
| 161 | SmoothCoefficientPath.map_derivative_bound (normalMap m₀) (normalMap_norm m₀ hm₀) FInv n C hF t x |
| 162 | |
| 163 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 164 | (R : U ≃ₗᵢ[ℝ] referencePlane m₀) |
| 165 | (F FInv : SmoothCoefficientPath K (Space →L[ℝ] Space)) |
| 166 | |
| 167 | theorem coefficient_tangent |
| 168 | (hInv : ∀ t x v, FInv.field t x (F.field t x v) = v) (t : K) (x : Space) (v : U) : |
| 169 | ⟪(normalCoefficient m₀ FInv).field t x,(coefficient m₀ R F).field t x v⟫_ℝ = 0 := by |
| 170 | rw [normalCoefficient_apply,coefficient_apply,adjoint_inner_left,hInv] |
| 171 | have h := (R v).property |
| 172 | rwa [Submodule.mem_orthogonal_singleton_iff_inner_right] at h |
| 173 | |
| 174 | theorem coefficient_range |
| 175 | (hInv : ∀ t x v, F.field t x (FInv.field t x v) = v) |
| 176 | (t : K) (x η : Space) (hη : ⟪(normalCoefficient m₀ FInv).field t x,η⟫_ℝ = 0) : |
| 177 | ∃ v, (coefficient m₀ R F).field t x v = η := by |
| 178 | have hmem : FInv.field t x η ∈ referencePlane m₀ := by |
| 179 | rw [Submodule.mem_orthogonal_singleton_iff_inner_right] |
| 180 | simpa only [normalCoefficient_apply,adjoint_inner_left] using hη |
| 181 | let z : referencePlane m₀ := ⟨FInv.field t x η,hmem⟩ |
| 182 | refine ⟨R.symm z,?_⟩ |
| 183 | rw [coefficient_apply,R.apply_symm_apply] |
| 184 | exact hInv t x η |
| 185 | |
| 186 | theorem coefficient_strain (F₁ M : SmoothCoefficientPath K (Space →L[ℝ] Space)) |
| 187 | (hFlow : ∀ t x v, F₁.field t x v = M.field t x (F.field t x v)) (t : K) (x : Space) : |
| 188 | (coefficient m₀ R F₁).field t x = (M.field t x).comp ((coefficient m₀ R F).field t x) := by |
| 189 | apply ContinuousLinearMap.ext |
| 190 | intro v |
| 191 | exact hFlow t x (R v : Space) |
| 192 | |
| 193 | /-- The source inverse identity also prevents degeneration of the normal. -/ |
| 194 | theorem normalCoefficient_lower (hm₀ : ‖m₀‖ = 1) |
| 195 | (hInv : ∀ t x v, FInv.field t x (F.field t x v) = v) |
| 196 | (B : ℝ) (hB : 0 < B) (hFnorm : ∀ t x, ‖F.field t x‖ ≤ B) (t : K) (x : Space) : |
| 197 | (B⁻¹)^2 ≤ ‖(normalCoefficient m₀ FInv).field t x‖^2 := by |
| 198 | have he : (F.field t x).adjoint ((normalCoefficient m₀ FInv).field t x) = m₀ := by |
| 199 | apply ext_inner_right ℝ |
| 200 | intro v |
| 201 | rw [adjoint_inner_left,normalCoefficient_apply,adjoint_inner_left,hInv] |
| 202 | have hnorm : ‖(F.field t x).adjoint‖ = ‖F.field t x‖ := |
| 203 | ContinuousLinearMap.adjoint.norm_map (F.field t x) |
| 204 | have hn : 1 ≤ B*‖(normalCoefficient m₀ FInv).field t x‖ := by |
| 205 | calc |
| 206 | 1 = ‖(F.field t x).adjoint ((normalCoefficient m₀ FInv).field t x)‖ := by rw [he,hm₀] |
| 207 | _ ≤ ‖(F.field t x).adjoint‖*‖(normalCoefficient m₀ FInv).field t x‖ := |
| 208 | (F.field t x).adjoint.le_opNorm _ |
| 209 | _ ≤ B*‖(normalCoefficient m₀ FInv).field t x‖ := by |
| 210 | rw [hnorm] |
| 211 | exact mul_le_mul_of_nonneg_right (hFnorm t x) (norm_nonneg _) |
| 212 | have hd : B⁻¹ ≤ ‖(normalCoefficient m₀ FInv).field t x‖ := by |
| 213 | rw [← one_div] |
| 214 | exact (div_le_iff₀ hB).2 (by simpa only [mul_comm] using hn) |
| 215 | exact (sq_le_sq₀ (inv_nonneg.mpr hB.le) (norm_nonneg _)).2 hd |
| 216 | |
| 217 | end EulerTransverseBoundedFrame |
| 218 | end |
| 219 | |
| 220 | end |
| 221 | |
| 222 | noncomputable section |
| 223 | |
| 224 | namespace EulerTransversePacketProvider |
| 225 | |
| 226 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients |
| 227 | EulerTransverseFrameCoordinates EulerTransverseBoundedFrame EulerVolterraConvolution |
| 228 | open scoped BoundedContinuousFunction ContDiff |
| 229 | |
| 230 | structure Data (U : Type*) [NormedAddCommGroup U] [InnerProductSpace ℝ U] where |
| 231 | T : ℝ |
| 232 | T_pos : 0 < T |
| 233 | support : Set Space |
| 234 | support_compact : IsCompact support |
| 235 | m₀ : Space |
| 236 | m₀_unit : ‖m₀‖ = 1 |
| 237 | R : U ≃ₗᵢ[ℝ] referencePlane m₀ |
| 238 | F : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) |
| 239 | F₁ : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) |
| 240 | FInv : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) |
| 241 | M : SmoothCoefficientPath (Icc (0 : ℝ) T) (Space →L[ℝ] Space) |
| 242 | inverse_left : ∀ t x v, FInv.field t x (F.field t x v) = v |
| 243 | inverse_right : ∀ t x v, F.field t x (FInv.field t x v) = v |
| 244 | frame_time : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : Space, |
| 245 | HasDerivWithinAt (fun s => extendPath T T_pos.le F.field s x) |
| 246 | (extendPath T T_pos.le F₁.field t x) (Icc (0 : ℝ) T) t |
| 247 | strain_equation : ∀ t x v, F₁.field t x v = M.field t x (F.field t x v) |
| 248 | |
| 249 | namespace Data |
| 250 | |
| 251 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : Data U) |
| 252 | |
| 253 | theorem support_measurable : MeasurableSet D.support := |
| 254 | D.support_compact.isClosed.measurableSet |
| 255 | |
| 256 | abbrev frame := coefficient D.m₀ D.R D.F |
| 257 | abbrev frameDerivative := coefficient D.m₀ D.R D.F₁ |
| 258 | abbrev normal := normalCoefficient D.m₀ D.FInv |
| 259 | |
| 260 | def inverseBound : ℝ := 1+‖D.FInv.field‖ |
| 261 | def frameBound : ℝ := 1+‖D.F.field‖ |
| 262 | def frameLower : ℝ := D.inverseBound⁻¹^2 |
| 263 | def normalLower : ℝ := D.frameBound⁻¹^2 |
| 264 | |
| 265 | theorem inverseBound_pos : 0 < D.inverseBound := by |
| 266 | unfold inverseBound |
| 267 | positivity |
| 268 | |
| 269 | theorem frameBound_pos : 0 < D.frameBound := by |
| 270 | unfold frameBound |
| 271 | positivity |
| 272 | |
| 273 | theorem frameLower_pos : 0 < D.frameLower := |
| 274 | pow_pos (inv_pos.mpr D.inverseBound_pos) 2 |
| 275 | |
| 276 | theorem normalLower_pos : 0 < D.normalLower := |
| 277 | pow_pos (inv_pos.mpr D.frameBound_pos) 2 |
| 278 | |
| 279 | theorem inverse_norm (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 280 | ‖D.FInv.field t x‖ ≤ D.inverseBound := by |
| 281 | exact ((D.FInv.field t).norm_coe_le_norm x).trans |
| 282 | ((D.FInv.field.norm_coe_le_norm t).trans (by unfold inverseBound; linarith)) |
| 283 | |
| 284 | theorem frame_norm (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 285 | ‖D.F.field t x‖ ≤ D.frameBound := by |
| 286 | exact ((D.F.field t).norm_coe_le_norm x).trans |
| 287 | ((D.F.field.norm_coe_le_norm t).trans (by unfold frameBound; linarith)) |
| 288 | |
| 289 | /-- Uniform coercivity follows from the actual inverse deformation. -/ |
| 290 | theorem frame_lower (t : Icc (0 : ℝ) D.T) (x : Space) (v : U) : |
| 291 | D.frameLower*‖v‖^2 ≤ ‖D.frame.field t x v‖^2 := |
| 292 | coefficient_lower D.m₀ D.R D.F (fun t x => D.FInv.field t x) |
| 293 | D.inverseBound D.inverseBound_pos D.inverse_left D.inverse_norm t x v |
| 294 | |
| 295 | /-- The scalar pressure inverse is nondegenerate by the same source identity. -/ |
| 296 | theorem normal_lower (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 297 | D.normalLower ≤ ‖D.normal.field t x‖^2 := |
| 298 | normalCoefficient_lower D.m₀ D.F D.FInv D.m₀_unit D.inverse_left |
| 299 | D.frameBound D.frameBound_pos D.frame_norm t x |
| 300 | |
| 301 | theorem frame_tangent (t : Icc (0 : ℝ) D.T) (x : Space) (v : U) : |
| 302 | ⟪D.normal.field t x,D.frame.field t x v⟫_ℝ = 0 := |
| 303 | coefficient_tangent D.m₀ D.R D.F D.FInv D.inverse_left t x v |
| 304 | |
| 305 | theorem frame_range (t : Icc (0 : ℝ) D.T) (x η : Space) |
| 306 | (hη : ⟪D.normal.field t x,η⟫_ℝ = 0) : ∃ v, D.frame.field t x v = η := |
| 307 | coefficient_range D.m₀ D.R D.F D.FInv D.inverse_right t x η hη |
| 308 | |
| 309 | theorem frame_strain (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 310 | D.frameDerivative.field t x = (D.M.field t x).comp (D.frame.field t x) := |
| 311 | coefficient_strain D.m₀ D.R D.F D.F₁ D.M D.strain_equation t x |
| 312 | |
| 313 | theorem frame_derivative (t : ℝ) (ht : t ∈ Icc (0 : ℝ) D.T) (x : Space) : |
| 314 | HasDerivWithinAt (fun s => extendPath D.T D.T_pos.le D.frame.field s x) |
| 315 | (extendPath D.T D.T_pos.le D.frameDerivative.field t x) (Icc (0 : ℝ) D.T) t := |
| 316 | coefficient_hasDerivWithinAt D.m₀ D.R D.T D.T_pos.le D.F D.F₁ D.frame_time t ht x |
| 317 | |
| 318 | end Data |
| 319 | |
| 320 | end EulerTransversePacketProvider |