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 NavierStokes.SharpPhysicalPhase |
| 2 | |
| 3 | /-! ## From `NavierStokes/SharpPhysicalCarrier.lean` |
| 4 | |
| 5 | The text of `NavierStokes/SharpPhysicalCarrier.lean`, folded into this file, which was its only importer. -/ |
| 6 | |
| 7 | section |
| 8 | |
| 9 | noncomputable section |
| 10 | namespace NavierStokes.SharpPhysicalCarrier |
| 11 | open Set Function |
| 12 | open ProblemStatement PhysicalGraphBounds SharpPhaseJetAlgebra SharpPhysicalPhase |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := |
| 16 | WithTop.coe_le_coe.mpr le_top |
| 17 | |
| 18 | /-- The manuscript's common Cartesian derivative cost for an oscillatory factor. -/ |
| 19 | def derivativeCost (h : ℝ) : ℝ := 1 + 3*h/2 |
| 20 | |
| 21 | /-- The printed physical loss includes one derivative for potential recovery. -/ |
| 22 | def physicalLoss (h : ℝ) (m : ℕ) : ℝ := |
| 23 | 2*CoordinateAlgebra.A h + ((m:ℝ)+1)*derivativeCost h |
| 24 | |
| 25 | /-- A real physical phase with sharp positive jets gives the exact linear |
| 26 | carrier loss. Slow powers remain explicit, and are not absorbed into `Q`. -/ |
| 27 | theorem carrier_geometric_bound {h a b : ℝ} (hh : 0 ≤ h) (ha : 0 < a) |
| 28 | (m : ℕ) (g d e A B H : ℝ) (hA : 0 ≤ A) (hB : 1 ≤ B) |
| 29 | (he : 0 ≤ e) (hH : 0 ≤ H) : |
| 30 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ w : SpaceTime, |
| 31 | scaledRadial n w ∈ annulus a b → |w.1| ≤ 1 → |
| 32 | ∀ (amp : LiftPoint → ℂ) (Φ : SpaceTime → ℝ) (j : ℤ), |
| 33 | ContDiff ℝ ∞ amp → ContDiff ℝ ∞ Φ → |(j:ℝ)| ≤ H → |
| 34 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (physicalLift h n w)‖ ≤ |
| 35 | A * ChartScales.Q n ^ g * ChartScales.S n ^ d) → |
| 36 | (∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ w‖ ≤ |
| 37 | (B * ChartScales.S n ^ e * ChartScales.Q n ^ (-(1+h))) ^ i) → |
| 38 | ‖iteratedFDeriv ℝ m (fun z => amp (physicalLift h n z) * |
| 39 | character ((ChartScales.carrier h n:ℝ)*(j:ℝ)) (Φ z)) w‖ ≤ |
| 40 | C * ChartScales.Q n ^ (g-(m:ℝ)*derivativeCost h) * |
| 41 | ChartScales.S n ^ (d+e*(m:ℝ)) := by |
| 42 | obtain ⟨K, hK, hgraph⟩ := SharpGraphBounds.physicalLift_positive_jet_bound (b := b) hh ha m |
| 43 | let C := (2:ℝ)^m*(m.factorial:ℝ)^2*A*(1+2*H)^m*(K+B)^m |
| 44 | have hK0 : 0 ≤ K := by linarith |
| 45 | have hB0 : 0 ≤ B := by linarith |
| 46 | refine ⟨C, by dsimp [C]; positivity, ?_⟩ |
| 47 | intro n hn w hw ht amp Φ j hamp hΦ hj hab hph |
| 48 | have hQ := ChartScales.Q_pos n |
| 49 | have hS := ChartScales.S_pos (show 1 ≤ n by omega) |
| 50 | have hS1 := S_ge_one (show 1 ≤ n by omega) |
| 51 | have hSe : 1 ≤ ChartScales.S n ^ e := Real.one_le_rpow hS1 he |
| 52 | let U := (K+B)*ChartScales.S n^e*ChartScales.Q n^(-(1+h)) |
| 53 | have hU : 0 ≤ U := by dsimp [U]; positivity |
| 54 | have hscale : 1 ≤ ChartScales.Q n ^ (-h/2) := by |
| 55 | have hb := Real.rpow_le_rpow_of_exponent_ge hQ (ChartScales.Q_le_one n) (show -h/2 ≤ 0 by linarith) |
| 56 | simpa only [Real.rpow_zero] using hb |
| 57 | let M := (1+2*H)*ChartScales.Q n^(-h/2) |
| 58 | have hM : 1 ≤ M := one_le_mul_of_one_le_of_one_le (by linarith) hscale |
| 59 | have hM0 : 0 ≤ M := by linarith |
| 60 | have hc : |(ChartScales.carrier h n:ℝ)*(j:ℝ)| ≤ M := by |
| 61 | rw [abs_mul, abs_of_nonneg (Nat.cast_nonneg _)] |
| 62 | calc |
| 63 | _ ≤ (2*ChartScales.Q n^(-h/2))*H := |
| 64 | mul_le_mul (carrier_upper hh n) hj (abs_nonneg _) (by positivity) |
| 65 | _ ≤ M := by dsimp [M]; nlinarith [Real.rpow_nonneg hQ.le (-h/2)] |
| 66 | let W : Set SpaceTime := {z | radialProjection z ≠ 0} |
| 67 | have hW : IsOpen W := axisFree_open.preimage radialProjection.continuous |
| 68 | have hwW : w ∈ W := scaledRadial_ne_zero (annulus_axisFree ha hw) |
| 69 | have hgraphU : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i (physicalLift h n) w‖ ≤ U^i := by |
| 70 | intro i hi him |
| 71 | apply (hgraph n hn w hw ht i hi him).trans |
| 72 | have hqpow : ChartScales.Q n^(-(i:ℝ)*(1+h)) = (ChartScales.Q n^(-(1+h)))^i := by |
| 73 | rw [← Real.rpow_mul_natCast hQ.le] |
| 74 | congr 1 |
| 75 | ring |
| 76 | rw [hqpow] |
| 77 | calc |
| 78 | _ ≤ K^i*(ChartScales.Q n^(-(1+h)))^i := |
| 79 | mul_le_mul_of_nonneg_right (by simpa only [pow_one] using pow_le_pow_right₀ hK hi) (by positivity) |
| 80 | _ = (K*ChartScales.Q n^(-(1+h)))^i := (mul_pow _ _ _).symm |
| 81 | _ ≤ U^i := by |
| 82 | apply pow_le_pow_left₀ (by positivity) |
| 83 | dsimp [U] |
| 84 | apply mul_le_mul_of_nonneg_right _ (Real.rpow_nonneg hQ.le _) |
| 85 | exact (show K ≤ K+B by linarith).trans (le_mul_of_one_le_right (by linarith) hSe) |
| 86 | have hphaseU : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ w‖ ≤ U^i := by |
| 87 | intro i hi him |
| 88 | apply (hph i hi him).trans |
| 89 | apply pow_le_pow_left₀ (by positivity) |
| 90 | dsimp [U] |
| 91 | gcongr |
| 92 | linarith |
| 93 | have hampj := composition_geometric_on hW (physicalLift_smooth h n) hamp hwW m |
| 94 | (show 0 ≤ A*ChartScales.Q n^g*ChartScales.S n^d by positivity) hU hab hgraphU |
| 95 | have hcharj := composition_geometric hΦ (character_smooth ((ChartScales.carrier h n:ℝ)*(j:ℝ))) |
| 96 | w m (pow_nonneg hM0 m) hU |
| 97 | (fun i hi => by |
| 98 | rw [norm_character_jet] |
| 99 | exact (pow_le_pow_left₀ (abs_nonneg _) hc i).trans (pow_le_pow_right₀ hM hi)) hphaseU |
| 100 | have hampW : ContDiffOn ℝ ∞ (amp ∘ physicalLift h n) W := |
| 101 | hamp.contDiffOn.comp (physicalLift_smooth h n) (mapsTo_univ _ _) |
| 102 | have hprod := product_geometric_on hW hampW |
| 103 | ((character_smooth _).comp hΦ).contDiffOn hwW m |
| 104 | (show 0 ≤ (m.factorial:ℝ)*(A*ChartScales.Q n^g*ChartScales.S n^d) by positivity) |
| 105 | (show 0 ≤ (m.factorial:ℝ)*M^m by positivity) hU hampj hcharj |
| 106 | apply hprod.trans_eq |
| 107 | have hqpow : ChartScales.Q n^g * (ChartScales.Q n^(-h/2))^m * |
| 108 | (ChartScales.Q n^(-(1+h)))^m = ChartScales.Q n^(g-(m:ℝ)*derivativeCost h) := by |
| 109 | rw [← Real.rpow_mul_natCast hQ.le, ← Real.rpow_mul_natCast hQ.le, |
| 110 | ← Real.rpow_add hQ, ← Real.rpow_add hQ] |
| 111 | congr 1 |
| 112 | unfold derivativeCost |
| 113 | ring |
| 114 | have hspow : ChartScales.S n^d * (ChartScales.S n^e)^m = ChartScales.S n^(d+e*(m:ℝ)) := by |
| 115 | rw [← Real.rpow_mul_natCast hS.le, ← Real.rpow_add hS] |
| 116 | dsimp [M, U, C] |
| 117 | rw [mul_pow, mul_pow, mul_pow] |
| 118 | calc |
| 119 | _ = (2:ℝ)^m*(m.factorial:ℝ)^2*A*(1+2*H)^m*(K+B)^m * |
| 120 | (ChartScales.Q n^g*(ChartScales.Q n^(-h/2))^m*(ChartScales.Q n^(-(1+h)))^m) * |
| 121 | (ChartScales.S n^d*(ChartScales.S n^e)^m) := by ring |
| 122 | _ = _ := by rw [hqpow,hspow] |
| 123 | |
| 124 | |
| 125 | |
| 126 | /-- The exact native carrier, with genuine base-profile hypotheses and all |
| 127 | polar branches covered, has the printed cost per Cartesian derivative. -/ |
| 128 | theorem native_carrier_bound {h a b r0 P B dBase : ℝ} |
| 129 | (hh : 0 ≤ h) (ha : 0 < a) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) |
| 130 | (hdBase : 0 ≤ dBase) (m : ℕ) (g dAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : |
| 131 | ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ w : SpaceTime, |
| 132 | scaledRadial n w ∈ annulus a b → |w.1| ≤ 1 → |
| 133 | ∀ (chart : PolarCharts.Index) (center : Plane) (p pz x0 : ℝ), |
| 134 | |p| ≤ P → |pz| ≤ P → |x0| ≤ P → |
| 135 | |etaCoordinate (nativeGraph h n w - center)| ≤ r0 → |
| 136 | ∀ (amp : LiftPoint → ℂ) (F G : Slow → ℝ) (j : ℤ), |
| 137 | ContDiff ℝ ∞ amp → ContDiff ℝ ∞ F → ContDiff ℝ ∞ G → |(j:ℝ)| ≤ H → |
| 138 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (physicalLift h n w)‖ ≤ |
| 139 | A * ChartScales.Q n^g * ChartScales.S n^dAmp) → |
| 140 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i F |
| 141 | (slowMap (PolarCharts.chart a chart) h n w)‖ ≤ B*ChartScales.S n^dBase) → |
| 142 | (∀ i ≤ m, ‖iteratedFDeriv ℝ i G |
| 143 | (slowMap (PolarCharts.chart a chart) h n w)‖ ≤ B*ChartScales.S n^dBase) → |
| 144 | ‖iteratedFDeriv ℝ m ((fun y => amp y * |
| 145 | character ((ChartScales.carrier h n:ℝ)*(j:ℝ)) |
| 146 | (liftedPhase (PolarCharts.chart a chart) h n center r0 p pz x0 F G y)) ∘ |
| 147 | physicalLift h n) w‖ ≤ |
| 148 | C*ChartScales.Q n^(g-(m:ℝ)*derivativeCost h)* |
| 149 | ChartScales.S n^(dAmp+(dBase+1)*(m:ℝ)) := by |
| 150 | obtain ⟨K, hK, hpolar⟩ := PolarCharts.chart_finiteJets_uniform ha b m |
| 151 | let V := 1+2*r0*ChartScales.Tg |
| 152 | have hV : 1 ≤ V := by dsimp [V]; nlinarith [ChartScales.Tg_pos] |
| 153 | obtain ⟨BP, hBP, hphase⟩ := SharpPhysicalPhase.physicalPhase_geometric_bound hh hK hV hP hB hdBase m |
| 154 | obtain ⟨C, hC, hbound⟩ := carrier_geometric_bound (b := b) hh ha m |
| 155 | g dAmp (dBase+1) A BP H hA hBP (by linarith) hH |
| 156 | refine ⟨C,hC,?_⟩ |
| 157 | intro n hn w hw ht chart center p pz x0 hp hpz hx0 hslot amp F G j hamp hF hG hj hab hFb hGb |
| 158 | have hκ := PolarCharts.chart_contDiff ha chart |
| 159 | have hκb : ∀ i ≤ m, ‖iteratedFDeriv ℝ i (PolarCharts.chart a chart) (scaledRadial n w)‖ ≤ K := |
| 160 | fun i hi => hpolar chart i hi _ hw.1 |
| 161 | have hv : |slotTime h n center r0 w| ≤ V*ChartScales.S n := by |
| 162 | unfold slotTime |
| 163 | rw [abs_div, abs_of_pos (ChartScales.timeCoefficient_pos h n), div_eq_mul_inv] |
| 164 | have hnum : |etaCoordinate (nativeGraph h n w-center)+r0| ≤ 2*r0 := by |
| 165 | have ht := abs_add_le (etaCoordinate (nativeGraph h n w-center)) r0 |
| 166 | rw [abs_of_nonneg hr0] at ht |
| 167 | linarith |
| 168 | calc |
| 169 | _ ≤ (2*r0)*(ChartScales.Tg*ChartScales.S n) := |
| 170 | mul_le_mul hnum (ChartScales.timeCoefficient_inv_upper h hh hn) |
| 171 | (inv_nonneg.mpr (ChartScales.timeCoefficient_pos h n).le) (by positivity) |
| 172 | _ ≤ _ := by dsimp [V]; nlinarith [ChartScales.S_pos (show 1 ≤ n by omega)] |
| 173 | exact hbound n hn w hw ht amp |
| 174 | (liftedPhase (PolarCharts.chart a chart) h n center r0 p pz x0 F G ∘ physicalLift h n) j |
| 175 | hamp (SharpPhysicalPhase.physicalPhase_smooth hκ h n center r0 p pz x0 hF hG) hj hab |
| 176 | (hphase _ hκ n hn center r0 p pz x0 hp hpz hx0 F G hF hG w hκb hv hFb hGb) |
| 177 | |
| 178 | end NavierStokes.SharpPhysicalCarrier |
| 179 | end |
| 180 | |
| 181 | end |
| 182 | |
| 183 | /-! ## From `NavierStokes/SharpLogWeights.lean` |
| 184 | |
| 185 | The text of `NavierStokes/SharpLogWeights.lean`, folded into this file, which was its only importer. -/ |
| 186 | |
| 187 | section |
| 188 | |
| 189 | noncomputable section |
| 190 | namespace NavierStokes.SharpLogWeights |
| 191 | open PhysicalGraphBounds |
| 192 | |
| 193 | /-- Dyadic slow powers become a polynomial in the physical logarithm, |
| 194 | without sacrificing any power of the physical scale. -/ |
| 195 | theorem slow_power_log_bound (e : ℝ) : |
| 196 | ∃ C : ℝ, 0 < C ∧ ∃ P : ℕ, ∀ n : ℕ, 1 ≤ n → ∀ q : ℝ, |
| 197 | 0 < q → q/2 ≤ ChartScales.Q n → |
| 198 | ChartScales.S n^e ≤ C*(1+|Real.log q|)^P := by |
| 199 | let D := (Real.log 2+1)/Real.log 2 |
| 200 | let P := ⌈2*e⌉₊ |
| 201 | have hlog : 0 < Real.log 2 := Real.log_pos (by norm_num) |
| 202 | have hD : 0 < D := by dsimp [D]; positivity |
| 203 | refine ⟨D^P, pow_pos hD P, P, ?_⟩ |
| 204 | intro n hn q hq hlo |
| 205 | have hn1 : (1:ℝ) ≤ n := by exact_mod_cast hn |
| 206 | have hlogQ : Real.log (ChartScales.Q n) = -(n:ℝ)*Real.log 2 := by |
| 207 | simp only [ChartScales.Q, SlotColoring.dyadicQ, Real.log_rpow (by norm_num : (0:ℝ)<2)] |
| 208 | have hl := Real.log_le_log (by positivity : 0 < q/2) hlo |
| 209 | rw [Real.log_div hq.ne' (by norm_num : (2:ℝ)≠0), hlogQ] at hl |
| 210 | have hnlog : (n:ℝ) ≤ D*(1+|Real.log q|) := by |
| 211 | dsimp [D] |
| 212 | rw [div_mul_eq_mul_div] |
| 213 | apply (le_div_iff₀ hlog).mpr |
| 214 | nlinarith [neg_le_abs (Real.log q), abs_nonneg (Real.log q)] |
| 215 | calc |
| 216 | ChartScales.S n^e = (n:ℝ)^(2*e) := by |
| 217 | unfold ChartScales.S |
| 218 | rw [← Real.rpow_natCast_mul (show 0 ≤ (n:ℝ) by positivity)] |
| 219 | norm_num |
| 220 | _ ≤ (n:ℝ)^(P:ℝ) := Real.rpow_le_rpow_of_exponent_le hn1 (Nat.le_ceil _) |
| 221 | _ = (n:ℝ)^P := Real.rpow_natCast _ _ |
| 222 | _ ≤ (D*(1+|Real.log q|))^P := pow_le_pow_left₀ (by positivity) hnlog P |
| 223 | _ = _ := mul_pow _ _ _ |
| 224 | |
| 225 | /-- Preserve the exact real exponent while comparing a dyadic chart with |
| 226 | its physical scale and converting the remaining slow factor to logarithms. -/ |
| 227 | theorem chart_weight_bound (g e : ℝ) : |
| 228 | ∃ C : ℝ, 0 < C ∧ ∃ P : ℕ, ∀ n : ℕ, 1 ≤ n → ∀ q : ℝ, |
| 229 | 0 < q → q/2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2*q → |
| 230 | ChartScales.Q n^g * ChartScales.S n^e ≤ C*q^g*(1+|Real.log q|)^P := by |
| 231 | obtain ⟨D,hD,P,hslow⟩ := slow_power_log_bound e |
| 232 | refine ⟨2^|g| * D, by positivity, P, ?_⟩ |
| 233 | intro n hn q hq hlo hhi |
| 234 | calc |
| 235 | _ ≤ (2^|g| * q^g)*(D*(1+|Real.log q|)^P) := |
| 236 | mul_le_mul (comparable_rpow (ChartScales.Q_pos n) hq hlo hhi g) |
| 237 | (hslow n hn q hq hlo) (Real.rpow_nonneg (sq_nonneg _) _) (by positivity) |
| 238 | _ = _ := by ring |
| 239 | |
| 240 | end NavierStokes.SharpLogWeights |
| 241 | end |
| 242 | |
| 243 | end |
| 244 | |
| 245 | noncomputable section |
| 246 | namespace NavierStokes.SharpPhysicalLoss |
| 247 | open Set Function |
| 248 | open ProblemStatement PhysicalGraphBounds SharpPhysicalPhase SharpPhysicalCarrier |
| 249 | open scoped ContDiff |
| 250 | |
| 251 | private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := |
| 252 | WithTop.coe_le_coe.mpr le_top |
| 253 | |
| 254 | end NavierStokes.SharpPhysicalLoss |