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 Euler.PacketSourceCorrectionCoefficients |
| 2 | import Euler.PacketMatrixCoefficientAlgebra |
| 3 | import Euler.PacketCylinderCoefficientBounds |
| 4 | import Euler.GevreyFixedShift |
| 5 | import Euler.MeanCoefficientPathJets |
| 6 | |
| 7 | /-! Source bounds for the actual pressure metric, linear coefficient and |
| 8 | three quadratic coefficients. Their common coefficient radius and amplitudes |
| 9 | are independent of the correction order, cutoff and frequency. -/ |
| 10 | |
| 11 | /-! ## From `Euler/PacketMatrixCoefficientGevrey.lean` |
| 12 | |
| 13 | The text of `Euler/PacketMatrixCoefficientGevrey.lean`, folded into this file, which was its only importer. -/ |
| 14 | |
| 15 | section |
| 16 | |
| 17 | /-! Bounds for the actual composition, scalar multiple and spatial derivative |
| 18 | of packet matrix-coefficient witnesses. The derivative radius enlargement |
| 19 | occurs only in this fixed coefficient budget. -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace EulerPacketCylinderField.MatrixCoefficient |
| 24 | |
| 25 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerBoundedFieldCalculus |
| 26 | EulerPacketPointJets EulerGevrey EulerOperatorGevreyCalculus |
| 27 | open scoped ContDiff BoundedContinuousFunction |
| 28 | |
| 29 | private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance |
| 30 | private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance |
| 31 | private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance |
| 32 | private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance |
| 33 | |
| 34 | variable {T : ℝ} {a b : Domain → Space →L[ℝ] Space} |
| 35 | |
| 36 | theorem comp_bound (A : MatrixCoefficient T a) (B : MatrixCoefficient T b) |
| 37 | (R C D : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) |
| 38 | (hbA : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) |
| 39 | (hbB : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath B.path) x‖ ≤ D*majorant R 0 n) |
| 40 | (n : ℕ) (x : Space) : |
| 41 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.comp B).path) x‖ ≤ |
| 42 | (3*C*D)*majorant R 0 n := by |
| 43 | have he : translateCoefficientPath (A.comp B).path = |
| 44 | fun v => pathCompositionMap (translateCoefficientPath A.path v) (translateCoefficientPath B.path v) := by |
| 45 | funext v |
| 46 | apply ContinuousMap.ext |
| 47 | intro t |
| 48 | apply BoundedContinuousFunction.ext |
| 49 | intro y |
| 50 | rfl |
| 51 | rw [he] |
| 52 | exact pathComposition_bound (α := Space) (K := Icc (0 : ℝ) T) |
| 53 | (U := Space) (E := Space) (F := Space) |
| 54 | (translateCoefficientPath A.path) (translateCoefficientPath B.path) |
| 55 | A.orbit B.orbit R C D hR hC hD 0 0 hbA hbB n x |
| 56 | |
| 57 | theorem smul_bound (A : MatrixCoefficient T a) (c R C : ℝ) |
| 58 | (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) |
| 59 | (n : ℕ) (x : Space) : |
| 60 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.smul c).path) x‖ ≤ |
| 61 | (|c| * C)*majorant R 0 n := by |
| 62 | have he : translateCoefficientPath (A.smul c).path = c • translateCoefficientPath A.path := by |
| 63 | funext v |
| 64 | apply ContinuousMap.ext |
| 65 | intro t |
| 66 | apply BoundedContinuousFunction.ext |
| 67 | intro y |
| 68 | rfl |
| 69 | rw [he,iteratedFDeriv_const_smul_apply (A.orbit.of_le (by simp)).contDiffAt,norm_smul,Real.norm_eq_abs] |
| 70 | exact (mul_le_mul_of_nonneg_left (hb n x) (abs_nonneg c)).trans_eq (by ring) |
| 71 | |
| 72 | theorem spatialDerivative_norm_le (A : MatrixCoefficient T a) (v : Space) |
| 73 | (n : ℕ) (x : Space) : |
| 74 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.spatialDerivative v).path) x‖ ≤ |
| 75 | ‖v‖*‖iteratedFDeriv ℝ (n+1) (translateCoefficientPath A.path) x‖ := by |
| 76 | have he : translateCoefficientPath (A.spatialDerivative v).path = |
| 77 | fun y => fderiv ℝ (translateCoefficientPath A.path) y v := |
| 78 | funext (orbitDerivativePath_translation A.path A.orbit v) |
| 79 | rw [he] |
| 80 | have h := norm_iteratedFDeriv_clm_apply_const |
| 81 | (f := fderiv ℝ (translateCoefficientPath A.path)) (c := v) (n := n) (x := x) |
| 82 | (A.orbit.fderiv_right (m := ∞) (by simp)).contDiffAt (by simp) |
| 83 | simpa only [norm_iteratedFDeriv_fderiv] using h |
| 84 | |
| 85 | theorem spatialDerivative_bound (A : MatrixCoefficient T a) (v : Space) (hv : ‖v‖ ≤ 1) |
| 86 | (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) |
| 87 | (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) |
| 88 | (n : ℕ) (x : Space) : |
| 89 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.spatialDerivative v).path) x‖ ≤ |
| 90 | (C*R)*majorant (4*R) 0 n := by |
| 91 | have h1 := (spatialDerivative_norm_le A v n x).trans |
| 92 | (mul_le_mul_of_nonneg_left (hb (n+1) x) (norm_nonneg v)) |
| 93 | have h2 : ‖v‖*(C*majorant R 0 (n+1)) ≤ C*majorant R 1 n := by |
| 94 | simpa only [one_mul,majorant,Nat.add_zero,Nat.zero_add] using |
| 95 | mul_le_mul_of_nonneg_right hv (mul_nonneg hC (majorant_nonneg R hR 0 (n+1))) |
| 96 | exact (h1.trans h2).trans ((mul_le_mul_of_nonneg_left |
| 97 | (majorant_one_le_radius_four R hR n) hC).trans_eq (by ring)) |
| 98 | |
| 99 | theorem bound_mono_radius (A : MatrixCoefficient T a) (R S C : ℝ) |
| 100 | (hR : 0 ≤ R) (hRS : R ≤ S) (hC : 0 ≤ C) |
| 101 | (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant R 0 n) |
| 102 | (n : ℕ) (x : Space) : |
| 103 | ‖iteratedFDeriv ℝ n (translateCoefficientPath A.path) x‖ ≤ C*majorant S 0 n := |
| 104 | (hb n x).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono R S hR hRS 0 n) hC) |
| 105 | |
| 106 | end EulerPacketCylinderField.MatrixCoefficient |
| 107 | end |
| 108 | |
| 109 | end |
| 110 | |
| 111 | noncomputable section |
| 112 | |
| 113 | namespace EulerPacketCorrectionCoefficients |
| 114 | |
| 115 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerPacketCylinderField |
| 116 | EulerGevrey |
| 117 | open scoped ContDiff BoundedContinuousFunction |
| 118 | |
| 119 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 120 | (D : EulerTransversePacketProvider.Data U) |
| 121 | (R C0 C1 CI : ℝ) (hR : 0 ≤ R) (hC0 : 0 ≤ C0) (hC1 : 0 ≤ C1) (hCI : 0 ≤ CI) |
| 122 | (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → Space →L[ℝ] Space) x‖ ≤ C0*majorant R 0 n) |
| 123 | (hF1 : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F₁.field t : Space → Space →L[ℝ] Space) x‖ ≤ C1*majorant R 0 n) |
| 124 | (hFI : ∀ n t x, ‖iteratedFDeriv ℝ n (D.FInv.field t : Space → Space →L[ℝ] Space) x‖ ≤ CI*majorant R 0 n) |
| 125 | |
| 126 | include hR hC0 hF in |
| 127 | theorem frameCoefficient_bound (n : ℕ) (a : Space) : |
| 128 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (frameCoefficient D).path) a‖ ≤ C0*majorant R 0 n := |
| 129 | D.F.norm_iteratedFDeriv_translation_le n (C0*majorant R 0 n) |
| 130 | (mul_nonneg hC0 (majorant_nonneg R hR 0 n)) (hF n) a |
| 131 | |
| 132 | include hR hC1 hF1 in |
| 133 | theorem frameTimeCoefficient_bound (n : ℕ) (a : Space) : |
| 134 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (frameTimeCoefficient D).path) a‖ ≤ C1*majorant R 0 n := |
| 135 | D.F₁.norm_iteratedFDeriv_translation_le n (C1*majorant R 0 n) |
| 136 | (mul_nonneg hC1 (majorant_nonneg R hR 0 n)) (hF1 n) a |
| 137 | |
| 138 | include hR hCI hFI in |
| 139 | theorem inverseCoefficient_bound (n : ℕ) (a : Space) : |
| 140 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (inverseCoefficient D).path) a‖ ≤ CI*majorant R 0 n := |
| 141 | D.FInv.norm_iteratedFDeriv_translation_le n (CI*majorant R 0 n) |
| 142 | (mul_nonneg hCI (majorant_nonneg R hR 0 n)) (hFI n) a |
| 143 | |
| 144 | include hR hCI hFI in |
| 145 | theorem metricCoefficient_bound (n : ℕ) (a : Space) : |
| 146 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (metricCoefficient D).path) a‖ ≤ |
| 147 | (3*CI*CI)*majorant (4*R) 0 n := by |
| 148 | have hi := inverseCoefficient_bound D R CI hR hCI hFI |
| 149 | exact MatrixCoefficient.bound_mono_radius (metricCoefficient D) R (4*R) (3*CI*CI) |
| 150 | hR (by linarith) (by positivity) |
| 151 | (MatrixCoefficient.comp_bound (inverseCoefficient D) (inverseCoefficient D).adjoint |
| 152 | R CI CI hR hCI hCI hi ((inverseCoefficient D).adjoint_bound R CI hi)) n a |
| 153 | |
| 154 | include hR hC1 hCI hF1 hFI in |
| 155 | theorem linearCoefficient_bound (n : ℕ) (a : Space) : |
| 156 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (linearCoefficient D).path) a‖ ≤ |
| 157 | (6*CI*C1)*majorant (4*R) 0 n := by |
| 158 | have hi := inverseCoefficient_bound D R CI hR hCI hFI |
| 159 | have h1 := frameTimeCoefficient_bound D R C1 hR hC1 hF1 |
| 160 | have hp := MatrixCoefficient.comp_bound (inverseCoefficient D) (frameTimeCoefficient D) |
| 161 | R CI C1 hR hCI hC1 hi h1 |
| 162 | have hs := MatrixCoefficient.smul_bound ((inverseCoefficient D).comp (frameTimeCoefficient D)) |
| 163 | 2 R (3*CI*C1) hp |
| 164 | apply MatrixCoefficient.bound_mono_radius (linearCoefficient D) R (4*R) (6*CI*C1) |
| 165 | hR (by linarith) (by positivity) _ n a |
| 166 | intro k x |
| 167 | simpa only [linearCoefficient,abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)] using |
| 168 | (hs k x).trans_eq (show (|2| * (3*CI*C1))*majorant R 0 k = |
| 169 | (6*CI*C1)*majorant R 0 k by rw [abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)]; ring) |
| 170 | |
| 171 | include hR hC0 hCI hF hFI in |
| 172 | theorem quadraticCoefficient_bound (κ : ℝ) (hκ : |κ| ≤ 1) (i : Fin 3) (n : ℕ) (a : Space) : |
| 173 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (quadraticCoefficient D κ i).path) a‖ ≤ |
| 174 | (3*CI*(C0*R))*majorant (4*R) 0 n := by |
| 175 | have hi := MatrixCoefficient.bound_mono_radius (inverseCoefficient D) R (4*R) CI |
| 176 | hR (by linarith) hCI (inverseCoefficient_bound D R CI hR hCI hFI) |
| 177 | have hunit : ‖(EuclideanSpace.single i 1 : Space)‖ ≤ 1 := by simp |
| 178 | have hd := MatrixCoefficient.spatialDerivative_bound (frameCoefficient D) |
| 179 | (EuclideanSpace.single i 1) hunit R C0 hR hC0 (frameCoefficient_bound D R C0 hR hC0 hF) |
| 180 | have hp := MatrixCoefficient.comp_bound (inverseCoefficient D) |
| 181 | ((frameCoefficient D).spatialDerivative (EuclideanSpace.single i 1)) |
| 182 | (4*R) CI (C0*R) (by positivity) hCI (by positivity) hi hd |
| 183 | have hs := MatrixCoefficient.smul_bound |
| 184 | ((inverseCoefficient D).comp ((frameCoefficient D).spatialDerivative (EuclideanSpace.single i 1))) |
| 185 | κ (4*R) (3*CI*(C0*R)) hp n a |
| 186 | exact hs.trans (by |
| 187 | have hnon : 0 ≤ (3*CI*(C0*R))*majorant (4*R) 0 n := |
| 188 | mul_nonneg (by positivity) (majorant_nonneg (4*R) (by positivity) 0 n) |
| 189 | simpa only [one_mul,mul_assoc] using mul_le_mul_of_nonneg_right hκ hnon) |
| 190 | |
| 191 | end EulerPacketCorrectionCoefficients |