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.SobolevInterpolation |
| 2 | import Euler.VolterraConvolution |
| 3 | |
| 4 | /-! Actual uniform-in-time interpolation and its Cauchy consequence. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerSobolevPathInterpolation |
| 9 | |
| 10 | open Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerSobolevInterpolation |
| 11 | open scoped Topology |
| 12 | |
| 13 | /-- A squared difference estimate transfers the Cauchy property without an unproved interpolation premise. -/ |
| 14 | theorem cauchySeq_of_square_bound {E F : Type*} [NormedAddCommGroup E] [NormedAddCommGroup F] |
| 15 | (f : ℕ → E) (g : ℕ → F) (A : ℝ) (hA : 0 ≤ A) (hf : CauchySeq f) |
| 16 | (h : ∀ m n, ‖g m-g n‖^2 ≤ A*‖f m-f n‖) : CauchySeq g := by |
| 17 | apply Metric.cauchySeq_iff.mpr |
| 18 | intro ε hε |
| 19 | have hd : 0 < ε^2/(A+1) := div_pos (sq_pos_of_pos hε) (by linarith) |
| 20 | obtain ⟨N,hN⟩ := Metric.cauchySeq_iff.mp hf (ε^2/(A+1)) hd |
| 21 | refine ⟨N,fun m hm n hn => ?_⟩ |
| 22 | have hs := h m n |
| 23 | have hp := hN m hm n hn |
| 24 | rw [dist_eq_norm] at hp ⊢ |
| 25 | have hsmall : (A+1)*‖f m-f n‖ < ε^2 := by |
| 26 | have hh := (lt_div_iff₀ (by linarith : 0 < A+1)).mp hp |
| 27 | nlinarith only [hh] |
| 28 | have hf0 := norm_nonneg (f m-f n) |
| 29 | have hg0 := norm_nonneg (g m-g n) |
| 30 | nlinarith |
| 31 | |
| 32 | /-- Linear interpolation bounds transfer to differences using only the two state bounds. -/ |
| 33 | private theorem clm_difference_square_bound {V W : Type*} |
| 34 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 35 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 36 | (A B : V →L[ℝ] W) (h : ∀ u, ‖A u‖^2 ≤ ‖B u‖*‖u‖) |
| 37 | (M : ℝ) (u v : V) (hu : ‖u‖ ≤ M) (hv : ‖v‖ ≤ M) : |
| 38 | ‖A u-A v‖^2 ≤ 2*M*‖B u-B v‖ := by |
| 39 | have hb := h (u-v) |
| 40 | rw [map_sub, map_sub] at hb |
| 41 | have hs : ‖u-v‖ ≤ 2*M := |
| 42 | (norm_sub_le u v).trans ((add_le_add hu hv).trans_eq (two_mul M).symm) |
| 43 | exact hb.trans ((mul_le_mul_of_nonneg_left hs (norm_nonneg _)).trans_eq (mul_comm _ _)) |
| 44 | |
| 45 | variable (period : ℝ) [Fact (0 < period)] |
| 46 | |
| 47 | /-- The inherited normed group on each actual Sobolev space. -/ |
| 48 | local instance interpolationGroup (s : ℕ) : NormedAddCommGroup (SobolevSpace period s) := inferInstance |
| 49 | |
| 50 | /-- The inherited real normed space on each actual Sobolev space. -/ |
| 51 | local instance interpolationSpace (s : ℕ) : NormedSpace ℝ (SobolevSpace period s) := inferInstance |
| 52 | |
| 53 | /-- One actual Sobolev derivative coordinate as a continuous time-path operator. -/ |
| 54 | def wordPathOperator {s n : ℕ} (h : n ≤ s) (w : Fin n → Fin 4) (T : ℝ) : |
| 55 | C(Icc (0 : ℝ) T,SobolevSpace period s) →L[ℝ] C(Icc (0 : ℝ) T,LiftL2 period) := |
| 56 | (wordOperator period ⟨⟨n,Nat.lt_succ_of_le h⟩,w⟩).compLeftContinuous ℝ (Icc (0 : ℝ) T) |
| 57 | |
| 58 | /-- The derivative path is its literal derivative coordinate at each time. -/ |
| 59 | theorem wordPathOperator_apply {s n : ℕ} (h : n ≤ s) (w : Fin n → Fin 4) (T : ℝ) |
| 60 | (u : C(Icc (0 : ℝ) T,SobolevSpace period s)) (t : Icc (0 : ℝ) T) : |
| 61 | wordPathOperator period h w T u t = word period (u t) h w := rfl |
| 62 | |
| 63 | /-- The exact strong-derivative interpolation inequality also controls the uniform time-path norm. -/ |
| 64 | theorem wordPath_square_bound {s n : ℕ} (h : n+2 ≤ s) (w : Fin n → Fin 4) (i : Fin 4) |
| 65 | (T : ℝ) (u : C(Icc (0 : ℝ) T,SobolevSpace period s)) : |
| 66 | ‖wordPathOperator period (by omega : n+1 ≤ s) (Fin.cons i w) T u‖^2 ≤ |
| 67 | ‖wordPathOperator period (by omega : n ≤ s) w T u‖*‖u‖ := by |
| 68 | let A := ‖wordPathOperator period (by omega : n ≤ s) w T u‖*‖u‖ |
| 69 | have hA : 0 ≤ A := mul_nonneg |
| 70 | (norm_nonneg (wordPathOperator period (by omega : n ≤ s) w T u)) (norm_nonneg u) |
| 71 | have hb : ‖wordPathOperator period (by omega : n+1 ≤ s) (Fin.cons i w) T u‖ ≤ Real.sqrt A := by |
| 72 | apply (ContinuousMap.norm_le _ (Real.sqrt_nonneg A)).mpr |
| 73 | intro t |
| 74 | apply Real.le_sqrt_of_sq_le |
| 75 | exact (word_square_le_parent period h (u t) w i).trans |
| 76 | (mul_le_mul ((wordPathOperator period (by omega : n ≤ s) w T u).norm_coe_le_norm t) |
| 77 | (u.norm_coe_le_norm t) (norm_nonneg _) (norm_nonneg _)) |
| 78 | have hs := (sq_le_sq₀ (norm_nonneg _) (Real.sqrt_nonneg A)).mpr hb |
| 79 | rw [Real.sq_sqrt hA] at hs |
| 80 | exact hs |
| 81 | |
| 82 | /-- Actual derivative-coordinate paths preserve subtraction. -/ |
| 83 | theorem wordPath_sub {s n : ℕ} (h : n ≤ s) (w : Fin n → Fin 4) (T : ℝ) |
| 84 | (u v : C(Icc (0 : ℝ) T,SobolevSpace period s)) : |
| 85 | wordPathOperator period h w T (u-v) = wordPathOperator period h w T u-wordPathOperator period h w T v := by |
| 86 | ext t |
| 87 | rfl |
| 88 | |
| 89 | /-- The actual difference interpolation estimate depends only on the two given uniform state bounds. -/ |
| 90 | theorem wordPath_difference_square_bound {s n : ℕ} (h : n+2 ≤ s) (w : Fin n → Fin 4) (i : Fin 4) |
| 91 | (T M : ℝ) (u v : C(Icc (0 : ℝ) T,SobolevSpace period s)) (hu : ‖u‖ ≤ M) (hv : ‖v‖ ≤ M) : |
| 92 | ‖wordPathOperator period (by omega : n+1 ≤ s) (Fin.cons i w) T u- |
| 93 | wordPathOperator period (by omega : n+1 ≤ s) (Fin.cons i w) T v‖^2 ≤ |
| 94 | 2*M*‖wordPathOperator period (by omega : n ≤ s) w T u-wordPathOperator period (by omega : n ≤ s) w T v‖ := by |
| 95 | exact clm_difference_square_bound |
| 96 | (V := C(Icc (0 : ℝ) T,SobolevSpace period s)) |
| 97 | (W := C(Icc (0 : ℝ) T,LiftL2 period)) |
| 98 | (wordPathOperator period (by omega : n+1 ≤ s) (Fin.cons i w) T) |
| 99 | (wordPathOperator period (by omega : n ≤ s) w T) |
| 100 | (wordPath_square_bound period h w i T) M u v hu hv |
| 101 | |
| 102 | /-- Uniformly bounded actual Sobolev paths transfer Cauchy control from a parent word to a derivative. -/ |
| 103 | theorem wordPath_cauchy_step {s n : ℕ} (h : n+2 ≤ s) (w : Fin n → Fin 4) (i : Fin 4) |
| 104 | (T M : ℝ) (hM : 0 ≤ M) (u : ℕ → C(Icc (0 : ℝ) T,SobolevSpace period s)) |
| 105 | (hu : ∀ k, ‖u k‖ ≤ M) |
| 106 | (hw : CauchySeq (fun k => wordPathOperator period (by omega : n ≤ s) w T (u k))) : |
| 107 | CauchySeq (fun k => wordPathOperator period (by omega : n+1 ≤ s) (Fin.cons i w) T (u k)) := |
| 108 | cauchySeq_of_square_bound _ _ (2*M) (by positivity) hw |
| 109 | (fun k l => wordPath_difference_square_bound period h w i T M (u k) (u l) (hu k) (hu l)) |
| 110 | |
| 111 | end EulerSobolevPathInterpolation |