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.PhysicalWaveSum |
| 2 | import NavierStokes.PhysicalCurlCovariance |
| 3 | |
| 4 | /-! |
| 5 | # Finite-support sums in physical coordinates |
| 6 | |
| 7 | These identities only use finite support and the literal real-coordinate maps. |
| 8 | They let a physical wave assembly retain an unrestricted label `finsum` while |
| 9 | identifying its value with the finite active-label sum. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.SignedPhysicalSumCalculus |
| 15 | |
| 16 | open Set Function ProblemStatement HarmonicCalculus |
| 17 | open scoped BigOperators |
| 18 | |
| 19 | theorem finsum_eq_sum_of_zero_off {α E : Type*} [AddCommMonoid E] |
| 20 | (s : Finset α) (f : α → E) (hz : ∀ l, l ∉ s → f l = 0) : |
| 21 | (∑ᶠ l, f l) = ∑ l ∈ s, f l := by |
| 22 | classical |
| 23 | apply finsum_eq_sum_of_support_subset |
| 24 | intro l hl |
| 25 | by_contra hn |
| 26 | exact hl (hz l hn) |
| 27 | |
| 28 | theorem sum_realCoordinate (v : ComplexVector) : |
| 29 | (∑ i : Fin 3, PhysicalWaveSum.realCoordinate i (v i)) = |
| 30 | PhysicalCurlCovariance.realVector v := by |
| 31 | ext i |
| 32 | fin_cases i <;> |
| 33 | simp [Fin.sum_univ_succ, PhysicalWaveSum.realCoordinate_apply, |
| 34 | coordinateVector, PhysicalCurlCovariance.realVector_apply] |
| 35 | |
| 36 | /-- An unrestricted scalar-label sum becomes the finite real-part sum once |
| 37 | the labels outside the specified finite set vanish. -/ |
| 38 | theorem real_finsum_eq_sum {α : Type*} (s : Finset α) (p : α → ℂ) (q : α → ℝ) |
| 39 | (hz : ∀ l, l ∉ s → p l = 0) (hreal : ∀ l, (p l).re = q l) : |
| 40 | (∑ᶠ l, p l).re = ∑ l ∈ s, q l := by |
| 41 | rw [finsum_eq_sum_of_zero_off s p hz] |
| 42 | change Complex.reCLM (∑ l ∈ s, p l) = _ |
| 43 | rw [map_sum] |
| 44 | exact Finset.sum_congr rfl (fun l _ => hreal l) |
| 45 | |
| 46 | /-- Reconstructing the Euclidean vector after the componentwise label sums |
| 47 | agrees exactly with summing the real vectors of the active labels. -/ |
| 48 | theorem realCoordinate_finsum_eq_sum {α : Type*} (s : Finset α) |
| 49 | (F : α → ComplexVector) (G : α → Space) |
| 50 | (hz : ∀ l, l ∉ s → F l = 0) |
| 51 | (hreal : ∀ l, PhysicalCurlCovariance.realVector (F l) = G l) : |
| 52 | (∑ i : Fin 3, PhysicalWaveSum.realCoordinate i (∑ᶠ l, F l i)) = |
| 53 | ∑ l ∈ s, G l := by |
| 54 | classical |
| 55 | have hs (i : Fin 3) : (∑ᶠ l, F l i) = ∑ l ∈ s, F l i := |
| 56 | finsum_eq_sum_of_zero_off s (fun l => F l i) (fun l hl => congrFun (hz l hl) i) |
| 57 | calc |
| 58 | _ = ∑ i : Fin 3, ∑ l ∈ s, PhysicalWaveSum.realCoordinate i (F l i) := by |
| 59 | simp only [hs, map_sum] |
| 60 | _ = ∑ l ∈ s, ∑ i : Fin 3, PhysicalWaveSum.realCoordinate i (F l i) := |
| 61 | Finset.sum_comm |
| 62 | _ = ∑ l ∈ s, G l := by |
| 63 | apply Finset.sum_congr rfl |
| 64 | intro l _ |
| 65 | rw [sum_realCoordinate, hreal] |
| 66 | |
| 67 | end NavierStokes.SignedPhysicalSumCalculus |