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.Scaling |
| 3 | |
| 4 | /-! |
| 5 | # Homogeneity of the actual similarity coordinates |
| 6 | |
| 7 | The coordinate `q` is the positive branch constructed in |
| 8 | `SimilarityCoordinates`. Its scaling law follows from uniqueness of that |
| 9 | branch. The band coordinates below are `(R,(Z,T))`, with `T = τ / Q`. |
| 10 | Consequently the profile coordinate is `X = R² / (2 q(T,Z))`, not a fixed |
| 11 | function of `R` alone. Profile weights are transported exactly by a change |
| 12 | of band scale. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.SimilarityHomogeneity |
| 18 | |
| 19 | open SimilarityCoordinates |
| 20 | open scoped ContDiff |
| 21 | |
| 22 | abbrev D := CoordinateAlgebra.D |
| 23 | |
| 24 | /-- The scalar defining equation has the required anisotropic homogeneity. -/ |
| 25 | theorem forwardScalar_scale {Q q : ℝ} (hQ : 0 < Q) (hq : 0 < q) (a z : ℝ) : |
| 26 | forwardScalar a (Q ^ ((1 - a) / 2) * z) (Q * q) = |
| 27 | Q * forwardScalar a z q := by |
| 28 | have hp : (Q ^ ((1 - a) / 2)) ^ 2 * Q ^ a = Q := by |
| 29 | rw [← Real.rpow_mul_natCast hQ.le, ← Real.rpow_add hQ] |
| 30 | rw [show (1 - a) / 2 * (2 : ℕ) + a = (1 : ℝ) by ring, Real.rpow_one] |
| 31 | unfold forwardScalar |
| 32 | rw [Real.mul_rpow hQ.le hq.le, mul_pow] |
| 33 | calc |
| 34 | Q * q - (Q ^ ((1 - a) / 2)) ^ 2 * z ^ 2 * (Q ^ a * q ^ a) = |
| 35 | Q * q - ((Q ^ ((1 - a) / 2)) ^ 2 * Q ^ a) * (z ^ 2 * q ^ a) := by ring |
| 36 | _ = Q * (q - z ^ 2 * q ^ a) := by rw [hp]; ring |
| 37 | |
| 38 | /-- Exact scaling of the defined coordinate, obtained by positive-branch |
| 39 | uniqueness rather than by postulating homogeneity. -/ |
| 40 | theorem coordinateQ_scale {a Q τ z : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| 41 | (hQ : 0 < Q) (hτ : 0 < τ) : |
| 42 | coordinateQ a (Q * τ, Q ^ ((1 - a) / 2) * z) = |
| 43 | Q * coordinateQ a (τ, z) := by |
| 44 | have hs := coordinateQ_spec ha ha1 (p := (τ, z)) hτ |
| 45 | apply (eq_coordinateQ ha ha1 (mul_pos hQ hτ) (mul_pos hQ hs.1) ?_).symm |
| 46 | rw [forwardScalar_scale hQ hs.1, hs.2] |
| 47 | |
| 48 | /-- The defined axial similarity parameter is invariant under scaling. -/ |
| 49 | theorem coordinateEta_scale {a Q τ z : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| 50 | (hQ : 0 < Q) (hτ : 0 < τ) : |
| 51 | coordinateEta a (Q * τ, Q ^ ((1 - a) / 2) * z) = |
| 52 | coordinateEta a (τ, z) := by |
| 53 | have hq := (coordinateQ_spec ha ha1 (p := (τ, z)) hτ).1 |
| 54 | unfold coordinateEta |
| 55 | rw [coordinateQ_scale ha ha1 hQ hτ, Real.mul_rpow hQ.le hq.le] |
| 56 | exact mul_div_mul_left _ _ (Real.rpow_pos_of_pos hQ _).ne' |
| 57 | |
| 58 | /-- Scaling `s` and `τ` by the same factor preserves the defined `X`. -/ |
| 59 | theorem coordinateX_scale {a Q τ z s : ℝ} (ha : 0 < a) (ha1 : a < 1) |
| 60 | (hQ : 0 < Q) (hτ : 0 < τ) : |
| 61 | coordinateX a (Q * s) (Q * τ, Q ^ ((1 - a) / 2) * z) = |
| 62 | coordinateX a s (τ, z) := by |
| 63 | unfold coordinateX |
| 64 | rw [coordinateQ_scale ha ha1 hQ hτ] |
| 65 | exact mul_div_mul_left _ _ hQ.ne' |
| 66 | |
| 67 | /-- The manuscript's exact `h,D` convention. -/ |
| 68 | theorem coordinateQ_scale_h {h Q τ z : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 69 | (hQ : 0 < Q) (hτ : 0 < τ) : |
| 70 | coordinateQ (2 * h) (Q * τ, Q ^ D h * z) = |
| 71 | Q * coordinateQ (2 * h) (τ, z) := by |
| 72 | simpa only [SimilarityProfile.D_eq] using |
| 73 | coordinateQ_scale (a := 2 * h) (by linarith) (by linarith) hQ hτ |
| 74 | |
| 75 | theorem coordinateEta_scale_h {h Q τ z : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 76 | (hQ : 0 < Q) (hτ : 0 < τ) : |
| 77 | coordinateEta (2 * h) (Q * τ, Q ^ D h * z) = |
| 78 | coordinateEta (2 * h) (τ, z) := by |
| 79 | simpa only [SimilarityProfile.D_eq] using |
| 80 | coordinateEta_scale (a := 2 * h) (by linarith) (by linarith) hQ hτ |
| 81 | |
| 82 | theorem coordinateX_scale_h {h Q τ z s : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 83 | (hQ : 0 < Q) (hτ : 0 < τ) : |
| 84 | coordinateX (2 * h) (Q * s) (Q * τ, Q ^ D h * z) = |
| 85 | coordinateX (2 * h) s (τ, z) := by |
| 86 | simpa only [SimilarityProfile.D_eq] using |
| 87 | coordinateX_scale (a := 2 * h) (s := s) (by linarith) (by linarith) hQ hτ |
| 88 | |
| 89 | /-- Physical time is `t=1-τ`; physical points have layout `(t,(s,z))`. -/ |
| 90 | noncomputable def physicalScale (h Q : ℝ) (p : SimilarityProfile.PhysicalPoint) : |
| 91 | SimilarityProfile.PhysicalPoint := |
| 92 | (1 - Q * (1 - p.1), (Q * p.2.1, Q ^ D h * p.2.2)) |
| 93 | |
| 94 | theorem q_physicalScale {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 95 | (hQ : 0 < Q) {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) : |
| 96 | SimilarityProfile.q h (physicalScale h Q p) = Q * SimilarityProfile.q h p := by |
| 97 | change coordinateQ (2 * h) (1 - (1 - Q * (1 - p.1)), Q ^ D h * p.2.2) = _ |
| 98 | rw [show 1 - (1 - Q * (1 - p.1)) = Q * (1 - p.1) by ring] |
| 99 | exact coordinateQ_scale_h hh hh1 hQ (sub_pos.mpr hp) |
| 100 | |
| 101 | theorem eta_physicalScale {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 102 | (hQ : 0 < Q) {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) : |
| 103 | SimilarityProfile.eta h (physicalScale h Q p) = SimilarityProfile.eta h p := by |
| 104 | change coordinateEta (2 * h) (1 - (1 - Q * (1 - p.1)), Q ^ D h * p.2.2) = _ |
| 105 | rw [show 1 - (1 - Q * (1 - p.1)) = Q * (1 - p.1) by ring] |
| 106 | exact coordinateEta_scale_h hh hh1 hQ (sub_pos.mpr hp) |
| 107 | |
| 108 | theorem X_physicalScale {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 109 | (hQ : 0 < Q) {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) : |
| 110 | SimilarityProfile.X h (physicalScale h Q p) = SimilarityProfile.X h p := by |
| 111 | unfold SimilarityProfile.X |
| 112 | rw [q_physicalScale hh hh1 hQ hp] |
| 113 | change (Q * p.2.1) / (Q * SimilarityProfile.q h p) = _ |
| 114 | exact mul_div_mul_left _ _ hQ.ne' |
| 115 | |
| 116 | theorem inner_physicalScale {h Q : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 117 | (hQ : 0 < Q) {p : SimilarityProfile.PhysicalPoint} (hp : p.1 < 1) : |
| 118 | SimilarityProfile.inner h (physicalScale h Q p) = SimilarityProfile.inner h p := |
| 119 | Prod.ext (X_physicalScale hh hh1 hQ hp) (eta_physicalScale hh hh1 hQ hp) |
| 120 | |
| 121 | abbrev ChartPoint := ℝ × (ℝ × ℝ) |
| 122 | |
| 123 | /-- A band chart is ordered `(R,(Z,T))`. -/ |
| 124 | noncomputable def chartQ (h : ℝ) (p : ChartPoint) : ℝ := |
| 125 | coordinateQ (2 * h) (p.2.2, p.2.1) |
| 126 | |
| 127 | noncomputable def chartEta (h : ℝ) (p : ChartPoint) : ℝ := |
| 128 | coordinateEta (2 * h) (p.2.2, p.2.1) |
| 129 | |
| 130 | noncomputable def chartX (h : ℝ) (p : ChartPoint) : ℝ := |
| 131 | coordinateX (2 * h) (p.1 ^ 2 / 2) (p.2.2, p.2.1) |
| 132 | |
| 133 | noncomputable def chartInner (h : ℝ) (p : ChartPoint) : ℝ × ℝ := |
| 134 | (chartX h p, chartEta h p) |
| 135 | |
| 136 | /-- Transition from the band of scale `Q` to the band of scale `Q'`. -/ |
| 137 | noncomputable def chartTransition (h Q Q' : ℝ) (p : ChartPoint) : ChartPoint := |
| 138 | ((Q / Q') ^ (1 / 2 : ℝ) * p.1, |
| 139 | ((Q / Q') ^ D h * p.2.1, (Q / Q') * p.2.2)) |
| 140 | |
| 141 | theorem chartQ_transition {h Q Q' : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 142 | (hQ : 0 < Q) (hQ' : 0 < Q') {p : ChartPoint} (hp : 0 < p.2.2) : |
| 143 | chartQ h (chartTransition h Q Q' p) = (Q / Q') * chartQ h p := |
| 144 | coordinateQ_scale_h hh hh1 (div_pos hQ hQ') hp |
| 145 | |
| 146 | theorem chartEta_transition {h Q Q' : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 147 | (hQ : 0 < Q) (hQ' : 0 < Q') {p : ChartPoint} (hp : 0 < p.2.2) : |
| 148 | chartEta h (chartTransition h Q Q' p) = chartEta h p := |
| 149 | coordinateEta_scale_h hh hh1 (div_pos hQ hQ') hp |
| 150 | |
| 151 | theorem chartX_transition {h Q Q' : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 152 | (hQ : 0 < Q) (hQ' : 0 < Q') {p : ChartPoint} (hp : 0 < p.2.2) : |
| 153 | chartX h (chartTransition h Q Q' p) = chartX h p := by |
| 154 | have hr : 0 < Q / Q' := div_pos hQ hQ' |
| 155 | have hs : ((Q / Q') ^ (1 / 2 : ℝ) * p.1) ^ 2 / 2 = |
| 156 | (Q / Q') * (p.1 ^ 2 / 2) := by |
| 157 | rw [mul_pow, ← Real.rpow_mul_natCast hr.le] |
| 158 | norm_num |
| 159 | ring |
| 160 | change coordinateX (2 * h) (((Q / Q') ^ (1 / 2 : ℝ) * p.1) ^ 2 / 2) |
| 161 | ((Q / Q') * p.2.2, (Q / Q') ^ D h * p.2.1) = _ |
| 162 | rw [hs] |
| 163 | exact coordinateX_scale_h hh hh1 hr hp |
| 164 | |
| 165 | theorem chartInner_transition {h Q Q' : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 166 | (hQ : 0 < Q) (hQ' : 0 < Q') {p : ChartPoint} (hp : 0 < p.2.2) : |
| 167 | chartInner h (chartTransition h Q Q' p) = chartInner h p := |
| 168 | Prod.ext (chartX_transition hh hh1 hQ hQ' hp) (chartEta_transition hh hh1 hQ hQ' hp) |
| 169 | |
| 170 | /-- The usual open annular-chart domain. -/ |
| 171 | noncomputable def chartDomain : Set ChartPoint := {p | 0 < p.1 ∧ 0 < p.2.2} |
| 172 | |
| 173 | theorem isOpen_chartDomain : IsOpen chartDomain := |
| 174 | (isOpen_lt continuous_const continuous_fst).inter |
| 175 | (isOpen_lt continuous_const continuous_snd.snd) |
| 176 | |
| 177 | theorem chartTransition_mem_iff {h Q Q' : ℝ} (hQ : 0 < Q) (hQ' : 0 < Q') |
| 178 | (p : ChartPoint) : chartTransition h Q Q' p ∈ chartDomain ↔ p ∈ chartDomain := by |
| 179 | change (0 < (Q / Q') ^ (1 / 2 : ℝ) * p.1 ∧ 0 < (Q / Q') * p.2.2) ↔ _ |
| 180 | rw [mul_pos_iff_of_pos_left (Real.rpow_pos_of_pos (div_pos hQ hQ') _), |
| 181 | mul_pos_iff_of_pos_left (div_pos hQ hQ')] |
| 182 | rfl |
| 183 | |
| 184 | theorem chartInner_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 185 | {p : ChartPoint} (hp : 0 < p.2.2) : ContDiffAt ℝ ∞ (chartInner h) p := by |
| 186 | have hm : ContDiffAt ℝ ∞ (fun x : ChartPoint => (x.2.2, x.2.1)) p := |
| 187 | contDiffAt_snd.snd.prodMk contDiffAt_snd.fst |
| 188 | have hq : ContDiffAt ℝ ∞ (chartQ h) p := |
| 189 | (coordinateQ_smooth (by linarith) (by linarith) (p := (p.2.2, p.2.1)) hp).comp p hm |
| 190 | have he : ContDiffAt ℝ ∞ (chartEta h) p := |
| 191 | (coordinateEta_smooth (by linarith) (by linarith) (p := (p.2.2, p.2.1)) hp).comp p hm |
| 192 | have hqp : 0 < chartQ h p := |
| 193 | (coordinateQ_spec (by linarith) (by linarith) (p := (p.2.2, p.2.1)) hp).1 |
| 194 | exact (((contDiffAt_fst.pow 2).div_const 2).div hq hqp.ne').prodMk he |
| 195 | |
| 196 | /-- The lesser of one and the two logarithmic distances to fixed profile |
| 197 | edges. Positivity is asserted only inside a positive profile interval. -/ |
| 198 | noncomputable def profileLogDistance (left right X : ℝ) : ℝ := |
| 199 | min 1 (min (Real.log X - Real.log left) (Real.log right - Real.log X)) |
| 200 | |
| 201 | theorem profileLogDistance_pos {left right X : ℝ} (hl : 0 < left) |
| 202 | (hLX : left < X) (hXR : X < right) : 0 < profileLogDistance left right X := by |
| 203 | exact lt_min zero_lt_one (lt_min (sub_pos.mpr (Real.log_lt_log hl hLX)) |
| 204 | (sub_pos.mpr (Real.log_lt_log (hl.trans hLX) hXR))) |
| 205 | |
| 206 | noncomputable def chartLogDistance (h left right : ℝ) (p : ChartPoint) : ℝ := |
| 207 | profileLogDistance left right (chartX h p) |
| 208 | |
| 209 | end NavierStokes.SimilarityHomogeneity |