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.ParentRenewalScaleCosts |
| 2 | import Euler.ParentRenewalPrefix |
| 3 | import Euler.PacketForwardGeometryLowBounds |
| 4 | |
| 5 | /-! The fixed scalar envelope bounds the literal lowGeometry of both |
| 6 | source branches. Its inputs are the existing frame and neighbor costs, |
| 7 | with no assumed estimate for the new coupling or tilt. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerParentRenewalScale |
| 12 | |
| 13 | open EulerPacketMovingFrame EulerPacketSourceScaleChoice |
| 14 | |
| 15 | theorem sigma_mul_le_two {σ x : ℝ} (h : σ^2*x^2 ≤ 2) : σ*x ≤ 2 := by |
| 16 | nlinarith only [h,sq_nonneg (σ*x-2)] |
| 17 | |
| 18 | theorem tilt_small_of_cost {ι : Type*} (G : PhysicalGeometryData ι) |
| 19 | {cost : ℕ → ℝ} {η : ℝ} (n : ℕ) (hs : SmallSeries cost η) |
| 20 | (hη : η ≤ 1/2) (h : G.tiltError ≤ cost n) : G.tiltError ≤ 1/2 := |
| 21 | h.trans ((hs.term_le n).trans hη) |
| 22 | |
| 23 | /-- Apply this to the matching certificate proved by either actual |
| 24 | target-renewal constructor. It supplies exactly the finite-prefix step. -/ |
| 25 | theorem literal_step {ι : Type*} {V : Type} [NormedAddCommGroup V] [InnerProductSpace ℝ V] |
| 26 | {D : EulerTransversePacketProvider.Data V} {G : PhysicalGeometryData ι} |
| 27 | {Q : EulerPacketSourceGeometry.ParentFrame D G.targetTime} |
| 28 | (H : EulerParentPacketFrames.RenewalAtTarget G Q) |
| 29 | (J : ℕ) (X : ℝ) (n : ℕ) {cost : ℕ → ℝ} {η : ℝ} |
| 30 | (hs : SmallSeries cost η) (hη : η ≤ 1/2) |
| 31 | (hcost : G.couplingError ≤ cost n ∧ G.tiltError ≤ cost n) |
| 32 | (hy : G.y=(scaleSequence J X (n+1))⁻¹) : |
| 33 | |Q.a/G.a-1| ≤ cost n ∧ |
| 34 | (1/2 ≤ Q.sigma^2*(scaleSequence J X (n+1))^2 ∧ |
| 35 | Q.sigma^2*(scaleSequence J X (n+1))^2 ≤ 2) := by |
| 36 | have ht := tilt_small_of_cost G n hs hη hcost.2 |
| 37 | have hi := H.tilt_interval ht |
| 38 | rw [hy,inv_inv] at hi |
| 39 | refine ⟨H.coupling_error.trans hcost.1,?_,?_⟩ <;> nlinarith only [hi.1,hi.2] |
| 40 | |
| 41 | end EulerParentRenewalScale |
| 42 | |
| 43 | namespace EulerPacketSourceGeometry.Guards |
| 44 | |
| 45 | open Set EulerSmoothLimit EulerPacketMovingFrame EulerTransversePacketProvider |
| 46 | EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence EulerPacketSourceScaleActual |
| 47 | EulerPacketSourceScales EulerParentRenewalScale |
| 48 | |
| 49 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 50 | {D : Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} {P : ParentFrame D τ} |
| 51 | {H : HistoryData (D.initial τ hτ hτT.le)} (A : Guards hτ hτT P H) |
| 52 | (hball : (1/2 : ℝ) ≤ A.radius) |
| 53 | |
| 54 | theorem renewal_errors_on_scales |
| 55 | (J D0 : ℕ) (hJ : 2 ≤ J) (C c CF X a : ℝ) (hC : 1 ≤ C) (hCF : 1 ≤ CF) |
| 56 | (hX : 1 ≤ X) (ha : a ≤ 2) (n : ℕ) |
| 57 | (haMatch : P.a=a) (hShear : P.shear=previousShear J X n) |
| 58 | (hTheta : P.horizon ≤ sourceTheta J C (scaleSequence J X) n) |
| 59 | (hG : P.G ≤ CF*(1+olderShear J X n)) |
| 60 | (hError : P.error ≤ priorError J D0 X n) |
| 61 | (hNeighbor : P.neighborCost hτ hτT H A.CM A.CH*A.radius ≤ neighborError J D0 X c n) |
| 62 | (hY : A.y=(scaleSequence J X (n+1))⁻¹) |
| 63 | (hSigma : P.sigma^2*(scaleSequence J X n)^2 ≤ 2) : |
| 64 | (A.lowGeometry hball).couplingError ≤ renewalCost J D0 C c CF X n ∧ |
| 65 | (A.lowGeometry hball).tiltError ≤ renewalCost J D0 C c CF X n := by |
| 66 | apply actual_errors_le_cost (A.lowGeometry hball) J D0 hJ C c CF X a hC hCF hX ha n |
| 67 | · change P.epsilon=epsilon J X a n |
| 68 | simp only [ParentFrame.epsilon,epsilon,haMatch,hShear] |
| 69 | · exact hTheta |
| 70 | · exact hG |
| 71 | · exact add_le_add hError hNeighbor |
| 72 | · exact hY |
| 73 | · exact sigma_mul_le_two hSigma |
| 74 | |
| 75 | end EulerPacketSourceGeometry.Guards |
| 76 | |
| 77 | namespace EulerPacketSourceGeometry.ForwardGuards |
| 78 | |
| 79 | open Set EulerSmoothLimit EulerPacketMovingFrame EulerTransversePacketProvider |
| 80 | EulerPacketSourceScaleChoice EulerPacketSourceScaleSequence EulerPacketSourceScaleActual |
| 81 | EulerPacketSourceScales EulerParentRenewalScale |
| 82 | |
| 83 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 84 | {D : Data U} {P : ParentFrame D 0} (A : ForwardGuards P) |
| 85 | (hball : (1/2 : ℝ) ≤ A.radius) |
| 86 | |
| 87 | theorem renewal_errors_on_scales |
| 88 | (J D0 : ℕ) (hJ : 2 ≤ J) (C c CF X a : ℝ) (hC : 1 ≤ C) (hCF : 1 ≤ CF) |
| 89 | (hX : 1 ≤ X) (ha : a ≤ 2) (n : ℕ) |
| 90 | (haMatch : P.a=a) (hShear : P.shear=previousShear J X n) |
| 91 | (hTheta : P.horizon ≤ sourceTheta J C (scaleSequence J X) n) |
| 92 | (hG : P.G ≤ CF*(1+olderShear J X n)) |
| 93 | (hError : P.error ≤ priorError J D0 X n) |
| 94 | (hNeighbor : ‖D.M.derivative.field‖*A.radius ≤ neighborError J D0 X c n) |
| 95 | (hY : A.y=(scaleSequence J X (n+1))⁻¹) |
| 96 | (hSigma : P.sigma^2*(scaleSequence J X n)^2 ≤ 2) : |
| 97 | (A.lowGeometry hball).couplingError ≤ renewalCost J D0 C c CF X n ∧ |
| 98 | (A.lowGeometry hball).tiltError ≤ renewalCost J D0 C c CF X n := by |
| 99 | apply actual_errors_le_cost (A.lowGeometry hball) J D0 hJ C c CF X a hC hCF hX ha n |
| 100 | · change P.epsilon=epsilon J X a n |
| 101 | simp only [ParentFrame.epsilon,epsilon,haMatch,hShear] |
| 102 | · exact hTheta |
| 103 | · exact hG |
| 104 | · exact add_le_add hError hNeighbor |
| 105 | · exact hY |
| 106 | · exact sigma_mul_le_two hSigma |
| 107 | |
| 108 | end EulerPacketSourceGeometry.ForwardGuards |