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.StrongOperatorDerivative |
| 2 | import Euler.MetricHeatEnergy |
| 3 | |
| 4 | /-! The genuine cylinder heat semigroup solves the Laplacian evolution equation. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerGaussianCylinderHeat |
| 9 | |
| 10 | open MeasureTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity EulerSpatialSobolevInverse |
| 11 | EulerCylinderSobolev EulerMetricHeatEnergy EulerStrongOperatorDerivative |
| 12 | open scoped ENNReal NNReal Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- The real extension of a finite commuting heat product. -/ |
| 17 | def realHeatList (directions : List LiftTangent) (t : ℝ) (f : LiftL2 period) : LiftL2 period := |
| 18 | match directions with |
| 19 | | [] => f |
| 20 | | a :: tail => realLineHeat period a t (realHeatList tail t f) |
| 21 | |
| 22 | theorem realHeatList_eq (directions : List LiftTangent) {t : ℝ} (ht : 0 ≤ t) (f : LiftL2 period) : |
| 23 | realHeatList period directions t f = heatList period directions ⟨t, ht⟩ f := by |
| 24 | induction directions with |
| 25 | | nil => rfl |
| 26 | | cons a tail ih => |
| 27 | change realLineHeat period a t (realHeatList period tail t f) = |
| 28 | lineHeat period a ⟨t, ht⟩ (heatList period tail ⟨t, ht⟩ f) |
| 29 | rw [realLineHeat_eq period a ht, ih] |
| 30 | |
| 31 | theorem realLineHeat_add (a : LiftTangent) (t : ℝ) (f g : LiftL2 period) : |
| 32 | realLineHeat period a t (f+g) = realLineHeat period a t f + realLineHeat period a t g := by |
| 33 | simp only [realLineHeat_eq_toNNReal, lineHeat_add] |
| 34 | |
| 35 | theorem realLineHeat_smul (a : LiftTangent) (t c : ℝ) (f : LiftL2 period) : |
| 36 | realLineHeat period a t (c • f) = c • realLineHeat period a t f := by |
| 37 | simp only [realLineHeat_eq_toNNReal, lineHeat_smul] |
| 38 | |
| 39 | theorem realHeatList_add (directions : List LiftTangent) (t : ℝ) (f g : LiftL2 period) : |
| 40 | realHeatList period directions t (f+g) = realHeatList period directions t f + realHeatList period directions t g := by |
| 41 | induction directions with |
| 42 | | nil => rfl |
| 43 | | cons a tail ih => simp only [realHeatList, ih, realLineHeat_add] |
| 44 | |
| 45 | theorem realHeatList_smul (directions : List LiftTangent) (t c : ℝ) (f : LiftL2 period) : |
| 46 | realHeatList period directions t (c • f) = c • realHeatList period directions t f := by |
| 47 | induction directions with |
| 48 | | nil => rfl |
| 49 | | cons a tail ih => simp only [realHeatList, ih, realLineHeat_smul] |
| 50 | |
| 51 | @[simp] theorem realHeatList_zero_field (directions : List LiftTangent) (t : ℝ) : |
| 52 | realHeatList period directions t 0 = 0 := by |
| 53 | induction directions with |
| 54 | | nil => rfl |
| 55 | | cons a tail ih => simp only [realHeatList, ih, realLineHeat_eq_toNNReal, ← lineHeatOperator_apply, map_zero] |
| 56 | |
| 57 | @[simp] theorem realHeatList_zero_time (directions : List LiftTangent) (f : LiftL2 period) : |
| 58 | realHeatList period directions 0 f = f := by |
| 59 | induction directions with |
| 60 | | nil => rfl |
| 61 | | cons a tail ih => simp only [realHeatList, realLineHeat_zero, ih] |
| 62 | |
| 63 | theorem realHeatList_eq_toNNReal (directions : List LiftTangent) (t : ℝ) (f : LiftL2 period) : |
| 64 | realHeatList period directions t f = heatList period directions t.toNNReal f := by |
| 65 | induction directions with |
| 66 | | nil => rfl |
| 67 | | cons a tail ih => |
| 68 | change realLineHeat period a t (realHeatList period tail t f) = |
| 69 | lineHeat period a t.toNNReal (heatList period tail t.toNNReal f) |
| 70 | rw [realLineHeat_eq_toNNReal, ih] |
| 71 | |
| 72 | theorem realHeatList_continuous (directions : List LiftTangent) (f : LiftL2 period) : |
| 73 | Continuous (fun t : ℝ => realHeatList period directions t f) := by |
| 74 | simp_rw [realHeatList_eq_toNNReal] |
| 75 | exact (heatList_continuous period directions f).comp continuous_real_toNNReal |
| 76 | |
| 77 | /-- Every strong coordinate derivative commutes with every finite heat product. -/ |
| 78 | theorem realHeatList_strongDerivative (directions : List LiftTangent) (a : LiftTangent) (t : ℝ) |
| 79 | (f g : LiftL2 period) (hD : HasDerivAt (lineOrbit period a f) g 0) : |
| 80 | HasDerivAt (lineOrbit period a (realHeatList period directions t f)) |
| 81 | (realHeatList period directions t g) 0 := by |
| 82 | induction directions with |
| 83 | | nil => exact hD |
| 84 | | cons b tail ih => |
| 85 | simp only [realHeatList, realLineHeat_eq_toNNReal] |
| 86 | exact lineHeat_strongDerivative period b a t.toNNReal _ _ ih |
| 87 | |
| 88 | /-- The finite directional heat product has the sum of its actual second derivatives as generator. -/ |
| 89 | theorem realHeatList_generator_pos {ι : Type*} (indices : List ι) (direction : ι → LiftTangent) |
| 90 | (f : LiftL2 period) (df ddf : ι → LiftL2 period) |
| 91 | (hD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) f) (df i) 0) |
| 92 | (hDD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) (df i)) (ddf i) 0) |
| 93 | {t : ℝ} (ht : 0 < t) : |
| 94 | HasDerivAt (fun s => realHeatList period (indices.map direction) s f) |
| 95 | ((1/2 : ℝ) • realHeatList period (indices.map direction) t ((indices.map ddf).sum)) t := by |
| 96 | induction indices with |
| 97 | | nil => simpa only [List.map_nil, List.sum_nil, realHeatList, smul_zero] using hasDerivAt_const t f |
| 98 | | cons i tail ih => |
| 99 | have htailD := fun j hj => hD j (List.mem_cons_of_mem i hj) |
| 100 | have htailDD := fun j hj => hDD j (List.mem_cons_of_mem i hj) |
| 101 | have hinput := ih htailD htailDD |
| 102 | have hfirst := realHeatList_strongDerivative period (tail.map direction) (direction i) t f (df i) |
| 103 | (hD i (List.mem_cons_self ..)) |
| 104 | have hsecond := realHeatList_strongDerivative period (tail.map direction) (direction i) t (df i) (ddf i) |
| 105 | (hDD i (List.mem_cons_self ..)) |
| 106 | have h := realLineHeat_varying_input period (direction i) |
| 107 | (fun s => realHeatList period (tail.map direction) s f) t _ _ _ ht hinput hfirst hsecond |
| 108 | have halg : realLineHeat period (direction i) t |
| 109 | ((1/2 : ℝ) • realHeatList period (tail.map direction) t ((tail.map ddf).sum)) + |
| 110 | (1/2 : ℝ) • realLineHeat period (direction i) t (realHeatList period (tail.map direction) t (ddf i)) = |
| 111 | (1/2 : ℝ) • realHeatList period ((i::tail).map direction) t (((i::tail).map ddf).sum) := by |
| 112 | rw [realLineHeat_smul, ← smul_add, ← realLineHeat_add, ← realHeatList_add] |
| 113 | simp only [List.map_cons, List.sum_cons, realHeatList] |
| 114 | rw [add_comm ((tail.map ddf).sum)] |
| 115 | rw [halg] at h |
| 116 | exact h |
| 117 | |
| 118 | /-- The full directional generator identity holds as a right derivative at zero as well. -/ |
| 119 | theorem realHeatList_generator_zero {ι : Type*} (indices : List ι) (direction : ι → LiftTangent) |
| 120 | (f : LiftL2 period) (df ddf : ι → LiftL2 period) |
| 121 | (hD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) f) (df i) 0) |
| 122 | (hDD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) (df i)) (ddf i) 0) : |
| 123 | HasDerivWithinAt (fun s => realHeatList period (indices.map direction) s f) |
| 124 | ((1/2 : ℝ) • (indices.map ddf).sum) (Set.Ici 0) 0 := by |
| 125 | have hlim : Filter.Tendsto (fun s => (1/2 : ℝ) • realHeatList period (indices.map direction) s ((indices.map ddf).sum)) |
| 126 | (𝓝[>] (0 : ℝ)) (𝓝 ((1/2 : ℝ) • (indices.map ddf).sum)) := by |
| 127 | have hc : ContinuousAt (fun s => (1/2 : ℝ) • realHeatList period (indices.map direction) s ((indices.map ddf).sum)) 0 := |
| 128 | ((realHeatList_continuous period _ _).const_smul (1/2 : ℝ)).continuousAt |
| 129 | simpa only [realHeatList_zero_time] using (hc.continuousWithinAt (s := Set.Ioi 0)).tendsto |
| 130 | apply hasDerivWithinAt_Ici_of_tendsto_deriv (s := Set.Ioi 0) |
| 131 | (fun t ht => (realHeatList_generator_pos period indices direction f df ddf hD hDD ht).differentiableAt.differentiableWithinAt) |
| 132 | (realHeatList_continuous period _ _).continuousAt.continuousWithinAt self_mem_nhdsWithin |
| 133 | apply hlim.congr' |
| 134 | filter_upwards [self_mem_nhdsWithin] with t ht |
| 135 | exact (realHeatList_generator_pos period indices direction f df ddf hD hDD ht).deriv.symm |
| 136 | |
| 137 | end EulerGaussianCylinderHeat |