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.ParentPacketHistoryPolynomial |
| 2 | import Euler.PacketGeometryLowBounds |
| 3 | import Euler.PacketForwardGeometryLowBounds |
| 4 | import Euler.PacketGeometryProfileEnvelope |
| 5 | |
| 6 | /-! The actual history contribution to the early-time size ratio is |
| 7 | polynomial in the parent labels and reciprocal history length. The good |
| 8 | interval keeps its absolute size constant. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerTransverseHistoryBounds |
| 13 | |
| 14 | open EulerTimeH1GeneratorBounds EulerTransverseEndpointBounds EulerTransverseGeneratorDifference |
| 15 | EulerTransverseEndpointDifference |
| 16 | |
| 17 | theorem historyCost_le_differenceCost (T c q q1 d a r x y z : ℝ) |
| 18 | (hT : 0 ≤ T) (hc : 0 ≤ c) (hq : 0 ≤ q) (hq1 : 0 ≤ q1) |
| 19 | (hd : 0 ≤ d) (ha : 0 ≤ a) (hr : 0 ≤ r) |
| 20 | (hx : q ≤ x) (hy : 0 ≤ y) (hz : 0 ≤ z) : |
| 21 | historyCost T c q q1 d a r ≤ historyDifferenceCost T c q q1 d a r x y z := by |
| 22 | have hx0 := hq.trans hx |
| 23 | have ht : 0 ≤ traceCost T (2*c⁻¹*q*q1) := by unfold traceCost; positivity |
| 24 | have hs : 0 ≤ slopeCost T d a r := by unfold slopeCost affineCost; positivity |
| 25 | have hg : 0 ≤ generatorDifferenceCost c q q1 x y := by unfold generatorDifferenceCost; positivity |
| 26 | have hsd : 0 ≤ slopeDifferenceCost T d a r (T*y+x) (T^2*z) := by |
| 27 | unfold slopeDifferenceCost endpointDifferenceCost affineCost |
| 28 | positivity |
| 29 | unfold historyCost historyDifferenceCost |
| 30 | apply le_trans _ (le_add_of_nonneg_right (by positivity)) |
| 31 | exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hx ht) hs |
| 32 | |
| 33 | end EulerTransverseHistoryBounds |
| 34 | |
| 35 | namespace EulerParentPacketFrames.LabelData |
| 36 | |
| 37 | open Set EulerSmoothLimit EulerMeanCoefficients EulerPacketParentLabelBounds EulerGevrey |
| 38 | EulerTimeIntervalRestriction EulerTransversePacketProvider EulerPacketActivationHistory |
| 39 | EulerTransverseHistoryBounds EulerParentHistoryCost |
| 40 | |
| 41 | variable {G : Parent} (L : LabelData G) |
| 42 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 43 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] EulerTransverseFrameCoordinates.referencePlane m) |
| 44 | (S : Set Space) (hS : IsCompact S) (H : LowBounds G) |
| 45 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < G.T) |
| 46 | |
| 47 | omit [CompleteSpace U] in |
| 48 | theorem initial_history_size_le_difference : |
| 49 | historyLabelSizeCost (G.historyOn H m hm R S hS τ hτ hτT) ≤ |
| 50 | L.initialHistoryDifferenceScaleCost m hm R S hS H τ hτ hτT := by |
| 51 | let D := (G.transverseData m hm R S hS).initial τ hτ hτT.le |
| 52 | have hF : ∀ t x, ‖D.F.field t x‖ ≤ frameAmplitude L.K := by |
| 53 | intro t x |
| 54 | change ‖G.frame.field (initialInclusion G.T τ hτT.le t) x‖ ≤ frameAmplitude L.K |
| 55 | have h := L.frame_scaled_bound 0 (initialInclusion G.T τ hτT.le t) x |
| 56 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 57 | Nat.cast_one,pow_zero,mul_one,one_pow] using h |
| 58 | have hq := D.frame_norm_le (frameAmplitude L.K) (frameAmplitude_nonneg L.K) hF |
| 59 | have hR : 1 ≤ coefficientRadius L.K := |
| 60 | (by norm_num : (1 : ℝ) ≤ 1024).trans (le_max_left _ _) |
| 61 | have hx : ‖D.frame.field‖ ≤ L.frameDifferenceCost := by |
| 62 | apply hq.trans |
| 63 | unfold frameDifferenceCost |
| 64 | nlinarith only [mul_le_mul_of_nonneg_left hR (frameAmplitude_nonneg L.K)] |
| 65 | apply historyCost_le_differenceCost τ D.frameLower _ _ _ _ _ _ _ _ hτ.le D.frameLower_pos.le |
| 66 | (norm_nonneg _) (norm_nonneg _) (by positivity) (by positivity) |
| 67 | (historyTransportCost_nonneg (D := D)) hx |
| 68 | · unfold firstDifferenceCost |
| 69 | positivity [gradientAmplitude_nonneg L.K,coefficientRadius_nonneg L.K] |
| 70 | · unfold strainDifferenceCost |
| 71 | positivity [gradientAmplitude_nonneg L.K,coefficientRadius_nonneg L.K] |
| 72 | |
| 73 | omit [CompleteSpace U] in |
| 74 | theorem initial_history_size_polynomial (Ti : ℝ) (hτ1 : τ ≤ 1) (hTi : τ⁻¹ ≤ Ti) : |
| 75 | historyLabelSizeCost (G.historyOn H m hm R S hS τ hτ hτT) ≤ |
| 76 | labelHistoryConstant*(1+L.K+Ti)^labelHistoryPower := |
| 77 | (L.initial_history_size_le_difference m hm R S hS H τ hτ hτT).trans |
| 78 | ((L.initialHistoryDifferenceScaleCost_bound m hm R S hS H τ hτ hτT Ti hτ1 hTi).trans |
| 79 | (labelHistoryEnvelope_power L.K Ti (zero_le_one.trans L.K_one) ((inv_pos.mpr hτ).le.trans hTi))) |
| 80 | |
| 81 | end EulerParentPacketFrames.LabelData |
| 82 | |
| 83 | namespace EulerParentBadRatio |
| 84 | |
| 85 | open EulerPacketParentLabelBounds EulerParentHistoryCost EulerPolynomialCost EulerPacketGeometryLowBounds |
| 86 | |
| 87 | def formula (F Hist Hi CM CH : ℝ) : ℝ := |
| 88 | 8*(5+64*CM^2+2*CH)*(1+3*F^2)^2*(1+F)*Hist*Hi |
| 89 | |
| 90 | def envelope (K Ti Hi CM CH : ℝ) : ℝ := |
| 91 | formula (frameAmplitude K) (labelHistoryConstant*(1+K+Ti)^labelHistoryPower) Hi CM CH |
| 92 | |
| 93 | def polynomial : Polynomial ℝ := |
| 94 | let X : Polynomial ℝ := Polynomial.X |
| 95 | let F := 1+Polynomial.C embeddingCost*X^2 |
| 96 | 8*(5+64*X^2+2*X)*(1+3*F^2)^2*(1+F)*(Polynomial.C labelHistoryConstant*X^labelHistoryPower)*X |
| 97 | |
| 98 | def constant : ℝ := coefficientCost polynomial |
| 99 | def degree : ℕ := polynomial.natDegree |
| 100 | |
| 101 | theorem constant_pos : 0 < constant := coefficientCost_pos _ |
| 102 | |
| 103 | theorem polynomial_eval (X : ℝ) : |
| 104 | polynomial.eval X=formula (frameAmplitude X) (labelHistoryConstant*X^labelHistoryPower) X X X := by |
| 105 | simp only [polynomial,formula,frameAmplitude,gradientAmplitude,Polynomial.eval_add,Polynomial.eval_mul, |
| 106 | Polynomial.eval_pow,Polynomial.eval_ofNat,Polynomial.eval_one,Polynomial.eval_C,Polynomial.eval_X] |
| 107 | |
| 108 | theorem envelope_power (K Ti Hi CM CH : ℝ) (hK : 0 ≤ K) (hTi : 0 ≤ Ti) |
| 109 | (hHi : 0 ≤ Hi) (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) : |
| 110 | envelope K Ti Hi CM CH ≤ constant*(1+K+Ti+Hi+CM+CH)^degree := by |
| 111 | let X := 1+K+Ti+Hi+CM+CH |
| 112 | have hX : 1 ≤ X := by dsimp [X]; linarith |
| 113 | have hKX : K ≤ X := by dsimp [X]; linarith |
| 114 | have hbase : 1+K+Ti ≤ X := by dsimp [X]; linarith |
| 115 | have hHiX : Hi ≤ X := by dsimp [X]; linarith |
| 116 | have hCMX : CM ≤ X := by dsimp [X]; linarith |
| 117 | have hCHX : CH ≤ X := by dsimp [X]; linarith |
| 118 | have hemb := embeddingCost_nonneg |
| 119 | have hhistory := labelHistoryConstant_pos |
| 120 | have hF : frameAmplitude K ≤ frameAmplitude X := by |
| 121 | unfold frameAmplitude gradientAmplitude |
| 122 | gcongr |
| 123 | have hf0 := frameAmplitude_nonneg K |
| 124 | have hX0 := zero_le_one.trans hX |
| 125 | have hHist : labelHistoryConstant*(1+K+Ti)^labelHistoryPower ≤ labelHistoryConstant*X^labelHistoryPower := by gcongr |
| 126 | have hpoly : envelope K Ti Hi CM CH ≤ polynomial.eval X := by |
| 127 | rw [polynomial_eval] |
| 128 | unfold envelope formula |
| 129 | gcongr |
| 130 | all_goals positivity [frameAmplitude_nonneg X] |
| 131 | exact hpoly.trans ((le_abs_self _).trans (eval_bound polynomial X hX)) |
| 132 | |
| 133 | def badConstant : ℝ := cutoffBound*(8232*Real.exp 9+4*constant) |
| 134 | |
| 135 | theorem badConstant_pos : 0 < badConstant := by |
| 136 | unfold badConstant |
| 137 | positivity [cutoffBound_pos,constant_pos] |
| 138 | |
| 139 | theorem prefactor_bound (X Θ : ℝ) (hX : 1 ≤ X) (hΘ : 1 ≤ Θ) : |
| 140 | cutoffBound*(8232*Real.exp 9*Θ^5+4*Θ*(constant*X^degree)) ≤ badConstant*X^degree*Θ^5 := by |
| 141 | have hx0 := zero_le_one.trans hX |
| 142 | have hθ0 := zero_le_one.trans hΘ |
| 143 | have hp : 1 ≤ X^degree := one_le_pow₀ hX |
| 144 | have hθ : Θ ≤ Θ^5 := by simpa only [pow_one] using pow_le_pow_right₀ hΘ (by decide : 1 ≤ 5) |
| 145 | have hfirst : 8232*Real.exp 9*Θ^5 ≤ 8232*Real.exp 9*(X^degree*Θ^5) := by |
| 146 | calc |
| 147 | _ = 8232*Real.exp 9*(1*Θ^5) := by ring |
| 148 | _ ≤ _ := by gcongr |
| 149 | have hsecond : 4*Θ*(constant*X^degree) ≤ 4*constant*(X^degree*Θ^5) := by |
| 150 | calc |
| 151 | _ ≤ 4*Θ^5*(constant*X^degree) := by gcongr; positivity [constant_pos] |
| 152 | _ = _ := by ring |
| 153 | calc |
| 154 | _ ≤ cutoffBound*(8232*Real.exp 9*(X^degree*Θ^5)+4*constant*(X^degree*Θ^5)) := |
| 155 | mul_le_mul_of_nonneg_left (add_le_add hfirst hsecond) cutoffBound_pos.le |
| 156 | _ = _ := by unfold badConstant; ring |
| 157 | |
| 158 | end EulerParentBadRatio |
| 159 | |
| 160 | namespace EulerParentPacketFrames.LabelData |
| 161 | |
| 162 | open Set EulerSmoothLimit EulerPacketParentLabelBounds EulerParentHistoryCost |
| 163 | EulerPacketActivationHistory EulerPacketSourceGeometry EulerGevrey EulerParentBadRatio |
| 164 | |
| 165 | variable {G : Parent} (L : LabelData G) |
| 166 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 167 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] EulerTransverseFrameCoordinates.referencePlane m) |
| 168 | (S : Set Space) (hS : IsCompact S) (H : LowBounds G) |
| 169 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < G.T) |
| 170 | (P : ParentFrame (G.transverseData m hm R S hS) τ) |
| 171 | (A : Guards hτ hτT P (G.historyOn H m hm R S hS τ hτ hτT)) |
| 172 | (Ti : ℝ) (hτ1 : τ ≤ 1) (hTi : τ⁻¹ ≤ Ti) |
| 173 | |
| 174 | include hτ1 hTi |
| 175 | |
| 176 | theorem historySizeRatio_envelope : |
| 177 | A.historySizeCost/(P.rayScale hτ hτT) ≤ envelope L.K Ti P.shear⁻¹ A.CM A.CH := by |
| 178 | let D := G.transverseData m hm R S hS |
| 179 | let B := G.historyOn H m hm R S hS τ hτ hτT |
| 180 | have hF : ∀ t x, ‖D.F.field t x‖ ≤ frameAmplitude L.K := by |
| 181 | intro t x |
| 182 | change ‖G.frame.field t x‖ ≤ frameAmplitude L.K |
| 183 | have h := L.frame_scaled_bound 0 t x |
| 184 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 185 | Nat.cast_one,pow_zero,mul_one,one_pow] using h |
| 186 | have hf0 := frameAmplitude_nonneg L.K |
| 187 | have hInv0 := D.inverseBound_pos.le |
| 188 | have hInv := D.inverseBound_le_of_frame (frameAmplitude L.K) hf0 G.frame_det hF |
| 189 | have hRay := (P.rayScale_inv_le_frameBound hτ hτT).trans |
| 190 | (D.frameBound_le_of_frame (frameAmplitude L.K) hf0 hF) |
| 191 | have hRay0 := (inv_pos.mpr (Guards.rayScale_pos hτ hτT P)).le |
| 192 | have hHi := (inv_pos.mpr A.shear_pos).le |
| 193 | have hHist := L.initial_history_size_polynomial m hm R S hS H τ hτ hτT Ti hτ1 hTi |
| 194 | have hHist0 : 0 ≤ historyLabelSizeCost B := (norm_nonneg (B.coefficients.labelVelocity 0)).trans (labelVelocity_norm B 0) |
| 195 | have hEq : A.historySizeCost/(P.rayScale hτ hτT) = |
| 196 | 8*(5+64*A.CM^2+2*A.CH)*D.inverseBound^2*(P.rayScale hτ hτT)⁻¹* |
| 197 | historyLabelSizeCost B*P.shear⁻¹ := by |
| 198 | unfold Guards.historySizeCost ParentFrame.terminalBound EulerTransverseActivationSelection.activationConstant |
| 199 | simp only [div_eq_mul_inv] |
| 200 | ring |
| 201 | rw [hEq] |
| 202 | unfold envelope formula |
| 203 | gcongr |
| 204 | all_goals positivity [A.CH_nonneg] |
| 205 | |
| 206 | theorem historySizeRatio_polynomial : |
| 207 | A.historySizeCost/(P.rayScale hτ hτT) ≤ |
| 208 | constant*(1+L.K+Ti+P.shear⁻¹+A.CM+A.CH)^degree := |
| 209 | (L.historySizeRatio_envelope m hm R S hS H τ hτ hτT P A Ti hτ1 hTi).trans |
| 210 | (envelope_power L.K Ti P.shear⁻¹ A.CM A.CH (zero_le_one.trans L.K_one) |
| 211 | ((inv_pos.mpr hτ).le.trans hTi) (inv_pos.mpr A.shear_pos).le A.CM_nonneg A.CH_nonneg) |
| 212 | |
| 213 | theorem badRatio_polynomial : |
| 214 | A.badRatio ≤ badConstant*(1+L.K+Ti+P.shear⁻¹+A.CM+A.CH)^degree* |
| 215 | P.horizon^5*Real.exp (-(1/(4*P.sigma))) := by |
| 216 | have hX : 1 ≤ 1+L.K+Ti+P.shear⁻¹+A.CM+A.CH := by |
| 217 | have ht := (inv_pos.mpr hτ).le.trans hTi |
| 218 | have hi := (inv_pos.mpr A.shear_pos).le |
| 219 | nlinarith only [L.K_one,ht,hi,A.CM_nonneg,A.CH_nonneg] |
| 220 | have hh := L.historySizeRatio_polynomial m hm R S hS H τ hτ hτT P A Ti hτ1 hTi |
| 221 | rw [A.badRatio_formula] |
| 222 | calc |
| 223 | _ = EulerPacketGeometryLowBounds.cutoffBound*(8232*Real.exp 9*P.horizon^5+ |
| 224 | 4*P.horizon*(A.historySizeCost/(P.rayScale hτ hτT)))*Real.exp (-(1/(4*P.sigma))) := by ring |
| 225 | _ ≤ EulerPacketGeometryLowBounds.cutoffBound*(8232*Real.exp 9*P.horizon^5+ |
| 226 | 4*P.horizon*(constant*(1+L.K+Ti+P.shear⁻¹+A.CM+A.CH)^degree))*Real.exp (-(1/(4*P.sigma))) := by |
| 227 | gcongr |
| 228 | · exact EulerPacketGeometryLowBounds.cutoffBound_pos.le |
| 229 | · positivity [A.horizon_lower] |
| 230 | _ ≤ _ := mul_le_mul_of_nonneg_right (prefactor_bound _ P.horizon hX A.horizon_lower) (Real.exp_pos _).le |
| 231 | |
| 232 | end EulerParentPacketFrames.LabelData |