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 Mathlib.Analysis.SpecialFunctions.Integrals.Basic |
| 2 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 3 | import Mathlib.Topology.Order.IntermediateValue |
| 4 | import Mathlib.Tactic.FieldSimp |
| 5 | import Mathlib.Tactic.Linarith |
| 6 | import Mathlib.Tactic.NormNum |
| 7 | import Mathlib.Tactic.Positivity |
| 8 | import Mathlib.Tactic.Ring |
| 9 | |
| 10 | /-! |
| 11 | # Scalar identities for the outgoing radial schedule |
| 12 | |
| 13 | This file verifies the ideal-prefix source and its lower bound, the exponential |
| 14 | weights of the axial moment rows, their two-column algebraic reset, the negative |
| 15 | energy term in equation (13), and the constant-coefficient lag equation. |
| 16 | |
| 17 | These finite-dimensional calculations do not establish existence of the full |
| 18 | smooth schedule, estimates on the correction bumps, or the stress-cone bounds. |
| 19 | -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | open MeasureTheory |
| 24 | |
| 25 | namespace NavierStokes.RadialSchedule |
| 26 | |
| 27 | def axialExponent (h : ℝ) : ℝ := 1 / 2 - h |
| 28 | |
| 29 | def axialShape (η : ℝ) : ℝ := 1 - η ^ 2 |
| 30 | |
| 31 | def coordinateFactor (h η : ℝ) : ℝ := 1 - 2 * h * η ^ 2 |
| 32 | |
| 33 | def idealAxialVelocity (η : ℝ) : ℝ := 4 * η |
| 34 | |
| 35 | def idealTransport (h η : ℝ) : ℝ := |
| 36 | 1 - 2 * axialExponent h * η * idealAxialVelocity η - axialShape η * 4 |
| 37 | |
| 38 | /-- The logarithmic shape derivative of `(1 + η²)⁻¹`. -/ |
| 39 | def logShapeDerivative (η : ℝ) : ℝ := -(2 * η / (1 + η ^ 2)) |
| 40 | |
| 41 | def idealSource (h η : ℝ) : ℝ := |
| 42 | -(3 / 5) * idealTransport h η - h * (1 - 2 * η * idealAxialVelocity η) - |
| 43 | (axialExponent h * η + axialShape η * idealAxialVelocity η) * |
| 44 | logShapeDerivative η |
| 45 | |
| 46 | /-- The constant particular solution with `l = 3/5`. -/ |
| 47 | def idealLag (h η : ℝ) : ℝ := idealSource h η / (8 / 5) |
| 48 | |
| 49 | theorem ideal_transport_eq (h η : ℝ) : |
| 50 | idealTransport h η = 1 - 4 * coordinateFactor h η := by |
| 51 | unfold idealTransport axialExponent axialShape idealAxialVelocity coordinateFactor |
| 52 | ring |
| 53 | |
| 54 | theorem ideal_source_displayed (h η : ℝ) : |
| 55 | idealSource h η = |
| 56 | (3 / 5) * (4 * coordinateFactor h η - 1) - h * (1 - 8 * η ^ 2) + |
| 57 | (axialExponent h + 4 * axialShape η) * η * (2 * η / (1 + η ^ 2)) := by |
| 58 | unfold idealSource logShapeDerivative idealAxialVelocity |
| 59 | rw [ideal_transport_eq] |
| 60 | ring |
| 61 | |
| 62 | theorem ideal_source_positive_decomposition (h η : ℝ) : |
| 63 | idealSource h η = 9 / 5 - h + (16 / 5) * h * η ^ 2 + |
| 64 | 2 * (axialExponent h + 4 * axialShape η) * η ^ 2 / (1 + η ^ 2) := by |
| 65 | rw [ideal_source_displayed] |
| 66 | unfold coordinateFactor |
| 67 | ring |
| 68 | |
| 69 | /-- A quantitative version of the ideal-prefix positivity in Section 4.4. -/ |
| 70 | theorem ideal_lag_ge_one {h η : ℝ} |
| 71 | (hh : 0 ≤ h) (hsmall : h ≤ 1 / 5) (hη : η ^ 2 ≤ 1) : |
| 72 | 1 ≤ idealLag h η := by |
| 73 | have hD : 0 ≤ axialExponent h := by unfold axialExponent; linarith |
| 74 | have hd : 0 ≤ axialShape η := by unfold axialShape; linarith |
| 75 | have hquad : 0 ≤ (16 / 5 : ℝ) * h * η ^ 2 := by positivity |
| 76 | have hshape : 0 ≤ 2 * (axialExponent h + 4 * axialShape η) * η ^ 2 / |
| 77 | (1 + η ^ 2) := by positivity |
| 78 | unfold idealLag |
| 79 | rw [ideal_source_positive_decomposition] |
| 80 | linarith |
| 81 | |
| 82 | def radiusProfile (X₀ y : ℝ) : ℝ := X₀ * Real.exp y |
| 83 | |
| 84 | def angularVelocityProfile (e₀ lam y : ℝ) : ℝ := |
| 85 | e₀ * Real.exp (-(1 / 2 + lam) * y) |
| 86 | |
| 87 | /-- The common energy weight used to rescale the pulse in equation (13). -/ |
| 88 | theorem energy_moment_weight (X₀ e₀ lam y : ℝ) : |
| 89 | radiusProfile X₀ y * angularVelocityProfile e₀ lam y ^ 2 = |
| 90 | (X₀ * e₀ ^ 2) * Real.exp (-2 * lam * y) := by |
| 91 | unfold radiusProfile angularVelocityProfile |
| 92 | calc |
| 93 | _ = (X₀ * e₀ ^ 2) * |
| 94 | Real.exp (y + (-(1 / 2 + lam) * y + -(1 / 2 + lam) * y)) := by |
| 95 | rw [Real.exp_add, Real.exp_add] |
| 96 | ring |
| 97 | _ = _ := by congr 2; ring |
| 98 | |
| 99 | /-- The exact negative part of the scaled pulse energy in equation (13). -/ |
| 100 | theorem pulse_negative_energy_integral : |
| 101 | (∫ z in (0 : ℝ)..13, (1 / 2 : ℝ) * Real.exp (-2 * z)) = |
| 102 | (1 - Real.exp (-26)) / 4 := by |
| 103 | rw [intervalIntegral.integral_const_mul, |
| 104 | intervalIntegral.integral_comp_mul_left Real.exp (by norm_num : (-2 : ℝ) ≠ 0), |
| 105 | integral_exp] |
| 106 | norm_num |
| 107 | ring |
| 108 | |
| 109 | def pulseEnergyDebt : ℝ := (1 - Real.exp (-26)) / 4 |
| 110 | |
| 111 | theorem pulse_energy_debt_bounds : |
| 112 | (6 / 25 : ℝ) ≤ pulseEnergyDebt ∧ pulseEnergyDebt ≤ 1 / 4 := by |
| 113 | have hexp : (27 : ℝ) ≤ Real.exp 26 := by |
| 114 | linarith [Real.add_one_le_exp (26 : ℝ)] |
| 115 | have hinv : Real.exp (-26) ≤ 1 / 27 := by |
| 116 | rw [Real.exp_neg] |
| 117 | simpa only [one_div] using |
| 118 | one_div_le_one_div_of_le (by norm_num : (0 : ℝ) < 27) hexp |
| 119 | have hpos := (Real.exp_pos (-26 : ℝ)).le |
| 120 | unfold pulseEnergyDebt |
| 121 | constructor <;> linarith |
| 122 | |
| 123 | /-- Equation (13) has opposite endpoint signs if its error is at most `1/100`. |
| 124 | The asymptotic estimate needed to establish that bound is not formalized here. -/ |
| 125 | theorem pulse_amplitude_endpoint_signs {K error₀ error₁ : ℝ} |
| 126 | (hKlo : 1 / 5 ≤ K) (hKhi : K ≤ 1 / 4) |
| 127 | (herror₀ : |error₀| ≤ 1 / 100) (herror₁ : |error₁| ≤ 1 / 100) : |
| 128 | K * (9 / 10 : ℝ) ^ 2 - pulseEnergyDebt + error₀ < 0 ∧ |
| 129 | 0 < K * (6 / 5 : ℝ) ^ 2 - pulseEnergyDebt + error₁ := by |
| 130 | rcases pulse_energy_debt_bounds with ⟨hlo, hhi⟩ |
| 131 | rcases abs_le.mp herror₀ with ⟨he₀lo, he₀hi⟩ |
| 132 | rcases abs_le.mp herror₁ with ⟨he₁lo, he₁hi⟩ |
| 133 | constructor <;> nlinarith |
| 134 | |
| 135 | end NavierStokes.RadialSchedule |