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.MeanSolenoidalTranslation |
| 2 | |
| 3 | /-! |
| 4 | Actual spatial reflection on ordinary R³ L². Reflection preserves the |
| 5 | closed gradient and solenoidal spaces and commutes with the genuine Helmholtz |
| 6 | projection. The scalar test is reflected with a minus sign so its gradient |
| 7 | has the same pullback as an ordinary vector field. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerMeanSolenoidal |
| 13 | |
| 14 | open MeasureTheory InnerProductSpace EulerSmoothLimit |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | theorem measurePreserving_reflection : |
| 18 | MeasurePreserving (fun x : Space => -x) (volume : Measure Space) volume := |
| 19 | Measure.measurePreserving_neg volume |
| 20 | |
| 21 | def reflection : L2 →ₗᵢ[ℝ] L2 := |
| 22 | Lp.compMeasurePreservingₗᵢ ℝ (fun x : Space => -x) measurePreserving_reflection |
| 23 | |
| 24 | theorem reflection_ae (u : L2) : reflection u =ᵐ[volume] fun x => u (-x) := |
| 25 | Lp.coeFn_compMeasurePreserving u measurePreserving_reflection |
| 26 | |
| 27 | @[simp] theorem reflection_involutive (u : L2) : reflection (reflection u) = u := by |
| 28 | apply Lp.ext |
| 29 | filter_upwards [reflection_ae (reflection u), |
| 30 | measurePreserving_reflection.quasiMeasurePreserving.ae (reflection_ae u)] with x hx hy |
| 31 | rw [hx, hy, neg_neg] |
| 32 | |
| 33 | theorem reflection_norm (u : L2) : ‖reflection u‖ = ‖u‖ := reflection.norm_map u |
| 34 | |
| 35 | theorem reflection_inner_shift (u v : L2) : ⟪reflection u, v⟫_ℝ = ⟪u, reflection v⟫_ℝ := by |
| 36 | calc |
| 37 | _ = ⟪reflection u, reflection (reflection v)⟫_ℝ := by rw [reflection_involutive] |
| 38 | _ = _ := reflection.inner_map_map u (reflection v) |
| 39 | |
| 40 | /-- The two signs in the derivative of `-f(-x)` cancel. -/ |
| 41 | theorem fderiv_neg_reflect {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 42 | (f : Space → F) (hf : Differentiable ℝ f) (x : Space) : |
| 43 | fderiv ℝ (fun y => -f (-y)) x = fderiv ℝ f (-x) := by |
| 44 | have hd : HasFDerivAt f (fderiv ℝ f (-x)) ((-id) x) := (hf (-x)).hasFDerivAt |
| 45 | have hh := (hd.comp x (hasFDerivAt_id (𝕜 := ℝ) x).neg).neg |
| 46 | have he : -((fderiv ℝ f (-x)).comp (-(ContinuousLinearMap.id ℝ Space))) = |
| 47 | fderiv ℝ f (-x) := by |
| 48 | ext v |
| 49 | simp |
| 50 | rw [he] at hh |
| 51 | exact hh.fderiv |
| 52 | |
| 53 | theorem gradient_neg_reflect (φ : Space → ℝ) (hφ : Differentiable ℝ φ) (x : Space) : |
| 54 | gradient (fun y => -φ (-y)) x = gradient φ (-x) := by |
| 55 | simp only [gradient, fderiv_neg_reflect φ hφ] |
| 56 | |
| 57 | theorem reflected_generator {g : L2} (hg : g ∈ gradientGenerators) : |
| 58 | reflection g ∈ gradientGenerators := by |
| 59 | obtain ⟨φ, hc, hs, hg⟩ := hg |
| 60 | refine ⟨fun x => -φ (-x), (hc.comp_homeomorph (Homeomorph.neg Space)).neg, |
| 61 | (hs.comp contDiff_id.neg).neg, ?_⟩ |
| 62 | filter_upwards [reflection_ae g, |
| 63 | measurePreserving_reflection.quasiMeasurePreserving.ae hg] with x hx hy |
| 64 | rw [hx, hy, gradient_neg_reflect φ (hs.differentiable (by simp))] |
| 65 | |
| 66 | theorem reflection_gradient_mem {g : L2} (hg : g ∈ gradientSpace) : |
| 67 | reflection g ∈ gradientSpace := by |
| 68 | let ρ := reflection.toContinuousLinearMap |
| 69 | have hspan : Submodule.span ℝ gradientGenerators ≤ gradientSpace.comap ρ.toLinearMap := by |
| 70 | apply Submodule.span_le.2 |
| 71 | intro f hf |
| 72 | exact (Submodule.span ℝ gradientGenerators).le_topologicalClosure |
| 73 | (Submodule.subset_span (reflected_generator hf)) |
| 74 | exact (Submodule.span ℝ gradientGenerators).topologicalClosure_minimal hspan |
| 75 | (gradientSpace_closed.preimage ρ.continuous) hg |
| 76 | |
| 77 | theorem reflection_solenoidal_mem {u : L2} (hu : u ∈ solenoidalSpace) : |
| 78 | reflection u ∈ solenoidalSpace := by |
| 79 | intro g hg |
| 80 | calc |
| 81 | ⟪g, reflection u⟫_ℝ = ⟪reflection (reflection g), reflection u⟫_ℝ := by |
| 82 | rw [reflection_involutive] |
| 83 | _ = ⟪reflection g, u⟫_ℝ := reflection.inner_map_map _ _ |
| 84 | _ = 0 := hu _ (reflection_gradient_mem hg) |
| 85 | |
| 86 | theorem solenoidalSpace_map_reflection : |
| 87 | solenoidalSpace.map reflection.toLinearMap = solenoidalSpace := by |
| 88 | apply le_antisymm |
| 89 | · rintro u ⟨v, hv, rfl⟩ |
| 90 | exact reflection_solenoidal_mem hv |
| 91 | · intro u hu |
| 92 | exact ⟨reflection u, reflection_solenoidal_mem hu, reflection_involutive u⟩ |
| 93 | |
| 94 | /-- The actual ordinary Helmholtz projection commutes with reflection. -/ |
| 95 | theorem solenoidalProjection_reflection (u : L2) : |
| 96 | reflection (solenoidalProjection u) = solenoidalProjection (reflection u) := by |
| 97 | have hmap := solenoidalSpace_map_reflection |
| 98 | let : (solenoidalSpace.map reflection.toLinearMap).HasOrthogonalProjection := by |
| 99 | rw [hmap] |
| 100 | infer_instance |
| 101 | simpa only [solenoidalProjection, hmap] using reflection.map_starProjection solenoidalSpace u |
| 102 | |
| 103 | theorem reflection_translation (a : Space) (u : L2) : |
| 104 | reflection (translation a u) = translation (-a) (reflection u) := by |
| 105 | apply Lp.ext |
| 106 | filter_upwards [reflection_ae (translation a u), |
| 107 | measurePreserving_reflection.quasiMeasurePreserving.ae (translation_ae a u), |
| 108 | translation_ae (-a) (reflection u), |
| 109 | (measurePreserving_add_right (volume : Measure Space) (-a)).quasiMeasurePreserving.ae |
| 110 | (reflection_ae u)] with x h₁ h₂ h₃ h₄ |
| 111 | rw [h₁, h₂, h₃, h₄] |
| 112 | congr 1 |
| 113 | abel |
| 114 | |
| 115 | end EulerMeanSolenoidal |