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.R3SmoothPressure |
| 2 | import NavierStokes.R3TimeLocalization |
| 3 | |
| 4 | /-! |
| 5 | # Pressure recovery after compact time localization |
| 6 | |
| 7 | A smooth equation on an open time interval is multiplied by a compact time |
| 8 | cutoff. The time derivative of the cutoff is included explicitly in the |
| 9 | momentum equation, and all fields become global smooth space-time fields. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | namespace NavierStokes.R3LocalizedPressure |
| 14 | |
| 15 | open Set Filter MeasureTheory TemperedDistribution |
| 16 | open R3SpaceTime R3SpaceTimePressure R3WeakPressure R3TimeLocalization |
| 17 | open scoped SchwartzMap LineDeriv Topology ContDiff ENNReal |
| 18 | |
| 19 | theorem directional_contDiffOn {s : Set Domain} (hs : IsOpen s) {u : Domain → ℂ} |
| 20 | (hu : ContDiffOn ℝ ∞ u s) (m : Domain) : ContDiffOn ℝ ∞ (directional m u) s := |
| 21 | (hu.fderiv_of_isOpen hs (by simp)).clm_apply contDiffOn_const |
| 22 | |
| 23 | theorem directional_localize_of_mem {s : Set ℝ} (hs : IsOpen s) {a : ℝ → ℝ} |
| 24 | (ha : ContDiff ℝ ∞ a) {u : Domain → ℂ} (hu : ContDiffOn ℝ ∞ u (timeProj ⁻¹' s)) |
| 25 | {z : Domain} (hz : timeProj z ∈ s) (m : Domain) : |
| 26 | directional m (localize a u) z = |
| 27 | ((deriv a (timeProj z) * timeProj m : ℝ) : ℂ) * u z + |
| 28 | (a (timeProj z) : ℂ) * directional m u z := by |
| 29 | have hud := ((hu z hz).contDiffAt ((hs.preimage timeProj.continuous).mem_nhds hz)).differentiableAt (by simp) |
| 30 | have had := (ha.differentiable (by simp) (timeProj z)).hasDerivAt |
| 31 | have hA := Complex.ofRealCLM.hasFDerivAt.comp z (had.comp_hasFDerivAt z timeProj.hasFDerivAt) |
| 32 | unfold directional localize |
| 33 | change (fderiv ℝ ((Complex.ofRealCLM ∘ a ∘ timeProj) * u) z) m = _ |
| 34 | rw [(hA.mul hud.hasFDerivAt).fderiv] |
| 35 | simp |
| 36 | ring |
| 37 | |
| 38 | theorem localize_eventually_zero {a : ℝ → ℝ} {u : Domain → ℂ} {z : Domain} |
| 39 | (hz : timeProj z ∉ tsupport a) : localize a u =ᶠ[𝓝 z] (fun _ => (0 : ℂ)) := by |
| 40 | have hzero := (notMem_tsupport_iff_eventuallyEq.mp hz).comp_tendsto timeProj.continuous.continuousAt |
| 41 | filter_upwards [hzero] with y hy |
| 42 | change a (timeProj y) = 0 at hy |
| 43 | simp [localize, hy] |
| 44 | |
| 45 | theorem directional_localize_space {s : Set ℝ} (hs : IsOpen s) {a : ℝ → ℝ} |
| 46 | (ha : ContDiff ℝ ∞ a) (has : tsupport a ⊆ s) {u : Domain → ℂ} |
| 47 | (hu : ContDiffOn ℝ ∞ u (timeProj ⁻¹' s)) (i : Fin 3) : |
| 48 | directional (spaceDirection i) (localize a u) = localize a (directional (spaceDirection i) u) := by |
| 49 | funext z |
| 50 | by_cases hz : timeProj z ∈ tsupport a |
| 51 | · rw [directional_localize_of_mem hs ha hu (has hz)] |
| 52 | simp [localize, timeProj, spaceDirection, WithLp.fstL] |
| 53 | · have hd := (localize_eventually_zero (u := u) hz).fderiv_eq (𝕜 := ℝ) |
| 54 | have hzero := image_eq_zero_of_notMem_tsupport hz |
| 55 | simp only [directional, hd, fderiv_const_apply, zero_apply, |
| 56 | localize, hzero, Complex.ofReal_zero, zero_mul] |
| 57 | |
| 58 | theorem directional_localize_time {s : Set ℝ} (hs : IsOpen s) {a : ℝ → ℝ} |
| 59 | (ha : ContDiff ℝ ∞ a) (has : tsupport a ⊆ s) {u : Domain → ℂ} |
| 60 | (hu : ContDiffOn ℝ ∞ u (timeProj ⁻¹' s)) : |
| 61 | directional timeDirection (localize a u) = |
| 62 | fun z => localize (deriv a) u z + localize a (directional timeDirection u) z := by |
| 63 | funext z |
| 64 | by_cases hz : timeProj z ∈ tsupport a |
| 65 | · rw [directional_localize_of_mem hs ha hu (has hz)] |
| 66 | simp [localize, timeProj, timeDirection, WithLp.fstL] |
| 67 | · have hd := (localize_eventually_zero (u := u) hz).fderiv_eq (𝕜 := ℝ) |
| 68 | have hzero := image_eq_zero_of_notMem_tsupport hz |
| 69 | have hderiv : deriv a (timeProj z) = 0 := by |
| 70 | have he := (notMem_tsupport_iff_eventuallyEq.mp hz).deriv_eq |
| 71 | simpa using he |
| 72 | simp only [directional, hd, fderiv_const_apply, zero_apply, |
| 73 | localize, hzero, hderiv, Complex.ofReal_zero, zero_mul, add_zero] |
| 74 | |
| 75 | theorem laplacian_localize {s : Set ℝ} (hs : IsOpen s) {a : ℝ → ℝ} |
| 76 | (ha : ContDiff ℝ ∞ a) (has : tsupport a ⊆ s) {u : Domain → ℂ} |
| 77 | (hu : ContDiffOn ℝ ∞ u (timeProj ⁻¹' s)) : |
| 78 | functionLaplacian (localize a u) = localize a (functionLaplacian u) := by |
| 79 | funext z |
| 80 | unfold functionLaplacian |
| 81 | simp only [directional_localize_space hs ha has hu, |
| 82 | directional_localize_space hs ha has (directional_contDiffOn (hs.preimage timeProj.continuous) hu _), |
| 83 | localize, Finset.mul_sum] |
| 84 | |
| 85 | theorem divergence_localize {s : Set ℝ} (hs : IsOpen s) {a : ℝ → ℝ} |
| 86 | (ha : ContDiff ℝ ∞ a) (has : tsupport a ⊆ s) {U : Fin 3 → Domain → ℂ} |
| 87 | (hu : ∀ i, ContDiffOn ℝ ∞ (U i) (timeProj ⁻¹' s)) : |
| 88 | functionDivergence (fun i => localize a (U i)) = localize a (functionDivergence U) := by |
| 89 | funext z |
| 90 | unfold functionDivergence |
| 91 | simp only [directional_localize_space hs ha has (hu _), localize, Finset.mul_sum] |
| 92 | |
| 93 | theorem momentum_localize {s : Set ℝ} (hs : IsOpen s) {a : ℝ → ℝ} |
| 94 | (ha : ContDiff ℝ ∞ a) (has : tsupport a ⊆ s) |
| 95 | {U : Fin 3 → Domain → ℂ} {G : Fin 3 → Fin 3 → Domain → ℂ} |
| 96 | (hu : ∀ i, ContDiffOn ℝ ∞ (U i) (timeProj ⁻¹' s)) |
| 97 | (hg : ∀ i j, ContDiffOn ℝ ∞ (G i j) (timeProj ⁻¹' s)) (i : Fin 3) : |
| 98 | functionMomentum (fun i => localize a (U i)) (fun i => localize (deriv a) (U i)) |
| 99 | (fun i j => localize a (G i j)) i = |
| 100 | localize a (functionMomentum U (fun _ _ => 0) G i) := by |
| 101 | funext z |
| 102 | have hsum : (∑ j : Fin 3, (a (timeProj z) : ℂ) * directional (spaceDirection j) (G i j) z) = |
| 103 | (a (timeProj z) : ℂ) * ∑ j : Fin 3, directional (spaceDirection j) (G i j) z := |
| 104 | (Finset.mul_sum _ _ _).symm |
| 105 | simp only [functionMomentum, laplacian_localize hs ha has (hu i), |
| 106 | directional_localize_time hs ha has (hu i), |
| 107 | directional_localize_space hs ha has (hg _ _), localize, hsum] |
| 108 | ring |
| 109 | |
| 110 | /-- The compactly localized physical pressure satisfies the canonical |
| 111 | pressure-gradient identity. Uniform spatial norms are the only global |
| 112 | bounds required on the original fields. -/ |
| 113 | theorem localized_pressure_gradient {s : Set ℝ} (hs : IsOpen s) |
| 114 | (a : ℝ → ℝ) (ha : ContDiff ℝ ∞ a) (hac : HasCompactSupport a) (has : tsupport a ⊆ s) |
| 115 | (U : Fin 3 → Domain → ℂ) (G : Fin 3 → Fin 3 → Domain → ℂ) (p : Domain → ℂ) |
| 116 | (hu : ∀ i, ContDiffOn ℝ ∞ (U i) (timeProj ⁻¹' s)) |
| 117 | (hg : ∀ i j, ContDiffOn ℝ ∞ (G i j) (timeProj ⁻¹' s)) |
| 118 | (hp : ContDiffOn ℝ ∞ p (timeProj ⁻¹' s)) |
| 119 | (U2 : ∀ i t, t ∈ s → MemLp (fun x => U i (pack t x)) 2) |
| 120 | (G1 : ∀ i j t, t ∈ s → Integrable (fun x => G i j (pack t x))) |
| 121 | (CU CG : ℝ) |
| 122 | (boundU : ∀ i t, t ∈ s → (∫ x : ProblemStatement.Space, ‖U i (pack t x)‖ ^ 2) ≤ CU) |
| 123 | (boundG : ∀ i j t, t ∈ s → (∫ x : ProblemStatement.Space, ‖G i j (pack t x)‖) ≤ CG) |
| 124 | (divU : ∀ z, timeProj z ∈ s → functionDivergence U z = 0) |
| 125 | (eqn : ∀ i z, timeProj z ∈ s → |
| 126 | functionMomentum U (fun _ _ => 0) G i z = directional (spaceDirection i) p z) : |
| 127 | ∃ gLp : Fin 3 → Fin 3 → Lp ℂ 1 (volume : Measure Domain), |
| 128 | (∀ i j, gLp i j =ᵐ[volume] localize a (G i j)) ∧ |
| 129 | ∀ i, Represents (∂_{spaceDirection i} (stressPressure gLp)) |
| 130 | (localize a (directional (spaceDirection i) p)) := by |
| 131 | have had : ContDiff ℝ ∞ (deriv a) := ha.deriv' |
| 132 | have hadc : HasCompactSupport (deriv a) := hac.deriv |
| 133 | have hads : tsupport (deriv a) ⊆ s := (tsupport_deriv_subset).trans has |
| 134 | have smoothU i := localize_contDiff ha hs has (hu i) |
| 135 | have smoothV i := localize_contDiff had hs hads (hu i) |
| 136 | have smoothG i j := localize_contDiff ha hs has (hg i j) |
| 137 | have smoothP := localize_contDiff ha hs has hp |
| 138 | have in_s {b : ℝ → ℝ} (hbs : tsupport b ⊆ s) {t : ℝ} (ht : b t ≠ 0) : t ∈ s := |
| 139 | hbs (subset_tsupport _ ht) |
| 140 | have hU i : MemLp (localize a (U i)) 2 := localize_memLp_two |
| 141 | (ha.continuous.memLp_of_hasCompactSupport hac) (smoothU i).continuous.aestronglyMeasurable |
| 142 | (fun t ht => U2 i t (in_s has ht)) (fun t ht => boundU i t (in_s has ht)) |
| 143 | have hV i : MemLp (localize (deriv a) (U i)) 2 := localize_memLp_two |
| 144 | (had.continuous.memLp_of_hasCompactSupport hadc) (smoothV i).continuous.aestronglyMeasurable |
| 145 | (fun t ht => U2 i t (in_s hads ht)) (fun t ht => boundU i t (in_s hads ht)) |
| 146 | have hG i j : MemLp (localize a (G i j)) 1 := memLp_one_iff_integrable.mpr (localize_integrable |
| 147 | (ha.continuous.integrable_of_hasCompactSupport hac) (smoothG i j).continuous.aestronglyMeasurable |
| 148 | (fun t ht => G1 i j t (in_s has ht)) (fun t ht => boundG i j t (in_s has ht))) |
| 149 | refine ⟨fun i j => (hG i j).toLp _, fun i j => (hG i j).coeFn_toLp, ?_⟩ |
| 150 | intro i |
| 151 | rw [← directional_localize_space hs ha has hp] |
| 152 | apply smooth_pressure_gradient (fun i => localize a (U i)) (fun i => localize (deriv a) (U i)) |
| 153 | (fun i j => localize a (G i j)) (localize a p) hU hV hG smoothU smoothV smoothG smoothP |
| 154 | · intro z |
| 155 | rw [divergence_localize hs ha has hu] |
| 156 | by_cases hz : a (timeProj z) = 0 |
| 157 | · simp [localize, hz] |
| 158 | · simp [localize, divU z (in_s has hz)] |
| 159 | · intro z |
| 160 | rw [divergence_localize hs had hads hu] |
| 161 | by_cases hz : deriv a (timeProj z) = 0 |
| 162 | · simp [localize, hz] |
| 163 | · simp [localize, divU z (in_s hads hz)] |
| 164 | · intro j z |
| 165 | rw [momentum_localize hs ha has hu hg, directional_localize_space hs ha has hp] |
| 166 | by_cases hz : a (timeProj z) = 0 |
| 167 | · simp [localize, hz] |
| 168 | · simp [localize, eqn j z (in_s has hz)] |
| 169 | |
| 170 | end NavierStokes.R3LocalizedPressure |