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.LinearDuhamel |
| 2 | |
| 3 | /-! |
| 4 | # Construction of a homogeneous fundamental solution |
| 5 | |
| 6 | Continuous bounded coefficients in a real Banach algebra have actual forward |
| 7 | and inverse fundamental paths. Existence is the previously proved global |
| 8 | Lipschitz Picard theorem; both inverse identities follow by differentiation |
| 9 | and ODE uniqueness. This result is qualitative. No exponential estimate from |
| 10 | this construction is used in the later profile estimates. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace EulerLinearFundamentalExistence |
| 16 | |
| 17 | open Set ContinuousLinearMap EulerVolterraConvolution EulerPacketExistence |
| 18 | |
| 19 | variable {A : Type*} [NormedRing A] [NormedAlgebra ℝ A] [CompleteSpace A] |
| 20 | (T : ℝ) (hT : 0 ≤ T) (B : C(Icc (0 : ℝ) T,A)) |
| 21 | |
| 22 | /-- A continuous coefficient field has two-sided inverse fundamental paths. -/ |
| 23 | theorem exists_fundamental : ∃ Φ Ψ : ℝ → A, |
| 24 | Φ 0 = 1 ∧ Ψ 0 = 1 ∧ |
| 25 | (∀ t ∈ Icc (0 : ℝ) T, HasDerivAt Φ (extendPath T hT B t * Φ t) t) ∧ |
| 26 | (∀ t ∈ Icc (0 : ℝ) T, HasDerivAt Ψ (-(Ψ t * extendPath T hT B t)) t) ∧ |
| 27 | (∀ t ∈ Icc (0 : ℝ) T, Φ t * Ψ t = 1 ∧ Ψ t * Φ t = 1) := by |
| 28 | let b := extendPath T hT B |
| 29 | have hb : Continuous b := extendPath_continuous T hT B |
| 30 | have hnorm (t : ℝ) : ‖b t‖ ≤ ‖B‖ := B.norm_coe_le_norm _ |
| 31 | have hcL : Continuous (Function.uncurry (fun (t : ℝ) (x : A) => b t*x)) := |
| 32 | (hb.comp continuous_fst).mul continuous_snd |
| 33 | have hcR : Continuous (Function.uncurry (fun (t : ℝ) (x : A) => -(x*b t))) := |
| 34 | (continuous_snd.mul (hb.comp continuous_fst)).neg |
| 35 | have hLipL (t : ℝ) : LipschitzWith ‖B‖₊ (fun x : A => b t*x) := by |
| 36 | apply LipschitzWith.of_dist_le_mul |
| 37 | intro x y |
| 38 | rw [dist_eq_norm, dist_eq_norm, ← mul_sub] |
| 39 | exact (norm_mul_le _ _).trans (mul_le_mul_of_nonneg_right (hnorm t) (norm_nonneg _)) |
| 40 | have hLipR (t : ℝ) : LipschitzWith ‖B‖₊ (fun x : A => -(x*b t)) := by |
| 41 | apply LipschitzWith.of_dist_le_mul |
| 42 | intro x y |
| 43 | rw [dist_neg_neg, dist_eq_norm, dist_eq_norm, ← sub_mul] |
| 44 | exact (norm_mul_le _ _).trans |
| 45 | ((mul_le_mul_of_nonneg_left (hnorm t) (norm_nonneg (x-y))).trans_eq (mul_comm _ _)) |
| 46 | obtain ⟨Φ,hΦ0,hΦ⟩ := exists_solution_on_compact_interval |
| 47 | (⟨0,le_rfl,hT⟩ : Icc (0 : ℝ) T) hcL hLipL (1 : A) |
| 48 | obtain ⟨Ψ,hΨ0,hΨ⟩ := exists_solution_on_compact_interval |
| 49 | (⟨0,le_rfl,hT⟩ : Icc (0 : ℝ) T) hcR hLipR (1 : A) |
| 50 | change Φ 0 = 1 at hΦ0 |
| 51 | change Ψ 0 = 1 at hΨ0 |
| 52 | have hcΦ : ContinuousOn Φ (Icc (0 : ℝ) T) := fun t ht => (hΦ t ht).continuousAt.continuousWithinAt |
| 53 | have hcΨ : ContinuousOn Ψ (Icc (0 : ℝ) T) := fun t ht => (hΨ t ht).continuousAt.continuousWithinAt |
| 54 | have hback (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : Ψ t*Φ t = 1 := by |
| 55 | have hd (s : ℝ) (hs : s ∈ Icc (0 : ℝ) T) : |
| 56 | HasDerivWithinAt (fun r => Ψ r*Φ r) 0 (Icc (0 : ℝ) T) s := by |
| 57 | have hh := ((hΨ s hs).mul (hΦ s hs)).hasDerivWithinAt (s := Icc (0 : ℝ) T) |
| 58 | convert hh using 1 |
| 59 | all_goals first | rfl | simp only [neg_mul, mul_assoc, neg_add_cancel] |
| 60 | have hbound := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (C := 0) hd |
| 61 | (fun s hs => by simp) (convex_Icc (0 : ℝ) T) |
| 62 | (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩) ht |
| 63 | simpa only [zero_mul, norm_le_zero_iff, sub_eq_zero, hΦ0, hΨ0, one_mul] using hbound |
| 64 | have hLipC (t : ℝ) : LipschitzWith (2*‖B‖₊) (fun x : A => b t*x-x*b t) := by |
| 65 | apply LipschitzWith.of_dist_le_mul |
| 66 | intro x y |
| 67 | rw [dist_eq_norm, dist_eq_norm] |
| 68 | have he : (b t*x-x*b t)-(b t*y-y*b t) = b t*(x-y)-(x-y)*b t := by noncomm_ring |
| 69 | rw [he] |
| 70 | calc |
| 71 | _ ≤ ‖b t*(x-y)‖ + ‖(x-y)*b t‖ := norm_sub_le _ _ |
| 72 | _ ≤ ‖b t‖*‖x-y‖ + ‖x-y‖*‖b t‖ := add_le_add (norm_mul_le _ _) (norm_mul_le _ _) |
| 73 | _ ≤ ‖B‖*‖x-y‖ + ‖x-y‖*‖B‖ := add_le_add |
| 74 | (mul_le_mul_of_nonneg_right (hnorm t) (norm_nonneg _)) |
| 75 | (mul_le_mul_of_nonneg_left (hnorm t) (norm_nonneg _)) |
| 76 | _ = _ := by simp only [NNReal.coe_mul, NNReal.coe_ofNat, coe_nnnorm]; ring |
| 77 | have hfront : EqOn (fun t => Φ t*Ψ t) (fun _ => (1 : A)) (Icc (0 : ℝ) T) := by |
| 78 | apply ODE_solution_unique_of_mem_Icc_right |
| 79 | (v := fun t x => b t*x-x*b t) (s := fun _ => Set.univ) |
| 80 | (fun t _ => (hLipC t).lipschitzOnWith) |
| 81 | (hcΦ.mul hcΨ) ?_ (fun _ _ => mem_univ _) continuousOn_const ?_ |
| 82 | (fun _ _ => mem_univ _) (by change Φ 0*Ψ 0 = 1; rw [hΦ0,hΨ0,one_mul]) |
| 83 | · intro t ht |
| 84 | have hh := ((hΦ t ⟨ht.1,ht.2.le⟩).mul (hΨ t ⟨ht.1,ht.2.le⟩)).hasDerivWithinAt (s := Ici t) |
| 85 | convert hh using 1 |
| 86 | all_goals first | rfl | simp only [Pi.mul_apply, mul_neg, mul_assoc, sub_eq_add_neg] |
| 87 | · intro t _ |
| 88 | simpa only [mul_one, one_mul, sub_self] using |
| 89 | (hasDerivAt_const t (1 : A)).hasDerivWithinAt (s := Ici t) |
| 90 | exact ⟨Φ,Ψ,hΦ0,hΨ0,hΦ,hΨ,fun t ht => ⟨hfront ht,hback t ht⟩⟩ |
| 91 | |
| 92 | end EulerLinearFundamentalExistence |