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.ParentPacketHistoryNeighbor |
| 2 | import Euler.ParentPacketHessianSymmetry |
| 3 | import Euler.PacketSourceScaleGuards |
| 4 | |
| 5 | /-! The scalar induction guards apply to the actual parent source data. |
| 6 | History norms and symmetry are derived from the parent fields, and the |
| 7 | neighbor error is the computed, ell-scaled coefficient expression. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketSourceGeometry.ParentFrame |
| 12 | |
| 13 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 14 | EulerPacketNormalizedPrimary EulerPacketMovingFrame EulerTransversePacketProvider |
| 15 | |
| 16 | variable {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 17 | {D : Data U} {τ : ℝ} (P : ParentFrame D τ) |
| 18 | |
| 19 | theorem activation_normal_le (hτ : 0 < τ) (hτT : τ < D.T) : |
| 20 | ⟪D.M.field ⟨τ,hτ.le,hτT.le⟩ 0 (unit (P.m τ)),unit (P.m τ)⟫_ℝ ≤ |
| 21 | ⟪P.B τ (unit (P.m τ)),unit (P.m τ)⟫_ℝ+P.error := by |
| 22 | let t : Icc (0 : ℝ) D.T := ⟨τ,hτ.le,hτT.le⟩ |
| 23 | let E := D.M.field t 0-P.B τ- |
| 24 | P.shear • rankOne ℝ (unit (P.v τ)) (unit (P.m τ)) |
| 25 | have hn : ‖unit (P.m τ)‖=1 := unit_norm (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩) |
| 26 | have ht : ⟪unit (P.v τ),unit (P.m τ)⟫_ℝ=0 := by |
| 27 | rw [real_inner_comm] |
| 28 | exact unit_inner_zero (P.tangent τ ⟨le_rfl,hτT.le⟩) |
| 29 | have hE : ‖E‖ ≤ P.error := by |
| 30 | have h := P.remainder_bound τ ⟨le_rfl,hτT.le⟩ |
| 31 | rw [Data.clamp_coe D t] at h |
| 32 | exact h |
| 33 | have hu : ‖E (unit (P.m τ))‖ ≤ P.error := |
| 34 | (E.le_opNorm _).trans (by simpa only [hn,mul_one] using hE) |
| 35 | have habs : |⟪E (unit (P.m τ)),unit (P.m τ)⟫_ℝ| ≤ ‖E (unit (P.m τ))‖ := by |
| 36 | simpa only [Real.norm_eq_abs,hn,mul_one] using |
| 37 | norm_inner_le_norm (𝕜 := ℝ) (E (unit (P.m τ))) (unit (P.m τ)) |
| 38 | have hi := (le_abs_self ⟪E (unit (P.m τ)),unit (P.m τ)⟫_ℝ).trans (habs.trans hu) |
| 39 | have he : ⟪E (unit (P.m τ)),unit (P.m τ)⟫_ℝ = |
| 40 | ⟪D.M.field t 0 (unit (P.m τ)),unit (P.m τ)⟫_ℝ- |
| 41 | ⟪P.B τ (unit (P.m τ)),unit (P.m τ)⟫_ℝ := by |
| 42 | simp only [E,sub_apply,smul_apply,rankOne_apply,inner_sub_left, |
| 43 | real_inner_smul_left,ht,mul_zero,sub_zero] |
| 44 | rw [he] at hi |
| 45 | linarith only [hi] |
| 46 | |
| 47 | theorem activation_compression_of_previous (hτ : 0 < τ) (hτT : τ < D.T) |
| 48 | (e : ℝ) (he : P.error ≤ e) |
| 49 | (hprevious : ⟪P.B τ (unit (P.m τ)),unit (P.m τ)⟫_ℝ+e < 0) : |
| 50 | ⟪D.M.field ⟨τ,hτ.le,hτT.le⟩ 0 (unit (P.m τ)),unit (P.m τ)⟫_ℝ < 0 := |
| 51 | (P.activation_normal_le hτ hτT).trans_lt ((add_le_add_right he _).trans_lt hprevious) |
| 52 | |
| 53 | end EulerPacketSourceGeometry.ParentFrame |
| 54 | |
| 55 | namespace EulerParentPacketFrames.LabelData |
| 56 | |
| 57 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients |
| 58 | EulerPacketParentLabelBounds EulerGevrey EulerTransverseFrameCoordinates |
| 59 | EulerTransversePacketProvider EulerPacketActivationHistory EulerTimeIntervalRestriction |
| 60 | EulerPacketSourceGeometry EulerPacketMovingFrame EulerPacketNormalizedPrimary |
| 61 | EulerTransverseActivationSelection EulerPacketSourceScaleSequence EulerPacketSourceScaleChoice |
| 62 | EulerPacketSourceScaleActual EulerPacketSourceScaleGuards EulerPacketSourceScales |
| 63 | open scoped BoundedContinuousFunction ContDiff |
| 64 | |
| 65 | variable {G : Parent} (L : LabelData G) |
| 66 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 67 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 68 | (S : Set Space) (hS : IsCompact S) (H : LowBounds G) |
| 69 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < G.T) |
| 70 | |
| 71 | /-- One explicit parent coefficient amplitude controls both the actual |
| 72 | strain and pressure Hessian throughout the history interval. -/ |
| 73 | def historyAmplitude : ℝ := 27*(frameAmplitude L.K)^2*gradientAmplitude L.K |
| 74 | |
| 75 | theorem historyAmplitude_nonneg : 0 ≤ L.historyAmplitude := by |
| 76 | unfold historyAmplitude |
| 77 | positivity [gradientAmplitude_nonneg L.K] |
| 78 | |
| 79 | omit [CompleteSpace U] in |
| 80 | theorem history_strain_norm (t : Icc (0 : ℝ) τ) (x : Space) : |
| 81 | ‖((G.transverseData m hm R S hS).initial τ hτ hτT.le).M.field t x‖ ≤ |
| 82 | L.historyAmplitude := by |
| 83 | change ‖G.strain.field (initialInclusion G.T τ hτT.le t) x‖ ≤ |
| 84 | 27*(frameAmplitude L.K)^2*gradientAmplitude L.K |
| 85 | have h := L.strain_scaled_bound 0 (initialInclusion G.T τ hτT.le t) x |
| 86 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 87 | Nat.cast_one,pow_zero,one_pow,mul_one] using h |
| 88 | |
| 89 | omit [CompleteSpace U] in |
| 90 | theorem history_hessian_norm (x : Space) : |
| 91 | ‖(G.historyOn H m hm R S hS τ hτ hτT).coefficients.labelHessian x‖ ≤ |
| 92 | L.historyAmplitude := by |
| 93 | apply (ContinuousMap.norm_le _ L.historyAmplitude_nonneg).2 |
| 94 | intro t |
| 95 | change ‖G.curvature.field (initialInclusion G.T τ hτT.le t) x‖ ≤ |
| 96 | 27*(frameAmplitude L.K)^2*gradientAmplitude L.K |
| 97 | have h := L.curvature_scaled_bound 0 (initialInclusion G.T τ hτT.le t) x |
| 98 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 99 | Nat.cast_one,pow_zero,one_pow,mul_one] using h |
| 100 | |
| 101 | /-- Apply the manuscript's scalar stage bounds to the literal source |
| 102 | coefficients. The remaining inputs are older-stage center data, the |
| 103 | chosen normal, and scalar comparisons with explicit source costs. -/ |
| 104 | def geometryGuardsOfStage |
| 105 | (P : ParentFrame (G.transverseData m hm R S hS) τ) |
| 106 | (p : Icc (0 : ℝ) G.T → Space → ℝ) (hp : ∀ t, ContDiff ℝ ∞ (p t)) |
| 107 | (hacc : ∀ t x, G.acceleration.field t x = -(gradient (p t) (G.position t x))) |
| 108 | (J D : ℕ) (C c X : ℝ) (a β : ℕ → ℝ) (n : ℕ) (hX : 0 < X) |
| 109 | (CF : ℝ) (hCF : 1 ≤ CF) |
| 110 | (stage : StageGuards J D C c X (neighborStabilityConstant*CF^2) a β n) |
| 111 | (ha : 1/2 ≤ a n) (ha_match : P.a=a n) |
| 112 | (hshear : P.shear=previousShear J X n) |
| 113 | (hsigma : P.sigma=Real.sqrt (β n)) |
| 114 | (htime : P.horizon=EulerPacketSourceScaleGuards.horizon J X (a n) (β n) n) |
| 115 | (hG : P.G ≤ CF*(1+olderShear J X n)) |
| 116 | (herr : P.error ≤ priorError J D X n) |
| 117 | (CM CH ζ ρ δ hchild : ℝ) |
| 118 | (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) (hζ : 0 ≤ ζ) (hρ : 0 ≤ ρ) |
| 119 | (hδ : 0 ≤ δ) (hhchild : 0 ≤ hchild) |
| 120 | (hneighbor : L.neighborScaleCost m hm R S hS H τ hτ hτT P CM CH*G.ell*ρ ≤ |
| 121 | neighborError J D X c n) |
| 122 | (hnormal : m=activationDirection |
| 123 | ((G.transverseData m hm R S hS).deformationEquiv ⟨τ,hτ.le,hτT.le⟩ 0) |
| 124 | (EulerPacketCrossProduct.cross (unit (P.m τ)) (unit (P.v τ)))) |
| 125 | (hlayer : 1 ≤ previousShear J X n*τ) |
| 126 | (hstrain : ‖EulerTransverseSourceCoefficientPath.pathEvaluation 0 |
| 127 | ((G.transverseData m hm R S hS).initial τ hτ hτT.le).M.field‖ ≤ CM*previousShear J X n) |
| 128 | (hhessian : ‖(G.historyOn H m hm R S hS τ hτ hτT).coefficients.labelHessian 0‖ ≤ |
| 129 | CH*(previousShear J X n)^2) |
| 130 | (hactivation : 16*(activationConstant CM CH+1)*ζ ≤ 1) |
| 131 | (hactivationError : CF*(1+olderShear J X n)+priorError J D X n ≤ ζ*previousShear J X n) |
| 132 | (hpreviousCompression : |
| 133 | ⟪P.B τ (unit (P.m τ)),unit (P.m τ)⟫_ℝ+priorError J D X n < 0) : |
| 134 | Guards hτ hτT P (G.historyOn H m hm R S hS τ hτ hτT) := by |
| 135 | have hshearPos : 0 < P.shear := by |
| 136 | simpa only [hshear] using previousShear_pos J hX n |
| 137 | have hepsilon : P.epsilon=epsilon J X (a n) n := by |
| 138 | simp only [ParentFrame.epsilon,epsilon,ha_match,hshear] |
| 139 | have hepsPos : 0 < P.epsilon := by simpa only [hepsilon] using stage.epsilon_pos |
| 140 | have hsigmaPos : 0 < P.sigma := by simpa only [hsigma] using stage.sigma_pos |
| 141 | have htarget : ((scaleSequence J X (n+1))⁻¹)⁻¹/P.sigma=targetTime J X (β n) n := by |
| 142 | simp only [inv_inv,hsigma,targetTime] |
| 143 | have htarget_ge : 1 ≤ targetTime J X (β n) n := by |
| 144 | have hfirst : 1 ≤ 1/Real.sqrt (β n) := |
| 145 | (le_div_iff₀ stage.sigma_pos).2 (by nlinarith only [stage.sigma_small]) |
| 146 | exact hfirst.trans stage.target_from_sigma |
| 147 | have htarget_le : targetTime J X (β n) n ≤ P.horizon := by |
| 148 | rw [htime] |
| 149 | exact stage.target_le_horizon |
| 150 | have hhor : 1 ≤ P.horizon := htarget_ge.trans htarget_le |
| 151 | have hhorθ : P.horizon ≤ sourceTheta J C (scaleSequence J X) n := by |
| 152 | rw [htime] |
| 153 | exact stage.horizon_le_Theta |
| 154 | have hθ : 1 ≤ sourceTheta J C (scaleSequence J X) n := hhor.trans hhorθ |
| 155 | have hshort : P.horizon-targetTime J X (β n) n ≤ 1 := by |
| 156 | rw [htime] |
| 157 | apply stage.extra_time.trans |
| 158 | exact (div_le_iff₀ (pow_pos (zero_lt_one.trans_le hθ) 60)).2 |
| 159 | (by simpa only [one_mul] using one_le_pow₀ hθ (n := 60)) |
| 160 | have herror := L.source_totalError_bound m hm R S hS H τ hτ hτT P CM CH ρ |
| 161 | (priorError J D X n) (neighborError J D X c n) hCM hCH hshearPos hepsPos hρ herr hneighbor |
| 162 | have hray := Guards.rayScale_pos hτ hτT P |
| 163 | have hterminal : 0 ≤ P.terminalBound CM CH := by |
| 164 | unfold ParentFrame.terminalBound activationConstant |
| 165 | positivity [(G.transverseData m hm R S hS).inverseBound_pos] |
| 166 | have hhistory := historyLabelDifferenceCost_nonneg (G.historyOn H m hm R S hS τ hτ hτT) |
| 167 | have hcost : 0 ≤ P.neighborCost hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH := by |
| 168 | unfold ParentFrame.neighborCost |
| 169 | positivity |
| 170 | have herror0 : 0 ≤ P.totalError hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ρ := |
| 171 | add_nonneg P.error_nonneg (mul_nonneg hcost hρ) |
| 172 | have hcoef : |
| 173 | 16*(P.epsilon*P.horizon*(4*P.G)^2+ |
| 174 | P.totalError hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ρ) ≤ |
| 175 | CF^2*geometryError J D C c X a n := by |
| 176 | have hmain : P.epsilon*P.horizon*(4*P.G)^2 ≤ |
| 177 | CF^2*(epsilon J X (a n) n*sourceTheta J C (scaleSequence J X) n* |
| 178 | (4*(1+olderShear J X n))^2) := by |
| 179 | rw [hepsilon] |
| 180 | calc |
| 181 | _ ≤ epsilon J X (a n) n*sourceTheta J C (scaleSequence J X) n* |
| 182 | (4*(CF*(1+olderShear J X n)))^2 := |
| 183 | mul_le_mul (mul_le_mul_of_nonneg_left hhorθ stage.epsilon_pos.le) |
| 184 | (pow_le_pow_left₀ (by positivity [P.G_lower]) |
| 185 | (mul_le_mul_of_nonneg_left hG (by norm_num : (0:ℝ) ≤ 4)) 2) |
| 186 | (sq_nonneg _) (mul_nonneg stage.epsilon_pos.le (zero_le_one.trans hθ)) |
| 187 | _ = _ := by ring |
| 188 | have hE := herror.trans (le_mul_of_one_le_left (herror0.trans herror) |
| 189 | (one_le_pow₀ hCF : 1 ≤ CF^2)) |
| 190 | calc |
| 191 | _ ≤ 16*(CF^2*(epsilon J X (a n) n*sourceTheta J C (scaleSequence J X) n* |
| 192 | (4*(1+olderShear J X n))^2)+CF^2*(priorError J D X n+neighborError J D X c n)) := |
| 193 | mul_le_mul_of_nonneg_left (add_le_add hmain hE) (by norm_num) |
| 194 | _ = _ := by unfold geometryError; ring |
| 195 | have hcoef0 : 0 ≤ 16*(P.epsilon*P.horizon*(4*P.G)^2+ |
| 196 | P.totalError hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ρ) := by |
| 197 | positivity |
| 198 | have hN1 : 1 ≤ 1000000*neighborStabilityConstant := by |
| 199 | have he : 1 ≤ Real.exp 6 := Real.one_le_exp_iff.mpr (by norm_num) |
| 200 | unfold neighborStabilityConstant |
| 201 | nlinarith only [he] |
| 202 | have hN : 0 ≤ 1000000*neighborStabilityConstant := zero_le_one.trans hN1 |
| 203 | have hsmall : |
| 204 | 1000000*neighborStabilityConstant* |
| 205 | (16*(P.epsilon*P.horizon*(4*P.G)^2+ |
| 206 | P.totalError hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ρ))*P.horizon^40 ≤ 1 := by |
| 207 | calc |
| 208 | _ ≤ 1000000*neighborStabilityConstant*(CF^2*geometryError J D C c X a n)* |
| 209 | sourceTheta J C (scaleSequence J X) n^40 := |
| 210 | mul_le_mul (mul_le_mul_of_nonneg_left hcoef hN) |
| 211 | (pow_le_pow_left₀ (zero_le_one.trans hhor) hhorθ 40) |
| 212 | (pow_nonneg (zero_le_one.trans hhor) 40) (mul_nonneg hN (hcoef0.trans hcoef)) |
| 213 | _ = 1000000*(neighborStabilityConstant*CF^2)*geometryError J D C c X a n* |
| 214 | sourceTheta J C (scaleSequence J X) n^40 := by ring |
| 215 | _ ≤ 1 := stage.geometry_small |
| 216 | have hplain : 16*(P.epsilon*P.horizon*(4*P.G)^2+ |
| 217 | P.totalError hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ρ) ≤ 1 := by |
| 218 | have hh : 1 ≤ 1000000*neighborStabilityConstant*P.horizon^40 := |
| 219 | one_le_mul_of_one_le_of_one_le hN1 (one_le_pow₀ hhor) |
| 220 | have hb := mul_le_mul_of_nonneg_right hh hcoef0 |
| 221 | nlinarith only [hb,hsmall] |
| 222 | have hcompress : |
| 223 | 60*(P.G+P.totalError hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ρ)* |
| 224 | (targetTime J X (β n) n)*P.epsilon < P.a := |
| 225 | compression_of_error_small (by simpa only [ha_match] using ha) hepsPos.le |
| 226 | (zero_le_one.trans hhor) htarget_le P.G_lower herror0 hplain |
| 227 | refine { |
| 228 | CM := CM, CH := CH, ζ := ζ, radius := ρ, y := (scaleSequence J X (n+1))⁻¹, |
| 229 | δ := δ, hchild := hchild, |
| 230 | CM_nonneg := hCM, CH_nonneg := hCH, zeta_nonneg := hζ, radius_nonneg := hρ, |
| 231 | delta_nonneg := hδ, child_nonneg := hhchild, |
| 232 | coupling_lower := by simpa only [ha_match] using ha, |
| 233 | shear_pos := hshearPos, |
| 234 | sigma_pos := hsigmaPos, |
| 235 | sigma_small := by simpa only [hsigma] using stage.sigma_small, |
| 236 | epsilon_small := by simpa only [hepsilon] using stage.epsilon_small, |
| 237 | y_pos := stage.reciprocal_pos, |
| 238 | y_small := stage.reciprocal_small, |
| 239 | target_le_horizon := by simpa only [htarget] using htarget_le, |
| 240 | horizon_lower := hhor, |
| 241 | short_extension := by simpa only [htarget] using hshort, |
| 242 | small := hsmall, |
| 243 | compression_guard := by simpa only [htarget] using hcompress, |
| 244 | normal_choice := hnormal, |
| 245 | history_symmetric := fun t => G.initial_history_symmetric p hp hacc m hm R S hS H |
| 246 | τ hτ hτT.le t 0, |
| 247 | history_layer := by simpa only [hshear] using hlayer, |
| 248 | history_strain := fun t => ((EulerTransverseSourceCoefficientPath.pathEvaluation 0 |
| 249 | ((G.transverseData m hm R S hS).initial τ hτ hτT.le).M.field).norm_coe_le_norm t).trans |
| 250 | (by simpa only [hshear] using hstrain), |
| 251 | history_hessian := by simpa only [hshear] using hhessian, |
| 252 | activation_small := hactivation, |
| 253 | activation_error := (add_le_add hG herr).trans (by simpa only [hshear] using hactivationError), |
| 254 | activation_compression := P.activation_compression_of_previous hτ hτT |
| 255 | (priorError J D X n) herr hpreviousCompression } |
| 256 | |
| 257 | end EulerParentPacketFrames.LabelData |