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.PacketForwardGeometryData |
| 2 | import Euler.ParentPacketNeighborBounds |
| 3 | import Euler.PacketSourceScaleGuards |
| 4 | |
| 5 | /-! The literal numerical scale guards also initialize the zero-history |
| 6 | amplification stage. Its new ray and velocity start exactly in the old |
| 7 | frame, so only the actual strain's spatial variation enters the error. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerParentPacketFrames.LabelData |
| 12 | |
| 13 | open Set InnerProductSpace EulerSmoothLimit EulerPacketSourceGeometry |
| 14 | EulerPacketMovingFrame EulerPacketNormalizedPrimary EulerPacketCrossProduct |
| 15 | EulerPacketSourceScaleSequence EulerPacketSourceScaleChoice EulerPacketSourceScaleActual |
| 16 | EulerPacketSourceScaleGuards EulerPacketSourceScales |
| 17 | |
| 18 | variable {A : Parent} (L : LabelData A) |
| 19 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 20 | (m : Space) (hm : ‖m‖=1) |
| 21 | (R : U ≃ₗᵢ[ℝ] EulerTransverseFrameCoordinates.referencePlane m) |
| 22 | (support : Set Space) (hSupport : IsCompact support) |
| 23 | (P : ParentFrame (A.transverseData m hm R support hSupport) 0) |
| 24 | |
| 25 | theorem forwardError_bound (ρ E N : ℝ) (hρ : 0 ≤ ρ) (hE : P.error ≤ E) |
| 26 | (hN : L.strainDifferenceCost*A.ell*ρ ≤ N) : P.forwardError ρ ≤ E+N := by |
| 27 | unfold ParentFrame.forwardError |
| 28 | exact add_le_add hE |
| 29 | ((mul_le_mul_of_nonneg_right (L.source_strain_derivative_norm m hm R support hSupport) hρ).trans hN) |
| 30 | |
| 31 | def forwardGeometryGuardsOfStage |
| 32 | (J D : ℕ) (C c X : ℝ) (a β : ℕ → ℝ) (n : ℕ) |
| 33 | (CF : ℝ) (hCF : 1 ≤ CF) |
| 34 | (stage : StageGuards J D C c X (neighborStabilityConstant*CF^2) a β n) |
| 35 | (ha : 1/2 ≤ a n) (ha_match : P.a=a n) |
| 36 | (hshear : P.shear=previousShear J X n) |
| 37 | (hsigma : P.sigma=Real.sqrt (β n)) |
| 38 | (htime : P.horizon=EulerPacketSourceScaleGuards.horizon J X (a n) (β n) n) |
| 39 | (hG : P.G ≤ CF*(1+olderShear J X n)) |
| 40 | (herr : P.error ≤ priorError J D X n) |
| 41 | (ρ δ hchild : ℝ) (hρ : 0 ≤ ρ) (hδ : 0 ≤ δ) (hhchild : 0 ≤ hchild) |
| 42 | (hneighbor : L.strainDifferenceCost*A.ell*ρ ≤ neighborError J D X c n) |
| 43 | (hnormal : m=cross (unit (P.m 0)) (unit (P.v 0))) : ForwardGuards P := by |
| 44 | have hepsilon : P.epsilon=epsilon J X (a n) n := by |
| 45 | simp only [ParentFrame.epsilon,epsilon,ha_match,hshear] |
| 46 | have heps : 0 < P.epsilon := by simpa only [hepsilon] using stage.epsilon_pos |
| 47 | have htarget : ((scaleSequence J X (n+1))⁻¹)⁻¹/P.sigma=targetTime J X (β n) n := by |
| 48 | simp only [inv_inv,hsigma,targetTime] |
| 49 | have htarget1 : 1 ≤ targetTime J X (β n) n := by |
| 50 | have hh : 1 ≤ 1/Real.sqrt (β n) := |
| 51 | (le_div_iff₀ stage.sigma_pos).2 (by nlinarith only [stage.sigma_small]) |
| 52 | exact hh.trans stage.target_from_sigma |
| 53 | have htH : targetTime J X (β n) n ≤ P.horizon := by |
| 54 | rw [htime] |
| 55 | exact stage.target_le_horizon |
| 56 | have hH : 1 ≤ P.horizon := htarget1.trans htH |
| 57 | have hHθ : P.horizon ≤ sourceTheta J C (scaleSequence J X) n := by |
| 58 | rw [htime] |
| 59 | exact stage.horizon_le_Theta |
| 60 | have hθ : 1 ≤ sourceTheta J C (scaleSequence J X) n := hH.trans hHθ |
| 61 | have hshort : P.horizon-targetTime J X (β n) n ≤ 1 := by |
| 62 | rw [htime] |
| 63 | apply stage.extra_time.trans |
| 64 | exact (div_le_iff₀ (pow_pos (zero_lt_one.trans_le hθ) 60)).2 |
| 65 | (by simpa only [one_mul] using one_le_pow₀ hθ (n := 60)) |
| 66 | have herror := L.forwardError_bound m hm R support hSupport P ρ |
| 67 | (priorError J D X n) (neighborError J D X c n) hρ herr hneighbor |
| 68 | have herror0 : 0 ≤ P.forwardError ρ := |
| 69 | add_nonneg P.error_nonneg (mul_nonneg (norm_nonneg _) hρ) |
| 70 | have hcoef : 16*(P.epsilon*P.horizon*(4*P.G)^2+P.forwardError ρ) ≤ |
| 71 | CF^2*geometryError J D C c X a n := by |
| 72 | have hmain : P.epsilon*P.horizon*(4*P.G)^2 ≤ |
| 73 | CF^2*(epsilon J X (a n) n*sourceTheta J C (scaleSequence J X) n* |
| 74 | (4*(1+olderShear J X n))^2) := by |
| 75 | rw [hepsilon] |
| 76 | calc |
| 77 | _ ≤ epsilon J X (a n) n*sourceTheta J C (scaleSequence J X) n* |
| 78 | (4*(CF*(1+olderShear J X n)))^2 := |
| 79 | mul_le_mul (mul_le_mul_of_nonneg_left hHθ stage.epsilon_pos.le) |
| 80 | (pow_le_pow_left₀ (by positivity [P.G_lower]) |
| 81 | (mul_le_mul_of_nonneg_left hG (by norm_num : (0 : ℝ) ≤ 4)) 2) |
| 82 | (sq_nonneg _) (mul_nonneg stage.epsilon_pos.le (zero_le_one.trans hθ)) |
| 83 | _ = _ := by ring |
| 84 | have hE := herror.trans (le_mul_of_one_le_left (herror0.trans herror) |
| 85 | (one_le_pow₀ hCF : 1 ≤ CF^2)) |
| 86 | calc |
| 87 | _ ≤ 16*(CF^2*(epsilon J X (a n) n*sourceTheta J C (scaleSequence J X) n* |
| 88 | (4*(1+olderShear J X n))^2)+CF^2*(priorError J D X n+neighborError J D X c n)) := |
| 89 | mul_le_mul_of_nonneg_left (add_le_add hmain hE) (by norm_num) |
| 90 | _ = _ := by unfold geometryError; ring |
| 91 | have hcoef0 : 0 ≤ 16*(P.epsilon*P.horizon*(4*P.G)^2+P.forwardError ρ) := by |
| 92 | positivity |
| 93 | have hN1 : 1 ≤ 1000000*neighborStabilityConstant := by |
| 94 | nlinarith only [neighborStabilityConstant_ge] |
| 95 | have hN : 0 ≤ 1000000*neighborStabilityConstant := zero_le_one.trans hN1 |
| 96 | have hsmall : 1000000*neighborStabilityConstant* |
| 97 | (16*(P.epsilon*P.horizon*(4*P.G)^2+P.forwardError ρ))*P.horizon^40 ≤ 1 := by |
| 98 | calc |
| 99 | _ ≤ 1000000*neighborStabilityConstant*(CF^2*geometryError J D C c X a n)* |
| 100 | sourceTheta J C (scaleSequence J X) n^40 := |
| 101 | mul_le_mul (mul_le_mul_of_nonneg_left hcoef hN) |
| 102 | (pow_le_pow_left₀ (zero_le_one.trans hH) hHθ 40) |
| 103 | (pow_nonneg (zero_le_one.trans hH) 40) (mul_nonneg hN (hcoef0.trans hcoef)) |
| 104 | _ = 1000000*(neighborStabilityConstant*CF^2)*geometryError J D C c X a n* |
| 105 | sourceTheta J C (scaleSequence J X) n^40 := by ring |
| 106 | _ ≤ 1 := stage.geometry_small |
| 107 | have hplain : 16*(P.epsilon*P.horizon*(4*P.G)^2+P.forwardError ρ) ≤ 1 := by |
| 108 | have hh : 1 ≤ 1000000*neighborStabilityConstant*P.horizon^40 := |
| 109 | one_le_mul_of_one_le_of_one_le hN1 (one_le_pow₀ hH) |
| 110 | have hh' := mul_le_mul_of_nonneg_right hh hcoef0 |
| 111 | nlinarith only [hh',hsmall] |
| 112 | refine { |
| 113 | radius := ρ, y := (scaleSequence J X (n+1))⁻¹, δ := δ, hchild := hchild, |
| 114 | radius_nonneg := hρ, delta_nonneg := hδ, child_nonneg := hhchild, |
| 115 | coupling_lower := by simpa only [ha_match] using ha, |
| 116 | shear_pos := ?_, sigma_pos := by simpa only [hsigma] using stage.sigma_pos, |
| 117 | sigma_small := by simpa only [hsigma] using stage.sigma_small, |
| 118 | y_pos := stage.reciprocal_pos, y_small := stage.reciprocal_small, |
| 119 | target_le_horizon := by simpa only [htarget] using htH, |
| 120 | horizon_lower := hH, short_extension := by simpa only [htarget] using hshort, |
| 121 | small := hsmall, compression_guard := ?_, initial_frame := A.frame_initial, |
| 122 | normal_choice := hnormal } |
| 123 | · have haP : 0 < P.a := by rw [ha_match]; linarith only [ha] |
| 124 | have hdiv : 0 < P.a/P.shear := Real.sqrt_pos.mp heps |
| 125 | exact (div_pos_iff.mp hdiv).resolve_right (by intro h; exact (not_lt_of_ge haP.le) h.1) |>.2 |
| 126 | · rw [htarget] |
| 127 | exact compression_of_error_small (by simpa only [ha_match] using ha) heps.le |
| 128 | (zero_le_one.trans hH) htH P.G_lower herror0 hplain |
| 129 | |
| 130 | end EulerParentPacketFrames.LabelData |