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.TrueConeLoop |
| 2 | import NavierStokes.FlatPrimitivePaper |
| 3 | import Mathlib.Topology.MetricSpace.Thickening |
| 4 | |
| 5 | /-! Compact loop data specified on a neighborhood of the closed parameter |
| 6 | set suffice for the loop construction and its uniform cone margin. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open Set |
| 11 | open scoped ContDiff |
| 12 | |
| 13 | namespace NavierStokes.TrueConeLoopPaper |
| 14 | |
| 15 | open TrueConeLoop SmoothLoop LoopMoments LoopVariance ConeAlgebra |
| 16 | |
| 17 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 18 | |
| 19 | /-- All input regularity is local to the compact parameter rectangle. The |
| 20 | output agrees with the original data near the boundary within that rectangle. -/ |
| 21 | theorem exists_local_family_with_margin (a m p₁ p₂ : E → ℝ) {K B O : Set E} |
| 22 | (hK : IsCompact K) (hB : IsCompact B) (hBK : B ⊆ K) (hO : IsOpen O) (hKO : K ⊆ O) |
| 23 | (ha : ContDiffOn ℝ ∞ a O) (hm : ContDiffOn ℝ ∞ m O) |
| 24 | (hp₁ : ContDiffOn ℝ ∞ p₁ O) (hp₂ : ContDiffOn ℝ ∞ p₂ O) |
| 25 | (haK : ∀ x ∈ K, 0 < a x) |
| 26 | (hPK : ∀ x ∈ K, 2 < p₁ x + p₂ x * m x) |
| 27 | (hrelaxed : ∀ x ∈ K, nominalSpeed (a x) (m x) < |
| 28 | coneBound (p₁ x + p₂ x * m x) (p₂ x - p₁ x * m x)) |
| 29 | (htrueB : ∀ x ∈ B, 2 < nominalSpeed (a x) (m x)) : |
| 30 | ∃ ε : ℝ, ∃ U N : Set E, ∃ A C : E × ℝ → ℝ, |
| 31 | 0 < ε ∧ IsOpen U ∧ K ⊆ U ∧ IsOpen N ∧ B ⊆ N ∧ N ⊆ U ∧ |
| 32 | ContDiffOn ℝ ∞ A (U ×ˢ (univ : Set ℝ)) ∧ |
| 33 | ContDiffOn ℝ ∞ C (U ×ˢ (univ : Set ℝ)) ∧ |
| 34 | (∀ x ∈ K, Function.Periodic (fun φ => A (x, φ)) 1 ∧ |
| 35 | Function.Periodic (fun φ => C (x, φ)) 1 ∧ |
| 36 | (∫ φ in (0 : ℝ)..1, A (x, φ)) = a x ∧ |
| 37 | (∫ φ in (0 : ℝ)..1, C (x, φ)) = a x * m x ∧ |
| 38 | ∀ φ, InTrueCone (p₁ x) (p₂ x) (A (x, φ)) (C (x, φ)) ∧ |
| 39 | HasConeMargin ε (p₁ x) (p₂ x) (A (x, φ)) (C (x, φ))) ∧ |
| 40 | (∀ x ∈ K ∩ N, ∀ φ, A (x, φ) = a x ∧ C (x, φ) = a x * m x) := by |
| 41 | obtain ⟨a', ha', hea⟩ := FlatPrimitivePaper.smooth_extension_on_compact hK hO hKO ha |
| 42 | obtain ⟨m', hm', hem⟩ := FlatPrimitivePaper.smooth_extension_on_compact hK hO hKO hm |
| 43 | obtain ⟨p₁', hp₁', he₁⟩ := FlatPrimitivePaper.smooth_extension_on_compact hK hO hKO hp₁ |
| 44 | obtain ⟨p₂', hp₂', he₂⟩ := FlatPrimitivePaper.smooth_extension_on_compact hK hO hKO hp₂ |
| 45 | obtain ⟨ε, U, N, A, C, hε, hU, hKU, hN, hBN, hNU, hA, hC, hl, hb⟩ := |
| 46 | exists_compact_trueCone_family_with_margin a' m' p₁' p₂' hK hB hBK ha' hm' hp₁' hp₂' |
| 47 | (fun x hx => by simpa only [hea hx] using haK x hx) |
| 48 | (fun x hx => by simpa only [he₁ hx, he₂ hx, hem hx] using hPK x hx) |
| 49 | (fun x hx => by simpa only [hea hx, hem hx, he₁ hx, he₂ hx] using hrelaxed x hx) |
| 50 | (fun x hx => by simpa only [hea (hBK hx), hem (hBK hx)] using htrueB x hx) |
| 51 | refine ⟨ε, U, N, A, C, hε, hU, hKU, hN, hBN, hNU, hA, hC, ?_, ?_⟩ |
| 52 | · intro x hx |
| 53 | simpa only [hea hx, hem hx, he₁ hx, he₂ hx] using hl x hx |
| 54 | · intro x hx φ |
| 55 | simpa only [hea hx.1, hem hx.1] using hb x hx.2 φ |
| 56 | |
| 57 | omit [NormedSpace ℝ E] [FiniteDimensional ℝ E] in |
| 58 | /-- The compact boundary neighborhood gives a single positive collar |
| 59 | width for all parameter values and all loop angles. -/ |
| 60 | theorem uniform_boundary_collar {K B N : Set E} (hB : IsCompact B) |
| 61 | (hN : IsOpen N) (hBN : B ⊆ N) {a m : E → ℝ} {A C : E × ℝ → ℝ} |
| 62 | (hmatch : ∀ x ∈ K ∩ N, ∀ φ, A (x, φ) = a x ∧ C (x, φ) = a x * m x) : |
| 63 | ∃ δ : ℝ, 0 < δ ∧ ∀ x ∈ K, ∀ y ∈ B, dist x y < δ → |
| 64 | ∀ φ, A (x, φ) = a x ∧ C (x, φ) = a x * m x := by |
| 65 | obtain ⟨δ, hδ, hb⟩ := hB.exists_thickening_subset_open hN hBN |
| 66 | exact ⟨δ, hδ, fun x hx y hy hxy => |
| 67 | hmatch x ⟨hx, hb (Metric.mem_thickening_iff.mpr ⟨y, hy, hxy⟩)⟩⟩ |
| 68 | |
| 69 | end NavierStokes.TrueConeLoopPaper |