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.CylinderReflection |
| 2 | import Euler.SobolevCoefficientPressure |
| 3 | |
| 4 | /-! Reflection invariance of the concrete lifted-gradient space and pressure solve. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerGradientReflection |
| 9 | |
| 10 | open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerPressureSpatialRegularity |
| 11 | EulerLiftedPressure EulerCylinderReflection EulerSpatialSobolevInverse |
| 12 | open scoped ContDiff Topology |
| 13 | |
| 14 | variable (period : ℝ) [Fact (0 < period)] |
| 15 | |
| 16 | /-- Reflecting a genuine smooth test gradient gives the negative gradient |
| 17 | of the reflected scalar test. -/ |
| 18 | theorem reflection_testGradient (κ : ℝ) (m : Vector3) (φ : LiftDomain period → ℝ) |
| 19 | (hφ : HasCompactSupport φ ∧ ∀ x, ContDiff ℝ ∞ (localLift period φ x)) : |
| 20 | reflection period (testGradientLp period κ m φ hφ) = |
| 21 | -testGradientLp period κ m (reflectedTest period φ) (smoothCompactTest_reflected period φ hφ) := by |
| 22 | apply Lp.ext |
| 23 | filter_upwards [reflection_ae period (testGradientLp period κ m φ hφ), |
| 24 | (measurePreserving_reflection period).quasiMeasurePreserving.ae (testGradientLp_ae period κ m φ hφ), |
| 25 | Lp.coeFn_neg (testGradientLp period κ m (reflectedTest period φ) (smoothCompactTest_reflected period φ hφ)), |
| 26 | testGradientLp_ae period κ m (reflectedTest period φ) (smoothCompactTest_reflected period φ hφ)] |
| 27 | with x h1 h2 h3 h4 |
| 28 | rw [h1, h2, h3] |
| 29 | change liftedGradient period κ m φ (-x) = |
| 30 | -(testGradientLp period κ m (reflectedTest period φ) (smoothCompactTest_reflected period φ hφ) x) |
| 31 | rw [h4, liftedGradient_reflected period κ m φ hφ.2 x, neg_neg] |
| 32 | |
| 33 | /-- Reflection preserves the closure of the span of actual test gradients. -/ |
| 34 | theorem gradientSpace_reflection_mem (κ : ℝ) (m : Vector3) {g : LiftL2 period} |
| 35 | (hg : g ∈ gradientSpace period κ m) : reflection period g ∈ gradientSpace period κ m := by |
| 36 | let R := (reflection period).toContinuousLinearMap |
| 37 | have hspan : Submodule.span ℝ |
| 38 | {f : LiftL2 period | ∃ φ : LiftDomain period → ℝ, |
| 39 | (HasCompactSupport φ ∧ ∀ x, ContDiff ℝ ∞ (localLift period φ x)) ∧ |
| 40 | f =ᵐ[liftMeasure period] liftedGradient period κ m φ} ≤ |
| 41 | (gradientSpace period κ m).comap R.toLinearMap := by |
| 42 | apply Submodule.span_le.2 |
| 43 | rintro f ⟨φ, hφ, hf⟩ |
| 44 | have heq : f = testGradientLp period κ m φ hφ := Lp.ext (hf.trans (testGradientLp_ae period κ m φ hφ).symm) |
| 45 | change reflection period f ∈ gradientSpace period κ m |
| 46 | rw [heq, reflection_testGradient] |
| 47 | exact (gradientSpace period κ m).neg_mem (testGradient_mem period κ m |
| 48 | (testGradientLp_mem_generators period κ m (reflectedTest period φ) (smoothCompactTest_reflected period φ hφ))) |
| 49 | have hclosed : IsClosed ((gradientSpace period κ m).comap R.toLinearMap : Set (LiftL2 period)) := |
| 50 | (gradientSpace_closed period κ m).preimage R.continuous |
| 51 | exact (Submodule.topologicalClosure_minimal _ hspan hclosed) hg |
| 52 | |
| 53 | /-- Reflection maps the concrete lifted-gradient subspace onto itself. -/ |
| 54 | theorem gradientSpace_map_reflection (κ : ℝ) (m : Vector3) : |
| 55 | (gradientSpace period κ m).map (reflection period).toLinearMap = gradientSpace period κ m := by |
| 56 | apply le_antisymm |
| 57 | · rintro g ⟨f, hf, rfl⟩ |
| 58 | exact gradientSpace_reflection_mem period κ m hf |
| 59 | · intro g hg |
| 60 | exact ⟨reflection period g, gradientSpace_reflection_mem period κ m hg, reflection_involutive period g⟩ |
| 61 | |
| 62 | /-- The genuine orthogonal gradient projection commutes with joint reflection. -/ |
| 63 | theorem gradientProjection_reflection (κ : ℝ) (m : Vector3) (f : LiftL2 period) : |
| 64 | reflection period (gradientProjection period κ m f) = gradientProjection period κ m (reflection period f) := by |
| 65 | have hmap := gradientSpace_map_reflection period κ m |
| 66 | let : ((gradientSpace period κ m).map (reflection period).toLinearMap).HasOrthogonalProjection := by |
| 67 | rw [hmap] |
| 68 | infer_instance |
| 69 | simpa only [gradientProjection, hmap] using |
| 70 | (reflection period).map_starProjection (gradientSpace period κ m) f |
| 71 | |
| 72 | /-- The actual weak divergence-free constraint is preserved by reflection. -/ |
| 73 | theorem divergenceFreeSpace_reflection_mem (κ : ℝ) (m : Vector3) {f : LiftL2 period} |
| 74 | (hf : f ∈ divergenceFreeSpace period κ m) : reflection period f ∈ divergenceFreeSpace period κ m := by |
| 75 | have hz : gradientProjection period κ m f = 0 := |
| 76 | (Submodule.starProjection_apply_eq_zero_iff (gradientSpace period κ m)).mpr hf |
| 77 | apply (Submodule.starProjection_apply_eq_zero_iff (gradientSpace period κ m)).mp |
| 78 | change gradientProjection period κ m (reflection period f) = 0 |
| 79 | rw [← gradientProjection_reflection, hz, map_zero] |
| 80 | |
| 81 | /-- An even coefficient field commutes with the actual reflection isometry. -/ |
| 82 | theorem coefficientOperator_reflection (A : SmoothCoefficient period) |
| 83 | (hA : ∀ x, A.coefficient (-x) = A.coefficient x) (f : LiftL2 period) : |
| 84 | reflection period (A.operator f) = A.operator (reflection period f) := by |
| 85 | apply Lp.ext |
| 86 | filter_upwards [reflection_ae period (A.operator f), |
| 87 | (measurePreserving_reflection period).quasiMeasurePreserving.ae (A.operator_ae f), |
| 88 | A.operator_ae (reflection period f), reflection_ae period f] with x h1 h2 h3 h4 |
| 89 | rw [h1, h2, h3, h4, hA] |
| 90 | |
| 91 | /-- Uniqueness of the concrete coercive pressure inverse proves its |
| 92 | reflection covariance for the actual even metric. -/ |
| 93 | theorem pressure_reflection (A : SmoothCoefficient period) |
| 94 | (hA : ∀ x, A.coefficient (-x) = A.coefficient x) |
| 95 | (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) |
| 96 | (hpos : ∀ x v, c * ‖v‖ ^ 2 ≤ ⟪A.coefficient x v,v⟫_ℝ) (f : LiftL2 period) : |
| 97 | reflection period (A.pressure κ m c hc hpos f) = |
| 98 | A.pressure κ m c hc hpos (reflection period f) := by |
| 99 | apply liftedPressure_unique period κ m A.coefficient A.measurable A.bound A.norm_bound c hc hpos |
| 100 | · exact gradientSpace_reflection_mem period κ m |
| 101 | (liftedPressure_mem period κ m A.coefficient A.measurable A.bound A.norm_bound c hc hpos f) |
| 102 | · change gradientProjection period κ m (A.operator (reflection period (A.pressure κ m c hc hpos f))) = _ |
| 103 | rw [← coefficientOperator_reflection period A hA, ← gradientProjection_reflection] |
| 104 | have he := liftedPressure_equation period κ m A.coefficient A.measurable A.bound A.norm_bound c hc hpos f |
| 105 | change gradientProjection period κ m (A.operator (A.pressure κ m c hc hpos f)) = |
| 106 | gradientProjection period κ m f at he |
| 107 | rw [he, gradientProjection_reflection] |
| 108 | |
| 109 | end EulerGradientReflection |