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.H3UniformApproximation |
| 2 | import NavierStokes.R3.H3Continuity |
| 3 | |
| 4 | /-! # Curves in the genuine whole-space H³ topology |
| 5 | |
| 6 | The topology is the finite product of the ordinary L² topologies of the |
| 7 | velocity and every weak coordinate derivative through order three. The weak |
| 8 | jets come from one smooth compact approximation at each time. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open Set Filter MeasureTheory |
| 14 | open scoped Topology ContDiff BigOperators |
| 15 | |
| 16 | namespace NavierStokesR3.H3Comparison |
| 17 | |
| 18 | open ProblemStatement H3Embedding |
| 19 | |
| 20 | /-- A continuous H³ curve, with its continuous spatial representative and |
| 21 | genuine weak derivative jets. Continuity is in the actual L² spaces. -/ |
| 22 | structure H3Curve (u : VelocityField) (s : Set ℝ) where |
| 23 | first : Fin 3 → VelocityField |
| 24 | second : Fin 3 → Fin 3 → VelocityField |
| 25 | third : Fin 3 → Fin 3 → Fin 3 → VelocityField |
| 26 | spatial_continuous : ∀ t ∈ s, Continuous (fun x => u (t, x)) |
| 27 | approximation : ∀ t ∈ s, H3Approximation (fun x => u (t, x)) |
| 28 | (fun i x => first i (t, x)) (fun i j x => second i j (t, x)) |
| 29 | (fun i j k x => third i j k (t, x)) |
| 30 | velocity_continuous : Continuous (fun t : s => |
| 31 | ((approximation t t.property).memLp).toLp (fun x => u (t, x))) |
| 32 | first_continuous : ∀ i, Continuous (fun t : s => |
| 33 | ((approximation t t.property).derivative_memLp i).toLp (fun x => first i (t, x))) |
| 34 | second_continuous : ∀ i j, Continuous (fun t : s => |
| 35 | ((approximation t t.property).second_memLp i j).toLp (fun x => second i j (t, x))) |
| 36 | third_continuous : ∀ i j k, Continuous (fun t : s => |
| 37 | ((approximation t t.property).third_memLp i j k).toLp (fun x => third i j k (t, x))) |
| 38 | |
| 39 | namespace H3Curve |
| 40 | |
| 41 | variable {u : VelocityField} {s : Set ℝ} |
| 42 | |
| 43 | def normAt (h : H3Curve u s) (t : ℝ) : ℝ := |
| 44 | weakH3Norm (fun x => u (t, x)) (fun i x => h.first i (t, x)) |
| 45 | (fun i j x => h.second i j (t, x)) (fun i j k x => h.third i j k (t, x)) |
| 46 | |
| 47 | theorem normAt_nonneg (h : H3Curve u s) (t : ℝ) : 0 ≤ h.normAt t := Real.sqrt_nonneg _ |
| 48 | |
| 49 | theorem norm_le (h : H3Curve u s) {t : ℝ} (ht : t ∈ s) (x : Space) : |
| 50 | ‖u (t, x)‖ ≤ 3 * h.normAt t := |
| 51 | norm_le_weakH3Norm (h.approximation t ht) (h.spatial_continuous t ht) x |
| 52 | |
| 53 | private theorem continuous_squareEnergy {ι : Type*} [TopologicalSpace ι] |
| 54 | {f : ι → Space → Space} (hf : ∀ t, MemLp (f t) 2 volume) |
| 55 | (hc : Continuous (fun t => (hf t).toLp (f t))) : |
| 56 | Continuous (fun t => squareEnergy (f t)) := by |
| 57 | have he : (fun t => squareEnergy (f t)) = fun t => ‖(hf t).toLp (f t)‖ ^ 2 := |
| 58 | funext (fun t => squareEnergy_eq_norm_toLp (hf t)) |
| 59 | rw [he] |
| 60 | exact hc.norm.pow 2 |
| 61 | |
| 62 | theorem continuous_normAt_restrict (h : H3Curve u s) : |
| 63 | Continuous (fun t : s => h.normAt t) := by |
| 64 | have h0 := continuous_squareEnergy (fun t : s => (h.approximation t t.property).memLp) |
| 65 | h.velocity_continuous |
| 66 | have h1 (i) := continuous_squareEnergy |
| 67 | (fun t : s => (h.approximation t t.property).derivative_memLp i) (h.first_continuous i) |
| 68 | have h2 (i j) := continuous_squareEnergy |
| 69 | (fun t : s => (h.approximation t t.property).second_memLp i j) (h.second_continuous i j) |
| 70 | have h3 (i j k) := continuous_squareEnergy |
| 71 | (fun t : s => (h.approximation t t.property).third_memLp i j k) (h.third_continuous i j k) |
| 72 | have hs2 := continuous_finsetSum Finset.univ (fun i _ => |
| 73 | continuous_finsetSum Finset.univ (fun j _ => h2 i j)) |
| 74 | have hs3 := continuous_finsetSum Finset.univ (fun i _ => |
| 75 | continuous_finsetSum Finset.univ (fun j _ => |
| 76 | continuous_finsetSum Finset.univ (fun k _ => h3 i j k))) |
| 77 | have hm := ((((((h0.add (h1 0)).add (h1 1)).add (h1 2)).add (h2 1 0)).add |
| 78 | (h2 2 0)).add (h2 2 1)) |
| 79 | exact (((hm.add (h3 2 1 0)).add hs2).add hs3).sqrt |
| 80 | |
| 81 | theorem continuousOn_normAt (h : H3Curve u s) : ContinuousOn h.normAt s := |
| 82 | continuousOn_iff_continuous_domRestrict.mpr h.continuous_normAt_restrict |
| 83 | |
| 84 | /-- The L² velocity curve, extended by zero off its time set. The extension |
| 85 | is only used at times where the time set contains a neighborhood. -/ |
| 86 | def velocityLp (h : H3Curve u s) (t : ℝ) : Lp Space 2 (volume : Measure Space) := by |
| 87 | classical |
| 88 | exact if ht : t ∈ s then (h.approximation t ht).memLp.toLp (fun x => u (t, x)) else 0 |
| 89 | |
| 90 | theorem velocityLp_eq (h : H3Curve u s) {t : ℝ} (ht : t ∈ s) : |
| 91 | h.velocityLp t = (h.approximation t ht).memLp.toLp (fun x => u (t, x)) := by |
| 92 | simp only [velocityLp, dite_eq_left ht] |
| 93 | |
| 94 | theorem continuousOn_velocityLp (h : H3Curve u s) : ContinuousOn h.velocityLp s := by |
| 95 | apply continuousOn_iff_continuous_domRestrict.mpr |
| 96 | have he : (s.domRestrict h.velocityLp) = fun t : s => |
| 97 | (h.approximation t t.property).memLp.toLp (fun x => u (t, x)) := by |
| 98 | funext t |
| 99 | exact h.velocityLp_eq t.property |
| 100 | rw [he] |
| 101 | exact h.velocity_continuous |
| 102 | |
| 103 | def restrict (h : H3Curve u s) {r : Set ℝ} (hrs : r ⊆ s) : H3Curve u r where |
| 104 | first := h.first |
| 105 | second := h.second |
| 106 | third := h.third |
| 107 | spatial_continuous := fun t ht => h.spatial_continuous t (hrs ht) |
| 108 | approximation := fun t ht => h.approximation t (hrs ht) |
| 109 | velocity_continuous := h.velocity_continuous.comp |
| 110 | (continuous_subtype_val.subtype_mk (fun t : r => hrs t.property)) |
| 111 | first_continuous := fun i => (h.first_continuous i).comp |
| 112 | (continuous_subtype_val.subtype_mk (fun t : r => hrs t.property)) |
| 113 | second_continuous := fun i j => (h.second_continuous i j).comp |
| 114 | (continuous_subtype_val.subtype_mk (fun t : r => hrs t.property)) |
| 115 | third_continuous := fun i j k => (h.third_continuous i j k).comp |
| 116 | (continuous_subtype_val.subtype_mk (fun t : r => hrs t.property)) |
| 117 | |
| 118 | theorem uniform_speed_bound {a b : ℝ} (h : H3Curve u (Icc a b)) : |
| 119 | ∃ B : ℝ, ∀ t ∈ Icc a b, ∀ x : Space, ‖u (t, x)‖ ≤ B := by |
| 120 | obtain ⟨C, hC⟩ := isCompact_Icc.exists_bound_of_continuousOn h.continuousOn_normAt |
| 121 | refine ⟨3 * C, ?_⟩ |
| 122 | intro t ht x |
| 123 | have hct : h.normAt t ≤ C := (le_abs_self _).trans (hC t ht) |
| 124 | exact (h.norm_le ht x).trans (mul_le_mul_of_nonneg_left hct (by norm_num)) |
| 125 | |
| 126 | end H3Curve |
| 127 | |
| 128 | end NavierStokesR3.H3Comparison |