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.R3.L2TimeDerivative |
| 2 | import NavierStokes.R3.H3CompactCurve |
| 3 | import NavierStokes.R3.H3StrongSolution |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | open Set Filter MeasureTheory |
| 8 | open scoped ContDiff Topology BigOperators |
| 9 | |
| 10 | namespace NavierStokesR3.H3Comparison |
| 11 | |
| 12 | open ProblemStatement |
| 13 | open NavierStokes.ProblemStatement (temporalDerivative advection spatialDerivative spatialDivergence) |
| 14 | open NavierStokes.PeriodicUniqueness (slab spatial_smooth time_differentiable_at_interior) |
| 15 | |
| 16 | private theorem time_derivative {a b t : ℝ} {u : VelocityField} |
| 17 | (hu : ContDiffOn ℝ ∞ u (slab a b)) (ht : t ∈ Ioo a b) (x : Space) : |
| 18 | HasDerivAt (fun r => u (r, x)) (temporalDerivative u t x) t := |
| 19 | (time_differentiable_at_interior hu ht x).hasDerivAt |
| 20 | |
| 21 | private theorem time_derivative_continuous {a b : ℝ} {u : VelocityField} |
| 22 | (hu : ContDiffOn ℝ ∞ u (slab a b)) : |
| 23 | ContinuousOn (fun z => temporalDerivative u z.1 z.2) (Ioo a b ×ˢ univ) := |
| 24 | CompactTimeIntegral.continuousOn_timeDeriv_of_contDiffOn (hu.of_le (by simp)) |
| 25 | |
| 26 | private theorem time_derivative_zero {a b t : ℝ} {u : VelocityField} {K : Set Space} |
| 27 | (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 28 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) |
| 29 | (ht : t ∈ Ioo a b) {x : Space} (hx : x ∉ K) : temporalDerivative u t x = 0 := by |
| 30 | exact CompactTimeIntegral.derivative_eq_zero_outside |
| 31 | (G := fun z => temporalDerivative u z.1 z.2) |
| 32 | (fun r hr y hy => CompactEnergy.zero_outside (hsupp r (Ioo_subset_Icc_self hr)) hy) |
| 33 | (fun r hr y => time_derivative hu hr y) ht hx |
| 34 | |
| 35 | theorem temporalDerivative_memLp_of_compact {a b t : ℝ} {u : VelocityField} {K : Set Space} |
| 36 | (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 37 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) |
| 38 | (ht : t ∈ Ioo a b) : MemLp (fun x => temporalDerivative u t x) 2 volume := by |
| 39 | have hc := CompactTimeIntegral.continuous_slice (time_derivative_continuous hu) ht |
| 40 | have hs : tsupport (fun x => temporalDerivative u t x) ⊆ K := by |
| 41 | apply closure_minimal _ hK.isClosed |
| 42 | intro x hx |
| 43 | by_contra hn |
| 44 | exact hx (time_derivative_zero hu hsupp ht hn) |
| 45 | exact hc.memLp_of_hasCompactSupport (hK.of_isClosed_subset (isClosed_tsupport _) hs) |
| 46 | |
| 47 | /-- The exact ordinary time derivative of a compact smooth velocity is also |
| 48 | the derivative of its L²-valued time curve. -/ |
| 49 | theorem hasDerivAt_velocityLp_of_compact {a b t : ℝ} {u : VelocityField} {K : Set Space} |
| 50 | (hK : IsCompact K) (hu : ContDiffOn ℝ ∞ u (slab a b)) |
| 51 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) |
| 52 | (ht : t ∈ Ioo a b) (hc : H3Curve u (Icc a b)) : |
| 53 | HasDerivAt hc.velocityLp |
| 54 | ((temporalDerivative_memLp_of_compact hK hu hsupp ht).toLp |
| 55 | (fun x => temporalDerivative u t x)) t := by |
| 56 | let a' : ℝ := (a + t) / 2 |
| 57 | let b' : ℝ := (t + b) / 2 |
| 58 | have hsmall : Icc a' b' ⊆ Ioo a b := by |
| 59 | intro r hr |
| 60 | dsimp [a', b'] at hr |
| 61 | constructor <;> linarith [ht.1, ht.2, hr.1, hr.2] |
| 62 | have ht' : t ∈ Ioo a' b' := by |
| 63 | dsimp [a', b'] |
| 64 | constructor <;> linarith [ht.1, ht.2] |
| 65 | apply hasDerivAt_L2_of_compact_support hK |
| 66 | (hu.continuousOn.mono (Set.prod_mono (hsmall.trans Ioo_subset_Icc_self) (Subset.refl _))) |
| 67 | ((time_derivative_continuous hu).mono (Set.prod_mono hsmall (Subset.refl _))) |
| 68 | (fun r hr x hx => CompactEnergy.zero_outside |
| 69 | (hsupp r (Ioo_subset_Icc_self (hsmall hr))) hx) |
| 70 | (fun r hr x hx => time_derivative_zero hu hsupp (hsmall hr) hx) |
| 71 | (fun r hr x => time_derivative hu (hsmall hr) x) ht' |
| 72 | · intro r hr |
| 73 | rw [hc.velocityLp_eq (Ioo_subset_Icc_self (hsmall hr))] |
| 74 | exact MemLp.coeFn_toLp _ |
| 75 | · exact MemLp.coeFn_toLp _ |
| 76 | |
| 77 | theorem weakAdvection_eq_advection (u : VelocityField) (t : ℝ) (x : Space) : |
| 78 | weakAdvection (fun x => u (t, x)) |
| 79 | (fun i x => H3Compact.partialField i u (t, x)) x = advection u t x := by |
| 80 | unfold advection |
| 81 | conv_rhs => rw [← NavierStokes.PeriodicUniqueness.sum_coordinates (u (t, x))] |
| 82 | simp only [map_sum, map_smul] |
| 83 | rfl |
| 84 | |
| 85 | /-- All requirements of the ordinary classical H³ class follow from the |
| 86 | actual compact smooth solution on a shorter slab. -/ |
| 87 | def strongSolution_of_compact_slab {ν a b : ℝ} {u f : VelocityField} {p : PressureField} |
| 88 | {K : Set Space} (hab : a < b) (hK : IsCompact K) |
| 89 | (hu : ContDiffOn ℝ ∞ u (slab a b)) (hp : ContDiffOn ℝ ∞ p (slab a b)) |
| 90 | (hsupp : ∀ r ∈ Icc a b, tsupport (fun x => u (r, x)) ⊆ K) |
| 91 | (hdiv : ∀ t ∈ Ioo a b, ∀ x, spatialDivergence u t x = 0) |
| 92 | (hNS : ∀ t ∈ Ioo a b, ∀ x, navierStokesResidual ν u p t x = f (t, x)) : |
| 93 | StrongSolutionOnIcc ν f a b u p where |
| 94 | time_lt := hab |
| 95 | curve := h3Curve_of_compact_slab hab hK hu hsupp |
| 96 | timeDerivative := fun z => temporalDerivative u z.1 z.2 |
| 97 | timeDerivative_memLp := fun _ ht => temporalDerivative_memLp_of_compact hK hu hsupp ht |
| 98 | hasDerivAt_velocity := fun _ ht => hasDerivAt_velocityLp_of_compact hK hu hsupp ht _ |
| 99 | pressure_C1 := fun _ ht => (spatial_smooth hp (Ioo_subset_Icc_self ht)).of_le (by simp) |
| 100 | divergence_free := fun t ht => Filter.Eventually.of_forall (hdiv t ht) |
| 101 | navier_stokes := fun t ht => Filter.Eventually.of_forall (fun x => by |
| 102 | change temporalDerivative u t x + weakAdvection (fun x => u (t, x)) |
| 103 | (fun i x => H3Compact.partialField i u (t, x)) x - |
| 104 | ν • NavierStokes.ProblemStatement.spatialLaplacian u t x + |
| 105 | NavierStokes.ProblemStatement.pressureGradient p t x = _ |
| 106 | rw [weakAdvection_eq_advection] |
| 107 | exact hNS t ht x) |
| 108 | |
| 109 | /-- The actual candidate belongs to the ordinary classical H³ class on the |
| 110 | whole half-open interval [0,1). -/ |
| 111 | def candidate_classicalH3Solution {ν : ℝ} {u : VelocityField} {p : PressureField} |
| 112 | {f : VelocityField} {K : Set Space} (h : CandidateProperties ν u p f K) : |
| 113 | ClassicalH3Solution ν f (fun _ => 0) 1 u p where |
| 114 | lifespan_pos := zero_lt_one |
| 115 | initial_velocity := h.zero_initial_velocity |
| 116 | on_shorter_interval := fun _S hS => strongSolution_of_compact_slab hS.1 h.support_compact |
| 117 | (h.velocity_smooth.mono (fun _ hz => ⟨⟨hz.1.1, hz.1.2.trans_lt hS.2⟩, hz.2⟩)) |
| 118 | (h.pressure_smooth.mono (fun _ hz => ⟨⟨hz.1.1, hz.1.2.trans_lt hS.2⟩, hz.2⟩)) |
| 119 | (fun t ht => h.velocity_support t ⟨ht.1, ht.2.trans_lt hS.2⟩) |
| 120 | (fun t ht => h.divergence_free t ⟨ht.1.le, ht.2.trans hS.2⟩) |
| 121 | (fun t ht => h.navier_stokes t ⟨ht.1, ht.2.trans hS.2⟩) |
| 122 | |
| 123 | end NavierStokesR3.H3Comparison |