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.SobolevHeatVolterra |
| 2 | import Euler.SobolevPressureResolvent |
| 3 | |
| 4 | /-! The actual Gaussian heat and Volterra integrals preserve the lifted divergence constraint. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerDivergenceFreeHeat |
| 9 | |
| 10 | open MeasureTheory ProbabilityTheory EulerLiftedGradientSpace EulerGaussianCylinderHeat |
| 11 | EulerCylinderSobolevSpace EulerSobolevHeat EulerVolterraConvolution EulerSobolevCoefficientPressure |
| 12 | open scoped Topology NNReal |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- The actual lifted gradient projection commutes with each Gaussian directional heat average. -/ |
| 17 | theorem gradientProjection_lineHeat (κ : ℝ) (m : Vector3) (a : LiftTangent) (v : ℝ≥0) (f : LiftL2 period) : |
| 18 | gradientProjection period κ m (lineHeat period a v f) = |
| 19 | lineHeat period a v (gradientProjection period κ m f) := by |
| 20 | unfold lineHeat |
| 21 | rw [← (gradientProjection period κ m).integral_comp_comm (lineOrbit_integrable period a f _)] |
| 22 | apply integral_congr_ae |
| 23 | exact Filter.Eventually.of_forall fun r => |
| 24 | (gradientProjection_translation period κ m (EulerPressureSpatialRegularity.translationPath period a r) f).symm |
| 25 | |
| 26 | /-- The lifted gradient projection commutes with every finite product of Gaussian heat averages. -/ |
| 27 | theorem gradientProjection_heatList (κ : ℝ) (m : Vector3) (directions : List LiftTangent) |
| 28 | (v : ℝ≥0) (f : LiftL2 period) : |
| 29 | gradientProjection period κ m (heatList period directions v f) = |
| 30 | heatList period directions v (gradientProjection period κ m f) := by |
| 31 | induction directions with |
| 32 | | nil => rfl |
| 33 | | cons a tail ih => rw [heatList, heatList, gradientProjection_lineHeat, ih] |
| 34 | |
| 35 | /-- The actual cylinder heat semigroup preserves the lifted gradient projection exactly. -/ |
| 36 | theorem gradientProjection_cylinderHeat (κ : ℝ) (m : Vector3) (v : ℝ≥0) (f : LiftL2 period) : |
| 37 | gradientProjection period κ m (cylinderHeat period v f) = |
| 38 | cylinderHeat period v (gradientProjection period κ m f) := |
| 39 | gradientProjection_heatList period κ m cylinderDirections v f |
| 40 | |
| 41 | /-- The continuous constraint map on an actual complete Sobolev space. -/ |
| 42 | def gradientEvaluation (q : ℕ) (κ : ℝ) (m : Vector3) : SobolevSpace period q →L[ℝ] LiftL2 period := |
| 43 | (gradientProjection period κ m).comp (valueOperator period q) |
| 44 | |
| 45 | /-- The Sobolev constraint is exactly the underlying lifted L² gradient projection. -/ |
| 46 | @[simp] |
| 47 | theorem gradientEvaluation_apply {q : ℕ} (κ : ℝ) (m : Vector3) (u : SobolevSpace period q) : |
| 48 | gradientEvaluation period q κ m u = gradientProjection period κ m (value period u) := rfl |
| 49 | |
| 50 | /-- Vanishing of the continuous constraint map is exactly membership in the genuine divergence-free subspace. -/ |
| 51 | theorem gradientEvaluation_zero_iff {q : ℕ} (κ : ℝ) (m : Vector3) (u : SobolevSpace period q) : |
| 52 | gradientEvaluation period q κ m u = 0 ↔ value period u ∈ divergenceFreeSpace period κ m := by |
| 53 | constructor |
| 54 | · intro h |
| 55 | apply (gradientSpace period κ m).orthogonalProjectionOnto_eq_zero_iff.mp |
| 56 | apply Subtype.ext |
| 57 | exact h |
| 58 | · intro h |
| 59 | have hz := (gradientSpace period κ m).orthogonalProjectionOnto_eq_zero_iff.mpr h |
| 60 | exact congrArg Subtype.val hz |
| 61 | |
| 62 | /-- The Sobolev heat flow evolves the divergence constraint by the same genuine L² heat semigroup. -/ |
| 63 | theorem gradientEvaluation_heat {q : ℕ} (κ : ℝ) (m : Vector3) (v : ℝ≥0) (u : SobolevSpace period q) : |
| 64 | gradientEvaluation period q κ m (heatOperator period q v u) = |
| 65 | cylinderHeat period v (gradientEvaluation period q κ m u) := by |
| 66 | rw [gradientEvaluation_apply, heatOperator_value, gradientProjection_cylinderHeat, gradientEvaluation_apply] |
| 67 | |
| 68 | /-- The derivative-gaining heat operator preserves vanishing lifted divergence. -/ |
| 69 | theorem heatGain_preserves_gradient_zero {q : ℕ} (κ : ℝ) (m : Vector3) |
| 70 | (v : ℝ≥0) (hv : 0 < v) (u : SobolevSpace period q) |
| 71 | (hu : gradientEvaluation period q κ m u = 0) : |
| 72 | gradientEvaluation period (q + 1) κ m (heatGain period q v hv u) = 0 := by |
| 73 | rw [gradientEvaluation_apply, heatGain_value, gradientProjection_cylinderHeat] |
| 74 | change cylinderHeat period v (gradientEvaluation period q κ m u) = 0 |
| 75 | rw [hu, map_zero] |
| 76 | |
| 77 | /-- The actual viscosity-scaled heat kernel preserves zero lifted divergence at every real time. -/ |
| 78 | theorem heatKernel_preserves_gradient_zero {q : ℕ} (κ : ℝ) (m : Vector3) (ν : ℝ) (hν : 0 < ν) |
| 79 | (r : ℝ) (u : SobolevSpace period q) (hu : gradientEvaluation period q κ m u = 0) : |
| 80 | gradientEvaluation period (q + 1) κ m (heatKernel period q ν hν r u) = 0 := by |
| 81 | by_cases hr : 0 < r |
| 82 | · rw [heatKernel, dite_eq_left hr] |
| 83 | exact heatGain_preserves_gradient_zero period κ m _ _ u hu |
| 84 | · simp only [heatKernel, hr, dite_false, zero_apply, map_zero] |
| 85 | |
| 86 | /-- The actual Bochner Volterra convolution of divergence-free forcing remains divergence-free. -/ |
| 87 | theorem heatConvolution_preserves_gradient_zero {q : ℕ} (κ : ℝ) (m : Vector3) |
| 88 | (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) |
| 89 | (f : C(Set.Icc (0 : ℝ) T, SobolevSpace period q)) |
| 90 | (hf : ∀ t, gradientEvaluation period q κ m (f t) = 0) (t : Set.Icc (0 : ℝ) T) : |
| 91 | gradientEvaluation period (q + 1) κ m |
| 92 | (convolution T hT (heatKernel period q ν hν) (parabolicKernelBound ν) |
| 93 | (heatKernel_joint_continuous period q ν hν) (parabolicKernelBound_integrable ν T hT) |
| 94 | (fun r hr => parabolicKernelBound_nonneg ν r hr.1) |
| 95 | (fun r hr y => heatKernel_bound period q ν hν r hr.1 y) f t) = 0 := by |
| 96 | let L := gradientEvaluation period (q + 1) κ m |
| 97 | change L (∫ r in Set.Ioc 0 T, causalIntegrand T hT (heatKernel period q ν hν) f t r) = 0 |
| 98 | rw [← L.integral_comp_comm (causalIntegrand_integrable T hT (heatKernel period q ν hν) |
| 99 | (parabolicKernelBound ν) (heatKernel_joint_continuous period q ν hν) |
| 100 | (parabolicKernelBound_integrable ν T hT) (fun r hr => parabolicKernelBound_nonneg ν r hr.1) |
| 101 | (fun r hr y => heatKernel_bound period q ν hν r hr.1 y) f t)] |
| 102 | apply integral_eq_zero_of_ae |
| 103 | exact Filter.Eventually.of_forall fun r => by |
| 104 | by_cases hr : r ≤ t.val |
| 105 | · simp only [causalIntegrand, Set.indicator, Set.mem_Iic, hr, ite_true] |
| 106 | exact heatKernel_preserves_gradient_zero period κ m ν hν r _ (hf _) |
| 107 | · simp only [causalIntegrand, Set.indicator, Set.mem_Iic, hr, ite_false, map_zero, Pi.zero_apply] |
| 108 | |
| 109 | /-- Every actual heat mild solution with projected forcing preserves the initial lifted divergence constraint. -/ |
| 110 | theorem mild_solution_preserves_gradient_zero {q : ℕ} (κ : ℝ) (m : Vector3) |
| 111 | (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) (u₀ : SobolevSpace period (q + 1)) |
| 112 | (hu₀ : gradientEvaluation period (q + 1) κ m u₀ = 0) |
| 113 | (F : Set.Icc (0 : ℝ) T → SobolevSpace period (q + 1) → SobolevSpace period q) |
| 114 | (hF : Continuous (fun p : Set.Icc (0 : ℝ) T × SobolevSpace period (q + 1) => F p.1 p.2)) |
| 115 | (hFzero : ∀ t u, gradientEvaluation period q κ m (F t u) = 0) |
| 116 | (u : C(Set.Icc (0 : ℝ) T, SobolevSpace period (q + 1))) |
| 117 | (hsol : ∀ t : Set.Icc (0 : ℝ) T, |
| 118 | u t = heatOperator period (q + 1) (2 * ν * t.val).toNNReal u₀ + |
| 119 | ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r |
| 120 | (F (Set.projIcc 0 T hT (t.val - r)) (u (Set.projIcc 0 T hT (t.val - r))))) : |
| 121 | ∀ t, gradientEvaluation period (q + 1) κ m (u t) = 0 := by |
| 122 | intro t |
| 123 | let f := pathNonlinearity T F hF u |
| 124 | have hconv := heatConvolution_preserves_gradient_zero period κ m ν hν T hT f (fun s => hFzero s (u s)) t |
| 125 | have hci := convolution_eq_interval T hT (heatKernel period q ν hν) (parabolicKernelBound ν) |
| 126 | (heatKernel_joint_continuous period q ν hν) (parabolicKernelBound_integrable ν T hT) |
| 127 | (fun r hr => parabolicKernelBound_nonneg ν r hr.1) |
| 128 | (fun r hr y => heatKernel_bound period q ν hν r hr.1 y) f t |
| 129 | rw [hci] at hconv |
| 130 | rw [hsol t, map_add, gradientEvaluation_heat, hu₀, map_zero, zero_add] |
| 131 | exact hconv |
| 132 | |
| 133 | end EulerDivergenceFreeHeat |