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.SmoothTimeField |
| 2 | import Euler.CompactSupportBoundedPath |
| 3 | import Mathlib.Analysis.Calculus.ContDiff.Comp |
| 4 | import Mathlib.Analysis.Calculus.TangentCone.Prod |
| 5 | |
| 6 | /-! Jointly smooth spatially compact families define smooth time fields. |
| 7 | The compact support is common to the time slices, so compact joint continuity |
| 8 | upgrades to continuity in the uniform spatial norm at every derivative order. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | open Set Filter |
| 13 | open scoped ContDiff BoundedContinuousFunction Topology |
| 14 | |
| 15 | |
| 16 | namespace EulerCompactSmoothTimeField |
| 17 | |
| 18 | variable {P E V : Type} |
| 19 | [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 20 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 22 | |
| 23 | /-- Taking a spatial derivative preserves joint smoothness on an arbitrary |
| 24 | parameter set. Only the spatial domain needs unique derivatives. -/ |
| 25 | theorem contDiffOn_spatial_fderiv {s : Set P} {u : P × E → V} |
| 26 | (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) : |
| 27 | ContDiffOn ℝ ∞ (fun z : P × E => fderiv ℝ (fun x => u (z.1, x)) z.2) |
| 28 | (s ×ˢ univ) := by |
| 29 | intro z hz |
| 30 | have ha : ContDiffOn ℝ ∞ |
| 31 | (fun w : (P × E) × E => u (w.1.1, w.2)) |
| 32 | ((s ×ˢ univ) ×ˢ univ) := |
| 33 | hu.comp (contDiffOn_fst.fst.prodMk contDiffOn_snd) |
| 34 | (fun w hw => ⟨hw.1.1, mem_univ _⟩) |
| 35 | have hb := (ha (z, z.2) ⟨hz, mem_univ _⟩).fderivWithin |
| 36 | (f := fun (w : P × E) (x : E) => u (w.1, x)) |
| 37 | contDiffWithinAt_snd uniqueDiffOn_univ (m := ∞) (by simp) hz |
| 38 | (fun _ _ => mem_univ _) |
| 39 | simpa only [fderivWithin_univ] using hb |
| 40 | |
| 41 | /-- Every actual spatial jet is jointly smooth, including at the boundary of |
| 42 | the parameter set. -/ |
| 43 | theorem contDiffOn_spatial_jet {s : Set P} {u : P × E → V} |
| 44 | (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) (n : ℕ) : |
| 45 | ContDiffOn ℝ ∞ |
| 46 | (fun z : P × E => iteratedFDeriv ℝ n (fun x => u (z.1, x)) z.2) |
| 47 | (s ×ˢ univ) := by |
| 48 | induction n with |
| 49 | | zero => |
| 50 | simpa [iteratedFDeriv_zero_eq_comp, Function.comp_def] using |
| 51 | (continuousMultilinearCurryFin0 ℝ E V).symm.toContinuousLinearEquiv.contDiff.contDiffOn.comp |
| 52 | hu (mapsTo_univ _ _) |
| 53 | | succ n ih => |
| 54 | simp only [iteratedFDeriv_succ_eq_comp_left, Function.comp_def] |
| 55 | exact (continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (n + 1) => E) V).symm.toContinuousLinearEquiv.contDiff.contDiffOn.comp |
| 56 | (contDiffOn_spatial_fderiv ih) (mapsTo_univ _ _) |
| 57 | |
| 58 | end EulerCompactSmoothTimeField |
| 59 | |
| 60 | namespace SmoothTimeField |
| 61 | |
| 62 | variable {K L E V : Type} [TopologicalSpace K] [CompactSpace K] |
| 63 | [TopologicalSpace L] [CompactSpace L] |
| 64 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 65 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 66 | |
| 67 | /-- Pulling back time by a continuous map preserves all uniform spatial jets. -/ |
| 68 | def reparametrize (A : SmoothTimeField K E V) (r : C(L, K)) : SmoothTimeField L E V where |
| 69 | field := A.field.comp r |
| 70 | smooth t := A.smooth (r t) |
| 71 | jet n := (A.jet n).comp r |
| 72 | jet_eq n t x := A.jet_eq n (r t) x |
| 73 | |
| 74 | @[simp] theorem reparametrize_apply (A : SmoothTimeField K E V) (r : C(L, K)) |
| 75 | (t : L) (x : E) : (A.reparametrize r).field t x = A.field (r t) x := rfl |
| 76 | |
| 77 | @[simp] theorem reparametrize_jet_apply (A : SmoothTimeField K E V) (r : C(L, K)) |
| 78 | (n : ℕ) (t : L) (x : E) : (A.reparametrize r).jet n t x = A.jet n (r t) x := rfl |
| 79 | |
| 80 | end SmoothTimeField |
| 81 | |
| 82 | namespace SmoothTimeField |
| 83 | |
| 84 | variable {A E V : Type} [TopologicalSpace A] [CompactSpace A] |
| 85 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 86 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 87 | |
| 88 | private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance |
| 89 | private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance |
| 90 | private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 91 | private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance |
| 92 | |
| 93 | /-- Continuous spatial jets with one common compact support yield a bounded |
| 94 | smooth coefficient path. The support condition on derivatives is derived. -/ |
| 95 | def ofCompactSupportJets (u : A × E → V) (hu : Continuous u) |
| 96 | (hsmooth : ∀ t, ContDiff ℝ ∞ (fun x => u (t, x))) |
| 97 | (hjet : ∀ n : ℕ, Continuous |
| 98 | (fun z : A × E => iteratedFDeriv ℝ n (fun x => u (z.1, x)) z.2)) |
| 99 | (K : Set E) (hK : IsCompact K) |
| 100 | (hsupp : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) : SmoothTimeField A E V where |
| 101 | field := EulerComparator.compactSupportBoundedPath u hu K hK hsupp |
| 102 | smooth := hsmooth |
| 103 | jet n := EulerComparator.compactSupportBoundedPath _ (hjet n) K hK |
| 104 | (fun t => (tsupport_iteratedFDeriv_subset n).trans (hsupp t)) |
| 105 | jet_eq _ _ _ := rfl |
| 106 | |
| 107 | @[simp] theorem ofCompactSupportJets_apply (u : A × E → V) (hu : Continuous u) |
| 108 | (hsmooth : ∀ t, ContDiff ℝ ∞ (fun x => u (t, x))) |
| 109 | (hjet : ∀ n : ℕ, Continuous |
| 110 | (fun z : A × E => iteratedFDeriv ℝ n (fun x => u (z.1, x)) z.2)) |
| 111 | (K : Set E) (hK : IsCompact K) |
| 112 | (hsupp : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) (t : A) (x : E) : |
| 113 | (ofCompactSupportJets u hu hsmooth hjet K hK hsupp).field t x = u (t, x) := rfl |
| 114 | |
| 115 | end SmoothTimeField |
| 116 | |
| 117 | namespace SmoothTimeField |
| 118 | |
| 119 | variable {P E V : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 120 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 121 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 122 | |
| 123 | /-- A jointly smooth family on a compact parameter set with common compact |
| 124 | spatial support has all spatial jets continuous in the uniform norm. -/ |
| 125 | def ofContDiffOnCompactSupport (s : Set P) [CompactSpace s] |
| 126 | (u : P × E → V) (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) |
| 127 | (K : Set E) (hK : IsCompact K) |
| 128 | (hsupp : ∀ t ∈ s, tsupport (fun x => u (t, x)) ⊆ K) : |
| 129 | SmoothTimeField s E V := |
| 130 | ofCompactSupportJets (fun z : s × E => u (z.1, z.2)) |
| 131 | (hu.continuousOn.comp_continuous |
| 132 | ((continuous_subtype_val.comp continuous_fst).prodMk continuous_snd) |
| 133 | (fun z => ⟨z.1.property, mem_univ _⟩)) |
| 134 | (fun t => by |
| 135 | change ContDiff ℝ ∞ (fun x : E => u ((t : P), x)) |
| 136 | apply contDiffOn_univ.mp |
| 137 | exact hu.comp ((contDiffOn_const (c := (t : P))).prodMk contDiffOn_id) |
| 138 | (fun _ _ => ⟨t.property, mem_univ _⟩)) |
| 139 | (fun n => (EulerCompactSmoothTimeField.contDiffOn_spatial_jet hu n).continuousOn.comp_continuous |
| 140 | ((continuous_subtype_val.comp continuous_fst).prodMk continuous_snd) |
| 141 | (fun z => ⟨z.1.property, mem_univ _⟩)) |
| 142 | K hK (fun t => hsupp t t.property) |
| 143 | |
| 144 | @[simp] theorem ofContDiffOnCompactSupport_apply (s : Set P) [CompactSpace s] |
| 145 | (u : P × E → V) (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) |
| 146 | (K : Set E) (hK : IsCompact K) |
| 147 | (hsupp : ∀ t ∈ s, tsupport (fun x => u (t, x)) ⊆ K) (t : s) (x : E) : |
| 148 | (ofContDiffOnCompactSupport s u hu K hK hsupp).field t x = u (t, x) := rfl |
| 149 | |
| 150 | @[simp] theorem ofContDiffOnCompactSupport_jet_apply (s : Set P) [CompactSpace s] |
| 151 | (u : P × E → V) (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) |
| 152 | (K : Set E) (hK : IsCompact K) |
| 153 | (hsupp : ∀ t ∈ s, tsupport (fun x => u (t, x)) ⊆ K) |
| 154 | (n : ℕ) (t : s) (x : E) : |
| 155 | (ofContDiffOnCompactSupport s u hu K hK hsupp).jet n t x = |
| 156 | iteratedFDeriv ℝ n (fun y => u (t, y)) x := rfl |
| 157 | |
| 158 | end SmoothTimeField |