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.FlowEscapeBound |
| 2 | import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace |
| 3 | import Mathlib.MeasureTheory.Measure.OpenPos |
| 4 | import Mathlib.Analysis.InnerProductSpace.PiL2 |
| 5 | import Mathlib.Topology.Algebra.Order.Field |
| 6 | import Mathlib.Tactic |
| 7 | |
| 8 | /-! |
| 9 | # No vorticity arriving from spatial infinity |
| 10 | |
| 11 | The flow hypotheses below describe globally defined approximations to backward |
| 12 | characteristics. Their kinetic energy is uniformly bounded. On paths which |
| 13 | stay inside the approximation radius, nonzero endpoint vorticity must come |
| 14 | from the initial vorticity support. Initial support is trapped by the inverse |
| 15 | endpoint maps in one common ball. These hypotheses exclude all nonzero |
| 16 | vorticity outside that ball; no global pointwise velocity bound is needed. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | open Set MeasureTheory Filter |
| 22 | open scoped ENNReal Topology |
| 23 | |
| 24 | namespace Euler.ComparatorBridge |
| 25 | |
| 26 | local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) |
| 27 | |
| 28 | private theorem positive_volume_set_of_nonzero_outside |
| 29 | (w : ℝ³ → ℝ³) (hw : Continuous w) (B : ℝ) (x : ℝ³) |
| 30 | (hxB : B < ‖x‖) (hxw : w x ≠ 0) : |
| 31 | ∃ S : Set ℝ³, MeasurableSet S ∧ volume S ≠ ⊤ ∧ |
| 32 | 0 < volume.real S ∧ ∃ K₀ : ℝ, |
| 33 | ∀ y ∈ S, ‖y‖ ≤ K₀ ∧ B < ‖y‖ ∧ w y ≠ 0 := by |
| 34 | have hU : IsOpen ({y : ℝ³ | B < ‖y‖} ∩ {y : ℝ³ | w y ≠ 0}) := |
| 35 | (isOpen_lt continuous_const continuous_norm).inter (isOpen_ne.preimage hw) |
| 36 | obtain ⟨r, hr, hsub⟩ := Metric.isOpen_iff.mp hU x ⟨hxB, hxw⟩ |
| 37 | refine ⟨Metric.ball x r, measurableSet_ball, measure_ball_ne_top, |
| 38 | ?_, ‖x‖ + r, ?_⟩ |
| 39 | · exact ENNReal.toReal_pos |
| 40 | (Metric.measure_ball_pos volume x hr).ne' measure_ball_ne_top |
| 41 | · intro y hy |
| 42 | exact ⟨norm_le_norm_add_const_of_dist_le (Metric.mem_ball.mp hy).le, hsub hy⟩ |
| 43 | |
| 44 | /-- Approximate backward characteristics for a vorticity field at one time. |
| 45 | The parameter `R` is the spatial radius on which transport is valid. The |
| 46 | time parameter `s` runs backward from the endpoint (`s=0`) to the initial |
| 47 | time (`s=T`). -/ |
| 48 | structure BackwardVorticityFlows |
| 49 | (T energy supportRadius : ℝ) (K : Set ℝ³) (w₀ w : ℝ³ → ℝ³) where |
| 50 | flow : ℝ → ℝ → ℝ³ ≃ₜ ℝ³ |
| 51 | velocity : ℝ → ℝ → ℝ³ → ℝ³ |
| 52 | time_nonneg : 0 ≤ T |
| 53 | preserves_volume : ∀ R s, MeasurePreserving (flow R s) volume volume |
| 54 | initial_map : ∀ R x, flow R 0 x = x |
| 55 | joint_measurable : ∀ R, AEStronglyMeasurable |
| 56 | (fun sx : ℝ × ℝ³ => ‖velocity R sx.1 (flow R sx.1 sx.2)‖ ^ 2) |
| 57 | ((volume.restrict (Icc 0 T)).prod volume) |
| 58 | velocity_memLp : ∀ R s, MemLp (velocity R s) 2 volume |
| 59 | energy_bound : ∀ R s, (∫ x, ‖velocity R s x‖ ^ 2) ≤ energy |
| 60 | curve_continuous : ∀ R x, ContinuousOn (fun s => flow R s x) (Icc 0 T) |
| 61 | speed_continuous : ∀ R x, |
| 62 | ContinuousOn (fun s => velocity R s (flow R s x)) (Icc 0 T) |
| 63 | curve_derivative : ∀ R x s, s ∈ Ioo 0 T → |
| 64 | HasDerivAt (fun r => flow R r x) (velocity R s (flow R s x)) s |
| 65 | initial_support : Function.support w₀ ⊆ K |
| 66 | transport_nonzero : ∀ R x, |
| 67 | (∀ s ∈ Icc 0 T, ‖flow R s x‖ < R) → w x ≠ 0 → w₀ (flow R T x) ≠ 0 |
| 68 | forward_trap : ∀ R a, a ∈ K → ‖(flow R T).symm a‖ ≤ supportRadius |
| 69 | |
| 70 | namespace BackwardVorticityFlows |
| 71 | |
| 72 | variable {T energy supportRadius : ℝ} {K : Set ℝ³} {w₀ w : ℝ³ → ℝ³} |
| 73 | (F : BackwardVorticityFlows T energy supportRadius K w₀ w) |
| 74 | |
| 75 | include F |
| 76 | |
| 77 | /-- A nonzero-vorticity endpoint outside the trapped support has to leave |
| 78 | every approximation ball when traced backward. -/ |
| 79 | theorem escapes (R : ℝ) (x : ℝ³) (hx : supportRadius < ‖x‖) (hw : w x ≠ 0) : |
| 80 | ∃ s ∈ Icc 0 T, R ≤ ‖F.flow R s x‖ := by |
| 81 | by_contra hn |
| 82 | have hstay : ∀ s ∈ Icc 0 T, ‖F.flow R s x‖ < R := by |
| 83 | intro s hs |
| 84 | exact lt_of_not_ge (fun hr => hn ⟨s, hs, hr⟩) |
| 85 | have hstart : F.flow R T x ∈ K := |
| 86 | F.initial_support (F.transport_nonzero R x hstay hw) |
| 87 | have htrap := F.forward_trap R (F.flow R T x) hstart |
| 88 | have htrap' : ‖x‖ ≤ supportRadius := by |
| 89 | simpa only [Homeomorph.symm_apply_apply] using htrap |
| 90 | exact not_le_of_gt hx htrap' |
| 91 | |
| 92 | /-- Every bounded measurable set of nonzero vorticity outside the support |
| 93 | ball has the quantitative escape bound. -/ |
| 94 | theorem measure_nonzero_outside_le |
| 95 | (S : Set ℝ³) (hS : MeasurableSet S) (hfinite : volume S ≠ ⊤) |
| 96 | (K₀ R : ℝ) (hKR : K₀ < R) |
| 97 | (hSbound : ∀ x ∈ S, ‖x‖ ≤ K₀) |
| 98 | (hSoutside : ∀ x ∈ S, supportRadius < ‖x‖) |
| 99 | (hSnonzero : ∀ x ∈ S, w x ≠ 0) : |
| 100 | volume.real S ≤ energy * T ^ 2 / (R - K₀) ^ 2 := by |
| 101 | apply flow_escape_measure_le volume T K₀ R energy F.time_nonneg hKR |
| 102 | (fun s x => F.flow R s x) (F.velocity R) |
| 103 | (F.preserves_volume R) (fun s => (F.flow R s).measurableEmbedding) |
| 104 | (F.joint_measurable R) (F.velocity_memLp R) (F.energy_bound R) |
| 105 | (F.curve_continuous R) (F.speed_continuous R) (F.curve_derivative R) |
| 106 | S hS hfinite |
| 107 | · intro x hx |
| 108 | simpa only [F.initial_map] using hSbound x hx |
| 109 | · intro x hx |
| 110 | exact F.escapes R x (hSoutside x hx) (hSnonzero x hx) |
| 111 | |
| 112 | /-- Sending the approximation radius to infinity rules out a positive |
| 113 | measure set of bounded nonzero-vorticity endpoints outside the trapped ball. -/ |
| 114 | theorem measure_nonzero_outside_eq_zero |
| 115 | (S : Set ℝ³) (hS : MeasurableSet S) (hfinite : volume S ≠ ⊤) |
| 116 | (K₀ : ℝ) (hSbound : ∀ x ∈ S, ‖x‖ ≤ K₀) |
| 117 | (hSoutside : ∀ x ∈ S, supportRadius < ‖x‖) |
| 118 | (hSnonzero : ∀ x ∈ S, w x ≠ 0) : volume.real S = 0 := by |
| 119 | have hlim : Tendsto (fun r : ℝ => energy * T ^ 2 / r ^ 2) atTop (𝓝 0) := |
| 120 | tendsto_const_nhds.div_atTop (tendsto_pow_atTop (by norm_num)) |
| 121 | have hz : volume.real S ≤ 0 := by |
| 122 | apply ge_of_tendsto hlim |
| 123 | filter_upwards [eventually_gt_atTop (0 : ℝ)] with r hr |
| 124 | have hh := F.measure_nonzero_outside_le S hS hfinite K₀ (K₀ + r) |
| 125 | (by linarith) hSbound hSoutside hSnonzero |
| 126 | simpa only [add_sub_cancel_left] using hh |
| 127 | exact le_antisymm hz measureReal_nonneg |
| 128 | |
| 129 | /-- Continuity removes the null exceptional set: vorticity vanishes |
| 130 | pointwise outside the common ball containing the transported initial support. -/ |
| 131 | theorem zero_outside (hw : Continuous w) (x : ℝ³) (hx : supportRadius < ‖x‖) : |
| 132 | w x = 0 := by |
| 133 | by_contra hn |
| 134 | obtain ⟨S, hS, hfinite, hpos, K₀, hprops⟩ := |
| 135 | positive_volume_set_of_nonzero_outside w hw supportRadius x hx hn |
| 136 | have hz := F.measure_nonzero_outside_eq_zero S hS hfinite K₀ |
| 137 | (fun y hy => (hprops y hy).1) (fun y hy => (hprops y hy).2.1) |
| 138 | (fun y hy => (hprops y hy).2.2) |
| 139 | linarith |
| 140 | |
| 141 | /-- The transported field is supported in one fixed compact ball. -/ |
| 142 | theorem support_subset_closedBall (hw : Continuous w) : |
| 143 | Function.support w ⊆ Metric.closedBall (0 : ℝ³) supportRadius := by |
| 144 | intro x hx |
| 145 | rw [Metric.mem_closedBall, dist_zero_right] |
| 146 | exact le_of_not_gt (fun hlt => hx (F.zero_outside hw x hlt)) |
| 147 | |
| 148 | theorem hasCompactSupport (hw : Continuous w) : HasCompactSupport w := by |
| 149 | exact HasCompactSupport.intro (isCompact_closedBall (0 : ℝ³) supportRadius) |
| 150 | (fun x hx => F.zero_outside hw x (by |
| 151 | simpa only [Metric.mem_closedBall, dist_zero_right, not_le] using hx)) |
| 152 | |
| 153 | end BackwardVorticityFlows |
| 154 | end Euler.ComparatorBridge |