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.SmoothFlowTimeGevrey |
| 2 | |
| 3 | /-! Frequency arithmetic for the genuine graph-flow estimates. Fixed |
| 4 | source constants affect only the frequency threshold. The power losses |
| 5 | can be made arbitrarily small, independently of any truncation order. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | |
| 10 | namespace EulerPacketGraphFlowFrequency |
| 11 | |
| 12 | open Filter Real EulerSmoothFlowGevrey |
| 13 | |
| 14 | private theorem flow_radius_polynomial (B R T w : ℝ) |
| 15 | (hB : 0 ≤ B) (hR : 0 ≤ R) (hT : 0 ≤ T) (hw : 71 ≤ w) |
| 16 | (hRw : R ≤ w) (hTw : T ≤ w) (hsmall : B*w ≤ 1) : |
| 17 | 1+flowRadius B R T R ≤ w^3 ∧ 1+flowRadius B R T (6*R) ≤ w^3 := by |
| 18 | have hw0 : 0 ≤ w := by linarith |
| 19 | have hBT : B*T ≤ 1 := (mul_le_mul_of_nonneg_left hTw hB).trans hsmall |
| 20 | have hleft : 4*R+1 ≤ 5*w := by linarith |
| 21 | have hright : (1+B*T)*(6*R)+2 ≤ 14*w := by |
| 22 | have h := mul_le_mul_of_nonneg_right (show 1+B*T ≤ 2 by linarith) (by positivity : 0 ≤ 6*R) |
| 23 | nlinarith |
| 24 | have hlarge : flowRadius B R T (6*R) ≤ 70*w^2 := by |
| 25 | have h := mul_le_mul hleft hright (by positivity : 0 ≤ (1+B*T)*(6*R)+2) (by positivity : 0 ≤ 5*w) |
| 26 | simpa only [flowRadius] using h.trans_eq (by ring) |
| 27 | have hsmallR : flowRadius B R T R ≤ flowRadius B R T (6*R) := by |
| 28 | unfold flowRadius |
| 29 | gcongr |
| 30 | nlinarith |
| 31 | have hsq : 1 ≤ w^2 := by nlinarith |
| 32 | have h71 : 71*w^2 ≤ w^3 := by |
| 33 | have h := mul_le_mul_of_nonneg_right hw (sq_nonneg w) |
| 34 | nlinarith |
| 35 | have hb : 1+flowRadius B R T (6*R) ≤ w^3 := by nlinarith |
| 36 | exact ⟨(add_le_add le_rfl hsmallR).trans hb,hb⟩ |
| 37 | |
| 38 | private theorem physical_polynomial_bounds (K B R T C1 k ell w : ℝ) |
| 39 | (_hK : 0 ≤ K) (hB : 0 ≤ B) (hR : 0 ≤ R) (hT : 0 ≤ T) (hC1 : 0 ≤ C1) |
| 40 | (hk : 1 ≤ k) (hell : 0 < ell) (hw : 71 ≤ w) |
| 41 | (hKw : K ≤ w) (hRw : R ≤ w) (hTw : T ≤ w) (hCw : C1 ≤ w) |
| 42 | (hsmall : B*w ≤ 1) : |
| 43 | K*(T*B)*(1+flowRadius B R T R) ≤ B*w^5 ∧ |
| 44 | K*B*(1+flowRadius B R T R) ≤ B*w^5 ∧ |
| 45 | K*(C1+3*B^2*R)*(1+flowRadius B R T (6*R)) ≤ w^6 ∧ |
| 46 | ell⁻¹*(4*flowRadius B R T R*(1+k)) ≤ ell⁻¹*k*w^4 ∧ |
| 47 | ell⁻¹*(4*flowRadius B R T (6*R)*(1+k)) ≤ ell⁻¹*k*w^4 := by |
| 48 | have hw0 : 0 ≤ w := by linarith |
| 49 | have hB1 : B ≤ 1 := by |
| 50 | have h := mul_le_mul_of_nonneg_left (show 1 ≤ w by linarith) hB |
| 51 | nlinarith |
| 52 | have hBT : 0 ≤ T*B := mul_nonneg hT hB |
| 53 | obtain ⟨hv,ha⟩ := flow_radius_polynomial B R T w hB hR hT hw hRw hTw hsmall |
| 54 | have hVr : 0 ≤ flowRadius B R T R := by unfold flowRadius; positivity |
| 55 | have hAr : 0 ≤ flowRadius B R T (6*R) := by unfold flowRadius; positivity |
| 56 | have hd : K*(T*B)*(1+flowRadius B R T R) ≤ B*w^5 := by |
| 57 | calc |
| 58 | _ ≤ w*(w*B)*w^3 := by gcongr |
| 59 | _ = _ := by ring |
| 60 | have hvb : K*B*(1+flowRadius B R T R) ≤ B*w^5 := by |
| 61 | calc |
| 62 | _ ≤ w*B*w^3 := by gcongr |
| 63 | _ ≤ (w*B*w^3)*w := le_mul_of_one_le_right (by positivity) (by linarith) |
| 64 | _ = _ := by ring |
| 65 | have hb2 : B^2 ≤ 1 := by nlinarith |
| 66 | have hac : C1+3*B^2*R ≤ 4*w := by |
| 67 | have h := mul_le_mul_of_nonneg_right hb2 hR |
| 68 | nlinarith |
| 69 | have hab : K*(C1+3*B^2*R)*(1+flowRadius B R T (6*R)) ≤ w^6 := by |
| 70 | calc |
| 71 | _ ≤ w*(4*w)*w^3 := by gcongr |
| 72 | _ = 4*w^5 := by ring |
| 73 | _ ≤ w*w^5 := mul_le_mul_of_nonneg_right (by linarith) (pow_nonneg hw0 5) |
| 74 | _ = _ := by ring |
| 75 | have hradius (r : ℝ) (hr : 0 ≤ r) (hrw : 1+r ≤ w^3) : |
| 76 | ell⁻¹*(4*r*(1+k)) ≤ ell⁻¹*k*w^4 := by |
| 77 | have hk0 : 0 ≤ k := by linarith |
| 78 | have hi : 0 ≤ ell⁻¹ := inv_nonneg.mpr hell.le |
| 79 | have hrw' : r ≤ w^3 := by linarith |
| 80 | calc |
| 81 | _ ≤ ell⁻¹*(4*w^3*(2*k)) := by gcongr; linarith |
| 82 | _ = ell⁻¹*k*(8*w^3) := by ring |
| 83 | _ ≤ ell⁻¹*k*(w*w^3) := by gcongr; linarith |
| 84 | _ = _ := by ring |
| 85 | exact ⟨hd,hvb,hab,hradius _ hVr hv,hradius _ hAr ha⟩ |
| 86 | |
| 87 | theorem physical_bounds_of_power (ε η K k B R T C1 ell : ℝ) |
| 88 | (hη : 0 < η) (_hηq : η ≤ 1/4) (hηε : 6*η ≤ ε) |
| 89 | (hK : 0 ≤ K) (hB : 0 ≤ B) (hR : 0 ≤ R) (hT : 0 ≤ T) (hC1 : 0 ≤ C1) |
| 90 | (hk : 1 ≤ k) (hell : 0 < ell) |
| 91 | (hw : 71 ≤ k^η) (hKw : K ≤ k^η) (hRw : R ≤ k^η) |
| 92 | (hTw : T ≤ k^η) (hCw : C1 ≤ k^η) |
| 93 | (hroot : 2 ≤ k^(1/2-η)) (hsmall : B ≤ 2*k^(-(1/2 : ℝ))) : |
| 94 | K*(T*B)*(1+flowRadius B R T R) ≤ k^(-(1/2 : ℝ)+ε) ∧ |
| 95 | K*B*(1+flowRadius B R T R) ≤ k^(-(1/2 : ℝ)+ε) ∧ |
| 96 | K*(C1+3*B^2*R)*(1+flowRadius B R T (6*R)) ≤ k^ε ∧ |
| 97 | ell⁻¹*(4*flowRadius B R T R*(1+k)) ≤ ell⁻¹*k^(1+ε) ∧ |
| 98 | ell⁻¹*(4*flowRadius B R T (6*R)*(1+k)) ≤ ell⁻¹*k^(1+ε) := by |
| 99 | have hk0 : 0 < k := by linarith |
| 100 | have hw0 : 0 ≤ k^η := Real.rpow_nonneg hk0.le _ |
| 101 | have hBw : B*k^η ≤ 1 := by |
| 102 | have hp : 0 < k^(1/2-η) := Real.rpow_pos_of_pos hk0 _ |
| 103 | calc |
| 104 | _ ≤ (2*k^(-(1/2 : ℝ)))*k^η := mul_le_mul_of_nonneg_right hsmall hw0 |
| 105 | _ = 2/k^(1/2-η) := by |
| 106 | rw [mul_assoc, ← Real.rpow_add hk0] |
| 107 | have he : -(1/2 : ℝ)+η = -(1/2-η) := by ring |
| 108 | rw [he, Real.rpow_neg hk0.le] |
| 109 | ring |
| 110 | _ ≤ 1 := (div_le_one hp).mpr hroot |
| 111 | obtain ⟨hd,hv,ha,hr,hr1⟩ := physical_polynomial_bounds K B R T C1 k ell (k^η) |
| 112 | hK hB hR hT hC1 hk hell hw hKw hRw hTw hCw hBw |
| 113 | have h6 : (k^η)^6 ≤ k^ε := by |
| 114 | rw [← Real.rpow_mul_natCast hk0.le] |
| 115 | exact Real.rpow_le_rpow_of_exponent_le hk (by norm_num; nlinarith) |
| 116 | have hdisp : B*(k^η)^5 ≤ k^(-(1/2 : ℝ)+ε) := by |
| 117 | calc |
| 118 | _ ≤ (2*k^(-(1/2 : ℝ)))*(k^η)^5 := |
| 119 | mul_le_mul_of_nonneg_right hsmall (pow_nonneg hw0 5) |
| 120 | _ ≤ (k^η*k^(-(1/2 : ℝ)))*(k^η)^5 := by gcongr; linarith |
| 121 | _ = k^(-(1/2 : ℝ))*(k^η)^6 := by ring |
| 122 | _ ≤ k^(-(1/2 : ℝ))*k^ε := mul_le_mul_of_nonneg_left h6 (Real.rpow_nonneg hk0.le _) |
| 123 | _ = _ := (Real.rpow_add hk0 _ _).symm |
| 124 | have hrad : ell⁻¹*k*(k^η)^4 ≤ ell⁻¹*k^(1+ε) := by |
| 125 | have h4 : (k^η)^4 ≤ k^ε := by |
| 126 | rw [← Real.rpow_mul_natCast hk0.le] |
| 127 | exact Real.rpow_le_rpow_of_exponent_le hk (by norm_num; nlinarith) |
| 128 | calc |
| 129 | _ ≤ ell⁻¹*k*k^ε := mul_le_mul_of_nonneg_left h4 (by positivity) |
| 130 | _ = ell⁻¹*(k^(1 : ℝ)*k^ε) := by rw [Real.rpow_one]; ring |
| 131 | _ = _ := by rw [← Real.rpow_add hk0] |
| 132 | exact ⟨hd.trans hdisp,hv.trans hdisp,ha.trans h6,hr.trans hrad,hr1.trans hrad⟩ |
| 133 | |
| 134 | end EulerPacketGraphFlowFrequency |