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.ParentInitializedRadiusPolynomial |
| 2 | import Euler.PacketGeometryProfileEnvelope |
| 3 | import Euler.PacketInitializedOutputCosts |
| 4 | import Euler.PacketForwardRadiusPolynomial |
| 5 | |
| 6 | /-! The chosen geometric profile contributes only another fixed |
| 7 | polynomial in the source primitives, including the target shear. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketUniformSource |
| 12 | |
| 13 | open EulerParentInitializedRadius EulerPolynomialCost |
| 14 | |
| 15 | def profileEnvelope (X : ℝ) : ℝ := |
| 16 | 1+sourceEnvelope X+8*Real.exp 6*X*(1+sourceEnvelope X) |
| 17 | |
| 18 | def profilePolynomial : Polynomial ℝ := |
| 19 | 1+sourcePolynomial+Polynomial.C (8*Real.exp 6)*Polynomial.X*(1+sourcePolynomial) |
| 20 | |
| 21 | theorem profilePolynomial_eval (X : ℝ) : profilePolynomial.eval X=profileEnvelope X := by |
| 22 | simp only [profilePolynomial,profileEnvelope,Polynomial.eval_add,Polynomial.eval_mul, |
| 23 | Polynomial.eval_C,Polynomial.eval_X,Polynomial.eval_one,sourcePolynomial_eval] |
| 24 | |
| 25 | theorem sourceEnvelope_one (X : ℝ) (hX : 1 ≤ X) : 1 ≤ sourceEnvelope X := by |
| 26 | have hi := (inputEnvelope_bounds X X hX le_rfl).1 |
| 27 | exact hi.trans (EulerPacketSourceRadius.le_sourceRadiusEnvelope _ (zero_le_one.trans hi)) |
| 28 | |
| 29 | theorem profileEnvelope_bounds (X : ℝ) (hX : 1 ≤ X) : |
| 30 | 1 ≤ profileEnvelope X ∧ sourceEnvelope X ≤ profileEnvelope X ∧ |
| 31 | 8*Real.exp 6*X*(1+sourceEnvelope X) ≤ profileEnvelope X := by |
| 32 | have hX0 := zero_le_one.trans hX |
| 33 | have hS := zero_le_one.trans (sourceEnvelope_one X hX) |
| 34 | have he := (Real.exp_pos (6 : ℝ)).le |
| 35 | have hp : 0 ≤ 8*Real.exp 6*X*(1+sourceEnvelope X) := by positivity |
| 36 | unfold profileEnvelope |
| 37 | exact ⟨by linarith,by linarith,by linarith⟩ |
| 38 | |
| 39 | theorem profile_amplitude_le (X δ h C : ℝ) (hX : 1 ≤ X) |
| 40 | (_hδ : 0 ≤ δ) (hδ1 : δ ≤ 1) (hh : 0 ≤ h) (hhX : h ≤ X) |
| 41 | (hC : 0 ≤ C) (hCS : C ≤ sourceEnvelope X) : |
| 42 | 8*Real.exp 6*δ*h*(1+C) ≤ profileEnvelope X := by |
| 43 | have hS := zero_le_one.trans (sourceEnvelope_one X hX) |
| 44 | have he := (Real.exp_pos (6 : ℝ)).le |
| 45 | calc |
| 46 | _ ≤ 8*Real.exp 6*1*X*(1+sourceEnvelope X) := by gcongr |
| 47 | _ = 8*Real.exp 6*X*(1+sourceEnvelope X) := by ring |
| 48 | _ ≤ _ := (profileEnvelope_bounds X hX).2.2 |
| 49 | |
| 50 | def frequencyPolynomial : Polynomial ℝ := |
| 51 | Polynomial.C EulerPacketInitializedOutputCost.uniformConstant* |
| 52 | profilePolynomial^EulerPacketInitializedOutputCost.uniformPower |
| 53 | |
| 54 | def frequencyConstant : ℝ := coefficientCost frequencyPolynomial |
| 55 | def frequencyPower : ℕ := frequencyPolynomial.natDegree |
| 56 | |
| 57 | theorem frequencyConstant_pos : 0 < frequencyConstant := coefficientCost_pos _ |
| 58 | |
| 59 | theorem frequencyPolynomial_eval (X : ℝ) : |
| 60 | frequencyPolynomial.eval X=EulerPacketInitializedOutputCost.uniformConstant* |
| 61 | (profileEnvelope X)^EulerPacketInitializedOutputCost.uniformPower := by |
| 62 | unfold frequencyPolynomial |
| 63 | simp only [Polynomial.eval_mul,Polynomial.eval_C,Polynomial.eval_pow, |
| 64 | profilePolynomial_eval] |
| 65 | |
| 66 | theorem frequency_bound (X : ℝ) (hX : 1 ≤ X) : |
| 67 | EulerPacketInitializedOutputCost.uniformConstant* |
| 68 | (profileEnvelope X)^EulerPacketInitializedOutputCost.uniformPower ≤ |
| 69 | frequencyConstant*X^frequencyPower := by |
| 70 | rw [← frequencyPolynomial_eval] |
| 71 | exact (le_abs_self _).trans (eval_bound frequencyPolynomial X hX) |
| 72 | |
| 73 | end EulerPacketUniformSource |
| 74 | |
| 75 | namespace EulerPacketSourceGeometry.Guards |
| 76 | |
| 77 | open Set EulerSmoothLimit EulerTransversePacketProvider EulerPacketUniformSource |
| 78 | EulerParentInitializedRadius EulerPacketProfileRecursion EulerPacketCylinderField |
| 79 | EulerPacketTerminalDatum |
| 80 | |
| 81 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 82 | {D : Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} {P : ParentFrame D τ} |
| 83 | {H : HistoryData (D.initial τ hτ hτT.le)} (J : Guards hτ hτT P H) |
| 84 | (hball : (1/2 : ℝ) ≤ J.radius) |
| 85 | (L : EulerTransversePacketJoin.Budget D τ hτ hτT H (Fin 4) 6) |
| 86 | (hg : L.g=J.sourceGrowthProfile hball) |
| 87 | {M : EulerMeanPacketProvider.Data} {Rm Tc : ℝ} {O : Operators} |
| 88 | {C : CoefficientData period Tc O} |
| 89 | (LM : EulerMeanPacketProvider.Budget M 6 Rm) |
| 90 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) (BC : CoefficientBudget C) |
| 91 | (ξ : U) (X : ℝ) (hX : 1 ≤ X) (hhX : J.hchild ≤ X) (hδ1 : J.δ ≤ 1) |
| 92 | (hR : EulerPacketRadiusPolynomial.RadiusPrimitives LM L NB BC J.δ ξ (sourceEnvelope X)) |
| 93 | |
| 94 | include hg hX hhX hδ1 hR in |
| 95 | theorem source_uniform_primitives : |
| 96 | EulerPacketRadiusPolynomial.RadiusPrimitives LM L NB BC J.δ ξ (profileEnvelope X) ∧ |
| 97 | ∀ t, J.primaryAmplitude hball*L.fullProfile t ≤ profileEnvelope X := by |
| 98 | refine ⟨hR.mono (profileEnvelope_bounds X hX).2.1,?_⟩ |
| 99 | intro t |
| 100 | exact (J.budget_fullProfile_amplitude hball L hg t).trans |
| 101 | (profile_amplitude_le X J.δ J.hchild L.C₀ hX J.delta_nonneg hδ1 |
| 102 | J.child_nonneg hhX L.C₀_nonneg hR.joined_frame) |
| 103 | |
| 104 | end EulerPacketSourceGeometry.Guards |
| 105 | |
| 106 | namespace EulerPacketForwardRadius.RadiusPrimitives |
| 107 | |
| 108 | open EulerTransversePacketProvider EulerPacketProfileRecursion EulerPacketCylinderField |
| 109 | EulerPacketTerminalDatum |
| 110 | |
| 111 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 112 | {D : Data U} {L : EulerTransversePacketForward.Budget D (Fin 4) 6} |
| 113 | {M : EulerMeanPacketProvider.Data} {Rm Tc : ℝ} {O : Operators} |
| 114 | {C : CoefficientData period Tc O} |
| 115 | {LM : EulerMeanPacketProvider.Budget M 6 Rm} |
| 116 | {NB : EulerTransversePacketJoin.NormalBudget D 6 L.R} {BC : CoefficientBudget C} |
| 117 | {δ : ℝ} {ξ : U} {X Y : ℝ} |
| 118 | |
| 119 | theorem mono (H : RadiusPrimitives L LM NB BC δ ξ X) (hXY : X ≤ Y) : |
| 120 | RadiusPrimitives L LM NB BC δ ξ Y := { |
| 121 | one := H.one.trans hXY |
| 122 | total_time := H.total_time |
| 123 | mean_time := H.mean_time |
| 124 | mean_inverse_time := H.mean_inverse_time.trans hXY |
| 125 | original_forward := H.original_forward.trans hXY |
| 126 | original_mean := H.original_mean.trans hXY |
| 127 | forward_radius := H.forward_radius.trans hXY |
| 128 | forward_frame := H.forward_frame.trans hXY |
| 129 | forward_first := H.forward_first.trans hXY |
| 130 | forward_inverse := H.forward_inverse.trans hXY |
| 131 | normal_radius := H.normal_radius.trans hXY |
| 132 | normal_amplitude := H.normal_amplitude.trans hXY |
| 133 | normal_inverse := H.normal_inverse.trans hXY |
| 134 | mean_radius := H.mean_radius.trans hXY |
| 135 | mean_frame := H.mean_frame.trans hXY |
| 136 | mean_first := H.mean_first.trans hXY |
| 137 | mean_forcing := H.mean_forcing.trans hXY |
| 138 | coefficient_radius := H.coefficient_radius.trans hXY |
| 139 | coefficient_cost := H.coefficient_cost.trans hXY |
| 140 | delta_inverse := H.delta_inverse.trans hXY |
| 141 | terminal := H.terminal.trans hXY } |
| 142 | |
| 143 | end EulerPacketForwardRadius.RadiusPrimitives |
| 144 | |
| 145 | namespace EulerPacketSourceGeometry.ForwardGuards |
| 146 | |
| 147 | open Set EulerSmoothLimit EulerTransversePacketProvider EulerPacketUniformSource |
| 148 | EulerParentInitializedRadius EulerPacketProfileRecursion EulerPacketCylinderField |
| 149 | EulerPacketTerminalDatum |
| 150 | |
| 151 | variable {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 152 | {D : Data U} {P : ParentFrame D 0} (J : ForwardGuards P) |
| 153 | (hball : (1/2 : ℝ) ≤ J.radius) |
| 154 | (L : EulerTransversePacketForward.Budget D (Fin 4) 6) |
| 155 | (hg : L.g=J.sourceGrowthProfile hball) |
| 156 | {M : EulerMeanPacketProvider.Data} {Rm Tc : ℝ} {O : Operators} |
| 157 | {C : CoefficientData period Tc O} |
| 158 | (LM : EulerMeanPacketProvider.Budget M 6 Rm) |
| 159 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) (BC : CoefficientBudget C) |
| 160 | (ξ : U) (X : ℝ) (hX : 1 ≤ X) (hhX : J.hchild ≤ X) (hδ1 : J.δ ≤ 1) |
| 161 | (hR : EulerPacketForwardRadius.RadiusPrimitives L LM NB BC J.δ ξ (sourceEnvelope X)) |
| 162 | |
| 163 | include hg hX hhX hδ1 hR in |
| 164 | theorem source_uniform_primitives : |
| 165 | EulerPacketForwardRadius.RadiusPrimitives L LM NB BC J.δ ξ (profileEnvelope X) ∧ |
| 166 | ∀ t, J.primaryAmplitude hball*L.g t ≤ profileEnvelope X := by |
| 167 | refine ⟨hR.mono (profileEnvelope_bounds X hX).2.1,?_⟩ |
| 168 | intro t |
| 169 | apply (J.budget_profile_amplitude hball L hg t).trans |
| 170 | simpa only [add_zero,mul_one] using |
| 171 | profile_amplitude_le X J.δ J.hchild 0 hX J.delta_nonneg hδ1 J.child_nonneg hhX |
| 172 | le_rfl (zero_le_one.trans (sourceEnvelope_one X hX)) |
| 173 | |
| 174 | end EulerPacketSourceGeometry.ForwardGuards |