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.PacketSourceRadiusPolynomial |
| 2 | import Euler.ParentPacketJoinedInput |
| 3 | import Euler.ParentCorrectionCostEnvelope |
| 4 | import Euler.PacketJoinedCoefficientBudgets |
| 5 | |
| 6 | /-! Polynomial control of the literal canonical initialized radius built from |
| 7 | the parent fields. The boundary coefficient remains an explicit scalar input. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerParentInitializedRadius |
| 12 | |
| 13 | open EulerPacketRadiusPolynomial EulerPacketSourceRadius EulerParentCorrectionCost |
| 14 | EulerParentCoefficientPolynomial EulerPolynomialCost EulerPacketParentPhysicalBudgets EulerPacketTerminalDatum |
| 15 | |
| 16 | def inputEnvelope (X : ℝ) : ℝ := |
| 17 | let a := parentConstant period*X^parentPower period |
| 18 | 1+X+a+3*a^3*X |
| 19 | |
| 20 | def inputPolynomial : Polynomial ℝ := |
| 21 | let X : Polynomial ℝ := Polynomial.X |
| 22 | let a := Polynomial.C (parentConstant period)*X^parentPower period |
| 23 | 1+X+a+3*a^3*X |
| 24 | |
| 25 | theorem inputPolynomial_eval (X : ℝ) : inputPolynomial.eval X=inputEnvelope X := by |
| 26 | simp only [inputPolynomial,inputEnvelope,Polynomial.eval_add,Polynomial.eval_mul, |
| 27 | Polynomial.eval_pow,Polynomial.eval_C,Polynomial.eval_X,Polynomial.eval_one,Polynomial.eval_ofNat] |
| 28 | |
| 29 | theorem inputEnvelope_bounds (K X : ℝ) (hK : 1 ≤ K) (hKX : K ≤ X) : |
| 30 | 1 ≤ inputEnvelope X ∧ X ≤ inputEnvelope X ∧ |
| 31 | leafEnvelope K ≤ inputEnvelope X ∧ parentEnvelope period K ≤ inputEnvelope X ∧ |
| 32 | ∀ Cp : ℝ, 0 ≤ Cp → Cp ≤ X → physicalCost K Cp ≤ inputEnvelope X := by |
| 33 | have hK0 := zero_le_one.trans hK |
| 34 | have hX0 := hK0.trans hKX |
| 35 | let a := parentConstant period*X^parentPower period |
| 36 | have ha0 : 0 ≤ a := mul_nonneg (parentConstant_pos period).le (pow_nonneg hX0 _) |
| 37 | have hp : parentEnvelope period K ≤ a := |
| 38 | (parentEnvelope_power period K hK).trans |
| 39 | (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ hK0 hKX _) (parentConstant_pos period).le) |
| 40 | have hl : leafEnvelope K ≤ a := (parentEnvelope_bounds period K hK0).2.1.trans hp |
| 41 | have hf : EulerPacketParentLabelBounds.frameAmplitude K ≤ a := (leaf_bounds K hK0).2.2.2.1.trans hl |
| 42 | have ha : a ≤ inputEnvelope X := by |
| 43 | change a ≤ 1+X+a+3*a^3*X |
| 44 | nlinarith only [hX0,mul_nonneg (pow_nonneg ha0 3) hX0] |
| 45 | refine ⟨?_,?_,hl.trans ha,hp.trans ha,?_⟩ |
| 46 | · change 1 ≤ 1+X+a+3*a^3*X |
| 47 | nlinarith only [hX0,ha0,mul_nonneg (pow_nonneg ha0 3) hX0] |
| 48 | · change X ≤ 1+X+a+3*a^3*X |
| 49 | nlinarith only [ha0,mul_nonneg (pow_nonneg ha0 3) hX0] |
| 50 | · intro Cp hCp hCpX |
| 51 | have hprod : physicalCost K Cp ≤ 3*a^3*X := by |
| 52 | unfold physicalCost |
| 53 | gcongr |
| 54 | exact EulerPacketParentLabelBounds.frameAmplitude_nonneg K |
| 55 | apply hprod.trans |
| 56 | change 3*a^3*X ≤ 1+X+a+3*a^3*X |
| 57 | linarith only [hX0,ha0] |
| 58 | |
| 59 | def sourceEnvelope (X : ℝ) : ℝ := sourceRadiusEnvelope (inputEnvelope X) |
| 60 | |
| 61 | def sourcePolynomial : Polynomial ℝ := sourceRadiusPolynomial.comp inputPolynomial |
| 62 | |
| 63 | theorem sourcePolynomial_eval (X : ℝ) : sourcePolynomial.eval X=sourceEnvelope X := by |
| 64 | simp only [sourcePolynomial,sourceEnvelope,Polynomial.eval_comp, |
| 65 | sourceRadiusPolynomial_eval,inputPolynomial_eval] |
| 66 | |
| 67 | def sourceConstant : ℝ := coefficientCost sourcePolynomial |
| 68 | def sourcePower : ℕ := sourcePolynomial.natDegree |
| 69 | |
| 70 | theorem sourceConstant_pos : 0 < sourceConstant := coefficientCost_pos _ |
| 71 | |
| 72 | theorem sourceEnvelope_power (X : ℝ) (hX : 1 ≤ X) : |
| 73 | sourceEnvelope X ≤ sourceConstant*X^sourcePower := by |
| 74 | rw [← sourcePolynomial_eval] |
| 75 | exact (le_abs_self _).trans (eval_bound sourcePolynomial X hX) |
| 76 | |
| 77 | def parameterSize (K Ti TiTotal Cp B δ N : ℝ) : ℝ := 1+K+Ti+TiTotal+Cp+B+δ⁻¹+N |
| 78 | |
| 79 | theorem parameterSize_bounds (K Ti TiTotal Cp B δ N : ℝ) |
| 80 | (hK : 0 ≤ K) (hTi : 0 ≤ Ti) (hTiTotal : 0 ≤ TiTotal) (hCp : 0 ≤ Cp) |
| 81 | (hB : 0 ≤ B) (hδ : 0 < δ) (hN : 0 ≤ N) : |
| 82 | 1 ≤ parameterSize K Ti TiTotal Cp B δ N ∧ K ≤ parameterSize K Ti TiTotal Cp B δ N ∧ |
| 83 | Ti ≤ parameterSize K Ti TiTotal Cp B δ N ∧ TiTotal ≤ parameterSize K Ti TiTotal Cp B δ N ∧ |
| 84 | Cp ≤ parameterSize K Ti TiTotal Cp B δ N ∧ B ≤ parameterSize K Ti TiTotal Cp B δ N ∧ |
| 85 | δ⁻¹ ≤ parameterSize K Ti TiTotal Cp B δ N ∧ N ≤ parameterSize K Ti TiTotal Cp B δ N := by |
| 86 | have hi := (inv_pos.mpr hδ).le |
| 87 | unfold parameterSize |
| 88 | exact ⟨by linarith,by linarith,by linarith,by linarith,by linarith,by linarith,by linarith,by linarith⟩ |
| 89 | |
| 90 | def fullEnvelope (X : ℝ) : ℝ := radiusEnvelope (sourceEnvelope X) |
| 91 | |
| 92 | def fullPolynomial : Polynomial ℝ := |
| 93 | radiusPolynomial.comp (sourceRadiusPolynomial.comp inputPolynomial) |
| 94 | |
| 95 | theorem fullPolynomial_eval (X : ℝ) : fullPolynomial.eval X=fullEnvelope X := by |
| 96 | simp only [fullPolynomial,fullEnvelope,sourceEnvelope,Polynomial.eval_comp,radiusPolynomial_eval, |
| 97 | sourceRadiusPolynomial_eval,inputPolynomial_eval] |
| 98 | |
| 99 | def fullConstant : ℝ := coefficientCost fullPolynomial |
| 100 | def fullPower : ℕ := fullPolynomial.natDegree |
| 101 | |
| 102 | theorem fullConstant_pos : 0 < fullConstant := coefficientCost_pos _ |
| 103 | |
| 104 | theorem fullEnvelope_power (X : ℝ) (hX : 1 ≤ X) : |
| 105 | fullEnvelope X ≤ fullConstant*X^fullPower := by |
| 106 | rw [← fullPolynomial_eval] |
| 107 | exact (le_abs_self _).trans (eval_bound fullPolynomial X hX) |
| 108 | |
| 109 | end EulerParentInitializedRadius |
| 110 | |
| 111 | namespace EulerParentPacketFrames.LabelData |
| 112 | |
| 113 | open Set EulerSmoothLimit EulerGevrey EulerMeanCoefficients EulerMeanBoundary |
| 114 | EulerMeanHarmonic EulerPacketParentLabelBounds EulerParentCoefficientPolynomial |
| 115 | EulerParentCorrectionCost EulerPacketSourceRadius EulerParentInitializedRadius |
| 116 | EulerPacketRadiusPolynomial EulerPacketTerminalDatum EulerPacketCylinderField |
| 117 | EulerPacketSourcePropagator EulerTransversePacketProvider EulerTimeIntervalRestriction |
| 118 | |
| 119 | variable {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 120 | {G : Parent} (L : LabelData G) (H : LowBounds G) |
| 121 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] EulerTransverseFrameCoordinates.referencePlane m) |
| 122 | (S : Set Space) (hS : IsCompact S) (τ : ℝ) (hτ : 0 < τ) (hτT : τ < G.T) |
| 123 | (Ti Cp : ℝ) (hτ1 : τ ≤ 1) (hTi : τ⁻¹ ≤ Ti) (hCp : 0 ≤ Cp) |
| 124 | (g : C(Icc (0 : ℝ) (G.T-τ),ℝ)) (hg : ∀ t, 0 < g t) |
| 125 | (hg0 : g ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩=1) |
| 126 | (Ω : Set Space) (hΩ : MeasurableSet Ω) (hΩo : IsOpen Ω) |
| 127 | (hsub : S ⊆ Ω) (hΩball : ∀ x ∈ Ω, ‖x‖ ≤ (1/2 : ℝ)) |
| 128 | (hphysical : PhysicalGrowth ((G.transverseData m hm R S hS).tail τ hτ.le hτT) |
| 129 | EulerPacketParentPhysicalBudgets.halfBall g Cp) |
| 130 | (TiTotal : ℝ) (hT1 : G.T ≤ 1) (hTiTotal : G.T⁻¹ ≤ TiTotal) |
| 131 | |
| 132 | local notation "J" => L.joinedInputs H m hm R S hS τ hτ hτT Ti Cp hτ1 hTi hCp |
| 133 | g hg hg0 Ω hΩ hΩo hsub hΩball hphysical TiTotal hT1 hTiTotal |
| 134 | local notation "BC" => joinedCoefficientBudget period (G.meanData H) (G.transverseData m hm R S hS) |
| 135 | rfl τ hτ hτT (G.historyOn H m hm R S hS τ hτ hτT) (JoinedInputs.normal J) |
| 136 | |
| 137 | def canonicalInitializedRadius (δ : ℝ) (ξ : U) : ℝ := |
| 138 | initializedRadius (J).mean (J).linear (J).normal BC δ ξ |
| 139 | |
| 140 | theorem joined_radius_primitives (δ : ℝ) (ξ : U) (X : ℝ) |
| 141 | (hKX : L.K ≤ X) (hTiX : Ti ≤ X) (hTiTotalX : TiTotal ≤ X) |
| 142 | (hCpX : Cp ≤ X) (hLX : H.L ≤ X) (hδX : δ⁻¹ ≤ X) (hξX : ‖ξ‖ ≤ X) : |
| 143 | RadiusPrimitives (J).mean (J).linear (J).normal BC δ ξ (sourceRadiusEnvelope (inputEnvelope X)) := by |
| 144 | let W := inputEnvelope X |
| 145 | let V := sourceRadiusEnvelope W |
| 146 | have hK0 := zero_le_one.trans L.K_one |
| 147 | have hb := inputEnvelope_bounds L.K X L.K_one hKX |
| 148 | have hW : 1 ≤ W := hb.1 |
| 149 | have hW0 := zero_le_one.trans hW |
| 150 | have hXV : X ≤ V := hb.2.1.trans (le_sourceRadiusEnvelope W hW0) |
| 151 | have hWV : W ≤ V := le_sourceRadiusEnvelope W hW0 |
| 152 | have hLV : leafEnvelope L.K ≤ V := hb.2.2.1.trans hWV |
| 153 | have hPW : EulerPacketParentPhysicalBudgets.physicalCost L.K Cp ≤ W := hb.2.2.2.2 Cp hCp hCpX |
| 154 | have hPV := hPW.trans hWV |
| 155 | obtain ⟨hl1,hr,hgK,hf,hh,hn,hni,hnr,hgram,hri,hi⟩ := leaf_bounds L.K hK0 |
| 156 | have hLW : leafEnvelope L.K ≤ W := hb.2.2.1 |
| 157 | have hTi0 : 0 ≤ Ti := (inv_nonneg.mpr hτ.le).trans hTi |
| 158 | have hTiTotal0 : 0 ≤ TiTotal := (inv_nonneg.mpr G.T_pos.le).trans hTiTotal |
| 159 | have hL0 : 0 ≤ H.L := (mul_nonneg boundaryLocalizationC1_nonneg H.Bc_nonneg).trans H.L_lower |
| 160 | have hjoin : EulerPacketParentTransverseCosts.radius 6 τ (G.T-τ) Ti |
| 161 | (coefficientRadius L.K) (frameAmplitude L.K) (gradientAmplitude L.K) (gradientAmplitude L.K) |
| 162 | (EulerPacketParentPhysicalBudgets.physicalCost L.K Cp) ≤ V := |
| 163 | joined_radius_le τ (G.T-τ) Ti (coefficientRadius L.K) (frameAmplitude L.K) |
| 164 | (gradientAmplitude L.K) (gradientAmplitude L.K) |
| 165 | (EulerPacketParentPhysicalBudgets.physicalCost L.K Cp) W hW hτ.le hτ1 |
| 166 | (sub_pos.mpr hτT).le (by linarith) hTi0 (hTiX.trans hb.2.1) |
| 167 | (coefficientRadius_nonneg L.K) (hr.trans hLW) (frameAmplitude_nonneg L.K) (hf.trans hLW) |
| 168 | (gradientAmplitude_nonneg L.K) (hgK.trans hLW) (gradientAmplitude_nonneg L.K) |
| 169 | (EulerPacketParentPhysicalBudgets.physicalCost_nonneg L.K Cp hCp) hPW |
| 170 | (hh.trans hLW) (hi.trans hLW) (hgram.trans hLW) (hri.trans hLW) |
| 171 | have hmean : EulerPacketParentMeanBudget.radius 6 G.T TiTotal (coefficientRadius L.K) |
| 172 | (frameAmplitude L.K) (gradientAmplitude L.K) (gradientAmplitude L.K) H.L ≤ V := |
| 173 | mean_radius_le G.T TiTotal (coefficientRadius L.K) (frameAmplitude L.K) |
| 174 | (gradientAmplitude L.K) (gradientAmplitude L.K) H.L W hW G.T_pos.le hT1 hTiTotal0 |
| 175 | (hTiTotalX.trans hb.2.1) (coefficientRadius_nonneg L.K) (hr.trans hLW) |
| 176 | (frameAmplitude_nonneg L.K) (hf.trans hLW) (gradientAmplitude_nonneg L.K) (hgK.trans hLW) |
| 177 | (gradientAmplitude_nonneg L.K) hL0 (hLX.trans hb.2.1) (hh.trans hLW) (hi.trans hLW) (hgram.trans hLW) |
| 178 | have hJR : (J).linear.R ≤ V := by |
| 179 | change max _ (max _ _) ≤ V |
| 180 | exact max_le hjoin (max_le (hnr.trans hLV) hmean) |
| 181 | have hci : ((G.transverseData m hm R S hS).initial τ hτ hτT.le).frameLower⁻¹ ≤ V := by |
| 182 | apply (frameLower_inv_le _ L.K hK0 ?_ ?_).trans hLV |
| 183 | · intro t x |
| 184 | exact G.frame_det (initialInclusion G.T τ hτT.le t) x |
| 185 | · intro t x |
| 186 | have hf0 := (J).linear.frame_bound 0 (initialInclusion G.T τ hτT.le t) x |
| 187 | have he : (J).linear.C₀=frameAmplitude L.K := rfl |
| 188 | change ‖(G.transverseData m hm R S hS).F.field (initialInclusion G.T τ hτT.le t) x‖ ≤ frameAmplitude L.K |
| 189 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 190 | Nat.cast_one,pow_zero,mul_one,one_pow,he] using hf0 |
| 191 | have hBC := (BC).parent_primitive_bound L.K hK0 hr hn |
| 192 | change RadiusPrimitives (J).mean (J).linear (J).normal BC δ ξ V |
| 193 | exact { |
| 194 | one := hW.trans hWV |
| 195 | total_time := hT1 |
| 196 | mean_time := hT1 |
| 197 | history_inverse_time := hTi.trans (hTiX.trans hXV) |
| 198 | mean_inverse_time := hTiTotal.trans (hTiTotalX.trans hXV) |
| 199 | history_gram := hci |
| 200 | original_joined := hJR |
| 201 | original_mean := hJR |
| 202 | joined_radius := hr.trans hLV |
| 203 | joined_frame := hf.trans hLV |
| 204 | joined_first := hgK.trans hLV |
| 205 | joined_curvature := hh.trans hLV |
| 206 | joined_propagator := hPV |
| 207 | joined_inverse := hri.trans hLV |
| 208 | normal_radius := hr.trans hLV |
| 209 | normal_amplitude := hn.trans hLV |
| 210 | normal_inverse := hni.trans hLV |
| 211 | mean_radius := hr.trans hLV |
| 212 | mean_frame := hf.trans hLV |
| 213 | mean_first := hgK.trans hLV |
| 214 | mean_forcing := hW.trans hWV |
| 215 | coefficient_radius := hr.trans hLV |
| 216 | coefficient_cost := hBC.2.trans (hb.2.2.2.1.trans hWV) |
| 217 | delta_inverse := hδX.trans hXV |
| 218 | terminal := hξX.trans hXV } |
| 219 | |
| 220 | theorem canonicalInitializedRadius_power (δ : ℝ) (hδ : 0 < δ) (ξ : U) (X : ℝ) |
| 221 | (hKX : L.K ≤ X) (hTiX : Ti ≤ X) (hTiTotalX : TiTotal ≤ X) |
| 222 | (hCpX : Cp ≤ X) (hLX : H.L ≤ X) (hδX : δ⁻¹ ≤ X) (hξX : ‖ξ‖ ≤ X) : |
| 223 | L.canonicalInitializedRadius H m hm R S hS τ hτ hτT Ti Cp hτ1 hTi hCp |
| 224 | g hg hg0 Ω hΩ hΩo hsub hΩball hphysical TiTotal hT1 hTiTotal δ ξ ≤ fullConstant*X^fullPower := by |
| 225 | have hp := L.joined_radius_primitives H m hm R S hS τ hτ hτT Ti Cp hτ1 hTi hCp |
| 226 | g hg hg0 Ω hΩ hΩo hsub hΩball hphysical TiTotal hT1 hTiTotal δ ξ X |
| 227 | hKX hTiX hTiTotalX hCpX hLX hδX hξX |
| 228 | exact (initializedRadius_le_envelope (J).mean (J).linear (J).normal BC δ ξ |
| 229 | (sourceRadiusEnvelope (inputEnvelope X)) hδ hp).trans |
| 230 | (fullEnvelope_power X (L.K_one.trans hKX)) |
| 231 | |
| 232 | theorem joined_radius_primitive_polynomial (δ : ℝ) (hδ : 0 < δ) (ξ : U) : |
| 233 | let X := parameterSize L.K Ti TiTotal Cp H.L δ ‖ξ‖ |
| 234 | RadiusPrimitives (J).mean (J).linear (J).normal BC δ ξ (sourceEnvelope X) ∧ |
| 235 | sourceEnvelope X ≤ sourceConstant*X^sourcePower := by |
| 236 | have hL0 : 0 ≤ H.L := (mul_nonneg boundaryLocalizationC1_nonneg H.Bc_nonneg).trans H.L_lower |
| 237 | obtain ⟨h1,hK,hI,hIT,hC,hB,hD,hN⟩ := parameterSize_bounds L.K Ti TiTotal Cp H.L δ ‖ξ‖ |
| 238 | (zero_le_one.trans L.K_one) ((inv_pos.mpr hτ).le.trans hTi) |
| 239 | ((inv_pos.mpr G.T_pos).le.trans hTiTotal) hCp hL0 hδ (norm_nonneg ξ) |
| 240 | exact ⟨L.joined_radius_primitives H m hm R S hS τ hτ hτT Ti Cp hτ1 hTi hCp |
| 241 | g hg hg0 Ω hΩ hΩo hsub hΩball hphysical TiTotal hT1 hTiTotal δ ξ _ hK hI hIT hC hB hD hN, |
| 242 | sourceEnvelope_power _ h1⟩ |
| 243 | |
| 244 | theorem canonicalInitializedRadius_polynomial (δ : ℝ) (hδ : 0 < δ) (ξ : U) : |
| 245 | L.canonicalInitializedRadius H m hm R S hS τ hτ hτT Ti Cp hτ1 hTi hCp |
| 246 | g hg hg0 Ω hΩ hΩo hsub hΩball hphysical TiTotal hT1 hTiTotal δ ξ ≤ |
| 247 | fullConstant*(parameterSize L.K Ti TiTotal Cp H.L δ ‖ξ‖)^fullPower := by |
| 248 | have hL0 : 0 ≤ H.L := (mul_nonneg boundaryLocalizationC1_nonneg H.Bc_nonneg).trans H.L_lower |
| 249 | obtain ⟨_,hK,hI,hIT,hC,hB,hD,hN⟩ := parameterSize_bounds L.K Ti TiTotal Cp H.L δ ‖ξ‖ |
| 250 | (zero_le_one.trans L.K_one) ((inv_pos.mpr hτ).le.trans hTi) |
| 251 | ((inv_pos.mpr G.T_pos).le.trans hTiTotal) hCp hL0 hδ (norm_nonneg ξ) |
| 252 | exact L.canonicalInitializedRadius_power H m hm R S hS τ hτ hτT Ti Cp hτ1 hTi hCp |
| 253 | g hg hg0 Ω hΩ hΩo hsub hΩball hphysical TiTotal hT1 hTiTotal δ hδ ξ _ hK hI hIT hC hB hD hN |
| 254 | |
| 255 | end EulerParentPacketFrames.LabelData |