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 | theorem joined_initial_gradient_cost_bound (hMone : 1 ≤ M) (ev : ℝ) : |
| 70 | A.hchild*A.badRatio+ev ≤ badCost J Cθ CM CMn CHn c (scaleSequence J X) n+ev := by |
| 71 | have hb := L.joined_bad_pressure_cost_bound m hm R S hS H τ hτ hτT P A Ti hτ1 hTi |
| 72 | J D hJ X Cθ CM CMn CHn c hX hCθ hCM hCMn hCHn hc hbaseH hbaseK n M |
| 73 | hK hTib hCMb hCHb hTheta hSigma hchild hMb |
| 74 | have hbase : A.hchild*A.badRatio ≤ 2*M*A.hchild*A.badRatio := by |
| 75 | nlinarith only [mul_nonneg (by linarith only [hMone] : 0 ≤ 2*M-1) |
| 76 | (mul_nonneg A.child_nonneg A.badRatio_nonneg)] |
| 77 | exact add_le_add (hbase.trans hb) le_rfl |
| 78 | |
| 79 | end EulerParentPacketFrames.LabelData |
| 80 | |
| 81 | namespace EulerPacketSourceGeometry.ForwardGuards |
| 82 | |
| 83 | open Real EulerSmoothLimit EulerPacketGeometryLowBounds EulerParentBadRatio |
| 84 | EulerPacketPressureScale EulerPacketSourceScaleSequence EulerPacketSourceScaleChoice |
| 85 | EulerPacketSourceScales EulerScale |
| 86 | |
| 87 | variable {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 88 | {D : EulerTransversePacketProvider.Data U} {P : ParentFrame D 0} (A : ForwardGuards P) |
| 89 | |
| 90 | omit [CompleteSpace U] in |
| 91 | theorem earlyRatio_bound : |
| 92 | A.earlyRatio ≤ badConstant*1^degree*P.horizon^5*exp (-(1/(4*P.sigma))) := by |
| 93 | have hh : cutoffBound*(8232*exp 9*P.horizon^5) ≤ |
| 94 | cutoffBound*(8232*exp 9*P.horizon^5+4*P.horizon*(constant*1^degree)) := by |
| 95 | apply mul_le_mul_of_nonneg_left _ cutoffBound_pos.le |
| 96 | exact le_add_of_nonneg_right (by positivity [A.horizon_lower,constant_pos]) |
| 97 | rw [show A.earlyRatio=cutoffBound*(8232*exp 9*P.horizon^5)*exp (-(1/(4*P.sigma))) by |
| 98 | unfold earlyRatio |
| 99 | ring] |
| 100 | apply (mul_le_mul_of_nonneg_right hh (exp_pos _).le).trans |
| 101 | exact mul_le_mul_of_nonneg_right (prefactor_bound 1 P.horizon le_rfl A.horizon_lower) (exp_pos _).le |
| 102 | |
| 103 | variable (J : ℕ) (hJ : 3 ≤ J) (X Cθ CM CMn CHn c : ℝ) |
| 104 | (hX : 1 ≤ X) (hCθ : 1 ≤ Cθ) (hCM : 0 ≤ CM) (hCMn : 0 ≤ CMn) (hCHn : 0 ≤ CHn) (hc : 0 ≤ c) |
| 105 | (hbaseH : X^1000 ≤ exp (X/((J-1 : ℕ) : ℝ)^7)) |
| 106 | (n : ℕ) (M : ℝ) |
| 107 | (hTheta : P.horizon ≤ sourceTheta J Cθ (scaleSequence J X) n) |
| 108 | (hSigma : P.sigma*scaleSequence J X n ≤ 2) |
| 109 | (hchild : A.hchild ≤ shear J X n) (hMb : M ≤ CM*previousShear J X n) |
| 110 | |
| 111 | include hJ hX hCθ hCM hCMn hCHn hc hbaseH hTheta hSigma hchild hMb |
| 112 | |
| 113 | omit [CompleteSpace U] in |
| 114 | theorem bad_pressure_cost_bound : |
| 115 | 2*M*A.hchild*A.earlyRatio ≤ badCost J Cθ CM CMn CHn c (scaleSequence J X) n := by |
| 116 | have hx := quadratic_growth_one_le J (by omega) (scaleSequence J X) hX (scaleSequence_succ J X) |
| 117 | have hz : 0 ≤ c*(scaleSequence J X n/((J-1+n : ℕ) : ℝ)^4) := by positivity [hx n] |
| 118 | have he := one_le_exp hz |
| 119 | have hQ : 1 ≤ (4+CMn+CHn)*exp (c*(scaleSequence J X n/((J-1+n : ℕ) : ℝ)^4)) := by |
| 120 | nlinarith only [he,mul_nonneg hCMn (zero_le_one.trans he),mul_nonneg hCHn (zero_le_one.trans he)] |
| 121 | have hM' := hMb.trans (mul_le_mul_of_nonneg_left |
| 122 | (previousShear_le_normal J (by omega) X hbaseH n) hCM) |
| 123 | exact badCost_bound J hJ Cθ CM CMn CHn c hCθ hCM hCMn hCHn (scaleSequence J X) hx n |
| 124 | M A.hchild A.earlyRatio 1 P.horizon P.sigma A.child_nonneg A.earlyRatio_nonneg zero_le_one |
| 125 | (zero_le_one.trans A.horizon_lower) A.sigma_pos hM' hchild hQ hTheta hSigma A.earlyRatio_bound |
| 126 | |
| 127 | omit [CompleteSpace U] in |
| 128 | theorem upper_pressure_cost_bound (hdelta : A.δ ≤ spike J X n) : |
| 129 | 2*M*A.hchild*(A.δ*goodRatio+A.earlyRatio) ≤ |
| 130 | 2*CM*goodRatio*goodCost J (scaleSequence J X) n+ |
| 131 | badCost J Cθ CM CMn CHn c (scaleSequence J X) n := by |
| 132 | have hb := A.bad_pressure_cost_bound J hJ X Cθ CM CMn CHn c hX hCθ hCM hCMn hCHn hc |
| 133 | hbaseH n M hTheta hSigma hchild hMb |
| 134 | have hg := goodCost_bound J (by omega) X CM M A.δ A.hchild hCM A.delta_nonneg A.child_nonneg |
| 135 | hbaseH n hMb hdelta hchild |
| 136 | calc |
| 137 | _ = 2*M*A.hchild*(A.δ*goodRatio)+2*M*A.hchild*A.earlyRatio := by ring |
| 138 | _ ≤ _ := add_le_add hg hb |
| 139 | |
| 140 | omit [CompleteSpace U] in |
| 141 | theorem initial_gradient_cost_bound (hMone : 1 ≤ M) (ev : ℝ) : |
| 142 | A.hchild*A.earlyRatio+ev ≤ badCost J Cθ CM CMn CHn c (scaleSequence J X) n+ev := by |
| 143 | have hb := A.bad_pressure_cost_bound J hJ X Cθ CM CMn CHn c hX hCθ hCM hCMn hCHn hc |
| 144 | hbaseH n M hTheta hSigma hchild hMb |
| 145 | have hbase : A.hchild*A.earlyRatio ≤ 2*M*A.hchild*A.earlyRatio := by |
| 146 | nlinarith only [mul_nonneg (by linarith only [hMone] : 0 ≤ 2*M-1) |
| 147 | (mul_nonneg A.child_nonneg A.earlyRatio_nonneg)] |
| 148 | exact add_le_add (hbase.trans hb) le_rfl |
| 149 | |
| 150 | end EulerPacketSourceGeometry.ForwardGuards |