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 Euler.CurlTimeDerivative |
| 3 | import Euler.CurlTransportAlgebra |
| 4 | import Euler.VorticityTransport |
| 5 | |
| 6 | /-! The ordinary vorticity equation of a Comparator solution follows from |
| 7 | its scalar-pressure, unforced Euler equation. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open Set InnerProductSpace EulerSmoothLimit EulerMeanCutoffCurl |
| 12 | open scoped ContDiff Topology |
| 13 | |
| 14 | namespace Euler.EulerExistenceAndSmoothnessR3 |
| 15 | |
| 16 | variable {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} |
| 17 | (h : EulerExistenceAndSmoothnessR3 u₀ v p) |
| 18 | |
| 19 | include h |
| 20 | |
| 21 | /-- The reference's joint smoothness in time-first coordinates. -/ |
| 22 | theorem velocity_joint_contDiffAt (t : ℝ) (ht : 0 < t) (x : Space) : |
| 23 | ContDiffAt ℝ ∞ (fun z : ℝ × Space => v z.2 z.1) (t, x) := by |
| 24 | have hc : ContDiffAt ℝ ∞ (Function.uncurry v) (x, t) := |
| 25 | h.velocity_smooth.contDiffAt (prod_mem_nhds Filter.univ_mem (Ici_mem_nhds ht)) |
| 26 | exact hc.comp (t, x) (contDiffAt_snd.prodMk contDiffAt_fst) |
| 27 | |
| 28 | /-- The actual time derivative of vorticity, obtained by taking curl of the |
| 29 | scalar-pressure Euler equation and commuting the ordinary derivatives. -/ |
| 30 | theorem vorticity_hasDerivAt (t : ℝ) (ht : 0 < t) (x : Space) : |
| 31 | HasDerivAt (fun r => vectorCurl (v · r) x) |
| 32 | (fderiv ℝ (v · t) x (vectorCurl (v · t) x) - |
| 33 | fderiv ℝ (vectorCurl (v · t)) x (v x t)) t := by |
| 34 | have hc := ComparatorBridge.vectorCurl_hasDerivAt |
| 35 | ((h.velocity_joint_contDiffAt t ht x).of_le (by simp)) |
| 36 | have heq : (fun y => deriv (v y ·) t) = |
| 37 | (fun y => -fderiv ℝ (v · t) y (v y t) - gradient (p · t) y) := by |
| 38 | funext y |
| 39 | exact (h.pointwise_euler y t ht).deriv |
| 40 | have hdiv : EulerSmoothLimit.divergence (v · t) x = 0 := h.div_free x t ht.le |
| 41 | rw [heq, EulerComparatorCurlTransport.vectorCurl_euler_rhs (v · t) (p · t) |
| 42 | (h.velocity_contDiff t ht.le) (h.pressure_contDiff t ht.le) x hdiv] at hc |
| 43 | exact hc |
| 44 | |
| 45 | /-- The full spacetime derivative of ordinary curl satisfies the vorticity |
| 46 | stretching law in the material direction `(1,v)`. -/ |
| 47 | theorem vorticity_material_derivative (t : ℝ) (ht : 0 < t) (x : Space) : |
| 48 | fderiv ℝ (fun z : ℝ × Space => vectorCurl (v · z.1) z.2) |
| 49 | (t, x) (1, v x t) = fderiv ℝ (v · t) x (vectorCurl (v · t) x) := by |
| 50 | rw [ComparatorBridge.joint_vectorCurl_fderiv_apply |
| 51 | (h.velocity_joint_contDiffAt t ht x)] |
| 52 | have hcurl : vectorCurl (fun y => deriv (v y ·) t) x = |
| 53 | fderiv ℝ (v · t) x (vectorCurl (v · t) x) - |
| 54 | fderiv ℝ (vectorCurl (v · t)) x (v x t) := by |
| 55 | exact (ComparatorBridge.vectorCurl_hasDerivAt |
| 56 | ((h.velocity_joint_contDiffAt t ht x).of_le (by simp))).unique |
| 57 | (h.vorticity_hasDerivAt t ht x) |
| 58 | rw [hcurl] |
| 59 | abel |
| 60 | |
| 61 | |
| 62 | /-- Joint smoothness in time-first coordinates, including the initial time. -/ |
| 63 | theorem velocity_joint_contDiffOn : |
| 64 | ContDiffOn ℝ ∞ (fun z : ℝ × Space => v z.2 z.1) |
| 65 | (Ici 0 ×ˢ (univ : Set Space)) := |
| 66 | h.velocity_smooth.comp (contDiff_snd.prodMk contDiff_fst).contDiffOn |
| 67 | (fun _z hz => ⟨mem_univ _, hz.1⟩) |
| 68 | |
| 69 | /-- Ordinary spatial derivatives remain jointly continuous at time zero. -/ |
| 70 | theorem velocity_spatial_fderiv_continuousOn : |
| 71 | ContinuousOn (fun z : ℝ × Space => fderiv ℝ (v · z.1) z.2) |
| 72 | (Ici 0 ×ˢ (univ : Set Space)) := |
| 73 | (ComparatorBridge.joint_spatial_fderiv_contDiffOn h.velocity_joint_contDiffOn).continuousOn |
| 74 | |
| 75 | /-- Vorticity is jointly continuous through the initial time. -/ |
| 76 | theorem vorticity_continuousOn : |
| 77 | ContinuousOn (fun z : ℝ × Space => vectorCurl (v · z.1) z.2) |
| 78 | (Ici 0 ×ˢ (univ : Set Space)) := |
| 79 | (ComparatorBridge.joint_vectorCurl_contDiffOn h.velocity_joint_contDiffOn).continuousOn |
| 80 | |
| 81 | /-- Zero vorticity is preserved on any genuine particle trajectory that |
| 82 | exists on the whole compact time interval. -/ |
| 83 | theorem vorticity_eq_zero_along_trajectory |
| 84 | (X : ℝ → Space) (T : ℝ) (hX : ContinuousOn X (Icc 0 T)) |
| 85 | (hXd : ∀ r ∈ Ioo 0 T, HasDerivAt X (v (X r) r) r) |
| 86 | (hz : vectorCurl (v · 0) (X 0) = 0) (t : ℝ) (ht : t ∈ Icc 0 T) : |
| 87 | vectorCurl (v · t) (X t) = 0 := by |
| 88 | apply ComparatorBridge.transport_eq_zero_along_trajectory |
| 89 | (fun z : ℝ × Space => vectorCurl (v · z.1) z.2) |
| 90 | (fun z : ℝ × Space => v z.2 z.1) X T |
| 91 | · exact h.vorticity_continuousOn.mono |
| 92 | (by intro z hz; exact ⟨hz.1.1, hz.2⟩) |
| 93 | · exact hX |
| 94 | · exact h.velocity_spatial_fderiv_continuousOn.comp (continuousOn_id.prodMk hX) |
| 95 | (fun r hr => ⟨hr.1, mem_univ _⟩) |
| 96 | · intro r hr |
| 97 | exact (ComparatorBridge.joint_vectorCurl_contDiffAt |
| 98 | (h.velocity_joint_contDiffAt r hr.1 (X r))).differentiableAt (by simp) |
| 99 | · intro r hr |
| 100 | exact h.vorticity_material_derivative r hr.1 (X r) |
| 101 | · exact hXd |
| 102 | · exact hz |
| 103 | · exact ht |
| 104 | |
| 105 | /-- Vorticity support is contained in the image of its initial support under |
| 106 | any complete continuous particle flow with a right inverse at the target time. |
| 107 | The support propagation itself follows from the reference Euler equation. -/ |
| 108 | theorem vorticity_tsupport_subset_flow_image |
| 109 | (X : ℝ → Space → Space) (Y : Space → Space) (T t : ℝ) |
| 110 | (ht : t ∈ Icc 0 T) |
| 111 | (hX : ∀ a, ContinuousOn (fun r => X r a) (Icc 0 T)) |
| 112 | (hXd : ∀ a r, r ∈ Ioo 0 T → HasDerivAt (fun s => X s a) (v (X r a) r) r) |
| 113 | (hX0 : ∀ a, X 0 a = a) (hXt : Continuous (X t)) |
| 114 | (hXY : ∀ x, X t (Y x) = x) |
| 115 | (hc : HasCompactSupport (vectorCurl u₀)) : |
| 116 | tsupport (vectorCurl (v · t)) ⊆ X t '' tsupport (vectorCurl u₀) := by |
| 117 | have he : (v · 0) = u₀ := funext h.initial_condition |
| 118 | have hcomp : HasCompactSupport (vectorCurl (v · 0)) := by simpa only [he] using hc |
| 119 | have hs := ComparatorBridge.tsupport_subset_flow_image |
| 120 | (fun r => vectorCurl (v · r)) X Y t hcomp hXt hXY |
| 121 | (fun a ha => h.vorticity_eq_zero_along_trajectory (fun r => X r a) T |
| 122 | (hX a) (hXd a) (by simpa only [hX0 a] using ha) t ht) |
| 123 | simpa only [he] using hs |
| 124 | |
| 125 | /-- Compact initial vorticity therefore stays compactly supported under a |
| 126 | complete particle flow; no global bounds on spatial derivatives are assumed. -/ |
| 127 | theorem vorticity_hasCompactSupport_of_flow |
| 128 | (X : ℝ → Space → Space) (Y : Space → Space) (T t : ℝ) |
| 129 | (ht : t ∈ Icc 0 T) |
| 130 | (hX : ∀ a, ContinuousOn (fun r => X r a) (Icc 0 T)) |
| 131 | (hXd : ∀ a r, r ∈ Ioo 0 T → HasDerivAt (fun s => X s a) (v (X r a) r) r) |
| 132 | (hX0 : ∀ a, X 0 a = a) (hXt : Continuous (X t)) |
| 133 | (hXY : ∀ x, X t (Y x) = x) |
| 134 | (hc : HasCompactSupport (vectorCurl u₀)) : |
| 135 | HasCompactSupport (vectorCurl (v · t)) := |
| 136 | (hc.image hXt).of_isClosed_subset (isClosed_tsupport _) |
| 137 | (h.vorticity_tsupport_subset_flow_image X Y T t ht hX hXd hX0 hXt hXY hc) |
| 138 | |
| 139 | |
| 140 | /-- On a compact time interval all vorticity supports lie in one compact set: |
| 141 | the image of the compact initial support swept out by the particle flow. -/ |
| 142 | theorem vorticity_uniformCompactSupport_of_flow |
| 143 | (X Y : ℝ → Space → Space) (T : ℝ) |
| 144 | (hX : ContinuousOn (Function.uncurry X) (Icc 0 T ×ˢ (univ : Set Space))) |
| 145 | (hXd : ∀ a r, r ∈ Ioo 0 T → HasDerivAt (fun s => X s a) (v (X r a) r) r) |
| 146 | (hX0 : ∀ a, X 0 a = a) |
| 147 | (hXY : ∀ t ∈ Icc 0 T, ∀ x, X t (Y t x) = x) |
| 148 | (hc : HasCompactSupport (vectorCurl u₀)) : |
| 149 | ∃ K : Set Space, IsCompact K ∧ |
| 150 | ∀ t ∈ Icc 0 T, tsupport (vectorCurl (v · t)) ⊆ K := by |
| 151 | refine ⟨Function.uncurry X '' (Icc 0 T ×ˢ tsupport (vectorCurl u₀)), |
| 152 | (isCompact_Icc.prod hc).image_of_continuousOn |
| 153 | (hX.mono (by intro z hz; exact ⟨hz.1, mem_univ _⟩)), ?_⟩ |
| 154 | intro t ht x hx |
| 155 | have htcont : ∀ a, ContinuousOn (fun r => X r a) (Icc 0 T) := by |
| 156 | intro a |
| 157 | exact hX.comp (continuousOn_id.prodMk continuousOn_const) |
| 158 | (fun r hr => ⟨hr, mem_univ _⟩) |
| 159 | have hxcont : Continuous (X t) := |
| 160 | hX.comp_continuous (continuous_const.prodMk continuous_id) |
| 161 | (fun a => ⟨ht, mem_univ a⟩) |
| 162 | obtain ⟨a, ha, hax⟩ := h.vorticity_tsupport_subset_flow_image |
| 163 | X (Y t) T t ht htcont hXd hX0 hxcont (hXY t ht) hc hx |
| 164 | exact ⟨(t, a), ⟨ht, ha⟩, hax⟩ |
| 165 | |
| 166 | end Euler.EulerExistenceAndSmoothnessR3 |