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.PacketSourceScaleSequence |
| 2 | |
| 3 | /-! The literal base horizon and core radius satisfy the local-existence |
| 4 | and localized coercivity guards after the final choice of the base scale. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketBaseGuardScales |
| 9 | |
| 10 | open Filter Real EulerPacketBaseScales EulerPacketSourceScaleSequence |
| 11 | EulerPacketSourceScaleChoice EulerPacketSourceScales |
| 12 | open scoped Topology |
| 13 | |
| 14 | def baseHorizon (J : ℕ) (X : ℝ) : ℝ := 6*(J : ℝ)^2*X^(-498 : ℝ) |
| 15 | |
| 16 | def baseRadius (X : ℝ) : ℝ := X^(-1000 : ℝ) |
| 17 | |
| 18 | def baseGuardCost (J : ℕ) (K Be CM Cboundary X : ℝ) : ℝ := |
| 19 | K*(baseHorizon J X^2/2)+Be*baseHorizon J X+ |
| 20 | Cboundary*(CM*X^1000+2)*baseRadius X^3*baseHorizon J X |
| 21 | |
| 22 | theorem baseHorizon_pos (J : ℕ) (hJ : 1 ≤ J) {X : ℝ} (hX : 0 < X) : |
| 23 | 0 < baseHorizon J X := by |
| 24 | have hj : (0 : ℝ) < J := by exact_mod_cast (show 0 < J by omega) |
| 25 | unfold baseHorizon |
| 26 | positivity |
| 27 | |
| 28 | theorem baseRadius_pos {X : ℝ} (hX : 0 < X) : 0 < baseRadius X := rpow_pos_of_pos hX _ |
| 29 | |
| 30 | theorem baseHorizon_eq_timeWidth (J : ℕ) {X : ℝ} (hX : 0 < X) : |
| 31 | baseHorizon J X=2*timeWidth J X 0 := by |
| 32 | have hp : X^(1000 : ℕ)=(X^(500 : ℕ))^2 := by rw [← pow_mul] |
| 33 | have hs : Real.sqrt (X^(1000 : ℕ))=X^(500 : ℕ) := by |
| 34 | rw [hp,Real.sqrt_sq (pow_nonneg hX.le 500)] |
| 35 | unfold baseHorizon timeWidth |
| 36 | simp only [scaleSequence_succ,scaleSequence_zero,Nat.add_zero,previousShear,hs] |
| 37 | rw [rpow_neg hX.le] |
| 38 | norm_num only [rpow_ofNat] |
| 39 | field_simp [hX.ne'] |
| 40 | ring |
| 41 | |
| 42 | theorem baseHorizon_tendsto_zero (J : ℕ) : Tendsto (baseHorizon J) atTop (𝓝 0) := by |
| 43 | have h := base_horizon_tendsto_zero (J : ℝ) |
| 44 | norm_num only [show (2-1000/2 : ℝ)= -498 by norm_num] at h |
| 45 | exact h |
| 46 | |
| 47 | theorem baseRadius_tendsto_zero : Tendsto baseRadius atTop (𝓝 0) := by |
| 48 | exact tendsto_rpow_neg_atTop (by norm_num : (0 : ℝ) < 1000) |
| 49 | |
| 50 | theorem baseGuardCost_tendsto_zero (J : ℕ) (K Be CM Cboundary : ℝ) : |
| 51 | Tendsto (baseGuardCost J K Be CM Cboundary) atTop (𝓝 0) := by |
| 52 | have hS := baseHorizon_tendsto_zero J |
| 53 | have hr := baseRadius_tendsto_zero |
| 54 | have hcore := base_core_volume_cost_tendsto_zero (J : ℝ) |
| 55 | have hsmall := (hr.pow 3).mul hS |
| 56 | have h := ((((hS.pow 2).div_const 2).const_mul K).add (hS.const_mul Be)).add |
| 57 | ((hcore.const_mul (Cboundary*CM)).add (hsmall.const_mul (2*Cboundary))) |
| 58 | norm_num only [zero_pow (by decide : 2 ≠ 0),zero_div,mul_zero,add_zero, |
| 59 | zero_pow (by decide : 3 ≠ 0),zero_mul] at h |
| 60 | convert! h using 1 |
| 61 | funext X |
| 62 | unfold baseGuardCost baseRadius baseHorizon |
| 63 | ring |
| 64 | |
| 65 | theorem eventually_base_guards (J : ℕ) (hJ : 1 ≤ J) |
| 66 | (K Be CM Cboundary T₀ : ℝ) (hT₀ : 0 < T₀) : |
| 67 | ∀ᶠ X : ℝ in atTop, |
| 68 | 1 < X ∧ 0 < baseHorizon J X ∧ baseHorizon J X ≤ T₀ ∧ |
| 69 | 0 < baseRadius X ∧ baseRadius X ≤ 1/4 ∧ |
| 70 | baseGuardCost J K Be CM Cboundary X ≤ 1/2 := by |
| 71 | filter_upwards [eventually_gt_atTop (1 : ℝ), |
| 72 | (baseHorizon_tendsto_zero J).eventually_le_const hT₀, |
| 73 | baseRadius_tendsto_zero.eventually_le_const (by norm_num : (0 : ℝ) < 1/4), |
| 74 | (baseGuardCost_tendsto_zero J K Be CM Cboundary).eventually_le_const |
| 75 | (by norm_num : (0 : ℝ) < 1/2)] with X hX htime hr hguard |
| 76 | have hXp : 0 < X := zero_lt_one.trans hX |
| 77 | exact ⟨hX,baseHorizon_pos J hJ hXp,htime,baseRadius_pos hXp,hr,hguard⟩ |
| 78 | |
| 79 | end EulerPacketBaseGuardScales |