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.CommonCoverWithin |
| 2 | import NavierStokes.ParticularWaveBounds |
| 3 | |
| 4 | /-! # One-sided jets of the actual particular velocity and pressure -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace NavierStokes.ParticularWaveBounds |
| 9 | |
| 10 | open Set Filter Function |
| 11 | open scoped ContDiff Topology InnerProductSpace |
| 12 | open CommonCoverSolve TorusInverse |
| 13 | |
| 14 | section Real |
| 15 | |
| 16 | variable {P H : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 17 | [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] |
| 18 | |
| 19 | omit [CompleteSpace H] in |
| 20 | theorem tangent_coefficients_contDiffOn {S : Set (P × Plane)} (t : TangentData P H) |
| 21 | (hN : ContDiffOn ℝ ∞ t.normal S) (hNd : ContDiffOn ℝ ∞ t.normalDot S) |
| 22 | (hK : ContDiffOn ℝ ∞ t.action S) (hδ : ContDiffOn ℝ ∞ t.damping S) |
| 23 | (hn : ∀ x ∈ S, t.normal x ≠ 0) : |
| 24 | ContDiffOn ℝ ∞ t.linearData.coefficient S ∧ |
| 25 | ContDiffOn ℝ ∞ t.linearData.forcingMap S := by |
| 26 | have hden := (hN.inner ℝ hN).inv (fun x hx => inner_self_ne_zero.mpr (hn x hx)) |
| 27 | have hi := (innerSL ℝ).contDiff.comp_contDiffOn hN |
| 28 | have hid := (innerSL ℝ).contDiff.comp_contDiffOn hNd |
| 29 | constructor |
| 30 | · exact (hK.neg.add (((hi.clm_comp hK).sub hid).smulRight (hden.smul hN))).sub |
| 31 | (hδ.smul contDiffOn_const) |
| 32 | · exact (contDiffOn_const.sub (hi.smulRight (hden.smul hN))).neg |
| 33 | |
| 34 | theorem copyPressure_contDiffOn_within (t : TangentData P H) (g : Geometry) |
| 35 | {a b : ℝ} (hab : a ≤ b) {U : Set P} (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) |
| 36 | (hN : ContDiffOn ℝ ∞ t.normal (U ×ˢ univ)) |
| 37 | (hNd : ContDiffOn ℝ ∞ t.normalDot (U ×ˢ univ)) |
| 38 | (hK : ContDiffOn ℝ ∞ t.action (U ×ˢ univ)) |
| 39 | (hδ : ContDiffOn ℝ ∞ t.damping (U ×ˢ univ)) |
| 40 | (hf : ContDiffOn ℝ ∞ t.source (U ×ˢ univ)) |
| 41 | (hn : ∀ x ∈ U ×ˢ univ, t.normal x ≠ 0) (k : Frequency) (frequency : ℝ) : |
| 42 | ContDiffOn ℝ ∞ (copyPressure t g hab k frequency) |
| 43 | {p : P × Plane | p.1 ∈ U ∧ (g.coordinates k p.2).2 ∈ Icc a b} := by |
| 44 | let D := {p : P × Plane | p.1 ∈ U ∧ (g.coordinates k p.2).2 ∈ Icc a b} |
| 45 | have hmap : MapsTo (nativePoint (P := P) g k) D (U ×ˢ univ) := |
| 46 | fun _ hx => ⟨hx.1, mem_univ _⟩ |
| 47 | have hnativ : ContDiff ℝ ∞ (nativePoint (P := P) g k) := |
| 48 | contDiff_fst.prodMk ((g.coordinates_contDiff k).comp contDiff_snd) |
| 49 | have hNc := hN.comp hnativ.contDiffOn hmap |
| 50 | have hNdc := hNd.comp hnativ.contDiffOn hmap |
| 51 | have hKc := hK.comp hnativ.contDiffOn hmap |
| 52 | have hfc := hf.mono (show D ⊆ U ×ˢ univ from fun _ hx => ⟨hx.1, mem_univ _⟩) |
| 53 | obtain ⟨hA, hB⟩ := tangent_coefficients_contDiffOn t hN hNd hK hδ hn |
| 54 | have hv := t.linearData.copySolve_contDiffOn_closed_within g hab hU hu hA hB hf k |
| 55 | have hreal : ContDiffOn ℝ ∞ (copyPressureReal t g hab k) D := |
| 56 | (((hNc.inner ℝ (hKc.clm_apply hv)).sub (hNdc.inner ℝ hv)).add (hNc.inner ℝ hfc)).div |
| 57 | (hNc.inner ℝ hNc) (fun x hx => inner_self_ne_zero.mpr (hn _ (hmap hx))) |
| 58 | have hcomplex := Complex.ofRealCLM.contDiff.comp_contDiffOn hreal |
| 59 | exact (contDiffOn_const.mul hcomplex).div_const _ |
| 60 | |
| 61 | end Real |
| 62 | |
| 63 | section Complex |
| 64 | |
| 65 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 66 | |
| 67 | theorem complexCopy_contDiffOn_within (t : TangentData P ProblemStatement.Space) |
| 68 | (f : P × Plane → HarmonicCalculus.ComplexVector) (g : Geometry) |
| 69 | {a b : ℝ} (hab : a ≤ b) {U : Set P} (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) |
| 70 | (hN : ContDiffOn ℝ ∞ t.normal (U ×ˢ univ)) |
| 71 | (hNd : ContDiffOn ℝ ∞ t.normalDot (U ×ˢ univ)) |
| 72 | (hK : ContDiffOn ℝ ∞ t.action (U ×ˢ univ)) |
| 73 | (hδ : ContDiffOn ℝ ∞ t.damping (U ×ˢ univ)) |
| 74 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ univ)) |
| 75 | (hn : ∀ x ∈ U ×ˢ univ, t.normal x ≠ 0) (k : Frequency) (frequency : ℝ) : |
| 76 | ContDiffOn ℝ ∞ (complexCopyVelocity t f g hab k) |
| 77 | {p : P × Plane | p.1 ∈ U ∧ (g.coordinates k p.2).2 ∈ Icc a b} ∧ |
| 78 | ContDiffOn ℝ ∞ (complexCopyPressure t f g hab k frequency) |
| 79 | {p : P × Plane | p.1 ∈ U ∧ (g.coordinates k p.2).2 ∈ Icc a b} := by |
| 80 | have hr : ContDiffOn ℝ ∞ (realData t f).source (U ×ˢ univ) := |
| 81 | realPart.contDiff.comp_contDiffOn hf |
| 82 | have hi : ContDiffOn ℝ ∞ (imagData t f).source (U ×ˢ univ) := |
| 83 | imagPart.contDiff.comp_contDiffOn hf |
| 84 | obtain ⟨hA, hB⟩ := tangent_coefficients_contDiffOn t hN hNd hK hδ hn |
| 85 | have hrv := (realData t f).linearData.copySolve_contDiffOn_closed_within g hab hU hu hA hB hr k |
| 86 | have hiv := (imagData t f).linearData.copySolve_contDiffOn_closed_within g hab hU hu hA hB hi k |
| 87 | have hrp := copyPressure_contDiffOn_within (realData t f) g hab hU hu hN hNd hK hδ hr hn k frequency |
| 88 | have hip := copyPressure_contDiffOn_within (imagData t f) g hab hU hu hN hNd hK hδ hi hn k frequency |
| 89 | constructor |
| 90 | · have hv := (CurlClassBounds.complexify.contDiff.comp_contDiffOn hrv).add |
| 91 | ((contDiffOn_const (c := Complex.I)).smul |
| 92 | (CurlClassBounds.complexify.contDiff.comp_contDiffOn hiv)) |
| 93 | exact hv |
| 94 | · exact hrp.add (contDiffOn_const.mul hip) |
| 95 | |
| 96 | variable {H : Type} [NormedAddCommGroup H] [NormedSpace ℝ H] [CompleteSpace H] |
| 97 | |
| 98 | omit [CompleteSpace H] in |
| 99 | theorem periodizedCopies_contDiffOn_within (g : Geometry) |
| 100 | {a b : ℝ} {U : Set P} {κ : Plane → ℝ} |
| 101 | (hκ : ContDiff ℝ ∞ κ) (hcκ : HasCompactSupport κ) |
| 102 | (hsupp : tsupport κ ⊆ univ ×ˢ Ioo a b) |
| 103 | (F : Frequency → P × Plane → H) |
| 104 | (hF : ∀ k, ContDiffOn ℝ ∞ (F k) |
| 105 | {p : P × Plane | p.1 ∈ U ∧ (g.coordinates k p.2).2 ∈ Icc a b}) : |
| 106 | ContDiffOn ℝ ∞ (periodizedCopies g κ F) (U ×ˢ univ) := by |
| 107 | have hterm (k : Frequency) : ContDiffOn ℝ ∞ |
| 108 | (fun p : P × Plane => κ (g.coordinates k p.2) • F k p) (U ×ˢ univ) := by |
| 109 | intro p hp |
| 110 | have hc : ContDiff ℝ ∞ (fun q : P × Plane => g.coordinates k q.2) := |
| 111 | (g.coordinates_contDiff k).comp contDiff_snd |
| 112 | by_cases hz : g.coordinates k p.2 ∈ tsupport κ |
| 113 | · have hη := (hsupp hz).2 |
| 114 | have hnear : {q : P × Plane | q.1 ∈ U ∧ (g.coordinates k q.2).2 ∈ Icc a b} |
| 115 | ∈ 𝓝[U ×ˢ univ] p := by |
| 116 | filter_upwards [self_mem_nhdsWithin, |
| 117 | mem_nhdsWithin_of_mem_nhds (hc.snd.continuous.tendsto p |>.eventually |
| 118 | (isOpen_Ioo.mem_nhds hη))] with q hq hηq |
| 119 | exact ⟨hq.1, Ioo_subset_Icc_self hηq⟩ |
| 120 | exact (hκ.comp hc).contDiffAt.contDiffWithinAt.smul |
| 121 | ((hF k p ⟨hp.1, Ioo_subset_Icc_self hη⟩).mono_of_mem_nhdsWithin hnear) |
| 122 | · have hzero : (fun q : P × Plane => κ (g.coordinates k q.2) • F k q) |
| 123 | =ᶠ[𝓝 p] fun _ => (0 : H) := by |
| 124 | filter_upwards [(notMem_tsupport_iff_eventuallyEq.mp hz).comp_tendsto |
| 125 | hc.continuous.continuousAt] with q hq |
| 126 | change κ (g.coordinates k q.2) = 0 at hq |
| 127 | rw [hq, zero_smul] |
| 128 | exact contDiffWithinAt_const.congr_of_eventuallyEq |
| 129 | (hzero.filter_mono nhdsWithin_le_nhds) hzero.self_of_nhds |
| 130 | intro p hp |
| 131 | obtain ⟨I, hI⟩ := g.finite_copy_cutoffs hcκ (‖p.2‖ + 1) |
| 132 | have he : periodizedCopies g κ F =ᶠ[𝓝 p] |
| 133 | fun q => ∑ k ∈ I, κ (g.coordinates k q.2) • F k q := by |
| 134 | filter_upwards [(isOpen_lt continuous_snd.norm continuous_const).mem_nhds |
| 135 | (show ‖p.2‖ < ‖p.2‖ + 1 by linarith)] with q hq |
| 136 | apply tsum_eq_sum |
| 137 | intro k hk |
| 138 | rw [hI q.2 hq.le k hk, zero_smul] |
| 139 | exact (ContDiffWithinAt.sum (fun k _ => hterm k p hp)).congr_of_eventuallyEq |
| 140 | (he.filter_mono nhdsWithin_le_nhds) he.self_of_nhds |
| 141 | |
| 142 | /-- The actual common-torus velocity and pressure inherit all mixed |
| 143 | one-sided slow derivatives from the primitive geometry and source. -/ |
| 144 | theorem commonCoefficients_contDiffOn_within (t : TangentData P ProblemStatement.Space) |
| 145 | (f : P × Plane → HarmonicCalculus.ComplexVector) (g : Geometry) |
| 146 | {a b : ℝ} (hab : a ≤ b) {U : Set P} (hU : Convex ℝ U) (hu : UniqueDiffOn ℝ U) |
| 147 | (hN : ContDiffOn ℝ ∞ t.normal (U ×ˢ univ)) |
| 148 | (hNd : ContDiffOn ℝ ∞ t.normalDot (U ×ˢ univ)) |
| 149 | (hK : ContDiffOn ℝ ∞ t.action (U ×ˢ univ)) |
| 150 | (hδ : ContDiffOn ℝ ∞ t.damping (U ×ˢ univ)) |
| 151 | (hf : ContDiffOn ℝ ∞ f (U ×ˢ univ)) |
| 152 | (hn : ∀ x ∈ U ×ˢ univ, t.normal x ≠ 0) |
| 153 | {κ : Plane → ℝ} (hκ : ContDiff ℝ ∞ κ) (hcκ : HasCompactSupport κ) |
| 154 | (hsupp : tsupport κ ⊆ univ ×ˢ Ioo a b) (frequency : ℝ) : |
| 155 | ContDiffOn ℝ ∞ (commonVelocity t f g hab κ) (U ×ˢ univ) ∧ |
| 156 | ContDiffOn ℝ ∞ (commonPressure t f g hab κ frequency) (U ×ˢ univ) := |
| 157 | ⟨periodizedCopies_contDiffOn_within g hκ hcκ hsupp _ (fun k => |
| 158 | (complexCopy_contDiffOn_within t f g hab hU hu hN hNd hK hδ hf hn k frequency).1), |
| 159 | periodizedCopies_contDiffOn_within g hκ hcκ hsupp _ (fun k => |
| 160 | (complexCopy_contDiffOn_within t f g hab hU hu hN hNd hK hδ hf hn k frequency).2)⟩ |
| 161 | |
| 162 | end Complex |
| 163 | |
| 164 | end NavierStokes.ParticularWaveBounds |