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.ComparatorBridge |
| 2 | |
| 3 | /-! |
| 4 | # Viscosity normalization for the whole-space comparator |
| 5 | |
| 6 | This version retains the comparator's square integrability and uniform kinetic |
| 7 | energy bound. It makes no periodicity or compact-support assumption on a |
| 8 | hypothetical global solution. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.ComparatorBridge |
| 14 | |
| 15 | open Set MeasureTheory InnerProductSpace ProblemStatement |
| 16 | open scoped ContDiff Laplacian |
| 17 | |
| 18 | theorem zero_initial_condition_decay : |
| 19 | Comparator.InitialVelocityConditionDecay (fun _ : Space => (0 : Space)) := by |
| 20 | refine ⟨⟨fun x => Comparator.divergence_const 0 x, contDiff_const⟩, ?_⟩ |
| 21 | intro m K |
| 22 | exact ⟨0, by simp⟩ |
| 23 | |
| 24 | /-- A global whole-space solution in the original physical coordinates. -/ |
| 25 | structure GlobalSolutionRn (f : VelocityField) (v : VelocityField) (p : PressureField) : Prop where |
| 26 | velocity_smooth : ContDiffOn ℝ ∞ v futureDomain |
| 27 | pressure_smooth : ContDiffOn ℝ ∞ p futureDomain |
| 28 | initial_velocity : ∀ x : Space, v (0, x) = 0 |
| 29 | divergence_free : ∀ t : ℝ, 0 ≤ t → ∀ x : Space, spatialDivergence v t x = 0 |
| 30 | navier_stokes : ∀ t : ℝ, 0 < t → ∀ x : Space, navierStokesResidual v p t x = f (t, x) |
| 31 | integrable : ∀ t : ℝ, 0 ≤ t → MemLp (fun x : Space => ‖v (t, x)‖) 2 |
| 32 | globally_bounded_energy : ∃ E : ℝ, ∀ t : ℝ, 0 ≤ t → (∫ x : Space, ‖v (t, x)‖ ^ 2) < E |
| 33 | |
| 34 | theorem comparator_equation_Rn {ν : ℝ} {u₀ : Space → Space} {f v : Space → ℝ → Space} |
| 35 | {p : Space → ℝ → ℝ} |
| 36 | (h : Comparator.NavierStokesExistenceAndSmoothnessRn ν u₀ f v p) |
| 37 | {t : ℝ} (ht : 0 < t) (x : Space) : |
| 38 | temporalDerivative (fromComparator v) t x + advection (fromComparator v) t x - |
| 39 | ν • spatialLaplacian (fromComparator v) t x + |
| 40 | pressureGradient (fromComparator p) t x = f x t := by |
| 41 | have hv := smooth_space_slice (fromComparator_smooth h.velocity_smooth) ht.le |
| 42 | rw [temporalDerivative_eq _ ht, laplacian_eq _ _ _ |
| 43 | (hv.of_le (ENat.natCast_lt_of_coe_top_le_withTop le_rfl 2).le), gradient_eq] |
| 44 | change derivWithin (v x) (Ici 0) t + fderiv ℝ (v · t) x (v x t) - |
| 45 | ν • Δ (v · t) x + gradient (p · t) x = f x t |
| 46 | rw [h.navier_stokes x t ht.le] |
| 47 | abel |
| 48 | |
| 49 | /-- Normalize an arbitrary global finite-energy comparison solution to viscosity one. -/ |
| 50 | theorem normalized_solution_Rn {ν : ℝ} (hν : 0 < ν) {f : VelocityField} |
| 51 | {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} |
| 52 | (h : Comparator.NavierStokesExistenceAndSmoothnessRn ν (fun _ => 0) |
| 53 | (toComparator (rescaledForce ν f)) v p) : |
| 54 | GlobalSolutionRn f (rescale ν⁻¹ ν⁻¹ (fromComparator v)) |
| 55 | (rescale (ν⁻¹ ^ 2) ν⁻¹ (fromComparator p)) := by |
| 56 | have hc : 0 < ν⁻¹ := inv_pos.mpr hν |
| 57 | have hv := fromComparator_smooth h.velocity_smooth |
| 58 | have hp := fromComparator_smooth h.pressure_smooth |
| 59 | refine ⟨rescale_smooth hv _ hc.le, rescale_smooth hp _ hc.le, ?_, ?_, ?_, ?_, ?_⟩ |
| 60 | · intro x |
| 61 | simp [rescale, fromComparator, h.initial_condition] |
| 62 | · intro t ht x |
| 63 | rw [rescale_divergence, divergence_eq] |
| 64 | change ν⁻¹ * Comparator.divergence (v · (ν⁻¹ * t)) x = 0 |
| 65 | rw [h.div_free x (ν⁻¹ * t) (mul_nonneg hc.le ht), mul_zero] |
| 66 | · intro t ht x |
| 67 | rw [navierStokesResidual, rescale_temporalDerivative _ _ _ _ _ |
| 68 | (differentiable_time_slice hv (mul_pos hc ht) x), |
| 69 | rescale_advection, rescale_laplacian, rescale_gradient] |
| 70 | have he := congrArg (fun z : Space => ν⁻¹ ^ 2 • z) |
| 71 | (comparator_equation_Rn h (mul_pos hc ht) x) |
| 72 | have hcoef : ν⁻¹ ^ 2 * ν = ν⁻¹ := by field_simp |
| 73 | have hforce : ν⁻¹ ^ 2 • toComparator (rescaledForce ν f) x (ν⁻¹ * t) = f (t, x) := by |
| 74 | simp [toComparator, rescaledForce, rescale, smul_smul, hν.ne'] |
| 75 | rw [hforce] at he |
| 76 | simp only [smul_add, smul_sub, smul_smul] at he |
| 77 | rw [hcoef] at he |
| 78 | simpa only [pow_two] using he |
| 79 | · intro t ht |
| 80 | simpa only [rescale, fromComparator, norm_smul] using |
| 81 | (h.integrable (ν⁻¹ * t) (mul_nonneg hc.le ht)).const_mul ‖ν⁻¹‖ |
| 82 | · obtain ⟨E, hE⟩ := h.globally_bounded_energy |
| 83 | refine ⟨ν⁻¹ ^ 2 * E, ?_⟩ |
| 84 | intro t ht |
| 85 | simp only [rescale, fromComparator, norm_smul, Real.norm_eq_abs, |
| 86 | abs_of_pos hc, mul_pow, integral_const_mul] |
| 87 | exact mul_lt_mul_of_pos_left (hE (ν⁻¹ * t) (mul_nonneg hc.le ht)) (sq_pos_of_pos hc) |
| 88 | |
| 89 | end NavierStokes.ComparatorBridge |