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.SimilarityProfile |
| 2 | import NavierStokes.DiagonalResidual |
| 3 | |
| 4 | /-! |
| 5 | # The actual similarity scale at the singular point |
| 6 | |
| 7 | The coordinate solves `q - z^2 q^a = tau`. Its positive branch tends to zero |
| 8 | when `tau` and `z` tend to zero together. The value assigned outside the |
| 9 | positive-time domain is never used in this assertion. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Topology |
| 16 | |
| 17 | namespace NavierStokes.SimilarityApproach |
| 18 | |
| 19 | open SimilarityCoordinates |
| 20 | |
| 21 | noncomputable def upperScale (a : ℝ) (p : ℝ × ℝ) : ℝ := |
| 22 | 2 * p.1 + (2 * p.2 ^ 2) ^ (1 - a)⁻¹ |
| 23 | |
| 24 | theorem coordinateQ_le_upperScale {a : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| 25 | {p : ℝ × ℝ} (hp : 0 < p.1) : coordinateQ a p ≤ upperScale a p := by |
| 26 | obtain ⟨hq, he⟩ := coordinateQ_spec ha ha1 hp |
| 27 | have hd : 0 < 1 - a := sub_pos.mpr ha1 |
| 28 | have htail : 0 ≤ (2 * p.2 ^ 2) ^ (1 - a)⁻¹ := |
| 29 | Real.rpow_nonneg (by positivity) _ |
| 30 | by_cases hsmall : coordinateQ a p ≤ 2 * p.1 |
| 31 | · exact hsmall.trans (le_add_of_nonneg_right htail) |
| 32 | · have hlarge : 2 * p.1 < coordinateQ a p := lt_of_not_ge hsmall |
| 33 | have hqa : 0 < coordinateQ a p ^ a := Real.rpow_pos_of_pos hq _ |
| 34 | have hprod : coordinateQ a p ^ a * coordinateQ a p ^ (1 - a) = |
| 35 | coordinateQ a p := by |
| 36 | have hadd : a + (1 - a) = 1 := by ring |
| 37 | rw [← Real.rpow_add hq, hadd, Real.rpow_one] |
| 38 | have hpower : coordinateQ a p ^ (1 - a) < 2 * p.2 ^ 2 := by |
| 39 | apply (mul_lt_mul_iff_left₀ hqa).mp |
| 40 | rw [mul_comm (coordinateQ a p ^ (1 - a)), hprod] |
| 41 | dsimp [forwardScalar] at he |
| 42 | nlinarith |
| 43 | have hbound := Real.rpow_le_rpow |
| 44 | (Real.rpow_nonneg hq.le (1 - a)) hpower.le (inv_pos.mpr hd).le |
| 45 | rw [Real.rpow_rpow_inv hq.le hd.ne'] at hbound |
| 46 | exact hbound.trans (le_add_of_nonneg_left (by positivity)) |
| 47 | |
| 48 | theorem upperScale_continuous {a : ℝ} (ha1 : a < 1) : Continuous (upperScale a) := |
| 49 | (continuous_const.mul continuous_fst).add |
| 50 | ((Real.continuous_rpow_const (inv_nonneg.mpr (sub_nonneg.mpr ha1.le))).comp |
| 51 | (continuous_const.mul (continuous_snd.pow 2))) |
| 52 | |
| 53 | @[simp] theorem upperScale_origin {a : ℝ} (ha1 : a < 1) : |
| 54 | upperScale a (0, 0) = 0 := by |
| 55 | simp [upperScale, Real.zero_rpow (inv_pos.mpr (sub_pos.mpr ha1)).ne'] |
| 56 | |
| 57 | /-- Joint approach; neither a fixed axial coordinate nor a prescribed path |
| 58 | is required. Positive time is required eventually. -/ |
| 59 | theorem coordinateQ_tendsto_zero {α : Type*} {l : Filter α} {tau z : α → ℝ} |
| 60 | {a : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| 61 | (htau : Tendsto tau l (𝓝 0)) (hz : Tendsto z l (𝓝 0)) |
| 62 | (hpos : ∀ᶠ i in l, 0 < tau i) : |
| 63 | Tendsto (fun i => coordinateQ a (tau i, z i)) l (𝓝 0) := by |
| 64 | have hmajor : Tendsto (fun i => upperScale a (tau i, z i)) l (𝓝 0) := by |
| 65 | simpa only [upperScale_origin ha1, Function.comp_def] using |
| 66 | ((upperScale_continuous ha1).tendsto (0, 0)).comp (htau.prodMk_nhds hz) |
| 67 | apply squeeze_zero' _ _ hmajor |
| 68 | · filter_upwards [hpos] with i hi |
| 69 | exact (coordinateQ_spec ha ha1 hi).1.le |
| 70 | · filter_upwards [hpos] with i hi |
| 71 | exact coordinateQ_le_upperScale ha ha1 hi |
| 72 | |
| 73 | theorem physical_q_bound {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 74 | {p : SimilarityProfile.PhysicalPoint} (ht : p.1 < 1) : |
| 75 | SimilarityProfile.q h p ≤ |
| 76 | 2 * (1 - p.1) + (2 * p.2.2 ^ 2) ^ (1 - 2 * h)⁻¹ := |
| 77 | coordinateQ_le_upperScale (by linarith) (by linarith) (sub_pos.mpr ht) |
| 78 | |
| 79 | theorem physical_q_tendsto_zero {α : Type*} {l : Filter α} |
| 80 | {p : α → SimilarityProfile.PhysicalPoint} {h : ℝ} |
| 81 | (hh : 0 < h) (hh1 : h < 1 / 2) |
| 82 | (ht : Tendsto (fun i => (p i).1) l (𝓝 1)) |
| 83 | (hz : Tendsto (fun i => (p i).2.2) l (𝓝 0)) |
| 84 | (hbefore : ∀ᶠ i in l, (p i).1 < 1) : |
| 85 | Tendsto (fun i => SimilarityProfile.q h (p i)) l (𝓝 0) := by |
| 86 | refine coordinateQ_tendsto_zero (by linarith) (by linarith) ?_ hz ?_ |
| 87 | · simpa using (tendsto_const_nhds : |
| 88 | Tendsto (fun _ : α => (1 : ℝ)) l (𝓝 1)).sub ht |
| 89 | · exact hbefore.mono (fun _ hi => sub_pos.mpr hi) |
| 90 | |
| 91 | /-- A proved positive-order estimate of an actual derivative gives its |
| 92 | zero limit once the actual scale has the joint limit above. -/ |
| 93 | theorem jet_tendsto_zero {D V : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 94 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 95 | {l : Filter D} {q : D → ℝ} {f : D → V} {m : ℕ} |
| 96 | (hjet : DiagonalResidual.JetRate l q f m 1) |
| 97 | (hq : Tendsto q l (𝓝 0)) : |
| 98 | Tendsto (iteratedFDeriv ℝ m f) l (𝓝 0) := by |
| 99 | obtain ⟨C, _, hbound⟩ := hjet |
| 100 | apply tendsto_zero_iff_norm_tendsto_zero.mpr |
| 101 | apply squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) _ |
| 102 | (show Tendsto (fun x => C * q x) l (𝓝 0) by simpa using hq.const_mul C) |
| 103 | exact hbound.mono (fun x hx => by simpa only [Real.rpow_one] using hx) |
| 104 | |
| 105 | end NavierStokes.SimilarityApproach |