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 NavierStokes.ClosedIntervalJetAlgebra |
| 2 | import NavierStokes.NaturalAxisData |
| 3 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic |
| 4 | |
| 5 | /-! |
| 6 | # Parameter-jet comparison for the actual five cumulative seed histories |
| 7 | |
| 8 | The comparison is on the closed parameter interval, using one-sided derivatives |
| 9 | at its endpoints. Profiles need not be regular at the axis. The constants are |
| 10 | uniform over all profiles with the stated positivity and finite jet bounds. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.SeedHandbackJets |
| 16 | |
| 17 | open Set ClosedIntervalJetAlgebra |
| 18 | open scoped ContDiff |
| 19 | |
| 20 | abbrev Packet := Fin 12 → ℝ → ℝ |
| 21 | abbrev Basis := Fin 19 → ℝ → ℝ |
| 22 | |
| 23 | def basis (h X : ℝ) (p : Packet) : Basis := |
| 24 | ![p 0, p 1, p 2, p 3, p 4, p 5, p 6, p 7, p 8, p 9, p 10, p 11, |
| 25 | (fun η => η), (fun _ => X), (fun _ => X⁻¹), |
| 26 | (fun _ => (Real.sqrt (2*X))⁻¹), (fun η => (p 0 η)⁻¹), |
| 27 | (fun η => (NaturalAxisData.L h η)⁻¹), NaturalAxisData.d] |
| 28 | |
| 29 | abbrev Expr := PolynomialExpression (Fin 19) |
| 30 | |
| 31 | private def v (i : Fin 19) : Expr := .input i |
| 32 | private def c (x : ℝ) : Expr := .constant x |
| 33 | |
| 34 | private def inputBounds (k : ℕ) (D X₀ X₁ T L : ℝ) : Fin 19 → ℝ := |
| 35 | ![D,D,D,D,D,D,D,D,D,D,D,D,1,X₁,X₀⁻¹,(Real.sqrt (2*X₀))⁻¹,T,L,1+(2:ℝ)^k] |
| 36 | |
| 37 | private def differenceBounds (CI : ℝ) : Fin 19 → ℝ := |
| 38 | ![1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,CI,0,0] |
| 39 | |
| 40 | private theorem L_lower {h : ℝ} (hh : 0 ≤ h) {η : ℝ} (hη : η ∈ J) : |
| 41 | 1-2*h ≤ NaturalAxisData.L h η := by |
| 42 | have hs : η^2 ≤ 1 := by nlinarith [hη.1, hη.2] |
| 43 | dsimp [NaturalAxisData.L] |
| 44 | nlinarith |
| 45 | |
| 46 | private theorem fixed_L_bound (k : ℕ) (h : ℝ) : |
| 47 | Bound k (NaturalAxisData.L h) (1+(2:ℝ)^k*(|2*h| *((2:ℝ)^k))) := by |
| 48 | have he := (Bound.id k).mul contDiffOn_id contDiffOn_id (Bound.id k) |
| 49 | have hc := (Bound.const k (2*h)).mul contDiffOn_const (contDiffOn_id.mul contDiffOn_id) he |
| 50 | have hb := (Bound.const k 1).sub contDiffOn_const |
| 51 | (contDiffOn_const.mul (contDiffOn_id.mul contDiffOn_id)) hc |
| 52 | convert hb using 1 |
| 53 | · ext η; simp only [NaturalAxisData.L, id_eq]; ring |
| 54 | · simp only [abs_one, mul_one]; ring |
| 55 | |
| 56 | private theorem fixed_d_bound (k : ℕ) : Bound k NaturalAxisData.d (1+(2:ℝ)^k) := by |
| 57 | have he := (Bound.id k).mul contDiffOn_id contDiffOn_id (Bound.id k) |
| 58 | have hb := (Bound.const k 1).sub contDiffOn_const (contDiffOn_id.mul contDiffOn_id) he |
| 59 | convert hb using 1 |
| 60 | · ext η; simp only [NaturalAxisData.d, id_eq]; ring |
| 61 | · simp |
| 62 | |
| 63 | |
| 64 | |
| 65 | private theorem basis_pairBound {k : ℕ} {h X₀ X₁ X μ D T L ε : ℝ} |
| 66 | (hh : 0 ≤ h) (hh' : h < 1/2) (hX₀ : 0 < X₀) (hX : X ∈ Icc X₀ X₁) |
| 67 | (hμ : 0 < μ) {p q : Packet} |
| 68 | (hpq : ∀ i, PairBound k (p i) (q i) D 1 ε) |
| 69 | (hp : ∀ η ∈ J, μ ≤ p 0 η) (hq : ∀ η ∈ J, μ ≤ q 0 η) |
| 70 | (hT : ∀ z : ℝ → ℝ, ContDiffOn ℝ ∞ z J → |
| 71 | (∀ η ∈ J, μ ≤ z η) → Bound k z D → Bound k (fun η => (z η)⁻¹) T) |
| 72 | (hL : Bound k (fun η => (NaturalAxisData.L h η)⁻¹) L) : |
| 73 | ∀ i, PairBound k (basis h X p i) (basis h X q i) |
| 74 | (inputBounds k D X₀ X₁ T L i) |
| 75 | (differenceBounds ((2:ℝ)^k*((2:ℝ)^k*1*T)*T) i) ε := by |
| 76 | have hXp : 0 < X := hX₀.trans_le hX.1 |
| 77 | have hX₁ : 0 < X₁ := hXp.trans_le hX.2 |
| 78 | have hXs : Bound k (fun _ : ℝ => X) X₁ := |
| 79 | (Bound.const k X).mono (by simpa only [abs_of_pos hXp] using hX.2) |
| 80 | have hXi : Bound k (fun _ : ℝ => X⁻¹) X₀⁻¹ := |
| 81 | (Bound.const k X⁻¹).mono (by rw [abs_of_pos (inv_pos.mpr hXp)]; exact inv_anti₀ hX₀ hX.1) |
| 82 | have hroot0 : 0 < Real.sqrt (2*X₀) := Real.sqrt_pos.mpr (by positivity) |
| 83 | have hroot : 0 < Real.sqrt (2*X) := Real.sqrt_pos.mpr (by positivity) |
| 84 | have hXsroot : Bound k (fun _ : ℝ => (Real.sqrt (2*X))⁻¹) (Real.sqrt (2*X₀))⁻¹ := |
| 85 | (Bound.const k (Real.sqrt (2*X))⁻¹).mono (by |
| 86 | rw [abs_of_pos (inv_pos.mpr hroot)] |
| 87 | exact inv_anti₀ hroot0 (Real.sqrt_le_sqrt (by linarith [hX.1]))) |
| 88 | have hLs : ContDiffOn ℝ ∞ (NaturalAxisData.L h) J := by |
| 89 | unfold NaturalAxisData.L |
| 90 | fun_prop |
| 91 | have hds : ContDiffOn ℝ ∞ NaturalAxisData.d J := by |
| 92 | unfold NaturalAxisData.d |
| 93 | fun_prop |
| 94 | have hLp : ∀ η ∈ J, NaturalAxisData.L h η ≠ 0 := |
| 95 | fun η hη => (lt_of_lt_of_le (by linarith : 0 < 1-2*h) (L_lower hh hη)).ne' |
| 96 | intro i |
| 97 | fin_cases i |
| 98 | · exact hpq 0 |
| 99 | · exact hpq 1 |
| 100 | · exact hpq 2 |
| 101 | · exact hpq 3 |
| 102 | · exact hpq 4 |
| 103 | · exact hpq 5 |
| 104 | · exact hpq 6 |
| 105 | · exact hpq 7 |
| 106 | · exact hpq 8 |
| 107 | · exact hpq 9 |
| 108 | · exact hpq 10 |
| 109 | · exact hpq 11 |
| 110 | · exact PairBound.same contDiffOn_id (Bound.id k) ε |
| 111 | · exact PairBound.same contDiffOn_const hXs ε |
| 112 | · exact PairBound.same contDiffOn_const hXi ε |
| 113 | · exact PairBound.same contDiffOn_const hXsroot ε |
| 114 | · exact (hpq 0).inverse hμ hp hq hT |
| 115 | · exact PairBound.same (hLs.inv hLp) hL ε |
| 116 | · exact PairBound.same hds (fixed_d_bound k) ε |
| 117 | |
| 118 | /-- An arbitrary positive-radius comparison profile; no regular-axis representation is required. -/ |
| 119 | structure Profile where |
| 120 | E : (ℝ × ℝ) → ℝ |
| 121 | U : (ℝ × ℝ) → ℝ |
| 122 | |
| 123 | namespace Profile |
| 124 | |
| 125 | end Profile |
| 126 | |
| 127 | |
| 128 | |
| 129 | /-- Values of all component parameter derivatives through order `k`, including zero. -/ |
| 130 | def jetValues {m : ℕ} (k : ℕ) (X₀ X₁ : ℝ) (f : Fin m → ℝ → ℝ → ℝ) : Set ℝ := |
| 131 | {z | z = 0 ∨ ∃ i X, X ∈ Icc X₀ X₁ ∧ ∃ n, n ≤ k ∧ ∃ η, η ∈ J ∧ |
| 132 | z = ‖iteratedFDerivWithin ℝ n (f i X) J η‖} |
| 133 | |
| 134 | private theorem jetValues_nonempty {m k : ℕ} {X₀ X₁ : ℝ} {f : Fin m → ℝ → ℝ → ℝ} : |
| 135 | (jetValues k X₀ X₁ f).Nonempty := ⟨0, Or.inl rfl⟩ |
| 136 | |
| 137 | private theorem jetValues_bddAbove {m k : ℕ} {X₀ X₁ B : ℝ} {f : Fin m → ℝ → ℝ → ℝ} |
| 138 | (hB : 0 ≤ B) (hb : ∀ i X, X ∈ Icc X₀ X₁ → Bound k (f i X) B) : |
| 139 | BddAbove (jetValues k X₀ X₁ f) := by |
| 140 | refine ⟨B, ?_⟩ |
| 141 | intro z hz |
| 142 | rcases hz with rfl | ⟨i,X,hX,n,hn,η,hη,rfl⟩ |
| 143 | · exact hB |
| 144 | · exact hb i X hX n hn η hη |
| 145 | |
| 146 | end NavierStokes.SeedHandbackJets |