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.CylinderSobolevDerivatives |
| 2 | |
| 3 | /-! The actual joint spatial and angular reflection on cylinder L² fields. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerCylinderReflection |
| 8 | |
| 9 | open MeasureTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity |
| 10 | open scoped Topology ContDiff |
| 11 | |
| 12 | variable (period : ℝ) [Fact (0 < period)] |
| 13 | |
| 14 | /-- Joint negation of the spatial and periodic coordinates preserves cylinder measure. -/ |
| 15 | theorem measurePreserving_reflection : |
| 16 | MeasurePreserving (fun x : LiftDomain period => -x) (liftMeasure period) (liftMeasure period) := by |
| 17 | exact (Measure.measurePreserving_neg (volume : Measure Vector3)).prod |
| 18 | (Measure.measurePreserving_neg (volume : Measure (AddCircle period))) |
| 19 | |
| 20 | /-- Pullback by joint spatial and angular reflection, as an actual L² isometry. -/ |
| 21 | def reflection : LiftL2 period →ₗᵢ[ℝ] LiftL2 period := |
| 22 | Lp.compMeasurePreservingₗᵢ ℝ (fun x : LiftDomain period => -x) (measurePreserving_reflection period) |
| 23 | |
| 24 | /-- The L² reflection is represented by literal composition with negation. -/ |
| 25 | theorem reflection_ae (f : LiftL2 period) : |
| 26 | reflection period f =ᵐ[liftMeasure period] fun x => f (-x) := |
| 27 | Lp.coeFn_compMeasurePreserving f (measurePreserving_reflection period) |
| 28 | |
| 29 | /-- Reflecting twice is the identity on the actual L² field. -/ |
| 30 | @[simp] theorem reflection_involutive (f : LiftL2 period) : |
| 31 | reflection period (reflection period f) = f := by |
| 32 | apply Lp.ext |
| 33 | filter_upwards [reflection_ae period (reflection period f), |
| 34 | (measurePreserving_reflection period).quasiMeasurePreserving.ae (reflection_ae period f)] with x hx hy |
| 35 | rw [hx, hy, neg_neg] |
| 36 | |
| 37 | /-- Reflection preserves the actual L² norm. -/ |
| 38 | theorem reflection_norm (f : LiftL2 period) : ‖reflection period f‖ = ‖f‖ := |
| 39 | (reflection period).norm_map f |
| 40 | |
| 41 | /-- Reflection reverses translations in every spatial or angular direction. -/ |
| 42 | theorem reflection_translation (a : LiftDomain period) (f : LiftL2 period) : |
| 43 | reflection period (translation period a f) = translation period (-a) (reflection period f) := by |
| 44 | apply Lp.ext |
| 45 | filter_upwards [reflection_ae period (translation period a f), |
| 46 | (measurePreserving_reflection period).quasiMeasurePreserving.ae (translation_ae period a f), |
| 47 | translation_ae period (-a) (reflection period f), |
| 48 | (measurePreserving_translation period (-a)).quasiMeasurePreserving.ae (reflection_ae period f)] |
| 49 | with x h1 h2 h3 h4 |
| 50 | rw [h1, h2, h3, h4] |
| 51 | congr 1 |
| 52 | abel |
| 53 | |
| 54 | omit [Fact (0 < period)] in |
| 55 | /-- Negating a translation parameter negates its point on the cylinder. -/ |
| 56 | @[simp] theorem translationPath_neg (a : LiftTangent) (t : ℝ) : |
| 57 | translationPath period a (-t) = -translationPath period a t := by |
| 58 | simp [translationPath, coveringMap, neg_smul] |
| 59 | |
| 60 | /-- Strong translation derivatives reverse sign under actual reflection. -/ |
| 61 | theorem reflection_hasDerivAt (a : LiftTangent) {f g : LiftL2 period} |
| 62 | (h : HasDerivAt (fun t => translation period (translationPath period a t) f) g 0) : |
| 63 | HasDerivAt (fun t => translation period (translationPath period a t) (reflection period f)) |
| 64 | (-reflection period g) 0 := by |
| 65 | have h0 : HasDerivAt (fun t => translation period (translationPath period a t) f) g ((-id) (0 : ℝ)) := by |
| 66 | simpa using h |
| 67 | have hn := h0.scomp 0 ((hasDerivAt_id (0 : ℝ)).neg) |
| 68 | have hr := (reflection period).toContinuousLinearMap.hasFDerivAt.comp_hasDerivAt 0 hn |
| 69 | convert! hr using 1 |
| 70 | · funext t |
| 71 | change translation period (translationPath period a t) (reflection period f) = |
| 72 | reflection period (translation period (translationPath period a (-t)) f) |
| 73 | rw [reflection_translation, translationPath_neg, neg_neg] |
| 74 | · simp |
| 75 | |
| 76 | /-- A scalar test pulled back by joint negation. -/ |
| 77 | def reflectedTest (φ : LiftDomain period → ℝ) : LiftDomain period → ℝ := fun x => φ (-x) |
| 78 | |
| 79 | omit [Fact (0 < period)] in |
| 80 | /-- In covering coordinates reflection is exactly negation of the increment. -/ |
| 81 | theorem localLift_reflected (φ : LiftDomain period → ℝ) (x : LiftDomain period) : |
| 82 | localLift period (reflectedTest period φ) x = fun h => localLift period φ (-x) (-h) := by |
| 83 | funext h |
| 84 | simp [localLift, reflectedTest, neg_add_rev, add_comm] |
| 85 | |
| 86 | omit [Fact (0 < period)] in |
| 87 | /-- Reflection preserves the class of smooth compact scalar tests. -/ |
| 88 | theorem smoothCompactTest_reflected (φ : LiftDomain period → ℝ) |
| 89 | (hφ : HasCompactSupport φ ∧ ∀ x, ContDiff ℝ ∞ (localLift period φ x)) : |
| 90 | HasCompactSupport (reflectedTest period φ) ∧ |
| 91 | ∀ x, ContDiff ℝ ∞ (localLift period (reflectedTest period φ) x) := by |
| 92 | refine ⟨hφ.1.comp_homeomorph (Homeomorph.neg _), fun x => ?_⟩ |
| 93 | rw [localLift_reflected] |
| 94 | exact (hφ.2 (-x)).comp contDiff_id.neg |
| 95 | |
| 96 | omit [Fact (0 < period)] in |
| 97 | /-- The actual lifted gradient reverses parity under joint reflection. -/ |
| 98 | theorem liftedGradient_reflected (κ : ℝ) (m : Vector3) (φ : LiftDomain period → ℝ) |
| 99 | (hφ : ∀ x, ContDiff ℝ ∞ (localLift period φ x)) (x : LiftDomain period) : |
| 100 | liftedGradient period κ m (reflectedTest period φ) x = -liftedGradient period κ m φ (-x) := by |
| 101 | have hd := ((hφ (-x)).differentiable (by simp) (0 : LiftTangent)).hasFDerivAt |
| 102 | have hn := (hasFDerivAt_id (𝕜 := ℝ) (0 : LiftTangent)).neg |
| 103 | have hd0 : HasFDerivAt (localLift period φ (-x)) (fderiv ℝ (localLift period φ (-x)) 0) |
| 104 | ((-id) (0 : LiftTangent)) := by simpa using hd |
| 105 | have hh := hd0.comp (0 : LiftTangent) hn |
| 106 | have hder : fderiv ℝ (localLift period (reflectedTest period φ) x) 0 = |
| 107 | -fderiv ℝ (localLift period φ (-x)) 0 := by |
| 108 | rw [localLift_reflected] |
| 109 | simpa [Function.comp_def] using hh.fderiv |
| 110 | ext i |
| 111 | simp [liftedGradient, hder, add_comm] |
| 112 | |
| 113 | end EulerCylinderReflection |