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.PositiveRepresentatives |
| 2 | import NavierStokes.SlowBorelBase |
| 3 | |
| 4 | /-! |
| 5 | # Actual similarity coordinates across the nonzero axial endpoint |
| 6 | |
| 7 | At `t=1`, `z != 0`, the explicit positive root lies on the regular stable |
| 8 | branch. The extension below is built from that branch and agrees with all |
| 9 | actual physical coordinate jets at every point with `t<1`. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.EndpointCoordinates |
| 15 | |
| 16 | open Set Filter Function |
| 17 | open scoped Topology ContDiff |
| 18 | open SimilarityCoordinates |
| 19 | |
| 20 | abbrev PhysicalPoint := SimilarityProfile.PhysicalPoint |
| 21 | abbrev Chart := SlowBorelBase.Chart |
| 22 | |
| 23 | /-- The positive solution of the zero-time similarity equation. -/ |
| 24 | noncomputable def endpointRoot (a z : ℝ) : ℝ := (z ^ 2) ^ (1 - a)⁻¹ |
| 25 | |
| 26 | theorem endpointRoot_pos (a : ℝ) {z : ℝ} (hz : z ≠ 0) : 0 < endpointRoot a z := |
| 27 | Real.rpow_pos_of_pos (sq_pos_of_ne_zero hz) _ |
| 28 | |
| 29 | theorem endpointRoot_power {a z : ℝ} (ha1 : a < 1) : |
| 30 | endpointRoot a z ^ (1 - a) = z ^ 2 := |
| 31 | Real.rpow_inv_rpow (sq_nonneg z) (sub_pos.mpr ha1).ne' |
| 32 | |
| 33 | theorem endpointRoot_equation {a z : ℝ} (ha1 : a < 1) (hz : z ≠ 0) : |
| 34 | forwardScalar a z (endpointRoot a z) = 0 := by |
| 35 | rw [forwardScalar_factor (endpointRoot_pos a hz), endpointRoot_power ha1] |
| 36 | ring |
| 37 | |
| 38 | theorem endpointRoot_slope {a z : ℝ} (ha1 : a < 1) (hz : z ≠ 0) : |
| 39 | scalarSlope a z (endpointRoot a z) = 1 - a := by |
| 40 | have hp := endpointRoot_pos a hz |
| 41 | have he := endpointRoot_equation ha1 hz |
| 42 | have hprod : z ^ 2 * endpointRoot a z ^ a = endpointRoot a z := by |
| 43 | dsimp only [forwardScalar] at he |
| 44 | linarith |
| 45 | rw [scalarSlope, Real.rpow_sub_one hp.ne'] |
| 46 | rw [show z ^ 2 * a * (endpointRoot a z ^ a / endpointRoot a z) = |
| 47 | a * (z ^ 2 * endpointRoot a z ^ a) / endpointRoot a z by ring, |
| 48 | hprod, mul_div_cancel_right₀ _ hp.ne'] |
| 49 | |
| 50 | /-- Every nonzero point of the zero-time axis belongs to the actual regular |
| 51 | stable target. No inverse-coordinate extension is assumed. -/ |
| 52 | theorem zeroTime_mem_stableTarget {a z : ℝ} (_ha : 0 < a) (ha1 : a < 1) (hz : z ≠ 0) : |
| 53 | (0, z) ∈ PositiveRepresentatives.stableTarget a := by |
| 54 | refine ⟨(endpointRoot a z, z), ⟨endpointRoot_pos a hz, ?_⟩, |
| 55 | Prod.ext (endpointRoot_equation ha1 hz) rfl⟩ |
| 56 | change 0 < scalarSlope a z (endpointRoot a z) |
| 57 | rw [endpointRoot_slope ha1 hz] |
| 58 | linarith |
| 59 | |
| 60 | theorem stableInverse_zeroTime {a z : ℝ} (ha : 0 < a) (ha1 : a < 1) (hz : z ≠ 0) : |
| 61 | PositiveRepresentatives.stableInverse a (0, z) = (endpointRoot a z, z) := by |
| 62 | have hs : (endpointRoot a z, z) ∈ PositiveRepresentatives.stableSource a := by |
| 63 | refine ⟨endpointRoot_pos a hz, ?_⟩ |
| 64 | change 0 < scalarSlope a z (endpointRoot a z) |
| 65 | rw [endpointRoot_slope ha1 hz] |
| 66 | linarith |
| 67 | have he := PositiveRepresentatives.stableInverse_forwardMap ha.le ha1.le hs |
| 68 | have hf : forwardMap a (endpointRoot a z, z) = (0, z) := |
| 69 | Prod.ext (endpointRoot_equation ha1 hz) rfl |
| 70 | rwa [hf] at he |
| 71 | |
| 72 | noncomputable def timeAxial (p : PhysicalPoint) : ℝ × ℝ := (1 - p.1, p.2.2) |
| 73 | |
| 74 | noncomputable def domain (h : ℝ) : Set PhysicalPoint := |
| 75 | timeAxial ⁻¹' PositiveRepresentatives.stableTarget (2 * h) |
| 76 | |
| 77 | noncomputable def qExtension (h : ℝ) (p : PhysicalPoint) : ℝ := |
| 78 | (PositiveRepresentatives.stableInverse (2 * h) (timeAxial p)).1 |
| 79 | |
| 80 | noncomputable def etaExtension (h : ℝ) (p : PhysicalPoint) : ℝ := |
| 81 | p.2.2 / qExtension h p ^ ((1 - 2 * h) / 2) |
| 82 | |
| 83 | noncomputable def XExtension (h : ℝ) (p : PhysicalPoint) : ℝ := p.2.1 / qExtension h p |
| 84 | |
| 85 | noncomputable def innerExtension (h : ℝ) (p : PhysicalPoint) : ℝ × ℝ := |
| 86 | (XExtension h p, etaExtension h p) |
| 87 | |
| 88 | noncomputable def chartExtension (h : ℝ) (p : PhysicalPoint) : Chart := |
| 89 | (qExtension h p, innerExtension h p) |
| 90 | |
| 91 | theorem timeAxial_smooth : ContDiff ℝ ∞ timeAxial := |
| 92 | (contDiff_const.sub contDiff_fst).prodMk contDiff_snd.snd |
| 93 | |
| 94 | theorem domain_open (h : ℝ) : IsOpen (domain h) := |
| 95 | (PositiveRepresentatives.stableTarget_open (2 * h)).preimage timeAxial_smooth.continuous |
| 96 | |
| 97 | theorem endpoint_mem_domain {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 98 | (s : ℝ) {z : ℝ} (hz : z ≠ 0) : (1, (s, z)) ∈ domain h := by |
| 99 | change (1 - 1, z) ∈ PositiveRepresentatives.stableTarget (2 * h) |
| 100 | simpa only [sub_self] using zeroTime_mem_stableTarget (by linarith : 0 < 2 * h) |
| 101 | (by linarith : 2 * h < 1) hz |
| 102 | |
| 103 | theorem past_mem_domain {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 104 | {p : PhysicalPoint} (hp : p.1 < 1) : p ∈ domain h := |
| 105 | PositiveRepresentatives.positiveTime_mem_stableTarget (by linarith) (by linarith) (sub_pos.mpr hp) |
| 106 | |
| 107 | theorem qExtension_pos {h : ℝ} {p : PhysicalPoint} (hp : p ∈ domain h) : 0 < qExtension h p := |
| 108 | (PositiveRepresentatives.stableInverse_spec hp).1.1 |
| 109 | |
| 110 | theorem qExtension_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 111 | {p : PhysicalPoint} (hp : p ∈ domain h) : ContDiffAt ℝ ∞ (qExtension h) p := |
| 112 | ((PositiveRepresentatives.stableInverse_smoothAt (by linarith) (by linarith) hp).comp p |
| 113 | timeAxial_smooth.contDiffAt).fst |
| 114 | |
| 115 | theorem innerExtension_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 116 | {p : PhysicalPoint} (hp : p ∈ domain h) : ContDiffAt ℝ ∞ (innerExtension h) p := by |
| 117 | have hq := qExtension_smoothAt hh hh1 hp |
| 118 | have hpos := qExtension_pos hp |
| 119 | exact (contDiffAt_snd.fst.div hq hpos.ne').prodMk |
| 120 | (contDiffAt_snd.snd.div (hq.rpow_const_of_ne hpos.ne') (Real.rpow_pos_of_pos hpos _).ne') |
| 121 | |
| 122 | theorem chartExtension_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 123 | {p : PhysicalPoint} (hp : p ∈ domain h) : ContDiffAt ℝ ∞ (chartExtension h) p := |
| 124 | (qExtension_smoothAt hh hh1 hp).prodMk (innerExtension_smoothAt hh hh1 hp) |
| 125 | |
| 126 | theorem chartExtension_smoothOn {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 127 | ContDiffOn ℝ ∞ (chartExtension h) (domain h) := |
| 128 | fun _ hp => (chartExtension_smoothAt hh hh1 hp).contDiffWithinAt |
| 129 | |
| 130 | theorem qExtension_endpoint {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 131 | (s : ℝ) {z : ℝ} (hz : z ≠ 0) : qExtension h (1, (s, z)) = endpointRoot (2 * h) z := by |
| 132 | simpa only [qExtension, timeAxial, sub_self] using |
| 133 | congrArg (fun x : ℝ × ℝ => x.1) |
| 134 | (stableInverse_zeroTime (by linarith : 0 < 2 * h) (by linarith : 2 * h < 1) hz) |
| 135 | |
| 136 | theorem chartExtension_endpoint {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 137 | (s : ℝ) {z : ℝ} (hz : z ≠ 0) : |
| 138 | chartExtension h (1, (s, z)) = |
| 139 | (endpointRoot (2 * h) z, |
| 140 | (s / endpointRoot (2 * h) z, z / endpointRoot (2 * h) z ^ ((1 - 2 * h) / 2))) := by |
| 141 | simp only [chartExtension, innerExtension, XExtension, etaExtension, qExtension_endpoint hh hh1 s hz] |
| 142 | |
| 143 | theorem qExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 144 | {p : PhysicalPoint} (hp : p.1 < 1) : qExtension h p = SimilarityProfile.q h p := by |
| 145 | simpa only [qExtension, timeAxial, SimilarityProfile.q, inverseMap] using |
| 146 | congrArg (fun x : ℝ × ℝ => x.1) |
| 147 | (PositiveRepresentatives.stableInverse_eq_inverseMap |
| 148 | (by linarith : 0 < 2 * h) (by linarith : 2 * h < 1) (sub_pos.mpr hp)) |
| 149 | |
| 150 | theorem chartExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 151 | {p : PhysicalPoint} (hp : p.1 < 1) : chartExtension h p = SlowBorelBase.physicalChart h p := by |
| 152 | change (qExtension h p, (p.2.1 / qExtension h p, p.2.2 / qExtension h p ^ ((1 - 2 * h) / 2))) = |
| 153 | (SimilarityProfile.q h p, |
| 154 | (p.2.1 / SimilarityProfile.q h p, p.2.2 / SimilarityProfile.q h p ^ ((1 - 2 * h) / 2))) |
| 155 | rw [qExtension_eq_physical hh hh1 hp] |
| 156 | |
| 157 | noncomputable def lowerDomain (h c : ℝ) : Set PhysicalPoint := |
| 158 | domain h ∩ {p | c < qExtension h p} |
| 159 | |
| 160 | theorem lowerDomain_open {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (c : ℝ) : |
| 161 | IsOpen (lowerDomain h c) := by |
| 162 | apply isOpen_iff_mem_nhds.mpr |
| 163 | intro p hp |
| 164 | have hD := (domain_open h).mem_nhds hp.1 |
| 165 | have hq := (qExtension_smoothAt hh hh1 hp.1).continuousAt.eventually (Ioi_mem_nhds hp.2) |
| 166 | filter_upwards [hD, hq] with q hDq hqq |
| 167 | exact ⟨hDq, hqq⟩ |
| 168 | |
| 169 | /-- An actual open neighborhood across the endpoint, with an explicit |
| 170 | positive lower bound. The bound applies to the physical coordinate on its |
| 171 | past portion and to the smooth extension throughout the neighborhood. -/ |
| 172 | theorem endpoint_neighborhood {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 173 | (s : ℝ) {z : ℝ} (hz : z ≠ 0) : |
| 174 | ∃ U : Set PhysicalPoint, IsOpen U ∧ (1, (s, z)) ∈ U ∧ U ⊆ domain h ∧ |
| 175 | ContDiffOn ℝ ∞ (chartExtension h) U ∧ |
| 176 | 0 < endpointRoot (2 * h) z / 2 ∧ |
| 177 | ∀ p ∈ U, endpointRoot (2 * h) z / 2 < qExtension h p ∧ |
| 178 | (p.1 < 1 → endpointRoot (2 * h) z / 2 < SimilarityProfile.q h p) := by |
| 179 | let U := lowerDomain h (endpointRoot (2 * h) z / 2) |
| 180 | have hq := endpointRoot_pos (2 * h) hz |
| 181 | have hu : (1, (s, z)) ∈ U := by |
| 182 | refine ⟨endpoint_mem_domain hh hh1 s hz, ?_⟩ |
| 183 | change endpointRoot (2 * h) z / 2 < qExtension h (1, (s, z)) |
| 184 | rw [qExtension_endpoint hh hh1 s hz] |
| 185 | linarith |
| 186 | refine ⟨U, lowerDomain_open hh hh1 _, hu, inter_subset_left, |
| 187 | (chartExtension_smoothOn hh hh1).mono inter_subset_left, half_pos hq, ?_⟩ |
| 188 | intro p hp |
| 189 | refine ⟨hp.2, fun ht => ?_⟩ |
| 190 | rw [← qExtension_eq_physical hh hh1 ht] |
| 191 | exact hp.2 |
| 192 | |
| 193 | /-! ## The actual Cartesian chart used by the slow base -/ |
| 194 | |
| 195 | noncomputable def cartesianDomain (h : ℝ) : Set ProblemStatement.SpaceTime := |
| 196 | (fun z => AxisymmetricFields.profilePoint z.1 z.2) ⁻¹' domain h |
| 197 | |
| 198 | noncomputable def cartesianExtension (h : ℝ) (z : ProblemStatement.SpaceTime) : Chart := |
| 199 | chartExtension h (AxisymmetricFields.profilePoint z.1 z.2) |
| 200 | |
| 201 | theorem cartesianDomain_open (h : ℝ) : IsOpen (cartesianDomain h) := |
| 202 | (domain_open h).preimage (AxisymmetricFields.contDiff_profilePoint (n := ∞)).continuous |
| 203 | |
| 204 | theorem cartesian_endpoint_mem {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 205 | {x : ProblemStatement.Space} (hx : x 2 ≠ 0) : (1, x) ∈ cartesianDomain h := |
| 206 | endpoint_mem_domain hh hh1 (AxisymmetricFields.radialEnergy x) hx |
| 207 | |
| 208 | theorem cartesianExtension_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 209 | {z : ProblemStatement.SpaceTime} (hz : z ∈ cartesianDomain h) : |
| 210 | ContDiffAt ℝ ∞ (cartesianExtension h) z := |
| 211 | (chartExtension_smoothAt hh hh1 hz).comp z AxisymmetricFields.contDiff_profilePoint.contDiffAt |
| 212 | |
| 213 | theorem cartesianExtension_smoothOn {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 214 | ContDiffOn ℝ ∞ (cartesianExtension h) (cartesianDomain h) := |
| 215 | fun _ hz => (cartesianExtension_smoothAt hh hh1 hz).contDiffWithinAt |
| 216 | |
| 217 | theorem cartesianExtension_pos {h : ℝ} {z : ProblemStatement.SpaceTime} |
| 218 | (hz : z ∈ cartesianDomain h) : 0 < (cartesianExtension h z).1 := qExtension_pos hz |
| 219 | |
| 220 | theorem cartesianExtension_endpoint {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 221 | {x : ProblemStatement.Space} (hx : x 2 ≠ 0) : |
| 222 | cartesianExtension h (1, x) = |
| 223 | (endpointRoot (2 * h) (x 2), |
| 224 | (AxisymmetricFields.radialEnergy x / endpointRoot (2 * h) (x 2), |
| 225 | x 2 / endpointRoot (2 * h) (x 2) ^ ((1 - 2 * h) / 2))) := |
| 226 | chartExtension_endpoint hh hh1 (AxisymmetricFields.radialEnergy x) hx |
| 227 | |
| 228 | theorem cartesianExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 229 | {z : ProblemStatement.SpaceTime} (hz : z.1 < 1) : |
| 230 | cartesianExtension h z = SlowBorelBase.cartesianChart h z := |
| 231 | chartExtension_eq_physical hh hh1 hz |
| 232 | |
| 233 | theorem cartesian_endpoint_neighborhood {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 234 | {x : ProblemStatement.Space} (hx : x 2 ≠ 0) : |
| 235 | ∃ U : Set ProblemStatement.SpaceTime, IsOpen U ∧ (1, x) ∈ U ∧ U ⊆ cartesianDomain h ∧ |
| 236 | ContDiffOn ℝ ∞ (cartesianExtension h) U ∧ |
| 237 | 0 < endpointRoot (2 * h) (x 2) / 2 ∧ |
| 238 | ∀ z ∈ U, endpointRoot (2 * h) (x 2) / 2 < (cartesianExtension h z).1 ∧ |
| 239 | (z.1 < 1 → endpointRoot (2 * h) (x 2) / 2 < (SlowBorelBase.cartesianChart h z).1) := by |
| 240 | obtain ⟨V, hV, hxV, hVD, hsmooth, hq, hb⟩ := |
| 241 | endpoint_neighborhood hh hh1 (AxisymmetricFields.radialEnergy x) hx |
| 242 | let P := fun z : ProblemStatement.SpaceTime => AxisymmetricFields.profilePoint z.1 z.2 |
| 243 | refine ⟨P ⁻¹' V, hV.preimage (AxisymmetricFields.contDiff_profilePoint (n := ∞)).continuous, |
| 244 | hxV, fun z hz => hVD hz, ?_, hq, ?_⟩ |
| 245 | · exact (cartesianExtension_smoothOn hh hh1).mono (fun z hz => hVD hz) |
| 246 | · intro z hz |
| 247 | refine ⟨(hb (P z) hz).1, fun ht => ?_⟩ |
| 248 | rw [← cartesianExtension_eq_physical hh hh1 ht] |
| 249 | exact (hb (P z) hz).1 |
| 250 | |
| 251 | /-! ## Smooth composition and genuine derivative transfer -/ |
| 252 | |
| 253 | end NavierStokes.EndpointCoordinates |