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.DriftCorrectionForcing |
| 2 | import Euler.GevreyNonlinearEstimate |
| 3 | |
| 4 | /-! Actual nonlinear forcing with separate full-background and drift envelopes. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerDriftNonlinearEstimate |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev |
| 11 | EulerSpatialSobolevInverse EulerH6Pressure EulerSobolevGevreyOperators EulerGevreyCorrectionForcing |
| 12 | EulerH6Nonlinear EulerSobolevTransportCommutator EulerGevreyPressureTransport EulerSobolevCoefficientPressure |
| 13 | EulerGevreyMetricComparison EulerWeightedCylinderEnergy EulerGevreyRestriction EulerGevreyOrderZero |
| 14 | EulerGevreyCorrectionBound EulerGevreyNonlinearEstimate EulerSobolevDriftNorm EulerFunctionalVelocity |
| 15 | |
| 16 | /-- The factor four is spent only on the correction drift, recovering the original uniform loss constant. -/ |
| 17 | theorem drift_loss_absorption (P M Rc ρ B E Y D : ℝ) |
| 18 | (hP : 0 ≤ P) (hM : 0 ≤ M) (hRc : 0 ≤ Rc) (hρ : 0 < ρ) |
| 19 | (hB : 0 ≤ B) (hE : 0 ≤ E) (hY : 0 ≤ Y) (hD : D ≤ 4*(B+E)) : |
| 20 | (P*ρ⁻¹+8*Rc*M*P)*D*Y ≤ ((4+32*M)*P)*(ρ⁻¹+Rc)*(B+E)*Y := by |
| 21 | have ha : 0 ≤ P*ρ⁻¹+8*Rc*M*P := by positivity |
| 22 | have hc : 4*(P*ρ⁻¹+8*Rc*M*P) ≤ ((4+32*M)*P)*(ρ⁻¹+Rc) := by |
| 23 | have h1 := mul_nonneg hP hRc |
| 24 | have h2 := mul_nonneg (mul_nonneg hM hP) (inv_nonneg.mpr hρ.le) |
| 25 | nlinarith only [h1,h2] |
| 26 | calc |
| 27 | _ ≤ (P*ρ⁻¹+8*Rc*M*P)*(4*(B+E))*Y := |
| 28 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hD ha) hY |
| 29 | _ = (4*(P*ρ⁻¹+8*Rc*M*P))*(B+E)*Y := by ring |
| 30 | _ ≤ _ := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hc (add_nonneg hB hE)) hY |
| 31 | |
| 32 | /-- Scalar assembly keeps the independent full-velocity and drift envelopes in their respective terms. -/ |
| 33 | theorem polynomial_assembly (S T D Z B P B1 A0 A2 R E Y V F H : ℝ) |
| 34 | (hS : 0 ≤ S) (hT : 0 ≤ T) (hE : 0 ≤ E) |
| 35 | (hV : V ≤ Z+E) (hF : F ≤ R+(P*B1+A0+2*A2*P*Z)*E+A2*P*E^2) |
| 36 | (hH : H ≤ S*F+T*V*E+D*(B+E)*Y) : |
| 37 | H ≤ S*R+(S*(P*B1+A0+2*A2*P*Z)+T*Z)*E+(S*A2*P+T)*E^2+D*(B+E)*Y := by |
| 38 | have h := add_le_add (add_le_add (mul_le_mul_of_nonneg_left hF hS) |
| 39 | (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hV hT) hE)) (le_refl (D*(B+E)*Y)) |
| 40 | exact hH.trans (h.trans_eq (by ring)) |
| 41 | |
| 42 | variable (period : ℝ) [Fact (0 < period)] |
| 43 | |
| 44 | /-- The literal seven-term Euler forcing has a scalar bound preserving the actual small background drift. -/ |
| 45 | theorem correctionForcing_polynomial {s : ℕ} (hs : 6 ≤ s) {A : SmoothCoefficient period} |
| 46 | (KG : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s A) |
| 47 | (KG0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) |
| 48 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 49 | (hpos : ∀ x v, c*‖v‖^2 ≤ ⟪A.coefficient x v,v⟫_ℝ) |
| 50 | (N : ℕ) (hN : N+6 ≤ s) (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) |
| 51 | (hbase5 : (EulerH6Pressure.CoefficientJet.restrict KG 5 (by omega)).pressureConstant c ≤ M) |
| 52 | (hbase6 : (EulerH6Pressure.CoefficientJet.restrict KG 6 (by omega)).pressureConstant c ≤ M) |
| 53 | (hsmall : 4*M*(ρ*Rc) ≤ 1) |
| 54 | (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period KG 6 l ≤ Rc^l*(l.factorial : ℝ)^2) |
| 55 | (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG r ≤ B) |
| 56 | (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period KG0 r ≤ B) |
| 57 | (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 58 | (C0 : SmoothCoefficient period) (K0 : EulerSpatialSobolevInverse.CoefficientJet period standardDirection s C0) |
| 59 | (C : Fin 3 → SmoothCoefficient period) |
| 60 | (K : ∀ i, EulerSpatialSobolevInverse.CoefficientJet period standardDirection s (C i)) |
| 61 | (z e : SobolevSpace period (s+1)) (r : SobolevSpace period s) |
| 62 | (Z0 B0 B1 A0 A2 R : ℝ) (hA2 : 0 ≤ A2) |
| 63 | (hz : weightedNorm period 6 N ρ z ≤ Z0) |
| 64 | (hb : weightedDriftNorm period 6 N ρ (velocityMap L) z ≤ B0) |
| 65 | (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period s i z)) ≤ B1) |
| 66 | (hC0 : weightedCoefficient period K0 6 N ρ ≤ A0) |
| 67 | (hC : (∑ i : Fin 3, weightedCoefficient period (K i) 6 N ρ) ≤ A2) |
| 68 | (hr : weightedNorm period 6 N ρ r ≤ R) : |
| 69 | let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) |
| 70 | (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) |
| 71 | weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) |
| 72 | (correctionForcing period hs KG KG0 N hN L hL (z+e) e f |
| 73 | (pressureSobolevOperator period KG κ m c hc hpos f) (transportPressure period hs KG κ m c hc hpos L hL (z+e) e)) ≤ |
| 74 | sourceConstant B M*R+ |
| 75 | (sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*Z0)+transportConstant period B M*Z0)* |
| 76 | weightedNorm period 6 N ρ e+ |
| 77 | (sourceConstant B M*A2*productConstant period 3+transportConstant period B M)*(weightedNorm period 6 N ρ e)^2+ |
| 78 | lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by |
| 79 | let f := orderZeroSource period hs L hL (coefficientSobolevOperator period K0) |
| 80 | (fun i => coefficientSobolevOperator period (K i)) z r (truncateOperator period s e) |
| 81 | have hf := orderZeroSource_uniform period hs N hN ρ hρ L hL C0 K0 C K z e r Z0 B1 A0 A2 R hA2 hz hdz hC0 hC hr |
| 82 | have hv := (weightedNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ z e).trans |
| 83 | (add_le_add hz (le_refl (weightedNorm period 6 N ρ e))) |
| 84 | have hB0 : 0 ≤ B0 := (weightedDriftNorm_nonneg period 6 N ρ hρ (velocityMap L) z).trans hb |
| 85 | have heD := weightedDriftNorm_velocityMap_le period 6 N ρ hρ L hL e |
| 86 | have hD : weightedDriftNorm period 6 N ρ (velocityMap L) (z+e) ≤ |
| 87 | 4*(B0+weightedNorm period 6 N ρ e) := by |
| 88 | have h := (weightedDriftNorm_add_le period 6 N (by omega : N+6 ≤ s+1) ρ hρ (velocityMap L) z e).trans |
| 89 | (add_le_add hb heD) |
| 90 | nlinarith only [h,hB0] |
| 91 | have hraw := EulerDriftCorrectionForcing.correctionForcing_uniform_bound period hs KG KG0 κ m c hc hpos |
| 92 | N hN ρ Rc M B hρ hRc hM hbase5 hbase6 hsmall hcoeff hG hG0 L hL (z+e) e f |
| 93 | have hloss : (productConstant period 3*ρ⁻¹+8*Rc*M*productConstant period 3)* |
| 94 | weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)*weightedLoss period 6 N ρ e ≤ |
| 95 | lossConstant period M*(ρ⁻¹+Rc)*(B0+weightedNorm period 6 N ρ e)*weightedLoss period 6 N ρ e := by |
| 96 | simpa only [lossConstant] using drift_loss_absorption (productConstant period 3) M Rc ρ B0 |
| 97 | (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) |
| 98 | (weightedDriftNorm period 6 N ρ (velocityMap L) (z+e)) |
| 99 | (productConstant_nonneg period 3) (by linarith) hRc hρ hB0 |
| 100 | (weightedNorm_nonneg period 6 N ρ hρ e) (weightedLoss_nonneg period 6 N ρ hρ e) hD |
| 101 | have h := hraw.trans (add_le_add (le_refl _) hloss) |
| 102 | exact polynomial_assembly (sourceConstant B M) (transportConstant period B M) |
| 103 | (lossConstant period M*(ρ⁻¹+Rc)) Z0 B0 (productConstant period 3) B1 A0 A2 R |
| 104 | (weightedNorm period 6 N ρ e) (weightedLoss period 6 N ρ e) (weightedNorm period 6 N ρ (z+e)) |
| 105 | (weightedNorm period 6 N ρ f) _ |
| 106 | (sourceConstant_nonneg hB (by linarith)) (transportConstant_nonneg period hB (by linarith)) |
| 107 | (weightedNorm_nonneg period 6 N ρ hρ e) hv hf h |
| 108 | |
| 109 | end EulerDriftNonlinearEstimate |