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.PacketPrimaryGlobalShear |
| 2 | import Euler.PacketExactShearError |
| 3 | |
| 4 | /-! The actual finite and exact packets have the source shear at every |
| 5 | physical point. The slow primary derivative and finite tail contribute |
| 6 | only a fixed source constant divided by the frequency. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketTerminalDatum |
| 11 | |
| 12 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 13 | EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion |
| 14 | EulerPacketPointJets EulerPacketTimeProfile EulerParameterWordGevrey |
| 15 | EulerPacketCoarseMajorant EulerCylinderSobolevSpace EulerCylinderCoordinates |
| 16 | EulerPacketPrimaryShear EulerPacketPrimaryFactorization EulerTransversePacketPrimary |
| 17 | EulerLiftedGradientSpace EulerGraphPressurePotential EulerAllOrderDriftCorrection |
| 18 | EulerPeriodicProfile EulerGevrey |
| 19 | open scoped ContDiff |
| 20 | |
| 21 | def initializedGlobalShearCost (R H0 C : ℝ) : ℝ := |
| 22 | ‖coordinateEquiv.symm.toContinuousLinearMap‖* |
| 23 | (sobolevEmbeddingConstant period 3*fixedVelocityGradeCost R H0 1*(4*R))*C + |
| 24 | |initializedRemainderDerivativeCost R H0| *C |
| 25 | |
| 26 | variable (M : EulerMeanPacketProvider.Data) |
| 27 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 28 | (D : Data U) (hTime : M.T = D.T) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 29 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 30 | (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) |
| 31 | (L : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6) |
| 32 | (H : EulerTransversePacketPrimary.Budget L) |
| 33 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 34 | (W : EulerTransversePacketJoin.Budget.GradeGuards (P := period) L NB) |
| 35 | (LM : EulerMeanPacketProvider.Budget M 6 L.R) |
| 36 | (WM : EulerMeanPacketProvider.Budget.GradeGuards LM) |
| 37 | (BC : CoefficientBudget (joinedSourceCoefficientData period M D τ hτ hτT B hTime)) |
| 38 | (hRc : sobolevCoefficientRadius (Fin 4) BC.Rc ≤ L.R) (hcost : BC.termCost ≤ L.R) |
| 39 | (hδ1 : δ ≤ 1) (hα : 0 < α) (hR : wordRadius (Fin 4) δ ≤ L.R) |
| 40 | (WP : EulerTransversePacketPrimary.Budget.GradeGuards (P := period) H NB (wordCost (Fin 4) 6 δ*‖ξ‖)) |
| 41 | (S : Scales (Icc (0 : ℝ) M.T)) |
| 42 | (hgrowth : timeProfileChange S.growth hTime=α • L.fullProfile) |
| 43 | |
| 44 | include H NB W LM WM BC hRc hcost hδ1 hα hR WP hgrowth |
| 45 | |
| 46 | theorem initializedPrimary_global_bound : |
| 47 | (vectorField τ hτ hτT B (initialData D δ hδ (α • ξ) hs)).WordBound |
| 48 | 6 (4*L.R) (fixedVelocityGradeCost L.R S.H0 1) 0 := by |
| 49 | have hG := initialized_profile_budgets M D hTime τ hτ hτT B δ hδ ξ hs α |
| 50 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth 1 le_rfl |
| 51 | have hb := hG.high.remove_profile M.T_pos.le (S.high 1) (S.high_pos 1) |
| 52 | (S.H0^(2*1)) (pow_nonneg S.H0_pos.le _) (S.high_le_coarse 1 le_rfl) |
| 53 | simp only [mul_one] at hb |
| 54 | have ha : S.H0^2 ≤ 3*S.H0^(2*1) := by |
| 55 | norm_num only [Nat.mul_one] |
| 56 | nlinarith [sq_nonneg S.H0] |
| 57 | have hc := (hb.mono_amplitude (zero_le_one.trans L.radius_bounds.1) ha).fixed_velocity_grade |
| 58 | (n := 1) (zero_le_one.trans L.radius_bounds.1) S.H0_pos.le |
| 59 | exact (hc.changeTime hTime).of_raw_eq _ |
| 60 | (fun _ _ _ => by rw [initializedProfiles_one_high]) |
| 61 | |
| 62 | theorem initializedVelocity_global_gradient_error (N : ℕ) (hN : 1 ≤ N) |
| 63 | (k : ℝ) (hk : 4 ≤ k) (hbase : tailBase L.R S.H0 BC.termCost N ≤ k^(1/100 : ℝ)) |
| 64 | (t : Icc (0 : ℝ) D.T) (Y : Space → Space) (x : Space) |
| 65 | (hY : HasFDerivAt Y (D.FInv.field t (Y x)) x) : |
| 66 | ‖fderiv ℝ (fun y => initializedVelocity M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 67 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) x - |
| 68 | (α*deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ)) • |
| 69 | rankOne ℝ (canonicalVelocity τ hτ hτT B ξ hs t (Y x)) (D.normal.field t (Y x))‖ ≤ |
| 70 | initializedGlobalShearCost L.R S.H0 NB.C/k := by |
| 71 | have hk0 : 0 < k := by linarith |
| 72 | have hr0 : 0 ≤ L.R := zero_le_one.trans L.radius_bounds.1 |
| 73 | have hc0 := fixedVelocityGradeCost_nonneg L.R S.H0 hr0 1 |
| 74 | have hinv : ‖D.FInv.field t (Y x)‖ ≤ NB.C := by |
| 75 | simpa [majorant] using NB.inverse_bound 0 t (Y x) |
| 76 | have hprimary := scaled_terminal_global_gradient_bound τ hτ hτT B δ hδ ξ hs α k hk0 |
| 77 | (4*L.R) (fixedVelocityGradeCost L.R S.H0 1) NB.C (by positivity) hc0 NB.C_nonneg |
| 78 | (initializedPrimary_global_bound M D hTime τ hτ hτT B δ hδ ξ hs α |
| 79 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth) t Y x hY hinv |
| 80 | have htail := initializedPrimaryRemainder_physical_fderiv_inv M D hTime τ hτ hτT B δ hδ ξ hs α |
| 81 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth N hN k hk hbase t Y x hY.differentiableAt |
| 82 | rw [hY.fderiv] at htail |
| 83 | have htail' : ‖fderiv ℝ (fun y => initializedPrimaryRemainder M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 84 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) x‖ ≤ |initializedRemainderDerivativeCost L.R S.H0| *NB.C/k := by |
| 85 | apply htail.trans |
| 86 | calc |
| 87 | _ ≤ (|initializedRemainderDerivativeCost L.R S.H0|/k)*‖D.FInv.field t (Y x)‖ := |
| 88 | mul_le_mul_of_nonneg_right (div_le_div_of_nonneg_right (le_abs_self _) hk0.le) (norm_nonneg _) |
| 89 | _ ≤ (|initializedRemainderDerivativeCost L.R S.H0|/k)*NB.C := |
| 90 | mul_le_mul_of_nonneg_left hinv (by positivity) |
| 91 | _ = _ := by ring |
| 92 | have hp := (((vectorField τ hτ hτT B (initialData D δ hδ (α • ξ) hs)).smul k⁻¹).raw_graph_contDiff |
| 93 | t k D.m₀).differentiable (by simp) (Y x) |
| 94 | have hpd : DifferentiableAt ℝ (fun y => k⁻¹ • vector τ hτ hτT B (initialData D δ hδ (α • ξ) hs) |
| 95 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) x := by |
| 96 | simpa only [Function.comp_def,Pi.smul_apply] using hp.comp x hY.differentiableAt |
| 97 | have hr := ((initializedPrimaryRemainderField M D hTime τ hτ hτT B δ hδ ξ hs α N hN k⁻¹).raw_graph_contDiff |
| 98 | t k D.m₀).differentiable (by simp) (Y x) |
| 99 | have hrd : DifferentiableAt ℝ (fun y => initializedPrimaryRemainder M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 100 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) x := by |
| 101 | simpa only [Function.comp_def] using hr.comp x hY.differentiableAt |
| 102 | have he : (fun y => initializedVelocity M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 103 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) = |
| 104 | (fun y => k⁻¹ • vector τ hτ hτT B (initialData D δ hδ (α • ξ) hs) |
| 105 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) + |
| 106 | (fun y => initializedPrimaryRemainder M D τ hτ hτT B δ hδ ξ hs α N k⁻¹ |
| 107 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) := by |
| 108 | funext y |
| 109 | dsimp only [initializedPrimaryRemainder,Pi.add_apply,Pi.sub_apply,Pi.smul_apply] |
| 110 | abel |
| 111 | rw [he,fderiv_add hpd hrd] |
| 112 | have ha : ∀ A E R : Space →L[ℝ] Space, A+E-R=(A-R)+E := by intros; abel |
| 113 | rw [ha] |
| 114 | exact (norm_add_le _ _).trans ((add_le_add hprimary htail').trans_eq (by |
| 115 | unfold initializedGlobalShearCost |
| 116 | ring)) |
| 117 | |
| 118 | theorem initializedExactPhysicalVelocity_global_gradient_error |
| 119 | (Cagree : SourceCoefficientAgreement M D) (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) |
| 120 | (Q : Budget period D.T_pos |
| 121 | (initializedCorrectionData M D hTime τ hτ hτT B δ hδ ξ hs α Cagree N hN k hk)) |
| 122 | (hbase : tailBase L.R S.H0 BC.termCost N ≤ k^(1/100 : ℝ)) |
| 123 | (t : Icc (0 : ℝ) D.T) (Y : Space → Space) (x : Space) |
| 124 | (hY : HasFDerivAt Y (D.FInv.field t (Y x)) x) : |
| 125 | ‖fderiv ℝ (initializedExactPhysicalVelocity M D hTime τ hτ hτT B δ hδ ξ hs α |
| 126 | Cagree N hN k hk Q t Y) x - |
| 127 | (α*deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ)) • |
| 128 | rankOne ℝ (canonicalVelocity τ hτ hτT B ξ hs t (Y x)) (D.normal.field t (Y x))‖ ≤ |
| 129 | initializedGlobalShearCost L.R S.H0 NB.C/k + |
| 130 | ‖fderiv ℝ (fun y => k⁻¹ • D.F.field t (Y y) |
| 131 | (Q.pointField period t (cylinderGraph period k D.m₀ (Y y)))) x‖ := by |
| 132 | rw [initializedExactPhysicalVelocity_fderiv M D hTime τ hτ hτT B δ hδ ξ hs α |
| 133 | Cagree N hN k hk Q t Y x hY.differentiableAt] |
| 134 | have ha : ∀ A E R : Space →L[ℝ] Space, A+E-R=(A-R)+E := by intros; abel |
| 135 | rw [ha] |
| 136 | exact (norm_add_le _ _).trans (add_le_add |
| 137 | (initializedVelocity_global_gradient_error M D hTime τ hτ hτT B δ hδ ξ hs α |
| 138 | L H NB W LM WM BC hRc hcost hδ1 hα hR WP S hgrowth N hN k hk hbase t Y x hY) le_rfl) |
| 139 | |
| 140 | end EulerPacketTerminalDatum |