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.CorrectionState |
| 2 | import NavierStokes.LinearWaveResidual |
| 3 | import NavierStokes.CorrectionStepCovariance |
| 4 | |
| 5 | /-! |
| 6 | # Exact full residual and its increment |
| 7 | |
| 8 | The 166-page Navier–Stokes paper uses cylindrical transport with frame terms |
| 9 | in §9.1, equation (9.2) and Lemma 9.2. This module supplies the addition laws |
| 10 | for those differential operators and their exact expansion under an update. |
| 11 | It assembles the velocity and pressure corrections of §9.3, equation (9.7), |
| 12 | and separates the angular mean, nonconstant angular part and stored errors |
| 13 | as in the residual decomposition of §9.2, equations (9.3)–(9.4). It keeps both |
| 14 | old/new transport terms and the square of the increment. The angular |
| 15 | covariance uses the full oscillation as in §8.1, equation (8.1). Its exact |
| 16 | update gives the cross terms and square used in the split in §9.3, |
| 17 | equation (9.13). |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace NavierStokes.CorrectionStep |
| 23 | |
| 24 | open Set WeightedClasses MeanIncrementBounds |
| 25 | open scoped ContDiff BigOperators |
| 26 | |
| 27 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 28 | |
| 29 | /-! ## The full differential residual, before angular averaging -/ |
| 30 | |
| 31 | section FullCalculus |
| 32 | |
| 33 | open HarmonicCalculus LinearWaveResidual |
| 34 | |
| 35 | /-- Exact residual of a perturbation of a fixed base, before the virtual |
| 36 | stress and the separately retained base residual are added. -/ |
| 37 | noncomputable def nonlinearResidual (ε : ℝ) (R : D → ℝ) (Vr Vθ Vz Vt : D → D) |
| 38 | (B a : D → ComplexVector) (p : D → ℂ) (x : D) : ComplexVector := |
| 39 | linearResidual ε R Vr Vθ Vz Vt B a p x + transport R Vr Vθ Vz a a x |
| 40 | |
| 41 | end FullCalculus |
| 42 | |
| 43 | section FullFields |
| 44 | |
| 45 | open CorrectionState HarmonicCalculus |
| 46 | |
| 47 | noncomputable def radialDirection (c : Context D) (n : ℕ) (x : D × ℝ) : D × ℝ := |
| 48 | (c.operators.eR + (c.operators.radialFrequency n * c.operators.radialProfile x.1) • |
| 49 | c.operators.vR, 0) |
| 50 | |
| 51 | noncomputable def axialDirection (c : Context D) (n : ℕ) (_x : D × ℝ) : D × ℝ := |
| 52 | (c.operators.epsilon n • c.operators.eZ, 0) |
| 53 | |
| 54 | noncomputable def angularDirection (_x : D × ℝ) : D × ℝ := (0, 1) |
| 55 | |
| 56 | noncomputable def timeDirection (c : Context D) (n : ℕ) (_x : D × ℝ) : D × ℝ := |
| 57 | (c.operators.fastCoefficient n • c.operators.vT - c.operators.epsilon n • c.operators.eT, 0) |
| 58 | |
| 59 | noncomputable def complexBase (c : Context D) (n : ℕ) (x : D × ℝ) : ComplexVector := |
| 60 | ![(c.base.radial n x.1 : ℂ), (c.base.angular n x.1 : ℂ), (c.base.axial n x.1 : ℂ)] |
| 61 | |
| 62 | noncomputable def complexPerturbation (u : State D) (n : ℕ) (x : D × ℝ) : ComplexVector := |
| 63 | ![(u.mean.radial n x.1 + u.oscillation n x 0 : ℝ), |
| 64 | (u.mean.angular n x.1 + u.oscillation n x 1 : ℝ), |
| 65 | (u.mean.axial n x.1 + u.oscillation n x 2 : ℝ)] |
| 66 | |
| 67 | noncomputable def complexPressure (u : State D) (n : ℕ) (x : D × ℝ) : ℂ := |
| 68 | (u.totalPressureIncrement n x : ℝ) |
| 69 | |
| 70 | noncomputable def virtualDivergence (c : Context D) (n : ℕ) (x : D × ℝ) : Fin 3 → ℝ := |
| 71 | ![0, -(c.operators.radialDiv 2 c.virtualTheta n x.1), |
| 72 | -(c.operators.radialDiv 1 c.virtualAxial n x.1)] |
| 73 | |
| 74 | /-- This field uses actual Fréchet derivatives. The base flat error is |
| 75 | restored once, alongside the negative virtual-stress divergence. -/ |
| 76 | noncomputable def fullResidual (c : Context D) (u : State D) : Oscillation D := fun n x i => |
| 77 | (nonlinearResidual (c.operators.epsilon n) (fun y : D × ℝ => c.operators.radius y.1) |
| 78 | (radialDirection c n) angularDirection (axialDirection c n) (timeDirection c n) |
| 79 | (complexBase c n) (complexPerturbation u n) (complexPressure u n) x i).re + |
| 80 | virtualDivergence c n x i + u.errors.base n x i |
| 81 | |
| 82 | noncomputable def fullGoodResidual (c : Context D) (u : State D) : Oscillation D := |
| 83 | fullResidual c u - u.errors.total |
| 84 | |
| 85 | noncomputable def angularMeanVector (f : Oscillation D) : MeanVector D := |
| 86 | fun n x i => angularAverage (fun k p => f k p i) n x |
| 87 | |
| 88 | noncomputable def angularNonconstant (f : Oscillation D) : Oscillation D := |
| 89 | fun n x i => f n x i - angularMeanVector f n x.1 i |
| 90 | |
| 91 | noncomputable def fullGoodWaveResidual (c : Context D) (u : State D) : Oscillation D := |
| 92 | angularNonconstant (fullGoodResidual c u) |
| 93 | |
| 94 | theorem fullResidual_decomposition (c : Context D) (u : State D) : |
| 95 | fullResidual c u = fun n x i => fullGoodWaveResidual c u n x i + |
| 96 | angularMeanVector (fullGoodResidual c u) n x.1 i + u.errors.total n x i := by |
| 97 | funext n x i |
| 98 | simp only [fullGoodWaveResidual, angularNonconstant, fullGoodResidual, |
| 99 | Pi.sub_apply] |
| 100 | ring |
| 101 | |
| 102 | end FullFields |
| 103 | |
| 104 | section ActualCovariance |
| 105 | |
| 106 | open CorrectionState MeasureTheory |
| 107 | |
| 108 | def AngularContinuous (u : Oscillation D) : Prop := |
| 109 | ∀ n x i, Continuous (fun θ : ℝ => u n (x, θ) i) |
| 110 | |
| 111 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 112 | theorem AngularContinuous.add {u v : Oscillation D} |
| 113 | (hu : AngularContinuous u) (hv : AngularContinuous v) : AngularContinuous (u + v) := |
| 114 | fun n x i => (hu n x i).add (hv n x i) |
| 115 | |
| 116 | end ActualCovariance |
| 117 | |
| 118 | section ActualFullUpdate |
| 119 | |
| 120 | open CorrectionState HarmonicCalculus |
| 121 | |
| 122 | end ActualFullUpdate |
| 123 | |
| 124 | end NavierStokes.CorrectionStep |