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 | |
| 4 | /-! The manuscript's literal first-packet scales have a fixed monomial |
| 5 | frequency cost. The exponent and coefficient do not depend on J or X. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerBaseDatum |
| 10 | |
| 11 | open Real Filter EulerPacketBaseGuardScales EulerPacketUniformSource EulerPacketSourceFrequency |
| 12 | |
| 13 | theorem firstParameterSize_literal (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : |
| 14 | firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) ≤ |
| 15 | (7+solutionLabelConstant)*X^1010 := by |
| 16 | have hX0 := zero_le_one.trans hX |
| 17 | have hJr : (1 : ℝ) ≤ J := by exact_mod_cast hJ |
| 18 | have hden : 1 ≤ 6*(J : ℝ)^2 := by nlinarith |
| 19 | have hi : (6*(J : ℝ)^2)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hden |
| 20 | have hT : (baseHorizon J X)⁻¹ ≤ X^498 := by |
| 21 | unfold baseHorizon |
| 22 | rw [mul_inv_rev,Real.rpow_neg hX0,inv_inv] |
| 23 | norm_num only [Real.rpow_ofNat] |
| 24 | exact (mul_le_mul_of_nonneg_left hi (pow_nonneg hX0 498)).trans_eq (mul_one _) |
| 25 | have hd : (X^(-1010 : ℝ))⁻¹=X^1010 := by |
| 26 | rw [Real.rpow_neg hX0,inv_inv] |
| 27 | norm_num only [Real.rpow_ofNat] |
| 28 | have ht : X^498 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) |
| 29 | have hh : X^1000 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) |
| 30 | have hK := solutionLabelConstant_one |
| 31 | have hone : (1 : ℝ) ≤ X^1010 := one_le_pow₀ hX |
| 32 | have hc : 4+solutionLabelConstant ≤ (4+solutionLabelConstant)*X^1010 := by |
| 33 | simpa only [mul_one] using mul_le_mul_of_nonneg_left hone (by linarith : 0 ≤ 4+solutionLabelConstant) |
| 34 | unfold firstParameterSize |
| 35 | rw [hd] |
| 36 | nlinarith only [hT.trans ht,hh,hc] |
| 37 | |
| 38 | def firstFrequencyConstant : ℝ := frequencyConstant*(7+solutionLabelConstant)^frequencyPower |
| 39 | def firstFrequencyPower : ℕ := 1010*frequencyPower |
| 40 | |
| 41 | theorem firstFrequencyConstant_pos : 0 < firstFrequencyConstant := by |
| 42 | have hK := solutionLabelConstant_one |
| 43 | unfold firstFrequencyConstant |
| 44 | exact mul_pos frequencyConstant_pos (pow_pos (by linarith) _) |
| 45 | |
| 46 | theorem first_frequency_cost_bound (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : |
| 47 | EulerPacketInitializedOutputCost.uniformConstant* |
| 48 | (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ |
| 49 | EulerPacketInitializedOutputCost.uniformPower ≤ firstFrequencyConstant*X^firstFrequencyPower := by |
| 50 | have hXpos := zero_lt_one.trans_le hX |
| 51 | have hp := (firstParameterSize_bounds (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) |
| 52 | (baseHorizon_pos J hJ hXpos) (Real.rpow_pos_of_pos hXpos _) (pow_nonneg hXpos.le _)).1 |
| 53 | apply (frequency_bound _ hp).trans |
| 54 | calc |
| 55 | _ ≤ frequencyConstant*((7+solutionLabelConstant)*X^1010)^frequencyPower := by |
| 56 | apply mul_le_mul_of_nonneg_left _ frequencyConstant_pos.le |
| 57 | exact pow_le_pow_left₀ (zero_le_one.trans hp) (firstParameterSize_literal J hJ X hX) _ |
| 58 | _ = _ := by |
| 59 | unfold firstFrequencyConstant firstFrequencyPower |
| 60 | rw [mul_pow,← pow_mul] |
| 61 | ring |
| 62 | |
| 63 | /-- This remaining threshold depends only on the fixed base exponent, |
| 64 | not on a parent or on a stage of the subsequent induction. -/ |
| 65 | theorem first_frequency_guard_eventually (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) |
| 66 | (hD : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : |
| 67 | ∀ᶠ X : ℝ in atTop, |
| 68 | EulerPacketInitializedOutputCost.uniformConstant* |
| 69 | (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ |
| 70 | EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) := by |
| 71 | have hgap : 0 < (D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ) := sub_pos.mpr hD |
| 72 | filter_upwards [eventually_ge_atTop (1 : ℝ), |
| 73 | (_root_.tendsto_rpow_atTop hgap).eventually_ge_atTop firstFrequencyConstant] with X hX hC |
| 74 | have hXp := zero_lt_one.trans_le hX |
| 75 | apply (first_frequency_cost_bound J hJ X hX).trans |
| 76 | calc |
| 77 | _ ≤ X^((D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ))*X^firstFrequencyPower := |
| 78 | mul_le_mul_of_nonneg_right hC (pow_nonneg hXp.le _) |
| 79 | _ = X^((D : ℝ)*(theta/100)) := by |
| 80 | rw [← Real.rpow_natCast X firstFrequencyPower,← Real.rpow_add hXp] |
| 81 | congr 1 |
| 82 | ring |
| 83 | _ = smallPower (X^D) := by |
| 84 | unfold smallPower |
| 85 | rw [Real.rpow_mul hXp.le,Real.rpow_natCast] |
| 86 | |
| 87 | end EulerBaseDatum |