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.PacketActivationConstructed |
| 2 | import Euler.PacketActivationLipschitz |
| 3 | import Euler.PacketActivationScales |
| 4 | |
| 5 | /-! Construction of geometric source data from the actual parent strain, |
| 6 | normal and stationary primary. Only the older homogeneous frame, parent |
| 7 | center remainder, low source bounds and numerical guards are inputs. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketSourceGeometry |
| 12 | |
| 13 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 14 | EulerTransversePacketProvider EulerPacketMovingFrame EulerPacketNormalizedPrimary |
| 15 | EulerPacketCrossProduct EulerPacketActivationHistory EulerTransverseActivationSelection |
| 16 | EulerPacketPrimaryFactorization EulerPacketRay EulerVolterraConvolution |
| 17 | EulerTransverseSourceCoefficientPath |
| 18 | |
| 19 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 20 | {D : Data U} {τ : ℝ} |
| 21 | |
| 22 | /-- The older frame at the fixed center, together with the actual parent |
| 23 | strain's center remainder. It contains no new ray, new velocity or |
| 24 | amplification assertion. -/ |
| 25 | structure ParentFrame (D : Data U) (τ : ℝ) where |
| 26 | B : ℝ → Space →L[ℝ] Space |
| 27 | B₁ : ℝ → Space →L[ℝ] Space |
| 28 | m : ℝ → Space |
| 29 | v : ℝ → Space |
| 30 | c : ℝ |
| 31 | G : ℝ |
| 32 | error : ℝ |
| 33 | G_lower : 1 ≤ G |
| 34 | error_nonneg : 0 ≤ error |
| 35 | B_derivative : ∀ t ∈ Icc τ D.T, HasDerivWithinAt B (B₁ t) (Icc τ D.T) t |
| 36 | ray_equation : ∀ t ∈ Icc τ D.T, |
| 37 | HasDerivWithinAt m (-(B t).adjoint (m t)) (Icc τ D.T) t |
| 38 | velocity_equation : ∀ t ∈ Icc τ D.T, HasDerivWithinAt v |
| 39 | (-(B t) (v t)+(2*⟪m t,(B t) (v t)⟫_ℝ/‖m t‖^2) • m t) (Icc τ D.T) t |
| 40 | ray_nonzero : ∀ t ∈ Icc τ D.T, m t ≠ 0 |
| 41 | velocity_nonzero : ∀ t ∈ Icc τ D.T, v t ≠ 0 |
| 42 | tangent : ∀ t ∈ Icc τ D.T, ⟪m t,v t⟫_ℝ=0 |
| 43 | B_bound : ∀ t ∈ Icc τ D.T, ‖B t‖ ≤ G |
| 44 | B₁_bound : ∀ t ∈ Icc τ D.T, ‖B₁ t‖ ≤ G^2 |
| 45 | remainder_bound : ∀ t ∈ Icc τ D.T, |
| 46 | ‖D.M.field (D.clamp t) 0-B t- |
| 47 | primaryShear c m v t • rankOne ℝ (unit (v t)) (unit (m t))‖ ≤ error |
| 48 | |
| 49 | namespace ParentFrame |
| 50 | |
| 51 | variable (P : ParentFrame D τ) |
| 52 | |
| 53 | def a : ℝ := normalizedCoupling (P.B τ) (P.m τ) (P.v τ) |
| 54 | def sigma : ℝ := Real.sqrt (normalizedTilt (P.B τ) (P.m τ) (P.v τ)) |
| 55 | def shear : ℝ := primaryShear P.c P.m P.v τ |
| 56 | def epsilon : ℝ := Real.sqrt (P.a/P.shear) |
| 57 | def horizon : ℝ := P.a*(D.T-τ)/P.epsilon |
| 58 | def rayScale (hτ : 0 < τ) (hτT : τ < D.T) : ℝ := |
| 59 | activationRayScale (D.deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 60 | (cross (unit (P.m τ)) (unit (P.v τ))) |
| 61 | def terminalBound (CM CH : ℝ) : ℝ := |
| 62 | 8*(activationConstant CM CH+1)*D.inverseBound/P.shear |
| 63 | |
| 64 | variable [CompleteSpace U] (hτ : 0 < τ) (hτT : τ < D.T) |
| 65 | (H : HistoryData (D.initial τ hτ hτT.le)) |
| 66 | |
| 67 | def neighborCost (CM CH : ℝ) : ℝ := |
| 68 | ‖D.M.derivative.field‖+ |
| 69 | 3*‖D.normal.derivative.field‖/(P.rayScale hτ hτT*P.epsilon)+ |
| 70 | 2*historyLabelDifferenceCost H*P.terminalBound CM CH/P.epsilon |
| 71 | |
| 72 | def totalError (CM CH ρ : ℝ) : ℝ := |
| 73 | P.error+P.neighborCost hτ hτT H CM CH*ρ |
| 74 | |
| 75 | end ParentFrame |
| 76 | |
| 77 | variable [CompleteSpace U] (hτ : 0 < τ) (hτT : τ < D.T) |
| 78 | (P : ParentFrame D τ) (H : HistoryData (D.initial τ hτ hτT.le)) |
| 79 | |
| 80 | /-- Source and scalar guards, all stated before the new primary is |
| 81 | constructed. The neighbor cost is the explicit coefficient expression. -/ |
| 82 | structure Guards where |
| 83 | CM : ℝ |
| 84 | CH : ℝ |
| 85 | ζ : ℝ |
| 86 | radius : ℝ |
| 87 | y : ℝ |
| 88 | δ : ℝ |
| 89 | hchild : ℝ |
| 90 | CM_nonneg : 0 ≤ CM |
| 91 | CH_nonneg : 0 ≤ CH |
| 92 | zeta_nonneg : 0 ≤ ζ |
| 93 | radius_nonneg : 0 ≤ radius |
| 94 | delta_nonneg : 0 ≤ δ |
| 95 | child_nonneg : 0 ≤ hchild |
| 96 | coupling_lower : 1/2 ≤ P.a |
| 97 | shear_pos : 0 < P.shear |
| 98 | sigma_pos : 0 < P.sigma |
| 99 | sigma_small : P.sigma ≤ 1/4 |
| 100 | epsilon_small : P.epsilon ≤ 1 |
| 101 | y_pos : 0 < y |
| 102 | y_small : y ≤ 1/2 |
| 103 | target_le_horizon : y⁻¹/P.sigma ≤ P.horizon |
| 104 | horizon_lower : 1 ≤ P.horizon |
| 105 | short_extension : P.horizon-y⁻¹/P.sigma ≤ 1 |
| 106 | small : 1000000*neighborStabilityConstant* |
| 107 | (16*(P.epsilon*P.horizon*(4*P.G)^2+P.totalError hτ hτT H CM CH radius))*P.horizon^40 ≤ 1 |
| 108 | compression_guard : 60*(P.G+P.totalError hτ hτT H CM CH radius)*(y⁻¹/P.sigma)*P.epsilon < P.a |
| 109 | normal_choice : D.m₀=activationDirection (D.deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 110 | (cross (unit (P.m τ)) (unit (P.v τ))) |
| 111 | history_symmetric : ∀ t, (H.H.field t 0).IsSymmetric |
| 112 | history_layer : 1 ≤ P.shear*τ |
| 113 | history_strain : ∀ t : Icc (0 : ℝ) τ, |
| 114 | ‖(D.initial τ hτ hτT.le).M.field t 0‖ ≤ CM*P.shear |
| 115 | history_hessian : ‖H.coefficients.labelHessian 0‖ ≤ CH*P.shear^2 |
| 116 | activation_small : 16*(activationConstant CM CH+1)*ζ ≤ 1 |
| 117 | activation_error : P.G+P.error ≤ ζ*P.shear |
| 118 | activation_compression : ⟪D.M.field ⟨τ,hτ.le,hτT.le⟩ 0 (unit (P.m τ)),unit (P.m τ)⟫_ℝ < 0 |
| 119 | |
| 120 | namespace Guards |
| 121 | |
| 122 | variable (A : Guards hτ hτT P H) |
| 123 | |
| 124 | omit [CompleteSpace U] in |
| 125 | include A in |
| 126 | theorem a_pos : 0 < P.a := by linarith only [A.coupling_lower] |
| 127 | |
| 128 | omit [CompleteSpace U] in |
| 129 | include A in |
| 130 | theorem epsilon_pos : 0 < P.epsilon := Real.sqrt_pos.mpr (div_pos A.a_pos A.shear_pos) |
| 131 | |
| 132 | omit [CompleteSpace U] in |
| 133 | theorem rayScale_pos : 0 < P.rayScale hτ hτT := by |
| 134 | exact activationRayScale_pos _ (activation_cross_ne_zero _ _ |
| 135 | (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 136 | (P.tangent τ ⟨le_rfl,hτT.le⟩)) |
| 137 | |
| 138 | omit [CompleteSpace U] in |
| 139 | theorem terminalBound_nonneg : 0 ≤ P.terminalBound A.CM A.CH := by |
| 140 | unfold ParentFrame.terminalBound activationConstant |
| 141 | positivity [A.CM_nonneg,A.CH_nonneg,D.inverseBound_pos,A.shear_pos] |
| 142 | |
| 143 | omit [CompleteSpace U] in |
| 144 | theorem neighborCost_nonneg : 0 ≤ P.neighborCost hτ hτT H A.CM A.CH := by |
| 145 | have hc := historyLabelDifferenceCost_nonneg H |
| 146 | have hs := rayScale_pos hτ hτT P |
| 147 | have he := A.epsilon_pos |
| 148 | have ht := A.terminalBound_nonneg |
| 149 | unfold ParentFrame.neighborCost |
| 150 | positivity |
| 151 | |
| 152 | omit [CompleteSpace U] in |
| 153 | theorem totalError_nonneg : 0 ≤ P.totalError hτ hτT H A.CM A.CH A.radius := |
| 154 | add_nonneg P.error_nonneg (mul_nonneg A.neighborCost_nonneg A.radius_nonneg) |
| 155 | |
| 156 | omit [CompleteSpace U] in |
| 157 | theorem activation_perturbation : |
| 158 | ‖D.M.field ⟨τ,hτ.le,hτT.le⟩ 0-P.shear • rankOne ℝ (unit (P.v τ)) (unit (P.m τ))‖ ≤ |
| 159 | A.ζ*P.shear := by |
| 160 | have ht : τ ∈ Icc τ D.T := ⟨le_rfl,hτT.le⟩ |
| 161 | have hr := P.remainder_bound τ ht |
| 162 | have hclamp : D.clamp τ = ⟨τ,hτ.le,hτT.le⟩ := Data.clamp_coe D ⟨τ,hτ.le,hτT.le⟩ |
| 163 | rw [hclamp] at hr |
| 164 | calc |
| 165 | _ = ‖P.B τ+(D.M.field ⟨τ,hτ.le,hτT.le⟩ 0-P.B τ- |
| 166 | P.shear • rankOne ℝ (unit (P.v τ)) (unit (P.m τ)))‖ := by congr 1; module |
| 167 | _ ≤ ‖P.B τ‖+‖D.M.field ⟨τ,hτ.le,hτT.le⟩ 0-P.B τ- |
| 168 | P.shear • rankOne ℝ (unit (P.v τ)) (unit (P.m τ))‖ := norm_add_le _ _ |
| 169 | _ ≤ P.G+P.error := add_le_add (P.B_bound τ ht) hr |
| 170 | _ ≤ A.ζ*P.shear := A.activation_error |
| 171 | |
| 172 | theorem selection : |
| 173 | 0 < P.rayScale hτ hτT ∧ |
| 174 | scaledRay P.m P.v (fun s => D.normal.field (D.clamp s) 0) |
| 175 | (P.rayScale hτ hτT) τ P.a P.epsilon 0 = ![0,0,1] ∧ |
| 176 | ∃ ξ : U, ∃ lam : ℝ, ξ ≠ 0 ∧ 0 ≤ lam ∧ |
| 177 | lam ≤ 8*(activationConstant A.CM A.CH+1)/P.epsilon ∧ |
| 178 | ‖ξ‖ ≤ P.terminalBound A.CM A.CH ∧ |
| 179 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H ξ s 0) τ P.a P.epsilon 0 0 = -lam ∧ |
| 180 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H ξ s 0) τ P.a P.epsilon 0 1 = 1 := by |
| 181 | exact exists_activated_primary τ hτ hτT H P.m P.v |
| 182 | (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 183 | (P.tangent τ ⟨le_rfl,hτT.le⟩) A.normal_choice A.history_symmetric |
| 184 | P.shear A.CM A.CH A.ζ P.a P.epsilon A.shear_pos A.history_layer |
| 185 | A.CM_nonneg A.CH_nonneg A.zeta_nonneg A.epsilon_pos A.history_strain |
| 186 | A.history_hessian A.activation_small A.activation_perturbation A.activation_compression |
| 187 | |
| 188 | def terminal : U := A.selection.2.2.choose |
| 189 | def slope : ℝ := A.selection.2.2.choose_spec.choose |
| 190 | |
| 191 | theorem terminal_properties : A.terminal ≠ 0 ∧ 0 ≤ A.slope ∧ |
| 192 | A.slope ≤ 8*(activationConstant A.CM A.CH+1)/P.epsilon ∧ |
| 193 | ‖A.terminal‖ ≤ P.terminalBound A.CM A.CH ∧ |
| 194 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H A.terminal s 0) |
| 195 | τ P.a P.epsilon 0 0 = -A.slope ∧ |
| 196 | scaledVelocity P.m P.v (fun s => uncutVelocity τ hτ hτT H A.terminal s 0) |
| 197 | τ P.a P.epsilon 0 1 = 1 := A.selection.2.2.choose_spec.choose_spec |
| 198 | |
| 199 | end Guards |
| 200 | end EulerPacketSourceGeometry |