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.ParentPacketHistoryPolynomial |
| 2 | import Euler.PacketActivationSourceData |
| 3 | |
| 4 | /-! A fixed polynomial controls the full actual neighboring-label cost, |
| 5 | including the normal normalization and the selected terminal datum. The |
| 6 | small label scale is kept outside this polynomial. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerParentNeighborCost |
| 11 | |
| 12 | open EulerPacketParentLabelBounds EulerParentHistoryCost EulerPolynomialCost |
| 13 | EulerTransverseActivationSelection |
| 14 | |
| 15 | def formula (F V R Hist Ei Hi CM CH : ℝ) : ℝ := |
| 16 | 27*F^2*V*R+27*F^2*R*(1+F)*Ei+ |
| 17 | 16*Hist*(5+64*CM^2+2*CH)*(1+3*F^2)*Hi*Ei |
| 18 | |
| 19 | def envelope (K Ti Ei Hi CM CH : ℝ) : ℝ := |
| 20 | formula (frameAmplitude K) (gradientAmplitude K) (coefficientRadius K) |
| 21 | (labelHistoryConstant*(1+K+Ti)^labelHistoryPower) Ei Hi CM CH |
| 22 | |
| 23 | def polynomial : Polynomial ℝ := |
| 24 | let X : Polynomial ℝ := Polynomial.X |
| 25 | let V := Polynomial.C embeddingCost*X^2 |
| 26 | let F := 1+V |
| 27 | let R := 1024+4*X |
| 28 | let Hist := Polynomial.C labelHistoryConstant*X^labelHistoryPower |
| 29 | 27*F^2*V*R+27*F^2*R*(1+F)*X+ |
| 30 | 16*Hist*(5+64*X^2+2*X)*(1+3*F^2)*X*X |
| 31 | |
| 32 | def constant : ℝ := coefficientCost polynomial |
| 33 | def degree : ℕ := polynomial.natDegree |
| 34 | |
| 35 | theorem constant_pos : 0 < constant := coefficientCost_pos _ |
| 36 | |
| 37 | theorem polynomial_eval (P : ℝ) : |
| 38 | polynomial.eval P = formula (frameAmplitude P) (gradientAmplitude P) (1024+4*P) |
| 39 | (labelHistoryConstant*P^labelHistoryPower) P P P P := by |
| 40 | simp [polynomial,formula,frameAmplitude,gradientAmplitude] |
| 41 | |
| 42 | theorem formula_mono {F V R Hist Ei Hi CM CH F' V' R' Hist' Ei' Hi' CM' CH' : ℝ} |
| 43 | (hF : 0 ≤ F) (hV : 0 ≤ V) (hR : 0 ≤ R) (hHist : 0 ≤ Hist) |
| 44 | (hEi : 0 ≤ Ei) (hHi : 0 ≤ Hi) (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) |
| 45 | (hFF : F ≤ F') (hVV : V ≤ V') (hRR : R ≤ R') (hHH : Hist ≤ Hist') |
| 46 | (hEE : Ei ≤ Ei') (hII : Hi ≤ Hi') (hMM : CM ≤ CM') (hCC : CH ≤ CH') : |
| 47 | formula F V R Hist Ei Hi CM CH ≤ formula F' V' R' Hist' Ei' Hi' CM' CH' := by |
| 48 | have hF0 := hF.trans hFF |
| 49 | have hV0 := hV.trans hVV |
| 50 | have hR0 := hR.trans hRR |
| 51 | have hH0 := hHist.trans hHH |
| 52 | have hE0 := hEi.trans hEE |
| 53 | have hI0 := hHi.trans hII |
| 54 | have hM0 := hCM.trans hMM |
| 55 | have hC0 := hCH.trans hCC |
| 56 | unfold formula |
| 57 | gcongr |
| 58 | |
| 59 | theorem envelope_power (K Ti Ei Hi CM CH : ℝ) |
| 60 | (hK : 0 ≤ K) (hTi : 0 ≤ Ti) (hEi : 0 ≤ Ei) (hHi : 0 ≤ Hi) |
| 61 | (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) : |
| 62 | envelope K Ti Ei Hi CM CH ≤ constant*(1+K+Ti+Ei+Hi+CM+CH)^degree := by |
| 63 | let P := 1+K+Ti+Ei+Hi+CM+CH |
| 64 | have hP : 1 ≤ P := by dsimp [P]; linarith |
| 65 | have hKP : K ≤ P := by dsimp [P]; linarith |
| 66 | have hbase : 1+K+Ti ≤ P := by dsimp [P]; linarith |
| 67 | have hEP : Ei ≤ P := by dsimp [P]; linarith |
| 68 | have hIP : Hi ≤ P := by dsimp [P]; linarith |
| 69 | have hMP : CM ≤ P := by dsimp [P]; linarith |
| 70 | have hHP : CH ≤ P := by dsimp [P]; linarith |
| 71 | have hEmbedding := embeddingCost_nonneg |
| 72 | have hHistory := labelHistoryConstant_pos |
| 73 | have hV : gradientAmplitude K ≤ gradientAmplitude P := by |
| 74 | unfold gradientAmplitude |
| 75 | gcongr |
| 76 | have hF : frameAmplitude K ≤ frameAmplitude P := add_le_add (le_refl (1 : ℝ)) hV |
| 77 | have hR : coefficientRadius K ≤ 1024+4*P := by |
| 78 | unfold coefficientRadius |
| 79 | apply max_le <;> linarith |
| 80 | have hHist : labelHistoryConstant*(1+K+Ti)^labelHistoryPower ≤ |
| 81 | labelHistoryConstant*P^labelHistoryPower := by gcongr |
| 82 | have he : envelope K Ti Ei Hi CM CH ≤ polynomial.eval P := by |
| 83 | rw [polynomial_eval] |
| 84 | exact formula_mono (frameAmplitude_nonneg K) (gradientAmplitude_nonneg K) |
| 85 | (coefficientRadius_nonneg K) (by positivity) hEi hHi hCM hCH |
| 86 | hF hV hR hHist hEP hIP hMP hHP |
| 87 | exact he.trans ((le_abs_self _).trans (eval_bound polynomial P hP)) |
| 88 | |
| 89 | end EulerParentNeighborCost |
| 90 | |
| 91 | namespace EulerPacketSourceGeometry.ParentFrame |
| 92 | |
| 93 | open EulerSmoothLimit EulerTransversePacketProvider |
| 94 | |
| 95 | variable {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 96 | {D : Data U} {τ : ℝ} (P : ParentFrame D τ) |
| 97 | |
| 98 | theorem epsilon_inv_le_twice_shear (ha : 1/2 ≤ P.a) (hH : 1 ≤ P.shear) : |
| 99 | P.epsilon⁻¹ ≤ 2*P.shear := by |
| 100 | have ha0 : 0 < P.a := by linarith only [ha] |
| 101 | have hH0 : 0 ≤ P.shear := zero_le_one.trans hH |
| 102 | rw [epsilon,← Real.sqrt_inv,inv_div] |
| 103 | calc |
| 104 | _ ≤ Real.sqrt (2*P.shear) := Real.sqrt_le_sqrt ((div_le_iff₀ ha0).2 |
| 105 | (by nlinarith only [mul_le_mul_of_nonneg_left ha hH0])) |
| 106 | _ ≤ 2*P.shear := Real.sqrt_le_iff.mpr ⟨by positivity, |
| 107 | by nlinarith only [hH,sq_nonneg (P.shear-1)]⟩ |
| 108 | |
| 109 | end EulerPacketSourceGeometry.ParentFrame |
| 110 | |
| 111 | namespace EulerParentPacketFrames.LabelData |
| 112 | |
| 113 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients |
| 114 | EulerPacketParentLabelBounds EulerGevrey EulerTransverseFrameCoordinates |
| 115 | EulerTransversePacketProvider EulerPacketActivationHistory EulerPacketNormalizedPrimary |
| 116 | EulerPacketSourceGeometry EulerPacketMovingFrame EulerPacketCrossProduct |
| 117 | EulerTransverseActivationSelection EulerParentHistoryCost EulerParentNeighborCost |
| 118 | |
| 119 | variable {G : Parent} (L : LabelData G) |
| 120 | {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 121 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 122 | (S : Set Space) (hS : IsCompact S) (H : LowBounds G) |
| 123 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < G.T) |
| 124 | (P : ParentFrame (G.transverseData m hm R S hS) τ) |
| 125 | (Ti CM CH : ℝ) (hτ1 : τ ≤ 1) (hTi : τ⁻¹ ≤ Ti) |
| 126 | (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) (hshear : 0 < P.shear) (heps : 0 < P.epsilon) |
| 127 | |
| 128 | include hτ1 hTi hCH hshear heps in |
| 129 | theorem neighborScaleCost_envelope : |
| 130 | L.neighborScaleCost m hm R S hS H τ hτ hτT P CM CH ≤ |
| 131 | envelope L.K Ti P.epsilon⁻¹ P.shear⁻¹ CM CH := by |
| 132 | let D := G.transverseData m hm R S hS |
| 133 | have hK : 0 ≤ L.K := zero_le_one.trans L.K_one |
| 134 | have hTi0 : 0 ≤ Ti := (inv_pos.mpr hτ).le.trans hTi |
| 135 | have hF : ∀ t x, ‖D.F.field t x‖ ≤ frameAmplitude L.K := by |
| 136 | intro t x |
| 137 | change ‖G.frame.field t x‖ ≤ frameAmplitude L.K |
| 138 | have h := L.frame_scaled_bound 0 t x |
| 139 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 140 | Nat.cast_one,pow_zero,mul_one,one_pow] using h |
| 141 | have hFn := frameAmplitude_nonneg L.K |
| 142 | have hFnorm := D.frameBound_le_of_frame (frameAmplitude L.K) hFn hF |
| 143 | have hInv0 := D.inverseBound_pos |
| 144 | have hInv := D.inverseBound_le_of_frame (frameAmplitude L.K) hFn G.frame_det hF |
| 145 | have hn : ‖cross (unit (P.m τ)) (unit (P.v τ))‖=1 := by |
| 146 | exact (frame_orthonormal (unit (P.m τ)) (unit (P.v τ)) |
| 147 | (unit_inner_self (P.ray_nonzero τ ⟨le_rfl,hτT.le⟩)) |
| 148 | (unit_inner_self (P.velocity_nonzero τ ⟨le_rfl,hτT.le⟩)) |
| 149 | (unit_inner_zero (P.tangent τ ⟨le_rfl,hτT.le⟩))).norm_eq_one 2 |
| 150 | have hray : (P.rayScale hτ hτT)⁻¹ ≤ 1+frameAmplitude L.K := |
| 151 | ((D.activationRayScale_bounds ⟨τ,hτ.le,hτT.le⟩ _ hn).2.2).trans hFnorm |
| 152 | have hHistory := (L.initialHistoryDifferenceScaleCost_bound m hm R S hS H τ hτ hτT |
| 153 | Ti hτ1 hTi).trans (labelHistoryEnvelope_power L.K Ti hK hTi0) |
| 154 | have hHistory0 : 0 ≤ L.initialHistoryDifferenceScaleCost m hm R S hS H τ hτ hτT := by |
| 155 | have h0 := historyLabelDifferenceCost_nonneg (G.historyOn H m hm R S hS τ hτ hτT) |
| 156 | have hb := L.initial_history_derivative_scale m hm R S hS H τ hτ hτT |
| 157 | have hell := G.ell_pos |
| 158 | nlinarith only [h0,hb,hell] |
| 159 | have hR := coefficientRadius_nonneg L.K |
| 160 | have hV := gradientAmplitude_nonneg L.K |
| 161 | have hRayPos := Guards.rayScale_pos hτ hτT P |
| 162 | have hHistConst := labelHistoryConstant_pos |
| 163 | have heq : L.neighborScaleCost m hm R S hS H τ hτ hτT P CM CH = |
| 164 | L.strainDifferenceCost+3*L.normalDifferenceCost*(P.rayScale hτ hτT)⁻¹*P.epsilon⁻¹+ |
| 165 | 16*(L.initialHistoryDifferenceScaleCost m hm R S hS H τ hτ hτT)* |
| 166 | (5+64*CM^2+2*CH)*D.inverseBound*P.shear⁻¹*P.epsilon⁻¹ := by |
| 167 | unfold neighborScaleCost ParentFrame.terminalBound activationConstant |
| 168 | simp only [div_eq_mul_inv,mul_inv_rev] |
| 169 | ring |
| 170 | rw [heq] |
| 171 | unfold envelope formula strainDifferenceCost normalDifferenceCost |
| 172 | calc |
| 173 | _ ≤ 27*(frameAmplitude L.K)^2*gradientAmplitude L.K*coefficientRadius L.K+ |
| 174 | 3*(9*(frameAmplitude L.K)^2*coefficientRadius L.K)*(1+frameAmplitude L.K)*P.epsilon⁻¹+ |
| 175 | 16*(labelHistoryConstant*(1+L.K+Ti)^labelHistoryPower)* |
| 176 | (5+64*CM^2+2*CH)*(1+3*(frameAmplitude L.K)^2)*P.shear⁻¹*P.epsilon⁻¹ := by |
| 177 | gcongr |
| 178 | _ = _ := by ring |
| 179 | |
| 180 | include hτ1 hTi hCM hCH hshear heps in |
| 181 | theorem neighborScaleCost_polynomial : |
| 182 | L.neighborScaleCost m hm R S hS H τ hτ hτT P CM CH ≤ |
| 183 | EulerParentNeighborCost.constant* |
| 184 | (1+L.K+Ti+P.epsilon⁻¹+P.shear⁻¹+CM+CH)^EulerParentNeighborCost.degree := |
| 185 | (L.neighborScaleCost_envelope m hm R S hS H τ hτ hτT P Ti CM CH hτ1 hTi hCH hshear heps).trans |
| 186 | (envelope_power L.K Ti P.epsilon⁻¹ P.shear⁻¹ CM CH (zero_le_one.trans L.K_one) |
| 187 | ((inv_pos.mpr hτ).le.trans hTi) (inv_nonneg.mpr heps.le) (inv_nonneg.mpr hshear.le) hCM hCH) |
| 188 | |
| 189 | include hτ1 hTi hCM hCH hshear heps in |
| 190 | theorem source_neighbor_polynomial : |
| 191 | P.neighborCost hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ≤ |
| 192 | (EulerParentNeighborCost.constant* |
| 193 | (1+L.K+Ti+P.epsilon⁻¹+P.shear⁻¹+CM+CH)^EulerParentNeighborCost.degree)*G.ell := |
| 194 | (L.source_neighbor_scale m hm R S hS H τ hτ hτT P CM CH hCM hCH hshear heps).trans |
| 195 | (mul_le_mul_of_nonneg_right |
| 196 | (L.neighborScaleCost_polynomial m hm R S hS H τ hτ hτT P Ti CM CH hτ1 hTi hCM hCH hshear heps) |
| 197 | G.ell_pos.le) |
| 198 | |
| 199 | include hτ1 hTi hCM hCH in |
| 200 | /-- With the actual activation scales, only the positive shear itself is |
| 201 | needed as a polynomial variable. CM and CH remain fixed low constants. -/ |
| 202 | theorem neighborScaleCost_low_polynomial (ha : 1/2 ≤ P.a) (hH : 1 ≤ P.shear) : |
| 203 | L.neighborScaleCost m hm R S hS H τ hτ hτT P CM CH ≤ |
| 204 | (EulerParentNeighborCost.constant*(2*(1+CM+CH))^EulerParentNeighborCost.degree)* |
| 205 | (1+L.K+Ti+P.shear)^EulerParentNeighborCost.degree := by |
| 206 | have hK : 0 ≤ L.K := zero_le_one.trans L.K_one |
| 207 | have hTi0 : 0 ≤ Ti := (inv_pos.mpr hτ).le.trans hTi |
| 208 | have hHp : 0 < P.shear := zero_lt_one.trans_le hH |
| 209 | have ha0 : 0 < P.a := by linarith only [ha] |
| 210 | have hEp : 0 < P.epsilon := Real.sqrt_pos.mpr (div_pos ha0 hHp) |
| 211 | have hEi := P.epsilon_inv_le_twice_shear ha hH |
| 212 | have hHi : P.shear⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hH |
| 213 | have hbase : 1 ≤ 1+L.K+Ti+P.shear := by linarith only [hK,hTi0,hH] |
| 214 | have hab : 1+L.K+Ti+P.epsilon⁻¹+P.shear⁻¹+CM+CH ≤ |
| 215 | 2*(1+CM+CH)*(1+L.K+Ti+P.shear) := by |
| 216 | have hc := mul_le_mul_of_nonneg_left hbase (show 0 ≤ CM+CH by positivity) |
| 217 | nlinarith only [hEi,hHi,hK,hTi0,hc,hCM,hCH] |
| 218 | have hA0 : 0 ≤ 1+L.K+Ti+P.epsilon⁻¹+P.shear⁻¹+CM+CH := by positivity |
| 219 | have hC := EulerParentNeighborCost.constant_pos |
| 220 | calc |
| 221 | _ ≤ EulerParentNeighborCost.constant* |
| 222 | (1+L.K+Ti+P.epsilon⁻¹+P.shear⁻¹+CM+CH)^EulerParentNeighborCost.degree := |
| 223 | L.neighborScaleCost_polynomial m hm R S hS H τ hτ hτT P Ti CM CH hτ1 hTi hCM hCH hHp hEp |
| 224 | _ ≤ EulerParentNeighborCost.constant* |
| 225 | (2*(1+CM+CH)*(1+L.K+Ti+P.shear))^EulerParentNeighborCost.degree := by gcongr |
| 226 | _ = _ := by rw [mul_pow]; ring |
| 227 | |
| 228 | include hτ1 hTi hCM hCH in |
| 229 | theorem source_neighbor_low_polynomial (ha : 1/2 ≤ P.a) (hH : 1 ≤ P.shear) : |
| 230 | P.neighborCost hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) CM CH ≤ |
| 231 | ((EulerParentNeighborCost.constant*(2*(1+CM+CH))^EulerParentNeighborCost.degree)* |
| 232 | (1+L.K+Ti+P.shear)^EulerParentNeighborCost.degree)*G.ell := by |
| 233 | have hHp : 0 < P.shear := zero_lt_one.trans_le hH |
| 234 | have ha0 : 0 < P.a := by linarith only [ha] |
| 235 | have hEp : 0 < P.epsilon := Real.sqrt_pos.mpr (div_pos ha0 hHp) |
| 236 | exact (L.source_neighbor_scale m hm R S hS H τ hτ hτT P CM CH hCM hCH hHp hEp).trans |
| 237 | (mul_le_mul_of_nonneg_right |
| 238 | (L.neighborScaleCost_low_polynomial m hm R S hS H τ hτ hτT P Ti CM CH hτ1 hTi hCM hCH ha hH) |
| 239 | G.ell_pos.le) |
| 240 | |
| 241 | end EulerParentPacketFrames.LabelData |