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.ClassicalBridge |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Basic |
| 3 | import Mathlib.MeasureTheory.Integral.Bochner.Set |
| 4 | import Mathlib.Analysis.InnerProductSpace.Continuous |
| 5 | import Mathlib.MeasureTheory.Function.L2Space |
| 6 | import Mathlib.MeasureTheory.Function.ContinuousMapDense |
| 7 | import Mathlib.Tactic |
| 8 | |
| 9 | /-! |
| 10 | # Weak time continuity in `L²` |
| 11 | |
| 12 | A Comparator solution is jointly smooth on the closed nonnegative time |
| 13 | half-space. Consequently its pairings with continuous compactly supported |
| 14 | test fields vary continuously, including at time zero. The uniform energy |
| 15 | bound and density of compactly supported continuous functions extend this |
| 16 | to all `L²` test fields. No spatial derivative integrability or energy |
| 17 | conservation assumption is used here. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | open Set MeasureTheory |
| 23 | open scoped ContDiff Topology |
| 24 | |
| 25 | namespace Euler.EulerExistenceAndSmoothnessR3 |
| 26 | |
| 27 | local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) |
| 28 | |
| 29 | private theorem inner_toLp_eq_integral |
| 30 | (a b : ℝ³ → ℝ³) (ha : MemLp a 2 volume) (hb : MemLp b 2 volume) : |
| 31 | inner ℝ (ha.toLp a) (hb.toLp b) = ∫ x, inner ℝ (a x) (b x) := by |
| 32 | rw [L2.inner_def] |
| 33 | apply integral_congr_ae |
| 34 | filter_upwards [ha.coeFn_toLp, hb.coeFn_toLp] with x hax hbx |
| 35 | rw [hax, hbx] |
| 36 | |
| 37 | variable {u₀ : ℝ³ → ℝ³} {v : ℝ³ → ℝ → ℝ³} {p : ℝ³ → ℝ → ℝ} |
| 38 | (h : EulerExistenceAndSmoothnessR3 u₀ v p) |
| 39 | |
| 40 | include h |
| 41 | |
| 42 | /-- Pairing the velocity with a continuous compactly supported test field is |
| 43 | continuous on the entire nonnegative time interval. -/ |
| 44 | theorem velocity_test_pairing_continuousOn |
| 45 | (φ : ℝ³ → ℝ³) (hφ : Continuous φ) (hφc : HasCompactSupport φ) : |
| 46 | ContinuousOn (fun t : ℝ => ∫ x : ℝ³, inner ℝ (φ x) (v x t)) (Ici 0) := by |
| 47 | apply continuousOn_integral_of_compact_support hφc |
| 48 | · apply (hφ.comp continuous_snd).continuousOn.inner |
| 49 | exact h.velocity_smooth.continuousOn.comp continuous_swap.continuousOn |
| 50 | (fun z hz => ⟨mem_univ _, hz.1⟩) |
| 51 | · intro t x _ hx |
| 52 | simp [image_eq_zero_of_notMem_tsupport hx] |
| 53 | |
| 54 | /-- The natural velocity path in the Hilbert space `L²`. -/ |
| 55 | def velocityLp (t : Ici (0 : ℝ)) : Lp ℝ³ 2 (volume : Measure ℝ³) := |
| 56 | (h.velocity_memLp t t.property).toLp (v · t) |
| 57 | |
| 58 | theorem velocityLp_norm_sq (t : Ici (0 : ℝ)) : |
| 59 | ‖h.velocityLp t‖ ^ 2 = ∫ x : ℝ³, ‖v x t‖ ^ 2 := by |
| 60 | rw [← real_inner_self_eq_norm_sq] |
| 61 | unfold velocityLp |
| 62 | rw [inner_toLp_eq_integral] |
| 63 | simp only [real_inner_self_eq_norm_sq] |
| 64 | |
| 65 | /-- The Comparator energy condition gives a uniform Hilbert space norm bound. -/ |
| 66 | theorem velocityLp_norm_bounded : |
| 67 | ∃ M : ℝ, 0 < M ∧ ∀ t : Ici (0 : ℝ), ‖h.velocityLp t‖ ≤ M := by |
| 68 | obtain ⟨E, hE⟩ := h.globally_bounded_energy |
| 69 | refine ⟨|E| + 1, by positivity, ?_⟩ |
| 70 | intro t |
| 71 | have he : ‖h.velocityLp t‖ ^ 2 < E := by |
| 72 | rw [h.velocityLp_norm_sq] |
| 73 | exact hE t t.property |
| 74 | have habs := le_abs_self E |
| 75 | have habs0 := abs_nonneg E |
| 76 | have hn := norm_nonneg (h.velocityLp t) |
| 77 | nlinarith [sq_nonneg (|E|)] |
| 78 | |
| 79 | /-- Every `L²` test pairing is continuous. This is weak time continuity of the |
| 80 | velocity in `L²`, derived from the exact Comparator hypotheses. -/ |
| 81 | theorem velocityLp_weakly_continuous (φ : Lp ℝ³ 2 (volume : Measure ℝ³)) : |
| 82 | Continuous (fun t : Ici (0 : ℝ) => inner ℝ φ (h.velocityLp t)) := by |
| 83 | obtain ⟨M, hM, hbound⟩ := h.velocityLp_norm_bounded |
| 84 | apply Metric.continuous_iff.2 |
| 85 | intro t₀ ε hε |
| 86 | let δ : ℝ := ε / (4 * M) |
| 87 | have hδ : 0 < δ := by dsimp [δ]; positivity |
| 88 | obtain ⟨g, hgc, hgapprox, hgcont, hg⟩ := |
| 89 | (Lp.memLp φ).exists_hasCompactSupport_eLpNorm_sub_le |
| 90 | (by norm_num : (2 : ENNReal) ≠ ⊤) (by positivity : ENNReal.ofReal δ ≠ 0) |
| 91 | have happrox : ‖φ - hg.toLp g‖ ≤ δ := by |
| 92 | have heq : ‖φ - hg.toLp g‖ = |
| 93 | (eLpNorm ((φ : ℝ³ → ℝ³) - g) 2 volume).toReal := by |
| 94 | conv_lhs => rw [← Lp.toLp_coeFn φ (Lp.memLp φ), ← MemLp.toLp_sub] |
| 95 | exact Lp.norm_toLp _ _ |
| 96 | rw [heq] |
| 97 | exact (ENNReal.toReal_mono (by simp) hgapprox).trans_eq (ENNReal.toReal_ofReal hδ.le) |
| 98 | have hgpath : Continuous (fun t : Ici (0 : ℝ) => |
| 99 | inner ℝ (hg.toLp g) (h.velocityLp t)) := by |
| 100 | have hc := continuousOn_iff_continuous_domRestrict.mp |
| 101 | (h.velocity_test_pairing_continuousOn g hgcont hgc) |
| 102 | change Continuous (fun t : Ici (0 : ℝ) => ∫ x : ℝ³, inner ℝ (g x) (v x t)) at hc |
| 103 | simpa only [velocityLp, inner_toLp_eq_integral] using hc |
| 104 | have herr (t : Ici (0 : ℝ)) : |
| 105 | dist (inner ℝ φ (h.velocityLp t)) |
| 106 | (inner ℝ (hg.toLp g) (h.velocityLp t)) ≤ δ * M := by |
| 107 | rw [dist_eq_norm, ← inner_sub_left] |
| 108 | exact (norm_inner_le_norm _ _).trans (mul_le_mul happrox (hbound t) |
| 109 | (norm_nonneg _) hδ.le) |
| 110 | obtain ⟨η, hη, hηbound⟩ := (Metric.continuousAt_iff.mp hgpath.continuousAt) |
| 111 | (ε / 2) (by positivity) |
| 112 | refine ⟨η, hη, fun t ht => ?_⟩ |
| 113 | have hmid := hηbound ht |
| 114 | have hlast := herr t₀ |
| 115 | rw [dist_comm] at hlast |
| 116 | calc |
| 117 | dist (inner ℝ φ (h.velocityLp t)) (inner ℝ φ (h.velocityLp t₀)) |
| 118 | ≤ dist (inner ℝ φ (h.velocityLp t)) (inner ℝ (hg.toLp g) (h.velocityLp t)) + |
| 119 | dist (inner ℝ (hg.toLp g) (h.velocityLp t)) |
| 120 | (inner ℝ (hg.toLp g) (h.velocityLp t₀)) + |
| 121 | dist (inner ℝ (hg.toLp g) (h.velocityLp t₀)) (inner ℝ φ (h.velocityLp t₀)) := |
| 122 | dist_triangle4 _ _ _ _ |
| 123 | _ < δ * M + ε / 2 + δ * M := by linarith [herr t] |
| 124 | _ = ε := by dsimp [δ]; field_simp; ring |
| 125 | |
| 126 | /-- Function-level form of weak `L²` continuity, without quotient representatives. -/ |
| 127 | theorem velocity_pairing_continuousOn |
| 128 | (φ : ℝ³ → ℝ³) (hφ : MemLp φ 2 volume) : |
| 129 | ContinuousOn (fun t : ℝ => ∫ x : ℝ³, inner ℝ (φ x) (v x t)) (Ici 0) := by |
| 130 | apply continuousOn_iff_continuous_domRestrict.mpr |
| 131 | change Continuous (fun t : Ici (0 : ℝ) => ∫ x : ℝ³, inner ℝ (φ x) (v x t)) |
| 132 | simpa only [velocityLp, inner_toLp_eq_integral] using |
| 133 | h.velocityLp_weakly_continuous (hφ.toLp φ) |
| 134 | |
| 135 | /-- Every finite-energy test pairing attains the prescribed initial data weakly. -/ |
| 136 | theorem velocity_pairing_tendsto_initial |
| 137 | (φ : ℝ³ → ℝ³) (hφ : MemLp φ 2 volume) : |
| 138 | Filter.Tendsto (fun t : ℝ => ∫ x : ℝ³, inner ℝ (φ x) (v x t)) |
| 139 | (𝓝[Ici 0] 0) (𝓝 (∫ x : ℝ³, inner ℝ (φ x) (u₀ x))) := by |
| 140 | simpa only [ContinuousWithinAt, h.initial_condition] using |
| 141 | h.velocity_pairing_continuousOn φ hφ 0 (by simp) |
| 142 | |
| 143 | end Euler.EulerExistenceAndSmoothnessR3 |