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.PeriodicLocalization |
| 2 | import NavierStokes.R3.ProblemStatement |
| 3 | import Mathlib.Analysis.Calculus.FDeriv.Const |
| 4 | |
| 5 | /-! |
| 6 | # Support of the periodic construction on its fundamental cube |
| 7 | |
| 8 | The periodic lift is not compactly supported on all of R³. These lemmas |
| 9 | record the correct support statement after intersecting its topological |
| 10 | support with the closed fundamental cube. An extension after the singular |
| 11 | time is used only to make the periodizing lattice family uniformly locally finite. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.PeriodicPaper |
| 17 | |
| 18 | open ProblemStatement PeriodicLocalization Set Filter |
| 19 | open scoped Topology ContDiff |
| 20 | |
| 21 | /-- The interior of the centered fundamental unit cube. -/ |
| 22 | def fundamentalInterior : Set Space := {x | ∀ i : Fin 3, |x i| < 1 / 2} |
| 23 | |
| 24 | /-- The closed centered fundamental unit cube. -/ |
| 25 | def fundamentalCube : Set Space := {x | ∀ i : Fin 3, |x i| ≤ 1 / 2} |
| 26 | |
| 27 | /-- An arbitrary zero extension after the singular time. -/ |
| 28 | def beforeOne {V : Type*} [Zero V] (g : SpaceTime → V) (z : SpaceTime) : V := |
| 29 | if z.1 < 1 then g z else 0 |
| 30 | |
| 31 | theorem beforeOne_eq {V : Type*} [Zero V] (g : SpaceTime → V) |
| 32 | {z : SpaceTime} (hz : z.1 < 1) : beforeOne g z = g z := by |
| 33 | simp only [beforeOne, ite_eq_left hz] |
| 34 | |
| 35 | theorem beforeOne_eventuallyEq {V : Type*} [Zero V] (g : SpaceTime → V) |
| 36 | {z : SpaceTime} (hz : z.1 < 1) : beforeOne g =ᶠ[𝓝 z] g := by |
| 37 | filter_upwards [continuous_fst.continuousAt.eventually_lt_const hz] with w hw |
| 38 | exact beforeOne_eq g hw |
| 39 | |
| 40 | theorem beforeOne_smooth {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 41 | {g : SpaceTime → V} (hg : ContDiffOn ℝ ∞ g preSingularDomain) : |
| 42 | ContDiffOn ℝ ∞ (beforeOne g) preSingularDomain := by |
| 43 | apply hg.congr |
| 44 | intro z hz |
| 45 | exact beforeOne_eq g hz.1.2 |
| 46 | |
| 47 | theorem beforeOne_supported {V : Type*} [NormedAddCommGroup V] |
| 48 | {g : SpaceTime → V} {r : ℝ} |
| 49 | (hg : ∀ t < (1 : ℝ), ∀ x : Space, g (t, x) ≠ 0 → ∀ i, |x i| ≤ r) : |
| 50 | SupportedInCube r (beforeOne g) := by |
| 51 | intro z hz |
| 52 | by_cases ht : z.1 < 1 |
| 53 | · exact hg z.1 ht z.2 (by simpa only [beforeOne, ite_eq_left ht] using hz) |
| 54 | · exact False.elim (hz (by simp only [beforeOne, ite_eq_right ht])) |
| 55 | |
| 56 | /-- Lattice periodization preserves unbounded speed when the original |
| 57 | support is contained strictly within the fundamental cube. -/ |
| 58 | theorem speedUnbounded_periodize {u : VelocityField} {r : ℝ} |
| 59 | (hu : SupportedInCube r u) (hr : r < 1 / 2) (h : SpeedUnboundedAtOne u) : |
| 60 | SpeedUnboundedAtOne (periodize u) := by |
| 61 | intro M hM δ hδ |
| 62 | obtain ⟨t, x, ht, hnear, hlarge⟩ := h M hM δ hδ |
| 63 | have hne : u (t, x) ≠ 0 := by |
| 64 | intro hz |
| 65 | rw [hz, norm_zero] at hlarge |
| 66 | linarith |
| 67 | have hx : ∀ i : Fin 3, |x i| ≤ 1 / 2 := |
| 68 | fun i => (hu (t, x) hne i).trans hr.le |
| 69 | exact ⟨t, x, ht, hnear, by rwa [periodize_eq_on_unitCube hu hr hx]⟩ |
| 70 | |
| 71 | theorem speedUnbounded_beforeOne {u : VelocityField} (h : SpeedUnboundedAtOne u) : |
| 72 | SpeedUnboundedAtOne (beforeOne u) := by |
| 73 | intro M hM δ hδ |
| 74 | obtain ⟨t, x, ht, hnear, hlarge⟩ := h M hM δ hδ |
| 75 | exact ⟨t, x, ht, hnear, by rwa [beforeOne_eq u ht.2]⟩ |
| 76 | |
| 77 | /-- Inside the closed fundamental cube the support of the periodized field |
| 78 | is contained in the original compact set, including at cube boundary points. -/ |
| 79 | theorem periodize_tsupport_on_fundamentalCube {V : Type*} [NormedAddCommGroup V] |
| 80 | {g : SpaceTime → V} {r : ℝ} {K : Set Space} |
| 81 | (hg : SupportedInCube r g) (hr : r < 1 / 2) {t : ℝ} |
| 82 | (hK : tsupport (fun x : Space => g (t, x)) ⊆ K) : |
| 83 | tsupport (fun x : Space => periodize g (t, x)) ∩ fundamentalCube ⊆ K := by |
| 84 | rintro x ⟨hx, hcube⟩ |
| 85 | by_contra hnot |
| 86 | have hnotg : x ∉ tsupport (fun y : Space => g (t, y)) := fun h => hnot (hK h) |
| 87 | have hzero := notMem_tsupport_iff_eventuallyEq.mp hnotg |
| 88 | have hinner : x ∈ innerCube r := by |
| 89 | intro i |
| 90 | have := hcube i |
| 91 | linarith |
| 92 | have heq : (fun y : Space => periodize g (t, y)) =ᶠ[𝓝 x] |
| 93 | (fun y : Space => g (t, y)) := by |
| 94 | filter_upwards [(isOpen_innerCube r).mem_nhds hinner] with y hy |
| 95 | exact periodize_eq_on_innerCube hg hy t |
| 96 | exact (notMem_tsupport_iff_eventuallyEq.mpr (heq.trans hzero)) hx |
| 97 | |
| 98 | /-- Compact spacetime support gives a common future time endpoint. -/ |
| 99 | theorem compactFutureTimeSupport_of_hasCompactSupport {f : VelocityField} |
| 100 | (hf : HasCompactSupport f) : CompactFutureTimeSupport f := by |
| 101 | obtain ⟨B, hB⟩ := (hf.image continuous_fst).bddAbove |
| 102 | refine ⟨max B 0 + 1, by positivity, ?_⟩ |
| 103 | intro t ht x |
| 104 | apply image_eq_zero_of_notMem_tsupport |
| 105 | intro hz |
| 106 | have hBt : t ≤ B := hB ⟨(t, x), hz, rfl⟩ |
| 107 | have := le_max_left B 0 |
| 108 | linarith |
| 109 | |
| 110 | end NavierStokes.PeriodicPaper |