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 NavierStokes.ParametricRadialExtension |
| 2 | import NavierStokes.TransportPrimitive |
| 3 | |
| 4 | /-!+# Smooth auxiliary fields for an annulus |
| 5 | |
| 6 | The maps constructed here agree with the physical fields on an open positive |
| 7 | annulus and are globally smooth. Absolute histories from the axis are not |
| 8 | preserved by clamping. The final section proves the correct transfer statement: |
| 9 | supported edit differences, including their nonlinear density integrals, are |
| 10 | unchanged when transplanted back to the original field. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped ContDiff Topology |
| 17 | |
| 18 | namespace NavierStokes.AnnularAuxiliary |
| 19 | |
| 20 | noncomputable def positiveMap (a X : ℝ) : ℝ := |
| 21 | a + TransportPrimitive.cutoff (a / 2) a X * (X - a) |
| 22 | |
| 23 | theorem positiveMap_contDiff (a : ℝ) : ContDiff ℝ ∞ (positiveMap a) := |
| 24 | contDiff_const.add ((TransportPrimitive.cutoff_contDiff _ _).mul |
| 25 | (contDiff_id.sub contDiff_const)) |
| 26 | |
| 27 | theorem positiveMap_eq {a X : ℝ} (ha : 0 < a) (hX : a ≤ X) : positiveMap a X = X := by |
| 28 | rw [positiveMap, TransportPrimitive.cutoff_one (by linarith) hX] |
| 29 | ring |
| 30 | |
| 31 | theorem positiveMap_pos {a : ℝ} (ha : 0 < a) (X : ℝ) : 0 < positiveMap a X := by |
| 32 | by_cases hX : X ≤ a / 2 |
| 33 | · rw [positiveMap, TransportPrimitive.cutoff_zero (by linarith) hX, zero_mul, add_zero] |
| 34 | exact ha |
| 35 | · by_cases hXa : a ≤ X |
| 36 | · rw [positiveMap_eq ha hXa] |
| 37 | exact ha.trans_le hXa |
| 38 | · have hc := (TransportPrimitive.cutoff_mem_Icc (a / 2) a X).2 |
| 39 | have hm := mul_le_mul_of_nonneg_right hc (sub_nonneg.mpr (le_of_not_ge hXa)) |
| 40 | dsimp [positiveMap] |
| 41 | nlinarith |
| 42 | |
| 43 | noncomputable def auxiliary {S : Set ℝ} |
| 44 | (w : ParametricRadialExtension.ParameterWindow S) (a : ℝ) |
| 45 | (F : ℝ × ℝ → ℝ) (p : ℝ × ℝ) : ℝ := |
| 46 | F (positiveMap a p.1, w.parameterMap p.2) |
| 47 | |
| 48 | theorem auxiliary_contDiff {S : Set ℝ} |
| 49 | (w : ParametricRadialExtension.ParameterWindow S) {a : ℝ} (ha : 0 < a) |
| 50 | {F : ℝ × ℝ → ℝ} (hF : ContDiffOn ℝ ∞ F (Ioi 0 ×ˢ S)) : |
| 51 | ContDiff ℝ ∞ (auxiliary w a F) := |
| 52 | hF.comp_contDiff (((positiveMap_contDiff a).comp contDiff_fst).prodMk |
| 53 | (w.parameterMap_contDiff.comp contDiff_snd)) |
| 54 | (fun p => ⟨positiveMap_pos ha p.1, w.parameterMap_mem p.2⟩) |
| 55 | |
| 56 | theorem auxiliary_eq {S : Set ℝ} |
| 57 | (w : ParametricRadialExtension.ParameterWindow S) {a : ℝ} (ha : 0 < a) |
| 58 | (F : ℝ × ℝ → ℝ) {p : ℝ × ℝ} (hX : a ≤ p.1) (heta : |p.2| ≤ w.inner) : |
| 59 | auxiliary w a F p = F p := by |
| 60 | rw [auxiliary, positiveMap_eq ha hX, w.parameterMap_eq heta] |
| 61 | |
| 62 | theorem auxiliary_germ {S : Set ℝ} |
| 63 | (w : ParametricRadialExtension.ParameterWindow S) {a : ℝ} (ha : 0 < a) |
| 64 | (F : ℝ × ℝ → ℝ) {p : ℝ × ℝ} (hX : a < p.1) (heta : |p.2| < w.inner) : |
| 65 | auxiliary w a F =ᶠ[𝓝 p] F := by |
| 66 | filter_upwards [(isOpen_Ioi.prod isOpen_Ioo).mem_nhds ⟨hX, abs_lt.mp heta⟩] with q hq |
| 67 | exact auxiliary_eq w ha F hq.1.le (abs_lt.mpr hq.2).le |
| 68 | |
| 69 | theorem auxiliary_jets {S : Set ℝ} |
| 70 | (w : ParametricRadialExtension.ParameterWindow S) {a : ℝ} (ha : 0 < a) |
| 71 | (F : ℝ × ℝ → ℝ) (m : ℕ) {p : ℝ × ℝ} |
| 72 | (hX : a < p.1) (heta : |p.2| < w.inner) : |
| 73 | iteratedFDeriv ℝ m (auxiliary w a F) p = iteratedFDeriv ℝ m F p := by |
| 74 | have he := auxiliary_germ w ha F hX heta |
| 75 | have hu : auxiliary w a F =ᶠ[𝓝[univ] p] F := by simpa using he |
| 76 | simpa only [iteratedFDerivWithin_univ] using hu.iteratedFDerivWithin_eq he.eq_of_nhds m |
| 77 | |
| 78 | section Transplant |
| 79 | |
| 80 | variable {α E V : Type*} [AddCommGroup E] [AddCommGroup V] |
| 81 | |
| 82 | /-- Transplant only the edit. The original field carries the unchanged |
| 83 | history between the axis and the edit window. -/ |
| 84 | noncomputable def transplant (base aux replacement : α → E) (x : α) : E := |
| 85 | base x + (replacement x - aux x) |
| 86 | |
| 87 | theorem transplant_outside {base aux replacement : α → E} {x : α} |
| 88 | (hx : replacement x = aux x) : transplant base aux replacement x = base x := by |
| 89 | simp only [transplant, hx, sub_self, add_zero] |
| 90 | |
| 91 | theorem transplant_inside {base aux replacement : α → E} {x : α} |
| 92 | (hx : base x = aux x) : transplant base aux replacement x = replacement x := by |
| 93 | rw [transplant, hx] |
| 94 | abel |
| 95 | |
| 96 | /-- Arbitrary nonlinear density changes transfer pointwise. This includes |
| 97 | quadratic energy, transport, and pressure densities. -/ |
| 98 | theorem transplant_density_difference (H : α → E → V) |
| 99 | {base aux replacement : α → E} {K : Set α} |
| 100 | (hbase : EqOn base aux K) (hedit : ∀ x ∉ K, replacement x = aux x) (x : α) : |
| 101 | H x (transplant base aux replacement x) - H x (base x) = |
| 102 | H x (replacement x) - H x (aux x) := by |
| 103 | by_cases hx : x ∈ K |
| 104 | · rw [transplant_inside (hbase hx), hbase hx] |
| 105 | · rw [transplant_outside (hedit x hx), hedit x hx, sub_self, sub_self] |
| 106 | |
| 107 | end Transplant |
| 108 | |
| 109 | theorem transplant_contDiffOn {D : Set (ℝ × ℝ)} {base aux replacement : ℝ × ℝ → ℝ} |
| 110 | (hb : ContDiffOn ℝ ∞ base D) (ha : ContDiff ℝ ∞ aux) (hr : ContDiff ℝ ∞ replacement) : |
| 111 | ContDiffOn ℝ ∞ (transplant base aux replacement) D := |
| 112 | hb.add (hr.sub ha).contDiffOn |
| 113 | |
| 114 | theorem transplanted_density_integral |
| 115 | {E V : Type*} [AddCommGroup E] [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 116 | (H : (ℝ × ℝ) → E → V) {base aux replacement : ℝ × ℝ → E} {K : Set (ℝ × ℝ)} |
| 117 | (hbase : EqOn base aux K) (hedit : ∀ x ∉ K, replacement x = aux x) (X eta : ℝ) : |
| 118 | (∫ r in (0 : ℝ)..X, H (r, eta) (transplant base aux replacement (r, eta)) - H (r, eta) (base (r, eta))) = |
| 119 | ∫ r in (0 : ℝ)..X, H (r, eta) (replacement (r, eta)) - H (r, eta) (aux (r, eta)) := by |
| 120 | apply intervalIntegral.integral_congr |
| 121 | intro r _ |
| 122 | exact transplant_density_difference H hbase hedit (r, eta) |
| 123 | |
| 124 | end NavierStokes.AnnularAuxiliary |