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.ParentPacketParameterCaps |
| 4 | import Euler.PacketLowConstants |
| 5 | import Euler.PacketUniformFrequencyScales |
| 6 | |
| 7 | /-! The actual normal-stage source size is controlled by one fixed |
| 8 | envelope. This includes the chosen terminal coordinate and canonical |
| 9 | boundary coefficient, with the polynomial first shear retained. -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerNormalPacketParameters |
| 14 | |
| 15 | open Real EulerPacketLowConstants EulerParentPacketParameterCaps |
| 16 | EulerPacketUniformFrequencyScales EulerPacketUniformSource EulerPacketSourceFrequency |
| 17 | EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence EulerPacketSourceParameterScales |
| 18 | |
| 19 | def terminalCap : ℝ := 1+terminalConstant gradientConstant hessianConstant |
| 20 | def sourceConstant (C : ℝ) : ℝ := |
| 21 | EulerPacketParameterEnvelope.constant C (boundaryConstant gradientConstant) terminalCap |
| 22 | |
| 23 | theorem terminalCap_one : 1 ≤ terminalCap := by |
| 24 | have h := terminalConstant_nonneg gradientConstant hessianConstant hessian_nonneg |
| 25 | unfold terminalCap |
| 26 | linarith only [h] |
| 27 | |
| 28 | theorem sourceConstant_pos (C : ℝ) : 0 < sourceConstant C := |
| 29 | EulerPacketParameterEnvelope.constant_pos C (boundaryConstant gradientConstant) terminalCap |
| 30 | (boundaryConstant_pos gradientConstant gradient_nonneg).le (zero_le_one.trans terminalCap_one) |
| 31 | |
| 32 | def envelope (J : ℕ) (C X : ℝ) (n : ℕ) : ℝ := parameterEnvelope J (sourceConstant C) 320 20 1000 X n |
| 33 | |
| 34 | def frequencySpec (C : ℝ) : CostSpec := |
| 35 | frequencyCostSpec (1+frequencyConstant) (sourceConstant C) 320 |
| 36 | (by have h := frequencyConstant_pos; linarith) (sourceConstant_pos C) |
| 37 | 20 1000 (frequencyPower+1) (theta/100) (by norm_num [theta]) |
| 38 | |
| 39 | theorem previousShear_one (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) (n : ℕ) : |
| 40 | 1 ≤ previousShear J X n := by |
| 41 | cases n with |
| 42 | | zero => exact one_le_pow₀ hX |
| 43 | | succ n => |
| 44 | apply one_le_exp |
| 45 | have hx := sequence_one_le J hJ X hX n |
| 46 | exact div_nonneg (zero_le_one.trans hx) (by positivity) |
| 47 | |
| 48 | theorem frequency_guard (J : ℕ) (C X P : ℝ) (n : ℕ) |
| 49 | (hP : 1 ≤ P) (hPE : P ≤ envelope J C X n) |
| 50 | (hcost : (frequencySpec C).cost J (scaleSequence J X) n ≤ 1) : |
| 51 | frequencyConstant*P^frequencyPower ≤ smallPower (frequency J X n) := by |
| 52 | have hE : 1 ≤ envelope J C X n := hP.trans hPE |
| 53 | have hguard := guard_of_cost_le J (1+frequencyConstant) (sourceConstant C) 320 |
| 54 | (by have h := frequencyConstant_pos; linarith) (sourceConstant_pos C) |
| 55 | 20 1000 (frequencyPower+1) (theta/100) (by norm_num [theta]) X n hcost |
| 56 | apply le_trans _ hguard |
| 57 | have hpow := pow_le_pow_left₀ (zero_le_one.trans hP) hPE frequencyPower |
| 58 | have hstep := pow_le_pow_right₀ hE (Nat.le_add_right frequencyPower 1) |
| 59 | have hC := frequencyConstant_pos.le |
| 60 | calc |
| 61 | _ ≤ frequencyConstant*(envelope J C X n)^frequencyPower := mul_le_mul_of_nonneg_left hpow hC |
| 62 | _ ≤ (1+frequencyConstant)*(envelope J C X n)^(frequencyPower+1) := |
| 63 | mul_le_mul (le_add_of_nonneg_left zero_le_one) hstep |
| 64 | (pow_nonneg (zero_le_one.trans hE) _) (add_nonneg zero_le_one hC) |
| 65 | |
| 66 | end EulerNormalPacketParameters |
| 67 | |
| 68 | namespace EulerParentPacketFrames.LabelData |
| 69 | |
| 70 | open Set Real EulerSmoothLimit EulerTransverseFrameCoordinates EulerTransversePacketProvider |
| 71 | EulerPacketSourceGeometry EulerPacketSourceScales EulerPacketSourceScaleChoice |
| 72 | EulerPacketSourceScaleSequence EulerPacketBaseGuardScales EulerPacketLowConstants |
| 73 | EulerParentPacketParameterCaps EulerNormalPacketParameters |
| 74 | |
| 75 | variable {A : Parent} (L : LabelData A) (H : LowBounds A) |
| 76 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 77 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 78 | (support : Set Space) (hsupport : IsCompact support) |
| 79 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < A.T) |
| 80 | (P : ParentFrame (A.transverseData m hm R support hsupport) τ) |
| 81 | (G : Guards hτ hτT P (A.historyOn H m hm R support hsupport τ hτ hτT)) |
| 82 | |
| 83 | theorem normalParameterSize_bound (J D : ℕ) (hJ : 2 ≤ J) (C X : ℝ) (hC : 1 ≤ C) (hX : 1 ≤ X) |
| 84 | (n : ℕ) (Ti TiTotal : ℝ) |
| 85 | (hbaseH : X^1000 ≤ exp (X/((J-1 : ℕ) : ℝ)^7)) |
| 86 | (hbaseK : X^D ≤ exp (X/((J-1 : ℕ) : ℝ)^4)) |
| 87 | (hK : L.K ≤ previousFrequency J D X n^80) |
| 88 | (hTi : Ti ≤ 12/baseHorizon J X) (hTiTotal : TiTotal ≤ 12/baseHorizon J X) |
| 89 | (hBc : H.Bc ≤ gradientConstant*X^1000+2) |
| 90 | (hL : H.L=EulerMeanHarmonic.boundaryLocalizationC1*H.Bc+1) |
| 91 | (hM : G.CM=gradientConstant) (hH : G.CH=hessianConstant) |
| 92 | (hΘ : P.horizon ≤ sourceTheta J C (scaleSequence J X) n) |
| 93 | (hδ : G.δ=spike J X n) (hh : G.hchild=shear J X n) |
| 94 | (hshear : P.shear=previousShear J X n) : |
| 95 | L.geometryParameterSize H m hm R support hsupport τ hτ hτT P G Ti TiTotal G.terminal ≤ |
| 96 | envelope J C X n := by |
| 97 | have hprev : 1 ≤ P.shear := hshear.symm ▸ previousShear_one J (by omega) X hX n |
| 98 | have hterm := L.selected_terminal_bound m hm R support hsupport G hprev |
| 99 | rw [hM,hH] at hterm |
| 100 | have hterm' : ‖G.terminal‖ ≤ terminalCap*L.K^4 := hterm.trans |
| 101 | (mul_le_mul_of_nonneg_right (by unfold terminalCap; linarith) (pow_nonneg (zero_le_one.trans L.K_one) _)) |
| 102 | have hboundary := boundary_parameter_bound gradientConstant H.Bc H.L X hX hBc hL |
| 103 | have hEi : P.epsilon⁻¹ ≤ 2*previousShear J X n := by |
| 104 | rw [← hshear] |
| 105 | exact P.epsilon_inv_le_twice_shear G.coupling_lower hprev |
| 106 | have hraw := EulerPacketParameterEnvelope.source_size_le J D hJ X hX |
| 107 | C (boundaryConstant gradientConstant) terminalCap 80 320 hC |
| 108 | (boundaryConstant_pos gradientConstant gradient_nonneg).le (zero_le_one.trans terminalCap_one) |
| 109 | (by norm_num) (by norm_num) (by norm_num) 4 (by norm_num) hbaseH hbaseK n |
| 110 | L.K Ti TiTotal (560*P.horizon^10/P.epsilon) H.L ‖G.terminal‖ P.horizon P.epsilon⁻¹ |
| 111 | (zero_le_one.trans L.K_one) (by simpa only [rpow_ofNat] using hK) |
| 112 | hTi hTiTotal hboundary hterm' (zero_le_one.trans G.horizon_lower) hΘ |
| 113 | (inv_nonneg.mpr G.epsilon_pos.le) hEi (by rw [div_eq_mul_inv]) |
| 114 | change EulerParentInitializedRadius.parameterSize L.K Ti TiTotal (560*P.horizon^10/P.epsilon) |
| 115 | H.L G.δ ‖G.terminal‖+G.hchild ≤ _ |
| 116 | rw [hδ,hh] |
| 117 | exact hraw |
| 118 | |
| 119 | end EulerParentPacketFrames.LabelData |