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 Mathlib.Topology.ContinuousMap.Bounded.Normed |
| 2 | import Mathlib.Topology.UniformSpace.HeineCantor |
| 3 | |
| 4 | /-! Continuous families with a common compact spatial support give continuous paths in the |
| 5 | space of bounded continuous functions, equipped with the uniform norm. -/ |
| 6 | |
| 7 | open Set Filter Topology |
| 8 | open scoped BoundedContinuousFunction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerComparator |
| 13 | |
| 14 | variable {A E V : Type*} [TopologicalSpace A] [TopologicalSpace E] |
| 15 | [NormedAddCommGroup V] |
| 16 | |
| 17 | /-- A continuous, compactly supported function, regarded as a bounded continuous function. -/ |
| 18 | def boundedOfCompactSupport (f : E → V) (hf : Continuous f) |
| 19 | (hs : HasCompactSupport f) : E →ᵇ V where |
| 20 | toFun := f |
| 21 | continuous_toFun := hf |
| 22 | map_bounded' := Metric.isBounded_range_iff.mp (hs.isCompact_range hf).isBounded |
| 23 | |
| 24 | @[simp] theorem boundedOfCompactSupport_apply (f : E → V) (hf : Continuous f) |
| 25 | (hs : HasCompactSupport f) (x : E) : boundedOfCompactSupport f hf hs x = f x := rfl |
| 26 | |
| 27 | /-- Uniformly compact spatial support upgrades joint continuity to continuity in the |
| 28 | bounded-continuous-function norm. No compactness assumption on the parameter space is needed. -/ |
| 29 | theorem continuous_boundedOfCompactSupport |
| 30 | (u : A × E → V) (hu : Continuous u) (K : Set E) (hK : IsCompact K) |
| 31 | (hs : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) : |
| 32 | Continuous (fun t => boundedOfCompactSupport (fun x => u (t, x)) |
| 33 | (hu.comp (continuous_const.prodMk continuous_id)) |
| 34 | (hK.of_isClosed_subset (isClosed_tsupport _) (hs t))) := by |
| 35 | rw [continuous_iff_continuousAt] |
| 36 | intro t |
| 37 | apply Metric.continuousAt_iff'.mpr |
| 38 | intro ε hε |
| 39 | have hε2 : 0 < ε / 2 := half_pos hε |
| 40 | obtain ⟨U, hU, hclose⟩ := hK.mem_uniformity_of_prod |
| 41 | (f := fun t x => u (t, x)) (s := Set.univ) hu.continuousOn |
| 42 | (Set.mem_univ t) (Metric.dist_mem_uniformity hε2) |
| 43 | rw [nhdsWithin_univ] at hU |
| 44 | filter_upwards [hU] with s hsU |
| 45 | apply lt_of_le_of_lt _ (half_lt_self hε) |
| 46 | apply (BoundedContinuousFunction.dist_le hε2.le).mpr |
| 47 | intro x |
| 48 | change dist (u (s, x)) (u (t, x)) ≤ ε / 2 |
| 49 | by_cases hx : x ∈ K |
| 50 | · exact (hclose s hsU x hx).le |
| 51 | · have hsx : u (s, x) = 0 := image_eq_zero_of_notMem_tsupport |
| 52 | (f := fun y => u (s, y)) (fun h => hx (hs s h)) |
| 53 | have htx : u (t, x) = 0 := image_eq_zero_of_notMem_tsupport |
| 54 | (f := fun y => u (t, y)) (fun h => hx (hs t h)) |
| 55 | simpa [hsx, htx] using hε2.le |
| 56 | |
| 57 | /-- A continuous family with one common compact spatial support, bundled as a continuous |
| 58 | path of bounded continuous functions. -/ |
| 59 | def compactSupportBoundedPath |
| 60 | (u : A × E → V) (hu : Continuous u) (K : Set E) (hK : IsCompact K) |
| 61 | (hs : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) : C(A, E →ᵇ V) where |
| 62 | toFun t := boundedOfCompactSupport (fun x => u (t, x)) |
| 63 | (hu.comp (continuous_const.prodMk continuous_id)) |
| 64 | (hK.of_isClosed_subset (isClosed_tsupport _) (hs t)) |
| 65 | continuous_toFun := continuous_boundedOfCompactSupport u hu K hK hs |
| 66 | |
| 67 | @[simp] theorem compactSupportBoundedPath_apply |
| 68 | (u : A × E → V) (hu : Continuous u) (K : Set E) (hK : IsCompact K) |
| 69 | (hs : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) (t : A) (x : E) : |
| 70 | compactSupportBoundedPath u hu K hK hs t x = u (t, x) := rfl |
| 71 | |
| 72 | end EulerComparator |