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.JointResidualLimits |
| 2 | import NavierStokes.DiagonalResidual |
| 3 | import Mathlib.Analysis.SpecialFunctions.Pow.Continuity |
| 4 | |
| 5 | /-! |
| 6 | # Uniform bounds on the common finite-stage domain |
| 7 | |
| 8 | Local endpoint estimates are upgraded on a fixed compact set without changing |
| 9 | the domain with the requested derivative order. The compactness argument uses |
| 10 | the actual derivatives, and allows a different local constant at every point. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.WholeDomainStageBounds |
| 16 | |
| 17 | open Set Filter Function ProblemStatement |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | section CompactBounds |
| 21 | |
| 22 | variable {D V : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 23 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 24 | |
| 25 | /-- Pointwise local rates on a compact cover imply one bound on the whole |
| 26 | covered part of the domain. No common neighborhood is assumed. -/ |
| 27 | theorem compact_bound_of_local_rates {K S : Set D} (hK : IsCompact K) |
| 28 | {q : D → ℝ} {f : D → V} {m : ℕ} {r : ℝ} |
| 29 | (hq : ∀ x ∈ S, 0 < q x) |
| 30 | (hloc : ∀ x ∈ K, DiagonalResidual.JetRate (𝓝[S] x) q f m r) : |
| 31 | ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ K ∩ S, |
| 32 | ‖iteratedFDeriv ℝ m f x‖ ≤ C * q x ^ r := by |
| 33 | choose C hC hb using hloc |
| 34 | let U : ∀ x ∈ K, Set D := fun x hx => |
| 35 | {y | y ∈ S → ‖iteratedFDeriv ℝ m f y‖ ≤ C x hx * q y ^ r} |
| 36 | have hU : ∀ x (hx : x ∈ K), U x hx ∈ 𝓝 x := by |
| 37 | intro x hx |
| 38 | exact eventually_nhdsWithin_iff.mp (hb x hx) |
| 39 | obtain ⟨t, ht⟩ := hK.elim_nhds_subcover' U hU |
| 40 | refine ⟨∑ x ∈ t, C x x.2, Finset.sum_nonneg (fun x _ => hC x x.2), ?_⟩ |
| 41 | intro y hy |
| 42 | obtain ⟨x, hxt, hyU⟩ := mem_iUnion₂.mp (ht hy.1) |
| 43 | have hCy : C x x.2 ≤ ∑ z ∈ t, C z z.2 := |
| 44 | Finset.single_le_sum (f := fun z : K => C z z.2) (fun z _ => hC z z.2) hxt |
| 45 | exact (hyU hy.2).trans (mul_le_mul_of_nonneg_right hCy |
| 46 | (Real.rpow_nonneg (hq y hy.2).le r)) |
| 47 | |
| 48 | /-- A globally supported family needs compactness only on the support. |
| 49 | This keeps the bound uniform over the unbounded ambient domain. -/ |
| 50 | theorem bound_of_local_rates_and_zero {K S : Set D} (hK : IsCompact K) |
| 51 | {q : D → ℝ} {f : D → V} {m : ℕ} {r : ℝ} |
| 52 | (hq : ∀ x ∈ S, 0 < q x) |
| 53 | (hloc : ∀ x ∈ K, DiagonalResidual.JetRate (𝓝[S] x) q f m r) |
| 54 | (hz : ∀ x ∈ S, x ∉ K → iteratedFDeriv ℝ m f x = 0) : |
| 55 | ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ S, |
| 56 | ‖iteratedFDeriv ℝ m f x‖ ≤ C * q x ^ r := by |
| 57 | obtain ⟨C, hC, hb⟩ := compact_bound_of_local_rates hK hq hloc |
| 58 | refine ⟨C, hC, fun x hx => ?_⟩ |
| 59 | by_cases hKx : x ∈ K |
| 60 | · exact hb x ⟨hKx, hx⟩ |
| 61 | · rw [hz x hx hKx, norm_zero] |
| 62 | exact mul_nonneg hC (Real.rpow_nonneg (hq x hx).le r) |
| 63 | |
| 64 | end CompactBounds |
| 65 | |
| 66 | section LocalRates |
| 67 | |
| 68 | variable {D V : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 69 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 70 | |
| 71 | /-- A finite jet limit at a positive limiting scale gives every power rate. -/ |
| 72 | theorem rate_of_jet_limit {l : Filter D} {f : D → V} {q : D → ℝ} {m : ℕ} |
| 73 | {J : D [×m]→L[ℝ] V} {q₀ : ℝ} (hJ : Tendsto (iteratedFDeriv ℝ m f) l (𝓝 J)) |
| 74 | (hq : Tendsto q l (𝓝 q₀)) (hq₀ : 0 < q₀) (r : ℝ) : |
| 75 | DiagonalResidual.JetRate l q f m r := by |
| 76 | have hb := (hJ.norm.mul (hq.rpow_const (Or.inl hq₀.ne'))).eventually |
| 77 | (gt_mem_nhds (lt_add_one (‖J‖ * q₀ ^ (-r)))) |
| 78 | refine ⟨‖J‖ * q₀ ^ (-r) + 1, by positivity, ?_⟩ |
| 79 | filter_upwards [hb, hq.eventually (lt_mem_nhds hq₀)] with x hx hqx |
| 80 | have he : (‖iteratedFDeriv ℝ m f x‖ * q x ^ (-r)) * q x ^ r = |
| 81 | ‖iteratedFDeriv ℝ m f x‖ := by |
| 82 | rw [mul_assoc, ← Real.rpow_add hqx, neg_add_cancel, Real.rpow_zero, mul_one] |
| 83 | exact he ▸ mul_le_mul_of_nonneg_right hx.le (Real.rpow_nonneg hqx.le r) |
| 84 | |
| 85 | end LocalRates |
| 86 | |
| 87 | /-- Smooth one-sided velocity and pressure extensions extend the actual |
| 88 | residual, including the derivatives occurring in its definition. -/ |
| 89 | noncomputable def residualExtension {u : VelocityField} {p : PressureField} {x : Space} |
| 90 | (U : JointResidualLimits.OneSidedExtension u x) |
| 91 | (P : JointResidualLimits.OneSidedExtension p x) : |
| 92 | JointResidualLimits.OneSidedExtension |
| 93 | (fun w => navierStokesResidual u p w.1 w.2) x where |
| 94 | value := fun w => navierStokesResidual U.value P.value w.1 w.2 |
| 95 | domain := U.domain ∩ P.domain |
| 96 | isOpen := U.isOpen.inter P.isOpen |
| 97 | mem := ⟨U.mem, P.mem⟩ |
| 98 | smooth := ResidualRegularity.contDiffOn_residual (U.isOpen.inter P.isOpen) |
| 99 | (U.smooth.mono inter_subset_left) (P.smooth.mono inter_subset_right) |
| 100 | agrees := by |
| 101 | intro w hw |
| 102 | have hU : U.value =ᶠ[𝓝 w] u := |
| 103 | Filter.eventuallyEq_of_mem ((U.isOpen.inter (SpacetimeEndpoint.openPast_isOpen 1)).mem_nhds |
| 104 | ⟨hw.1.1, hw.2⟩) U.agrees |
| 105 | have hP : P.value =ᶠ[𝓝 w] p := |
| 106 | Filter.eventuallyEq_of_mem ((P.isOpen.inter (SpacetimeEndpoint.openPast_isOpen 1)).mem_nhds |
| 107 | ⟨hw.1.2, hw.2⟩) P.agrees |
| 108 | exact (ResidualRegularity.residual_eventuallyEq hU hP).self_of_nhds |
| 109 | |
| 110 | end NavierStokes.WholeDomainStageBounds |