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.SmoothL2Gevrey |
| 2 | import Euler.GevreyCompositionLp |
| 3 | import Euler.GevreyProductLp |
| 4 | import Euler.GevreyFixedShift |
| 5 | import Euler.GevreyGeneratingDerivatives |
| 6 | |
| 7 | /-! Quantitative calculus for concrete smooth L² fields, with the outer |
| 8 | factor in L² and the inner coordinate change preserving volume. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerGevrey |
| 13 | |
| 14 | open EulerOperatorGevreyCalculus |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | variable {E V W : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 18 | [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 19 | |
| 20 | def HasSupBound (f : E → V) (C R : ℝ) : Prop := |
| 21 | ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ C*R^n*(n.factorial : ℝ)^2 |
| 22 | |
| 23 | theorem HasSupBound.mono {f : E → V} {C R D S : ℝ} |
| 24 | (h : HasSupBound f C R) (hC : 0 ≤ C) (hR : 0 ≤ R) (hCD : C ≤ D) (hRS : R ≤ S) : |
| 25 | HasSupBound f D S := by |
| 26 | intro n x |
| 27 | exact (h n x).trans (mul_le_mul_of_nonneg_right |
| 28 | (mul_le_mul hCD (pow_le_pow_left₀ hR hRS n) (pow_nonneg hR n) (hC.trans hCD)) (sq_nonneg _)) |
| 29 | |
| 30 | theorem HasSupBound.derivative {f : E → V} {C R : ℝ} |
| 31 | (h : HasSupBound f C R) (hC : 0 ≤ C) (hR : 0 ≤ R) : |
| 32 | HasSupBound (fderiv ℝ f) (C*R) (4*R) := by |
| 33 | intro n x |
| 34 | rw [norm_iteratedFDeriv_fderiv] |
| 35 | apply (h (n+1) x).trans |
| 36 | simpa only [majorant,Nat.add_zero,mul_assoc] using |
| 37 | mul_le_mul_of_nonneg_left (majorant_one_le_radius_four R hR n) hC |
| 38 | |
| 39 | theorem HasSupBound.comp {f : E → E} {g : E → V} {C B R S : ℝ} |
| 40 | (hg : HasSupBound g C S) (hf : ContDiff ℝ ∞ f) (hgsm : ContDiff ℝ ∞ g) |
| 41 | (hC : 0 ≤ C) (hB : 0 ≤ B) (hR : 0 ≤ R) (hS : 0 ≤ S) |
| 42 | (hfb : ∀ n, 0 < n → ∀ x, ‖iteratedFDeriv ℝ n f x‖ ≤ B*R^n*(n.factorial : ℝ)^2) : |
| 43 | HasSupBound (g ∘ f) C (R*(B*S+2)) := |
| 44 | EulerGevreyComposition.norm_iteratedFDeriv_comp_gevrey f g hf hgsm C B R S hC hB hR hS hg hfb |
| 45 | |
| 46 | theorem HasSupBound.apply {f : E → V →L[ℝ] W} {g : E → V} {B C R : ℝ} |
| 47 | (hf : HasSupBound f B R) (hg : HasSupBound g C R) |
| 48 | (hfsm : ContDiff ℝ ∞ f) (hgsm : ContDiff ℝ ∞ g) |
| 49 | (hB : 0 ≤ B) (hC : 0 ≤ C) (hR : 0 ≤ R) : |
| 50 | HasSupBound (fun x => f x (g x)) (3*B*C) R := by |
| 51 | intro n x |
| 52 | have h := clm_apply_bound f g hfsm hgsm R B C hR hB hC 0 0 |
| 53 | (fun j y => by simpa only [majorant,Nat.add_zero,mul_assoc] using hf j y) |
| 54 | (fun j y => by simpa only [majorant,Nat.add_zero,mul_assoc] using hg j y) n x |
| 55 | simpa only [majorant,Nat.add_zero,mul_assoc] using h |
| 56 | |
| 57 | theorem positive_id_add_bound (f : E → E) (hf : ContDiff ℝ ∞ f) (B R : ℝ) |
| 58 | (hB : 0 ≤ B) (hR : 0 ≤ R) (hb : HasSupBound f B R) |
| 59 | (n : ℕ) (hn : 0 < n) (x : E) : |
| 60 | ‖iteratedFDeriv ℝ n (fun y => y+f y) x‖ ≤ (1+B)*(1+R)^n*(n.factorial : ℝ)^2 := by |
| 61 | rw [show (fun y => y+f y) = id+f from rfl, |
| 62 | iteratedFDeriv_add_apply contDiffAt_id (hf.contDiffAt.of_le (by simp))] |
| 63 | have hi : ‖iteratedFDeriv ℝ n (id : E → E) x‖ ≤ 1 := by |
| 64 | have h := EulerGevreyGeneratingDerivatives.norm_iteratedFDeriv_id_le n hn x |
| 65 | split_ifs at h <;> linarith |
| 66 | have hfact : (1 : ℝ) ≤ n.factorial := by exact_mod_cast Nat.succ_le_of_lt (Nat.factorial_pos n) |
| 67 | have hweight : (1 : ℝ) ≤ (1+R)^n*(n.factorial : ℝ)^2 := by |
| 68 | exact one_le_mul_of_one_le_of_one_le (one_le_pow₀ (by linarith)) (by nlinarith) |
| 69 | have hdisp : ‖iteratedFDeriv ℝ n f x‖ ≤ B*(1+R)^n*(n.factorial : ℝ)^2 := |
| 70 | (hb.mono hB hR le_rfl (by linarith)) n x |
| 71 | exact (norm_add_le _ _).trans ((add_le_add (hi.trans hweight) hdisp).trans_eq (by ring)) |
| 72 | |
| 73 | end EulerGevrey |
| 74 | |
| 75 | namespace EulerLpTranslation.SmoothL2Field |
| 76 | |
| 77 | open MeasureTheory EulerSmoothLimit EulerGevrey |
| 78 | open scoped ContDiff |
| 79 | |
| 80 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 81 | [NormedAddCommGroup W] [NormedSpace ℝ W] |
| 82 | |
| 83 | variable (f : Space → Space) (hf : ContDiff ℝ ∞ f) (hmp : MeasurePreserving f volume volume) |
| 84 | (B R : ℝ) (hB : 0 ≤ B) (hR : 0 ≤ R) |
| 85 | (hfb : ∀ n, 0 < n → ∀ x, ‖iteratedFDeriv ℝ n f x‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 86 | (A : SmoothL2Field V) (C S : ℝ) (hC : 0 ≤ C) (hS : 0 ≤ S) (ha : A.HasJetBound C S) |
| 87 | |
| 88 | include hf hmp hB hR hfb hC hS ha in |
| 89 | theorem compose_memLp_and_bound (n : ℕ) : |
| 90 | MemLp (iteratedFDeriv ℝ n (A.field ∘ f)) 2 volume ∧ |
| 91 | (eLpNorm (iteratedFDeriv ℝ n (A.field ∘ f)) 2 volume).toReal ≤ |
| 92 | C*(R*(B*S+2))^n*(n.factorial : ℝ)^2 := |
| 93 | EulerGevreyCompositionLp.composition_memLp_and_bound volume f A.field hf A.smooth hmp n |
| 94 | (((A.smooth.comp hf).continuous_iteratedFDeriv (m := n) (by simp)).aestronglyMeasurable) |
| 95 | C B R S hC hB hR hS (fun j _ => A.integrable j) |
| 96 | (fun j _ => by simpa only [← norm_jetLp] using ha j) (fun j hj _ => hfb j hj) |
| 97 | |
| 98 | def composeField : SmoothL2Field V where |
| 99 | field := A.field ∘ f |
| 100 | smooth := A.smooth.comp hf |
| 101 | integrable n := (compose_memLp_and_bound f hf hmp B R hB hR hfb A C S hC hS ha n).1 |
| 102 | |
| 103 | theorem composeField_bound : |
| 104 | (composeField f hf hmp B R hB hR hfb A C S hC hS ha).HasJetBound C (R*(B*S+2)) := by |
| 105 | intro n |
| 106 | rw [norm_jetLp] |
| 107 | exact (compose_memLp_and_bound f hf hmp B R hB hR hfb A C S hC hS ha n).2 |
| 108 | |
| 109 | omit f hf hmp B R hB hR hfb A C S hC hS ha in |
| 110 | def productField (g : Space → V →L[ℝ] W) (hg : ContDiff ℝ ∞ g) (A : SmoothL2Field V) |
| 111 | (B C R : ℝ) (hB : 0 ≤ B) (hC : 0 ≤ C) (hR : 0 ≤ R) |
| 112 | (hgb : HasSupBound g B R) (hab : A.HasJetBound C R) : SmoothL2Field W where |
| 113 | field x := g x (A.field x) |
| 114 | smooth := hg.clm_apply A.smooth |
| 115 | integrable n := (EulerGevreyProductLp.clm_apply_memLp_and_bound volume id g A.field hg A.smooth n |
| 116 | (((hg.clm_apply A.smooth).continuous_iteratedFDeriv (m := n) (by simp)).aestronglyMeasurable) |
| 117 | R B C hR hB hC 0 0 |
| 118 | (fun j _ x => by simpa only [id_eq,majorant,Nat.add_zero,mul_assoc] using hgb j x) |
| 119 | (fun j _ => A.integrable j) |
| 120 | (fun j _ => by simpa only [id_eq,← norm_jetLp,majorant,Nat.add_zero,mul_assoc] using hab j)).1 |
| 121 | |
| 122 | omit f hf hmp B R hB hR hfb A C S hC hS ha in |
| 123 | theorem productField_bound (g : Space → V →L[ℝ] W) (hg : ContDiff ℝ ∞ g) (A : SmoothL2Field V) |
| 124 | (B C R : ℝ) (hB : 0 ≤ B) (hC : 0 ≤ C) (hR : 0 ≤ R) |
| 125 | (hgb : HasSupBound g B R) (hab : A.HasJetBound C R) : |
| 126 | (productField g hg A B C R hB hC hR hgb hab).HasJetBound (3*B*C) R := by |
| 127 | intro n |
| 128 | have h := (EulerGevreyProductLp.clm_apply_memLp_and_bound volume id g A.field hg A.smooth n |
| 129 | (((hg.clm_apply A.smooth).continuous_iteratedFDeriv (m := n) (by simp)).aestronglyMeasurable) |
| 130 | R B C hR hB hC 0 0 |
| 131 | (fun j _ x => by simpa only [id_eq,majorant,Nat.add_zero,mul_assoc] using hgb j x) |
| 132 | (fun j _ => A.integrable j) |
| 133 | (fun j _ => by simpa only [id_eq,← norm_jetLp,majorant,Nat.add_zero,mul_assoc] using hab j)).2 |
| 134 | simpa only [id_eq,norm_jetLp,productField,majorant,Nat.add_zero,mul_assoc] using h |
| 135 | |
| 136 | end EulerLpTranslation.SmoothL2Field |