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.PacketForwardOutputCosts |
| 2 | import Euler.PacketGraphFlowExplicitBounds |
| 3 | import Euler.PacketForwardInitializedFlowAndShear |
| 4 | |
| 5 | /-! A single polynomial comparison gives the actual canonical correction, |
| 6 | the physical shear and pressure errors, and the three flow fields. Only |
| 7 | the displayed numerical frequency margins are independent extra guards. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketTerminalDatum |
| 12 | |
| 13 | open Set InnerProductSpace EulerSmoothLimit EulerSpatialCutoffs |
| 14 | EulerTransversePacketProvider EulerPacketCylinderField EulerPacketProfileRecursion |
| 15 | EulerPacketTimeProfile EulerPacketCoarseMajorant EulerPacketCorrectionConstants |
| 16 | EulerPacketCorrectionScalar EulerPacketSourceFrequency EulerAllOrderDriftCorrection |
| 17 | EulerLiftedGradientSpace EulerGraphInvariantFlow EulerPhysicalGraphFlowBounds |
| 18 | EulerPacketGraphFlowFrequency EulerPacketForwardFactorization EulerPacketInverseFlowGevrey |
| 19 | EulerGevrey EulerGraphPressurePotential EulerPeriodicProfile EulerSobolevGevreyOperators |
| 20 | EulerLpTranslation.SmoothL2Field |
| 21 | open scoped ContDiff |
| 22 | |
| 23 | variable (M : EulerMeanPacketProvider.Data) |
| 24 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 25 | (D : Data U) (hTime : M.T=D.T) |
| 26 | (δ : ℝ) (hδ : 0 < δ) (hδ1 : δ ≤ 1) (ξ : U) |
| 27 | (hs : tsupport innerCutoff ⊆ D.support) (α : ℝ) (hα : 0 < α) |
| 28 | (L : EulerTransversePacketForward.Budget D (Fin 4) 6) |
| 29 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 30 | {Rm : ℝ} (LM : EulerMeanPacketProvider.Budget M 6 Rm) |
| 31 | (Cagree : SourceCoefficientAgreement M D) |
| 32 | (W : ℝ) |
| 33 | (hW : EulerPacketForwardRadius.RadiusPrimitives L LM NB |
| 34 | (forwardCoefficientBudget period M D hTime NB) δ ξ W) |
| 35 | (hprofile : ∀ t, α*L.g t ≤ W) |
| 36 | (k : ℝ) (hk : 4 ≤ k) (hX : 64 ≤ expansion k) (hlog : 1 ≤ Real.log k) |
| 37 | (hfrequency : EulerPacketInitializedOutputCost.uniformConstant* |
| 38 | W^EulerPacketInitializedOutputCost.uniformPower ≤ smallPower k) |
| 39 | (hdelta : delta (expansion k) ≤ k^(-(3 : ℝ))) |
| 40 | (hroot : 16 ≤ k^(1/4 : ℝ)) |
| 41 | (htrace : max 71 (Real.sqrt (2/period+2*period)) ≤ k^(1/24 : ℝ)) |
| 42 | (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 43 | (hXs : ∀ t, ContDiff ℝ ∞ (X t)) |
| 44 | (hF : ∀ t x, fderiv ℝ (X t) x = D.F.field t x) |
| 45 | (hXY : ∀ t x, X t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 46 | (hdet : ∀ t x, (EulerPacketPiola.operatorMatrix (D.F.field t x)).det=1) |
| 47 | |
| 48 | include hδ1 hα L NB LM hW hprofile hX hlog hfrequency hdelta hroot htrace hXs hF hXY hY hdet |
| 49 | |
| 50 | theorem forward_uniform_flow_and_shear : |
| 51 | ∃ (hn : 1 ≤ truncation k) |
| 52 | (Q : EulerAllOrderDriftCorrection.Budget period D.T_pos |
| 53 | (forwardInitializedCorrectionData M D hTime δ hδ ξ hs α Cagree |
| 54 | (truncation k) hn k hk)) |
| 55 | (G : EulerPhysicalGraphFlowBounds.Data period D.T), |
| 56 | Q.delta=delta (expansion k) ∧ |
| 57 | Q.initialRadius=initialRadius |
| 58 | (forwardInitializedRadius LM L NB (forwardCoefficientBudget period M D hTime NB) δ ξ) |
| 59 | (L.correctionCoefficients NB period).M (L.correctionCoefficients NB period).Rc ∧ |
| 60 | G.A = Q.liftedPacketCoefficient period |
| 61 | (forwardInitializedNormalizedField M D hTime δ hδ ξ hs α (truncation k) k) ∧ |
| 62 | G.A₁ = Q.liftedPacketDerivativeCoefficient period |
| 63 | (forwardInitializedNormalizedDerivativeField M D hTime δ hδ ξ hs α (truncation k) k) ∧ |
| 64 | (∀ t z, graphConstraint k D.m₀ (G.A.field t z)=0) ∧ |
| 65 | (∀ (s n : ℕ), n+6 ≤ s → ∀ t : Icc (0 : ℝ) D.T, |
| 66 | weightedNorm period 6 n (Q.initialRadius/4) ((Q.fieldTower period).realization s t) ≤ |
| 67 | EulerPacketInitializedCost.weightSize W*delta (expansion k) ∧ |
| 68 | weightedNorm period 6 n (Q.initialRadius/4) ((Q.pressureTower period).realization s t) ≤ |
| 69 | EulerPacketInitializedCost.weightSize W*delta (expansion k) ∧ |
| 70 | weightedNorm period 6 n (Q.initialRadius/4) ((Q.timeDerivativeTower period).realization s t) ≤ |
| 71 | EulerPacketInitializedCost.weightSize W*delta (expansion k)) ∧ |
| 72 | (∀ (t : Icc (0 : ℝ) D.T) (x : Space), |
| 73 | ‖fderiv ℝ (forwardInitializedExactPhysicalVelocity M D hTime δ hδ ξ hs α |
| 74 | Cagree (truncation k) hn k hk Q t (Y t)) x - |
| 75 | (α*deriv (profile δ) (k*⟪D.m₀,Y t x⟫_ℝ)) • |
| 76 | rankOne ℝ (canonicalVelocity D ξ t (Y t x)) (D.normal.field t (Y t x))‖ ≤ |
| 77 | k^(-(1/4 : ℝ)) ∧ |
| 78 | ‖fderiv ℝ (gradient (forwardInitializedExactPhysicalPressure M D hTime δ hδ ξ hs α |
| 79 | Cagree (truncation k) hn k hk Q t (Y t))) x - |
| 80 | (EulerPacketForwardShear.pressureCoefficient D ξ α t (Y t x) * |
| 81 | deriv (profile δ) (k*⟪D.m₀,Y t x⟫_ℝ)) • |
| 82 | rankOne ℝ (D.normal.field t (Y t x)) (D.normal.field t (Y t x))‖ ≤ k^(-(1/4 : ℝ))) ∧ |
| 83 | (∀ (ell : ℝ) (hell : 0 < ell), ell ≤ 1 → ∀ t : Icc (0 : ℝ) D.T, |
| 84 | (G.displacementField k D.m₀ ell hell t).HasJetBound |
| 85 | (k^(-(1/4 : ℝ))) (ell⁻¹*k^(5/4 : ℝ)) ∧ |
| 86 | (G.velocityField k D.m₀ ell hell t).HasJetBound |
| 87 | (k^(-(1/4 : ℝ))) (ell⁻¹*k^(5/4 : ℝ)) ∧ |
| 88 | (G.accelerationFieldL2 k D.m₀ ell hell t).HasJetBound |
| 89 | (k^(1/4 : ℝ)) (ell⁻¹*k^(5/4 : ℝ)) ∧ |
| 90 | HasSupBound (G.displacementField k D.m₀ ell hell t).field |
| 91 | (k^(-(1/4 : ℝ))) (ell⁻¹*k^(5/4 : ℝ)) ∧ |
| 92 | HasSupBound (G.velocityField k D.m₀ ell hell t).field |
| 93 | (k^(-(1/4 : ℝ))) (ell⁻¹*k^(5/4 : ℝ))) := by |
| 94 | classical |
| 95 | let BC := forwardCoefficientBudget period M D hTime NB |
| 96 | let L' := forwardInitializedLinearBudget LM L NB BC δ ξ |
| 97 | let N' := forwardInitializedNormalBudget LM L NB BC δ ξ |
| 98 | let M' := forwardInitializedMeanBudget LM L NB BC δ ξ |
| 99 | have guards := forwardInitializedRadius_guards LM L NB BC δ ξ |
| 100 | have wj := guards.1 |
| 101 | have wm := guards.2.1 |
| 102 | have wp := guards.2.2.1 |
| 103 | have hterminal := guards.2.2.2.1 |
| 104 | have hcost := guards.2.2.2.2.1 |
| 105 | have hrc := guards.2.2.2.2.2 |
| 106 | let S := Scales.ofTimeProfile L.g L.positive hTime.symm α hα |
| 107 | have hgrowth : timeProfileChange S.growth hTime=α • L'.g := |
| 108 | Scales.ofTimeProfile_growth L.g L.positive hTime.symm α hα |
| 109 | have hH0 : S.H0 ≤ W := Scales.ofTimeProfile_H0_le L.g L.positive |
| 110 | hTime.symm α hα W hW.one hprofile |
| 111 | have hW0 := zero_le_one.trans hW.one |
| 112 | have hcomparison := (EulerPacketInitializedOutputCost.envelope_bound W hW.one).trans hfrequency |
| 113 | have hold := (EulerPacketInitializedOutputCost.envelope_components W hW0).1.trans hcomparison |
| 114 | have hout := (EulerPacketInitializedOutputCost.envelope_components W hW0).2.trans hcomparison |
| 115 | have costs := EulerPacketInitializedOutputCost.forward_output_costs LM L NB BC δ ξ |
| 116 | W S.H0 hδ hW S.H0_pos.le hH0 |
| 117 | have five := EulerPacketInitializedCost.forward_five_costs_bound LM L NB BC δ ξ |
| 118 | W S.H0 hδ hW S.H0_pos.le hH0 |
| 119 | let Q := forwardUniformBudget M D hTime δ hδ hδ1 ξ hs α hα |
| 120 | L NB LM Cagree W hW hprofile k hk hX hlog hold X hXs hF hdet |
| 121 | let Cw := EulerPacketInitializedCost.weightSize W |
| 122 | let ρ0 := Q.initialRadius |
| 123 | have hρ : 0 < ρ0 := Q.radius_pos |
| 124 | have hCw : 0 < Cw := EulerPacketInitializedCost.weightSize_pos W hW0 |
| 125 | have hweighted := forwardUniformBudget_weighted M D hTime δ hδ hδ1 ξ hs α hα |
| 126 | L NB LM Cagree W hW hprofile k hk hX hlog hold X hXs hF hdet |
| 127 | let C0 := velocity L'.R S.H0 BC.multiplierCost |
| 128 | let Cn := normal L'.R S.H0 BC.multiplierCost |
| 129 | let Ch := 6*N'.blockAmplitude* |
| 130 | (fixedVelocityGradeCost L'.R S.H0 1+fixedVelocityGradeCost L'.R S.H0 2+1) |
| 131 | let Rf := physicalInputRadius (4*L'.R) (4*L'.R) (ρ0/4) |
| 132 | let Av := liftedInputConstant period*(C0+Cn) |
| 133 | let Ev := 2*liftedInputConstant period*Cw |
| 134 | let At := 2*liftedInputConstant period*(Ch+Cw) |
| 135 | let Kerr := weightedPhysicalGradientCost D period L.Rc L.C₀ (ρ0/4) Cw |
| 136 | let Kv := forwardInitializedGlobalShearCost L'.R S.H0 N'.C |
| 137 | let Kp := forwardInitializedPressureHessianCost N' L'.R S.H0 L'.Rc L'.C₀ |
| 138 | have hRf_k : Rf ≤ smallPower k := costs.2.1.trans hout |
| 139 | have hAv_k : Av ≤ smallPower k := costs.2.2.1.trans hout |
| 140 | have hEv_k : Ev ≤ smallPower k := costs.2.2.2.1.trans hout |
| 141 | have hAt_k : At ≤ smallPower k := costs.2.2.2.2.1.trans hout |
| 142 | have hKerr_k : Kerr ≤ smallPower k := costs.2.2.2.2.2.1.trans hout |
| 143 | have hKv_k : Kv ≤ smallPower k := costs.2.2.2.2.2.2.1.trans hout |
| 144 | have hKp_k : Kp ≤ smallPower k := costs.2.2.2.2.2.2.2.trans hout |
| 145 | have hk0 : 0 < k := by linarith |
| 146 | have hk1 : 1 ≤ k := by linarith |
| 147 | have hn := (truncation_bounds k hk1).1 |
| 148 | have hT_k : D.T ≤ smallPower k := hW.total_time.trans |
| 149 | (Real.one_le_rpow hk1 (by norm_num [theta])) |
| 150 | have hRv : 0 ≤ 4*L'.R := by have := L'.radius_one; linarith |
| 151 | have hρ' : 0 < ρ0/4 := by positivity |
| 152 | have hRf : 0 < Rf := (liftedInputRadius_pos (4*L'.R) (ρ0/4) hRv hρ').trans_le (le_max_left _ _) |
| 153 | have hC0 : 0 ≤ C0 := velocity_nonneg L'.R S.H0 BC.multiplierCost |
| 154 | (zero_le_one.trans L'.radius_one) BC.multiplierCost_nonneg |
| 155 | have hCn : 0 ≤ Cn := normal_nonneg L'.R S.H0 BC.multiplierCost |
| 156 | (zero_le_one.trans L'.radius_one) BC.multiplierCost_nonneg |
| 157 | have hCh : 0 ≤ Ch := by |
| 158 | have hN := N'.blockAmplitude_nonneg |
| 159 | have h₁ := fixedVelocityGradeCost_nonneg L'.R S.H0 (zero_le_one.trans L'.radius_one) 1 |
| 160 | have h₂ := fixedVelocityGradeCost_nonneg L'.R S.H0 (zero_le_one.trans L'.radius_one) 2 |
| 161 | dsimp [Ch] |
| 162 | positivity |
| 163 | have hsmall := liftedAmplitude_small_of_costs Av Ev Rf D.T k hk1 hRf.le D.T_pos.le |
| 164 | hAv_k hEv_k hRf_k hT_k hdelta hroot |
| 165 | have hbase : tailBase L'.R S.H0 BC.termCost (truncation k) ≤ k^(1/100 : ℝ) := |
| 166 | tailBase_frequency L'.R S.H0 BC.termCost k BC.termCost_nonneg hk1 (five.1.trans hold) |
| 167 | let V := forwardInitializedNormalizedField M D hTime δ hδ ξ hs α (truncation k) k |
| 168 | let Vt := forwardInitializedNormalizedDerivativeField M D hTime δ hδ ξ hs α (truncation k) k |
| 169 | have hv := forwardInitializedNormalizedField_bound M D hTime δ hδ ξ hs α |
| 170 | L' N' wj M' wm BC hrc hcost hδ1 hα hterminal wp S hgrowth (truncation k) hn k hk hbase |
| 171 | have hnrm := forwardInitializedNormalizedField_normal_bound M D hTime δ hδ ξ hs α |
| 172 | L' N' wj M' wm BC hrc hcost hδ1 hα hterminal wp S hgrowth (truncation k) hn k hk hbase |
| 173 | have hvt := forwardInitializedNormalizedDerivativeField_bound M D hTime δ hδ ξ hs α |
| 174 | L' N' wj M' wm BC hrc hcost hδ1 hα hterminal wp S hgrowth (truncation k) hn k hk hbase |
| 175 | have he (n : ℕ) (t : Icc (0 : ℝ) D.T) : weightedNorm period 6 n (ρ0/4) |
| 176 | ((Q.fieldTower period).realization (n+6) t) ≤ Cw*delta (expansion k) := |
| 177 | (hweighted (n+6) n le_rfl t).1 |
| 178 | have hp (n : ℕ) (t : Icc (0 : ℝ) D.T) : weightedNorm period 6 n (ρ0/4) |
| 179 | ((Q.pressureTower period).realization (n+6) t) ≤ Cw*delta (expansion k) := |
| 180 | (hweighted (n+6) n le_rfl t).2.1 |
| 181 | have het (n : ℕ) (t : Icc (0 : ℝ) D.T) : weightedNorm period 6 n (ρ0/4) |
| 182 | ((Q.timeDerivativeTower period).realization (n+6) t) ≤ Cw := |
| 183 | ((hweighted (n+6) n le_rfl t).2.2).trans |
| 184 | ((mul_le_mul_of_nonneg_left (delta_le_one _) hCw.le).trans_eq (mul_one _)) |
| 185 | have hsize : physicalInputSize period k C0 Cn (Cw*delta (expansion k)) = liftedAmplitude Av Ev k := by |
| 186 | dsimp [physicalInputSize,liftedAmplitude,Av,Ev] |
| 187 | ring |
| 188 | let G := Q.physicalFlowData period V Vt rfl |
| 189 | (forwardInitializedNormalizedField_time M D hTime δ hδ ξ hs α (truncation k) k) |
| 190 | k (4*L'.R) (4*L'.R) (ρ0/4) C0 Cn Ch (Cw*delta (expansion k)) Cw |
| 191 | hk1 rfl D.m₀_unit.le hRv hRv hρ' hC0 hCn hCh |
| 192 | (mul_nonneg hCw.le (delta_pos _).le) hCw.le hv hnrm hvt he het |
| 193 | (by change physicalInputSize period k C0 Cn (Cw*delta (expansion k))*Rf*D.T ≤ 1/8 |
| 194 | rw [hsize] |
| 195 | exact hsmall.2) |
| 196 | have hGB : G.B ≤ 2*k^(-(1/2 : ℝ)) := by |
| 197 | change physicalInputSize period k C0 Cn (Cw*delta (expansion k)) ≤ _ |
| 198 | rw [hsize] |
| 199 | exact hsmall.1 |
| 200 | have hflow := data_field_bounds_explicit period D.T G k rfl rfl rfl hk1 htrace hroot |
| 201 | hGB hRf_k hAt_k hT_k D.m₀ D.m₀_unit |
| 202 | have hsup := data_sup_bounds_explicit period D.T G k hk1 ((le_max_left _ _).trans htrace) |
| 203 | hroot hGB hRf_k hT_k D.m₀ D.m₀_unit |
| 204 | have hXd : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x := by |
| 205 | intro t x |
| 206 | rw [← hF t x] |
| 207 | exact ((hXs t).differentiable (by simp) x).hasFDerivAt |
| 208 | have hYd := continuousInverse_hasFDerivAt D X Y hXd hXY hY |
| 209 | have hcorrection (t : Icc (0 : ℝ) D.T) (x : Space) := |
| 210 | Q.physical_gradient_hessian_of_weighted D period X Y hXd hXY hY hdet |
| 211 | L.Rc L.C₀ L.Rc_nonneg L.C₀_nonneg L.frame_bound k (ρ0/4) Cw (delta (expansion k)) |
| 212 | hk1 rfl rfl hρ' hCw.le (delta_pos _).le he hp t x |
| 213 | have hroot2 : 2 ≤ k^(1/4 : ℝ) := by linarith |
| 214 | have hvErr := physical_error_le_inverse_quarter Kv Kerr k hk1 hKv_k hKerr_k hdelta hroot2 |
| 215 | have hpErr := physical_error_le_inverse_quarter Kp Kerr k hk1 hKp_k hKerr_k hdelta hroot2 |
| 216 | refine ⟨hn,Q,G,rfl,rfl,rfl,rfl,?_,hweighted,?_,?_⟩ |
| 217 | · intro t z |
| 218 | change graphConstraint k D.m₀ |
| 219 | (EulerMetricTransport.transportDirection k⁻¹ D.m₀ ((Q.packetCoefficient period V).field t z))=0 |
| 220 | exact graphConstraint_transport k k⁻¹ (mul_inv_cancel₀ hk0.ne') D.m₀ _ |
| 221 | · intro t x |
| 222 | constructor |
| 223 | · have h := forwardInitializedExactPhysicalVelocity_global_gradient_error M D hTime δ hδ ξ hs α |
| 224 | L' N' wj M' wm BC hrc hcost hδ1 hα hterminal wp S hgrowth |
| 225 | Cagree (truncation k) hn k hk Q hbase t (Y t) x (hYd t x) |
| 226 | exact (h.trans (add_le_add le_rfl (hcorrection t x).1)).trans hvErr |
| 227 | · have h := forwardInitializedExactPhysicalPressure_hessian_error M D hTime δ hδ ξ hs α |
| 228 | Cagree (truncation k) hn k hk Q X Y hXd hXY hY L' N' wj M' wm BC hrc hcost |
| 229 | hδ1 hα hterminal wp S hgrowth hbase hdet t x |
| 230 | exact (h.trans (add_le_add le_rfl (hcorrection t x).2)).trans hpErr |
| 231 | · intro ell hell hell1 t |
| 232 | exact ⟨(hflow ell hell hell1 t).1,(hflow ell hell hell1 t).2.1, |
| 233 | (hflow ell hell hell1 t).2.2,(hsup ell hell hell1 t).1,(hsup ell hell hell1 t).2⟩ |
| 234 | |
| 235 | end EulerPacketTerminalDatum |