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.PacketActivationInitial |
| 2 | import Euler.PacketActivationSourceData |
| 3 | import Euler.PacketActivationLipschitz |
| 4 | import Euler.PacketGeometryData |
| 5 | |
| 6 | /-! Construction of geometric source data from the actual parent strain, |
| 7 | normal and stationary primary. Only the older homogeneous frame, parent |
| 8 | center remainder, low source bounds and numerical guards are inputs. -/ |
| 9 | |
| 10 | /-! ## From `Euler/PacketActivationScales.lean` |
| 11 | |
| 12 | The text of `Euler/PacketActivationScales.lean`, folded into this file, which was its only importer. -/ |
| 13 | |
| 14 | section |
| 15 | |
| 16 | /-! Exact scale normalization from the actual parent frame and shear. |
| 17 | The physical interval ends at the chosen scaled horizon; no extension |
| 18 | beyond the source time interval is required. -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace EulerPacketMovingFrame |
| 23 | |
| 24 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 25 | EulerPacketNormalizedPrimary EulerPacketCrossProduct |
| 26 | |
| 27 | theorem activation_coupling_match (B : ℝ → Space →L[ℝ] Space) |
| 28 | (m v : ℝ → Space) (t₀ ε : ℝ) : |
| 29 | let a := normalizedCoupling (B t₀) (m t₀) (v t₀) |
| 30 | rescaledFrame B m v t₀ a ε 0 0 1 = a := by |
| 31 | simp [rescaledFrame,physicalTime,frameMatrix,frame,normalizedCoupling] |
| 32 | |
| 33 | theorem activation_tilt_match (B : ℝ → Space →L[ℝ] Space) |
| 34 | (m v : ℝ → Space) (t₀ ε : ℝ) |
| 35 | (ha : normalizedCoupling (B t₀) (m t₀) (v t₀) ≠ 0) |
| 36 | (hβ : 0 ≤ normalizedTilt (B t₀) (m t₀) (v t₀)) : |
| 37 | let a := normalizedCoupling (B t₀) (m t₀) (v t₀) |
| 38 | let σ := Real.sqrt (normalizedTilt (B t₀) (m t₀) (v t₀)) |
| 39 | rescaledFrame B m v t₀ a ε 0 2 1 = a*σ^2 := by |
| 40 | dsimp only |
| 41 | rw [Real.sq_sqrt hβ] |
| 42 | simp only [rescaledFrame,physicalTime,mul_zero,add_zero,frameMatrix,frame, |
| 43 | Matrix.cons_val_two,Matrix.cons_val_one,Matrix.cons_val_zero,normalizedTilt] |
| 44 | exact (mul_div_cancel₀ _ ha).symm |
| 45 | |
| 46 | theorem activation_shear_match (c : ℝ) (m v : ℝ → Space) (t₀ a : ℝ) |
| 47 | (ha : 0 < a) (hh : 0 < primaryShear c m v t₀) : |
| 48 | let ε := Real.sqrt (a/primaryShear c m v t₀) |
| 49 | 0 < ε ∧ rescaledShear c m v t₀ a ε 0 = a/ε^2 := by |
| 50 | dsimp only |
| 51 | have hratio := div_pos ha hh |
| 52 | refine ⟨Real.sqrt_pos.mpr hratio,?_⟩ |
| 53 | rw [Real.sq_sqrt hratio.le] |
| 54 | simp only [rescaledShear,physicalTime,mul_zero,add_zero] |
| 55 | field_simp |
| 56 | |
| 57 | theorem activation_horizon_exact (t₀ T a ε : ℝ) (ha : a ≠ 0) (hε : ε ≠ 0) : |
| 58 | physicalTime t₀ a ε (a*(T-t₀)/ε) = T := by |
| 59 | unfold physicalTime |
| 60 | field_simp |
| 61 | ring |
| 62 | |
| 63 | theorem activation_horizon_maps (t₀ T a ε : ℝ) (ha : 0 < a) (hε : 0 < ε) : |
| 64 | MapsTo (physicalTime t₀ a ε) (Icc 0 (a*(T-t₀)/ε)) (Icc t₀ T) := by |
| 65 | intro s hs |
| 66 | constructor |
| 67 | · change t₀ ≤ t₀+(ε/a)*s |
| 68 | exact le_add_of_nonneg_right (mul_nonneg (div_nonneg hε.le ha.le) hs.1) |
| 69 | · calc |
| 70 | physicalTime t₀ a ε s ≤ physicalTime t₀ a ε (a*(T-t₀)/ε) := by |
| 71 | unfold physicalTime |
| 72 | exact add_le_add le_rfl (mul_le_mul_of_nonneg_left hs.2 (div_nonneg hε.le ha.le)) |
| 73 | _ = T := activation_horizon_exact t₀ T a ε ha.ne' hε.ne' |
| 74 | |
| 75 | end EulerPacketMovingFrame |
| 76 | end |
| 77 | |
| 78 | end |
| 79 | |
| 80 | /-! ## From `Euler/PacketActivationConstructed.lean` |
| 81 | |
| 82 | The text of `Euler/PacketActivationConstructed.lean`, folded into this file, which was its only importer. -/ |
| 83 | |
| 84 | section |
| 85 | |
| 86 | /-! A fully constructed normal and terminal coordinate for a positive |
| 87 | activation time. The initial matching statements concern the actual |
| 88 | source history and its continuation, with no normal-choice premise. -/ |
| 89 | |
| 90 | noncomputable section |
| 91 | |
| 92 | namespace EulerPacketActivationHistory |
| 93 | |
| 94 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 95 | EulerTransversePacketProvider EulerTransverseActivationSelection |
| 96 | EulerTransverseFrameCoordinates EulerPacketMovingFrame EulerPacketNormalizedPrimary |
| 97 | EulerPacketCrossProduct EulerPacketPrimaryFactorization |
| 98 | |
| 99 | theorem activation_cross_ne_zero (m v : Space) (hm : m ≠ 0) (hv : v ≠ 0) |
| 100 | (hmv : ⟪m,v⟫_ℝ=0) : cross (unit m) (unit v) ≠ 0 := by |
| 101 | have h := (frame_orthonormal (unit m) (unit v) |
| 102 | (unit_inner_self hm) (unit_inner_self hv) (unit_inner_zero hmv)).norm_eq_one 2 |
| 103 | change ‖cross (unit m) (unit v)‖=1 at h |
| 104 | intro hz |
| 105 | rw [hz,norm_zero] at h |
| 106 | norm_num at h |
| 107 | |
| 108 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 109 | (D : Data U) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 110 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 111 | |
| 112 | end EulerPacketActivationHistory |
| 113 | end |
| 114 | |
| 115 | end |
| 116 | |
| 117 | noncomputable section |
| 118 | |
| 119 | namespace EulerPacketSourceGeometry |
| 120 | |
| 121 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 122 | EulerTransversePacketProvider EulerPacketMovingFrame EulerPacketNormalizedPrimary |
| 123 | EulerPacketCrossProduct EulerPacketActivationHistory EulerTransverseActivationSelection |
| 124 | EulerPacketPrimaryFactorization EulerPacketRay EulerVolterraConvolution |
| 125 | EulerTransverseSourceCoefficientPath |
| 126 | |
| 127 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 128 | {D : Data U} {τ : ℝ} |
| 129 | |
| 130 | /-- The older frame at the fixed center, together with the actual parent |
| 131 | strain's center remainder. It contains no new ray, new velocity or |
| 132 | amplification assertion. -/ |
| 133 | structure ParentFrame (D : Data U) (τ : ℝ) where |
| 134 | B : ℝ → Space →L[ℝ] Space |
| 135 | B₁ : ℝ → Space →L[ℝ] Space |
| 136 | m : ℝ → Space |
| 137 | v : ℝ → Space |
| 138 | c : ℝ |
| 139 | G : ℝ |
| 140 | error : ℝ |
| 141 | G_lower : 1 ≤ G |
| 142 | error_nonneg : 0 ≤ error |
| 143 | B_derivative : ∀ t ∈ Icc τ D.T, HasDerivWithinAt B (B₁ t) (Icc τ D.T) t |
| 144 | ray_equation : ∀ t ∈ Icc τ D.T, |
| 145 | HasDerivWithinAt m (-(B t).adjoint (m t)) (Icc τ D.T) t |
| 146 | velocity_equation : ∀ t ∈ Icc τ D.T, HasDerivWithinAt v |
| 147 | (-(B t) (v t)+(2*⟪m t,(B t) (v t)⟫_ℝ/‖m t‖^2) • m t) (Icc τ D.T) t |
| 148 | ray_nonzero : ∀ t ∈ Icc τ D.T, m t ≠ 0 |
| 149 | velocity_nonzero : ∀ t ∈ Icc τ D.T, v t ≠ 0 |
| 150 | tangent : ∀ t ∈ Icc τ D.T, ⟪m t,v t⟫_ℝ=0 |
| 151 | B_bound : ∀ t ∈ Icc τ D.T, ‖B t‖ ≤ G |
| 152 | B₁_bound : ∀ t ∈ Icc τ D.T, ‖B₁ t‖ ≤ G^2 |
| 153 | remainder_bound : ∀ t ∈ Icc τ D.T, |
| 154 | ‖D.M.field (D.clamp t) 0-B t- |
| 155 | primaryShear c m v t • rankOne ℝ (unit (v t)) (unit (m t))‖ ≤ error |
| 156 | |
| 157 | namespace ParentFrame |
| 158 | |
| 159 | variable (P : ParentFrame D τ) |
| 160 | |
| 161 | def a : ℝ := normalizedCoupling (P.B τ) (P.m τ) (P.v τ) |
| 162 | def sigma : ℝ := Real.sqrt (normalizedTilt (P.B τ) (P.m τ) (P.v τ)) |
| 163 | def shear : ℝ := primaryShear P.c P.m P.v τ |
| 164 | def epsilon : ℝ := Real.sqrt (P.a/P.shear) |
| 165 | def horizon : ℝ := P.a*(D.T-τ)/P.epsilon |
| 166 | def rayScale (hτ : 0 < τ) (hτT : τ < D.T) : ℝ := |
| 167 | activationRayScale (D.deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 168 | (cross (unit (P.m τ)) (unit (P.v τ))) |
| 169 | def terminalBound (CM CH : ℝ) : ℝ := |
| 170 | 8*(activationConstant CM CH+1)*D.inverseBound/P.shear |
| 171 | |
| 172 | variable [CompleteSpace U] (hτ : 0 < τ) (hτT : τ < D.T) |
| 173 | (H : HistoryData (D.initial τ hτ hτT.le)) |
| 174 | |
| 175 | def neighborCost (CM CH : ℝ) : ℝ := |
| 176 | ‖D.M.derivative.field‖+ |
| 177 | 3*‖D.normal.derivative.field‖/(P.rayScale hτ hτT*P.epsilon)+ |
| 178 | 2*historyLabelDifferenceCost H*P.terminalBound CM CH/P.epsilon |
| 179 | |
| 180 | def totalError (CM CH ρ : ℝ) : ℝ := |
| 181 | P.error+P.neighborCost hτ hτT H CM CH*ρ |
| 182 | |
| 183 | end ParentFrame |
| 184 | |
| 185 | variable [CompleteSpace U] (hτ : 0 < τ) (hτT : τ < D.T) |
| 186 | (P : ParentFrame D τ) (H : HistoryData (D.initial τ hτ hτT.le)) |
| 187 | |
| 188 | /-- Source and scalar guards, all stated before the new primary is |
| 189 | constructed. The neighbor cost is the explicit coefficient expression. -/ |
| 190 | structure Guards where |
| 191 | CM : ℝ |
| 192 | CH : ℝ |
| 193 | ζ : ℝ |
| 194 | radius : ℝ |
| 195 | y : ℝ |
| 196 | δ : ℝ |
| 197 | hchild : ℝ |
| 198 | CM_nonneg : 0 ≤ CM |
| 199 | CH_nonneg : 0 ≤ CH |
| 200 | zeta_nonneg : 0 ≤ ζ |
| 201 | radius_nonneg : 0 ≤ radius |
| 202 | delta_nonneg : 0 ≤ δ |
| 203 | child_nonneg : 0 ≤ hchild |
| 204 | coupling_lower : 1/2 ≤ P.a |
| 205 | shear_pos : 0 < P.shear |
| 206 | sigma_pos : 0 < P.sigma |
| 207 | sigma_small : P.sigma ≤ 1/4 |
| 208 | epsilon_small : P.epsilon ≤ 1 |
| 209 | y_pos : 0 < y |
| 210 | y_small : y ≤ 1/2 |
| 211 | target_le_horizon : y⁻¹/P.sigma ≤ P.horizon |
| 212 | horizon_lower : 1 ≤ P.horizon |
| 213 | short_extension : P.horizon-y⁻¹/P.sigma ≤ 1 |
| 214 | small : 1000000*neighborStabilityConstant* |
| 215 | (16*(P.epsilon*P.horizon*(4*P.G)^2+P.totalError hτ hτT H CM CH radius))*P.horizon^40 ≤ 1 |
| 216 | compression_guard : 60*(P.G+P.totalError hτ hτT H CM CH radius)*(y⁻¹/P.sigma)*P.epsilon < P.a |
| 217 | normal_choice : D.m₀=activationDirection (D.deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 218 | (cross (unit (P.m τ)) (unit (P.v τ))) |
| 219 | history_symmetric : ∀ t, (H.H.field t 0).IsSymmetric |
| 220 | history_layer : 1 ≤ P.shear*τ |
| 221 | history_strain : ∀ t : Icc (0 : ℝ) τ, |
| 222 | ‖(D.initial τ hτ hτT.le).M.field t 0‖ ≤ CM*P.shear |
| 223 | history_hessian : ‖H.coefficients.labelHessian 0‖ ≤ CH*P.shear^2 |
| 224 | activation_small : 16*(activationConstant CM CH+1)*ζ ≤ 1 |
| 225 | activation_error : P.G+P.error ≤ ζ*P.shear |
| 226 | activation_compression : ⟪D.M.field ⟨τ,hτ.le,hτT.le⟩ 0 (unit (P.m τ)),unit (P.m τ)⟫_ℝ < 0 |
| 227 | |
| 228 | namespace Guards |
| 229 | |
| 230 | variable (A : Guards hτ hτT P H) |
| 231 | |
| 232 | omit [CompleteSpace U] in |
| 233 | include A in |
| 234 | theorem a_pos : 0 < P.a := by linarith only [A.coupling_lower] |
| 235 | |
| 236 | omit [CompleteSpace U] in |
| 237 | include A in |
| 238 | theorem epsilon_pos : 0 < P.epsilon := Real.sqrt_pos.mpr (div_pos A.a_pos A.shear_pos) |
| 239 | |
| 240 | omit [CompleteSpace U] in |
| 241 | theorem rayScale_pos : 0 < P.rayScale hτ hτT := by |
| 242 | exact activationRayScale_pos _ (activation_cross_ne_zero _ _ |
| 243 | (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 244 | (P.tangent τ ⟨le_rfl,hτT.le⟩)) |
| 245 | |
| 246 | omit [CompleteSpace U] in |
| 247 | theorem terminalBound_nonneg : 0 ≤ P.terminalBound A.CM A.CH := by |
| 248 | unfold ParentFrame.terminalBound activationConstant |
| 249 | positivity [A.CM_nonneg,A.CH_nonneg,D.inverseBound_pos,A.shear_pos] |
| 250 | |
| 251 | omit [CompleteSpace U] in |
| 252 | theorem neighborCost_nonneg : 0 ≤ P.neighborCost hτ hτT H A.CM A.CH := by |
| 253 | have hc := historyLabelDifferenceCost_nonneg H |
| 254 | have hs := rayScale_pos hτ hτT P |
| 255 | have he := A.epsilon_pos |
| 256 | have ht := A.terminalBound_nonneg |
| 257 | unfold ParentFrame.neighborCost |
| 258 | positivity |
| 259 | |
| 260 | omit [CompleteSpace U] in |
| 261 | theorem totalError_nonneg : 0 ≤ P.totalError hτ hτT H A.CM A.CH A.radius := |
| 262 | add_nonneg P.error_nonneg (mul_nonneg A.neighborCost_nonneg A.radius_nonneg) |
| 263 | |
| 264 | omit [CompleteSpace U] in |
| 265 | theorem activation_perturbation : |
| 266 | ‖D.M.field ⟨τ,hτ.le,hτT.le⟩ 0-P.shear • rankOne ℝ (unit (P.v τ)) (unit (P.m τ))‖ ≤ |
| 267 | A.ζ*P.shear := by |
| 268 | have ht : τ ∈ Icc τ D.T := ⟨le_rfl,hτT.le⟩ |
| 269 | have hr := P.remainder_bound τ ht |
| 270 | have hclamp : D.clamp τ = ⟨τ,hτ.le,hτT.le⟩ := Data.clamp_coe D ⟨τ,hτ.le,hτT.le⟩ |
| 271 | rw [hclamp] at hr |
| 272 | calc |
| 273 | _ = ‖P.B τ+(D.M.field ⟨τ,hτ.le,hτT.le⟩ 0-P.B τ- |
| 274 | P.shear • rankOne ℝ (unit (P.v τ)) (unit (P.m τ)))‖ := by congr 1; module |
| 275 | _ ≤ ‖P.B τ‖+‖D.M.field ⟨τ,hτ.le,hτT.le⟩ 0-P.B τ- |
| 276 | P.shear • rankOne ℝ (unit (P.v τ)) (unit (P.m τ))‖ := norm_add_le _ _ |
| 277 | _ ≤ P.G+P.error := add_le_add (P.B_bound τ ht) hr |
| 278 | _ ≤ A.ζ*P.shear := A.activation_error |
| 279 | |
| 280 | theorem selection : |
| 281 | 0 < P.rayScale hτ hτT ∧ |
| 282 | scaledRay P.m P.v (fun s => D.normal.field (D.clamp s) 0) |
| 283 | (P.rayScale hτ hτT) τ P.a P.epsilon 0 = ![0,0,1] ∧ |
| 284 | ∃ ξ : U, ∃ lam : ℝ, ξ ≠ 0 ∧ 0 ≤ lam ∧ |
| 285 | lam ≤ 8*(activationConstant A.CM A.CH+1)/P.epsilon ∧ |
| 286 | ‖ξ‖ ≤ P.terminalBound A.CM A.CH ∧ |
| 287 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H ξ s 0) τ P.a P.epsilon 0 0 = -lam ∧ |
| 288 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H ξ s 0) τ P.a P.epsilon 0 1 = 1 := by |
| 289 | exact exists_activated_primary τ hτ hτT H P.m P.v |
| 290 | (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 291 | (P.tangent τ ⟨le_rfl,hτT.le⟩) A.normal_choice A.history_symmetric |
| 292 | P.shear A.CM A.CH A.ζ P.a P.epsilon A.shear_pos A.history_layer |
| 293 | A.CM_nonneg A.CH_nonneg A.zeta_nonneg A.epsilon_pos A.history_strain |
| 294 | A.history_hessian A.activation_small A.activation_perturbation A.activation_compression |
| 295 | |
| 296 | def terminal : U := A.selection.2.2.choose |
| 297 | def slope : ℝ := A.selection.2.2.choose_spec.choose |
| 298 | |
| 299 | theorem terminal_properties : A.terminal ≠ 0 ∧ 0 ≤ A.slope ∧ |
| 300 | A.slope ≤ 8*(activationConstant A.CM A.CH+1)/P.epsilon ∧ |
| 301 | ‖A.terminal‖ ≤ P.terminalBound A.CM A.CH ∧ |
| 302 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H A.terminal s 0) |
| 303 | τ P.a P.epsilon 0 0 = -A.slope ∧ |
| 304 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H A.terminal s 0) |
| 305 | τ P.a P.epsilon 0 1 = 1 := A.selection.2.2.choose_spec.choose_spec |
| 306 | |
| 307 | end Guards |
| 308 | end EulerPacketSourceGeometry |