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.R3.ProblemStatement |
| 2 | import Mathlib.Tactic.Linarith |
| 3 | import NavierStokes.R3.ViscosityScaling |
| 4 | |
| 5 | /-! ## From `NavierStokes/R3/DelayedExtension.lean` |
| 6 | |
| 7 | The text of `NavierStokes/R3/DelayedExtension.lean`, folded into this file, which was its only importer. -/ |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! |
| 12 | # Smooth extension by zero to negative times |
| 13 | |
| 14 | A field that vanishes on a time interval around zero has a smooth extension by |
| 15 | zero to all negative times. The agreement with zero on an open neighborhood of |
| 16 | the seam proves every differentiability order at once. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace NavierStokesR3.ParabolicScaling |
| 22 | |
| 23 | open NavierStokes.ProblemStatement Set Filter |
| 24 | open scoped ContDiff Topology |
| 25 | |
| 26 | /-- Keep the original field at nonnegative times and use zero before time zero. -/ |
| 27 | def zeroBefore {V : Type*} [Zero V] (g : SpaceTime → V) (z : SpaceTime) : V := |
| 28 | if 0 ≤ z.1 then g z else 0 |
| 29 | |
| 30 | theorem zeroBefore_eq_of_nonneg {V : Type*} [Zero V] (g : SpaceTime → V) |
| 31 | {z : SpaceTime} (hz : 0 ≤ z.1) : zeroBefore g z = g z := by |
| 32 | simp only [zeroBefore, ite_eq_left hz] |
| 33 | |
| 34 | theorem zeroBefore_eq_zero_of_neg {V : Type*} [Zero V] (g : SpaceTime → V) |
| 35 | {z : SpaceTime} (hz : z.1 < 0) : zeroBefore g z = 0 := by |
| 36 | simp only [zeroBefore, ite_eq_right (not_le.mpr hz)] |
| 37 | |
| 38 | theorem zeroBefore_eventuallyEq_of_pos {V : Type*} [Zero V] (g : SpaceTime → V) |
| 39 | {z : SpaceTime} (hz : 0 < z.1) : zeroBefore g =ᶠ[𝓝 z] g := by |
| 40 | filter_upwards [continuous_fst.continuousAt.eventually_const_lt hz] with y hy |
| 41 | exact zeroBefore_eq_of_nonneg g hy.le |
| 42 | |
| 43 | theorem zeroBefore_eq_zero_of_le {V : Type*} [Zero V] {g : SpaceTime → V} |
| 44 | (hzero : ∀ t : ℝ, |t| ≤ 3 / 8 → ∀ x : Space, g (t, x) = 0) |
| 45 | {z : SpaceTime} (hz : z.1 ≤ 3 / 8) : zeroBefore g z = 0 := by |
| 46 | by_cases ht : 0 ≤ z.1 |
| 47 | · rw [zeroBefore_eq_of_nonneg g ht] |
| 48 | exact hzero z.1 (by rwa [abs_of_nonneg ht]) z.2 |
| 49 | · simp only [zeroBefore, ite_eq_right ht] |
| 50 | |
| 51 | theorem zeroBefore_eq_zero_of_nonpos {V : Type*} [Zero V] {g : SpaceTime → V} |
| 52 | (hzero : ∀ t : ℝ, |t| ≤ 3 / 8 → ∀ x : Space, g (t, x) = 0) |
| 53 | {z : SpaceTime} (hz : z.1 ≤ 0) : zeroBefore g z = 0 := by |
| 54 | exact zeroBefore_eq_zero_of_le hzero (by linarith) |
| 55 | |
| 56 | theorem zeroBefore_eventuallyEq_zero {V : Type*} [Zero V] {g : SpaceTime → V} |
| 57 | (hzero : ∀ t : ℝ, |t| ≤ 3 / 8 → ∀ x : Space, g (t, x) = 0) |
| 58 | {z : SpaceTime} (hz : z.1 < 3 / 8) : |
| 59 | zeroBefore g =ᶠ[𝓝 z] (fun _ => 0) := by |
| 60 | filter_upwards [continuous_fst.continuousAt.eventually_lt_const hz] with y hy |
| 61 | exact zeroBefore_eq_zero_of_le hzero hy.le |
| 62 | |
| 63 | theorem zeroBefore_eventually_eq {V : Type*} [Zero V] (g : SpaceTime → V) |
| 64 | {z : SpaceTime} (hz : 0 < z.1) : zeroBefore g =ᶠ[𝓝 z] g := |
| 65 | zeroBefore_eventuallyEq_of_pos g hz |
| 66 | |
| 67 | theorem zeroBefore_eventually_zero {V : Type*} [Zero V] {g : SpaceTime → V} |
| 68 | (hzero : ∀ t : ℝ, |t| ≤ 3 / 8 → ∀ x : Space, g (t, x) = 0) |
| 69 | {z : SpaceTime} (hz : z.1 ≤ 0) : zeroBefore g =ᶠ[𝓝 z] (fun _ => 0) := |
| 70 | zeroBefore_eventuallyEq_zero hzero (by linarith) |
| 71 | |
| 72 | /-- Extending by zero is smooth even at time zero, because the field vanishes |
| 73 | on a fixed interval there. -/ |
| 74 | theorem zeroBefore_smooth_on {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 75 | {g : SpaceTime → V} (hg : ContDiffOn ℝ ∞ g preSingularDomain) |
| 76 | (hzero : ∀ t : ℝ, |t| ≤ 3 / 8 → ∀ x : Space, g (t, x) = 0) : |
| 77 | ContDiffOn ℝ ∞ (zeroBefore g) (Iio 1 ×ˢ univ) := by |
| 78 | intro z hz |
| 79 | by_cases ht : z.1 < 3 / 8 |
| 80 | · exact (contDiffAt_const.congr_of_eventuallyEq |
| 81 | (zeroBefore_eventuallyEq_zero hzero ht)).contDiffWithinAt |
| 82 | · have htpos : 0 < z.1 := by linarith |
| 83 | have hdomain : preSingularDomain ∈ 𝓝 z := by |
| 84 | filter_upwards [continuous_fst.continuousAt.eventually_const_lt htpos, |
| 85 | continuous_fst.continuousAt.eventually_lt_const hz.1] with y hy0 hy1 |
| 86 | exact ⟨⟨hy0.le, hy1⟩, mem_univ _⟩ |
| 87 | exact ((hg.contDiffAt hdomain).congr_of_eventuallyEq |
| 88 | (zeroBefore_eventuallyEq_of_pos g htpos)).contDiffWithinAt |
| 89 | |
| 90 | end NavierStokesR3.ParabolicScaling |
| 91 | end |
| 92 | |
| 93 | end |
| 94 | |
| 95 | noncomputable section |
| 96 | |
| 97 | namespace NavierStokesR3.ParabolicScaling |
| 98 | |
| 99 | open ProblemStatement Set |
| 100 | |
| 101 | /-- The affine clock sends time one to itself and starts at `1-l⁻²`. -/ |
| 102 | def clock (l t : ℝ) : ℝ := l ^ 2 * (t - 1) + 1 |
| 103 | |
| 104 | /-- Simultaneous affine time change, spatial dilation, and amplitude change. -/ |
| 105 | def pull {V : Type*} [SMul ℝ V] (a l : ℝ) (g : SpaceTime → V) : SpaceTime → V := |
| 106 | fun z => a • g (clock l z.1, l • z.2) |
| 107 | |
| 108 | def velocity (l : ℝ) (u : VelocityField) : VelocityField := |
| 109 | pull l l (zeroBefore u) |
| 110 | |
| 111 | def pressure (l : ℝ) (p : PressureField) : PressureField := |
| 112 | pull (l ^ 2) l (zeroBefore p) |
| 113 | |
| 114 | def force (l : ℝ) (f : VelocityField) : VelocityField := |
| 115 | pull (l ^ 3) l f |
| 116 | |
| 117 | theorem clock_lt_one {l t : ℝ} (hl : 0 < l) (ht : t < 1) : clock l t < 1 := by |
| 118 | dsimp [clock] |
| 119 | nlinarith [sq_pos_of_pos hl] |
| 120 | |
| 121 | theorem clock_zero_nonpos {l : ℝ} (hl : 1 ≤ l) : clock l 0 ≤ 0 := by |
| 122 | dsimp [clock] |
| 123 | nlinarith |
| 124 | |
| 125 | end NavierStokesR3.ParabolicScaling |