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.EulerProof |
| 2 | |
| 3 | /-! Local boundedness, continuity, and differentiation derived from an exact operator resolvent identity. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerResolventCalculus |
| 8 | |
| 9 | open scoped Topology |
| 10 | |
| 11 | variable {R : Type*} [NormedRing R] |
| 12 | |
| 13 | /-- An exact resolvent identity gives a local inverse bound without assuming a uniform inverse estimate. -/ |
| 14 | theorem local_norm_bound (P Q M N : R) (hres : Q - P = Q * ((M - N) * P)) |
| 15 | (hsmall : ‖M - N‖ * ‖P‖ ≤ 1 / 2) : ‖Q‖ ≤ 2 * ‖P‖ := by |
| 16 | have hresnorm : ‖Q - P‖ ≤ ‖Q‖ * (‖M - N‖ * ‖P‖) := by |
| 17 | rw [hres] |
| 18 | exact (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_left (norm_mul_le _ _) (norm_nonneg Q)) |
| 19 | have hhalf : ‖Q - P‖ ≤ ‖Q‖ / 2 := |
| 20 | hresnorm.trans ((mul_le_mul_of_nonneg_left hsmall (norm_nonneg Q)).trans_eq (by ring)) |
| 21 | have htri : ‖Q‖ ≤ ‖Q - P‖ + ‖P‖ := by |
| 22 | calc |
| 23 | ‖Q‖ = ‖Q - P + P‖ := by rw [sub_add_cancel] |
| 24 | _ ≤ _ := norm_add_le _ _ |
| 25 | linarith |
| 26 | |
| 27 | /-- The exact resolvent identity yields a local Lipschitz estimate using only the reference inverse norm. -/ |
| 28 | theorem local_difference_bound (P Q M N : R) (hres : Q - P = Q * ((M - N) * P)) |
| 29 | (hsmall : ‖M - N‖ * ‖P‖ ≤ 1 / 2) : |
| 30 | ‖Q - P‖ ≤ (2 * ‖P‖ ^ 2) * ‖M - N‖ := by |
| 31 | have hQ := local_norm_bound P Q M N hres hsmall |
| 32 | rw [hres] |
| 33 | calc |
| 34 | ‖Q * ((M - N) * P)‖ ≤ ‖Q‖ * (‖M - N‖ * ‖P‖) := |
| 35 | (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_left (norm_mul_le _ _) (norm_nonneg Q)) |
| 36 | _ ≤ (2 * ‖P‖) * (‖M - N‖ * ‖P‖) := |
| 37 | mul_le_mul_of_nonneg_right hQ (mul_nonneg (norm_nonneg _) (norm_nonneg P)) |
| 38 | _ = _ := by ring |
| 39 | |
| 40 | /-- Continuity of the coefficient operator implies continuity of actual resolvents, with no separate inverse-continuity assumption. -/ |
| 41 | theorem continuousAt_of_resolvent {α : Type*} [TopologicalSpace α] (P M : α → R) |
| 42 | (hres : ∀ s t, P s - P t = P s * ((M t - M s) * P t)) (t : α) |
| 43 | (hM : ContinuousAt M t) : ContinuousAt P t := by |
| 44 | have hdelta : Filter.Tendsto (fun s => ‖M t - M s‖) (𝓝 t) (𝓝 0) := by |
| 45 | simpa only [sub_self, norm_zero] using (hM.const_sub (M t)).norm |
| 46 | have hsmall : ∀ᶠ s in 𝓝 t, ‖M t - M s‖ * ‖P t‖ ≤ 1 / 2 := by |
| 47 | have hlim : Filter.Tendsto (fun s => ‖M t - M s‖ * ‖P t‖) (𝓝 t) (𝓝 0) := by |
| 48 | simpa only [zero_mul] using hdelta.mul_const ‖P t‖ |
| 49 | exact (hlim.eventually (Iio_mem_nhds (by norm_num : (0 : ℝ) < 1 / 2))).mono fun _ h => h.le |
| 50 | have hbound : ∀ᶠ s in 𝓝 t, ‖P s - P t‖ ≤ (2 * ‖P t‖ ^ 2) * ‖M t - M s‖ := |
| 51 | hsmall.mono fun s hs => local_difference_bound (P t) (P s) (M t) (M s) (hres s t) hs |
| 52 | have hlim : Filter.Tendsto (fun s => (2 * ‖P t‖ ^ 2) * ‖M t - M s‖) (𝓝 t) (𝓝 0) := by |
| 53 | simpa only [mul_zero] using hdelta.const_mul (2 * ‖P t‖ ^ 2) |
| 54 | rw [ContinuousAt, tendsto_iff_norm_sub_tendsto_zero] |
| 55 | exact squeeze_zero' (Filter.Eventually.of_forall fun _ => norm_nonneg _) hbound hlim |
| 56 | |
| 57 | variable [NormedAlgebra ℝ R] |
| 58 | |
| 59 | /-- Differentiating the actual resolvent identity gives the inverse derivative, after continuity has been proved from the same identity. -/ |
| 60 | theorem hasDerivAt_of_resolvent (P M : ℝ → R) |
| 61 | (hres : ∀ s t, P s - P t = P s * ((M t - M s) * P t)) |
| 62 | (t : ℝ) (M' : R) (hM : HasDerivAt M M' t) : |
| 63 | HasDerivAt P (-(P t * (M' * P t))) t := by |
| 64 | have hP := continuousAt_of_resolvent P M hres t hM.continuousAt |
| 65 | have hshift : Filter.Tendsto (fun r => P (t + r)) (𝓝[≠] 0) (𝓝 (P t)) := by |
| 66 | have h : Filter.Tendsto (fun r => P (t + r)) (𝓝 (0 : ℝ)) (𝓝 (P t)) := by |
| 67 | have hadd : Filter.Tendsto (fun r : ℝ => t + r) (𝓝 (0 : ℝ)) (𝓝 t) := by |
| 68 | simpa only [add_zero, id_eq] using (tendsto_const_nhds.add (Filter.tendsto_id : Filter.Tendsto id (𝓝 (0 : ℝ)) (𝓝 0))) |
| 69 | exact hP.tendsto.comp hadd |
| 70 | exact h.mono_left nhdsWithin_le_nhds |
| 71 | have hneg : Filter.Tendsto (fun r : ℝ => r⁻¹ • (M t - M (t + r))) (𝓝[≠] 0) (𝓝 (-M')) := by |
| 72 | simpa only [← smul_neg, neg_sub] using hM.tendsto_slope_zero.neg |
| 73 | have hlim : Filter.Tendsto (fun r : ℝ => P (t + r) * ((r⁻¹ • (M t - M (t + r))) * P t)) |
| 74 | (𝓝[≠] 0) (𝓝 (P t * ((-M') * P t))) := hshift.mul (hneg.mul tendsto_const_nhds) |
| 75 | apply hasDerivAt_iff_tendsto_slope_zero.mpr |
| 76 | have he : (fun r : ℝ => r⁻¹ • (P (t + r) - P t)) = |
| 77 | fun r : ℝ => P (t + r) * ((r⁻¹ • (M t - M (t + r))) * P t) := by |
| 78 | funext r |
| 79 | rw [hres] |
| 80 | simp only [smul_mul_assoc, mul_smul_comm] |
| 81 | rw [he] |
| 82 | simpa only [neg_mul, mul_neg] using hlim |
| 83 | |
| 84 | end EulerResolventCalculus |