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.MeanSolenoidalSpace |
| 2 | |
| 3 | /-! |
| 4 | # Translation invariance of the ordinary solenoidal projection |
| 5 | |
| 6 | The nonoscillating inverse uses spatial difference quotients. These act on the |
| 7 | actual R³ L² space, preserve its weak divergence constraint, and commute with |
| 8 | the orthogonal solenoidal projection. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerMeanSolenoidal |
| 14 | |
| 15 | open MeasureTheory InnerProductSpace EulerSmoothLimit |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | def translation (a : Space) : L2 →ₗᵢ[ℝ] L2 := |
| 19 | Lp.compMeasurePreservingₗᵢ ℝ (fun x : Space => x + a) |
| 20 | (measurePreserving_add_right (volume : Measure Space) a) |
| 21 | |
| 22 | theorem translation_ae (a : Space) (u : L2) : |
| 23 | translation a u =ᵐ[volume] fun x => u (x + a) := |
| 24 | Lp.coeFn_compMeasurePreserving u (measurePreserving_add_right volume a) |
| 25 | |
| 26 | theorem translation_add (a b : Space) (u : L2) : |
| 27 | translation a (translation b u) = translation (a + b) u := by |
| 28 | apply Lp.ext |
| 29 | filter_upwards [translation_ae a (translation b u), |
| 30 | (measurePreserving_add_right (volume : Measure Space) a).quasiMeasurePreserving.ae |
| 31 | (translation_ae b u), translation_ae (a + b) u] with x hx hy hz |
| 32 | rw [hx, hy, hz, add_assoc] |
| 33 | |
| 34 | @[simp] theorem translation_zero (u : L2) : translation 0 u = u := by |
| 35 | apply Lp.ext |
| 36 | filter_upwards [translation_ae 0 u] with x hx |
| 37 | simpa only [add_zero] using hx |
| 38 | |
| 39 | theorem gradient_translated (a : Space) (φ : Space → ℝ) (x : Space) : |
| 40 | gradient (fun y => φ (y + a)) x = gradient φ (x + a) := by |
| 41 | simp only [gradient, fderiv_comp_add_right] |
| 42 | |
| 43 | theorem translated_generator (a : Space) {g : L2} (hg : g ∈ gradientGenerators) : |
| 44 | translation a g ∈ gradientGenerators := by |
| 45 | obtain ⟨φ, hc, hs, hg⟩ := hg |
| 46 | refine ⟨fun x => φ (x + a), hc.comp_homeomorph (Homeomorph.addRight a), |
| 47 | hs.comp (contDiff_id.add contDiff_const), ?_⟩ |
| 48 | filter_upwards [translation_ae a g, |
| 49 | (measurePreserving_add_right (volume : Measure Space) a).quasiMeasurePreserving.ae hg] |
| 50 | with x hx hy |
| 51 | rw [hx, hy, gradient_translated] |
| 52 | |
| 53 | theorem translation_gradient_mem (a : Space) {g : L2} (hg : g ∈ gradientSpace) : |
| 54 | translation a g ∈ gradientSpace := by |
| 55 | let τ := (translation a).toContinuousLinearMap |
| 56 | have hspan : Submodule.span ℝ gradientGenerators ≤ gradientSpace.comap τ.toLinearMap := by |
| 57 | apply Submodule.span_le.2 |
| 58 | intro f hf |
| 59 | exact (Submodule.span ℝ gradientGenerators).le_topologicalClosure |
| 60 | (Submodule.subset_span (translated_generator a hf)) |
| 61 | exact (Submodule.span ℝ gradientGenerators).topologicalClosure_minimal hspan |
| 62 | (gradientSpace_closed.preimage τ.continuous) hg |
| 63 | |
| 64 | theorem translation_solenoidal_mem (a : Space) {u : L2} (hu : u ∈ solenoidalSpace) : |
| 65 | translation a u ∈ solenoidalSpace := by |
| 66 | intro g hg |
| 67 | calc |
| 68 | ⟪g, translation a u⟫_ℝ = |
| 69 | ⟪translation a (translation (-a) g), translation a u⟫_ℝ := by |
| 70 | rw [translation_add, add_neg_cancel, translation_zero] |
| 71 | _ = ⟪translation (-a) g, u⟫_ℝ := (translation a).inner_map_map _ _ |
| 72 | _ = 0 := hu _ (translation_gradient_mem (-a) hg) |
| 73 | |
| 74 | theorem solenoidalSpace_map_translation (a : Space) : |
| 75 | solenoidalSpace.map (translation a).toLinearMap = solenoidalSpace := by |
| 76 | apply le_antisymm |
| 77 | · rintro u ⟨v, hv, rfl⟩ |
| 78 | exact translation_solenoidal_mem a hv |
| 79 | · intro u hu |
| 80 | refine ⟨translation (-a) u, translation_solenoidal_mem (-a) hu, ?_⟩ |
| 81 | change translation a (translation (-a) u) = u |
| 82 | rw [translation_add, add_neg_cancel, translation_zero] |
| 83 | |
| 84 | /-- Ordinary Helmholtz projection commutes with every spatial translation. -/ |
| 85 | theorem solenoidalProjection_translation (a : Space) (u : L2) : |
| 86 | translation a (solenoidalProjection u) = solenoidalProjection (translation a u) := by |
| 87 | have hmap := solenoidalSpace_map_translation a |
| 88 | let : (solenoidalSpace.map (translation a).toLinearMap).HasOrthogonalProjection := by |
| 89 | rw [hmap] |
| 90 | infer_instance |
| 91 | simpa only [solenoidalProjection, hmap] using |
| 92 | (translation a).map_starProjection solenoidalSpace u |
| 93 | |
| 94 | end EulerMeanSolenoidal |