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.SobolevDriftTransport |
| 2 | import Euler.GevreyCorrectionBound |
| 3 | |
| 4 | /-! Actual nonlinear correction forcing with distinct full-velocity and drift factors. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerDriftCorrectionForcing |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev |
| 11 | EulerSpatialSobolevInverse EulerH6Pressure EulerPacketWeights EulerSobolevGevreyOperators |
| 12 | EulerBaseWordMetric EulerFiniteMetricEnergy EulerWeightedCylinderEnergy EulerGevreyMetricComparison |
| 13 | EulerSobolevWordLevel EulerSobolevTransportCommutator EulerGevreyPressureEnergy EulerBasePressureCommutator |
| 14 | EulerGevreyBaseTransport EulerGevreyForcingComponents EulerWeightedForcingAlgebra |
| 15 | EulerGevreyPressureTransport EulerSobolevCoefficientPressure EulerH6Nonlinear EulerBaseTransportL2 |
| 16 | EulerGevreyCorrectionForcing EulerGevreyCorrectionBound EulerGevreyUniformConstants |
| 17 | EulerSobolevDriftNorm EulerSobolevDriftTransport EulerFunctionalVelocity |
| 18 | |
| 19 | variable (period : ℝ) [Fact (0 < period)] |
| 20 | |
| 21 | /-- The nonlinear external pressure commutator keeps the actual drift norm at positive cutoff. -/ |
| 22 | theorem nonlinear_externalPressure_bound {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} |
| 23 | (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) |
| 24 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 25 | (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) |
| 26 | (N : ℕ) (hN : (N+1)+6 ≤ s) (ρ Rc M : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) |
| 27 | (hbase : (EulerH6Pressure.CoefficientJet.restrict K 6 (by omega)).pressureConstant c ≤ M) |
| 28 | (hsmall : 4*M*(ρ*Rc) ≤ 1) |
| 29 | (hcoeff : ∀ l, 1 ≤ l → l ≤ N+1 → coefficientBlock period K 6 l ≤ Rc^l*(l.factorial : ℝ)^2) |
| 30 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 31 | (u v : SobolevSpace period (s+1)) : |
| 32 | externalPressureNorm period K (N+1) ρ (transportPressure period hs K κ m c hc hpos L hL u v) ≤ |
| 33 | (8*Rc*M*productConstant period 3)*weightedDriftNorm period 6 (N+1) ρ (velocityMap L) u*weightedLoss period 6 (N+1) ρ v := by |
| 34 | have hhalf : ρ*Rc ≤ 1/2 := by nlinarith [mul_nonneg hρ.le hRc] |
| 35 | have hcN : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period K 6 l ≤ Rc^l*(l.factorial : ℝ)^2 := |
| 36 | fun l hl hn => hcoeff l hl (by omega) |
| 37 | have hp := transportPressure_shifted_drift period hs K κ m c hc hpos N (by omega) ρ Rc M hρ hRc hM hbase hsmall hcN L hL u v |
| 38 | exact (externalPressureNorm_shifted period K N hN ρ Rc hρ hRc hhalf hcoeff _).trans |
| 39 | ((mul_le_mul_of_nonneg_left hp (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hRc)).trans_eq (by ring)) |
| 40 | |
| 41 | /-- The sharp external pressure bound also includes zero cutoff. -/ |
| 42 | theorem nonlinear_externalPressure_bound_all {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} |
| 43 | (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) |
| 44 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 45 | (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) |
| 46 | (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) |
| 47 | (hbase : (EulerH6Pressure.CoefficientJet.restrict K 6 (by omega)).pressureConstant c ≤ M) |
| 48 | (hsmall : 4*M*(ρ*Rc) ≤ 1) |
| 49 | (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period K 6 l ≤ Rc^l*(l.factorial : ℝ)^2) |
| 50 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 51 | (u v : SobolevSpace period (s+1)) : |
| 52 | externalPressureNorm period K N ρ (transportPressure period hs K κ m c hc hpos L hL u v) ≤ |
| 53 | (8*Rc*M*productConstant period 3)*weightedDriftNorm period 6 N ρ (velocityMap L) u*weightedLoss period 6 N ρ v := by |
| 54 | cases N with |
| 55 | | zero => simp [externalPressureNorm, weightedLoss, commutatorBlock_zero] |
| 56 | | succ N => exact nonlinear_externalPressure_bound period hs K κ m c hc hpos N hN ρ Rc M hρ hRc hM hbase hsmall hcoeff L hL u v |
| 57 | |
| 58 | |
| 59 | /-- Seven actual forcing arrays retain the sharp drift commutator factor. -/ |
| 60 | theorem correctionForcing_raw_bound {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} |
| 61 | (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) |
| 62 | (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) |
| 63 | (N : ℕ) (hN : N+6 ≤ s) (ρ : ℝ) (hρ : 0 < ρ) |
| 64 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 65 | (u v : SobolevSpace period (s+1)) (f p0 p1 : SobolevSpace period s) : |
| 66 | weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) (correctionForcing period hs K K0 N hN L hL u v f p0 p1) ≤ |
| 67 | weightedNorm period 6 N ρ f + (productConstant period 3)*ρ⁻¹*weightedDriftNorm period 6 N ρ (velocityMap L) u*weightedLoss period 6 N ρ v + |
| 68 | (5461*baseTransportConstant period)*weightedNorm period 6 N ρ u*weightedNorm period 6 N ρ v + |
| 69 | externalPressureNorm period K N ρ p0 + basePressureNorm period K0 N hN ρ p0 + |
| 70 | externalPressureNorm period K N ρ p1 + basePressureNorm period K0 N hN ρ p1 := by |
| 71 | have h := forcing_seven_le ρ hρ (fun I : ExternalWord N => I.1.val) |
| 72 | (-energyValues period 6 N hN f) (-externalTransportForcing period hs N hN L hL u v) |
| 73 | (-baseTransportForcing period N hN L hL u v) (externalPressureForcing period K N hN p0) |
| 74 | (basePressureForcing period K0 N hN p0) (externalPressureForcing period K N hN p1) |
| 75 | (basePressureForcing period K0 N hN p1) |
| 76 | simp only [weightedForcingSum_neg] at h |
| 77 | have hS := sourceForcing_weighted_bound period N hN ρ hρ f |
| 78 | have hE := (externalTransportForcing_bound period hs N hN ρ hρ L hL u v).trans |
| 79 | (weightedCommutator_drift_bound period hs N hN ρ hρ L hL u v) |
| 80 | have hB := baseTransportForcing_weighted_bound period N hN ρ hρ L hL u v |
| 81 | have hP0 := externalPressureForcing_bound period K N hN ρ hρ p0 |
| 82 | have hQ0 := basePressureForcing_bound period K0 N hN ρ hρ p0 |
| 83 | have hP1 := externalPressureForcing_bound period K N hN ρ hρ p1 |
| 84 | have hQ1 := basePressureForcing_bound period K0 N hN ρ hρ p1 |
| 85 | exact h.trans (add_le_add (add_le_add (add_le_add (add_le_add (add_le_add (add_le_add hS hE) hB) hP0) hQ0) hP1) hQ1) |
| 86 | |
| 87 | /-- The full actual forcing with both genuine projected pressure solves obeys the spatial part of equation (19). |
| 88 | Every velocity derivative in the bound lies at or below the chosen cutoff. -/ |
| 89 | theorem correctionForcing_bound {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} |
| 90 | (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) |
| 91 | (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) |
| 92 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 93 | (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) |
| 94 | (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) |
| 95 | (hbase5 : (EulerH6Pressure.CoefficientJet.restrict K 5 (by omega)).pressureConstant c ≤ M) |
| 96 | (hbase6 : (EulerH6Pressure.CoefficientJet.restrict K 6 (by omega)).pressureConstant c ≤ M) |
| 97 | (hsmall : 4*M*(ρ*Rc) ≤ 1) |
| 98 | (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period K 6 l ≤ Rc^l*(l.factorial : ℝ)^2) |
| 99 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 100 | (u v : SobolevSpace period (s+1)) (f : SobolevSpace period s) : |
| 101 | weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) |
| 102 | (correctionForcing period hs K K0 N hN L hL u v f |
| 103 | (pressureSobolevOperator period K κ m c hc hpos f) (transportPressure period hs K κ m c hc hpos L hL u v)) ≤ |
| 104 | (1+2*M*(weightedCoefficient period K 6 N ρ + 448*baseCoefficientSum period K0))*weightedNorm period 6 N ρ f + |
| 105 | (5461*baseTransportConstant period + (448*baseCoefficientSum period K0)*(8*M*(5460*lowerProductConstant period 3)))* |
| 106 | weightedNorm period 6 N ρ u*weightedNorm period 6 N ρ v + |
| 107 | ((productConstant period 3)*ρ⁻¹ + 8*Rc*M*productConstant period 3)* |
| 108 | weightedDriftNorm period 6 N ρ (velocityMap L) u*weightedLoss period 6 N ρ v := by |
| 109 | let p0 := pressureSobolevOperator period K κ m c hc hpos f |
| 110 | let p1 := transportPressure period hs K κ m c hc hpos L hL u v |
| 111 | have h := correctionForcing_raw_bound period hs K K0 N hN ρ hρ L hL u v f p0 p1 |
| 112 | have hp0 := source_pressure_commutators period K K0 κ m c hc hpos N hN ρ Rc M hρ hRc hM hbase6 hsmall hcoeff f |
| 113 | have hp1e := nonlinear_externalPressure_bound_all period hs K κ m c hc hpos N hN ρ Rc M hρ hRc hM hbase6 hsmall hcoeff L hL u v |
| 114 | have hp1b := nonlinear_basePressure_bound period hs K K0 κ m c hc hpos N hN ρ Rc M hρ hRc hM hbase5 hsmall hcoeff L hL u v |
| 115 | change externalPressureNorm period K N ρ p0 + basePressureNorm period K0 N hN ρ p0 ≤ _ at hp0 |
| 116 | change externalPressureNorm period K N ρ p1 ≤ _ at hp1e |
| 117 | change basePressureNorm period K0 N hN ρ p1 ≤ _ at hp1b |
| 118 | nlinarith only [h, hp0, hp1e, hp1b] |
| 119 | |
| 120 | /-- Uniform fixed-base constants preserve the separate drift norm. -/ |
| 121 | theorem correctionForcing_uniform_bound {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} |
| 122 | (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) |
| 123 | (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) |
| 124 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 125 | (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) |
| 126 | (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) |
| 127 | (hbase5 : (EulerH6Pressure.CoefficientJet.restrict K 5 (by omega)).pressureConstant c ≤ M) |
| 128 | (hbase6 : (EulerH6Pressure.CoefficientJet.restrict K 6 (by omega)).pressureConstant c ≤ M) |
| 129 | (hsmall : 4*M*(ρ*Rc) ≤ 1) |
| 130 | (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period K 6 l ≤ Rc^l*(l.factorial : ℝ)^2) |
| 131 | (hB : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period K r ≤ B) |
| 132 | (hB0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period K0 r ≤ B) |
| 133 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 134 | (u v : SobolevSpace period (s+1)) (f : SobolevSpace period s) : |
| 135 | weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) |
| 136 | (correctionForcing period hs K K0 N hN L hL u v f |
| 137 | (pressureSobolevOperator period K κ m c hc hpos f) (transportPressure period hs K κ m c hc hpos L hL u v)) ≤ |
| 138 | sourceConstant B M*weightedNorm period 6 N ρ f + |
| 139 | transportConstant period B M*weightedNorm period 6 N ρ u*weightedNorm period 6 N ρ v + |
| 140 | (productConstant period 3*ρ⁻¹+8*Rc*M*productConstant period 3)*weightedDriftNorm period 6 N ρ (velocityMap L) u*weightedLoss period 6 N ρ v := by |
| 141 | have hhalf : ρ*Rc ≤ 1/2 := by nlinarith [mul_nonneg hρ.le hRc] |
| 142 | have hw := weightedCoefficient_uniform period K N ρ Rc B hρ hRc hhalf hB hcoeff |
| 143 | have hb := baseCoefficientSum_le period K0 B hB0 |
| 144 | have hM0 : 0 ≤ M := by linarith |
| 145 | have hsf : 1+2*M*(weightedCoefficient period K 6 N ρ+448*baseCoefficientSum period K0) ≤ sourceConstant B M := by |
| 146 | have h := add_le_add (le_refl (1 : ℝ)) (mul_le_mul_of_nonneg_left |
| 147 | (add_le_add hw (mul_le_mul_of_nonneg_left hb (by norm_num : (0 : ℝ) ≤ 448))) |
| 148 | (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hM0)) |
| 149 | exact h.trans_eq (by unfold sourceConstant; ring) |
| 150 | have htf : 5461*baseTransportConstant period+(448*baseCoefficientSum period K0)*(8*M*(5460*lowerProductConstant period 3)) ≤ |
| 151 | transportConstant period B M := by |
| 152 | have hp : 0 ≤ 8*M*(5460*lowerProductConstant period 3) := |
| 153 | mul_nonneg (mul_nonneg (by norm_num) hM0) (mul_nonneg (by norm_num) (lowerProductConstant_nonneg period 3)) |
| 154 | have h := add_le_add (le_refl (5461*baseTransportConstant period)) (mul_le_mul_of_nonneg_right |
| 155 | (mul_le_mul_of_nonneg_left hb (by norm_num : (0 : ℝ) ≤ 448)) hp) |
| 156 | exact h.trans_eq (by unfold transportConstant; ring) |
| 157 | have h := correctionForcing_bound period hs K K0 κ m c hc hpos N hN ρ Rc M hρ hRc hM hbase5 hbase6 hsmall hcoeff L hL u v f |
| 158 | exact h.trans (add_le_add (add_le_add |
| 159 | (mul_le_mul_of_nonneg_right hsf (weightedNorm_nonneg period 6 N ρ hρ f)) |
| 160 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right htf (weightedNorm_nonneg period 6 N ρ hρ u)) |
| 161 | (weightedNorm_nonneg period 6 N ρ hρ v))) |
| 162 | (le_refl _)) |
| 163 | |
| 164 | end EulerDriftCorrectionForcing |