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.GaussianHeatTotal |
| 2 | import Mathlib.Analysis.Calculus.ParametricIntegral |
| 3 | import Mathlib.Analysis.Calculus.FDeriv.Extend |
| 4 | |
| 5 | /-! The Gaussian variance generator is one half of the genuine squared translation derivative. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerGaussianCylinderHeat |
| 10 | |
| 11 | open MeasureTheory ProbabilityTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity |
| 12 | EulerLiftedWeakDerivative EulerClosedTranslationGraph |
| 13 | open scoped ENNReal NNReal Topology |
| 14 | |
| 15 | variable (period : ℝ) [Fact (0 < period)] |
| 16 | |
| 17 | /-- A continuous real-parameter extension of the Gaussian average, constant for negative variance. -/ |
| 18 | def realLineHeat (a : LiftTangent) (t : ℝ) (f : LiftL2 period) : LiftL2 period := |
| 19 | ∫ x : ℝ, lineOrbit period a f (Real.sqrt t * x) ∂gaussianReal 0 1 |
| 20 | |
| 21 | theorem realLineHeat_eq (a : LiftTangent) {t : ℝ} (ht : 0 ≤ t) (f : LiftL2 period) : |
| 22 | realLineHeat period a t f = lineHeat period a ⟨t, ht⟩ f := |
| 23 | (lineHeat_eq_standardGaussian period a ⟨t, ht⟩ f).symm |
| 24 | |
| 25 | @[simp] theorem realLineHeat_zero (a : LiftTangent) (f : LiftL2 period) : realLineHeat period a 0 f = f := by |
| 26 | rw [realLineHeat_eq period a le_rfl] |
| 27 | exact lineHeat_zero period a f |
| 28 | |
| 29 | theorem realLineHeat_continuous (a : LiftTangent) (f : LiftL2 period) : |
| 30 | Continuous (fun t : ℝ => realLineHeat period a t f) := by |
| 31 | apply continuous_of_dominated (bound := fun _ : ℝ => ‖f‖) |
| 32 | · intro t |
| 33 | exact ((lineOrbit_continuous period a f).comp (continuous_const.mul continuous_id)).aestronglyMeasurable |
| 34 | · intro t |
| 35 | exact Filter.Eventually.of_forall (fun x => (lineOrbit_norm period a f _).le) |
| 36 | · exact integrable_const _ |
| 37 | · exact Filter.Eventually.of_forall (fun x => |
| 38 | (lineOrbit_continuous period a f).comp (Real.continuous_sqrt.mul_const x)) |
| 39 | |
| 40 | /-- The chain-rule derivative of a scaled orbit, before Gaussian integration. -/ |
| 41 | theorem scaledOrbit_hasDerivAt (a : LiftTangent) (f g : LiftL2 period) |
| 42 | (hD : HasDerivAt (lineOrbit period a f) g 0) (x t : ℝ) (ht : 0 < t) : |
| 43 | HasDerivAt (fun s => lineOrbit period a f (Real.sqrt s * x)) |
| 44 | ((x / (2 * Real.sqrt t)) • lineOrbit period a g (Real.sqrt t * x)) t := by |
| 45 | have ho := translation_hasDerivAt_all period a f g hD (Real.sqrt t * x) |
| 46 | have hs := (Real.hasDerivAt_sqrt ht.ne').mul_const x |
| 47 | have h := ho.scomp t hs |
| 48 | convert! h using 1 |
| 49 | change (x / (2 * Real.sqrt t)) • lineOrbit period a g (Real.sqrt t * x) = |
| 50 | (1 / (2 * Real.sqrt t) * x) • lineOrbit period a g (Real.sqrt t * x) |
| 51 | congr 1 |
| 52 | ring |
| 53 | |
| 54 | /-- Differentiation of the Gaussian average at positive variance is justified by an integrable first moment. -/ |
| 55 | theorem realLineHeat_hasDerivAt_moment (a : LiftTangent) (f g : LiftL2 period) |
| 56 | (hD : HasDerivAt (lineOrbit period a f) g 0) {t : ℝ} (ht : 0 < t) : |
| 57 | HasDerivAt (fun s => realLineHeat period a s f) |
| 58 | (∫ x : ℝ, (x / (2 * Real.sqrt t)) • lineOrbit period a g (Real.sqrt t * x) ∂gaussianReal 0 1) t := by |
| 59 | let F : ℝ → ℝ → LiftL2 period := fun s x => lineOrbit period a f (Real.sqrt s * x) |
| 60 | let F' : ℝ → ℝ → LiftL2 period := fun s x => (x / (2 * Real.sqrt s)) • lineOrbit period a g (Real.sqrt s * x) |
| 61 | let B : ℝ → ℝ := fun x => (‖x‖ / (2 * Real.sqrt (t/2))) * ‖g‖ |
| 62 | have hhalf : 0 < t/2 := by linarith |
| 63 | have hder (x s : ℝ) (hs : s ∈ Set.Ioi (t/2)) : HasDerivAt (fun r => F r x) (F' s x) s := |
| 64 | scaledOrbit_hasDerivAt period a f g hD x s (hhalf.trans hs) |
| 65 | have hbound : ∀ x s : ℝ, s ∈ Set.Ioi (t/2) → ‖F' s x‖ ≤ B x := by |
| 66 | intro x s hs |
| 67 | have hspos : 0 < s := hhalf.trans hs |
| 68 | dsimp [F', B] |
| 69 | rw [norm_smul, lineOrbit_norm, Real.norm_eq_abs, abs_div, |
| 70 | abs_of_pos (mul_pos (by norm_num) (Real.sqrt_pos.mpr hspos))] |
| 71 | exact mul_le_mul_of_nonneg_right |
| 72 | (div_le_div_of_nonneg_left (abs_nonneg x) |
| 73 | (mul_pos (by norm_num) (Real.sqrt_pos.mpr hhalf)) |
| 74 | (mul_le_mul_of_nonneg_left (Real.sqrt_le_sqrt hs.le) (by norm_num))) (norm_nonneg g) |
| 75 | have hFint : Integrable (F t) (gaussianReal 0 1) := |
| 76 | Integrable.of_bound ((lineOrbit_continuous period a f).comp (continuous_const.mul continuous_id)).aestronglyMeasurable |
| 77 | ‖f‖ (Filter.Eventually.of_forall (fun x => (lineOrbit_norm period a f _).le)) |
| 78 | have hBint : Integrable B (gaussianReal 0 1) := |
| 79 | ((gaussianId_integrable 1).norm.div_const (2 * Real.sqrt (t/2))).mul_const ‖g‖ |
| 80 | have h := hasDerivAt_integral_of_dominated_loc_of_deriv_le |
| 81 | (F := F) (F' := F') (bound := B) (Ioi_mem_nhds (by linarith : t/2 < t)) |
| 82 | (Filter.Eventually.of_forall (fun s => |
| 83 | ((lineOrbit_continuous period a f).comp (continuous_const.mul continuous_id)).aestronglyMeasurable)) |
| 84 | hFint |
| 85 | (((continuous_id.div_const (2 * Real.sqrt t)).smul |
| 86 | ((lineOrbit_continuous period a g).comp (continuous_const.mul continuous_id))).aestronglyMeasurable) |
| 87 | (Filter.Eventually.of_forall hbound) hBint (Filter.Eventually.of_forall hder) |
| 88 | exact h.2 |
| 89 | |
| 90 | /-- Gaussian scaling rewrites the variance derivative as one half of the averaged orbit derivative. -/ |
| 91 | theorem varianceMoment_eq_half_derivative (a : LiftTangent) {t : ℝ} (ht : 0 < t) (g : LiftL2 period) : |
| 92 | (∫ x : ℝ, (x / (2 * Real.sqrt t)) • lineOrbit period a g (Real.sqrt t * x) ∂gaussianReal 0 1) = |
| 93 | (1/2 : ℝ) • lineHeatDerivative period a ⟨t, ht.le⟩ g := by |
| 94 | have hs : Real.sqrt t ≠ 0 := (Real.sqrt_pos.mpr ht).ne' |
| 95 | have hmap : Measure.map (fun x => Real.sqrt t * x) (gaussianReal 0 1) = gaussianReal 0 ⟨t, ht.le⟩ := by |
| 96 | have h := gaussianReal_map_const_mul (μ := 0) (v := (1 : ℝ≥0)) (Real.sqrt t) |
| 97 | have he : NNReal.mk (Real.sqrt t ^ 2) (sq_nonneg _) * 1 = (⟨t, ht.le⟩ : ℝ≥0) := by |
| 98 | apply Subtype.ext |
| 99 | change Real.sqrt t ^ 2 * 1 = t |
| 100 | rw [mul_one, Real.sq_sqrt ht.le] |
| 101 | rw [mul_zero, he] at h |
| 102 | exact h |
| 103 | change (∫ x : ℝ, (x / (2 * Real.sqrt t)) • lineOrbit period a g (Real.sqrt t * x) ∂gaussianReal 0 1) = |
| 104 | (1/2 : ℝ) • (t⁻¹ • ∫ x : ℝ, x • lineOrbit period a g x ∂gaussianReal 0 ⟨t, ht.le⟩) |
| 105 | have hm := integral_map_of_stronglyMeasurable |
| 106 | (μ := gaussianReal 0 1) (φ := fun x : ℝ => Real.sqrt t * x) |
| 107 | (f := fun x : ℝ => x • lineOrbit period a g x) (by fun_prop) |
| 108 | ((continuous_id.smul (lineOrbit_continuous period a g)).stronglyMeasurable) |
| 109 | rw [← hmap, hm, ← integral_smul, ← integral_smul] |
| 110 | apply integral_congr_ae |
| 111 | apply Filter.Eventually.of_forall |
| 112 | intro x |
| 113 | change (x / (2 * Real.sqrt t)) • lineOrbit period a g (Real.sqrt t * x) = |
| 114 | (1/2 : ℝ) • t⁻¹ • (Real.sqrt t * x) • lineOrbit period a g (Real.sqrt t * x) |
| 115 | simp only [smul_smul] |
| 116 | congr 1 |
| 117 | field_simp |
| 118 | rw [Real.sq_sqrt ht.le] |
| 119 | |
| 120 | /-- At every positive variance, the generator is one half of the genuine second translation derivative. -/ |
| 121 | theorem realLineHeat_generator_pos (a : LiftTangent) (f g h : LiftL2 period) |
| 122 | (hD : HasDerivAt (lineOrbit period a f) g 0) |
| 123 | (hDD : HasDerivAt (lineOrbit period a g) h 0) {t : ℝ} (ht : 0 < t) : |
| 124 | HasDerivAt (fun s => realLineHeat period a s f) ((1/2 : ℝ) • realLineHeat period a t h) t := by |
| 125 | have hd := realLineHeat_hasDerivAt_moment period a f g hD ht |
| 126 | rw [varianceMoment_eq_half_derivative period a ht g, |
| 127 | ← lineHeat_derivative_identity period a (show (⟨t, ht.le⟩ : ℝ≥0) ≠ 0 by intro hz; have hzR := congrArg (fun z : ℝ≥0 => (z : ℝ)) hz; exact ht.ne' hzR) g h hDD, |
| 128 | ← realLineHeat_eq period a ht.le h] at hd |
| 129 | exact hd |
| 130 | |
| 131 | /-- The generator formula also holds as a genuine right derivative at zero variance. -/ |
| 132 | theorem realLineHeat_generator_zero (a : LiftTangent) (f g h : LiftL2 period) |
| 133 | (hD : HasDerivAt (lineOrbit period a f) g 0) |
| 134 | (hDD : HasDerivAt (lineOrbit period a g) h 0) : |
| 135 | HasDerivWithinAt (fun s => realLineHeat period a s f) ((1/2 : ℝ) • h) (Set.Ici 0) 0 := by |
| 136 | have hlim : Filter.Tendsto (fun s => (1/2 : ℝ) • realLineHeat period a s h) |
| 137 | (𝓝[>] (0 : ℝ)) (𝓝 ((1/2 : ℝ) • h)) := by |
| 138 | have hc : ContinuousAt (fun s => (1/2 : ℝ) • realLineHeat period a s h) 0 := |
| 139 | ((realLineHeat_continuous period a h).const_smul (1/2 : ℝ)).continuousAt |
| 140 | simpa only [realLineHeat_zero] using (hc.continuousWithinAt (s := Set.Ioi 0)).tendsto |
| 141 | apply hasDerivWithinAt_Ici_of_tendsto_deriv (s := Set.Ioi 0) |
| 142 | (fun t ht => (realLineHeat_generator_pos period a f g h hD hDD ht).differentiableAt.differentiableWithinAt) |
| 143 | (realLineHeat_continuous period a f).continuousAt.continuousWithinAt self_mem_nhdsWithin |
| 144 | apply hlim.congr' |
| 145 | filter_upwards [self_mem_nhdsWithin] with t ht |
| 146 | exact (realLineHeat_generator_pos period a f g h hD hDD ht).deriv.symm |
| 147 | |
| 148 | end EulerGaussianCylinderHeat |