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 Mathlib.Analysis.Distribution.AEEqOfIntegralContDiff |
| 2 | import Mathlib.MeasureTheory.Measure.OpenPos |
| 3 | |
| 4 | /-! # Pointwise recovery from compact temporal tests -/ |
| 5 | |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open Set Filter MeasureTheory |
| 10 | open scoped Topology ContDiff |
| 11 | |
| 12 | namespace NavierStokesR3.TemporalTestUniqueness |
| 13 | |
| 14 | /-- Continuity turns the distributional fundamental lemma into equality at |
| 15 | every time of the open interval. The tests are real, and values may be complex. -/ |
| 16 | theorem eq_zero_on_open_of_tests {U : Set ℝ} (hU : IsOpen U) {f : ℝ → ℂ} |
| 17 | (hf : ContinuousOn f U) |
| 18 | (htest : ∀ a : ℝ → ℝ, ContDiff ℝ ∞ a → HasCompactSupport a → tsupport a ⊆ U → |
| 19 | (∫ t : ℝ, a t • f t) = 0) : |
| 20 | ∀ t ∈ U, f t = 0 := by |
| 21 | have hae := hU.ae_eq_zero_of_integral_contDiff_smul_eq_zero |
| 22 | (hf.locallyIntegrableOn hU.measurableSet) htest |
| 23 | have hrestr : f =ᵐ[volume.restrict U] (fun _ => (0 : ℂ)) := by |
| 24 | filter_upwards [ae_restrict_of_ae hae, ae_restrict_mem hU.measurableSet] with t ht htU |
| 25 | exact ht htU |
| 26 | exact Measure.eqOn_open_of_ae_eq hrestr hU hf continuousOn_const |
| 27 | |
| 28 | /-- A compact temporal test supported in `(0,T)` has the same integral over |
| 29 | `[0,T]` as over the line. No integrability of the untested function is needed. -/ |
| 30 | theorem integral_eq_setIntegral {T : ℝ} {a : ℝ → ℝ} {f : ℝ → ℂ} |
| 31 | (hs : tsupport a ⊆ Ioo (0 : ℝ) T) : |
| 32 | (∫ t : ℝ, a t • f t) = ∫ t in Icc (0 : ℝ) T, a t • f t := by |
| 33 | symm |
| 34 | apply setIntegral_eq_integral_of_forall_compl_eq_zero |
| 35 | intro t ht |
| 36 | have ha : a t = 0 := image_eq_zero_of_notMem_tsupport fun h => |
| 37 | ht (Ioo_subset_Icc_self (hs h)) |
| 38 | simp only [ha, zero_smul] |
| 39 | |
| 40 | theorem eq_zero_on_Ioo_of_setIntegral_tests {T : ℝ} {f : ℝ → ℂ} |
| 41 | (hf : ContinuousOn f (Ioo (0 : ℝ) T)) |
| 42 | (htest : ∀ a : ℝ → ℝ, ContDiff ℝ ∞ a → HasCompactSupport a → |
| 43 | tsupport a ⊆ Ioo (0 : ℝ) T → |
| 44 | (∫ t in Icc (0 : ℝ) T, a t • f t) = 0) : |
| 45 | ∀ t ∈ Ioo (0 : ℝ) T, f t = 0 := by |
| 46 | apply eq_zero_on_open_of_tests isOpen_Ioo hf |
| 47 | intro a ha hc hs |
| 48 | rw [integral_eq_setIntegral hs] |
| 49 | exact htest a ha hc hs |
| 50 | |
| 51 | end NavierStokesR3.TemporalTestUniqueness |