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.SpatialCurl |
| 2 | |
| 3 | /-! |
| 4 | # A representative on the union of valid open charts |
| 5 | |
| 6 | Local formulas are identified only where both charts are valid. The |
| 7 | chosen representative agrees with every valid chart on an ambient |
| 8 | neighborhood. No regularity at the boundary of the union is asserted. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.ValidBandGluing |
| 14 | |
| 15 | open Set Filter Function |
| 16 | open scoped Topology ContDiff |
| 17 | |
| 18 | variable {ι D E : Type*} |
| 19 | |
| 20 | def domain (U : ι → Set D) : Set D := ⋃ i, U i |
| 21 | |
| 22 | def Compatible (U : ι → Set D) (f : ι → D → E) : Prop := |
| 23 | ∀ i j, EqOn (f i) (f j) (U i ∩ U j) |
| 24 | |
| 25 | /-- Choose a chart only at points covered by at least one valid chart. |
| 26 | The value outside the valid union is the stated zero totalization. -/ |
| 27 | noncomputable def representative [Zero E] (U : ι → Set D) (f : ι → D → E) (x : D) : E := by |
| 28 | classical |
| 29 | exact if h : ∃ i, x ∈ U i then f (Classical.choose h) x else 0 |
| 30 | |
| 31 | theorem mem_domain_iff {U : ι → Set D} {x : D} : x ∈ domain U ↔ ∃ i, x ∈ U i := |
| 32 | mem_iUnion |
| 33 | |
| 34 | theorem representative_eq_of_mem [Zero E] {U : ι → Set D} {f : ι → D → E} |
| 35 | (hf : Compatible U f) {i : ι} {x : D} (hx : x ∈ U i) : |
| 36 | representative U f x = f i x := by |
| 37 | classical |
| 38 | have h : ∃ j, x ∈ U j := ⟨i, hx⟩ |
| 39 | simp only [representative, dite_eq_left h] |
| 40 | exact hf (Classical.choose h) i ⟨Classical.choose_spec h, hx⟩ |
| 41 | |
| 42 | section Topology |
| 43 | |
| 44 | variable [TopologicalSpace D] |
| 45 | |
| 46 | theorem representative_germ [Zero E] {U : ι → Set D} {f : ι → D → E} |
| 47 | (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) {i : ι} {x : D} (hx : x ∈ U i) : |
| 48 | representative U f =ᶠ[𝓝 x] f i := |
| 49 | eventually_of_mem ((hU i).mem_nhds hx) (fun _ hy => representative_eq_of_mem hf hy) |
| 50 | |
| 51 | end Topology |
| 52 | |
| 53 | section Derivatives |
| 54 | |
| 55 | variable [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 56 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 57 | {U : ι → Set D} {f : ι → D → E} |
| 58 | |
| 59 | theorem representative_contDiffAt {n : WithTop ℕ∞} |
| 60 | (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) {i : ι} {x : D} (hx : x ∈ U i) |
| 61 | (hs : ContDiffOn ℝ n (f i) (U i)) : ContDiffAt ℝ n (representative U f) x := |
| 62 | (hs.contDiffAt ((hU i).mem_nhds hx)).congr_of_eventuallyEq (representative_germ hU hf hx) |
| 63 | |
| 64 | theorem representative_contDiffOn {n : WithTop ℕ∞} |
| 65 | (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) |
| 66 | (hs : ∀ i, ContDiffOn ℝ n (f i) (U i)) : ContDiffOn ℝ n (representative U f) (domain U) := by |
| 67 | intro x hx |
| 68 | obtain ⟨i, hi⟩ := mem_domain_iff.mp hx |
| 69 | exact (representative_contDiffAt hU hf hi (hs i)).contDiffWithinAt |
| 70 | |
| 71 | /-- The actual multilinear derivative tensors agree as functions near |
| 72 | each valid point. No differentiability premise is needed for germ locality. -/ |
| 73 | theorem representative_iteratedFDeriv_germ (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) |
| 74 | {i : ι} {x : D} (hx : x ∈ U i) (m : ℕ) : |
| 75 | iteratedFDeriv ℝ m (representative U f) =ᶠ[𝓝 x] iteratedFDeriv ℝ m (f i) := by |
| 76 | have he : representative U f =ᶠ[𝓝[univ] x] f i := by |
| 77 | simpa only [nhdsWithin_univ] using representative_germ hU hf hx |
| 78 | simpa only [nhdsWithin_univ, iteratedFDerivWithin_univ] using |
| 79 | he.iteratedFDerivWithin (𝕜 := ℝ) m |
| 80 | |
| 81 | theorem representative_iteratedFDeriv_eq (hU : ∀ i, IsOpen (U i)) (hf : Compatible U f) |
| 82 | {i : ι} {x : D} (hx : x ∈ U i) (m : ℕ) : |
| 83 | iteratedFDeriv ℝ m (representative U f) x = iteratedFDeriv ℝ m (f i) x := |
| 84 | (representative_iteratedFDeriv_germ hU hf hx m).self_of_nhds |
| 85 | |
| 86 | end Derivatives |
| 87 | |
| 88 | section PhysicalCurl |
| 89 | |
| 90 | open ProblemStatement |
| 91 | |
| 92 | end PhysicalCurl |
| 93 | |
| 94 | end NavierStokes.ValidBandGluing |