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 NavierStokes.SmoothPathFamily |
| 2 | |
| 3 | /-! # Smooth parameter families on a convex closed domain |
| 4 | |
| 5 | The parameter set need not be open. In particular, all mixed one-sided jets |
| 6 | at a slow-time endpoint pass to the actual continuous-path Banach space. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace NavierStokes.WithinPathFamily |
| 12 | |
| 13 | open Set Filter Function Metric Asymptotics |
| 14 | open scoped Topology ContDiff |
| 15 | open SmoothPathFamily |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {P E : Type u} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 20 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | variable {a b : ℝ} |
| 22 | |
| 23 | /-- Uniform differentiability of continuous paths using only derivatives |
| 24 | within the convex parameter domain. -/ |
| 25 | theorem hasFDerivWithinAt_pathFamily {U : Set P} (hU : Convex ℝ U) |
| 26 | (F : P × ℝ → E) (G : P × ℝ → P →L[ℝ] E) |
| 27 | (hF : ContinuousOn F (U ×ˢ Icc a b)) |
| 28 | (hG : ContinuousOn G (U ×ˢ Icc a b)) |
| 29 | (hderiv : ∀ p ∈ U, ∀ t : Icc a b, |
| 30 | HasFDerivWithinAt (fun q => F (q, t)) (G (p, t)) U p) |
| 31 | {p : P} (hp : p ∈ U) : |
| 32 | HasFDerivWithinAt (pathFamily (a := a) (b := b) F) |
| 33 | (flipPath (P := P) (E := E) (pathFamily (a := a) (b := b) G p)) U p := by |
| 34 | rw [hasFDerivWithinAt_iff_isLittleO] |
| 35 | apply isLittleO_iff.mpr |
| 36 | intro ε hε |
| 37 | have hgc := continuousOn_pathFamily hG p hp |
| 38 | have hsmall : ∀ᶠ q in 𝓝[U] p, |
| 39 | ‖pathFamily (a := a) (b := b) G q - pathFamily G p‖ < ε := by |
| 40 | simpa only [dist_eq_norm] using Metric.tendsto_nhds.mp hgc ε hε |
| 41 | obtain ⟨δ, hδ, hδmem⟩ := Metric.mem_nhdsWithin_iff.mp hsmall |
| 42 | filter_upwards [mem_nhdsWithin_of_mem_nhds (Metric.ball_mem_nhds p hδ), |
| 43 | self_mem_nhdsWithin] with q hq hqU |
| 44 | apply (ContinuousMap.norm_le _ (mul_nonneg hε.le (norm_nonneg (q - p)))).mpr |
| 45 | intro t |
| 46 | simp only [ContinuousMap.sub_apply, flipPath_apply, |
| 47 | pathFamily_apply F q (slice_continuous hF hqU), |
| 48 | pathFamily_apply F p (slice_continuous hF hp), |
| 49 | pathFamily_apply G p (slice_continuous hG hp)] |
| 50 | have hd : ∀ r ∈ ball p δ ∩ U, |
| 51 | HasFDerivWithinAt (fun r => F (r, t) - G (p, t) r) |
| 52 | (G (r, t) - G (p, t)) (ball p δ ∩ U) r := by |
| 53 | intro r hr |
| 54 | exact ((hderiv r hr.2 t).sub (G (p, t)).hasFDerivAt.hasFDerivWithinAt).mono |
| 55 | inter_subset_right |
| 56 | have hb : ∀ r ∈ ball p δ ∩ U, ‖G (r, t) - G (p, t)‖ ≤ ε := by |
| 57 | intro r hr |
| 58 | calc |
| 59 | _ = ‖(pathFamily G r - pathFamily G p : C(Icc a b, P →L[ℝ] E)) t‖ := by |
| 60 | simp only [ContinuousMap.sub_apply, |
| 61 | pathFamily_apply G r (slice_continuous hG hr.2), |
| 62 | pathFamily_apply G p (slice_continuous hG hp)] |
| 63 | _ ≤ ‖pathFamily (a := a) (b := b) G r - pathFamily G p‖ := |
| 64 | ContinuousMap.norm_coe_le_norm _ t |
| 65 | _ ≤ ε := (hδmem hr).le |
| 66 | have hh := ((convex_ball p δ).inter hU).norm_image_sub_le_of_norm_hasFDerivWithin_le |
| 67 | hd hb ⟨mem_ball_self hδ, hp⟩ ⟨hq, hqU⟩ |
| 68 | have he : F (q, t) - F (p, t) - G (p, t) (q - p) = |
| 69 | (F (q, t) - G (p, t) q) - (F (p, t) - G (p, t) p) := by |
| 70 | rw [map_sub] |
| 71 | abel |
| 72 | rw [he] |
| 73 | exact hh |
| 74 | |
| 75 | noncomputable def parameterDerivativeWithin (U : Set P) (V : Set ℝ) |
| 76 | (F : P × ℝ → E) (z : P × ℝ) : P →L[ℝ] E := |
| 77 | (fderivWithin ℝ F (U ×ˢ V) z).comp (ContinuousLinearMap.inl ℝ P ℝ) |
| 78 | |
| 79 | /-- Every finite order of genuine joint within regularity passes to the |
| 80 | path space. No extension across the parameter boundary is an assumption. -/ |
| 81 | theorem contDiffOn_pathFamily_nat (U : Set P) (V : Set ℝ) |
| 82 | (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) (hv : UniqueDiffOn ℝ V) |
| 83 | (hI : Icc a b ⊆ V) (n : ℕ) : |
| 84 | ∀ {W : Type u} [NormedAddCommGroup W] [NormedSpace ℝ W] (F : P × ℝ → W), |
| 85 | ContDiffOn ℝ n F (U ×ˢ V) → |
| 86 | ContDiffOn ℝ n (pathFamily (a := a) (b := b) F) U := by |
| 87 | induction n with |
| 88 | | zero => |
| 89 | intro W _ _ F hF |
| 90 | exact contDiffOn_zero.mpr (continuousOn_pathFamily |
| 91 | (hF.continuousOn.mono (prod_mono Subset.rfl hI))) |
| 92 | | succ n ih => |
| 93 | intro W _ _ F hF |
| 94 | have hFs : ContDiffOn ℝ ((n : WithTop ℕ∞) + 1) F (U ×ˢ V) := by |
| 95 | simpa only [Nat.cast_add, Nat.cast_one] using hF |
| 96 | have hdata := (contDiffOn_succ_iff_fderivWithin (hu.prod hv)).mp hFs |
| 97 | have hD : ContDiffOn ℝ n (parameterDerivativeWithin U V F) (U ×ˢ V) := |
| 98 | hdata.2.2.clm_comp contDiffOn_const |
| 99 | have hd : ∀ p ∈ U, HasFDerivWithinAt (pathFamily (a := a) (b := b) F) |
| 100 | (flipPath (P := P) (E := W) |
| 101 | (pathFamily (a := a) (b := b) (parameterDerivativeWithin U V F) p)) U p := by |
| 102 | intro p hp |
| 103 | apply hasFDerivWithinAt_pathFamily hU F (parameterDerivativeWithin U V F) |
| 104 | (hF.continuousOn.mono (prod_mono Subset.rfl hI)) |
| 105 | (hD.continuousOn.mono (prod_mono Subset.rfl hI)) _ hp |
| 106 | intro q hq t |
| 107 | change HasFDerivWithinAt (fun r => F (r, (t : ℝ))) |
| 108 | ((fderivWithin ℝ F (U ×ˢ V) (q, t)).comp |
| 109 | (ContinuousLinearMap.inl ℝ P ℝ)) U q |
| 110 | exact (hdata.1 (q, (t : ℝ)) ⟨hq, hI t.2⟩).hasFDerivWithinAt.comp q |
| 111 | ((hasFDerivAt_prodMk_left q (t : ℝ)).hasFDerivWithinAt (s := U)) |
| 112 | (show MapsTo (fun r : P => (r, (t : ℝ))) U (U ×ˢ V) from |
| 113 | fun r hr => ⟨hr, hI t.2⟩) |
| 114 | have hpathD := ih (parameterDerivativeWithin U V F) hD |
| 115 | let L : C(Icc a b, P →L[ℝ] W) →L[ℝ] P →L[ℝ] C(Icc a b, W) := |
| 116 | flipPath (P := P) (E := W) (a := a) (b := b) |
| 117 | have hL : ContDiff ℝ (n : WithTop ℕ∞) L := |
| 118 | ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := n) |
| 119 | (E := C(Icc a b, P →L[ℝ] W)) (F := P →L[ℝ] C(Icc a b, W)) L |
| 120 | have hflip : ContDiffOn ℝ n |
| 121 | (fun p => flipPath (P := P) (E := W) (a := a) (b := b) |
| 122 | (pathFamily (a := a) (b := b) (parameterDerivativeWithin U V F) p)) U := |
| 123 | hL.comp_contDiffOn hpathD |
| 124 | have hh : ContDiffOn ℝ ((n : WithTop ℕ∞) + 1) |
| 125 | (pathFamily (a := a) (b := b) F) U := by |
| 126 | apply (contDiffOn_succ_iff_hasFDerivWithinAt_of_uniqueDiffOn hu).mpr |
| 127 | refine ⟨?_, _, hflip, hd⟩ |
| 128 | intro hω |
| 129 | exact (WithTop.coe_ne_top hω).elim |
| 130 | simpa only [Nat.cast_add, Nat.cast_one] using hh |
| 131 | |
| 132 | theorem contDiffOn_pathFamily (U : Set P) (V : Set ℝ) |
| 133 | (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) (hv : UniqueDiffOn ℝ V) |
| 134 | (hI : Icc a b ⊆ V) (F : P × ℝ → E) |
| 135 | (hF : ContDiffOn ℝ ∞ F (U ×ˢ V)) : |
| 136 | ContDiffOn ℝ ∞ (pathFamily (a := a) (b := b) F) U := by |
| 137 | apply contDiffOn_infty.mpr |
| 138 | intro n |
| 139 | exact contDiffOn_pathFamily_nat U V hU hu hv hI n F |
| 140 | (hF.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl n)) |
| 141 | |
| 142 | end NavierStokes.WithinPathFamily |