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.BasePacketUniformCosts |
| 2 | import Euler.PacketBaseGuardScales |
| 3 | import Euler.PacketUniversalFrequency |
| 4 | import Euler.PacketLowConstants |
| 5 | import Euler.PacketLowBoundPropagation |
| 6 | |
| 7 | /-! The literal polynomial first-packet scales satisfy every local, |
| 8 | frequency and localized lower-bound guard after the final base choice. -/ |
| 9 | |
| 10 | /-! ## From `Euler/BasePacketFrequencyCost.lean` |
| 11 | |
| 12 | The text of `Euler/BasePacketFrequencyCost.lean`, folded into this file, which was its only importer. -/ |
| 13 | |
| 14 | section |
| 15 | |
| 16 | /-! The manuscript's literal first-packet scales have a fixed monomial |
| 17 | frequency cost. The exponent and coefficient do not depend on J or X. -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace EulerBaseDatum |
| 22 | |
| 23 | open Real Filter EulerPacketBaseGuardScales EulerPacketUniformSource EulerPacketSourceFrequency |
| 24 | |
| 25 | theorem firstParameterSize_literal (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : |
| 26 | firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) ≤ |
| 27 | (7+solutionLabelConstant)*X^1010 := by |
| 28 | have hX0 := zero_le_one.trans hX |
| 29 | have hJr : (1 : ℝ) ≤ J := by exact_mod_cast hJ |
| 30 | have hden : 1 ≤ 6*(J : ℝ)^2 := by nlinarith |
| 31 | have hi : (6*(J : ℝ)^2)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hden |
| 32 | have hT : (baseHorizon J X)⁻¹ ≤ X^498 := by |
| 33 | unfold baseHorizon |
| 34 | rw [mul_inv_rev,Real.rpow_neg hX0,inv_inv] |
| 35 | norm_num only [Real.rpow_ofNat] |
| 36 | exact (mul_le_mul_of_nonneg_left hi (pow_nonneg hX0 498)).trans_eq (mul_one _) |
| 37 | have hd : (X^(-1010 : ℝ))⁻¹=X^1010 := by |
| 38 | rw [Real.rpow_neg hX0,inv_inv] |
| 39 | norm_num only [Real.rpow_ofNat] |
| 40 | have ht : X^498 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) |
| 41 | have hh : X^1000 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) |
| 42 | have hK := solutionLabelConstant_one |
| 43 | have hone : (1 : ℝ) ≤ X^1010 := one_le_pow₀ hX |
| 44 | have hc : 4+solutionLabelConstant ≤ (4+solutionLabelConstant)*X^1010 := by |
| 45 | simpa only [mul_one] using mul_le_mul_of_nonneg_left hone (by linarith : 0 ≤ 4+solutionLabelConstant) |
| 46 | unfold firstParameterSize |
| 47 | rw [hd] |
| 48 | linarith only [hT.trans ht,hh,hc] |
| 49 | |
| 50 | def firstFrequencyConstant : ℝ := frequencyConstant*(7+solutionLabelConstant)^frequencyPower |
| 51 | def firstFrequencyPower : ℕ := 1010*frequencyPower |
| 52 | |
| 53 | theorem first_frequency_cost_bound (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : |
| 54 | EulerPacketInitializedOutputCost.uniformConstant* |
| 55 | (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ |
| 56 | EulerPacketInitializedOutputCost.uniformPower ≤ firstFrequencyConstant*X^firstFrequencyPower := by |
| 57 | have hXpos := zero_lt_one.trans_le hX |
| 58 | have hp := (firstParameterSize_bounds (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) |
| 59 | (baseHorizon_pos J hJ hXpos) (Real.rpow_pos_of_pos hXpos _) (pow_nonneg hXpos.le _)).1 |
| 60 | apply (frequency_bound _ hp).trans |
| 61 | calc |
| 62 | _ ≤ frequencyConstant*((7+solutionLabelConstant)*X^1010)^frequencyPower := by |
| 63 | apply mul_le_mul_of_nonneg_left _ frequencyConstant_pos.le |
| 64 | exact pow_le_pow_left₀ (zero_le_one.trans hp) (firstParameterSize_literal J hJ X hX) _ |
| 65 | _ = _ := by |
| 66 | unfold firstFrequencyConstant firstFrequencyPower |
| 67 | rw [mul_pow,← pow_mul] |
| 68 | ring |
| 69 | |
| 70 | /-- This remaining threshold depends only on the fixed base exponent, |
| 71 | not on a parent or on a stage of the subsequent induction. -/ |
| 72 | theorem first_frequency_guard_eventually (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) |
| 73 | (hD : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : |
| 74 | ∀ᶠ X : ℝ in atTop, |
| 75 | EulerPacketInitializedOutputCost.uniformConstant* |
| 76 | (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ |
| 77 | EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) := by |
| 78 | have hgap : 0 < (D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ) := sub_pos.mpr hD |
| 79 | filter_upwards [eventually_ge_atTop (1 : ℝ), |
| 80 | (_root_.tendsto_rpow_atTop hgap).eventually_ge_atTop firstFrequencyConstant] with X hX hC |
| 81 | have hXp := zero_lt_one.trans_le hX |
| 82 | apply (first_frequency_cost_bound J hJ X hX).trans |
| 83 | calc |
| 84 | _ ≤ X^((D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ))*X^firstFrequencyPower := |
| 85 | mul_le_mul_of_nonneg_right hC (pow_nonneg hXp.le _) |
| 86 | _ = X^((D : ℝ)*(theta/100)) := by |
| 87 | rw [← Real.rpow_natCast X firstFrequencyPower,← Real.rpow_add hXp] |
| 88 | congr 1 |
| 89 | ring |
| 90 | _ = smallPower (X^D) := by |
| 91 | unfold smallPower |
| 92 | rw [Real.rpow_mul hXp.le,Real.rpow_natCast] |
| 93 | |
| 94 | end EulerBaseDatum |
| 95 | end |
| 96 | |
| 97 | end |
| 98 | |
| 99 | noncomputable section |
| 100 | |
| 101 | namespace EulerBaseDatum |
| 102 | |
| 103 | open Real Filter EulerPacketBaseScales EulerPacketBaseGuardScales EulerPacketSourceFrequency |
| 104 | EulerPacketUniformSource EulerPacketLowConstants EulerPacketLowBoundPropagation |
| 105 | EulerPacketFirstLowBounds EulerMeanHarmonic |
| 106 | open scoped Topology |
| 107 | |
| 108 | def literalInitialError (D : ℕ) (X : ℝ) : ℝ := (X^D)^(-(1/4 : ℝ)) |
| 109 | |
| 110 | def literalInitialPressureCost (D : ℕ) (X : ℝ) : ℝ := |
| 111 | 2*initialCoefficientCost*X^(-1010 : ℝ)*(X^1000*firstRatio)+literalInitialError D X |
| 112 | |
| 113 | theorem literalInitialError_nonneg (D : ℕ) (X : ℝ) (hX : 0 ≤ X) : |
| 114 | 0 ≤ literalInitialError D X := rpow_nonneg (pow_nonneg hX D) _ |
| 115 | |
| 116 | theorem literalInitialError_tendsto_zero (D : ℕ) (hD : 0 < D) : |
| 117 | Tendsto (literalInitialError D) atTop (𝓝 0) := by |
| 118 | exact (tendsto_rpow_neg_atTop (by norm_num : (0 : ℝ) < 1/4)).comp |
| 119 | (tendsto_pow_atTop (Nat.ne_of_gt hD)) |
| 120 | |
| 121 | theorem literalInitialPressureCost_tendsto_zero (D : ℕ) (hD : 0 < D) : |
| 122 | Tendsto (literalInitialPressureCost D) atTop (𝓝 0) := by |
| 123 | have hp : Tendsto (fun X : ℝ => X^(-1010 : ℝ)*X^1000) atTop (𝓝 0) := by |
| 124 | simpa only [pow_zero,mul_one] using base_power_decay 1 (-1010) 0 1000 (by norm_num) |
| 125 | have h := (hp.const_mul (2*initialCoefficientCost*firstRatio)).add |
| 126 | (literalInitialError_tendsto_zero D hD) |
| 127 | simp only [mul_zero,zero_add] at h |
| 128 | convert! h using 1 |
| 129 | funext X |
| 130 | unfold literalInitialPressureCost |
| 131 | ring |
| 132 | |
| 133 | theorem literal_radius_frequency_bound (D : ℕ) (hD : 2000 ≤ D) (X : ℝ) (hX : 1 ≤ X) : |
| 134 | (baseRadius X)⁻¹ ≤ (X^D)^(3/4 : ℝ) := by |
| 135 | have hX0 := zero_le_one.trans hX |
| 136 | have hDr : (2000 : ℝ) ≤ D := by exact_mod_cast hD |
| 137 | unfold baseRadius |
| 138 | rw [rpow_neg hX0,inv_inv] |
| 139 | calc |
| 140 | _ ≤ X^((D : ℝ)*(3/4 : ℝ)) := rpow_le_rpow_of_exponent_le hX (by linarith) |
| 141 | _ = _ := by rw [rpow_mul hX0,rpow_natCast] |
| 142 | |
| 143 | structure FirstScaleGuards (J D : ℕ) (X : ℝ) : Prop where |
| 144 | x_one : 1 ≤ X |
| 145 | radius_small : baseRadius X ≤ 1/4 |
| 146 | local_time : baseHorizon J X ≤ initialTime |
| 147 | frequency : UniversalFrequency (X^D) |
| 148 | label_frequency : solutionLabelConstant ≤ X^D |
| 149 | radius_frequency : (baseRadius X)⁻¹ ≤ (X^D)^(3/4 : ℝ) |
| 150 | source_frequency : EulerPacketInitializedOutputCost.uniformConstant* |
| 151 | (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ |
| 152 | EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) |
| 153 | error_small : literalInitialError D X ≤ 1 |
| 154 | pressure_small : literalInitialPressureCost D X ≤ 1/4 |
| 155 | localized : (initialCoefficientCost+literalInitialPressureCost D X)*((baseHorizon J X)^2/2)+ |
| 156 | initialCoefficientCost*baseHorizon J X+ |
| 157 | boundaryLocalizationC2*(initialCoefficientCost+X^1000*firstRatio+literalInitialError D X)* |
| 158 | (baseRadius X)^3*baseHorizon J X ≤ 1/2 |
| 159 | |
| 160 | theorem eventually_firstScaleGuards (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) (hD : 2000 ≤ D) |
| 161 | (hDfreq : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : |
| 162 | ∀ᶠ X : ℝ in atTop, FirstScaleGuards J D X := by |
| 163 | have hDpos : 0 < D := by omega |
| 164 | have hp : Tendsto (fun X : ℝ => X^D) atTop atTop := tendsto_pow_atTop (Nat.ne_of_gt hDpos) |
| 165 | filter_upwards [eventually_base_guards J hJ (initialCoefficientCost+1) (initialCoefficientCost+1) |
| 166 | gradientConstant boundaryLocalizationC2 initialTime initialTime_pos, |
| 167 | hp.eventually universal_frequency_eventually, |
| 168 | hp.eventually (eventually_ge_atTop solutionLabelConstant), |
| 169 | first_frequency_guard_eventually J hJ D hDfreq, |
| 170 | (literalInitialError_tendsto_zero D hDpos).eventually_le_const zero_lt_one, |
| 171 | (literalInitialPressureCost_tendsto_zero D hDpos).eventually_le_const (by norm_num : (0 : ℝ) < 1/4)] |
| 172 | with X hb hfreq hlabel hsource herr hpressure |
| 173 | have hX : 1 ≤ X := hb.1.le |
| 174 | have hX0 := zero_le_one.trans hX |
| 175 | have hC0 := initialCoefficientCost_nonneg |
| 176 | have he0 := literalInitialError_nonneg D X hX0 |
| 177 | have hc0 : 0 ≤ initialCoefficientCost+X^1000*firstRatio+literalInitialError D X := by |
| 178 | positivity [firstRatio_pos] |
| 179 | have hp0 : 0 ≤ literalInitialPressureCost D X := by |
| 180 | unfold literalInitialPressureCost |
| 181 | positivity [firstRatio_pos] |
| 182 | have hcore := (initial_bounds (X^1000) (literalInitialError D X) (one_le_pow₀ hX) herr).1 |
| 183 | refine ⟨hX,hb.2.2.2.2.1,hb.2.2.1,hfreq,hlabel,literal_radius_frequency_bound D hD X hX, |
| 184 | hsource,herr,hpressure,?_⟩ |
| 185 | apply localized_guard J X (initialCoefficientCost+literalInitialPressureCost D X) |
| 186 | initialCoefficientCost (initialCoefficientCost+X^1000*firstRatio+literalInitialError D X) |
| 187 | (initialCoefficientCost+1) (initialCoefficientCost+1) gradientConstant boundaryLocalizationC2 |
| 188 | (baseHorizon J X) (add_nonneg hC0 hp0) hC0 hc0 hb.2.1.le |
| 189 | boundaryLocalizationC2_nonneg hb.2.2.2.1.le |
| 190 | · linarith only [hpressure] |
| 191 | · linarith |
| 192 | · linarith only [hcore] |
| 193 | · exact le_rfl |
| 194 | · exact hb.2.2.2.2.2 |
| 195 | |
| 196 | end EulerBaseDatum |