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 | section Transplant |
| 49 | |
| 50 | variable {α E V : Type*} [AddCommGroup E] [AddCommGroup V] |
| 51 | |
| 52 | /-- Transplant only the edit. The original field carries the unchanged |
| 53 | history between the axis and the edit window. -/ |
| 54 | noncomputable def transplant (base aux replacement : α → E) (x : α) : E := |
| 55 | base x + (replacement x - aux x) |
| 56 | |
| 57 | theorem transplant_outside {base aux replacement : α → E} {x : α} |
| 58 | (hx : replacement x = aux x) : transplant base aux replacement x = base x := by |
| 59 | simp only [transplant, hx, sub_self, add_zero] |
| 60 | |
| 61 | theorem transplant_inside {base aux replacement : α → E} {x : α} |
| 62 | (hx : base x = aux x) : transplant base aux replacement x = replacement x := by |
| 63 | rw [transplant, hx] |
| 64 | abel |
| 65 | |
| 66 | end Transplant |
| 67 | |
| 68 | end NavierStokes.AnnularAuxiliary |