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.CoefficientCostMonotone |
| 2 | import Euler.PacketInitializedRadius |
| 3 | import Euler.PacketParentTransverseCosts |
| 4 | |
| 5 | /-! Polynomial formulas for the fixed-order inverse and for a common |
| 6 | source-radius envelope. No target radius, forcing amplitude or grade |
| 7 | occurs in the primitive envelope. -/ |
| 8 | |
| 9 | /-! ## From `Euler/PacketInitializedCanonicalRadius.lean` |
| 10 | |
| 11 | The text of `Euler/PacketInitializedCanonicalRadius.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! The literal common radius of the initialized packet, with named |
| 16 | budgets that retain it. Quantitative bounds must concern this radius, |
| 17 | rather than an arbitrary witness of a radius-existence theorem. -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace EulerPacketTerminalDatum |
| 22 | |
| 23 | open EulerPacketCylinderField EulerPacketProfileRecursion EulerParameterWordGevrey |
| 24 | |
| 25 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 26 | {D : EulerTransversePacketProvider.Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} |
| 27 | {B : EulerTransversePacketProvider.HistoryData (D.initial τ hτ hτT.le)} |
| 28 | {M : EulerMeanPacketProvider.Data} {Rm Tc : ℝ} {O : Operators} |
| 29 | {C : CoefficientData period Tc O} |
| 30 | (LM : EulerMeanPacketProvider.Budget M 6 Rm) |
| 31 | (L : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6) |
| 32 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 33 | (BC : CoefficientBudget C) (δ : ℝ) (ξ : U) |
| 34 | |
| 35 | abbrev primaryRadiusBudget := EulerTransversePacketPrimary.enlargeForPrimary L (wordRadius (Fin 4) δ) |
| 36 | |
| 37 | abbrev primaryRadiusNormal := NB.enlargeRadius (primaryRadiusBudget L δ).R |
| 38 | (EulerTransversePacketPrimary.le_requiredRadius L _) |
| 39 | |
| 40 | abbrev primaryRadiusPrimary := EulerTransversePacketPrimary.requiredBudget L (wordRadius (Fin 4) δ) |
| 41 | |
| 42 | def initializedRadius : ℝ := |
| 43 | max (EulerPacketCommonRadius.commonRadius LM (primaryRadiusBudget L δ) (primaryRadiusNormal L NB δ) BC) |
| 44 | ((primaryRadiusPrimary L δ).gradeRadius (P := period) (primaryRadiusNormal L NB δ) |
| 45 | (wordCost (Fin 4) 6 δ*‖ξ‖)) |
| 46 | |
| 47 | include NB BC ξ in |
| 48 | theorem primary_le_initializedRadius : |
| 49 | (primaryRadiusBudget L δ).R ≤ initializedRadius LM L NB BC δ ξ := |
| 50 | (EulerPacketCommonRadius.commonRadius_bounds LM (primaryRadiusBudget L δ) |
| 51 | (primaryRadiusNormal L NB δ) BC).2.1.trans (le_max_left _ _) |
| 52 | |
| 53 | include L NB BC δ ξ in |
| 54 | theorem mean_le_initializedRadius : Rm ≤ initializedRadius LM L NB BC δ ξ := |
| 55 | (EulerPacketCommonRadius.commonRadius_bounds LM (primaryRadiusBudget L δ) |
| 56 | (primaryRadiusNormal L NB δ) BC).1.trans (le_max_left _ _) |
| 57 | |
| 58 | def initializedJoinedBudget : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6 := |
| 59 | (primaryRadiusBudget L δ).enlargeRadius (initializedRadius LM L NB BC δ ξ) |
| 60 | (primary_le_initializedRadius LM L NB BC δ ξ) |
| 61 | |
| 62 | theorem initializedPrimaryBudget : EulerTransversePacketPrimary.Budget |
| 63 | (initializedJoinedBudget LM L NB BC δ ξ) := |
| 64 | (primaryRadiusPrimary L δ).enlargeRadius (initializedRadius LM L NB BC δ ξ) |
| 65 | (primary_le_initializedRadius LM L NB BC δ ξ) |
| 66 | |
| 67 | def initializedNormalBudget : EulerTransversePacketJoin.NormalBudget D 6 |
| 68 | (initializedRadius LM L NB BC δ ξ) := |
| 69 | (primaryRadiusNormal L NB δ).enlargeRadius (initializedRadius LM L NB BC δ ξ) |
| 70 | (primary_le_initializedRadius LM L NB BC δ ξ) |
| 71 | |
| 72 | def initializedMeanBudget : EulerMeanPacketProvider.Budget M 6 |
| 73 | (initializedRadius LM L NB BC δ ξ) := |
| 74 | LM.enlargeRadius (initializedRadius LM L NB BC δ ξ) (mean_le_initializedRadius LM L NB BC δ ξ) |
| 75 | |
| 76 | @[simp] theorem initializedJoinedBudget_radius : |
| 77 | (initializedJoinedBudget LM L NB BC δ ξ).R=initializedRadius LM L NB BC δ ξ := rfl |
| 78 | |
| 79 | @[simp] theorem initializedJoinedBudget_profile : |
| 80 | (initializedJoinedBudget LM L NB BC δ ξ).fullProfile=L.fullProfile := rfl |
| 81 | |
| 82 | /-- All the actual constructed budgets use the named canonical radius. |
| 83 | The profile and every coefficient cost are unchanged by enlargement. -/ |
| 84 | theorem initializedRadius_guards : |
| 85 | EulerTransversePacketJoin.Budget.GradeGuards (P := period) |
| 86 | (initializedJoinedBudget LM L NB BC δ ξ) (initializedNormalBudget LM L NB BC δ ξ) ∧ |
| 87 | EulerMeanPacketProvider.Budget.GradeGuards (initializedMeanBudget LM L NB BC δ ξ) ∧ |
| 88 | EulerTransversePacketPrimary.Budget.GradeGuards (P := period) |
| 89 | (initializedPrimaryBudget LM L NB BC δ ξ) (initializedNormalBudget LM L NB BC δ ξ) |
| 90 | (wordCost (Fin 4) 6 δ*‖ξ‖) ∧ |
| 91 | wordRadius (Fin 4) δ ≤ initializedRadius LM L NB BC δ ξ ∧ |
| 92 | BC.termCost ≤ initializedRadius LM L NB BC δ ξ ∧ |
| 93 | sobolevCoefficientRadius (Fin 4) BC.Rc ≤ initializedRadius LM L NB BC δ ξ := by |
| 94 | have hc := EulerPacketCommonRadius.commonRadius_guards LM (primaryRadiusBudget L δ) |
| 95 | (primaryRadiusNormal L NB δ) BC (initializedRadius LM L NB BC δ ξ) (le_max_left _ _) |
| 96 | have hp := (primaryRadiusPrimary L δ).gradeRadius_guards (primaryRadiusNormal L NB δ) |
| 97 | (wordCost (Fin 4) 6 δ*‖ξ‖) (mul_nonneg (wordCost_nonneg 6 δ) (norm_nonneg ξ)) |
| 98 | (initializedRadius LM L NB BC δ ξ) (le_max_right _ _) |
| 99 | obtain ⟨hm,hl,wm,wl,hcost,hrc⟩ := hc |
| 100 | obtain ⟨hl',wp⟩ := hp |
| 101 | exact ⟨wl,wm,wp,(EulerTransversePacketPrimary.extra_le_requiredRadius L _).trans |
| 102 | (primary_le_initializedRadius LM L NB BC δ ξ),hcost,hrc⟩ |
| 103 | |
| 104 | end EulerPacketTerminalDatum |
| 105 | end |
| 106 | |
| 107 | end |
| 108 | |
| 109 | noncomputable section |
| 110 | |
| 111 | namespace EulerParameterWordGevrey |
| 112 | |
| 113 | |
| 114 | def inversePolynomial (I B : Polynomial ℝ) : ℕ → Polynomial ℝ |
| 115 | | 0 => I |
| 116 | | n+1 => I+inversePolynomial I B n+2^n*B*(inversePolynomial I B n)^2 |
| 117 | |
| 118 | theorem inversePolynomial_eval (I B : Polynomial ℝ) (n : ℕ) (x : ℝ) : |
| 119 | (inversePolynomial I B n).eval x=sobolevInverseCost (I.eval x) (B.eval x) n := by |
| 120 | induction n with |
| 121 | | zero => rfl |
| 122 | | succ n ih => simp only [inversePolynomial,sobolevInverseCost,Polynomial.eval_add, |
| 123 | Polynomial.eval_mul,Polynomial.eval_pow,Polynomial.eval_ofNat,ih] |
| 124 | |
| 125 | def inverseBlockPolynomial (q : ℕ) (I R C D : Polynomial ℝ) : Polynomial ℝ := |
| 126 | 1+inversePolynomial I (coefficientPolynomial q R C) q*(coefficientPolynomial q R C+D) |
| 127 | |
| 128 | theorem inverseBlockPolynomial_eval (q : ℕ) (I R C D : Polynomial ℝ) (x : ℝ) : |
| 129 | (inverseBlockPolynomial q I R C D).eval x= |
| 130 | inverseBlockCost (Fin 4) q (I.eval x) (R.eval x) (C.eval x) (D.eval x) := by |
| 131 | simp only [inverseBlockPolynomial,Polynomial.eval_add,Polynomial.eval_mul,Polynomial.eval_one, |
| 132 | inversePolynomial_eval,coefficientPolynomial_eval,inverseBlockCost] |
| 133 | |
| 134 | theorem inverseBlockCost_mono_all {ι : Type*} [Fintype ι] (q : ℕ) |
| 135 | {I R C D I' R' C' D' : ℝ} (hI : 0 ≤ I) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 136 | (hi : I ≤ I') (hr : R ≤ R') (hc : C ≤ C') (hd : D ≤ D') : |
| 137 | inverseBlockCost ι q I R C D ≤ inverseBlockCost ι q I' R' C' D' := by |
| 138 | have hB := sobolevCoefficientAmplitude_nonneg (ι := ι) q R C hR hC |
| 139 | have hb := sobolevCoefficientAmplitude_mono_all (ι := ι) q hR hC hr hc |
| 140 | have hS := sobolevInverseCost_mono hI hB hi hb q |
| 141 | have hS' := sobolevInverseCost_nonneg I' (sobolevCoefficientAmplitude ι q R' C') |
| 142 | (hI.trans hi) (hB.trans hb) q |
| 143 | unfold inverseBlockCost |
| 144 | exact add_le_add le_rfl (mul_le_mul hS (add_le_add hb hd) (add_nonneg hB hD) hS') |
| 145 | |
| 146 | theorem inverseBlockCost_one_le {ι : Type*} [Fintype ι] (q : ℕ) |
| 147 | {I R C D : ℝ} (hI : 0 ≤ I) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) : |
| 148 | 1 ≤ inverseBlockCost ι q I R C D := by |
| 149 | have hb := sobolevCoefficientAmplitude_nonneg (ι := ι) q R C hR hC |
| 150 | have hs := sobolevInverseCost_nonneg I (sobolevCoefficientAmplitude ι q R C) hI hb q |
| 151 | unfold inverseBlockCost |
| 152 | exact le_add_of_nonneg_right (mul_nonneg hs (add_nonneg hb hD)) |
| 153 | |
| 154 | end EulerParameterWordGevrey |
| 155 | |
| 156 | namespace EulerPacketRadiusPolynomial |
| 157 | |
| 158 | open EulerParameterWordGevrey EulerPacketTerminalDatum EulerGevreyCutoff EulerPolynomialCost |
| 159 | |
| 160 | abbrev coeff (R C : ℝ) : ℝ := sobolevCoefficientAmplitude (Fin 4) 6 R C |
| 161 | abbrev coeffPoly (R C : Polynomial ℝ) : Polynomial ℝ := coefficientPolynomial 6 R C |
| 162 | |
| 163 | def inverseEnvelope (W : ℝ) : ℝ := 2*(1+2*W^5+2*W^2)^2 |
| 164 | def formEnvelope (W : ℝ) : ℝ := 36*W^2*(1+W) |
| 165 | def endpointEnvelope (W : ℝ) : ℝ := 6*coeff W W*W |
| 166 | |
| 167 | def weakEnvelope (W : ℝ) : ℝ := |
| 168 | inverseBlockCost (Fin 4) 6 (inverseEnvelope W) W (formEnvelope W) |
| 169 | (3*coeff W (2*W)*endpointEnvelope W) |
| 170 | |
| 171 | def strongEnvelope (W : ℝ) : ℝ := |
| 172 | inverseBlockCost (Fin 4) 6 W W (3*W^2) |
| 173 | (3*coeff W W*(endpointEnvelope W+6*coeff W W*(2*W+2))) |
| 174 | |
| 175 | def forwardEnvelope (W : ℝ) : ℝ := |
| 176 | let b := coeff (4*W) (1+36*W^4) |
| 177 | 1+sobolevInverseCost 1 b 6*(b+W*(2*W+2)) |
| 178 | |
| 179 | def jetEnvelope (W : ℝ) : ℝ := 64+40*W^2 |
| 180 | |
| 181 | def requiredEnvelope (W : ℝ) : ℝ := |
| 182 | W+16*jetEnvelope W+2*(weakEnvelope W+strongEnvelope W)*(16*W+1)+ |
| 183 | 2*forwardEnvelope W*(64*W+1) |
| 184 | |
| 185 | def physicalEnvelope (W : ℝ) : ℝ := |
| 186 | let a := coeff (4*W) W |
| 187 | 3*a+3*a*(3*coeff (4*W) (18*W^3)+3*coeff (4*W) (3*W^2)) |
| 188 | |
| 189 | def commonEnvelope (W : ℝ) : ℝ := |
| 190 | 6*coeff W W*(2*W+2)+6*coeff W W+physicalEnvelope W |
| 191 | |
| 192 | def normalEnvelope (W : ℝ) : ℝ := coeff (5*W+1) (1+W+6*W^2+729*W^6) |
| 193 | |
| 194 | def pressureEnvelope (W : ℝ) : ℝ := |
| 195 | 3*coeff (4*W) (3*W^2)*(1+6*coeff (4*W) W*commonEnvelope W) |
| 196 | |
| 197 | def gradeEnvelope (W : ℝ) : ℝ := |
| 198 | commonEnvelope W+135*(normalEnvelope W)^2*(period*commonEnvelope W)+ |
| 199 | 3*period*pressureEnvelope W |
| 200 | |
| 201 | def meanEnvelope (W : ℝ) : ℝ := |
| 202 | let a := coeff W W |
| 203 | 3*a*(W+2)+3*(a*(W+2)+a)+3*a*(W+3*a+6*a*(W+2)) |
| 204 | |
| 205 | def terminalEnvelope (W : ℝ) : ℝ := |
| 206 | coeff (jetEnvelope W) (300*(9/rawBump 0)^3*W^2*terminalMass)*W |
| 207 | |
| 208 | def radiusEnvelope (W : ℝ) : ℝ := |
| 209 | 18*W+2*requiredEnvelope W+meanEnvelope W+gradeEnvelope W*(1+terminalEnvelope W) |
| 210 | |
| 211 | def radiusPolynomial : Polynomial ℝ := |
| 212 | let X : Polynomial ℝ := Polynomial.X |
| 213 | let a := coeffPoly X X |
| 214 | let endpoint := 6*a*X |
| 215 | let weak := inverseBlockPolynomial 6 (2*(1+2*X^5+2*X^2)^2) X (36*X^2*(1+X)) |
| 216 | (3*coeffPoly X (2*X)*endpoint) |
| 217 | let strong := inverseBlockPolynomial 6 X X (3*X^2) (3*a*(endpoint+6*a*(2*X+2))) |
| 218 | let b := coeffPoly (4*X) (1+36*X^4) |
| 219 | let forward := 1+inversePolynomial 1 b 6*(b+X*(2*X+2)) |
| 220 | let jet := 64+40*X^2 |
| 221 | let required := X+16*jet+2*(weak+strong)*(16*X+1)+2*forward*(64*X+1) |
| 222 | let a4 := coeffPoly (4*X) X |
| 223 | let physical := 3*a4+3*a4*(3*coeffPoly (4*X) (18*X^3)+3*coeffPoly (4*X) (3*X^2)) |
| 224 | let common := 6*a*(2*X+2)+6*a+physical |
| 225 | let normal := coeffPoly (5*X+1) (1+X+6*X^2+729*X^6) |
| 226 | let pressure := 3*coeffPoly (4*X) (3*X^2)*(1+6*a4*common) |
| 227 | let grade := common+135*normal^2*(Polynomial.C period*common)+3*Polynomial.C period*pressure |
| 228 | let mean := 3*a*(X+2)+3*(a*(X+2)+a)+3*a*(X+3*a+6*a*(X+2)) |
| 229 | let terminal := coeffPoly jet (Polynomial.C (300*(9/rawBump 0)^3*terminalMass)*X^2)*X |
| 230 | 18*X+2*required+mean+grade*(1+terminal) |
| 231 | |
| 232 | theorem radiusPolynomial_eval (W : ℝ) : radiusPolynomial.eval W=radiusEnvelope W := by |
| 233 | simp only [radiusPolynomial,radiusEnvelope,requiredEnvelope,weakEnvelope,strongEnvelope, |
| 234 | formEnvelope,endpointEnvelope,forwardEnvelope,jetEnvelope,meanEnvelope, |
| 235 | gradeEnvelope,commonEnvelope,physicalEnvelope,normalEnvelope,pressureEnvelope,terminalEnvelope, |
| 236 | coeffPoly,Polynomial.eval_add,Polynomial.eval_mul,Polynomial.eval_pow,Polynomial.eval_ofNat, |
| 237 | Polynomial.eval_one,Polynomial.eval_X,Polynomial.eval_C,inversePolynomial_eval, |
| 238 | inverseBlockPolynomial_eval,coefficientPolynomial_eval,coeff] |
| 239 | congr 3 |
| 240 | ring_nf |
| 241 | |
| 242 | |
| 243 | end EulerPacketRadiusPolynomial |