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.Pow.Real |
| 2 | import Mathlib.Tactic.FieldSimp |
| 3 | import Mathlib.Tactic.Linarith |
| 4 | import Mathlib.Tactic.Ring |
| 5 | |
| 6 | /-! |
| 7 | # Algebra of the manuscript coordinates |
| 8 | |
| 9 | This module checks the algebra in equations (3)--(5). It does not construct a |
| 10 | smooth inverse coordinate chart, a Navier--Stokes solution, or a singularity. |
| 11 | `q ^ b` below denotes the real power, while `η ^ 2` is a natural power. |
| 12 | -/ |
| 13 | |
| 14 | namespace NavierStokes.CoordinateAlgebra |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | def A (h : ℝ) : ℝ := 1 / 2 + h |
| 19 | def D (h : ℝ) : ℝ := 1 / 2 - h |
| 20 | def d (η : ℝ) : ℝ := 1 - η ^ 2 |
| 21 | def L (h η : ℝ) : ℝ := 1 - 2 * h * η ^ 2 |
| 22 | |
| 23 | /-- The explicit smallness condition needed for the manuscript's `L > 0`. -/ |
| 24 | theorem L_pos {h η : ℝ} (hh₀ : 0 ≤ h) (hh : h < 1 / 2) |
| 25 | (hη : η ^ 2 ≤ 1) : 0 < L h η := by |
| 26 | unfold L |
| 27 | nlinarith [mul_nonneg hh₀ (sub_nonneg.mpr hη)] |
| 28 | |
| 29 | def qTime (h η : ℝ) : ℝ := -1 / L h η |
| 30 | def etaTime (q h η : ℝ) : ℝ := D h * η / (q * L h η) |
| 31 | def xTime (q h η X : ℝ) : ℝ := X / (q * L h η) |
| 32 | def qAxial (q h η : ℝ) : ℝ := 2 * η * q / (q ^ D h * L h η) |
| 33 | def etaAxial (q h η : ℝ) : ℝ := d η / (q ^ D h * L h η) |
| 34 | def xAxial (q h η X : ℝ) : ℝ := -2 * η * X / (q ^ D h * L h η) |
| 35 | |
| 36 | theorem qAxial_rpow {q : ℝ} (hq : 0 < q) (h η : ℝ) : |
| 37 | qAxial q h η = 2 * η * q ^ (1 - D h) / L h η := by |
| 38 | rw [Real.rpow_sub hq, Real.rpow_one] |
| 39 | unfold qAxial |
| 40 | ring |
| 41 | |
| 42 | /-- The `T_b` coefficient in equation (4), at a profile jet `(F,FX,Fη)`. -/ |
| 43 | def timeCoeff (b h η X F FX Fη : ℝ) : ℝ := |
| 44 | (-b * F + D h * η * Fη + X * FX) / L h η |
| 45 | |
| 46 | /-- The `Z_b` coefficient in equation (4), at a profile jet `(F,FX,Fη)`. -/ |
| 47 | def axialCoeff (b h η X F FX Fη : ℝ) : ℝ := |
| 48 | (2 * η * b * F + d η * Fη - 2 * η * X * FX) / L h η |
| 49 | |
| 50 | /-- Product/chain-rule expression for the time derivative of `q^b F(X,η)`. |
| 51 | The theorem checks its exact coefficient and power of `q`; analytic |
| 52 | derivative hypotheses are separate from this algebraic identity. -/ |
| 53 | theorem time_chain_coefficient {q : ℝ} (hq : 0 < q) |
| 54 | (b h η X F FX Fη : ℝ) : |
| 55 | b * q ^ (b - 1) * qTime h η * F + |
| 56 | q ^ b * (FX * xTime q h η X + Fη * etaTime q h η) = |
| 57 | q ^ (b - 1) * timeCoeff b h η X F FX Fη := by |
| 58 | rw [Real.rpow_sub_one hq.ne'] |
| 59 | unfold qTime xTime etaTime timeCoeff |
| 60 | ring |
| 61 | |
| 62 | /-- Product/chain-rule expression for the axial derivative of `q^b F(X,η)`. -/ |
| 63 | theorem axial_chain_coefficient {q : ℝ} (hq : 0 < q) |
| 64 | (b h η X F FX Fη : ℝ) : |
| 65 | b * q ^ (b - 1) * qAxial q h η * F + |
| 66 | q ^ b * (FX * xAxial q h η X + Fη * etaAxial q h η) = |
| 67 | q ^ (b - D h) * axialCoeff b h η X F FX Fη := by |
| 68 | by_cases hL : L h η = 0 |
| 69 | · simp [qAxial, xAxial, etaAxial, axialCoeff, hL] |
| 70 | have hpow : q ^ D h ≠ 0 := (Real.rpow_pos_of_pos hq _).ne' |
| 71 | rw [Real.rpow_sub_one hq.ne', Real.rpow_sub hq] |
| 72 | unfold qAxial xAxial etaAxial axialCoeff |
| 73 | field_simp [hq.ne', hpow, hL]; ring |
| 74 | |
| 75 | /-- Algebra behind the incompressibility formula (5). The two hypotheses |
| 76 | are the primitive identities `(X Ubar)_X = U` and its `η` derivative. -/ |
| 77 | theorem incompressibility_numerator |
| 78 | (h η X U UX Uη Ubar UbarX Ubarη UbarηX : ℝ) |
| 79 | (hU : Ubar + X * UbarX = U) (hUη : Ubarη + X * UbarηX = Uη) : |
| 80 | 2 * η * U - 2 * D h * η * Ubar - d η * Ubarη + |
| 81 | X * (2 * η * UX - 2 * D h * η * UbarX - d η * UbarηX) = |
| 82 | 2 * A h * η * U - d η * Uη + 2 * η * X * UX := by |
| 83 | calc |
| 84 | _ = 2 * η * U - 2 * D h * η * (Ubar + X * UbarX) - |
| 85 | d η * (Ubarη + X * UbarηX) + 2 * η * X * UX := by ring |
| 86 | _ = _ := by rw [hU, hUη]; unfold A D; ring |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end NavierStokes.CoordinateAlgebra |