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.H6Pressure |
| 2 | |
| 3 | /-! |
| 4 | Uniform finite-order product and pressure constants from bounds on the |
| 5 | actual coefficient derivative tree. At each fixed Sobolev order these |
| 6 | costs are finite polynomials in the coefficient bound and inverse coercivity. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerCoefficientJetPressureBounds |
| 12 | |
| 13 | open Finset EulerLiftedGradientSpace EulerSpatialSobolevInverse EulerJetProductBounds |
| 14 | |
| 15 | def productCost (B : ℝ) : ℕ → ℝ |
| 16 | | 0 => B |
| 17 | | q+1 => B+8*productCost B q |
| 18 | |
| 19 | def pressureCost (c B : ℝ) : ℕ → ℝ |
| 20 | | 0 => c⁻¹ |
| 21 | | q+1 => c⁻¹+4*(pressureCost c B q*(1+productCost B q*pressureCost c B q)) |
| 22 | |
| 23 | theorem productCost_nonneg (B : ℝ) (hB : 0 ≤ B) (q : ℕ) : 0 ≤ productCost B q := by |
| 24 | induction q with |
| 25 | | zero => exact hB |
| 26 | | succ q ih => simp only [productCost]; positivity |
| 27 | |
| 28 | theorem pressureCost_nonneg (c B : ℝ) (hc : 0 < c) (hB : 0 ≤ B) (q : ℕ) : |
| 29 | 0 ≤ pressureCost c B q := by |
| 30 | induction q with |
| 31 | | zero => exact inv_nonneg.mpr hc.le |
| 32 | | succ q ih => |
| 33 | have hp := productCost_nonneg B hB q |
| 34 | simp only [pressureCost] |
| 35 | positivity |
| 36 | |
| 37 | variable {P : ℝ} [Fact (0 < P)] {dirs : Fin 4 → LiftTangent} |
| 38 | |
| 39 | def TreeBound {s : ℕ} {A : SmoothCoefficient P} (K : CoefficientJet P dirs s A) (B : ℝ) : Prop := |
| 40 | match K with |
| 41 | | .zero A => (A.bound : ℝ) ≤ B |
| 42 | | .succ _ lower _ => (A.bound : ℝ) ≤ B ∧ ∀ i, TreeBound (lower i) B |
| 43 | |
| 44 | omit [Fact (0 < P)] in |
| 45 | theorem TreeBound.root {s : ℕ} {A : SmoothCoefficient P} {K : CoefficientJet P dirs s A} |
| 46 | {B : ℝ} (hK : TreeBound K B) : (A.bound : ℝ) ≤ B := by |
| 47 | cases K with |
| 48 | | zero => exact hK |
| 49 | | succ => exact hK.1 |
| 50 | |
| 51 | omit [Fact (0 < P)] in |
| 52 | theorem treeBound_of_levels {s : ℕ} {A : SmoothCoefficient P} (K : CoefficientJet P dirs s A) |
| 53 | (B : ℝ) (hb : ∀ n, n ≤ s → boundLevel P K n ≤ B) : TreeBound K B := by |
| 54 | induction K with |
| 55 | | zero A => simpa only [boundLevel,TreeBound] using hb 0 le_rfl |
| 56 | | @succ s A dA lower hd ih => |
| 57 | refine ⟨?_,?_⟩ |
| 58 | · simpa only [boundLevel] using hb 0 (Nat.zero_le _) |
| 59 | intro i |
| 60 | apply ih i |
| 61 | intro n hn |
| 62 | have hs : boundLevel P (lower i) n ≤ ∑ j : Fin 4, boundLevel P (lower j) n := |
| 63 | single_le_sum (fun j _ => boundLevel_nonneg (lower j)) (mem_univ i) |
| 64 | have hh := hb (n+1) (by omega) |
| 65 | rw [boundLevel] at hh |
| 66 | exact hs.trans hh |
| 67 | |
| 68 | omit [Fact (0 < P)] in |
| 69 | theorem TreeBound.truncate {s : ℕ} {A : SmoothCoefficient P} |
| 70 | {K : CoefficientJet P dirs (s+1) A} {B : ℝ} (hK : TreeBound K B) : |
| 71 | TreeBound K.truncate B := by |
| 72 | induction s generalizing A with |
| 73 | | zero => cases K; exact hK.1 |
| 74 | | succ s ih => |
| 75 | cases K with |
| 76 | | succ dA lower hd => |
| 77 | exact ⟨hK.1,fun i => ih (hK.2 i)⟩ |
| 78 | |
| 79 | omit [Fact (0 < P)] in |
| 80 | theorem TreeBound.restrict {s : ℕ} {A : SmoothCoefficient P} |
| 81 | {K : CoefficientJet P dirs s A} {B : ℝ} (hK : TreeBound K B) |
| 82 | (q : ℕ) (hq : q ≤ s) : TreeBound (EulerH6Pressure.CoefficientJet.restrict K q hq) B := by |
| 83 | induction q generalizing s A with |
| 84 | | zero => |
| 85 | rw [EulerH6Pressure.CoefficientJet.restrict,TreeBound] |
| 86 | exact hK.root |
| 87 | | succ q ih => |
| 88 | cases K with |
| 89 | | zero => omega |
| 90 | | succ dA lower hd => |
| 91 | rw [EulerH6Pressure.CoefficientJet.restrict,TreeBound] |
| 92 | exact ⟨hK.1,fun i => ih (hK.2 i) (by omega)⟩ |
| 93 | |
| 94 | omit [Fact (0 < P)] in |
| 95 | theorem TreeBound.productConstant_le {s : ℕ} {A : SmoothCoefficient P} |
| 96 | {K : CoefficientJet P dirs s A} {B : ℝ} (hK : TreeBound K B) : |
| 97 | K.productConstant ≤ productCost B s := by |
| 98 | induction s generalizing A with |
| 99 | | zero => cases K; simpa only [CoefficientJet.productConstant,productCost,TreeBound] using hK |
| 100 | | succ s ih => |
| 101 | cases K with |
| 102 | | succ dA lower hd => |
| 103 | rw [CoefficientJet.productConstant,productCost] |
| 104 | calc |
| 105 | _ ≤ B+∑ _i : Fin 4, (productCost B s+productCost B s) := |
| 106 | add_le_add hK.1 (sum_le_sum (fun i _ => |
| 107 | add_le_add (ih hK.truncate) (ih (hK.2 i)))) |
| 108 | _ = _ := by norm_num only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul]; ring |
| 109 | |
| 110 | omit [Fact (0 < P)] in |
| 111 | theorem TreeBound.pressureConstant_le {s : ℕ} {A : SmoothCoefficient P} |
| 112 | {K : CoefficientJet P dirs s A} {B : ℝ} (hK : TreeBound K B) |
| 113 | (c : ℝ) (hc : 0 < c) (hB : 0 ≤ B) : K.pressureConstant c ≤ pressureCost c B s := by |
| 114 | induction s generalizing A with |
| 115 | | zero => cases K; rw [CoefficientJet.pressureConstant,pressureCost] |
| 116 | | succ s ih => |
| 117 | cases K with |
| 118 | | succ dA lower hd => |
| 119 | rw [CoefficientJet.pressureConstant,pressureCost] |
| 120 | let K₀ := (CoefficientJet.succ dA lower hd).truncate |
| 121 | have hp := ih hK.truncate |
| 122 | have hp0 : 0 ≤ K₀.pressureConstant c := K₀.pressureConstant_nonneg c hc |
| 123 | have hP0 := pressureCost_nonneg c B hc hB s |
| 124 | have hC0 := productCost_nonneg B hB s |
| 125 | have ht (i : Fin 4) : K₀.pressureConstant c*(1+(lower i).productConstant*K₀.pressureConstant c) ≤ |
| 126 | pressureCost c B s*(1+productCost B s*pressureCost c B s) := by |
| 127 | have hi := (hK.2 i).productConstant_le |
| 128 | have hc0 := (lower i).productConstant_nonneg |
| 129 | exact mul_le_mul hp (add_le_add le_rfl (mul_le_mul hi hp hp0 hC0)) |
| 130 | (by positivity) hP0 |
| 131 | calc |
| 132 | _ ≤ c⁻¹+∑ _i : Fin 4, pressureCost c B s*(1+productCost B s*pressureCost c B s) := |
| 133 | add_le_add le_rfl (sum_le_sum (fun i _ => ht i)) |
| 134 | _ = _ := by norm_num only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul] |
| 135 | |
| 136 | end EulerCoefficientJetPressureBounds |