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.NaturalProfile |
| 2 | import NavierStokes.SimilarityCoordinates |
| 3 | import NavierStokes.AxisymmetricFields |
| 4 | import NavierStokes.SmoothParameterIntegral |
| 5 | import NavierStokes.BlowupImplication |
| 6 | |
| 7 | /-! |
| 8 | # The physical natural core |
| 9 | |
| 10 | The core is the actual Cartesian curl of meridional and swirl potentials |
| 11 | obtained from the natural profiles. All regularity assertions are on the |
| 12 | explicit open physical domain where those profiles have been constructed. |
| 13 | No assertion about the regularity of the final Navier--Stokes force is made. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open Set Filter MeasureTheory |
| 19 | open scoped Topology ContDiff Interval BigOperators |
| 20 | |
| 21 | namespace NavierStokes.NaturalCore |
| 22 | |
| 23 | open ProblemStatement AxisymmetricFields |
| 24 | |
| 25 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 26 | (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n).le |
| 27 | |
| 28 | private theorem infty_add_one_le : (∞ : WithTop ℕ∞) + 1 ≤ ∞ := by |
| 29 | simpa only [ENat.coe_top_add_one] using (le_rfl : (∞ : WithTop ℕ∞) ≤ ∞) |
| 30 | |
| 31 | noncomputable def physicalQ (h : ℝ) (p : ProfilePoint) : ℝ := |
| 32 | SimilarityCoordinates.coordinateQ (2 * h) (1 - p.1, p.2.2) |
| 33 | |
| 34 | noncomputable def physicalEta (h : ℝ) (p : ProfilePoint) : ℝ := |
| 35 | SimilarityCoordinates.coordinateEta (2 * h) (1 - p.1, p.2.2) |
| 36 | |
| 37 | noncomputable def similarityPoint (h : ℝ) (p : ProfilePoint) : ℝ × ℝ := |
| 38 | (p.2.1 / physicalQ h p, physicalEta h p) |
| 39 | |
| 40 | noncomputable def profileDomain (h Λ : ℝ) : Set ProfilePoint := |
| 41 | {p | p.1 < 1 ∧ similarityPoint h p ∈ NaturalProfile.domain Λ} |
| 42 | |
| 43 | noncomputable def coreDomain (h Λ : ℝ) : Set SpaceTime := |
| 44 | {z | profilePoint z.1 z.2 ∈ profileDomain h Λ} |
| 45 | |
| 46 | /-- The actual integral from zero to the radial profile coordinate. -/ |
| 47 | noncomputable def radialPrimitive (f : ℝ × ℝ → ℝ) (p : ℝ × ℝ) : ℝ := |
| 48 | ∫ v in (0 : ℝ)..p.1, f (v, p.2) |
| 49 | |
| 50 | noncomputable def meridionalPotential (h : ℝ) (V : ℝ × ℝ → ℝ) : Profile := fun p => |
| 51 | physicalQ h p ^ (-NaturalAxisData.A h) * V (similarityPoint h p) |
| 52 | |
| 53 | noncomputable def swirlPotential (h : ℝ) (f : ℝ × ℝ → ℝ) : Profile := fun p => |
| 54 | -(physicalQ h p ^ (-h)) * radialPrimitive f (similarityPoint h p) |
| 55 | |
| 56 | noncomputable def corePotential (h : ℝ) (f V : ℝ × ℝ → ℝ) : VelocityField := |
| 57 | potential (meridionalPotential h V) (swirlPotential h f) |
| 58 | |
| 59 | noncomputable def coreVelocity (h : ℝ) (f V : ℝ × ℝ → ℝ) : VelocityField := |
| 60 | velocity (meridionalPotential h V) (swirlPotential h f) |
| 61 | |
| 62 | theorem physicalQ_pos {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 63 | {p : ProfilePoint} (hp : p.1 < 1) : 0 < physicalQ h p := |
| 64 | (SimilarityCoordinates.coordinateQ_spec (by linarith) (by linarith) |
| 65 | (sub_pos.mpr hp)).1 |
| 66 | |
| 67 | theorem physicalQ_contDiffAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 68 | {p : ProfilePoint} (hp : p.1 < 1) : ContDiffAt ℝ ∞ (physicalQ h) p := by |
| 69 | exact (SimilarityCoordinates.coordinateQ_smooth (by linarith) (by linarith) |
| 70 | (p := (1 - p.1, p.2.2)) (sub_pos.mpr hp)).comp p |
| 71 | ((contDiffAt_const.sub contDiffAt_fst).prodMk contDiffAt_snd.snd) |
| 72 | |
| 73 | theorem physicalEta_contDiffAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 74 | {p : ProfilePoint} (hp : p.1 < 1) : ContDiffAt ℝ ∞ (physicalEta h) p := by |
| 75 | exact (SimilarityCoordinates.coordinateEta_smooth (by linarith) (by linarith) |
| 76 | (p := (1 - p.1, p.2.2)) (sub_pos.mpr hp)).comp p |
| 77 | ((contDiffAt_const.sub contDiffAt_fst).prodMk contDiffAt_snd.snd) |
| 78 | |
| 79 | theorem similarityPoint_contDiffAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 80 | {p : ProfilePoint} (hp : p.1 < 1) : ContDiffAt ℝ ∞ (similarityPoint h) p := |
| 81 | (contDiffAt_snd.fst.div (physicalQ_contDiffAt hh hh1 hp) |
| 82 | (physicalQ_pos hh hh1 hp).ne').prodMk (physicalEta_contDiffAt hh hh1 hp) |
| 83 | |
| 84 | theorem profileDomain_isOpen {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (Λ : ℝ) : |
| 85 | IsOpen (profileDomain h Λ) := by |
| 86 | apply isOpen_iff_mem_nhds.mpr |
| 87 | intro p hp |
| 88 | have ht : {q : ProfilePoint | q.1 < 1} ∈ 𝓝 p := |
| 89 | (isOpen_lt continuous_fst continuous_const).mem_nhds hp.1 |
| 90 | have hs : similarityPoint h ⁻¹' NaturalProfile.domain Λ ∈ 𝓝 p := |
| 91 | (similarityPoint_contDiffAt hh hh1 hp.1).continuousAt.preimage_mem_nhds |
| 92 | ((NaturalProfile.domain_isOpen Λ).mem_nhds hp.2) |
| 93 | exact inter_mem ht hs |
| 94 | |
| 95 | theorem coreDomain_isOpen {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (Λ : ℝ) : |
| 96 | IsOpen (coreDomain h Λ) := |
| 97 | (profileDomain_isOpen hh hh1 Λ).preimage (contDiff_profilePoint (n := ∞)).continuous |
| 98 | |
| 99 | theorem physicalQ_at_zero_z {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 100 | {t : ℝ} (ht : t < 1) (s : ℝ) : physicalQ h (t, (s, 0)) = 1 - t := by |
| 101 | apply (SimilarityCoordinates.eq_coordinateQ (by linarith) (by linarith) |
| 102 | (p := (1 - t, 0)) (sub_pos.mpr ht) (sub_pos.mpr ht) ?_).symm |
| 103 | simp [SimilarityCoordinates.forwardScalar] |
| 104 | |
| 105 | theorem physicalEta_at_zero_z (h t s : ℝ) : physicalEta h (t, (s, 0)) = 0 := by |
| 106 | simp [physicalEta, SimilarityCoordinates.coordinateEta] |
| 107 | |
| 108 | theorem profile_axis_mem (h Λ : ℝ) |
| 109 | {t : ℝ} (ht : t < 1) : (t, ((0 : ℝ), 0)) ∈ profileDomain h Λ := by |
| 110 | refine ⟨ht, ?_⟩ |
| 111 | have hs : similarityPoint h (t, ((0 : ℝ), 0)) = (0, 0) := by |
| 112 | simp [similarityPoint, physicalEta, SimilarityCoordinates.coordinateEta] |
| 113 | rw [hs] |
| 114 | norm_num [NaturalProfile.domain, NaturalProfile.rescalePoint, |
| 115 | AxisEvaluation.strip, NaturalAxisCoefficients.window] |
| 116 | |
| 117 | theorem core_axis_mem (h Λ : ℝ) |
| 118 | {t : ℝ} (ht : t < 1) : (t, (0 : Space)) ∈ coreDomain h Λ := by |
| 119 | simpa only [coreDomain, Set.mem_ofPred_eq, profilePoint, radialEnergy, PiLp.zero_apply, |
| 120 | zero_pow (by decide : 2 ≠ 0), zero_add, zero_div] using profile_axis_mem h Λ ht |
| 121 | |
| 122 | theorem radial_segment_mem_domain {Λ : ℝ} {p : ℝ × ℝ} |
| 123 | (hp : p ∈ NaturalProfile.domain Λ) {r : ℝ} (hr : r ∈ Icc (0 : ℝ) 1) : |
| 124 | (p.1 * r, p.2) ∈ NaturalProfile.domain Λ := by |
| 125 | change (Λ * p.1 ∈ Ioo (-20 : ℝ) 20) ∧ |
| 126 | p.2 ∈ Ioo NaturalAxisCoefficients.window.left NaturalAxisCoefficients.window.right at hp |
| 127 | change (Λ * (p.1 * r) ∈ Ioo (-20 : ℝ) 20) ∧ |
| 128 | p.2 ∈ Ioo NaturalAxisCoefficients.window.left NaturalAxisCoefficients.window.right |
| 129 | refine ⟨?_, hp.2⟩ |
| 130 | have hrad : |Λ * p.1| < 20 := abs_lt.mpr hp.1 |
| 131 | have hbound : |Λ * (p.1 * r)| ≤ |Λ * p.1| := by |
| 132 | rw [← mul_assoc, abs_mul, abs_of_nonneg hr.1] |
| 133 | exact mul_le_of_le_one_right (abs_nonneg _) hr.2 |
| 134 | exact abs_lt.mp (hbound.trans_lt hrad) |
| 135 | |
| 136 | /-- Local joint smoothness implies local joint smoothness of all actual |
| 137 | parameter derivatives, even when the integration variable lies at an endpoint. -/ |
| 138 | theorem parameterJet_contDiffAt {F : (ℝ × ℝ) × ℝ → ℝ} {z : (ℝ × ℝ) × ℝ} |
| 139 | (hF : ContDiffAt ℝ ∞ F z) (k : ℕ) : |
| 140 | ContDiffAt ℝ ∞ |
| 141 | (fun w : (ℝ × ℝ) × ℝ => iteratedFDeriv ℝ k (fun p => F (p, w.2)) w.1) z := by |
| 142 | induction k with |
| 143 | | zero => |
| 144 | exact hF.continuousLinearMap_comp |
| 145 | ((continuousMultilinearCurryFin0 ℝ (ℝ × ℝ) ℝ).symm : |
| 146 | ℝ →L[ℝ] (ℝ × ℝ)[×0]→L[ℝ] ℝ) |
| 147 | | succ k ih => |
| 148 | have hG : ContDiffAt ℝ ∞ |
| 149 | (fun w : ((ℝ × ℝ) × ℝ) × (ℝ × ℝ) => |
| 150 | iteratedFDeriv ℝ k (fun p => F (p, w.1.2)) w.2) (z, z.1) := |
| 151 | ih.comp (z, z.1) (contDiffAt_snd.prodMk contDiffAt_fst.snd) |
| 152 | have hD : ContDiffAt ℝ ∞ |
| 153 | (fun w : (ℝ × ℝ) × ℝ => fderiv ℝ |
| 154 | (fun p : ℝ × ℝ => iteratedFDeriv ℝ k (fun q => F (q, w.2)) p) w.1) z := |
| 155 | hG.fderiv contDiffAt_fst infty_add_one_le |
| 156 | exact hD.continuousLinearMap_comp |
| 157 | ((continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (k + 1) => ℝ × ℝ) ℝ).symm : |
| 158 | ((ℝ × ℝ) →L[ℝ] (ℝ × ℝ)[×k]→L[ℝ] ℝ) →L[ℝ] (ℝ × ℝ)[×(k + 1)]→L[ℝ] ℝ) |
| 159 | |
| 160 | theorem radialPrimitive_unit_interval (f : ℝ × ℝ → ℝ) (p : ℝ × ℝ) : |
| 161 | radialPrimitive f p = p.1 * ∫ r in (0 : ℝ)..1, f (p.1 * r, p.2) := by |
| 162 | simpa only [radialPrimitive, smul_eq_mul, mul_zero, mul_one] using |
| 163 | (intervalIntegral.smul_integral_comp_mul_left (fun v => f (v, p.2)) p.1 |
| 164 | (a := 0) (b := 1)).symm |
| 165 | |
| 166 | theorem radialPrimitive_contDiffOn {Λ : ℝ} {f : ℝ × ℝ → ℝ} |
| 167 | (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) : |
| 168 | ContDiffOn ℝ ∞ (radialPrimitive f) (NaturalProfile.domain Λ) := by |
| 169 | let F : (ℝ × ℝ) × ℝ → ℝ := fun z => f (z.1.1 * z.2, z.1.2) |
| 170 | have hF : ∀ z ∈ NaturalProfile.domain Λ ×ˢ Icc (0 : ℝ) 1, |
| 171 | ContDiffAt ℝ ∞ F z := by |
| 172 | intro z hz |
| 173 | exact (hf.contDiffAt ((NaturalProfile.domain_isOpen Λ).mem_nhds |
| 174 | (radial_segment_mem_domain hz.1 hz.2))).comp z |
| 175 | ((contDiffAt_fst.fst.mul contDiffAt_snd).prodMk contDiffAt_fst.snd) |
| 176 | have hi : ContDiffOn ℝ ∞ (fun p => ∫ r in (0 : ℝ)..1, F (p, r)) |
| 177 | (NaturalProfile.domain Λ) := by |
| 178 | apply SmoothParameterIntegral.contDiffOn_intervalIntegral_of_continuous_jet |
| 179 | (NaturalProfile.domain_isOpen Λ) zero_le_one |
| 180 | · intro r hr p hp |
| 181 | exact ((hF (p, r) ⟨hp, hr⟩).comp p |
| 182 | (contDiffAt_id.prodMk contDiffAt_const)).contDiffWithinAt |
| 183 | · intro k z hz |
| 184 | exact (parameterJet_contDiffAt (hF z hz) k).continuousAt.continuousWithinAt |
| 185 | have hmul := contDiffOn_fst.mul hi |
| 186 | exact hmul.congr (fun p _ => radialPrimitive_unit_interval f p) |
| 187 | |
| 188 | theorem radial_interval_mem_domain {Λ : ℝ} {p : ℝ × ℝ} |
| 189 | (hp : p ∈ NaturalProfile.domain Λ) {r : ℝ} (hr : r ∈ uIcc (0 : ℝ) p.1) : |
| 190 | (r, p.2) ∈ NaturalProfile.domain Λ := by |
| 191 | change (Λ * p.1 ∈ Ioo (-20 : ℝ) 20) ∧ |
| 192 | p.2 ∈ Ioo NaturalAxisCoefficients.window.left NaturalAxisCoefficients.window.right at hp |
| 193 | change (Λ * r ∈ Ioo (-20 : ℝ) 20) ∧ |
| 194 | p.2 ∈ Ioo NaturalAxisCoefficients.window.left NaturalAxisCoefficients.window.right |
| 195 | refine ⟨?_, hp.2⟩ |
| 196 | have hr' : |r| ≤ |p.1| := by simpa only [sub_zero] using abs_sub_left_of_mem_uIcc hr |
| 197 | have hbound : |Λ * r| ≤ |Λ * p.1| := by |
| 198 | simpa only [abs_mul] using mul_le_mul_of_nonneg_left hr' (abs_nonneg Λ) |
| 199 | exact abs_lt.mp (hbound.trans_lt (abs_lt.mpr hp.1)) |
| 200 | |
| 201 | /-- The radial primitive has the claimed ordinary derivative by the |
| 202 | fundamental theorem of calculus on its actual profile domain. -/ |
| 203 | theorem radialPrimitive_hasDerivAt {Λ : ℝ} {f : ℝ × ℝ → ℝ} |
| 204 | (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 205 | {p : ℝ × ℝ} (hp : p ∈ NaturalProfile.domain Λ) : |
| 206 | HasDerivAt (fun r => radialPrimitive f (r, p.2)) (f p) p.1 := by |
| 207 | let I : Set ℝ := {r | (r, p.2) ∈ NaturalProfile.domain Λ} |
| 208 | have hI : IsOpen I := (NaturalProfile.domain_isOpen Λ).preimage |
| 209 | (continuous_id.prodMk continuous_const) |
| 210 | have hcont : ∀ r ∈ I, ContinuousAt (fun s => f (s, p.2)) r := by |
| 211 | intro r hr |
| 212 | exact ((hf.contDiffAt ((NaturalProfile.domain_isOpen Λ).mem_nhds hr)).comp r |
| 213 | (contDiffAt_id.prodMk contDiffAt_const)).continuousAt |
| 214 | have hsegment : ContinuousOn (fun r => f (r, p.2)) (uIcc 0 p.1) := by |
| 215 | intro r hr |
| 216 | exact (hcont r (radial_interval_mem_domain hp hr)).continuousWithinAt |
| 217 | exact intervalIntegral.integral_hasDerivAt_right hsegment.intervalIntegrable |
| 218 | (ContinuousAt.stronglyMeasurableAtFilter hI hcont p.1 hp) (hcont p.1 hp) |
| 219 | |
| 220 | theorem partialS_eq_deriv_slice {F : Profile} {p : ProfilePoint} |
| 221 | (hF : DifferentiableAt ℝ F p) : |
| 222 | partialS F p = deriv (fun s => F (p.1, (s, p.2.2))) p.2.1 := by |
| 223 | symm |
| 224 | exact (hF.hasFDerivAt.comp_hasDerivAt p.2.1 |
| 225 | ((hasDerivAt_const p.2.1 p.1).prodMk |
| 226 | ((hasDerivAt_id p.2.1).prodMk (hasDerivAt_const p.2.1 p.2.2)))).deriv |
| 227 | |
| 228 | theorem meridionalPotential_contDiffAt {h Λ : ℝ} {V : ℝ × ℝ → ℝ} |
| 229 | (hh : 0 < h) (hh1 : h < 1 / 2) (hV : ContDiffOn ℝ ∞ V (NaturalProfile.domain Λ)) |
| 230 | {p : ProfilePoint} (hp : p ∈ profileDomain h Λ) : |
| 231 | ContDiffAt ℝ ∞ (meridionalPotential h V) p := |
| 232 | ((physicalQ_contDiffAt hh hh1 hp.1).rpow_const_of_ne |
| 233 | (physicalQ_pos hh hh1 hp.1).ne').mul |
| 234 | ((hV.contDiffAt ((NaturalProfile.domain_isOpen Λ).mem_nhds hp.2)).comp p |
| 235 | (similarityPoint_contDiffAt hh hh1 hp.1)) |
| 236 | |
| 237 | theorem swirlPotential_contDiffAt {h Λ : ℝ} {f : ℝ × ℝ → ℝ} |
| 238 | (hh : 0 < h) (hh1 : h < 1 / 2) (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 239 | {p : ProfilePoint} (hp : p ∈ profileDomain h Λ) : |
| 240 | ContDiffAt ℝ ∞ (swirlPotential h f) p := |
| 241 | ((physicalQ_contDiffAt hh hh1 hp.1).rpow_const_of_ne |
| 242 | (physicalQ_pos hh hh1 hp.1).ne').neg.mul |
| 243 | (((radialPrimitive_contDiffOn hf).contDiffAt |
| 244 | ((NaturalProfile.domain_isOpen Λ).mem_nhds hp.2)).comp p |
| 245 | (similarityPoint_contDiffAt hh hh1 hp.1)) |
| 246 | |
| 247 | theorem meridionalPotential_partialS {h Λ : ℝ} {V : ℝ × ℝ → ℝ} |
| 248 | (hh : 0 < h) (hh1 : h < 1 / 2) (hV : ContDiffOn ℝ ∞ V (NaturalProfile.domain Λ)) |
| 249 | {p : ProfilePoint} (hp : p ∈ profileDomain h Λ) : |
| 250 | partialS (meridionalPotential h V) p = |
| 251 | physicalQ h p ^ (-NaturalAxisData.A h) / physicalQ h p * |
| 252 | NaturalAxisBridge.partialY V (similarityPoint h p) := by |
| 253 | have hVs : DifferentiableAt ℝ |
| 254 | (fun X => V (X, physicalEta h p)) (p.2.1 / physicalQ h p) := |
| 255 | ((hV.contDiffAt ((NaturalProfile.domain_isOpen Λ).mem_nhds hp.2)).comp |
| 256 | (p.2.1 / physicalQ h p) (contDiffAt_id.prodMk contDiffAt_const)).differentiableAt (by simp) |
| 257 | rw [partialS_eq_deriv_slice |
| 258 | ((meridionalPotential_contDiffAt hh hh1 hV hp).differentiableAt (by simp))] |
| 259 | have hd := (hVs.hasDerivAt.comp p.2.1 |
| 260 | ((hasDerivAt_id p.2.1).div_const (physicalQ h p))).const_mul |
| 261 | (physicalQ h p ^ (-NaturalAxisData.A h)) |
| 262 | convert! hd.deriv using 1 |
| 263 | dsimp only [meridionalPotential, similarityPoint, |
| 264 | physicalQ, physicalEta, NaturalAxisBridge.partialY] |
| 265 | ring |
| 266 | |
| 267 | theorem swirlPotential_partialS {h Λ : ℝ} {f : ℝ × ℝ → ℝ} |
| 268 | (hh : 0 < h) (hh1 : h < 1 / 2) (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 269 | {p : ProfilePoint} (hp : p ∈ profileDomain h Λ) : |
| 270 | partialS (swirlPotential h f) p = |
| 271 | -(physicalQ h p ^ (-h) / physicalQ h p) * f (similarityPoint h p) := by |
| 272 | rw [partialS_eq_deriv_slice |
| 273 | ((swirlPotential_contDiffAt hh hh1 hf hp).differentiableAt (by simp))] |
| 274 | have hd := ((radialPrimitive_hasDerivAt hf hp.2).comp p.2.1 |
| 275 | ((hasDerivAt_id p.2.1).div_const (physicalQ h p))).const_mul |
| 276 | (-(physicalQ h p ^ (-h))) |
| 277 | convert! hd.deriv using 1 |
| 278 | dsimp only [swirlPotential, similarityPoint, physicalQ, physicalEta] |
| 279 | ring |
| 280 | |
| 281 | /-- The potential is genuinely jointly smooth in Cartesian spacetime, |
| 282 | including the axis, throughout the explicitly stated core domain. -/ |
| 283 | theorem corePotential_contDiffAt {h Λ : ℝ} {f V : ℝ × ℝ → ℝ} |
| 284 | (hh : 0 < h) (hh1 : h < 1 / 2) |
| 285 | (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 286 | (hV : ContDiffOn ℝ ∞ V (NaturalProfile.domain Λ)) |
| 287 | {z : SpaceTime} (hz : z ∈ coreDomain h Λ) : |
| 288 | ContDiffAt ℝ ∞ (corePotential h f V) z := by |
| 289 | have hmap : ContDiffAt ℝ ∞ (fun w : SpaceTime => profilePoint w.1 w.2) z := |
| 290 | (contDiff_profilePoint (n := ∞)).contDiffAt |
| 291 | have hH := (meridionalPotential_contDiffAt hh hh1 hV hz).comp z hmap |
| 292 | have hK := (swirlPotential_contDiffAt hh hh1 hf hz).comp z hmap |
| 293 | have h0 : ContDiffAt ℝ ∞ (fun w : SpaceTime => w.2 0) z := |
| 294 | (projection 0).contDiff.contDiffAt.comp z contDiffAt_snd |
| 295 | have h1 : ContDiffAt ℝ ∞ (fun w : SpaceTime => w.2 1) z := |
| 296 | (projection 1).contDiff.contDiffAt.comp z contDiffAt_snd |
| 297 | exact (((contDiffAt_const.mul (h1.mul hH)).smul contDiffAt_const).add |
| 298 | ((contDiffAt_const.mul (h0.mul hH)).smul contDiffAt_const)).add |
| 299 | (hK.smul contDiffAt_const) |
| 300 | |
| 301 | theorem coreVelocity_contDiffOn {h Λ : ℝ} {f V : ℝ × ℝ → ℝ} |
| 302 | (hh : 0 < h) (hh1 : h < 1 / 2) |
| 303 | (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 304 | (hV : ContDiffOn ℝ ∞ V (NaturalProfile.domain Λ)) : |
| 305 | ContDiffOn ℝ ∞ (coreVelocity h f V) (coreDomain h Λ) := by |
| 306 | intro z hz |
| 307 | exact (SpatialCurl.contDiffAt_spatialCurl |
| 308 | (corePotential_contDiffAt hh hh1 hf hV hz) infty_add_one_le).contDiffWithinAt |
| 309 | |
| 310 | /-- Divergence vanishes as an identity of the actual physical Fréchet |
| 311 | derivatives, by Schwarz's theorem for the Cartesian potential. -/ |
| 312 | theorem coreVelocity_divergence {h Λ : ℝ} {f V : ℝ × ℝ → ℝ} |
| 313 | (hh : 0 < h) (hh1 : h < 1 / 2) |
| 314 | (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 315 | (hV : ContDiffOn ℝ ∞ V (NaturalProfile.domain Λ)) |
| 316 | {t : ℝ} {x : Space} (hx : (t, x) ∈ coreDomain h Λ) : |
| 317 | spatialDivergence (coreVelocity h f V) t x = 0 := by |
| 318 | apply SpatialCurl.spatialDivergence_spatialCurl |
| 319 | exact ((corePotential_contDiffAt hh hh1 hf hV hx).comp x |
| 320 | (contDiffAt_const.prodMk contDiffAt_id)).of_le (nat_le_infty 2) |
| 321 | |
| 322 | /-- The averaged meridional potential recovers the actual axial profile. -/ |
| 323 | theorem coreVelocity_axial {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} |
| 324 | {f U V Pr : ℝ × ℝ → ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 325 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V Pr) |
| 326 | {t : ℝ} {x : Space} (hx : (t, x) ∈ coreDomain h Λ) : |
| 327 | coreVelocity h f V (t, x) 2 = |
| 328 | physicalQ h (profilePoint t x) ^ (-NaturalAxisData.A h) * |
| 329 | U (similarityPoint h (profilePoint t x)) := by |
| 330 | have hH := (meridionalPotential_contDiffAt hh hh1 hs.average_smooth hx).differentiableAt (by simp) |
| 331 | have hK := (swirlPotential_contDiffAt hh hh1 hs.f_smooth hx).differentiableAt (by simp) |
| 332 | change velocity (meridionalPotential h V) (swirlPotential h f) (t, x) 2 = _ |
| 333 | rw [velocity_two _ _ t x hH hK, |
| 334 | meridionalPotential_partialS hh hh1 hs.average_smooth hx, |
| 335 | ← hs.average_equation _ hx.2] |
| 336 | dsimp only [meridionalPotential, similarityPoint, profilePoint] |
| 337 | ring |
| 338 | |
| 339 | theorem coreVelocity_angular {h Λ : ℝ} {f V : ℝ × ℝ → ℝ} |
| 340 | (hh : 0 < h) (hh1 : h < 1 / 2) |
| 341 | (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 342 | (hV : ContDiffOn ℝ ∞ V (NaturalProfile.domain Λ)) |
| 343 | {t : ℝ} {x : Space} (hx : (t, x) ∈ coreDomain h Λ) : |
| 344 | x 0 * coreVelocity h f V (t, x) 1 - x 1 * coreVelocity h f V (t, x) 0 = |
| 345 | 2 * radialEnergy x * (physicalQ h (profilePoint t x) ^ (-h) / |
| 346 | physicalQ h (profilePoint t x)) * f (similarityPoint h (profilePoint t x)) := by |
| 347 | have hH := (meridionalPotential_contDiffAt hh hh1 hV hx).differentiableAt (by simp) |
| 348 | have hK := (swirlPotential_contDiffAt hh hh1 hf hx).differentiableAt (by simp) |
| 349 | change x 0 * velocity (meridionalPotential h V) (swirlPotential h f) (t, x) 1 - |
| 350 | x 1 * velocity (meridionalPotential h V) (swirlPotential h f) (t, x) 0 = _ |
| 351 | rw [velocity_one _ _ t x hH hK, velocity_zero _ _ t x hH hK, |
| 352 | swirlPotential_partialS hh hh1 hf hx] |
| 353 | dsimp only [radialEnergy] |
| 354 | ring |
| 355 | |
| 356 | theorem scaled_sqrt_identity {q s : ℝ} (hq : 0 < q) (hs : 0 ≤ s) (h : ℝ) : |
| 357 | Real.sqrt (2 * s) * (q ^ (-h) / q) = |
| 358 | q ^ (-NaturalAxisData.A h) * Real.sqrt (2 * (s / q)) := by |
| 359 | have hc : q ^ (-h) / q = q ^ (-NaturalAxisData.A h) / Real.sqrt q := by |
| 360 | rw [Real.sqrt_eq_rpow, ← Real.rpow_sub hq, ← Real.rpow_sub_one hq.ne'] |
| 361 | congr 1 |
| 362 | dsimp only [NaturalAxisData.A] |
| 363 | ring |
| 364 | rw [show 2 * (s / q) = (2 * s) / q by ring, |
| 365 | Real.sqrt_div (mul_nonneg (by norm_num) hs), hc] |
| 366 | ring |
| 367 | |
| 368 | /-- Away from the axis the cylindrical azimuthal velocity is precisely |
| 369 | `q^(-A) sqrt(2X) f(X,eta)`. The Cartesian field remains smooth on the axis. -/ |
| 370 | theorem coreVelocity_swirl {h Λ : ℝ} {f V : ℝ × ℝ → ℝ} |
| 371 | (hh : 0 < h) (hh1 : h < 1 / 2) |
| 372 | (hf : ContDiffOn ℝ ∞ f (NaturalProfile.domain Λ)) |
| 373 | (hV : ContDiffOn ℝ ∞ V (NaturalProfile.domain Λ)) |
| 374 | {t : ℝ} {x : Space} (hx : (t, x) ∈ coreDomain h Λ) (hs : 0 < radialEnergy x) : |
| 375 | (x 0 * coreVelocity h f V (t, x) 1 - x 1 * coreVelocity h f V (t, x) 0) / |
| 376 | Real.sqrt (2 * radialEnergy x) = |
| 377 | physicalQ h (profilePoint t x) ^ (-NaturalAxisData.A h) * |
| 378 | Real.sqrt (2 * (similarityPoint h (profilePoint t x)).1) * |
| 379 | f (similarityPoint h (profilePoint t x)) := by |
| 380 | rw [coreVelocity_angular hh hh1 hf hV hx] |
| 381 | have hr : Real.sqrt (2 * radialEnergy x) ≠ 0 := |
| 382 | (Real.sqrt_pos.mpr (mul_pos (by norm_num) hs)).ne' |
| 383 | have hr2 : Real.sqrt (2 * radialEnergy x) ^ 2 = 2 * radialEnergy x := |
| 384 | Real.sq_sqrt (mul_nonneg (by norm_num) hs.le) |
| 385 | have hquot : (2 * radialEnergy x) / Real.sqrt (2 * radialEnergy x) = |
| 386 | Real.sqrt (2 * radialEnergy x) := |
| 387 | (div_eq_iff hr).2 (by simpa only [pow_two] using hr2.symm) |
| 388 | calc |
| 389 | _ = Real.sqrt (2 * radialEnergy x) * |
| 390 | (physicalQ h (profilePoint t x) ^ (-h) / physicalQ h (profilePoint t x)) * |
| 391 | f (similarityPoint h (profilePoint t x)) := by |
| 392 | calc |
| 393 | _ = ((2 * radialEnergy x) / Real.sqrt (2 * radialEnergy x)) * |
| 394 | (physicalQ h (profilePoint t x) ^ (-h) / physicalQ h (profilePoint t x)) * |
| 395 | f (similarityPoint h (profilePoint t x)) := by ring |
| 396 | _ = _ := by rw [hquot] |
| 397 | _ = _ := by |
| 398 | rw [scaled_sqrt_identity (physicalQ_pos hh hh1 hx.1) hs.le] |
| 399 | rfl |
| 400 | |
| 401 | /-- The axial velocity is exactly the prescribed nonzero axis datum, |
| 402 | multiplied by the singular similarity scale. -/ |
| 403 | theorem coreVelocity_at_origin {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} |
| 404 | {f U V Pr : ℝ × ℝ → ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 405 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V Pr) |
| 406 | {t : ℝ} (ht : t < 1) : |
| 407 | coreVelocity h f V (t, 0) = ((1 - t) ^ (-NaturalAxisData.A h) * j) • coordinateVector 2 := by |
| 408 | have hp : profilePoint t (0 : Space) ∈ profileDomain h Λ := core_axis_mem h Λ ht |
| 409 | have hH := (meridionalPotential_contDiffAt hh hh1 hs.average_smooth hp).differentiableAt (by simp) |
| 410 | have hK := (swirlPotential_contDiffAt hh hh1 hs.f_smooth hp).differentiableAt (by simp) |
| 411 | change velocity (meridionalPotential h V) (swirlPotential h f) (t, 0) = _ |
| 412 | rw [velocity_on_axis _ _ t 0 hH hK (by simp) (by simp)] |
| 413 | have haxis : V (0, 0) = j := by |
| 414 | simpa only [NaturalAxisData.U, mul_zero, zero_add] using |
| 415 | hs.average_axis 0 (by norm_num [NaturalAxisCoefficients.window]) |
| 416 | change (physicalQ h (t, (0, 0)) ^ (-NaturalAxisData.A h) * |
| 417 | V (0 / physicalQ h (t, (0, 0)), physicalEta h (t, (0, 0)))) • coordinateVector 2 = _ |
| 418 | rw [physicalQ_at_zero_z hh hh1 ht, physicalEta_at_zero_z, zero_div, haxis] |
| 419 | |
| 420 | theorem coreVelocity_norm_at_origin {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} |
| 421 | {f U V Pr : ℝ × ℝ → ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hj : 0 < j) |
| 422 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V Pr) |
| 423 | {t : ℝ} (ht : t < 1) : |
| 424 | ‖coreVelocity h f V (t, 0)‖ = (1 - t) ^ (-NaturalAxisData.A h) * j := by |
| 425 | rw [coreVelocity_at_origin hh hh1 hs ht, norm_smul] |
| 426 | simp only [coordinateVector, PiLp.norm_single, norm_one, mul_one, |
| 427 | Real.norm_eq_abs] |
| 428 | exact abs_of_pos (mul_pos (Real.rpow_pos_of_pos (sub_pos.mpr ht) _) hj) |
| 429 | |
| 430 | theorem coreVelocity_axis_tendsto_atTop {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} |
| 431 | {f U V Pr : ℝ × ℝ → ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hj : 0 < j) |
| 432 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V Pr) : |
| 433 | Tendsto (fun t : ℝ => ‖coreVelocity h f V (t, 0)‖) (𝓝[<] 1) atTop := by |
| 434 | have hA : 0 < NaturalAxisData.A h := by dsimp [NaturalAxisData.A]; linarith |
| 435 | have hlim : Tendsto (fun t : ℝ => (1 - t) ^ (-NaturalAxisData.A h) * j) |
| 436 | (𝓝[<] 1) atTop := |
| 437 | (BlowupImplication.negative_power_tendsto_atTop hA |
| 438 | (BlowupImplication.remaining_time_tendsto 1)).atTop_mul_pos hj tendsto_const_nhds |
| 439 | apply hlim.congr' |
| 440 | filter_upwards [self_mem_nhdsWithin] with t ht |
| 441 | exact (coreVelocity_norm_at_origin hh hh1 hj hs ht).symm |
| 442 | |
| 443 | theorem speedUnbounded_of_axis_tendsto {u : VelocityField} |
| 444 | (hu : Tendsto (fun t : ℝ => ‖u (t, 0)‖) (𝓝[<] 1) atTop) : |
| 445 | SpeedUnboundedAtOne u := by |
| 446 | intro M hM δ hδ |
| 447 | have hlow : Ioi (max 0 (1 - δ)) ∈ 𝓝[<] (1 : ℝ) := |
| 448 | mem_nhdsWithin_of_mem_nhds (Ioi_mem_nhds (max_lt (by norm_num) (by linarith))) |
| 449 | have hlarge : ∀ᶠ t in 𝓝[<] (1 : ℝ), M < ‖u (t, 0)‖ := |
| 450 | hu.eventually (eventually_gt_atTop M) |
| 451 | have hbefore : ∀ᶠ t in 𝓝[<] (1 : ℝ), t < 1 := self_mem_nhdsWithin |
| 452 | obtain ⟨t, ht, hMt, hlo⟩ := (hbefore.and (hlarge.and hlow)).exists |
| 453 | exact ⟨t, 0, ⟨(le_max_left _ _).trans_lt hlo, ht⟩, |
| 454 | (le_max_right _ _).trans_lt hlo, hMt⟩ |
| 455 | |
| 456 | theorem coreVelocity_speedUnbounded {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} |
| 457 | {f U V Pr : ℝ × ℝ → ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hj : 0 < j) |
| 458 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V Pr) : |
| 459 | SpeedUnboundedAtOne (coreVelocity h f V) := |
| 460 | speedUnbounded_of_axis_tendsto (coreVelocity_axis_tendsto_atTop hh hh1 hj hs) |
| 461 | |
| 462 | /-- Any field which agrees with the core along the axis sufficiently near |
| 463 | time one has the exact target's quantified unbounded-speed property. -/ |
| 464 | theorem extension_speedUnbounded {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} |
| 465 | {f U V Pr : ℝ × ℝ → ℝ} {u : VelocityField} |
| 466 | (hh : 0 < h) (hh1 : h < 1 / 2) (hj : 0 < j) |
| 467 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V Pr) |
| 468 | (hagrees : ∀ᶠ t in 𝓝[<] (1 : ℝ), u (t, 0) = coreVelocity h f V (t, 0)) : |
| 469 | SpeedUnboundedAtOne u := by |
| 470 | apply speedUnbounded_of_axis_tendsto |
| 471 | apply (coreVelocity_axis_tendsto_atTop hh hh1 hj hs).congr' |
| 472 | exact hagrees.mono (fun t ht => congrArg norm ht.symm) |
| 473 | |
| 474 | theorem extension_on_core_speedUnbounded {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} |
| 475 | {f U V Pr : ℝ × ℝ → ℝ} {u : VelocityField} |
| 476 | (hh : 0 < h) (hh1 : h < 1 / 2) (hj : 0 < j) |
| 477 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V Pr) |
| 478 | (hagrees : EqOn u (coreVelocity h f V) (coreDomain h Λ)) : |
| 479 | SpeedUnboundedAtOne u := by |
| 480 | apply extension_speedUnbounded hh hh1 hj hs |
| 481 | filter_upwards [self_mem_nhdsWithin] with t ht |
| 482 | exact hagrees (core_axis_mem h Λ ht) |
| 483 | |
| 484 | /-- The constructed natural profiles produce an actual smooth, |
| 485 | divergence-free physical core with unbounded speed. This is a local core |
| 486 | existence statement, not the existence of the final forced periodic flow. -/ |
| 487 | theorem exists_natural_core {h j : ℝ} (hsmall : NaturalAxisData.SmallParameters h j) |
| 488 | {g a : ℝ → ℝ} {cap B : ℝ} |
| 489 | (hp : PressureDatum.Admissible g a cap) (hB : 2 ≤ B) |
| 490 | (hg : ∀ y ≤ 0, g y = B ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 491 | (ha : ∀ y ≤ 0, a y = 1) : |
| 492 | ∃ Λ : ℝ, 0 < Λ ∧ ∃ f V : ℝ × ℝ → ℝ, |
| 493 | IsOpen (coreDomain h Λ) ∧ |
| 494 | (∀ t < 1, (t, (0 : Space)) ∈ coreDomain h Λ) ∧ |
| 495 | ContDiffOn ℝ ∞ (coreVelocity h f V) (coreDomain h Λ) ∧ |
| 496 | (∀ t x, (t, x) ∈ coreDomain h Λ → spatialDivergence (coreVelocity h f V) t x = 0) ∧ |
| 497 | (∀ t < 1, coreVelocity h f V (t, 0) = |
| 498 | ((1 - t) ^ (-NaturalAxisData.A h) * j) • coordinateVector 2) ∧ |
| 499 | SpeedUnboundedAtOne (coreVelocity h f V) := by |
| 500 | obtain ⟨_, _, Λ, _, _, _, hΛ, _, f, U, V, Pr, hs, _, _⟩ := |
| 501 | NaturalProfile.exists_natural_profiles (NaturalAxisRange.ofSmall hsmall) hp hB hg ha |
| 502 | have hh1 : h < 1 / 2 := by linarith [hsmall.h_le] |
| 503 | refine ⟨Λ, hΛ, f, V, coreDomain_isOpen hsmall.h_pos hh1 Λ, |
| 504 | (fun t ht => core_axis_mem h Λ ht), |
| 505 | coreVelocity_contDiffOn hsmall.h_pos hh1 hs.f_smooth hs.average_smooth, |
| 506 | (fun t x hx => coreVelocity_divergence hsmall.h_pos hh1 hs.f_smooth hs.average_smooth hx), |
| 507 | (fun t ht => coreVelocity_at_origin hsmall.h_pos hh1 hs ht), |
| 508 | coreVelocity_speedUnbounded hsmall.h_pos hh1 hsmall.j_pos hs⟩ |
| 509 | |
| 510 | end NavierStokes.NaturalCore |