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.SmoothFlowGevrey |
| 2 | import Euler.GevreyComposition |
| 3 | import Euler.GevreyFixedShift |
| 4 | |
| 5 | /-! Polynomial-radius bounds for the velocity and material acceleration |
| 6 | of the constructed flow. The second expression is literally |
| 7 | `(A₁ + D A · A) ∘ Φ`; identifying A₁ as the time derivative is a separate |
| 8 | qualitative chain rule, not an assumption about its size. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set |
| 13 | open scoped ContDiff BoundedContinuousFunction |
| 14 | |
| 15 | namespace EulerSmoothFlowGevrey |
| 16 | |
| 17 | open EulerSmoothBanachFlow EulerGevreyGeneratingDerivatives |
| 18 | EulerGevreyComposition EulerGevrey EulerOperatorGevreyCalculus |
| 19 | |
| 20 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 21 | (T : ℝ) (hT : 0 ≤ T) (A : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 22 | |
| 23 | private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] E) := inferInstance |
| 24 | private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] E) := inferInstance |
| 25 | private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] E)) := inferInstance |
| 26 | private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] E)) := inferInstance |
| 27 | |
| 28 | def flowRadius (B R T S : ℝ) : ℝ := (4*R+1)*((1+B*T)*S+2) |
| 29 | |
| 30 | omit [FiniteDimensional ℝ E] in |
| 31 | theorem field_jet_bound (B R : ℝ) |
| 32 | (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 33 | (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : |
| 34 | ‖iteratedFDeriv ℝ n (A.field t : E → E) x‖ ≤ B*R^n*(n.factorial : ℝ)^2 := by |
| 35 | rw [← A.jet_eq] |
| 36 | exact ((A.jet n t).norm_coe_le_norm x).trans |
| 37 | (((A.jet n).norm_coe_le_norm t).trans (hb n)) |
| 38 | |
| 39 | theorem forward_positive_bound (B R : ℝ) |
| 40 | (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) |
| 41 | (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 42 | (n : ℕ) (hn : 0 < n) (t : Icc (0 : ℝ) T) (x : E) : |
| 43 | ‖iteratedFDeriv ℝ n (fun y => (flowData T hT A).forward t y) x‖ ≤ |
| 44 | (1+B*T)*(4*R+1)^n*(n.factorial : ℝ)^2 := by |
| 45 | have he : (fun y => (flowData T hT A).forward t y) = id+displacement T hT A t := by |
| 46 | funext y |
| 47 | change (flowData T hT A).forward t y = y+displacement T hT A t y |
| 48 | rw [displacement_eq] |
| 49 | abel |
| 50 | rw [he, iteratedFDeriv_add_apply contDiffAt_id |
| 51 | ((displacement_contDiff T hT A t).contDiffAt.of_le (by simp))] |
| 52 | have hi : ‖iteratedFDeriv ℝ n (id : E → E) x‖ ≤ 1 := by |
| 53 | have h := norm_iteratedFDeriv_id_le n hn x |
| 54 | split_ifs at h <;> linarith |
| 55 | let W := (4*R+1)^n*(n.factorial : ℝ)^2 |
| 56 | have hfact : (1 : ℝ) ≤ n.factorial := by exact_mod_cast Nat.succ_le_of_lt (Nat.factorial_pos n) |
| 57 | have hW : 1 ≤ W := by |
| 58 | have hp : (1 : ℝ) ≤ (4*R+1)^n := one_le_pow₀ (by linarith) |
| 59 | have hf : (1 : ℝ) ≤ (n.factorial : ℝ)^2 := by nlinarith |
| 60 | calc |
| 61 | (1 : ℝ) = 1*1 := by ring |
| 62 | _ ≤ W := mul_le_mul hp hf (by norm_num) (by positivity) |
| 63 | have hdisp : ‖iteratedFDeriv ℝ n (displacement T hT A t) x‖ ≤ B*T*W := by |
| 64 | have htB : B*(t : ℝ) ≤ B*T := mul_le_mul_of_nonneg_left t.property.2 hB |
| 65 | have hp : (4*R)^n ≤ (4*R+1)^n := pow_le_pow_left₀ (by positivity) (by linarith) n |
| 66 | have hm := mul_le_mul htB hp (pow_nonneg (show 0 ≤ 4*R by positivity) n) (mul_nonneg hB hT) |
| 67 | have hs := mul_le_mul_of_nonneg_right hm (sq_nonneg (n.factorial : ℝ)) |
| 68 | exact (displacement_positive_bound T hT A B R hB hR hsmall hb n hn t t.property x).trans |
| 69 | (hs.trans_eq (by dsimp [W]; ring)) |
| 70 | calc |
| 71 | _ ≤ ‖iteratedFDeriv ℝ n (id : E → E) x‖+ |
| 72 | ‖iteratedFDeriv ℝ n (displacement T hT A t) x‖ := norm_add_le _ _ |
| 73 | _ ≤ 1+B*T*W := add_le_add hi hdisp |
| 74 | _ ≤ W+B*T*W := add_le_add hW le_rfl |
| 75 | _ = _ := by dsimp [W]; ring |
| 76 | |
| 77 | def materialVelocity (t : Icc (0 : ℝ) T) (x : E) : E := |
| 78 | A.field t ((flowData T hT A).forward t x) |
| 79 | |
| 80 | theorem materialVelocity_bound (B R : ℝ) |
| 81 | (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) |
| 82 | (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 83 | (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : |
| 84 | ‖iteratedFDeriv ℝ n (materialVelocity T hT A t) x‖ ≤ |
| 85 | B*(flowRadius B R T R)^n*(n.factorial : ℝ)^2 := by |
| 86 | apply norm_iteratedFDeriv_comp_gevrey |
| 87 | (fun y => (flowData T hT A).forward t y) (A.field t : E → E) |
| 88 | (forward_contDiff T hT A t) (A.smooth t) |
| 89 | B (1+B*T) (4*R+1) R hB (by positivity) (by positivity) hR.le |
| 90 | · intro j y |
| 91 | exact field_jet_bound T A B R hb j t y |
| 92 | · intro j hj y |
| 93 | exact forward_positive_bound T hT A B R hB hR hsmall hb j hj t y |
| 94 | |
| 95 | def accelerationField (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 96 | (t : Icc (0 : ℝ) T) (x : E) : E := |
| 97 | A₁.field t x + fderiv ℝ (A.field t : E → E) x (A.field t x) |
| 98 | |
| 99 | omit [FiniteDimensional ℝ E] in |
| 100 | theorem accelerationField_contDiff (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 101 | (t : Icc (0 : ℝ) T) : ContDiff ℝ ∞ (accelerationField T A A₁ t) := |
| 102 | (A₁.smooth t).add (((A.smooth t).fderiv_right (m := ∞) (by simp)).clm_apply (A.smooth t)) |
| 103 | |
| 104 | omit [FiniteDimensional ℝ E] in |
| 105 | theorem accelerationField_bound (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 106 | (B R B₁ R₁ : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hB₁ : 0 ≤ B₁) (hR₁ : 0 ≤ R₁) |
| 107 | (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 108 | (hb₁ : ∀ n, ‖A₁.jet n‖ ≤ B₁*R₁^n*(n.factorial : ℝ)^2) |
| 109 | (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : |
| 110 | ‖iteratedFDeriv ℝ n (accelerationField T A A₁ t) x‖ ≤ |
| 111 | (B₁+3*B^2*R)*majorant (4*R+R₁) 0 n := by |
| 112 | have hS : 0 ≤ 4*R+R₁ := by positivity |
| 113 | have hA (j : ℕ) (y : E) : ‖iteratedFDeriv ℝ j (A.field t : E → E) y‖ ≤ |
| 114 | B*majorant (4*R+R₁) 0 j := by |
| 115 | have hh := field_jet_bound T A B R hb j t y |
| 116 | apply hh.trans |
| 117 | rw [mul_assoc] |
| 118 | exact mul_le_mul_of_nonneg_left (majorant_radius_mono R (4*R+R₁) hR.le (by linarith) 0 j) hB |
| 119 | have hA₁ (j : ℕ) (y : E) : ‖iteratedFDeriv ℝ j (A₁.field t : E → E) y‖ ≤ |
| 120 | B₁*majorant (4*R+R₁) 0 j := by |
| 121 | have hh := field_jet_bound T A₁ B₁ R₁ hb₁ j t y |
| 122 | apply hh.trans |
| 123 | rw [mul_assoc] |
| 124 | exact mul_le_mul_of_nonneg_left (majorant_radius_mono R₁ (4*R+R₁) hR₁ (by linarith) 0 j) hB₁ |
| 125 | have hDA (j : ℕ) (y : E) : ‖iteratedFDeriv ℝ j (fderiv ℝ (A.field t : E → E)) y‖ ≤ |
| 126 | (B*R)*majorant (4*R+R₁) 0 j := by |
| 127 | rw [norm_iteratedFDeriv_fderiv] |
| 128 | have hh := field_jet_bound T A B R hb (j+1) t y |
| 129 | calc |
| 130 | _ ≤ B*majorant R 1 j := by simpa only [majorant, mul_assoc] using hh |
| 131 | _ ≤ B*(R*majorant (4*R) 0 j) := |
| 132 | mul_le_mul_of_nonneg_left (majorant_one_le_radius_four R hR.le j) hB |
| 133 | _ ≤ (B*R)*majorant (4*R+R₁) 0 j := by |
| 134 | rw [← mul_assoc] |
| 135 | exact mul_le_mul_of_nonneg_left |
| 136 | (majorant_radius_mono (4*R) (4*R+R₁) (by positivity) (by linarith) 0 j) |
| 137 | (mul_nonneg hB hR.le) |
| 138 | have hprod := clm_apply_bound (fderiv ℝ (A.field t : E → E)) (A.field t) |
| 139 | ((A.smooth t).fderiv_right (m := ∞) (by simp)) (A.smooth t) |
| 140 | (4*R+R₁) (B*R) B hS (mul_nonneg hB hR.le) hB 0 0 hDA hA |
| 141 | have he := add_bound (A₁.field t : E → E) |
| 142 | (fun y => fderiv ℝ (A.field t : E → E) y (A.field t y)) |
| 143 | (A₁.smooth t) (((A.smooth t).fderiv_right (m := ∞) (by simp)).clm_apply (A.smooth t)) |
| 144 | (4*R+R₁) B₁ (3*(B*R)*B) 0 hA₁ hprod n x |
| 145 | have hconst : B₁+3*(B*R)*B = B₁+3*B^2*R := by ring |
| 146 | change ‖iteratedFDeriv ℝ n (fun y => A₁.field t y+ |
| 147 | fderiv ℝ (A.field t : E → E) y (A.field t y)) x‖ ≤ _ |
| 148 | simpa only [hconst] using he |
| 149 | |
| 150 | def materialAcceleration (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 151 | (t : Icc (0 : ℝ) T) (x : E) : E := |
| 152 | accelerationField T A A₁ t ((flowData T hT A).forward t x) |
| 153 | |
| 154 | theorem materialAcceleration_bound (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 155 | (B R B₁ R₁ : ℝ) (hB : 0 ≤ B) (hR : 0 < R) (hB₁ : 0 ≤ B₁) (hR₁ : 0 ≤ R₁) |
| 156 | (hsmall : B*R*T ≤ 1/8) |
| 157 | (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 158 | (hb₁ : ∀ n, ‖A₁.jet n‖ ≤ B₁*R₁^n*(n.factorial : ℝ)^2) |
| 159 | (n : ℕ) (t : Icc (0 : ℝ) T) (x : E) : |
| 160 | ‖iteratedFDeriv ℝ n (materialAcceleration T hT A A₁ t) x‖ ≤ |
| 161 | (B₁+3*B^2*R)*(flowRadius B R T (4*R+R₁))^n*(n.factorial : ℝ)^2 := by |
| 162 | apply norm_iteratedFDeriv_comp_gevrey |
| 163 | (fun y => (flowData T hT A).forward t y) (accelerationField T A A₁ t) |
| 164 | (forward_contDiff T hT A t) (accelerationField_contDiff T A A₁ t) |
| 165 | (B₁+3*B^2*R) (1+B*T) (4*R+1) (4*R+R₁) |
| 166 | (by positivity) (by positivity) (by positivity) (by positivity) |
| 167 | · intro j y |
| 168 | simpa only [majorant, Nat.add_zero, mul_assoc] using |
| 169 | accelerationField_bound T A A₁ B R B₁ R₁ hB hR hB₁ hR₁ hb hb₁ j t y |
| 170 | · intro j hj y |
| 171 | exact forward_positive_bound T hT A B R hB hR hsmall hb j hj t y |
| 172 | |
| 173 | end EulerSmoothFlowGevrey |