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.CylinderSobolevOperators |
| 2 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic |
| 3 | |
| 4 | /-! A genuine bounded angular primitive on the full cylinder L² space. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerCylinderAnglePrimitive |
| 9 | |
| 10 | open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace |
| 11 | EulerSpatialSobolevInverse EulerPressureSpatialRegularity EulerCylinderMollifier |
| 12 | |
| 13 | variable (P : ℝ) [Fact (0 < P)] |
| 14 | |
| 15 | def angleShift (s : ℝ) : LiftDomain P := (0,(s : AddCircle P)) |
| 16 | |
| 17 | omit [Fact (0 < P)] in |
| 18 | theorem angleShift_continuous : Continuous (angleShift P) := |
| 19 | continuous_const.prodMk (AddCircle.continuous_mk' P) |
| 20 | |
| 21 | def kernelCurve (u : LiftL2 P) (s : ℝ) : LiftL2 P := |
| 22 | s • translation P (angleShift P s) u |
| 23 | |
| 24 | theorem kernelCurve_continuous (u : LiftL2 P) : Continuous (kernelCurve P u) := |
| 25 | continuous_id.smul ((translation_continuous P u).comp (angleShift_continuous P)) |
| 26 | |
| 27 | def kernelIntegral (u : LiftL2 P) : LiftL2 P := P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P u s) |
| 28 | |
| 29 | theorem kernelIntegral_add (u v : LiftL2 P) : |
| 30 | kernelIntegral P (u+v) = kernelIntegral P u+kernelIntegral P v := by |
| 31 | have he : kernelCurve P (u+v) = kernelCurve P u+kernelCurve P v := by |
| 32 | funext s |
| 33 | simp only [kernelCurve, map_add, smul_add, Pi.add_apply] |
| 34 | rw [kernelIntegral, he] |
| 35 | simp only [Pi.add_apply] |
| 36 | rw [intervalIntegral.integral_add |
| 37 | ((kernelCurve_continuous P u).intervalIntegrable 0 P) |
| 38 | ((kernelCurve_continuous P v).intervalIntegrable 0 P), smul_add] |
| 39 | rfl |
| 40 | |
| 41 | theorem kernelIntegral_smul (r : ℝ) (u : LiftL2 P) : |
| 42 | kernelIntegral P (r • u) = r • kernelIntegral P u := by |
| 43 | have he : kernelCurve P (r • u) = r • kernelCurve P u := by |
| 44 | funext s |
| 45 | change s • translation P (angleShift P s) (r • u) = r • (s • translation P (angleShift P s) u) |
| 46 | rw [map_smul, smul_comm s r] |
| 47 | rw [kernelIntegral, he] |
| 48 | simp only [Pi.smul_apply] |
| 49 | rw [intervalIntegral.integral_smul, smul_comm P⁻¹ r] |
| 50 | rfl |
| 51 | |
| 52 | theorem kernelIntegral_norm (u : LiftL2 P) : ‖kernelIntegral P u‖ ≤ P*‖u‖ := by |
| 53 | have hP : 0 < P := Fact.out |
| 54 | have hb : ‖∫ s in (0 : ℝ)..P, kernelCurve P u s‖ ≤ (P*‖u‖)*P := by |
| 55 | have h := intervalIntegral.norm_integral_le_of_norm_le_const |
| 56 | (a := (0 : ℝ)) (b := P) (f := kernelCurve P u) (C := P*‖u‖) (fun s hs => by |
| 57 | rw [uIoc_of_le hP.le] at hs |
| 58 | simp only [kernelCurve, norm_smul, Real.norm_eq_abs, abs_of_pos hs.1, |
| 59 | (translation P (angleShift P s)).norm_map] |
| 60 | exact mul_le_mul_of_nonneg_right hs.2 (norm_nonneg u)) |
| 61 | simpa only [sub_zero, abs_of_pos hP] using h |
| 62 | change ‖P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P u s)‖ ≤ _ |
| 63 | rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hP)] |
| 64 | calc |
| 65 | _ ≤ P⁻¹*((P*‖u‖)*P) := mul_le_mul_of_nonneg_left hb (inv_nonneg.mpr hP.le) |
| 66 | _ = P*‖u‖ := by field_simp |
| 67 | |
| 68 | def primitiveLinear : LiftL2 P →ₗ[ℝ] LiftL2 P where |
| 69 | toFun := kernelIntegral P |
| 70 | map_add' := kernelIntegral_add P |
| 71 | map_smul' := kernelIntegral_smul P |
| 72 | |
| 73 | def primitive : LiftL2 P →L[ℝ] LiftL2 P := |
| 74 | (primitiveLinear P).mkContinuous P (kernelIntegral_norm P) |
| 75 | |
| 76 | @[simp] theorem primitive_apply (u : LiftL2 P) : primitive P u = kernelIntegral P u := rfl |
| 77 | |
| 78 | theorem primitive_norm : ‖primitive P‖ ≤ P := |
| 79 | ContinuousLinearMap.opNorm_le_bound _ (le_of_lt (Fact.out : 0 < P)) (kernelIntegral_norm P) |
| 80 | |
| 81 | /-- The actual angular operator commutes with all spatial and angular translations. -/ |
| 82 | theorem primitive_translation (a : LiftDomain P) (u : LiftL2 P) : |
| 83 | primitive P (translation P a u) = translation P a (primitive P u) := by |
| 84 | change P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P (translation P a u) s) = |
| 85 | translation P a (P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P u s)) |
| 86 | rw [map_smul] |
| 87 | change P⁻¹ • _ = P⁻¹ • (translation P a).toContinuousLinearMap _ |
| 88 | rw [← (translation P a).toContinuousLinearMap.intervalIntegral_comp_comm |
| 89 | ((kernelCurve_continuous P u).intervalIntegrable 0 P)] |
| 90 | congr 1 |
| 91 | apply intervalIntegral.integral_congr |
| 92 | intro s _ |
| 93 | change s • translation P (angleShift P s) (translation P a u) = |
| 94 | translation P a (s • translation P (angleShift P s) u) |
| 95 | rw [map_smul, translations_commute P (angleShift P s) a u] |
| 96 | |
| 97 | /-- This same operator acts on every genuine Sobolev derivative coordinate. -/ |
| 98 | def sobolevPrimitive (q : ℕ) : SobolevSpace P q →L[ℝ] SobolevSpace P q := |
| 99 | liftOperator P q (primitive P) (primitive_translation P) |
| 100 | |
| 101 | theorem sobolevPrimitive_norm (q : ℕ) : ‖sobolevPrimitive P q‖ ≤ P := |
| 102 | (norm_liftOperator_le P q (primitive P) (primitive_translation P)).trans (primitive_norm P) |
| 103 | |
| 104 | end EulerCylinderAnglePrimitive |