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.DiagonalResidual |
| 2 | import NavierStokes.MixedFiniteBackground |
| 3 | |
| 4 | /-! ## From `NavierStokes/GenericJetRateAlgebra.lean` |
| 5 | |
| 6 | The text of `NavierStokes/GenericJetRateAlgebra.lean`, folded into this file, which was its only importer. -/ |
| 7 | |
| 8 | section |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace NavierStokes.GenericDifferentialPolynomial |
| 13 | |
| 14 | open Set Filter DiagonalResidual |
| 15 | open scoped Topology ContDiff |
| 16 | |
| 17 | variable {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 18 | private local instance : NormedAddCommGroup ((D →L[ℝ] ℝ) →L[ℝ] ℝ) := inferInstance |
| 19 | private local instance : NormedSpace ℝ ((D →L[ℝ] ℝ) →L[ℝ] ℝ) := inferInstance |
| 20 | |
| 21 | variable {l : Filter D} {q : D → ℝ} {U : Set D} {f g : D → ℝ} |
| 22 | |
| 23 | end NavierStokes.GenericDifferentialPolynomial |
| 24 | end |
| 25 | |
| 26 | end |
| 27 | |
| 28 | /-! ## From `NavierStokes/GenericDifferentialPolynomial.lean` |
| 29 | |
| 30 | The text of `NavierStokes/GenericDifferentialPolynomial.lean`, folded into this file, which was its only importer. -/ |
| 31 | |
| 32 | section |
| 33 | |
| 34 | noncomputable section |
| 35 | |
| 36 | namespace NavierStokes.GenericDifferentialPolynomial |
| 37 | |
| 38 | open Set Filter DiagonalResidual |
| 39 | open scoped Topology ContDiff |
| 40 | |
| 41 | variable {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 42 | |
| 43 | /-- Quantitative approximation data. Constants may depend on the stage, while |
| 44 | the power losses and derivative thresholds are fixed functions of the jet order. -/ |
| 45 | structure ApproximationRates (l : Filter D) (q : D → ℝ) (gain : ℕ → ℝ) |
| 46 | (f : D → ℝ) (stage : ℕ → D → ℝ) where |
| 47 | growthLoss : ℕ → ℝ |
| 48 | tailLoss : ℕ → ℝ |
| 49 | threshold : ℕ → ℕ |
| 50 | stage_growth : ∀ J m, JetRate l q (stage J) m (-growthLoss m) |
| 51 | tail_rate : ∀ m J, threshold m ≤ J → |
| 52 | JetRate l q (fun x => f x - stage J x) m (gain J - tailLoss m) |
| 53 | |
| 54 | private def maxThreshold (M : ℕ → ℕ) (m : ℕ) : ℕ := |
| 55 | (Finset.range (m + 1)).sup M |
| 56 | |
| 57 | private theorem le_maxThreshold (M : ℕ → ℕ) {k m : ℕ} (hk : k ≤ m) : |
| 58 | M k ≤ maxThreshold M m := |
| 59 | Finset.le_sup (f := M) (Finset.mem_range.mpr (Nat.lt_succ_of_le hk)) |
| 60 | |
| 61 | variable {l : Filter D} {q : D → ℝ} {gain : ℕ → ℝ} {U : Set D} |
| 62 | variable {f g : D → ℝ} {fs gs : ℕ → D → ℝ} |
| 63 | |
| 64 | /-- A finite differential expression in scalar components with fixed variable |
| 65 | coefficients. Products, sums, and arbitrary fixed directional derivatives are |
| 66 | allowed at every node; consequently the order and polynomial degree are finite. -/ |
| 67 | inductive Expression (D ι κ : Type*) where |
| 68 | | input : ι → Expression D ι κ |
| 69 | | coeff : κ → Expression D ι κ |
| 70 | | add : Expression D ι κ → Expression D ι κ → Expression D ι κ |
| 71 | | mul : Expression D ι κ → Expression D ι κ → Expression D ι κ |
| 72 | | directional : D → Expression D ι κ → Expression D ι κ |
| 73 | |
| 74 | namespace Expression |
| 75 | |
| 76 | variable {ι κ : Type*} |
| 77 | |
| 78 | /-- Evaluation uses actual Fréchet derivatives, including at derivative nodes. -/ |
| 79 | def eval (c : κ → D → ℝ) (u : ι → D → ℝ) : Expression D ι κ → D → ℝ |
| 80 | | .input i => u i |
| 81 | | .coeff i => c i |
| 82 | | .add a b => fun x => eval c u a x + eval c u b x |
| 83 | | .mul a b => fun x => eval c u a x * eval c u b x |
| 84 | | .directional v a => fun x => fderiv ℝ (eval c u a) x v |
| 85 | |
| 86 | end Expression |
| 87 | |
| 88 | end NavierStokes.GenericDifferentialPolynomial |
| 89 | end |
| 90 | |
| 91 | end |
| 92 | |
| 93 | /-! ## From `NavierStokes/GenericRealizationBounds.lean` |
| 94 | |
| 95 | The text of `NavierStokes/GenericRealizationBounds.lean`, folded into this file, which was its only importer. -/ |
| 96 | |
| 97 | section |
| 98 | |
| 99 | /-! |
| 100 | # Quantitative bounds for general diagonal realizations |
| 101 | |
| 102 | The base is retained without a cutoff. The positive corrections are actual |
| 103 | locally finite cutoff sums. Logarithmic losses are absorbed at each fixed |
| 104 | stage, while the resulting power loss is independent of the stage. |
| 105 | -/ |
| 106 | |
| 107 | noncomputable section |
| 108 | |
| 109 | namespace NavierStokes.GenericRealizationBounds |
| 110 | |
| 111 | open Set Filter DiagonalResidual |
| 112 | open scoped Topology ContDiff BigOperators |
| 113 | |
| 114 | variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 115 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 116 | |
| 117 | /-- The uncut base plus the actual positive cutoff series. -/ |
| 118 | def realized (a : ℕ → ℝ) (q : E → ℝ) (base : E → V) (A : ℕ → E → V) : E → V := |
| 119 | fun x => base x + SolenoidalDiagonal.potentialSum a q |
| 120 | (CutStageEstimates.positiveStages A) x |
| 121 | |
| 122 | /-- The corresponding finite approximation, including exactly stages `1,…,J`. -/ |
| 123 | def stage (base : E → V) (A : ℕ → E → V) (J : ℕ) : E → V := |
| 124 | fun x => base x + DiagonalJetBounds.uncutPrefix |
| 125 | (CutStageEstimates.positiveStages A) (J + 1) x |
| 126 | |
| 127 | end NavierStokes.GenericRealizationBounds |
| 128 | end |
| 129 | |
| 130 | end |
| 131 | |
| 132 | noncomputable section |
| 133 | |
| 134 | namespace NavierStokes.GenericDifferentialPolynomial |
| 135 | |
| 136 | open Set Filter DiagonalResidual |
| 137 | open scoped Topology ContDiff BigOperators |
| 138 | |
| 139 | variable {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 140 | variable {l : Filter D} {q : D → ℝ} {U S : Set D} |
| 141 | |
| 142 | /-- Tail data suffice for residual transfer; a coefficient independent of the |
| 143 | fields cancels exactly and therefore needs no growth bound in this step. -/ |
| 144 | structure TailRates (l : Filter D) (q : D → ℝ) (gain : ℕ → ℝ) |
| 145 | (f : D → ℝ) (stage : ℕ → D → ℝ) where |
| 146 | loss : ℕ → ℝ |
| 147 | threshold : ℕ → ℕ |
| 148 | rate : ∀ m J, threshold m ≤ J → |
| 149 | JetRate l q (fun x => f x - stage J x) m (gain J - loss m) |
| 150 | |
| 151 | /-- A finite differential polynomial in normal form, allowing coefficients |
| 152 | whose growth bounds are local to a different common support for every term. -/ |
| 153 | structure SupportedPolynomial (D ι : Type*) where |
| 154 | constant : D → ℝ |
| 155 | terms : List ((D → ℝ) × Expression D ι Empty) |
| 156 | |
| 157 | namespace SupportedPolynomial |
| 158 | |
| 159 | variable {ι : Type*} |
| 160 | |
| 161 | end SupportedPolynomial |
| 162 | |
| 163 | end NavierStokes.GenericDifferentialPolynomial |