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.LocalScaleGeometry |
| 3 | import NavierStokes.AnnularEndpoint |
| 4 | import Mathlib.Analysis.Normed.Group.Bounded |
| 5 | |
| 6 | /-! |
| 7 | # Uniform local jet bounds up to the terminal slice |
| 8 | |
| 9 | Actual smooth extensions at each nonsingular terminal point provide compatible |
| 10 | limits of every derivative. Compactness turns those local bounds into one bound |
| 11 | on any compact spacetime set avoiding the singular point. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set Filter Bornology |
| 17 | open scoped Topology ContDiff |
| 18 | |
| 19 | namespace NavierStokes.LocalJetBounds |
| 20 | |
| 21 | open ProblemStatement |
| 22 | open JointResidualLimits (AwayExtensions) |
| 23 | |
| 24 | /-- A limit at each point of a compact set bounds the function on the |
| 25 | approaching part of that set. The boundary values need not have been assigned |
| 26 | to the original function. -/ |
| 27 | theorem isBounded_image_of_compact_limits {X V : Type*} [TopologicalSpace X] |
| 28 | [PseudoMetricSpace V] {K S : Set X} {f : X → V} (hK : IsCompact K) |
| 29 | (hf : ∀ x ∈ K, ∃ y : V, Tendsto f (𝓝[S] x) (𝓝 y)) : |
| 30 | IsBounded (f '' (K ∩ S)) := by |
| 31 | have hd : Disjoint (𝓝ˢ K ⊓ 𝓟 S) (comap f (cobounded V)) := by |
| 32 | rw [disjoint_assoc, inf_comm, hK.disjoint_nhdsSet_left] |
| 33 | intro x hx |
| 34 | obtain ⟨y, hy⟩ := hf x hx |
| 35 | exact disjoint_left_comm.2 <| |
| 36 | tendsto_comap.disjoint (Metric.disjoint_cobounded_nhds y) hy |
| 37 | obtain ⟨U, ⟨hUo, hKU⟩, t, ht, hUt⟩ := |
| 38 | ((((hasBasis_nhdsSet K).inf_principal S)).disjoint_iff |
| 39 | ((basis_sets _).comap f)).1 hd |
| 40 | have hb : IsBounded (f '' (U ∩ S)) := by |
| 41 | apply (isBounded_compl_iff.2 ht).subset |
| 42 | rwa [image_subset_iff, preimage_compl, subset_compl_iff_disjoint_right] |
| 43 | exact hb.subset (image_mono (inter_subset_inter_left S hKU)) |
| 44 | |
| 45 | /-- Smoothness in the past and actual one-sided extensions give every |
| 46 | derivative a finite limit at each nonsingular point of the closed past. -/ |
| 47 | theorem jet_has_limit {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 48 | {f : SpaceTime → V} (hf : ContDiffOn ℝ ∞ f (SpacetimeEndpoint.openPast 1)) |
| 49 | (he : AwayExtensions f) {w : SpaceTime} (ht : w.1 ≤ 1) |
| 50 | (hw : w ≠ (1, (0 : Space))) (n : ℕ) : |
| 51 | ∃ L, Tendsto (iteratedFDeriv ℝ n f) (𝓝[SpacetimeEndpoint.openPast 1] w) (𝓝 L) := by |
| 52 | by_cases hp : w.1 < 1 |
| 53 | · have hc := hf.contDiffAt ((SpacetimeEndpoint.openPast_isOpen 1).mem_nhds |
| 54 | (show w ∈ SpacetimeEndpoint.openPast 1 from ⟨hp, mem_univ _⟩)) |
| 55 | have hj : ContDiffAt ℝ 0 (iteratedFDeriv ℝ n f) w := |
| 56 | hc.iteratedFDeriv_right (by exact_mod_cast (le_top : 0 + (n : ℕ∞) ≤ ⊤)) |
| 57 | exact ⟨_, hj.continuousAt.tendsto.mono_left nhdsWithin_le_nhds⟩ |
| 58 | · have ht1 : w.1 = 1 := le_antisymm ht (le_of_not_gt hp) |
| 59 | have hx : w.2 ≠ 0 := by |
| 60 | intro hx |
| 61 | exact hw (Prod.ext ht1 hx) |
| 62 | obtain ⟨e⟩ := he w.2 hx |
| 63 | have hw1 : w = (1, w.2) := Prod.ext ht1 rfl |
| 64 | rw [hw1] |
| 65 | exact ⟨_, e.jet_tendsto n⟩ |
| 66 | |
| 67 | /-- Uniform bounds for every Cartesian derivative on compact subsets of the |
| 68 | closed past that avoid the singular point, including approach from `t < 1`. -/ |
| 69 | theorem uniform_jets_on_compact {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 70 | {f : SpaceTime → V} (hf : ContDiffOn ℝ ∞ f (SpacetimeEndpoint.openPast 1)) |
| 71 | (he : AwayExtensions f) {K : Set SpaceTime} (hK : IsCompact K) |
| 72 | (hKt : ∀ w ∈ K, w.1 ≤ 1) (hK0 : (1, (0 : Space)) ∉ K) (n : ℕ) : |
| 73 | ∃ C : ℝ, 0 < C ∧ ∀ w ∈ K, w.1 < 1 → ‖iteratedFDeriv ℝ n f w‖ ≤ C := by |
| 74 | have hb := isBounded_image_of_compact_limits hK (fun w hw => |
| 75 | jet_has_limit hf he (hKt w hw) (fun heq => hK0 (heq ▸ hw)) n) |
| 76 | obtain ⟨C, hC, hbound⟩ := hb.exists_pos_norm_le |
| 77 | exact ⟨C, hC, fun w hw ht => hbound _ ⟨w, ⟨hw, ht, mem_univ _⟩, rfl⟩⟩ |
| 78 | |
| 79 | /-- The exact compact-spatial, positive-scale-strip bounds of the local |
| 80 | theorem. The bound remains valid as the terminal slice is approached. -/ |
| 81 | theorem uniform_jets_on_scale_strip {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 82 | {f : SpaceTime → V} (hf : ContDiffOn ℝ ∞ f (SpacetimeEndpoint.openPast 1)) |
| 83 | (he : AwayExtensions f) {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 84 | {K : Set Space} (hK : IsCompact K) {c c' : ℝ} (hc : 0 < c) (n : ℕ) : |
| 85 | ∃ C : ℝ, 0 < C ∧ ∀ w : SpaceTime, w.1 < 1 → w.2 ∈ K → |
| 86 | c ≤ PhysicalWaveSum.physicalQ h w → PhysicalWaveSum.physicalQ h w ≤ c' → |
| 87 | ‖iteratedFDeriv ℝ n f w‖ ≤ C := by |
| 88 | let S : Set SpaceTime := {w | w.1 < 1 ∧ w.2 ∈ K ∧ |
| 89 | c ≤ PhysicalWaveSum.physicalQ h w ∧ PhysicalWaveSum.physicalQ h w ≤ c'} |
| 90 | have hsub : S ⊆ Icc (1 - c') 1 ×ˢ K := by |
| 91 | intro w hw |
| 92 | have ht := LocalScaleGeometry.time_dist_le hh hh1 hw.1 |
| 93 | rw [abs_of_neg (sub_neg.mpr hw.1)] at ht |
| 94 | exact ⟨⟨by linarith [hw.2.2.2], hw.1.le⟩, hw.2.1⟩ |
| 95 | have hclosedSub : closure S ⊆ Icc (1 - c') 1 ×ˢ K := |
| 96 | closure_minimal hsub (isClosed_Icc.prod hK.isClosed) |
| 97 | have hcompact : IsCompact (closure S) := |
| 98 | (isCompact_Icc.prod hK).of_isClosed_subset isClosed_closure hclosedSub |
| 99 | have hzero : (1, (0 : Space)) ∉ closure S := by |
| 100 | have hq := (AnnularEndpoint.physicalQ_tendsto_zero hh hh1 |
| 101 | (x := (0 : Space)) rfl).eventually (gt_mem_nhds hc) |
| 102 | obtain ⟨U, hU, hUp⟩ := mem_nhdsWithin_iff_exists_mem_nhds_inter.mp hq |
| 103 | intro hcl |
| 104 | obtain ⟨w, hw, hs⟩ := mem_closure_iff_nhds.mp hcl U hU |
| 105 | have hlt := hUp ⟨hw, hs.1, mem_univ _⟩ |
| 106 | exact (not_lt_of_ge hs.2.2.1) hlt |
| 107 | obtain ⟨C, hC, hb⟩ := uniform_jets_on_compact hf he hcompact |
| 108 | (fun w hw => (hclosedSub hw).1.2) hzero n |
| 109 | exact ⟨C, hC, fun w ht hx hlow hhigh => |
| 110 | hb w (subset_closure ⟨ht, hx, hlow, hhigh⟩) ht⟩ |
| 111 | |
| 112 | end NavierStokes.LocalJetBounds |