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.PacketPressureScaleCosts |
| 2 | |
| 3 | /-! Actual geometric pressure increments are dominated by the literal |
| 4 | summable scale costs. The physical parent-strain bound is CM times the |
| 5 | previous shear, while the activation constants remain fixed low constants. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerParentPacketFrames.LabelData |
| 10 | |
| 11 | open Set Real EulerSmoothLimit EulerPacketSourceGeometry EulerPacketGeometryLowBounds |
| 12 | EulerPacketPressureScale EulerPacketSourceScaleSequence EulerPacketSourceScaleChoice |
| 13 | EulerPacketSourceScales EulerScale EulerParentBadRatio |
| 14 | |
| 15 | variable {G : Parent} (L : LabelData G) |
| 16 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 17 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] EulerTransverseFrameCoordinates.referencePlane m) |
| 18 | (S : Set Space) (hS : IsCompact S) (H : LowBounds G) |
| 19 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < G.T) |
| 20 | (P : ParentFrame (G.transverseData m hm R S hS) τ) |
| 21 | (A : Guards hτ hτT P (G.historyOn H m hm R S hS τ hτ hτT)) |
| 22 | (Ti : ℝ) (hτ1 : τ ≤ 1) (hTi : τ⁻¹ ≤ Ti) |
| 23 | (J D : ℕ) (hJ : 3 ≤ J) (X Cθ CM CMn CHn c : ℝ) |
| 24 | (hX : 1 ≤ X) (hCθ : 1 ≤ Cθ) (hCM : 0 ≤ CM) (hCMn : 0 ≤ CMn) (hCHn : 0 ≤ CHn) (hc : 1 ≤ c) |
| 25 | (hbaseH : X^1000 ≤ exp (X/((J-1 : ℕ) : ℝ)^7)) |
| 26 | (hbaseK : X^D ≤ exp (X/((J-1 : ℕ) : ℝ)^4)) |
| 27 | (n : ℕ) (M : ℝ) |
| 28 | (hK : L.K ≤ previousFrequency J D X n^c) (hTib : Ti ≤ previousShear J X n) |
| 29 | (hCMb : A.CM ≤ CMn) (hCHb : A.CH ≤ CHn) |
| 30 | (hTheta : P.horizon ≤ sourceTheta J Cθ (scaleSequence J X) n) |
| 31 | (hSigma : P.sigma*scaleSequence J X n ≤ 2) |
| 32 | (hchild : A.hchild ≤ shear J X n) (hMb : M ≤ CM*previousShear J X n) |
| 33 | |
| 34 | include hτ1 hTi hJ hX hCθ hCM hCMn hCHn hc hbaseH hbaseK hK hTib hCMb hCHb hTheta hSigma hchild hMb |
| 35 | |
| 36 | theorem joined_bad_pressure_cost_bound : |
| 37 | 2*M*A.hchild*A.badRatio ≤ badCost J Cθ CM CMn CHn c (scaleSequence J X) n := by |
| 38 | have hx := quadratic_growth_one_le J (by omega) (scaleSequence J X) hX (scaleSequence_succ J X) |
| 39 | have hs : 1 ≤ P.shear := by |
| 40 | have hh := mul_le_mul_of_nonneg_left hτ1 A.shear_pos.le |
| 41 | nlinarith only [hh,A.history_layer] |
| 42 | have hi : P.shear⁻¹ ≤ 1 := (inv_le_one₀ A.shear_pos).2 hs |
| 43 | have hQ := parameters_le_source_exponential J D hJ X c hX hc hbaseH hbaseK n |
| 44 | L.K Ti P.shear⁻¹ A.CM A.CH CMn CHn hK hTib hi hCMb hCHb hCMn hCHn |
| 45 | have ht0 := (inv_pos.mpr hτ).le.trans hTi |
| 46 | have hQ0 : 0 ≤ 1+L.K+Ti+P.shear⁻¹+A.CM+A.CH := by |
| 47 | positivity [L.K_one,A.shear_pos,A.CM_nonneg,A.CH_nonneg] |
| 48 | have hM' := hMb.trans (mul_le_mul_of_nonneg_left |
| 49 | (previousShear_le_normal J (by omega) X hbaseH n) hCM) |
| 50 | exact badCost_bound J hJ Cθ CM CMn CHn c hCθ hCM hCMn hCHn (scaleSequence J X) hx n |
| 51 | M A.hchild A.badRatio (1+L.K+Ti+P.shear⁻¹+A.CM+A.CH) P.horizon P.sigma |
| 52 | A.child_nonneg A.badRatio_nonneg hQ0 (zero_le_one.trans A.horizon_lower) A.sigma_pos |
| 53 | hM' hchild hQ hTheta hSigma |
| 54 | (L.badRatio_polynomial m hm R S hS H τ hτ hτT P A Ti hτ1 hTi) |
| 55 | |
| 56 | theorem joined_upper_pressure_cost_bound (hdelta : A.δ ≤ spike J X n) : |
| 57 | 2*M*A.hchild*(A.δ*goodRatio+A.badRatio) ≤ |
| 58 | 2*CM*goodRatio*goodCost J (scaleSequence J X) n+ |
| 59 | badCost J Cθ CM CMn CHn c (scaleSequence J X) n := by |
| 60 | have hb := L.joined_bad_pressure_cost_bound m hm R S hS H τ hτ hτT P A Ti hτ1 hTi |
| 61 | J D hJ X Cθ CM CMn CHn c hX hCθ hCM hCMn hCHn hc hbaseH hbaseK n M |
| 62 | hK hTib hCMb hCHb hTheta hSigma hchild hMb |
| 63 | have hg := goodCost_bound J (by omega) X CM M A.δ A.hchild hCM A.delta_nonneg A.child_nonneg |
| 64 | hbaseH n hMb hdelta hchild |
| 65 | calc |
| 66 | _ = 2*M*A.hchild*(A.δ*goodRatio)+2*M*A.hchild*A.badRatio := by ring |
| 67 | _ ≤ _ := add_le_add hg hb |
| 68 | |
| 69 | end EulerParentPacketFrames.LabelData |
| 70 | |
| 71 | namespace EulerPacketSourceGeometry.ForwardGuards |
| 72 | |
| 73 | open Real EulerSmoothLimit EulerPacketGeometryLowBounds EulerParentBadRatio |
| 74 | EulerPacketPressureScale EulerPacketSourceScaleSequence EulerPacketSourceScaleChoice |
| 75 | EulerPacketSourceScales EulerScale |
| 76 | |
| 77 | variable {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 78 | {D : EulerTransversePacketProvider.Data U} {P : ParentFrame D 0} (A : ForwardGuards P) |
| 79 | |
| 80 | omit [CompleteSpace U] in |
| 81 | theorem earlyRatio_bound : |
| 82 | A.earlyRatio ≤ badConstant*1^degree*P.horizon^5*exp (-(1/(4*P.sigma))) := by |
| 83 | have hh : cutoffBound*(8232*exp 9*P.horizon^5) ≤ |
| 84 | cutoffBound*(8232*exp 9*P.horizon^5+4*P.horizon*(constant*1^degree)) := by |
| 85 | apply mul_le_mul_of_nonneg_left _ cutoffBound_pos.le |
| 86 | exact le_add_of_nonneg_right (by positivity [A.horizon_lower,constant_pos]) |
| 87 | rw [show A.earlyRatio=cutoffBound*(8232*exp 9*P.horizon^5)*exp (-(1/(4*P.sigma))) by |
| 88 | unfold earlyRatio |
| 89 | ring] |
| 90 | apply (mul_le_mul_of_nonneg_right hh (exp_pos _).le).trans |
| 91 | exact mul_le_mul_of_nonneg_right (prefactor_bound 1 P.horizon le_rfl A.horizon_lower) (exp_pos _).le |
| 92 | |
| 93 | variable (J : ℕ) (hJ : 3 ≤ J) (X Cθ CM CMn CHn c : ℝ) |
| 94 | (hX : 1 ≤ X) (hCθ : 1 ≤ Cθ) (hCM : 0 ≤ CM) (hCMn : 0 ≤ CMn) (hCHn : 0 ≤ CHn) (hc : 0 ≤ c) |
| 95 | (hbaseH : X^1000 ≤ exp (X/((J-1 : ℕ) : ℝ)^7)) |
| 96 | (n : ℕ) (M : ℝ) |
| 97 | (hTheta : P.horizon ≤ sourceTheta J Cθ (scaleSequence J X) n) |
| 98 | (hSigma : P.sigma*scaleSequence J X n ≤ 2) |
| 99 | (hchild : A.hchild ≤ shear J X n) (hMb : M ≤ CM*previousShear J X n) |
| 100 | |
| 101 | include hJ hX hCθ hCM hCMn hCHn hc hbaseH hTheta hSigma hchild hMb |
| 102 | |
| 103 | omit [CompleteSpace U] in |
| 104 | theorem bad_pressure_cost_bound : |
| 105 | 2*M*A.hchild*A.earlyRatio ≤ badCost J Cθ CM CMn CHn c (scaleSequence J X) n := by |
| 106 | have hx := quadratic_growth_one_le J (by omega) (scaleSequence J X) hX (scaleSequence_succ J X) |
| 107 | have hz : 0 ≤ c*(scaleSequence J X n/((J-1+n : ℕ) : ℝ)^4) := by positivity [hx n] |
| 108 | have he := one_le_exp hz |
| 109 | have hQ : 1 ≤ (4+CMn+CHn)*exp (c*(scaleSequence J X n/((J-1+n : ℕ) : ℝ)^4)) := by |
| 110 | nlinarith only [he,mul_nonneg hCMn (zero_le_one.trans he),mul_nonneg hCHn (zero_le_one.trans he)] |
| 111 | have hM' := hMb.trans (mul_le_mul_of_nonneg_left |
| 112 | (previousShear_le_normal J (by omega) X hbaseH n) hCM) |
| 113 | exact badCost_bound J hJ Cθ CM CMn CHn c hCθ hCM hCMn hCHn (scaleSequence J X) hx n |
| 114 | M A.hchild A.earlyRatio 1 P.horizon P.sigma A.child_nonneg A.earlyRatio_nonneg zero_le_one |
| 115 | (zero_le_one.trans A.horizon_lower) A.sigma_pos hM' hchild hQ hTheta hSigma A.earlyRatio_bound |
| 116 | |
| 117 | omit [CompleteSpace U] in |
| 118 | theorem upper_pressure_cost_bound (hdelta : A.δ ≤ spike J X n) : |
| 119 | 2*M*A.hchild*(A.δ*goodRatio+A.earlyRatio) ≤ |
| 120 | 2*CM*goodRatio*goodCost J (scaleSequence J X) n+ |
| 121 | badCost J Cθ CM CMn CHn c (scaleSequence J X) n := by |
| 122 | have hb := A.bad_pressure_cost_bound J hJ X Cθ CM CMn CHn c hX hCθ hCM hCMn hCHn hc |
| 123 | hbaseH n M hTheta hSigma hchild hMb |
| 124 | have hg := goodCost_bound J (by omega) X CM M A.δ A.hchild hCM A.delta_nonneg A.child_nonneg |
| 125 | hbaseH n hMb hdelta hchild |
| 126 | calc |
| 127 | _ = 2*M*A.hchild*(A.δ*goodRatio)+2*M*A.hchild*A.earlyRatio := by ring |
| 128 | _ ≤ _ := add_le_add hg hb |
| 129 | |
| 130 | end EulerPacketSourceGeometry.ForwardGuards |