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.BasePacketFrequencyCost |
| 2 | import Euler.PacketUniversalFrequency |
| 3 | import Euler.PacketLowConstants |
| 4 | import Euler.PacketLowBoundPropagation |
| 5 | |
| 6 | /-! The literal polynomial first-packet scales satisfy every local, |
| 7 | frequency and localized lower-bound guard after the final base choice. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerBaseDatum |
| 12 | |
| 13 | open Real Filter EulerPacketBaseScales EulerPacketBaseGuardScales EulerPacketSourceFrequency |
| 14 | EulerPacketUniformSource EulerPacketLowConstants EulerPacketLowBoundPropagation |
| 15 | EulerPacketFirstLowBounds EulerMeanHarmonic |
| 16 | open scoped Topology |
| 17 | |
| 18 | def literalInitialError (D : ℕ) (X : ℝ) : ℝ := (X^D)^(-(1/4 : ℝ)) |
| 19 | |
| 20 | def literalInitialPressureCost (D : ℕ) (X : ℝ) : ℝ := |
| 21 | 2*initialCoefficientCost*X^(-1010 : ℝ)*(X^1000*firstRatio)+literalInitialError D X |
| 22 | |
| 23 | theorem literalInitialError_nonneg (D : ℕ) (X : ℝ) (hX : 0 ≤ X) : |
| 24 | 0 ≤ literalInitialError D X := rpow_nonneg (pow_nonneg hX D) _ |
| 25 | |
| 26 | theorem literalInitialError_tendsto_zero (D : ℕ) (hD : 0 < D) : |
| 27 | Tendsto (literalInitialError D) atTop (𝓝 0) := by |
| 28 | exact (tendsto_rpow_neg_atTop (by norm_num : (0 : ℝ) < 1/4)).comp |
| 29 | (tendsto_pow_atTop (Nat.ne_of_gt hD)) |
| 30 | |
| 31 | theorem literalInitialPressureCost_tendsto_zero (D : ℕ) (hD : 0 < D) : |
| 32 | Tendsto (literalInitialPressureCost D) atTop (𝓝 0) := by |
| 33 | have hp : Tendsto (fun X : ℝ => X^(-1010 : ℝ)*X^1000) atTop (𝓝 0) := by |
| 34 | simpa only [pow_zero,mul_one] using base_power_decay 1 (-1010) 0 1000 (by norm_num) |
| 35 | have h := (hp.const_mul (2*initialCoefficientCost*firstRatio)).add |
| 36 | (literalInitialError_tendsto_zero D hD) |
| 37 | simp only [mul_zero,zero_add] at h |
| 38 | convert! h using 1 |
| 39 | funext X |
| 40 | unfold literalInitialPressureCost |
| 41 | ring |
| 42 | |
| 43 | theorem literal_radius_frequency_bound (D : ℕ) (hD : 2000 ≤ D) (X : ℝ) (hX : 1 ≤ X) : |
| 44 | (baseRadius X)⁻¹ ≤ (X^D)^(3/4 : ℝ) := by |
| 45 | have hX0 := zero_le_one.trans hX |
| 46 | have hDr : (2000 : ℝ) ≤ D := by exact_mod_cast hD |
| 47 | unfold baseRadius |
| 48 | rw [rpow_neg hX0,inv_inv] |
| 49 | calc |
| 50 | _ ≤ X^((D : ℝ)*(3/4 : ℝ)) := rpow_le_rpow_of_exponent_le hX (by linarith) |
| 51 | _ = _ := by rw [rpow_mul hX0,rpow_natCast] |
| 52 | |
| 53 | structure FirstScaleGuards (J D : ℕ) (X : ℝ) : Prop where |
| 54 | x_one : 1 ≤ X |
| 55 | radius_small : baseRadius X ≤ 1/4 |
| 56 | local_time : baseHorizon J X ≤ initialTime |
| 57 | frequency : UniversalFrequency (X^D) |
| 58 | label_frequency : solutionLabelConstant ≤ X^D |
| 59 | radius_frequency : (baseRadius X)⁻¹ ≤ (X^D)^(3/4 : ℝ) |
| 60 | source_frequency : EulerPacketInitializedOutputCost.uniformConstant* |
| 61 | (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ |
| 62 | EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) |
| 63 | error_small : literalInitialError D X ≤ 1 |
| 64 | pressure_small : literalInitialPressureCost D X ≤ 1/4 |
| 65 | localized : (initialCoefficientCost+literalInitialPressureCost D X)*((baseHorizon J X)^2/2)+ |
| 66 | initialCoefficientCost*baseHorizon J X+ |
| 67 | boundaryLocalizationC2*(initialCoefficientCost+X^1000*firstRatio+literalInitialError D X)* |
| 68 | (baseRadius X)^3*baseHorizon J X ≤ 1/2 |
| 69 | |
| 70 | theorem eventually_firstScaleGuards (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) (hD : 2000 ≤ D) |
| 71 | (hDfreq : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : |
| 72 | ∀ᶠ X : ℝ in atTop, FirstScaleGuards J D X := by |
| 73 | have hDpos : 0 < D := by omega |
| 74 | have hp : Tendsto (fun X : ℝ => X^D) atTop atTop := tendsto_pow_atTop (Nat.ne_of_gt hDpos) |
| 75 | filter_upwards [eventually_base_guards J hJ (initialCoefficientCost+1) (initialCoefficientCost+1) |
| 76 | gradientConstant boundaryLocalizationC2 initialTime initialTime_pos, |
| 77 | hp.eventually universal_frequency_eventually, |
| 78 | hp.eventually (eventually_ge_atTop solutionLabelConstant), |
| 79 | first_frequency_guard_eventually J hJ D hDfreq, |
| 80 | (literalInitialError_tendsto_zero D hDpos).eventually_le_const zero_lt_one, |
| 81 | (literalInitialPressureCost_tendsto_zero D hDpos).eventually_le_const (by norm_num : (0 : ℝ) < 1/4)] |
| 82 | with X hb hfreq hlabel hsource herr hpressure |
| 83 | have hX : 1 ≤ X := hb.1.le |
| 84 | have hX0 := zero_le_one.trans hX |
| 85 | have hC0 := initialCoefficientCost_nonneg |
| 86 | have he0 := literalInitialError_nonneg D X hX0 |
| 87 | have hc0 : 0 ≤ initialCoefficientCost+X^1000*firstRatio+literalInitialError D X := by |
| 88 | positivity [firstRatio_pos] |
| 89 | have hp0 : 0 ≤ literalInitialPressureCost D X := by |
| 90 | unfold literalInitialPressureCost |
| 91 | positivity [firstRatio_pos] |
| 92 | have hcore := (initial_bounds (X^1000) (literalInitialError D X) (one_le_pow₀ hX) herr).1 |
| 93 | refine ⟨hX,hb.2.2.2.2.1,hb.2.2.1,hfreq,hlabel,literal_radius_frequency_bound D hD X hX, |
| 94 | hsource,herr,hpressure,?_⟩ |
| 95 | apply localized_guard J X (initialCoefficientCost+literalInitialPressureCost D X) |
| 96 | initialCoefficientCost (initialCoefficientCost+X^1000*firstRatio+literalInitialError D X) |
| 97 | (initialCoefficientCost+1) (initialCoefficientCost+1) gradientConstant boundaryLocalizationC2 |
| 98 | (baseHorizon J X) (add_nonneg hC0 hp0) hC0 hc0 hb.2.1.le |
| 99 | boundaryLocalizationC2_nonneg hb.2.2.2.1.le |
| 100 | · linarith only [hpressure] |
| 101 | · linarith |
| 102 | · linarith only [hcore] |
| 103 | · exact le_rfl |
| 104 | · exact hb.2.2.2.2.2 |
| 105 | |
| 106 | end EulerBaseDatum |