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.ParentHistoryFrequencyGuard |
| 2 | import Euler.ParentPacketNeighborScaleGuard |
| 3 | |
| 4 | /-! Fixed coefficient thresholds for the literal neighboring-label guard. |
| 5 | The history reciprocal is derived from the initial geometric step, and |
| 6 | the only parent size input is the already constructed parent's label bound. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerParentNeighborThreshold |
| 11 | |
| 12 | open Real EulerParentNeighborCost EulerPacketSourceScaleSequence |
| 13 | EulerParentHistoryFrequency |
| 14 | |
| 15 | def forwardThreshold : ℝ := constant*4^degree |
| 16 | |
| 17 | def joinedThreshold (CM CH : ℝ) : ℝ := |
| 18 | (constant*(2*(1+CM+CH))^degree)*4^degree |
| 19 | |
| 20 | def commonThreshold (CM CH : ℝ) : ℝ := |
| 21 | max forwardThreshold (joinedThreshold CM CH) |
| 22 | |
| 23 | def requiredExponent : ℕ := 80*degree+1 |
| 24 | |
| 25 | theorem degree_le_requiredExponent : degree ≤ requiredExponent := by |
| 26 | unfold requiredExponent |
| 27 | omega |
| 28 | |
| 29 | theorem forwardThreshold_le_common (CM CH : ℝ) : |
| 30 | forwardThreshold ≤ commonThreshold CM CH := le_max_left _ _ |
| 31 | |
| 32 | theorem joinedThreshold_le_common (CM CH : ℝ) : |
| 33 | joinedThreshold CM CH ≤ commonThreshold CM CH := le_max_right _ _ |
| 34 | |
| 35 | theorem threshold_le_previous (J D : ℕ) (hJ : 3 ≤ J) (X : ℝ) (hX : 0 ≤ X) |
| 36 | (hbase : X^D ≤ exp (X/((J-1 : ℕ) : ℝ)^4)) (B : ℝ) (hB : B ≤ X^D) |
| 37 | (n : ℕ) : B ≤ previousFrequency J D X n := |
| 38 | hB.trans (initial_frequency_le_previous J D hJ X hX hbase n) |
| 39 | |
| 40 | end EulerParentNeighborThreshold |
| 41 | |
| 42 | namespace EulerParentPacketFrames.LabelData |
| 43 | |
| 44 | open Set Real EulerSmoothLimit EulerTransverseFrameCoordinates EulerTransversePacketProvider |
| 45 | EulerPacketSourceGeometry EulerParentNeighborCost EulerPacketSourceScaleSequence |
| 46 | EulerPacketSourceScaleActual EulerParentNeighborThreshold EulerParentHistoryFrequency |
| 47 | EulerPacketNestedHorizons EulerPacketBaseGuardScales |
| 48 | |
| 49 | variable {G : Parent} (L : LabelData G) |
| 50 | |
| 51 | theorem strainDifferenceCost_power : |
| 52 | L.strainDifferenceCost ≤ constant*(1+L.K)^degree := by |
| 53 | simpa only [envelope,formula,strainDifferenceCost,mul_zero,add_zero] using |
| 54 | envelope_power L.K 0 0 0 0 0 (zero_le_one.trans L.K_one) |
| 55 | le_rfl le_rfl le_rfl le_rfl le_rfl |
| 56 | |
| 57 | theorem strainDifferenceCost_monomial (k : ℝ) (c : ℕ) |
| 58 | (hk : 1 ≤ k) (hKk : L.K ≤ k^80) |
| 59 | (hcost : forwardThreshold ≤ k) (hc : requiredExponent ≤ c) : |
| 60 | L.strainDifferenceCost ≤ k^c := by |
| 61 | have hconst := constant_pos |
| 62 | have hn : degree ≤ c := degree_le_requiredExponent.trans hc |
| 63 | have he : 80*degree+1 ≤ c := hc |
| 64 | have hb := polynomial_le_monomial constant L.K 0 0 k 1 degree 80 c |
| 65 | hconst.le (zero_le_one.trans L.K_one) le_rfl le_rfl hk le_rfl hKk |
| 66 | (pow_nonneg (zero_le_one.trans hk) 80) zero_le_one hcost he hn |
| 67 | exact L.strainDifferenceCost_power.trans (by |
| 68 | simpa only [add_zero,one_pow,mul_one] using hb) |
| 69 | |
| 70 | theorem forward_neighbor_error_of_source_scales (J D : ℕ) (hJ : 3 ≤ J) |
| 71 | (X ρ : ℝ) (hX : 1 ≤ X) |
| 72 | (hbase : X^D ≤ exp (X/((J-1 : ℕ) : ℝ)^4)) (n c : ℕ) |
| 73 | (hρ : 0 ≤ ρ) (hρ1 : ρ ≤ 1) |
| 74 | (hKk : L.K ≤ previousFrequency J D X n^80) |
| 75 | (hcost : forwardThreshold ≤ previousFrequency J D X n) |
| 76 | (hc : requiredExponent ≤ c) (hscale : G.ell ≤ supportScale J X n) : |
| 77 | L.strainDifferenceCost*G.ell*ρ ≤ neighborError J D X (c : ℝ) n := by |
| 78 | have hk := previousFrequency_one_le J D hJ X hX hbase n |
| 79 | have hh : 1 ≤ previousShear J X n := by |
| 80 | cases n with |
| 81 | | zero => exact one_le_pow₀ hX |
| 82 | | succ n => |
| 83 | apply one_le_exp |
| 84 | exact div_nonneg |
| 85 | ((zero_le_one.trans hX).trans |
| 86 | (EulerPacketSourceParameterScales.sequence_initial_le J (by omega) X |
| 87 | (zero_le_one.trans hX) n)) (by positivity) |
| 88 | have hb := L.strainDifferenceCost_monomial (previousFrequency J D X n) c hk hKk hcost hc |
| 89 | have hkn : 0 ≤ previousFrequency J D X n^c := pow_nonneg (zero_le_one.trans hk) c |
| 90 | have hhn : 0 ≤ previousShear J X n^c := pow_nonneg (zero_le_one.trans hh) c |
| 91 | have hb' : L.strainDifferenceCost ≤ previousFrequency J D X n^c*previousShear J X n^c := |
| 92 | hb.trans (le_mul_of_one_le_right hkn (one_le_pow₀ hh)) |
| 93 | have hprod : 0 ≤ previousFrequency J D X n^c*previousShear J X n^c := mul_nonneg hkn hhn |
| 94 | calc |
| 95 | _ ≤ (previousFrequency J D X n^c*previousShear J X n^c)*G.ell*ρ := |
| 96 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hb' G.ell_pos.le) hρ |
| 97 | _ ≤ (previousFrequency J D X n^c*previousShear J X n^c)*G.ell := by |
| 98 | simpa only [mul_one] using mul_le_mul_of_nonneg_left hρ1 |
| 99 | (mul_nonneg hprod G.ell_pos.le) |
| 100 | _ ≤ (previousFrequency J D X n^c*previousShear J X n^c)*supportScale J X n := |
| 101 | mul_le_mul_of_nonneg_left hscale hprod |
| 102 | _ = neighborError J D X (c : ℝ) n := by |
| 103 | simp only [neighborError,rpow_natCast] |
| 104 | ring |
| 105 | |
| 106 | variable {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 107 | (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) |
| 108 | (S : Set Space) (hS : IsCompact S) (H : LowBounds G) |
| 109 | (τ : ℝ) (hτ : 0 < τ) (hτT : τ < G.T) |
| 110 | (P : ParentFrame (G.transverseData m hm R S hS) τ) |
| 111 | |
| 112 | theorem joined_neighbor_error_of_literal_scales |
| 113 | (J D : ℕ) (hJ : 3 ≤ J) (hD : 2000 ≤ D) (X ρ CM CH : ℝ) |
| 114 | (hX : 2 ≤ X) (hbase : X^D ≤ exp (X/((J-1 : ℕ) : ℝ)^4)) |
| 115 | (a β : ℕ → ℝ) (ha₀ : 1/2 ≤ a 0) (ha₀₂ : a 0 ≤ 2) |
| 116 | (hβ₀ : 1/2 ≤ β 0*X^2) (hβ₀₂ : β 0*X^2 ≤ 2) |
| 117 | (n c : ℕ) (hn : 1 ≤ n) (hτliteral : τ=activationTime J X a β n) |
| 118 | (hτ1 : τ ≤ 1) (hCM : 0 ≤ CM) (hCH : 0 ≤ CH) |
| 119 | (ha : 1/2 ≤ P.a) (hH : 1 ≤ P.shear) |
| 120 | (hρ : 0 ≤ ρ) (hρ1 : ρ ≤ 1) |
| 121 | (hshear : P.shear=previousShear J X n) |
| 122 | (hKk : L.K ≤ previousFrequency J D X n^80) |
| 123 | (hcost : joinedThreshold CM CH ≤ previousFrequency J D X n) |
| 124 | (hc : requiredExponent ≤ c) (hscale : G.ell ≤ supportScale J X n) : |
| 125 | L.neighborScaleCost m hm R S hS H τ hτ hτT P CM CH*G.ell*ρ ≤ |
| 126 | neighborError J D X (c : ℝ) n := by |
| 127 | have hx0 : 0 < X := by linarith only [hX] |
| 128 | have hx1 : 1 ≤ X := by linarith only [hX] |
| 129 | have hTi : τ⁻¹ ≤ 12/baseHorizon J X := by |
| 130 | rw [hτliteral] |
| 131 | exact reciprocal_activation_le_base J (by omega) X hx0 a β ha₀ ha₀₂ hβ₀ hβ₀₂ hn |
| 132 | have hTik := base_inverse_le_previous_frequency_pow80 J D hJ hD X hX hbase n |
| 133 | have hk := previousFrequency_one_le J D hJ X hx1 hbase n |
| 134 | exact L.neighbor_error_of_source_scales m hm R S hS H τ hτ hτT P |
| 135 | (12/baseHorizon J X) CM CH hτ1 hTi hCM hCH ha hH J D X ρ n 80 c |
| 136 | hρ hρ1 hshear hk hKk hTik hcost hc (degree_le_requiredExponent.trans hc) hscale |
| 137 | |
| 138 | end EulerParentPacketFrames.LabelData |