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.ParentInitializedUniformCosts |
| 2 | import Euler.ParentForwardUniformCosts |
| 3 | import Euler.ParentPacketNeighborPolynomial |
| 4 | import Euler.PacketParameterEnvelope |
| 5 | import Euler.PacketLowConstants |
| 6 | import Euler.PacketUniformFrequencyScales |
| 7 | |
| 8 | /-! The actual normal-stage source size is controlled by one fixed |
| 9 | envelope. This includes the chosen terminal coordinate and canonical |
| 10 | boundary coefficient, with the polynomial first shear retained. -/ |
| 11 | |
| 12 | /-! ## From `Euler/ParentPacketParameterCaps.lean` |
| 13 | |
| 14 | The text of `Euler/ParentPacketParameterCaps.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! Actual selected terminal coordinates and the canonical boundary |
| 19 | parameter have fixed polynomial caps. They are inputs to the uniform |
| 20 | normal-stage source envelope. -/ |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | namespace EulerParentPacketParameterCaps |
| 25 | |
| 26 | open Real EulerPacketParentLabelBounds EulerTransverseActivationSelection EulerMeanHarmonic |
| 27 | |
| 28 | def terminalConstant (CM CH : ℝ) : ℝ := |
| 29 | 8*(activationConstant CM CH+1)*(1+3*(1+embeddingCost)^2) |
| 30 | |
| 31 | theorem terminalConstant_nonneg (CM CH : ℝ) (hCH : 0 ≤ CH) : |
| 32 | 0 ≤ terminalConstant CM CH := by |
| 33 | unfold terminalConstant activationConstant |
| 34 | positivity |
| 35 | |
| 36 | def boundaryConstant (CM : ℝ) : ℝ := boundaryLocalizationC1*(CM+2)+1 |
| 37 | |
| 38 | theorem boundaryConstant_pos (CM : ℝ) (hCM : 0 ≤ CM) : 0 < boundaryConstant CM := by |
| 39 | unfold boundaryConstant |
| 40 | positivity [boundaryLocalizationC1_nonneg] |
| 41 | |
| 42 | theorem boundary_parameter_bound (CM Bc L X : ℝ) (hX : 1 ≤ X) |
| 43 | (hBc : Bc ≤ CM*X^1000+2) (hL : L=boundaryLocalizationC1*Bc+1) : |
| 44 | L ≤ boundaryConstant CM*X^1000 := by |
| 45 | have hp : 1 ≤ X^1000 := one_le_pow₀ hX |
| 46 | have hb : Bc ≤ (CM+2)*X^1000 := by linarith only [hBc,hp] |
| 47 | have h := mul_le_mul_of_nonneg_left hb boundaryLocalizationC1_nonneg |
| 48 | rw [hL] |
| 49 | unfold boundaryConstant |
| 50 | linarith only [h,hp] |
| 51 | |
| 52 | end EulerParentPacketParameterCaps |
| 53 | |
| 54 | namespace EulerParentPacketFrames.LabelData |
| 55 | |
| 56 | open Set EulerSmoothLimit EulerTransverseFrameCoordinates EulerTransversePacketProvider |
| 57 | EulerPacketSourceGeometry EulerPacketParentLabelBounds EulerGevrey |
| 58 | EulerParentPacketParameterCaps EulerTransverseActivationSelection |
| 59 | |
| 60 | variable {A : Parent} (L : LabelData A) |
| 61 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 62 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 63 | (support : Set Space) (hsupport : IsCompact support) |
| 64 | {τ : ℝ} {hτ : 0 < τ} {hτT : τ < A.T} |
| 65 | {P : ParentFrame (A.transverseData m hm R support hsupport) τ} |
| 66 | {H : HistoryData ((A.transverseData m hm R support hsupport).initial τ hτ hτT.le)} |
| 67 | (G : Guards hτ hτT P H) |
| 68 | |
| 69 | theorem selected_terminal_bound (hH : 1 ≤ P.shear) : |
| 70 | ‖G.terminal‖ ≤ terminalConstant G.CM G.CH*L.K^4 := by |
| 71 | let D := A.transverseData m hm R support hsupport |
| 72 | have hK0 := zero_le_one.trans L.K_one |
| 73 | have hF : ∀ t x, ‖D.F.field t x‖ ≤ frameAmplitude L.K := by |
| 74 | intro t x |
| 75 | change ‖A.frame.field t x‖ ≤ frameAmplitude L.K |
| 76 | have h := L.frame_scaled_bound 0 t x |
| 77 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 78 | Nat.cast_one,pow_zero,mul_one,one_pow] using h |
| 79 | have hInv := D.inverseBound_le_of_frame (frameAmplitude L.K) |
| 80 | (frameAmplitude_nonneg L.K) A.frame_det hF |
| 81 | have hK2 : 1 ≤ L.K^2 := one_le_pow₀ L.K_one |
| 82 | have hK4 : 1 ≤ L.K^4 := one_le_pow₀ L.K_one |
| 83 | have hEmb := embeddingCost_nonneg |
| 84 | have hFcap : frameAmplitude L.K ≤ (1+embeddingCost)*L.K^2 := by |
| 85 | unfold frameAmplitude gradientAmplitude |
| 86 | linarith only [hK2] |
| 87 | have hFsquare := pow_le_pow_left₀ (frameAmplitude_nonneg L.K) hFcap 2 |
| 88 | have hIcap : D.inverseBound ≤ (1+3*(1+embeddingCost)^2)*L.K^4 := by |
| 89 | linarith only [hInv,hFsquare,hK4] |
| 90 | have hAct : 0 ≤ 8*(activationConstant G.CM G.CH+1) := by |
| 91 | unfold activationConstant |
| 92 | positivity [G.CH_nonneg] |
| 93 | calc |
| 94 | _ ≤ P.terminalBound G.CM G.CH := G.terminal_properties.2.2.2.1 |
| 95 | _ ≤ 8*(activationConstant G.CM G.CH+1)*D.inverseBound := by |
| 96 | unfold ParentFrame.terminalBound |
| 97 | exact div_le_self (mul_nonneg hAct D.inverseBound_pos.le) hH |
| 98 | _ ≤ 8*(activationConstant G.CM G.CH+1)*((1+3*(1+embeddingCost)^2)*L.K^4) := |
| 99 | mul_le_mul_of_nonneg_left hIcap hAct |
| 100 | _ = _ := by unfold terminalConstant; ring |
| 101 | |
| 102 | end EulerParentPacketFrames.LabelData |
| 103 | end |
| 104 | |
| 105 | end |
| 106 | |
| 107 | noncomputable section |
| 108 | |
| 109 | namespace EulerNormalPacketParameters |
| 110 | |
| 111 | open Real EulerPacketLowConstants EulerParentPacketParameterCaps |
| 112 | EulerPacketUniformFrequencyScales EulerPacketUniformSource EulerPacketSourceFrequency |
| 113 | EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence EulerPacketSourceParameterScales |
| 114 | |
| 115 | def terminalCap : ℝ := 1+terminalConstant gradientConstant hessianConstant |
| 116 | def sourceConstant (C : ℝ) : ℝ := |
| 117 | EulerPacketParameterEnvelope.constant C (boundaryConstant gradientConstant) terminalCap |
| 118 | |
| 119 | theorem terminalCap_one : 1 ≤ terminalCap := by |
| 120 | have h := terminalConstant_nonneg gradientConstant hessianConstant hessian_nonneg |
| 121 | unfold terminalCap |
| 122 | linarith only [h] |
| 123 | |
| 124 | theorem sourceConstant_pos (C : ℝ) : 0 < sourceConstant C := |
| 125 | EulerPacketParameterEnvelope.constant_pos C (boundaryConstant gradientConstant) terminalCap |
| 126 | (boundaryConstant_pos gradientConstant gradient_nonneg).le (zero_le_one.trans terminalCap_one) |
| 127 | |
| 128 | def envelope (J : ℕ) (C X : ℝ) (n : ℕ) : ℝ := parameterEnvelope J (sourceConstant C) 320 20 1000 X n |
| 129 | |
| 130 | def frequencySpec (C : ℝ) : CostSpec := |
| 131 | frequencyCostSpec (1+frequencyConstant) (sourceConstant C) 320 |
| 132 | (by have h := frequencyConstant_pos; linarith) (sourceConstant_pos C) |
| 133 | 20 1000 (frequencyPower+1) (theta/100) (by norm_num [theta]) |
| 134 | |
| 135 | theorem previousShear_one (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) (n : ℕ) : |
| 136 | 1 ≤ previousShear J X n := by |
| 137 | cases n with |
| 138 | | zero => exact one_le_pow₀ hX |
| 139 | | succ n => |
| 140 | apply one_le_exp |
| 141 | have hx := sequence_one_le J hJ X hX n |
| 142 | exact div_nonneg (zero_le_one.trans hx) (by positivity) |
| 143 | |
| 144 | theorem frequency_guard (J : ℕ) (C X P : ℝ) (n : ℕ) |
| 145 | (hP : 1 ≤ P) (hPE : P ≤ envelope J C X n) |
| 146 | (hcost : (frequencySpec C).cost J (scaleSequence J X) n ≤ 1) : |
| 147 | frequencyConstant*P^frequencyPower ≤ smallPower (frequency J X n) := by |
| 148 | have hE : 1 ≤ envelope J C X n := hP.trans hPE |
| 149 | have hguard := guard_of_cost_le J (1+frequencyConstant) (sourceConstant C) 320 |
| 150 | (by have h := frequencyConstant_pos; linarith) (sourceConstant_pos C) |
| 151 | 20 1000 (frequencyPower+1) (theta/100) (by norm_num [theta]) X n hcost |
| 152 | apply le_trans _ hguard |
| 153 | have hpow := pow_le_pow_left₀ (zero_le_one.trans hP) hPE frequencyPower |
| 154 | have hstep := pow_le_pow_right₀ hE (Nat.le_add_right frequencyPower 1) |
| 155 | have hC := frequencyConstant_pos.le |
| 156 | calc |
| 157 | _ ≤ frequencyConstant*(envelope J C X n)^frequencyPower := mul_le_mul_of_nonneg_left hpow hC |
| 158 | _ ≤ (1+frequencyConstant)*(envelope J C X n)^(frequencyPower+1) := |
| 159 | mul_le_mul (le_add_of_nonneg_left zero_le_one) hstep |
| 160 | (pow_nonneg (zero_le_one.trans hE) _) (add_nonneg zero_le_one hC) |
| 161 | |
| 162 | end EulerNormalPacketParameters |
| 163 | |
| 164 | namespace EulerParentPacketFrames.LabelData |
| 165 | |
| 166 | open Set Real EulerSmoothLimit EulerTransverseFrameCoordinates EulerTransversePacketProvider |
| 167 | EulerPacketSourceGeometry EulerPacketSourceScales EulerPacketSourceScaleChoice |
| 168 | EulerPacketSourceScaleSequence EulerPacketBaseGuardScales EulerPacketLowConstants |
| 169 | EulerParentPacketParameterCaps EulerNormalPacketParameters |
| 170 | |
| 171 | variable {A : Parent} (L : LabelData A) (H : LowBounds A) |
| 172 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 173 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 174 | (support : Set Space) (hsupport : IsCompact support) |
| 175 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < A.T) |
| 176 | (P : ParentFrame (A.transverseData m hm R support hsupport) τ) |
| 177 | (G : Guards hτ hτT P (A.historyOn H m hm R support hsupport τ hτ hτT)) |
| 178 | |
| 179 | theorem normalParameterSize_bound (J D : ℕ) (hJ : 2 ≤ J) (C X : ℝ) (hC : 1 ≤ C) (hX : 1 ≤ X) |
| 180 | (n : ℕ) (Ti TiTotal : ℝ) |
| 181 | (hbaseH : X^1000 ≤ exp (X/((J-1 : ℕ) : ℝ)^7)) |
| 182 | (hbaseK : X^D ≤ exp (X/((J-1 : ℕ) : ℝ)^4)) |
| 183 | (hK : L.K ≤ previousFrequency J D X n^80) |
| 184 | (hTi : Ti ≤ 12/baseHorizon J X) (hTiTotal : TiTotal ≤ 12/baseHorizon J X) |
| 185 | (hBc : H.Bc ≤ gradientConstant*X^1000+2) |
| 186 | (hL : H.L=EulerMeanHarmonic.boundaryLocalizationC1*H.Bc+1) |
| 187 | (hM : G.CM=gradientConstant) (hH : G.CH=hessianConstant) |
| 188 | (hΘ : P.horizon ≤ sourceTheta J C (scaleSequence J X) n) |
| 189 | (hδ : G.δ=spike J X n) (hh : G.hchild=shear J X n) |
| 190 | (hshear : P.shear=previousShear J X n) : |
| 191 | L.geometryParameterSize H m hm R support hsupport τ hτ hτT P G Ti TiTotal G.terminal ≤ |
| 192 | envelope J C X n := by |
| 193 | have hprev : 1 ≤ P.shear := hshear.symm ▸ previousShear_one J (by omega) X hX n |
| 194 | have hterm := L.selected_terminal_bound m hm R support hsupport G hprev |
| 195 | rw [hM,hH] at hterm |
| 196 | have hterm' : ‖G.terminal‖ ≤ terminalCap*L.K^4 := hterm.trans |
| 197 | (mul_le_mul_of_nonneg_right (by unfold terminalCap; linarith) (pow_nonneg (zero_le_one.trans L.K_one) _)) |
| 198 | have hboundary := boundary_parameter_bound gradientConstant H.Bc H.L X hX hBc hL |
| 199 | have hEi : P.epsilon⁻¹ ≤ 2*previousShear J X n := by |
| 200 | rw [← hshear] |
| 201 | exact P.epsilon_inv_le_twice_shear G.coupling_lower hprev |
| 202 | have hraw := EulerPacketParameterEnvelope.source_size_le J D hJ X hX |
| 203 | C (boundaryConstant gradientConstant) terminalCap 80 320 hC |
| 204 | (boundaryConstant_pos gradientConstant gradient_nonneg).le (zero_le_one.trans terminalCap_one) |
| 205 | (by norm_num) (by norm_num) (by norm_num) 4 (by norm_num) hbaseH hbaseK n |
| 206 | L.K Ti TiTotal (560*P.horizon^10/P.epsilon) H.L ‖G.terminal‖ P.horizon P.epsilon⁻¹ |
| 207 | (zero_le_one.trans L.K_one) (by simpa only [rpow_ofNat] using hK) |
| 208 | hTi hTiTotal hboundary hterm' (zero_le_one.trans G.horizon_lower) hΘ |
| 209 | (inv_nonneg.mpr G.epsilon_pos.le) hEi (by rw [div_eq_mul_inv]) |
| 210 | change EulerParentInitializedRadius.parameterSize L.K Ti TiTotal (560*P.horizon^10/P.epsilon) |
| 211 | H.L G.δ ‖G.terminal‖+G.hchild ≤ _ |
| 212 | rw [hδ,hh] |
| 213 | exact hraw |
| 214 | |
| 215 | end EulerParentPacketFrames.LabelData |