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 Mathlib.Analysis.Normed.Group.Basic |
| 2 | import Mathlib.Topology.Algebra.InfiniteSum.Order |
| 3 | import Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 4 | |
| 5 | /-! |
| 6 | # Confinement by summable changes of particle labels |
| 7 | |
| 8 | The packet construction composes particle maps as `Xₙ₊₁ = Xₙ ∘ Yₙ`. |
| 9 | Bounding the displacement of this composition costs the sum of the two |
| 10 | displacements, without a derivative bound on `Xₙ`. Consequently summable |
| 11 | changes of labels confine the images of every fixed initial ball uniformly |
| 12 | over all stages, including when the velocity gradients are unbounded. |
| 13 | |
| 14 | The horizon predicate permits the time intervals to shrink with the stage. |
| 15 | The hypotheses below are explicit: this file does not yet assert their |
| 16 | instantiation for the packet choices made by the development. |
| 17 | -/ |
| 18 | |
| 19 | namespace Euler.ComparatorBridge |
| 20 | |
| 21 | open Finset Set |
| 22 | |
| 23 | variable {E : Type*} [NormedAddCommGroup E] |
| 24 | |
| 25 | theorem displacement_comp_le (X Y : E → E) {M δ : ℝ} |
| 26 | (hX : ∀ x, ‖X x - x‖ ≤ M) (hY : ∀ x, ‖Y x - x‖ ≤ δ) (x : E) : |
| 27 | ‖X (Y x) - x‖ ≤ M + δ := by |
| 28 | calc |
| 29 | ‖X (Y x) - x‖ = ‖(X (Y x) - Y x) + (Y x - x)‖ := by |
| 30 | rw [sub_add_sub_cancel] |
| 31 | _ ≤ ‖X (Y x) - Y x‖ + ‖Y x - x‖ := norm_add_le _ _ |
| 32 | _ ≤ M + δ := add_le_add (hX _) (hY _) |
| 33 | |
| 34 | omit [NormedAddCommGroup E] in |
| 35 | /-- A transported quantity that starts supported in `K` remains supported in |
| 36 | the region containing its transported labels. Only preservation of zero is |
| 37 | needed; the transported quantity need not be constant along trajectories. -/ |
| 38 | theorem support_subset_of_transport {F : Type*} [Zero F] |
| 39 | (X Y : E → E) (w₀ w : E → F) {K L : Set E} |
| 40 | (hright : ∀ x, X (Y x) = x) (hmap : MapsTo X K L) |
| 41 | (hinitial : Function.support w₀ ⊆ K) |
| 42 | (htransport : ∀ a, w₀ a = 0 → w (X a) = 0) : |
| 43 | Function.support w ⊆ L := by |
| 44 | classical |
| 45 | intro x hx |
| 46 | by_contra houtside |
| 47 | have ha : Y x ∉ K := fun hy => houtside (hright x ▸ hmap hy) |
| 48 | have hzero : w₀ (Y x) = 0 := by |
| 49 | by_contra hne |
| 50 | exact ha (hinitial (Function.mem_support.mpr hne)) |
| 51 | have h := htransport (Y x) hzero |
| 52 | rw [hright x] at h |
| 53 | exact (Function.mem_support.mp hx) h |
| 54 | |
| 55 | variable {Time : Type*} (H : ℕ → Time → Prop) |
| 56 | (X Y : ℕ → Time → E → E) (M : ℝ) (δ : ℕ → ℝ) |
| 57 | (hbase : ∀ t, H 0 t → ∀ x, ‖X 0 t x - x‖ ≤ M) |
| 58 | (hnest : ∀ n t, H (n + 1) t → H n t) |
| 59 | (hstep : ∀ n t, H (n + 1) t → ∀ x, X (n + 1) t x = X n t (Y n t x)) |
| 60 | (hsmall : ∀ n t, H (n + 1) t → ∀ x, ‖Y n t x - x‖ ≤ δ n) |
| 61 | |
| 62 | include hbase hnest hstep hsmall in |
| 63 | theorem stage_displacement_le_partial_sum (n : ℕ) (t : Time) (ht : H n t) (x : E) : |
| 64 | ‖X n t x - x‖ ≤ M + ∑ i ∈ range n, δ i := by |
| 65 | induction n generalizing x with |
| 66 | | zero => simpa using hbase t ht x |
| 67 | | succ n ih => |
| 68 | rw [hstep n t ht, sum_range_succ, ← add_assoc] |
| 69 | exact displacement_comp_le (X n t) (Y n t) |
| 70 | (fun y => ih (hnest n t ht) y) (hsmall n t ht) x |
| 71 | |
| 72 | include hbase hnest hstep hsmall in |
| 73 | theorem stage_displacement_le_of_partial_sums {C : ℝ} |
| 74 | (hC : ∀ n, ∑ i ∈ range n, δ i ≤ C) |
| 75 | (n : ℕ) (t : Time) (ht : H n t) (x : E) : |
| 76 | ‖X n t x - x‖ ≤ M + C := by |
| 77 | exact (stage_displacement_le_partial_sum H X Y M δ hbase hnest hstep hsmall n t ht x).trans |
| 78 | (add_le_add le_rfl (hC n)) |
| 79 | |
| 80 | include hbase hnest hstep hsmall in |
| 81 | theorem stage_mapsTo_closedBall_of_partial_sums {C : ℝ} |
| 82 | (hC : ∀ n, ∑ i ∈ range n, δ i ≤ C) |
| 83 | (R : ℝ) (n : ℕ) (t : Time) (ht : H n t) : |
| 84 | MapsTo (X n t) (Metric.closedBall 0 R) (Metric.closedBall 0 (R + M + C)) := by |
| 85 | intro x hx |
| 86 | rw [Metric.mem_closedBall, dist_zero_right] at hx ⊢ |
| 87 | calc |
| 88 | ‖X n t x‖ = ‖x + (X n t x - x)‖ := by rw [add_comm x, sub_add_cancel] |
| 89 | _ ≤ ‖x‖ + ‖X n t x - x‖ := norm_add_le _ _ |
| 90 | _ ≤ R + (M + C) := add_le_add hx |
| 91 | (stage_displacement_le_of_partial_sums H X Y M δ hbase hnest hstep hsmall hC n t ht x) |
| 92 | _ = R + M + C := (add_assoc _ _ _).symm |
| 93 | |
| 94 | include hbase hnest hstep hsmall in |
| 95 | theorem stage_displacement_le_tsum (hδ : Summable δ) (hδ0 : ∀ n, 0 ≤ δ n) |
| 96 | (n : ℕ) (t : Time) (ht : H n t) (x : E) : |
| 97 | ‖X n t x - x‖ ≤ M + ∑' i, δ i := by |
| 98 | exact (stage_displacement_le_partial_sum H X Y M δ hbase hnest hstep hsmall n t ht x).trans |
| 99 | (add_le_add le_rfl (hδ.sum_le_tsum (range n) (fun i _ => hδ0 i))) |
| 100 | |
| 101 | include hbase hnest hstep hsmall in |
| 102 | theorem stage_mapsTo_closedBall (hδ : Summable δ) (hδ0 : ∀ n, 0 ≤ δ n) |
| 103 | (R : ℝ) (n : ℕ) (t : Time) (ht : H n t) : |
| 104 | MapsTo (X n t) (Metric.closedBall 0 R) (Metric.closedBall 0 (R + M + ∑' i, δ i)) := by |
| 105 | intro x hx |
| 106 | rw [Metric.mem_closedBall, dist_zero_right] at hx ⊢ |
| 107 | calc |
| 108 | ‖X n t x‖ = ‖x + (X n t x - x)‖ := by rw [add_comm x, sub_add_cancel] |
| 109 | _ ≤ ‖x‖ + ‖X n t x - x‖ := norm_add_le _ _ |
| 110 | _ ≤ R + (M + ∑' i, δ i) := add_le_add hx |
| 111 | (stage_displacement_le_tsum H X Y M δ hbase hnest hstep hsmall hδ hδ0 n t ht x) |
| 112 | _ = R + M + ∑' i, δ i := (add_assoc _ _ _).symm |
| 113 | |
| 114 | end Euler.ComparatorBridge |