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.PacketInitializedUniformBounds |
| 2 | import Euler.PacketPhysicalCostPolynomial |
| 3 | |
| 4 | /-! One fixed polynomial controls both correction admissibility and every |
| 5 | source multiplier in the same-Q shear/Hessian and graph-flow estimates. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketInitializedOutputCost |
| 10 | |
| 11 | open EulerPacketTerminalDatum EulerPacketProfileRecursion EulerPacketCylinderField |
| 12 | EulerPacketCorrectionConstants EulerPacketCorrectionScalar EulerPacketCorrectionCoefficients |
| 13 | EulerPacketPhysicalCost EulerPacketFiveCost EulerPolynomialCost EulerAllOrderDriftCorrection |
| 14 | EulerPacketCorrectionOutput |
| 15 | |
| 16 | def envelope (W : ℝ) : ℝ := 1+ |
| 17 | EulerPacketInitializedCost.uniformConstant*W^EulerPacketInitializedCost.uniformPower+ |
| 18 | extraEnvelope (EulerPacketInitializedCost.envelope W) |
| 19 | |
| 20 | def polynomial : Polynomial ℝ := 1+ |
| 21 | Polynomial.C EulerPacketInitializedCost.uniformConstant* |
| 22 | Polynomial.X^EulerPacketInitializedCost.uniformPower+ |
| 23 | extraPolynomial.comp (1+Polynomial.X+EulerPacketRadiusPolynomial.radiusPolynomial+ |
| 24 | EulerPacketCorrectionPrimitive.primitivePolynomial period) |
| 25 | |
| 26 | def uniformConstant : ℝ := coefficientCost polynomial |
| 27 | def uniformPower : ℕ := polynomial.natDegree |
| 28 | |
| 29 | theorem uniformConstant_pos : 0 < uniformConstant := coefficientCost_pos _ |
| 30 | |
| 31 | theorem polynomial_eval (W : ℝ) : polynomial.eval W=envelope W := by |
| 32 | unfold polynomial envelope EulerPacketInitializedCost.envelope |
| 33 | simp only [Polynomial.eval_add,Polynomial.eval_one,Polynomial.eval_mul, |
| 34 | Polynomial.eval_C,Polynomial.eval_pow,Polynomial.eval_X,Polynomial.eval_comp, |
| 35 | EulerPacketRadiusPolynomial.radiusPolynomial_eval, |
| 36 | EulerPacketCorrectionPrimitive.primitivePolynomial_eval,extraPolynomial_eval] |
| 37 | |
| 38 | theorem envelope_bound (W : ℝ) (hW : 1 ≤ W) : envelope W ≤ uniformConstant*W^uniformPower := by |
| 39 | rw [← polynomial_eval] |
| 40 | exact (le_abs_self _).trans (eval_bound polynomial W hW) |
| 41 | |
| 42 | theorem envelope_components (W : ℝ) (hW : 0 ≤ W) : |
| 43 | EulerPacketInitializedCost.uniformConstant*W^EulerPacketInitializedCost.uniformPower ≤ envelope W ∧ |
| 44 | extraEnvelope (EulerPacketInitializedCost.envelope W) ≤ envelope W := by |
| 45 | have hC := EulerPacketInitializedCost.uniformConstant_pos.le |
| 46 | have hE0 := zero_le_one.trans (EulerPacketInitializedCost.envelope_bounds W hW).1 |
| 47 | have hO := zero_le_one.trans (output_components period _ hE0).1 |
| 48 | have he := (extra_components (EulerPacketInitializedCost.envelope W) hE0).1 |
| 49 | have hE := hO.trans he |
| 50 | have hp : 0 ≤ EulerPacketInitializedCost.uniformConstant*W^EulerPacketInitializedCost.uniformPower := |
| 51 | mul_nonneg hC (pow_nonneg hW _) |
| 52 | unfold envelope |
| 53 | exact ⟨by linarith,by linarith⟩ |
| 54 | |
| 55 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 56 | {D : EulerTransversePacketProvider.Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} |
| 57 | {B : EulerTransversePacketProvider.HistoryData (D.initial τ hτ hτT.le)} |
| 58 | {M : EulerMeanPacketProvider.Data} {Rm Tc : ℝ} {O : Operators} |
| 59 | {C : CoefficientData period Tc O} |
| 60 | (LM : EulerMeanPacketProvider.Budget M 6 Rm) |
| 61 | (L : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6) |
| 62 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 63 | (BC : CoefficientBudget C) (δ : ℝ) (ξ : U) |
| 64 | |
| 65 | theorem actual_output_costs (W H0 : ℝ) (hδ : 0 < δ) |
| 66 | (H : EulerPacketRadiusPolynomial.RadiusPrimitives LM L NB BC δ ξ W) |
| 67 | (hH0 : 0 ≤ H0) (hHW : H0 ≤ W) : |
| 68 | let R := initializedRadius LM L NB BC δ ξ |
| 69 | let Kc := L.correctionCoefficients NB period |
| 70 | let ρ := initialRadius R Kc.M Kc.Rc/4 |
| 71 | let Z := EulerPacketInitializedCost.envelope W |
| 72 | EulerPacketInitializedCost.weightSize W ≤ extraEnvelope Z ∧ |
| 73 | physicalInputRadius (4*R) (4*R) ρ ≤ extraEnvelope Z ∧ |
| 74 | liftedInputConstant period*(velocity R H0 BC.multiplierCost+normal R H0 BC.multiplierCost) ≤ extraEnvelope Z ∧ |
| 75 | 2*liftedInputConstant period*EulerPacketInitializedCost.weightSize W ≤ extraEnvelope Z ∧ |
| 76 | 2*liftedInputConstant period*(6*NB.blockAmplitude* |
| 77 | (fixedVelocityGradeCost R H0 1+fixedVelocityGradeCost R H0 2+1)+ |
| 78 | EulerPacketInitializedCost.weightSize W) ≤ extraEnvelope Z ∧ |
| 79 | weightedPhysicalGradientCost D period L.Rc L.C₀ ρ (EulerPacketInitializedCost.weightSize W) ≤ extraEnvelope Z ∧ |
| 80 | initializedGlobalShearCost R H0 NB.C ≤ extraEnvelope Z ∧ |
| 81 | initializedPressureHessianCost NB R H0 L.Rc L.C₀ ≤ extraEnvelope Z := by |
| 82 | let R := initializedRadius LM L NB BC δ ξ |
| 83 | let Kc := L.correctionCoefficients NB period |
| 84 | let ρ := initialRadius R Kc.M Kc.Rc/4 |
| 85 | let Z := EulerPacketInitializedCost.envelope W |
| 86 | obtain ⟨hZ1,hRZ,hHZ,hCZ,hK⟩ := EulerPacketInitializedCost.actual_parameters |
| 87 | LM L NB BC δ ξ W H0 hδ H hHW |
| 88 | change R ≤ Z at hRZ |
| 89 | change H0 ≤ Z at hHZ |
| 90 | change BC.multiplierCost ≤ Z at hCZ |
| 91 | have hZ : 0 ≤ Z := zero_le_one.trans hZ1 |
| 92 | have hWZ := (EulerPacketInitializedCost.envelope_bounds W (zero_le_one.trans H.one)).2.1 |
| 93 | have hR0 : 0 ≤ R := zero_le_one.trans (initializedJoinedBudget LM L NB BC δ ξ).radius_bounds.1 |
| 94 | have hC0 := BC.multiplierCost_nonneg |
| 95 | have hLR := H.joined_radius.trans hWZ |
| 96 | have hLC := H.joined_frame.trans hWZ |
| 97 | have hNR := H.normal_radius.trans hWZ |
| 98 | have hNC := H.normal_amplitude.trans hWZ |
| 99 | have hNI := H.normal_inverse.trans hWZ |
| 100 | have hρ0 : 0 < ρ := div_pos (initialRadius_bounds R Kc.M Kc.Rc hR0 |
| 101 | (zero_le_one.trans Kc.M_one_le) Kc.Rc_nonneg).1 (by norm_num) |
| 102 | have hiR : (initialRadius R Kc.M Kc.Rc)⁻¹ ≤ inverseRadiusEnvelope Z := by |
| 103 | simp only [initialRadius,one_div,inv_inv] |
| 104 | unfold inverseRadiusEnvelope |
| 105 | have hm : Kc.M ≤ Z := hK.pressure |
| 106 | have hr : Kc.Rc ≤ Z := hK.radius |
| 107 | have hp := mul_le_mul hm hr Kc.Rc_nonneg hZ |
| 108 | nlinarith only [hp,hRZ,hr] |
| 109 | have hρinv : ρ⁻¹ ≤ 4*inverseRadiusEnvelope Z := by |
| 110 | change (initialRadius R Kc.M Kc.Rc/4)⁻¹ ≤ _ |
| 111 | rw [inv_div,div_eq_mul_inv] |
| 112 | gcongr |
| 113 | have hiZ : 0 ≤ inverseRadiusEnvelope Z := by unfold inverseRadiusEnvelope; positivity |
| 114 | have hrf : physicalInputRadius (4*R) (4*R) ρ ≤ radiusEnvelope Z := by |
| 115 | simp only [physicalInputRadius,max_self,liftedInputRadius] |
| 116 | change 1+coordinateCost*(4*R+ρ⁻¹) ≤ 1+coordinateCost*(4*Z+4*inverseRadiusEnvelope Z) |
| 117 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 118 | gcongr |
| 119 | have hv := velocity_mono hR0 hH0 hC0 hRZ hHZ hCZ |
| 120 | have ha1 := gradeCost_mono R H0 Z hR0 hH0 hRZ hHZ 1 |
| 121 | have ha2 := gradeCost_mono R H0 Z hR0 hH0 hRZ hHZ 2 |
| 122 | have hg1 := fixedVelocityGradeCost_nonneg R H0 hR0 1 |
| 123 | have hg2 := fixedVelocityGradeCost_nonneg R H0 hR0 2 |
| 124 | have hg1Z := hg1.trans ha1 |
| 125 | have hg2Z := hg2.trans ha2 |
| 126 | have hn : normal R H0 BC.multiplierCost ≤ normal Z Z Z := by unfold normal; gcongr |
| 127 | have hl := zero_le_one.trans (liftedInputConstant_one_le period) |
| 128 | have hav : liftedInputConstant period*(velocity R H0 BC.multiplierCost+normal R H0 BC.multiplierCost) ≤ |
| 129 | velocityInputEnvelope Z := by unfold velocityInputEnvelope; gcongr |
| 130 | have hb := EulerPacketRadiusPolynomial.normal_block_le NB Z hZ hNR hNC hNI |
| 131 | have hb0 := NB.blockAmplitude_nonneg |
| 132 | have hbZ := hb0.trans hb |
| 133 | have ht : 6*NB.blockAmplitude*(fixedVelocityGradeCost R H0 1+fixedVelocityGradeCost R H0 2+1) ≤ |
| 134 | timeEnvelope Z := by unfold timeEnvelope; gcongr |
| 135 | have hat : 2*liftedInputConstant period*(6*NB.blockAmplitude* |
| 136 | (fixedVelocityGradeCost R H0 1+fixedVelocityGradeCost R H0 2+1)+ |
| 137 | EulerPacketInitializedCost.weightSize W) ≤ timeInputEnvelope Z := by |
| 138 | unfold timeInputEnvelope EulerPacketInitializedCost.weightSize |
| 139 | gcongr |
| 140 | have hphys := physicalFixedCost_one_le D L.Rc L.C₀ ρ⁻¹ Z (4*inverseRadiusEnvelope Z) |
| 141 | L.Rc_nonneg L.C₀_nonneg (inv_nonneg.mpr hρ0.le) hLR hLC hρinv |
| 142 | have hphys0 := EulerPacketPhysicalGevrey.physicalFixedCost_nonneg D L.Rc L.C₀ ρ⁻¹ 1 |
| 143 | L.Rc_nonneg L.C₀_nonneg (inv_nonneg.mpr hρ0.le) |
| 144 | have hphysZ := hphys0.trans hphys |
| 145 | have he := EulerCylinderSobolevSpace.sobolevEmbeddingConstant_nonneg period 3 |
| 146 | have ho := zero_le_one.trans (output_components period Z hZ).1 |
| 147 | have herr : weightedPhysicalGradientCost D period L.Rc L.C₀ ρ (EulerPacketInitializedCost.weightSize W) ≤ |
| 148 | weightedErrorEnvelope Z := by |
| 149 | calc |
| 150 | _ = ((1+9*L.C₀)*EulerPacketPhysicalGevrey.physicalFixedCost D L.Rc L.C₀ ρ⁻¹ 1* |
| 151 | EulerCylinderSobolevSpace.sobolevEmbeddingConstant period 3)*outputEnvelope period Z := by |
| 152 | unfold weightedPhysicalGradientCost EulerPacketInitializedCost.weightSize |
| 153 | ring |
| 154 | _ ≤ ((1+9*Z)*physicalEnvelope Z (4*inverseRadiusEnvelope Z)* |
| 155 | EulerCylinderSobolevSpace.sobolevEmbeddingConstant period 3)*outputEnvelope period Z := by gcongr |
| 156 | _ = _ := rfl |
| 157 | have hshear := shearCost_le R H0 NB.C Z hR0 hH0 NB.C_nonneg hRZ hHZ hNC |
| 158 | have hhess := hessianCost_le D NB R H0 L.Rc L.C₀ Z hR0 hH0 L.Rc_nonneg L.C₀_nonneg |
| 159 | hRZ hHZ hLR hLC hNR hNC |
| 160 | obtain ⟨hwe,hr,ha,hb,ht',he',hs,hp⟩ := extra_components Z hZ |
| 161 | exact ⟨hwe,hrf.trans hr,hav.trans ha,hb,hat.trans ht',herr.trans he',hshear.trans hs,hhess.trans hp⟩ |
| 162 | |
| 163 | end EulerPacketInitializedOutputCost |