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.PacketWithinStage |
| 2 | |
| 3 | /-! |
| 4 | Relative stability with an actual initial velocity discrepancy. This keeps |
| 5 | the neighbor-data contribution in the Duhamel estimate rather than requiring |
| 6 | the perturbed velocity to have exactly the center initial data. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | |
| 12 | namespace EulerPacketMovingFrame |
| 13 | |
| 14 | open Set EulerPacketRay EulerPacketBridge EulerPacketPerturbation EulerPacketGrowth |
| 15 | EulerClosedIntervalDerivativeExtension |
| 16 | |
| 17 | theorem velocity_difference_bound |
| 18 | {σ Θ T e : ℝ} {F F₁ G G₁ Z Z₁ U U₁ V V₁ : ℝ → ℝ} |
| 19 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hΘ : 1 ≤ Θ) |
| 20 | (hT0 : 0 ≤ T) (hT : T ≤ Θ) (he : 0 ≤ e) (hsmall : 40*e*Θ^21 ≤ 1) |
| 21 | (hF : ∀ t, 0 ≤ t → HasDerivAt F (F₁ t) t) |
| 22 | (hG : ∀ t, 0 ≤ t → HasDerivAt G (G₁ t) t) |
| 23 | (hfluxF : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*F₁ s) |
| 24 | (2*(1-σ^2*(σ^2*t^2))*F t) t) |
| 25 | (hfluxG : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*G₁ s) |
| 26 | (2*(1-σ^2*(σ^2*t^2))*G t) t) |
| 27 | (hF0 : F 0 = 1) (hF₁0 : F₁ 0 = 0) (hG₁0 : G₁ 0 = 1) |
| 28 | (hU : ∀ t ∈ Icc 0 T, HasDerivAt U (U₁ t) t) |
| 29 | (hV : ∀ t ∈ Icc 0 T, HasDerivAt V (V₁ t) t) |
| 30 | (hU₁c : ContinuousOn U₁ (Icc 0 T)) (hV₁c : ContinuousOn V₁ (Icc 0 T)) |
| 31 | (hZ : ∀ t ∈ Icc 0 T, HasDerivAt Z (Z₁ t) t) |
| 32 | (hfluxZ : ∀ t ∈ Icc 0 T, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 33 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 34 | (herror : ∀ t ∈ Icc 0 T, |
| 35 | |U₁ t-idealVelocityFirst (σ^2) t (U t) (V t)|+|V₁ t+U t| ≤ |
| 36 | (e*Θ^12)*(|U t|+|V t|)) : |
| 37 | ∀ t ∈ Icc 0 T, |V t-Z t|+|U t+Z₁ t| ≤ |
| 38 | 20*Θ^8*F t*(|V 0-Z 0|+|U 0+Z₁ 0|)+800*e*Θ^29*F t*(|V 0|+|U 0|) := by |
| 39 | let f : ℝ → ℝ := fun t => V₁ t+U t |
| 40 | let g : ℝ → ℝ := fun t => -U₁ t+idealVelocityFirst (σ^2) t (U t) (V t) |
| 41 | have hUc : ContinuousOn U (Icc 0 T) := fun t ht => (hU t ht).continuousAt.continuousWithinAt |
| 42 | have hVc : ContinuousOn V (Icc 0 T) := fun t ht => (hV t ht).continuousAt.continuousWithinAt |
| 43 | have hfc : ContinuousOn f (Icc 0 T) := hV₁c.add hUc |
| 44 | have hgc : ContinuousOn g (Icc 0 T) := hU₁c.neg.add (continuousOn_idealVelocityFirst hUc hVc) |
| 45 | have hY : ∀ t ∈ Icc 0 T, HasDerivAt V (-U t+f t) t := by |
| 46 | intro t ht |
| 47 | exact (velocity_scalar_flux (β := σ^2) (hU t ht) (hV t ht)).1 |
| 48 | have hfluxY : ∀ t ∈ Icc 0 T, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*(-U s)) |
| 49 | (2*(1-σ^2*(σ^2*t^2))*V t+(1+(σ^2*t^2)^2)*g t) t := by |
| 50 | intro t ht |
| 51 | exact (velocity_scalar_flux (β := σ^2) (hU t ht) (hV t ht)).2 |
| 52 | have hforcing : ∀ t ∈ Icc 0 T, |f t|+|g t| ≤ (e*Θ^12)*(|V t|+|-U t|) := by |
| 53 | intro t ht |
| 54 | have hg : |g t| = |U₁ t-idealVelocityFirst (σ^2) t (U t) (V t)| := by |
| 55 | dsimp [g] |
| 56 | rw [neg_add_eq_sub, abs_sub_comm] |
| 57 | rw [hg, abs_neg] |
| 58 | dsimp [f] |
| 59 | linarith only [herror t ht] |
| 60 | have hδ : 0 ≤ e*Θ^12 := by positivity |
| 61 | have hs : 20*Θ^8*(e*Θ^12)*(T-0) ≤ 1/2 := by |
| 62 | have hm := mul_le_mul_of_nonneg_left hT (show 0 ≤ 20*e*Θ^20 by positivity) |
| 63 | nlinarith only [hsmall, hm] |
| 64 | have hh := equation30_perturbed_difference_bound hσ hσsmall hΘ (by norm_num : (0:ℝ) ≤ 0) |
| 65 | hT0 hT hδ hs hF hG hfluxF hfluxG hF0 hF₁0 hG₁0 hY hfluxY hZ hfluxZ hfc hgc hforcing |
| 66 | have habs (x y : ℝ) : |-x-y| = |x+y| := by rw [show -x-y = -(x+y) by ring, abs_neg] |
| 67 | intro t ht |
| 68 | have h := hh t ht |
| 69 | simp only [hF0, div_one, habs, abs_neg] at h |
| 70 | convert! h using 1 |
| 71 | ring |
| 72 | |
| 73 | theorem velocity_difference_bound_within |
| 74 | {σ Θ T e : ℝ} {F F₁ G G₁ Z Z₁ U U₁ V V₁ : ℝ → ℝ} |
| 75 | (hσ : 0 < σ) (hσsmall : σ ≤ 1/4) (hΘ : 1 ≤ Θ) |
| 76 | (hT0 : 0 < T) (hT : T ≤ Θ) (he : 0 ≤ e) (hsmall : 40*e*Θ^21 ≤ 1) |
| 77 | (hF : ∀ t, 0 ≤ t → HasDerivAt F (F₁ t) t) |
| 78 | (hG : ∀ t, 0 ≤ t → HasDerivAt G (G₁ t) t) |
| 79 | (hfluxF : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*F₁ s) |
| 80 | (2*(1-σ^2*(σ^2*t^2))*F t) t) |
| 81 | (hfluxG : ∀ t, 0 ≤ t → HasDerivAt (fun s => (1+(σ^2*s^2)^2)*G₁ s) |
| 82 | (2*(1-σ^2*(σ^2*t^2))*G t) t) |
| 83 | (hF0 : F 0 = 1) (hF₁0 : F₁ 0 = 0) (hG₁0 : G₁ 0 = 1) |
| 84 | (hU : ∀ t ∈ Icc 0 T, HasDerivWithinAt U (U₁ t) (Icc 0 T) t) |
| 85 | (hV : ∀ t ∈ Icc 0 T, HasDerivWithinAt V (V₁ t) (Icc 0 T) t) |
| 86 | (hU₁c : ContinuousOn U₁ (Icc 0 T)) (hV₁c : ContinuousOn V₁ (Icc 0 T)) |
| 87 | (hZ : ∀ t ∈ Icc 0 T, HasDerivAt Z (Z₁ t) t) |
| 88 | (hfluxZ : ∀ t ∈ Icc 0 T, HasDerivAt (fun s => (1+(σ^2*s^2)^2)*Z₁ s) |
| 89 | (2*(1-σ^2*(σ^2*t^2))*Z t) t) |
| 90 | (herror : ∀ t ∈ Icc 0 T, |
| 91 | |U₁ t-idealVelocityFirst (σ^2) t (U t) (V t)|+|V₁ t+U t| ≤ |
| 92 | (e*Θ^12)*(|U t|+|V t|)) : |
| 93 | ∀ t ∈ Icc 0 T, |V t-Z t|+|U t+Z₁ t| ≤ |
| 94 | 20*Θ^8*F t*(|V 0-Z 0|+|U 0+Z₁ 0|)+800*e*Θ^29*F t*(|V 0|+|U 0|) := by |
| 95 | obtain ⟨U', hUeq, hU'⟩ := exists_extension hT0 hU |
| 96 | obtain ⟨V', hVeq, hV'⟩ := exists_extension hT0 hV |
| 97 | have he' : ∀ t ∈ Icc 0 T, |
| 98 | |U₁ t-idealVelocityFirst (σ^2) t (U' t) (V' t)|+|V₁ t+U' t| ≤ |
| 99 | (e*Θ^12)*(|U' t|+|V' t|) := by |
| 100 | intro t ht |
| 101 | simpa only [hUeq ht, hVeq ht] using herror t ht |
| 102 | have hh := velocity_difference_bound hσ hσsmall hΘ hT0.le hT he hsmall hF hG hfluxF hfluxG |
| 103 | hF0 hF₁0 hG₁0 hU' hV' hU₁c hV₁c hZ hfluxZ he' |
| 104 | have h0 : (0:ℝ) ∈ Icc 0 T := ⟨le_rfl, hT0.le⟩ |
| 105 | intro t ht |
| 106 | simpa only [hUeq ht, hVeq ht, hUeq h0, hVeq h0] using hh t ht |
| 107 | |
| 108 | /-- Converting the retained initial discrepancy to the source's neighbor |
| 109 | normalization costs no additional power of `Θ`. -/ |
| 110 | theorem neighbor_initial_error_bound |
| 111 | {Θ e η lam Ft u₀ v₀ L : ℝ} |
| 112 | (hΘ : 1 ≤ Θ) (he : 0 ≤ e) (hlam : 0 ≤ lam) (hFt : 0 ≤ Ft) |
| 113 | (hi : |v₀-1|+|u₀+lam| ≤ η) |
| 114 | (hb : L ≤ 20*Θ^8*Ft*(|v₀-1|+|u₀+lam|)+800*e*Θ^29*Ft*(|v₀|+|u₀|)) : |
| 115 | L ≤ (20*η*Θ^8+800*e*Θ^29*(1+lam+η))*Ft := by |
| 116 | have hv := abs_add_le (v₀-1) 1 |
| 117 | have hu := abs_add_le (u₀+lam) (-lam) |
| 118 | simp only [sub_add_cancel, abs_one, add_neg_cancel_right, abs_neg, abs_of_nonneg hlam] at hv hu |
| 119 | have hnorm : |v₀|+|u₀| ≤ 1+lam+η := by linarith only [hv, hu, hi] |
| 120 | have h1 := mul_le_mul_of_nonneg_left hi (show 0 ≤ 20*Θ^8*Ft by positivity) |
| 121 | have h2 := mul_le_mul_of_nonneg_left hnorm (show 0 ≤ 800*e*Θ^29*Ft by positivity) |
| 122 | nlinarith only [hb, h1, h2] |
| 123 | |
| 124 | end EulerPacketMovingFrame |