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.GenericSupportedPolynomial |
| 2 | |
| 3 | noncomputable section |
| 4 | |
| 5 | namespace NavierStokes.GenericDifferentialPolynomial |
| 6 | |
| 7 | open Set Filter |
| 8 | open scoped Topology ContDiff BigOperators |
| 9 | |
| 10 | variable {D ι : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 11 | |
| 12 | /-- A single Cartesian field factor. Coordinate vectors give the usual |
| 13 | multi-index derivatives; arbitrary fixed directions are also permitted. -/ |
| 14 | inductive FieldFactor (D ι : Type*) where |
| 15 | | input : ι → FieldFactor D ι |
| 16 | | directional : D → FieldFactor D ι → FieldFactor D ι |
| 17 | |
| 18 | def FieldFactor.expression : FieldFactor D ι → Expression D ι Empty |
| 19 | | .input i => .input i |
| 20 | | .directional v f => .directional v f.expression |
| 21 | |
| 22 | def FieldFactor.eval (f : FieldFactor D ι) (u : ι → D → ℝ) : D → ℝ := |
| 23 | f.expression.eval (fun k => Empty.elim k) u |
| 24 | |
| 25 | /-- Each leaf records the support of one differentiated field factor in the |
| 26 | base and every increment. Multiplication constructs arbitrary positive-degree |
| 27 | monomials without requiring undifferentiated components to share the support. -/ |
| 28 | inductive FactorSupportAt (base : ι → D → ℝ) (inc : ℕ → ι → D → ℝ) (x : D) : |
| 29 | Expression D ι Empty → Prop where |
| 30 | | factor (f : FieldFactor D ι) |
| 31 | (base_zero : f.eval base =ᶠ[𝓝 x] (fun _ => 0)) |
| 32 | (increment_zero : ∀ j, f.eval (inc j) =ᶠ[𝓝 x] (fun _ => 0)) : |
| 33 | FactorSupportAt base inc x f.expression |
| 34 | | mul {e f : Expression D ι Empty} : |
| 35 | FactorSupportAt base inc x e → FactorSupportAt base inc x f → |
| 36 | FactorSupportAt base inc x (.mul e f) |
| 37 | |
| 38 | end NavierStokes.GenericDifferentialPolynomial |