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.MildEquationBridge |
| 2 | import Euler.DuhamelPasting |
| 3 | |
| 4 | /-! Pasting actual high-order viscous mild solutions preserves the derivative-gaining Duhamel formula. -/ |
| 5 | |
| 6 | /-! ## From `Euler/GainedMildFormula.lean` |
| 7 | |
| 8 | The text of `Euler/GainedMildFormula.lean`, folded into this file, which was its only importer. -/ |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Equivalence between genuine gained-derivative and ordinary heat-Duhamel solution formulas. -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerGainedMildFormula |
| 17 | |
| 18 | open MeasureTheory Set EulerCylinderSobolevSpace EulerSobolevHeat EulerSobolevHeatGenerator |
| 19 | EulerVolterraConvolution EulerDuhamelDifferentiation EulerMildEquationBridge |
| 20 | open scoped Topology |
| 21 | |
| 22 | variable (period : ℝ) [Fact (0 < period)] |
| 23 | |
| 24 | /-- Forgetting a top derivative is injective on the actual compatible Sobolev arrays. -/ |
| 25 | theorem truncate_injective (q : ℕ) : Function.Injective (truncateOperator period q) := by |
| 26 | intro u v h |
| 27 | apply value_injective period |
| 28 | exact congrArg (value period (q := q)) h |
| 29 | |
| 30 | /-- The genuine heat-plus-gained-Duhamel construction as an actual continuous Sobolev path. -/ |
| 31 | def mildPath (q : ℕ) (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) |
| 32 | (u₀ : SobolevSpace period (q+1)) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) : |
| 33 | C(Icc (0 : ℝ) T, SobolevSpace period (q+1)) := |
| 34 | freeHeatPath period (q+1) ν T u₀ + |
| 35 | convolution T hT (heatKernel period q ν hν) (parabolicKernelBound ν) |
| 36 | (heatKernel_joint_continuous period q ν hν) (parabolicKernelBound_integrable ν T hT) |
| 37 | (fun r hr => parabolicKernelBound_nonneg ν r hr.1) |
| 38 | (fun r hr y => heatKernel_bound period q ν hν r hr.1 y) f |
| 39 | |
| 40 | /-- The actual gained mild path has the original singular-kernel integral formula. -/ |
| 41 | theorem mildPath_apply (q : ℕ) (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) |
| 42 | (u₀ : SobolevSpace period (q+1)) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 43 | (t : Icc (0 : ℝ) T) : |
| 44 | mildPath period q ν hν T hT u₀ f t = heatOperator period (q+1) (2*ν*t.val).toNNReal u₀+ |
| 45 | ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath T hT f (t.val-r)) := by |
| 46 | change heatOperator period (q+1) (2*ν*t.val).toNNReal u₀+_ = _ |
| 47 | rw [convolution_eq_interval T hT (heatKernel period q ν hν) (parabolicKernelBound ν) |
| 48 | (heatKernel_joint_continuous period q ν hν) (parabolicKernelBound_integrable ν T hT) |
| 49 | (fun r hr => parabolicKernelBound_nonneg ν r hr.1) |
| 50 | (fun r hr y => heatKernel_bound period q ν hν r hr.1 y) f t] |
| 51 | |
| 52 | /-- The lower Sobolev restriction of the genuine gained path is precisely ordinary Duhamel evolution. -/ |
| 53 | theorem mildPath_truncate (q : ℕ) (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) |
| 54 | (u₀ : SobolevSpace period (q+1)) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 55 | (t : Icc (0 : ℝ) T) : |
| 56 | truncateOperator period q (mildPath period q ν hν T hT u₀ f t) = |
| 57 | heatFlow period q ν t.val (truncateOperator period q u₀)+duhamel period ν T hT f t.val := by |
| 58 | change truncateOperator period q (heatOperator period (q+1) (2*ν*t.val).toNNReal u₀+_) = _ |
| 59 | rw [map_add,truncate_heatOperator,truncate_heatConvolution] |
| 60 | rfl |
| 61 | |
| 62 | /-- The actual complete high-order path satisfies the singular mild formula exactly when its restriction satisfies ordinary Duhamel. -/ |
| 63 | theorem gained_mild_iff (q : ℕ) (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) |
| 64 | (u₀ : SobolevSpace period (q+1)) (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) |
| 65 | (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : |
| 66 | (∀ t : Icc (0 : ℝ) T, u t = heatOperator period (q+1) (2*ν*t.val).toNNReal u₀+ |
| 67 | ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath T hT f (t.val-r))) ↔ |
| 68 | (∀ t : Icc (0 : ℝ) T, truncateOperator period q (u t) = |
| 69 | heatFlow period q ν t.val (truncateOperator period q u₀)+duhamel period ν T hT f t.val) := by |
| 70 | constructor |
| 71 | · intro h t |
| 72 | have he : u t = mildPath period q ν hν T hT u₀ f t := |
| 73 | (h t).trans (mildPath_apply period q ν hν T hT u₀ f t).symm |
| 74 | exact (congrArg (truncateOperator period q) he).trans (mildPath_truncate period q ν hν T hT u₀ f t) |
| 75 | · intro h t |
| 76 | have he : u t = mildPath period q ν hν T hT u₀ f t := |
| 77 | truncate_injective period q ((h t).trans (mildPath_truncate period q ν hν T hT u₀ f t).symm) |
| 78 | exact he.trans (mildPath_apply period q ν hν T hT u₀ f t) |
| 79 | |
| 80 | end EulerGainedMildFormula |
| 81 | end |
| 82 | |
| 83 | end |
| 84 | |
| 85 | noncomputable section |
| 86 | |
| 87 | namespace EulerGainedMildPasting |
| 88 | |
| 89 | open MeasureTheory Set EulerCylinderSobolevSpace EulerSobolevHeat EulerSobolevHeatGenerator |
| 90 | EulerVolterraConvolution EulerDuhamelDifferentiation EulerTimePathGluing EulerDuhamelPasting EulerGainedMildFormula |
| 91 | open scoped Topology |
| 92 | |
| 93 | /-- Applying an actual bounded spatial map commutes with matching-endpoint time pasting. -/ |
| 94 | theorem gluePath_map_apply {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 95 | [NormedAddCommGroup F] [NormedSpace ℝ F] (A : E →L[ℝ] F) |
| 96 | (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 97 | (u : C(Icc (0 : ℝ) a, E)) (v : C(Icc (0 : ℝ) b, E)) |
| 98 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) (t : Icc (0 : ℝ) (a+b)) : |
| 99 | A (gluePath a b ha hb u v hmatch t) = |
| 100 | gluePath a b ha hb (A.compLeftContinuous ℝ (Icc (0 : ℝ) a) u) |
| 101 | (A.compLeftContinuous ℝ (Icc (0 : ℝ) b) v) (congrArg A hmatch) t := by |
| 102 | change A (if t.val ≤ a then extendPath a ha u t.val else extendPath b hb v (t.val-a)) = |
| 103 | if t.val ≤ a then A (extendPath a ha u t.val) else A (extendPath b hb v (t.val-a)) |
| 104 | split <;> rfl |
| 105 | |
| 106 | variable (period : ℝ) [Fact (0 < period)] |
| 107 | |
| 108 | /-- Matching actual solutions on adjacent intervals give a genuine gained-derivative mild solution on the union. -/ |
| 109 | theorem glue_gained_mild {q : ℕ} (ν : ℝ) (hν : 0 < ν) (a b : ℝ) (ha : 0 ≤ a) (hb : 0 ≤ b) |
| 110 | (u : C(Icc (0 : ℝ) a, SobolevSpace period (q+1))) |
| 111 | (v : C(Icc (0 : ℝ) b, SobolevSpace period (q+1))) |
| 112 | (hmatch : u ⟨a,ha,le_rfl⟩ = v ⟨0,le_rfl,hb⟩) |
| 113 | (f : C(Icc (0 : ℝ) (a+b), SobolevSpace period q)) |
| 114 | (f1 : C(Icc (0 : ℝ) a, SobolevSpace period q)) |
| 115 | (f2 : C(Icc (0 : ℝ) b, SobolevSpace period q)) (u₀ : SobolevSpace period (q+1)) |
| 116 | (hF1 : ∀ r ∈ Icc 0 a, extendPath (a+b) (add_nonneg ha hb) f r = extendPath a ha f1 r) |
| 117 | (hF2 : ∀ r ∈ Icc 0 b, extendPath (a+b) (add_nonneg ha hb) f (a+r) = extendPath b hb f2 r) |
| 118 | (hsolu : ∀ t : Icc (0 : ℝ) a, u t = heatOperator period (q+1) (2*ν*t.val).toNNReal u₀+ |
| 119 | ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath a ha f1 (t.val-r))) |
| 120 | (hsolv : ∀ t : Icc (0 : ℝ) b, v t = heatOperator period (q+1) (2*ν*t.val).toNNReal (u ⟨a,ha,le_rfl⟩)+ |
| 121 | ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath b hb f2 (t.val-r))) : |
| 122 | ∀ t : Icc (0 : ℝ) (a+b), gluePath a b ha hb u v hmatch t = |
| 123 | heatOperator period (q+1) (2*ν*t.val).toNNReal u₀+ |
| 124 | ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath (a+b) (add_nonneg ha hb) f (t.val-r)) := by |
| 125 | let ul := (truncateOperator period q).compLeftContinuous ℝ (Icc (0 : ℝ) a) u |
| 126 | let vl := (truncateOperator period q).compLeftContinuous ℝ (Icc (0 : ℝ) b) v |
| 127 | have hml : ul ⟨a,ha,le_rfl⟩ = vl ⟨0,le_rfl,hb⟩ := congrArg (truncateOperator period q) hmatch |
| 128 | have hul := (gained_mild_iff period q ν hν a ha u₀ f1 u).mp hsolu |
| 129 | have hvl := (gained_mild_iff period q ν hν b hb (u ⟨a,ha,le_rfl⟩) f2 v).mp hsolv |
| 130 | have h := glue_ordinary_mild period ν hν.le a b ha hb ul vl hml f f1 f2 |
| 131 | (truncateOperator period q u₀) hF1 hF2 hul hvl |
| 132 | apply (gained_mild_iff period q ν hν (a+b) (add_nonneg ha hb) u₀ f |
| 133 | (gluePath a b ha hb u v hmatch)).mpr |
| 134 | intro t |
| 135 | exact (gluePath_map_apply (truncateOperator period q) a b ha hb u v hmatch t).trans (h t) |
| 136 | |
| 137 | end EulerGainedMildPasting |