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.PositiveAxisExistence |
| 2 | import NavierStokes.AxisSourceRegularity |
| 3 | import NavierStokes.BoundaryAxisJets |
| 4 | |
| 5 | /-! |
| 6 | # Local slow-order recursion from actual lower profiles |
| 7 | |
| 8 | The source algebra consists of genuine smooth, even radial functions with |
| 9 | holomorphic parameter dependence. No preconstructed all-order jet family |
| 10 | is assumed. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.SlowRecursion |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | abbrev Raw := ℝ × ℂ → ℂ |
| 21 | |
| 22 | /-- The induction class for actual scalar radial profiles. -/ |
| 23 | structure Regular (R : ℝ) (U : Set ℂ) (F : Raw) : Prop where |
| 24 | smooth : ContDiffOn ℝ ∞ F (Ioo (-R) R ×ˢ U) |
| 25 | holomorphic : ∀ r ∈ Ioo (-R) R, DifferentiableOn ℂ (fun z => F (r, z)) U |
| 26 | even : ∀ z ∈ U, ∀ r ∈ Ioo (-R) R, F (-r, z) = F (r, z) |
| 27 | real : ∀ r ∈ Ioo (-R) R, ∀ eta : ℝ, (eta : ℂ) ∈ U → (F (r, (eta : ℂ))).im = 0 |
| 28 | |
| 29 | theorem Regular.const (R : ℝ) (U : Set ℂ) (c : ℝ) : |
| 30 | Regular R U (fun _ => (c : ℂ)) := |
| 31 | ⟨contDiffOn_const, fun _ _ => differentiableOn_const _, fun _ _ _ _ => rfl, |
| 32 | fun _ _ _ _ => Complex.ofReal_im c⟩ |
| 33 | |
| 34 | theorem Regular.add {R : ℝ} {U : Set ℂ} {F G : Raw} |
| 35 | (hF : Regular R U F) (hG : Regular R U G) : Regular R U (F + G) := by |
| 36 | refine ⟨hF.smooth.add hG.smooth, fun r hr => (hF.holomorphic r hr).add (hG.holomorphic r hr), ?_, ?_⟩ |
| 37 | · intro z hz r hr |
| 38 | change F (-r, z) + G (-r, z) = F (r, z) + G (r, z) |
| 39 | rw [hF.even z hz r hr, hG.even z hz r hr] |
| 40 | · intro r hr eta heta |
| 41 | change (F (r, (eta : ℂ)) + G (r, (eta : ℂ))).im = 0 |
| 42 | simp only [Complex.add_im, hF.real r hr eta heta, hG.real r hr eta heta, add_zero] |
| 43 | |
| 44 | theorem Regular.mul {R : ℝ} {U : Set ℂ} {F G : Raw} |
| 45 | (hF : Regular R U F) (hG : Regular R U G) : Regular R U (F * G) := by |
| 46 | refine ⟨hF.smooth.mul hG.smooth, fun r hr => (hF.holomorphic r hr).mul (hG.holomorphic r hr), ?_, ?_⟩ |
| 47 | · intro z hz r hr |
| 48 | change F (-r, z) * G (-r, z) = F (r, z) * G (r, z) |
| 49 | rw [hF.even z hz r hr, hG.even z hz r hr] |
| 50 | · intro r hr eta heta |
| 51 | change (F (r, (eta : ℂ)) * G (r, (eta : ℂ))).im = 0 |
| 52 | simp only [Complex.mul_im, hF.real r hr eta heta, hG.real r hr eta heta, |
| 53 | mul_zero, zero_mul, add_zero] |
| 54 | |
| 55 | /-- The class is an actual real algebra of functions. -/ |
| 56 | noncomputable def regularAlgebra (R : ℝ) (U : Set ℂ) : Subalgebra ℝ Raw where |
| 57 | carrier := {F | Regular R U F} |
| 58 | zero_mem' := Regular.const R U 0 |
| 59 | one_mem' := Regular.const R U 1 |
| 60 | add_mem' := Regular.add |
| 61 | mul_mem' := Regular.mul |
| 62 | algebraMap_mem' := fun r => Regular.const R U r |
| 63 | |
| 64 | abbrev AxisFunction (R : ℝ) (U : Set ℂ) : Type := ↥(regularAlgebra R U) |
| 65 | |
| 66 | instance {R : ℝ} {U : Set ℂ} : CoeFun (AxisFunction R U) (fun _ => Raw) := ⟨fun F => F.1⟩ |
| 67 | |
| 68 | theorem AxisFunction.smooth {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) : |
| 69 | ContDiffOn ℝ ∞ F (Ioo (-R) R ×ˢ U) := F.2.smooth |
| 70 | |
| 71 | theorem AxisFunction.even {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) |
| 72 | {r : ℝ} (hr : r ∈ Ioo (-R) R) {z : ℂ} (hz : z ∈ U) : F (-r, z) = F (r, z) := |
| 73 | F.2.even z hz r hr |
| 74 | |
| 75 | theorem AxisFunction.real {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) |
| 76 | {r : ℝ} (hr : r ∈ Ioo (-R) R) {eta : ℝ} (heta : (eta : ℂ) ∈ U) : |
| 77 | (F (r, (eta : ℂ))).im = 0 := F.2.real r hr eta heta |
| 78 | |
| 79 | noncomputable def realConstant (R : ℝ) (U : Set ℂ) (c : ℝ) : AxisFunction R U := |
| 80 | algebraMap ℝ (AxisFunction R U) c |
| 81 | |
| 82 | @[simp] theorem realConstant_apply (R : ℝ) (U : Set ℂ) (c : ℝ) (p : ℝ × ℂ) : |
| 83 | realConstant R U c p = (c : ℂ) := rfl |
| 84 | |
| 85 | @[simp] theorem add_apply {R : ℝ} {U : Set ℂ} (F G : AxisFunction R U) (p : ℝ × ℂ) : |
| 86 | (F + G) p = F p + G p := rfl |
| 87 | @[simp] theorem mul_apply {R : ℝ} {U : Set ℂ} (F G : AxisFunction R U) (p : ℝ × ℂ) : |
| 88 | (F * G) p = F p * G p := rfl |
| 89 | @[simp] theorem sub_apply {R : ℝ} {U : Set ℂ} (F G : AxisFunction R U) (p : ℝ × ℂ) : |
| 90 | (F - G) p = F p - G p := rfl |
| 91 | @[simp] theorem neg_apply {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) (p : ℝ × ℂ) : |
| 92 | (-F) p = -F p := rfl |
| 93 | @[simp] theorem zero_apply {R : ℝ} {U : Set ℂ} (p : ℝ × ℂ) : |
| 94 | (0 : AxisFunction R U) p = 0 := rfl |
| 95 | @[simp] theorem one_apply {R : ℝ} {U : Set ℂ} (p : ℝ × ℂ) : |
| 96 | (1 : AxisFunction R U) p = 1 := rfl |
| 97 | |
| 98 | noncomputable def squaredRadius (R : ℝ) (U : Set ℂ) : AxisFunction R U := |
| 99 | ⟨fun p : ℝ × ℂ => ((p.1 ^ 2 : ℝ) : ℂ), { |
| 100 | smooth := Complex.ofRealCLM.contDiff.comp_contDiffOn (contDiffOn_fst.pow 2) |
| 101 | holomorphic := fun r _ => differentiableOn_const ((r ^ 2 : ℝ) : ℂ) |
| 102 | even := fun _ _ _ _ => by simp only [neg_sq] |
| 103 | real := fun _ _ _ _ => Complex.ofReal_im _ }⟩ |
| 104 | |
| 105 | noncomputable def parameter (R : ℝ) (U : Set ℂ) : AxisFunction R U := |
| 106 | ⟨Prod.snd, { |
| 107 | smooth := contDiffOn_snd |
| 108 | holomorphic := fun _ _ => differentiableOn_id |
| 109 | even := fun _ _ _ _ => rfl |
| 110 | real := fun _ _ _ _ => Complex.ofReal_im _ }⟩ |
| 111 | |
| 112 | theorem interval_mono {R S : ℝ} (hSR : S ≤ R) : Ioo (-S) S ⊆ Ioo (-R) R := by |
| 113 | intro r hr |
| 114 | exact ⟨lt_of_le_of_lt (neg_le_neg hSR) hr.1, lt_of_lt_of_le hr.2 hSR⟩ |
| 115 | |
| 116 | noncomputable def restrict {R S : ℝ} {U : Set ℂ} (hSR : S ≤ R) |
| 117 | (F : AxisFunction R U) : AxisFunction S U := |
| 118 | ⟨F, { |
| 119 | smooth := F.2.smooth.mono (Set.prod_mono (interval_mono hSR) Subset.rfl) |
| 120 | holomorphic := fun r hr => F.2.holomorphic r (interval_mono hSR hr) |
| 121 | even := fun z hz r hr => F.2.even z hz r (interval_mono hSR hr) |
| 122 | real := fun r hr eta heta => F.2.real r (interval_mono hSR hr) eta heta }⟩ |
| 123 | |
| 124 | @[simp] theorem restrict_apply {R S : ℝ} {U : Set ℂ} (hSR : S ≤ R) |
| 125 | (F : AxisFunction R U) (p : ℝ × ℂ) : restrict hSR F p = F p := rfl |
| 126 | |
| 127 | noncomputable def inverse {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) |
| 128 | (hF : ∀ p ∈ Ioo (-R) R ×ˢ U, F p ≠ 0) : AxisFunction R U := |
| 129 | ⟨fun p => (F p)⁻¹, { |
| 130 | smooth := F.2.smooth.inv hF |
| 131 | holomorphic := fun r hr => (F.2.holomorphic r hr).inv (fun z hz => hF (r, z) ⟨hr, hz⟩) |
| 132 | even := fun z hz r hr => congrArg Inv.inv (F.2.even z hz r hr) |
| 133 | real := fun r hr eta heta => by simp [Complex.inv_im, F.2.real r hr eta heta] }⟩ |
| 134 | |
| 135 | theorem im_iteratedDeriv_zero {S : Set ℝ} (hS : IsOpen S) {f : ℝ → ℂ} |
| 136 | (hf : ContDiffOn ℝ ∞ f S) (hreal : ∀ x ∈ S, (f x).im = 0) |
| 137 | {x : ℝ} (hx : x ∈ S) (n : ℕ) : (iteratedDeriv n f x).im = 0 := by |
| 138 | have hc := Complex.imCLM.iteratedFDerivWithin_comp_left (hf x hx) hS.uniqueDiffOn hx |
| 139 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl n) |
| 140 | have hv := congrArg (fun L : ℝ [×n]→L[ℝ] ℝ => L (fun _ => 1)) hc.symm |
| 141 | have hm : (iteratedDeriv n f x).im = iteratedDeriv n (fun t => (f t).im) x := by |
| 142 | simp only [iteratedFDerivWithin_of_isOpen n hS hx, |
| 143 | ContinuousLinearMap.compContinuousMultilinearMap_coe, Complex.imCLM_apply, Function.comp_def] at hv |
| 144 | exact hv |
| 145 | have he : (fun t => (f t).im) =ᶠ[𝓝 x] (fun _ => (0 : ℝ)) := by |
| 146 | filter_upwards [hS.mem_nhds hx] with t ht |
| 147 | exact hreal t ht |
| 148 | rw [hm, he.iteratedDeriv_eq n] |
| 149 | have hz (k : ℕ) : iteratedDeriv k (fun _ : ℝ => (0 : ℝ)) = fun _ => 0 := by |
| 150 | induction k with |
| 151 | | zero => rfl |
| 152 | | succ k ih => |
| 153 | rw [iteratedDeriv_succ, ih] |
| 154 | funext t |
| 155 | exact deriv_const t 0 |
| 156 | exact congrFun (hz n) x |
| 157 | |
| 158 | theorem scaled_mem_open {R r t : ℝ} (hr : r ∈ Ioo (-R) R) |
| 159 | (ht : t ∈ Icc (0 : ℝ) 1) : t * r ∈ Ioo (-R) R := by |
| 160 | apply abs_lt.mp |
| 161 | calc |
| 162 | |t * r| = t * |r| := by rw [abs_mul, abs_of_nonneg ht.1] |
| 163 | _ ≤ |r| := mul_le_of_le_one_left (abs_nonneg r) ht.2 |
| 164 | _ < R := abs_lt.mpr hr |
| 165 | |
| 166 | theorem radialJet_one_real {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) |
| 167 | {r : ℝ} (hr : r ∈ Ioo (-R) R) {eta : ℝ} (heta : (eta : ℂ) ∈ U) : |
| 168 | (BoundaryAxisJets.radialJet F 1 r (eta : ℂ)).im = 0 := by |
| 169 | let f : ℝ → ℂ := fun s => F (s, (eta : ℂ)) |
| 170 | have hf : ContDiffOn ℝ ∞ f (Ioo (-R) R) := |
| 171 | F.2.smooth.comp (contDiff_id.prodMk contDiff_const).contDiffOn (fun s hs => ⟨hs, heta⟩) |
| 172 | have hd := VolterraRegularity.real_iteratedDeriv_contDiffOn isOpen_Ioo hf 2 |
| 173 | have hi : IntervalIntegrable (fun t => iteratedDeriv 2 f (t * r)) |
| 174 | MeasureTheory.volume 0 1 := by |
| 175 | apply ContinuousOn.intervalIntegrable |
| 176 | rw [uIcc_of_le zero_le_one] |
| 177 | exact hd.continuousOn.comp (continuous_id.mul continuous_const).continuousOn |
| 178 | (fun t ht => scaled_mem_open hr ht) |
| 179 | change Complex.imCLM ((1 / 2 : ℝ) • ∫ t in (0 : ℝ)..1, iteratedDeriv 2 f (t * r)) = 0 |
| 180 | rw [map_smul, ← Complex.imCLM.intervalIntegral_comp_comm hi] |
| 181 | have hz : (∫ t in (0 : ℝ)..1, Complex.imCLM (iteratedDeriv 2 f (t * r))) = 0 := by |
| 182 | calc |
| 183 | _ = ∫ _t in (0 : ℝ)..1, (0 : ℝ) := by |
| 184 | apply intervalIntegral.integral_congr |
| 185 | intro t ht |
| 186 | have ht' : t ∈ Icc (0 : ℝ) 1 := by simpa only [uIcc_of_le zero_le_one] using ht |
| 187 | exact im_iteratedDeriv_zero isOpen_Ioo hf |
| 188 | (fun s hs => F.2.real s hs eta heta) (scaled_mem_open hr ht') 2 |
| 189 | _ = 0 := by simp |
| 190 | rw [hz, smul_zero] |
| 191 | |
| 192 | noncomputable def radialDerivative {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 193 | (F : AxisFunction R U) : AxisFunction R U := |
| 194 | ⟨fun p => BoundaryAxisJets.radialJet F 1 p.1 p.2, { |
| 195 | smooth := BoundaryAxisJets.radialJet_joint_contDiffOn_full hR hU F.2.smooth 1 |
| 196 | holomorphic := fun _ hr => BoundaryAxisJets.radialJet_holomorphic_full hR hU |
| 197 | F.2.smooth F.2.holomorphic 1 hr |
| 198 | even := fun z hz _ hr => BoundaryAxisJets.radialJet_even_full hR (F.2.even z hz) 1 hr |
| 199 | real := fun _ hr _ heta => radialJet_one_real F hr heta }⟩ |
| 200 | |
| 201 | theorem parameterDerivative_real {R : ℝ} {U : Set ℂ} (hU : IsOpen U) |
| 202 | (F : AxisFunction R U) {r : ℝ} (hr : r ∈ Ioo (-R) R) |
| 203 | {eta : ℝ} (heta : (eta : ℂ) ∈ U) : |
| 204 | (BoundaryAxisJets.complexPartial F (r, (eta : ℂ))).im = 0 := by |
| 205 | have hd := ((F.2.holomorphic r hr).differentiableAt (hU.mem_nhds heta)).hasDerivAt.comp_ofReal |
| 206 | have hi := (Complex.imCLM.hasFDerivAt.comp_hasDerivAt eta hd).deriv |
| 207 | have he : (fun t : ℝ => (F (r, (t : ℂ))).im) =ᶠ[𝓝 eta] fun _ => (0 : ℝ) := by |
| 208 | filter_upwards [Complex.continuous_ofReal.continuousAt.preimage_mem_nhds (hU.mem_nhds heta)] |
| 209 | with t ht |
| 210 | exact F.2.real r hr t ht |
| 211 | change deriv (fun t : ℝ => (F (r, (t : ℂ))).im) eta = _ at hi |
| 212 | rw [he.deriv_eq, deriv_const] at hi |
| 213 | exact hi.symm |
| 214 | |
| 215 | noncomputable def parameterDerivative {R : ℝ} {U : Set ℂ} (hU : IsOpen U) |
| 216 | (F : AxisFunction R U) : AxisFunction R U := |
| 217 | ⟨BoundaryAxisJets.complexPartial F, { |
| 218 | smooth := BoundaryAxisJets.complexPartial_contDiffOn isOpen_Ioo hU F.2.smooth F.2.holomorphic |
| 219 | holomorphic := fun r hr => (F.2.holomorphic r hr).deriv hU |
| 220 | even := by |
| 221 | intro z hz r hr |
| 222 | apply Filter.EventuallyEq.deriv_eq |
| 223 | filter_upwards [hU.mem_nhds hz] with w hw |
| 224 | exact F.2.even w hw r hr |
| 225 | real := fun _ hr _ heta => parameterDerivative_real hU F hr heta }⟩ |
| 226 | |
| 227 | theorem hasDerivAt_conjugate {f : ℂ → ℂ} {d z : ℂ} |
| 228 | (hf : HasDerivAt f d (starRingEnd ℂ z)) : |
| 229 | HasDerivAt (fun w => starRingEnd ℂ (f (starRingEnd ℂ w))) (starRingEnd ℂ d) z := by |
| 230 | let J := Complex.conjCLE.toContinuousLinearMap |
| 231 | have hh := J.hasFDerivAt.comp z ((hf.hasFDerivAt.restrictScalars ℝ).comp z J.hasFDerivAt) |
| 232 | change HasFDerivAt _ ((1 : ℂ →L[ℂ] ℂ).smulRight (starRingEnd ℂ d)) z |
| 233 | apply hasFDerivAt_of_restrictScalars ℝ hh |
| 234 | ext v |
| 235 | simp [J, map_mul] |
| 236 | |
| 237 | /-- Reflection gives a holomorphic extension of the actual real trace. -/ |
| 238 | noncomputable def realSymmetrization (F : Raw) (p : ℝ × ℂ) : ℂ := |
| 239 | (F p + starRingEnd ℂ (F (p.1, starRingEnd ℂ p.2))) / 2 |
| 240 | |
| 241 | theorem realSymmetrization_real (F : Raw) (r eta : ℝ) : |
| 242 | realSymmetrization F (r, (eta : ℂ)) = ((F (r, (eta : ℂ))).re : ℂ) := by |
| 243 | apply Complex.ext <;> simp [realSymmetrization] |
| 244 | |
| 245 | noncomputable def symmetrize {R : ℝ} {U : Set ℂ} (hU : IsOpen U) |
| 246 | (hconj : ∀ z ∈ U, starRingEnd ℂ z ∈ U) (F : Raw) |
| 247 | (hs : ContDiffOn ℝ ∞ F (Ioo (-R) R ×ˢ U)) |
| 248 | (hh : ∀ r ∈ Ioo (-R) R, DifferentiableOn ℂ (fun z => F (r, z)) U) |
| 249 | (he : ∀ z ∈ U, ∀ r ∈ Ioo (-R) R, F (-r, z) = F (r, z)) : AxisFunction R U := |
| 250 | ⟨realSymmetrization F, { |
| 251 | smooth := by |
| 252 | apply ContDiffOn.div_const |
| 253 | apply hs.add |
| 254 | apply Complex.conjCLE.toContinuousLinearMap.contDiff.comp_contDiffOn |
| 255 | apply hs.comp |
| 256 | (contDiff_fst.prodMk (Complex.conjCLE.toContinuousLinearMap.contDiff.comp contDiff_snd)).contDiffOn |
| 257 | exact fun p hp => ⟨hp.1, hconj p.2 hp.2⟩ |
| 258 | holomorphic := by |
| 259 | intro r hr |
| 260 | apply DifferentiableOn.div_const |
| 261 | apply (hh r hr).add |
| 262 | intro z hz |
| 263 | exact (hasDerivAt_conjugate ((hh r hr).differentiableAt |
| 264 | (hU.mem_nhds (hconj z hz))).hasDerivAt).differentiableAt.differentiableWithinAt |
| 265 | even := by |
| 266 | intro z hz r hr |
| 267 | dsimp [realSymmetrization] |
| 268 | rw [he z hz r hr, he _ (hconj z hz) r hr] |
| 269 | real := by |
| 270 | intro r _ eta _ |
| 271 | rw [realSymmetrization_real] |
| 272 | rfl }⟩ |
| 273 | |
| 274 | noncomputable def profile {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) |
| 275 | (p : ℝ × ℝ) : ℝ := (F (Real.sqrt p.1, (p.2 : ℂ))).re |
| 276 | |
| 277 | noncomputable def complexProfile {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) |
| 278 | (p : ℝ × ℂ) : ℂ := F (Real.sqrt p.1, p.2) |
| 279 | |
| 280 | theorem sqrt_mem {R X : ℝ} (hR : 0 < R) (hX : X ∈ Ico (0 : ℝ) (R ^ 2)) : |
| 281 | Real.sqrt X ∈ Ioo (-R) R := by |
| 282 | constructor |
| 283 | · linarith [Real.sqrt_nonneg X] |
| 284 | · nlinarith [Real.sq_sqrt hX.1, Real.sqrt_nonneg X, hX.2] |
| 285 | |
| 286 | theorem complexProfile_real {R : ℝ} (hR : 0 < R) {U : Set ℂ} (F : AxisFunction R U) |
| 287 | {X eta : ℝ} (hX : X ∈ Ico (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 288 | complexProfile F (X, (eta : ℂ)) = (profile F (X, eta) : ℂ) := by |
| 289 | apply Complex.ext |
| 290 | · rfl |
| 291 | · exact F.2.real _ (sqrt_mem hR hX) eta heta |
| 292 | |
| 293 | theorem complexProfile_square {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) |
| 294 | {r : ℝ} (hr : r ∈ Ioo (-R) R) {z : ℂ} (hz : z ∈ U) : |
| 295 | complexProfile F (r ^ 2, z) = F (r, z) := by |
| 296 | change F (Real.sqrt (r ^ 2), z) = _ |
| 297 | rw [Real.sqrt_sq_eq_abs] |
| 298 | rcases le_or_gt 0 r with hs | hs |
| 299 | · rw [abs_of_nonneg hs] |
| 300 | · rw [abs_of_neg hs, F.2.even z hz r hr] |
| 301 | |
| 302 | theorem profile_smooth {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 303 | (F : AxisFunction R U) : |
| 304 | ContDiffOn ℝ ∞ (profile F) |
| 305 | (Ico (0 : ℝ) (R ^ 2) ×ˢ PositiveAxisExistence.realParameterDomain U) := by |
| 306 | let G : ℝ × ℝ → ℝ := fun p => (F (p.2, (p.1 : ℂ))).re |
| 307 | have hg : ContDiffOn ℝ ∞ G |
| 308 | (PositiveAxisExistence.realParameterDomain U ×ˢ Ioo (-R) R) := |
| 309 | Complex.reCLM.contDiff.comp_contDiffOn (F.2.smooth.comp |
| 310 | (contDiff_snd.prodMk (Complex.ofRealCLM.contDiff.comp contDiff_fst)).contDiffOn |
| 311 | (fun p hp => ⟨hp.2, hp.1⟩)) |
| 312 | have he : ∀ eta ∈ PositiveAxisExistence.realParameterDomain U, |
| 313 | ∀ r ∈ Ioo (-R) R, G (eta, -r) = G (eta, r) := by |
| 314 | intro eta heta r hr |
| 315 | exact congrArg Complex.re (F.2.even _ heta r hr) |
| 316 | exact (ParametricEvenDescent.contDiffOn_descend_local |
| 317 | (PositiveAxisExistence.realParameterDomain_isOpen hU) hR hg he).comp |
| 318 | (contDiff_snd.prodMk contDiff_fst).contDiffOn (fun p hp => ⟨hp.2, hp.1⟩) |
| 319 | |
| 320 | theorem profile_contDiffAt {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 321 | (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 322 | (heta : (eta : ℂ) ∈ U) : ContDiffAt ℝ ∞ (profile F) (X, eta) := |
| 323 | ((profile_smooth hR hU F).mono (Set.prod_mono Ioo_subset_Ico_self (Subset.refl _))).contDiffAt |
| 324 | ((isOpen_Ioo.prod (PositiveAxisExistence.realParameterDomain_isOpen hU)).mem_nhds ⟨hX, heta⟩) |
| 325 | |
| 326 | theorem radialDerivative_value {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 327 | (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 328 | (heta : (eta : ℂ) ∈ U) : |
| 329 | complexProfile (radialDerivative hR hU F) (X, (eta : ℂ)) = |
| 330 | (SimilarityProfile.partialX (profile F) (X, eta) : ℂ) := by |
| 331 | have hb := BoundaryAxisJets.axisJet_eq_ordinary_full hR hU F.2.smooth F.2.even 1 hX heta |
| 332 | have hd := ((profile_contDiffAt hR hU F hX heta).differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt X |
| 333 | ((hasDerivAt_id X).prodMk (hasDerivAt_const X eta)) |
| 334 | change HasDerivAt (fun Y => profile F (Y, eta)) (SimilarityProfile.partialX (profile F) (X, eta)) X at hd |
| 335 | have he : (fun Y => F (Real.sqrt Y, (eta : ℂ))) =ᶠ[𝓝 X] |
| 336 | (fun Y => (profile F (Y, eta) : ℂ)) := by |
| 337 | filter_upwards [isOpen_Ioo.mem_nhds hX] with Y hY |
| 338 | exact complexProfile_real hR F ⟨hY.1.le, hY.2⟩ heta |
| 339 | simp only [iteratedDeriv_one, he.deriv_eq, hd.ofReal_comp.deriv] at hb |
| 340 | exact hb |
| 341 | |
| 342 | theorem parameterDerivative_value {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 343 | (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 344 | (heta : (eta : ℂ) ∈ U) : |
| 345 | complexProfile (parameterDerivative hU F) (X, (eta : ℂ)) = |
| 346 | (SimilarityProfile.partialEta (profile F) (X, eta) : ℂ) := by |
| 347 | have hr := sqrt_mem hR ⟨hX.1.le, hX.2⟩ |
| 348 | have hdC := ((F.2.holomorphic _ hr).differentiableAt (hU.mem_nhds heta)).hasDerivAt |
| 349 | have hdR := PositiveAxisSystem.hasDerivAt_parameterProfile |
| 350 | ((profile_contDiffAt hR hU F hX heta).differentiableAt (by simp)) |
| 351 | apply Complex.ext |
| 352 | · exact hdC.real_of_complex.deriv.symm.trans hdR.deriv |
| 353 | · exact parameterDerivative_real hU F hr heta |
| 354 | |
| 355 | theorem profile_radialDerivative {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 356 | (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 357 | (heta : (eta : ℂ) ∈ U) : |
| 358 | profile (radialDerivative hR hU F) (X, eta) = |
| 359 | SimilarityProfile.partialX (profile F) (X, eta) := |
| 360 | congrArg Complex.re (radialDerivative_value hR hU F hX heta) |
| 361 | |
| 362 | theorem profile_radialDerivative_germ {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 363 | (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 364 | (heta : (eta : ℂ) ∈ U) : |
| 365 | profile (radialDerivative hR hU F) =ᶠ[𝓝 (X, eta)] SimilarityProfile.partialX (profile F) := by |
| 366 | filter_upwards [(isOpen_Ioo.prod (PositiveAxisExistence.realParameterDomain_isOpen hU)).mem_nhds |
| 367 | (show (X, eta) ∈ Ioo (0 : ℝ) (R ^ 2) ×ˢ PositiveAxisExistence.realParameterDomain U from ⟨hX, heta⟩)] with p hp |
| 368 | exact profile_radialDerivative hR hU F hp.1 hp.2 |
| 369 | |
| 370 | /-- Fixed geometric data for one analytic parameter neighborhood. -/ |
| 371 | structure Domain (R : ℝ) (U : Set ℂ) (h : ℝ) : Prop where |
| 372 | positive : 0 < R |
| 373 | open_set : IsOpen U |
| 374 | conjugate : ∀ z ∈ U, starRingEnd ℂ z ∈ U |
| 375 | denominator : ∀ z ∈ U, PositiveAxisSystem.ell (h : ℂ) z ≠ 0 |
| 376 | |
| 377 | theorem Domain.restrict {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 378 | (hS : 0 < S) : Domain S U h := ⟨hS, c.open_set, c.conjugate, c.denominator⟩ |
| 379 | |
| 380 | noncomputable def denominatorFunction (R : ℝ) (U : Set ℂ) (h : ℝ) : AxisFunction R U := |
| 381 | 1 - realConstant R U (2 * h) * parameter R U ^ 2 |
| 382 | |
| 383 | theorem denominatorFunction_apply (R : ℝ) (U : Set ℂ) (h : ℝ) (p : ℝ × ℂ) : |
| 384 | denominatorFunction R U h p = PositiveAxisSystem.ell (h : ℂ) p.2 := by |
| 385 | simp [denominatorFunction, parameter, realConstant, PositiveAxisSystem.ell] |
| 386 | |
| 387 | noncomputable def inverseDenominator {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) : |
| 388 | AxisFunction R U := |
| 389 | inverse (denominatorFunction R U h) (fun p hp => by |
| 390 | rw [denominatorFunction_apply] |
| 391 | exact c.denominator p.2 hp.2) |
| 392 | |
| 393 | noncomputable def timeOperator {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 394 | (b : ℝ) (F : AxisFunction R U) : AxisFunction R U := |
| 395 | (-realConstant R U b * F + realConstant R U (1 / 2 - h) * parameter R U * |
| 396 | parameterDerivative c.open_set F + squaredRadius R U * radialDerivative c.positive c.open_set F) * |
| 397 | inverseDenominator c |
| 398 | |
| 399 | noncomputable def axialOperator {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 400 | (b : ℝ) (F : AxisFunction R U) : AxisFunction R U := |
| 401 | (realConstant R U 2 * parameter R U * realConstant R U b * F + |
| 402 | (1 - parameter R U ^ 2) * parameterDerivative c.open_set F - |
| 403 | realConstant R U 2 * parameter R U * squaredRadius R U * |
| 404 | radialDerivative c.positive c.open_set F) * inverseDenominator c |
| 405 | |
| 406 | @[simp] theorem complexProfile_add {R : ℝ} {U : Set ℂ} (F G : AxisFunction R U) (p : ℝ × ℂ) : |
| 407 | complexProfile (F + G) p = complexProfile F p + complexProfile G p := rfl |
| 408 | @[simp] theorem complexProfile_sub {R : ℝ} {U : Set ℂ} (F G : AxisFunction R U) (p : ℝ × ℂ) : |
| 409 | complexProfile (F - G) p = complexProfile F p - complexProfile G p := rfl |
| 410 | @[simp] theorem complexProfile_mul {R : ℝ} {U : Set ℂ} (F G : AxisFunction R U) (p : ℝ × ℂ) : |
| 411 | complexProfile (F * G) p = complexProfile F p * complexProfile G p := rfl |
| 412 | @[simp] theorem complexProfile_neg {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) (p : ℝ × ℂ) : |
| 413 | complexProfile (-F) p = -complexProfile F p := rfl |
| 414 | @[simp] theorem complexProfile_pow {R : ℝ} {U : Set ℂ} (F : AxisFunction R U) (k : ℕ) (p : ℝ × ℂ) : |
| 415 | complexProfile (F ^ k) p = complexProfile F p ^ k := rfl |
| 416 | @[simp] theorem complexProfile_zero {R : ℝ} {U : Set ℂ} (p : ℝ × ℂ) : |
| 417 | complexProfile (0 : AxisFunction R U) p = 0 := rfl |
| 418 | @[simp] theorem complexProfile_one {R : ℝ} {U : Set ℂ} (p : ℝ × ℂ) : |
| 419 | complexProfile (1 : AxisFunction R U) p = 1 := rfl |
| 420 | @[simp] theorem complexProfile_realConstant (R : ℝ) (U : Set ℂ) (b : ℝ) (p : ℝ × ℂ) : |
| 421 | complexProfile (realConstant R U b) p = (b : ℂ) := rfl |
| 422 | @[simp] theorem complexProfile_parameter (R : ℝ) (U : Set ℂ) (p : ℝ × ℂ) : |
| 423 | complexProfile (parameter R U) p = p.2 := rfl |
| 424 | @[simp] theorem complexProfile_squaredRadius (R : ℝ) (U : Set ℂ) {X : ℝ} (hX : 0 ≤ X) (z : ℂ) : |
| 425 | complexProfile (squaredRadius R U) (X, z) = (X : ℂ) := by |
| 426 | change ((Real.sqrt X ^ 2 : ℝ) : ℂ) = _ |
| 427 | rw [Real.sq_sqrt hX] |
| 428 | @[simp] theorem complexProfile_inverseDenominator {R : ℝ} {U : Set ℂ} {h : ℝ} |
| 429 | (c : Domain R U h) (p : ℝ × ℂ) : |
| 430 | complexProfile (inverseDenominator c) p = (PositiveAxisSystem.ell (h : ℂ) p.2)⁻¹ := by |
| 431 | change (denominatorFunction R U h (Real.sqrt p.1, p.2))⁻¹ = _ |
| 432 | rw [denominatorFunction_apply] |
| 433 | |
| 434 | theorem timeOperator_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 435 | (b : ℝ) (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 436 | (heta : (eta : ℂ) ∈ U) : |
| 437 | complexProfile (timeOperator c b F) (X, (eta : ℂ)) = |
| 438 | (SimilarityProfile.T h b (profile F) (X, eta) : ℂ) := by |
| 439 | simp only [timeOperator, complexProfile_mul, complexProfile_add, complexProfile_neg, |
| 440 | complexProfile_realConstant, complexProfile_parameter, complexProfile_squaredRadius R U hX.1.le, |
| 441 | complexProfile_inverseDenominator, complexProfile_real c.positive F ⟨hX.1.le, hX.2⟩ heta, |
| 442 | radialDerivative_value c.positive c.open_set F hX heta, |
| 443 | parameterDerivative_value c.positive c.open_set F hX heta, |
| 444 | SimilarityProfile.T, CoordinateAlgebra.timeCoeff, CoordinateAlgebra.L, |
| 445 | PositiveAxisSystem.ell, Complex.ofReal_add, Complex.ofReal_sub, |
| 446 | Complex.ofReal_mul, Complex.ofReal_neg, Complex.ofReal_one, div_eq_mul_inv] |
| 447 | norm_num [CoordinateAlgebra.D] |
| 448 | |
| 449 | theorem axialOperator_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 450 | (b : ℝ) (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 451 | (heta : (eta : ℂ) ∈ U) : |
| 452 | complexProfile (axialOperator c b F) (X, (eta : ℂ)) = |
| 453 | (SimilarityProfile.Z h b (profile F) (X, eta) : ℂ) := by |
| 454 | simp only [axialOperator, complexProfile_mul, complexProfile_sub, complexProfile_add, |
| 455 | complexProfile_pow, complexProfile_one, complexProfile_realConstant, complexProfile_parameter, |
| 456 | complexProfile_squaredRadius R U hX.1.le, complexProfile_inverseDenominator, |
| 457 | complexProfile_real c.positive F ⟨hX.1.le, hX.2⟩ heta, |
| 458 | radialDerivative_value c.positive c.open_set F hX heta, |
| 459 | parameterDerivative_value c.positive c.open_set F hX heta, |
| 460 | SimilarityProfile.Z, CoordinateAlgebra.axialCoeff, CoordinateAlgebra.L, |
| 461 | PositiveAxisSystem.ell, Complex.ofReal_add, Complex.ofReal_sub, |
| 462 | Complex.ofReal_mul, Complex.ofReal_ofNat, div_eq_mul_inv] |
| 463 | simp [CoordinateAlgebra.d] |
| 464 | |
| 465 | theorem axialOperator_germ {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 466 | (b : ℝ) (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 467 | (heta : (eta : ℂ) ∈ U) : |
| 468 | profile (axialOperator c b F) =ᶠ[𝓝 (X, eta)] SimilarityProfile.Z h b (profile F) := by |
| 469 | filter_upwards [(isOpen_Ioo.prod (PositiveAxisExistence.realParameterDomain_isOpen c.open_set)).mem_nhds |
| 470 | (show (X, eta) ∈ Ioo (0 : ℝ) (R ^ 2) ×ˢ PositiveAxisExistence.realParameterDomain U from ⟨hX, heta⟩)] with p hp |
| 471 | exact congrArg Complex.re (axialOperator_value c b F hp.1 hp.2) |
| 472 | |
| 473 | theorem axialOperator_twice_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 474 | (b₁ b₂ : ℝ) (F : AxisFunction R U) {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 475 | (heta : (eta : ℂ) ∈ U) : |
| 476 | complexProfile (axialOperator c b₂ (axialOperator c b₁ F)) (X, (eta : ℂ)) = |
| 477 | (SimilarityProfile.Z h b₂ (SimilarityProfile.Z h b₁ (profile F)) (X, eta) : ℂ) := by |
| 478 | rw [axialOperator_value c b₂ _ hX heta, |
| 479 | AxisSourceRegularity.Z_congr_germ h b₂ (axialOperator_germ c b₁ F hX heta)] |
| 480 | |
| 481 | @[simp] theorem complexProfile_sum {ι : Type*} {R : ℝ} {U : Set ℂ} |
| 482 | (s : Finset ι) (F : ι → AxisFunction R U) (p : ℝ × ℂ) : |
| 483 | complexProfile (∑ i ∈ s, F i) p = ∑ i ∈ s, complexProfile (F i) p := by |
| 484 | classical |
| 485 | induction s using Finset.induction_on with |
| 486 | | empty => simp |
| 487 | | @insert a s ha ih => simp only [Finset.sum_insert ha, complexProfile_add, ih] |
| 488 | |
| 489 | noncomputable def priorDiffusion {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 490 | (b : ℝ) (F : ℕ → AxisFunction R U) (n : ℕ) : AxisFunction R U := |
| 491 | if n = 0 then 0 else |
| 492 | axialOperator c (b + PositiveAxisSystem.slowPower h (n - 1) - PositiveAxisSystem.dScale h) |
| 493 | (axialOperator c (b + PositiveAxisSystem.slowPower h (n - 1)) (F (n - 1))) |
| 494 | |
| 495 | theorem priorDiffusion_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 496 | (b : ℝ) (F : ℕ → AxisFunction R U) (n : ℕ) {X eta : ℝ} |
| 497 | (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 498 | complexProfile (priorDiffusion c b F n) (X, (eta : ℂ)) = |
| 499 | (PositiveAxisSystem.precedingDiffusion h b (fun j => profile (F j)) n (X, eta) : ℂ) := by |
| 500 | by_cases hn : n = 0 |
| 501 | · simp [priorDiffusion, PositiveAxisSystem.precedingDiffusion, hn] |
| 502 | · simp only [priorDiffusion, PositiveAxisSystem.precedingDiffusion, ite_eq_right hn] |
| 503 | exact axialOperator_twice_value c _ _ _ hX heta |
| 504 | |
| 505 | noncomputable def shiftedBetaDiffusion {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 506 | (F : ℕ → AxisFunction R U) : ℕ → AxisFunction R U |
| 507 | | 0 => 0 |
| 508 | | k + 1 => axialOperator c (AxisSourceRegularity.slowOrder h k - 1 - SimilarityProfile.D h) |
| 509 | (axialOperator c (AxisSourceRegularity.slowOrder h k - 1) (F k)) |
| 510 | |
| 511 | theorem shiftedBetaDiffusion_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 512 | (F : ℕ → AxisFunction R U) (k : ℕ) {X eta : ℝ} |
| 513 | (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 514 | complexProfile (shiftedBetaDiffusion c F k) (X, (eta : ℂ)) = |
| 515 | (AxisSourceRegularity.shiftedAxialFactor h (fun j => profile (F j)) k (X, eta) : ℂ) := by |
| 516 | cases k with |
| 517 | | zero => rfl |
| 518 | | succ k => exact axialOperator_twice_value c _ _ _ hX heta |
| 519 | |
| 520 | noncomputable def radialSource {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 521 | (u beta : ℕ → AxisFunction R U) (k : ℕ) : AxisFunction R U := |
| 522 | timeOperator c (AxisSourceRegularity.slowOrder h k - 1) (beta k) + |
| 523 | (∑ ij ∈ Finset.antidiagonal k, |
| 524 | (beta ij.1 * (realConstant R U (1 / 2) * beta ij.2 + |
| 525 | squaredRadius R U * radialDerivative c.positive c.open_set (beta ij.2)) + |
| 526 | u ij.1 * axialOperator c (AxisSourceRegularity.slowOrder h ij.2 - 1) (beta ij.2))) - |
| 527 | (realConstant R U 4 * radialDerivative c.positive c.open_set (beta k) + |
| 528 | realConstant R U 2 * squaredRadius R U * |
| 529 | radialDerivative c.positive c.open_set (radialDerivative c.positive c.open_set (beta k))) - |
| 530 | shiftedBetaDiffusion c beta k |
| 531 | |
| 532 | theorem radialSource_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 533 | (u beta : ℕ → AxisFunction R U) (k : ℕ) {X eta : ℝ} |
| 534 | (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 535 | complexProfile (radialSource c u beta k) (X, (eta : ℂ)) = |
| 536 | (AxisSourceRegularity.omegaDivX h (fun j => profile (u j)) (fun j => profile (beta j)) |
| 537 | k (X, eta) : ℂ) := by |
| 538 | simp only [radialSource, AxisSourceRegularity.omegaDivX, complexProfile_sub, complexProfile_add, |
| 539 | complexProfile_mul, complexProfile_realConstant, complexProfile_sum, |
| 540 | complexProfile_squaredRadius R U hX.1.le, timeOperator_value c _ _ hX heta, |
| 541 | axialOperator_value c _ _ hX heta, shiftedBetaDiffusion_value c _ _ hX heta, |
| 542 | radialDerivative_value c.positive c.open_set _ hX heta, |
| 543 | Complex.ofReal_add, Complex.ofReal_sub, Complex.ofReal_mul, Complex.ofReal_sum, |
| 544 | Complex.ofReal_div, Complex.ofReal_one, Complex.ofReal_ofNat] |
| 545 | simp only [complexProfile_real c.positive _ ⟨hX.1.le, hX.2⟩ heta] |
| 546 | congr 3 |
| 547 | · apply Finset.sum_congr rfl |
| 548 | intro ij _ |
| 549 | ring |
| 550 | · unfold SimilarityProfile.partialX |
| 551 | rw [(profile_radialDerivative_germ c.positive c.open_set (beta k) hX heta).fderiv_eq] |
| 552 | rfl |
| 553 | |
| 554 | noncomputable def previousRadialSource {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 555 | (u beta : ℕ → AxisFunction R U) : ℕ → AxisFunction R U |
| 556 | | 0 => 0 |
| 557 | | k + 1 => radialSource c u beta k |
| 558 | |
| 559 | theorem previousRadialSource_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 560 | (u beta : ℕ → AxisFunction R U) (n : ℕ) {X eta : ℝ} |
| 561 | (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 562 | complexProfile (previousRadialSource c u beta n) (X, (eta : ℂ)) = |
| 563 | (AxisSourceRegularity.previousOmegaDivX h (fun j => profile (u j)) |
| 564 | (fun j => profile (beta j)) n (X, eta) : ℂ) := by |
| 565 | cases n with |
| 566 | | zero => rfl |
| 567 | | succ k => exact radialSource_value c u beta k hX heta |
| 568 | |
| 569 | noncomputable def angularSource {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 570 | (phi u beta : ℕ → AxisFunction R U) (n : ℕ) : AxisFunction R U := |
| 571 | (∑ i ∈ Finset.range (n - 1), |
| 572 | (beta (i + 1) * (squaredRadius R U * radialDerivative c.positive c.open_set (phi (n - (i + 1))) + |
| 573 | phi (n - (i + 1))) + u (i + 1) * |
| 574 | axialOperator c (PositiveAxisSystem.angularPower h + PositiveAxisSystem.slowPower h (n - (i + 1))) |
| 575 | (phi (n - (i + 1))))) - priorDiffusion c (PositiveAxisSystem.angularPower h) phi n |
| 576 | |
| 577 | noncomputable def axialSource {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 578 | (u beta : ℕ → AxisFunction R U) (n : ℕ) : AxisFunction R U := |
| 579 | (∑ i ∈ Finset.range (n - 1), |
| 580 | (beta (i + 1) * squaredRadius R U * radialDerivative c.positive c.open_set (u (n - (i + 1))) + |
| 581 | u (i + 1) * axialOperator c |
| 582 | (PositiveAxisSystem.axialPower h + PositiveAxisSystem.slowPower h (n - (i + 1))) (u (n - (i + 1))))) - |
| 583 | priorDiffusion c (PositiveAxisSystem.axialPower h) u n |
| 584 | |
| 585 | noncomputable def pressureProduct {R : ℝ} {U : Set ℂ} (phi : ℕ → AxisFunction R U) |
| 586 | (n : ℕ) : AxisFunction R U := |
| 587 | ∑ i ∈ Finset.range (n - 1), phi (i + 1) * phi (n - (i + 1)) |
| 588 | |
| 589 | /-- Each of the eleven inputs is an actual member of the smooth function |
| 590 | algebra; their regularity follows by construction from the lower profiles. -/ |
| 591 | noncomputable def sourceFunctions {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 592 | (phi u beta : ℕ → AxisFunction R U) (n : ℕ) : Fin 11 → AxisFunction R U := |
| 593 | ![phi 0, radialDerivative c.positive c.open_set (phi 0), parameterDerivative c.open_set (phi 0), |
| 594 | u 0, radialDerivative c.positive c.open_set (u 0), parameterDerivative c.open_set (u 0), beta 0, |
| 595 | angularSource c phi u beta n, axialSource c u beta n, pressureProduct phi n, |
| 596 | previousRadialSource c u beta n] |
| 597 | |
| 598 | noncomputable def sourceData {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 599 | (phi u beta : ℕ → AxisFunction R U) (n : ℕ) : PositiveAxisSystem.CoefficientData := |
| 600 | fun i => complexProfile (sourceFunctions c phi u beta n i) |
| 601 | |
| 602 | theorem sourceData_regular {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 603 | (phi u beta : ℕ → AxisFunction R U) (n : ℕ) : |
| 604 | PositiveAxisExistence.LowerInputRegularity R U (h : ℂ) (sourceData c phi u beta n) := by |
| 605 | refine ⟨?_, ?_, c.denominator⟩ |
| 606 | · intro i |
| 607 | have hs := (sourceFunctions c phi u beta n i).2.smooth |
| 608 | have hs' : ContDiffOn ℝ ∞ (fun p : ℝ × ℂ => sourceData c phi u beta n i (p.1 ^ 2, p.2)) |
| 609 | (Ioo (-R) R ×ˢ U) := hs.congr (fun p hp => complexProfile_square _ hp.1 hp.2) |
| 610 | simpa only [VolterraRegularity.radialDomain, Real.ball_eq_Ioo, sub_self, zero_sub, zero_add] using hs' |
| 611 | · intro r hr i |
| 612 | have hr' : r ∈ Ioo (-R) R := by simpa [VolterraRegularity.radialDomain, Real.ball_eq_Ioo] using hr |
| 613 | exact ((sourceFunctions c phi u beta n i).2.holomorphic r hr').congr |
| 614 | (fun z hz => complexProfile_square _ hr' hz) |
| 615 | |
| 616 | theorem sourceData_real {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 617 | (phi u beta : ℕ → AxisFunction R U) (n : ℕ) : |
| 618 | PositiveAxisExistence.RealCompatible R U (sourceData c phi u beta n) |
| 619 | (PositiveAxisExistence.lowerHistoryData h n (fun j => profile (phi j)) (fun j => profile (u j)) |
| 620 | (fun j => profile (beta j)) (AxisSourceRegularity.previousOmegaDivX h |
| 621 | (fun j => profile (u j)) (fun j => profile (beta j)) n)) := by |
| 622 | intro X hX eta heta i |
| 623 | have hv (F : AxisFunction R U) := complexProfile_real c.positive F ⟨hX.1.le, hX.2⟩ heta |
| 624 | have hd (F : AxisFunction R U) := radialDerivative_value c.positive c.open_set F hX heta |
| 625 | have he (F : AxisFunction R U) := parameterDerivative_value c.positive c.open_set F hX heta |
| 626 | fin_cases i <;> |
| 627 | simp only [sourceData, sourceFunctions, PositiveAxisExistence.lowerHistoryData] |
| 628 | · exact hv _ |
| 629 | · exact hd _ |
| 630 | · exact he _ |
| 631 | · exact hv _ |
| 632 | · exact hd _ |
| 633 | · exact he _ |
| 634 | · exact hv _ |
| 635 | · change complexProfile (angularSource c phi u beta n) (X, (eta : ℂ)) = |
| 636 | ((PositiveAxisSystem.actualLowerSource h n (fun j => profile (phi j)) (fun j => profile (u j)) |
| 637 | (fun j => profile (beta j)) (AxisSourceRegularity.previousOmegaDivX h |
| 638 | (fun j => profile (u j)) (fun j => profile (beta j)) n) (X, eta)).angular : ℂ) |
| 639 | simp only [angularSource, PositiveAxisSystem.actualLowerSource, PositiveAxisSystem.lowerSource, |
| 640 | PositiveAxisSystem.lowerConvolution, PositiveAxisSystem.angularConvection, |
| 641 | complexProfile_sub, complexProfile_sum, complexProfile_add, complexProfile_mul, |
| 642 | complexProfile_squaredRadius R U hX.1.le, hd, |
| 643 | axialOperator_value c _ _ hX heta, priorDiffusion_value c _ _ _ hX heta, |
| 644 | Complex.ofReal_sub, Complex.ofReal_sum, Complex.ofReal_add, Complex.ofReal_mul, PositiveAxisSystem.actualJet] |
| 645 | simp only [hv] |
| 646 | rfl |
| 647 | · change complexProfile (axialSource c u beta n) (X, (eta : ℂ)) = |
| 648 | ((PositiveAxisSystem.actualLowerSource h n (fun j => profile (phi j)) (fun j => profile (u j)) |
| 649 | (fun j => profile (beta j)) (AxisSourceRegularity.previousOmegaDivX h |
| 650 | (fun j => profile (u j)) (fun j => profile (beta j)) n) (X, eta)).axial : ℂ) |
| 651 | simp only [axialSource, PositiveAxisSystem.actualLowerSource, PositiveAxisSystem.lowerSource, |
| 652 | PositiveAxisSystem.lowerConvolution, PositiveAxisSystem.axialConvection, |
| 653 | complexProfile_sub, complexProfile_sum, complexProfile_add, complexProfile_mul, |
| 654 | complexProfile_squaredRadius R U hX.1.le, hd, |
| 655 | axialOperator_value c _ _ hX heta, priorDiffusion_value c _ _ _ hX heta, |
| 656 | Complex.ofReal_sub, Complex.ofReal_sum, Complex.ofReal_add, Complex.ofReal_mul, PositiveAxisSystem.actualJet] |
| 657 | simp only [hv] |
| 658 | rfl |
| 659 | · change complexProfile (pressureProduct phi n) (X, (eta : ℂ)) = |
| 660 | ((PositiveAxisSystem.actualLowerSource h n (fun j => profile (phi j)) (fun j => profile (u j)) |
| 661 | (fun j => profile (beta j)) (AxisSourceRegularity.previousOmegaDivX h |
| 662 | (fun j => profile (u j)) (fun j => profile (beta j)) n) (X, eta)).pressureProduct : ℂ) |
| 663 | simp only [pressureProduct, PositiveAxisSystem.actualLowerSource, PositiveAxisSystem.lowerSource, |
| 664 | PositiveAxisSystem.lowerConvolution, complexProfile_sum, complexProfile_mul, |
| 665 | Complex.ofReal_sum, Complex.ofReal_mul, PositiveAxisSystem.actualJet] |
| 666 | simp only [hv] |
| 667 | · exact previousRadialSource_value c u beta n hX heta |
| 668 | |
| 669 | noncomputable def betaOperator {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 670 | (n : ℕ) (u k : AxisFunction R U) : AxisFunction R U := |
| 671 | (realConstant R U 2 * parameter R U * |
| 672 | realConstant R U (PositiveAxisSystem.a h - PositiveAxisSystem.slowPower h n) * u - |
| 673 | realConstant R U 2 * parameter R U * |
| 674 | realConstant R U (PositiveAxisSystem.dScale h + PositiveAxisSystem.slowPower h n) * k - |
| 675 | (1 - parameter R U ^ 2) * (parameterDerivative c.open_set u + parameterDerivative c.open_set k)) * |
| 676 | inverseDenominator c |
| 677 | |
| 678 | theorem betaOperator_value {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 679 | (n : ℕ) (u k : AxisFunction R U) {X eta : ℝ} |
| 680 | (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 681 | complexProfile (betaOperator c n u k) (X, (eta : ℂ)) = |
| 682 | (PositiveAxisExistence.newBeta h n (profile u) (profile k) (X, eta) : ℂ) := by |
| 683 | simp only [betaOperator, complexProfile_mul, complexProfile_sub, complexProfile_add, |
| 684 | complexProfile_pow, complexProfile_one, complexProfile_realConstant, complexProfile_parameter, |
| 685 | complexProfile_inverseDenominator, parameterDerivative_value c.positive c.open_set _ hX heta, |
| 686 | PositiveAxisExistence.newBeta, PositiveAxisSystem.betaValue, PositiveAxisSystem.actualJet, |
| 687 | PositiveAxisSystem.ell, PositiveAxisSystem.edge, |
| 688 | Complex.ofReal_div, Complex.ofReal_mul, Complex.ofReal_sub, Complex.ofReal_add, |
| 689 | Complex.ofReal_pow, Complex.ofReal_one, Complex.ofReal_ofNat] |
| 690 | simp only [complexProfile_real c.positive _ ⟨hX.1.le, hX.2⟩ heta] |
| 691 | rw [div_eq_mul_inv] |
| 692 | |
| 693 | abbrev Coefficient (R : ℝ) (U : Set ℂ) := Fin 5 → AxisFunction R U |
| 694 | |
| 695 | noncomputable def stepRaw {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 696 | (hS : 0 < S) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) : VolterraAnalyticBounds.Field := |
| 697 | PositiveAxisExistence.positiveSolution hS.le (h : ℂ) |
| 698 | ((PositiveAxisSystem.slowPower h n : ℝ) : ℂ) (C : ℂ) |
| 699 | (sourceData c (fun j => F j 0) (fun j => F j 1) (fun j => F j 4) n) |
| 700 | |
| 701 | noncomputable def stepComponent {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 702 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) |
| 703 | (i : Fin 6) (hi : i.val < 4) : AxisFunction S U := by |
| 704 | let W := stepRaw c hS C n F |
| 705 | have hdata := sourceData_regular c (fun j => F j 0) (fun j => F j 1) (fun j => F j 4) n |
| 706 | have hs : ContDiffOn ℝ ∞ (fun p : ℝ × ℂ => W p.1 p.2 i) (Ioo (-S) S ×ˢ U) := by |
| 707 | simpa only [W, stepRaw, VolterraRegularity.radialDomain, Real.ball_eq_Ioo, |
| 708 | zero_sub, zero_add] using |
| 709 | (contDiffOn_pi.mp (PositiveAxisExistence.positiveSolution_jointly_smooth hS.le hSR c.open_set |
| 710 | ((PositiveAxisSystem.slowPower h n : ℝ) : ℂ) (C : ℂ) hdata) i) |
| 711 | have hw := PositiveAxisExistence.positiveSolution_spec hS.le hSR c.open_set |
| 712 | ((PositiveAxisSystem.slowPower h n : ℝ) : ℂ) (C : ℂ) hdata |
| 713 | have hh : ∀ r ∈ Ioo (-S) S, DifferentiableOn ℂ (fun z => W r z i) U := |
| 714 | fun r hr => hw.parameter_holomorphic r ⟨hr.1.le, hr.2.le⟩ i |
| 715 | have he : ∀ z ∈ U, ∀ r ∈ Ioo (-S) S, W (-r) z i = W r z i := by |
| 716 | intro z hz r hr |
| 717 | apply VolterraParity.first_components_even (i := i) |
| 718 | (fun r hr z hz => PositiveAxisExistence.positiveSolution_parity hS.le hSR c.open_set |
| 719 | ((PositiveAxisSystem.slowPower h n : ℝ) : ℂ) (C : ℂ) hdata hr hz) hi hz r hr |
| 720 | exact symmetrize c.open_set c.conjugate (fun p => W p.1 p.2 i) hs hh he |
| 721 | |
| 722 | theorem stepComponent_profile {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 723 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) |
| 724 | (i : Fin 6) (hi : i.val < 4) : |
| 725 | profile (stepComponent c hS hSR C n F i hi) = PositiveAxisExistence.xProfile (stepRaw c hS C n F) i := by |
| 726 | funext p |
| 727 | change (realSymmetrization (fun q => stepRaw c hS C n F q.1 q.2 i) |
| 728 | (Real.sqrt p.1, (p.2 : ℂ))).re = _ |
| 729 | rw [realSymmetrization_real] |
| 730 | rfl |
| 731 | |
| 732 | theorem stepComponent_axis_zero {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 733 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) |
| 734 | (i : Fin 6) (hi : i.val < 4) {z : ℂ} (hz : z ∈ U) : |
| 735 | stepComponent c hS hSR C n F i hi (0, z) = 0 := by |
| 736 | have hw := PositiveAxisExistence.positiveSolution_spec hS.le hSR c.open_set |
| 737 | ((PositiveAxisSystem.slowPower h n : ℝ) : ℂ) (C : ℂ) |
| 738 | (sourceData_regular c (fun j => F j 0) (fun j => F j 1) (fun j => F j 4) n) |
| 739 | change (stepRaw c hS C n F 0 z i + starRingEnd ℂ (stepRaw c hS C n F 0 (starRingEnd ℂ z) i)) / 2 = 0 |
| 740 | have hz₁ : stepRaw c hS C n F 0 z i = 0 := congrFun (hw.axis_zero z hz) i |
| 741 | have hz₂ : stepRaw c hS C n F 0 (starRingEnd ℂ z) i = 0 := |
| 742 | congrFun (hw.axis_zero _ (c.conjugate z hz)) i |
| 743 | rw [hz₁, hz₂, map_zero, add_zero, zero_div] |
| 744 | |
| 745 | /-- One actual inductive step. The first four profiles come from the |
| 746 | convergent Volterra solution; the fifth is the genuine divergence formula. -/ |
| 747 | noncomputable def step {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 748 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) : Coefficient S U := |
| 749 | let a := stepComponent c hS hSR C n F 0 (by decide) |
| 750 | let u := stepComponent c hS hSR C n F 1 (by decide) |
| 751 | let k := stepComponent c hS hSR C n F 2 (by decide) |
| 752 | let p := stepComponent c hS hSR C n F 3 (by decide) |
| 753 | ![a, u, k, p, betaOperator (c.restrict hS) n u k] |
| 754 | |
| 755 | theorem step_profile {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 756 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) |
| 757 | (i : Fin 4) : |
| 758 | profile (step c hS hSR C n F ⟨i.val, by omega⟩) = |
| 759 | PositiveAxisExistence.xProfile (stepRaw c hS C n F) ⟨i.val, by omega⟩ := by |
| 760 | fin_cases i <;> exact stepComponent_profile c hS hSR C n F _ (by decide) |
| 761 | |
| 762 | theorem sourceData_real_smaller {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 763 | (hS : 0 < S) (hSR : S ≤ R) (phi u beta : ℕ → AxisFunction R U) (n : ℕ) : |
| 764 | PositiveAxisExistence.RealCompatible S U (sourceData c phi u beta n) |
| 765 | (PositiveAxisExistence.lowerHistoryData h n (fun j => profile (phi j)) (fun j => profile (u j)) |
| 766 | (fun j => profile (beta j)) (AxisSourceRegularity.previousOmegaDivX h |
| 767 | (fun j => profile (u j)) (fun j => profile (beta j)) n)) := by |
| 768 | intro X hX eta heta i |
| 769 | apply sourceData_real c phi u beta n X _ eta heta i |
| 770 | exact ⟨hX.1, lt_of_lt_of_le hX.2 (sq_le_sq₀ hS.le c.positive.le |>.2 hSR)⟩ |
| 771 | |
| 772 | theorem step_beta {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 773 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) |
| 774 | {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (S ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 775 | profile (step c hS hSR C n F 4) (X, eta) = PositiveAxisExistence.newBeta h n |
| 776 | (profile (step c hS hSR C n F 1)) (profile (step c hS hSR C n F 2)) (X, eta) := |
| 777 | congrArg Complex.re (betaOperator_value (c.restrict hS) n _ _ hX heta) |
| 778 | |
| 779 | theorem step_expanded {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 780 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) |
| 781 | {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (S ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 782 | PositiveAxisSystem.ExpandedEquations h (PositiveAxisSystem.slowPower h n) C eta X |
| 783 | (PositiveAxisSystem.baseAtOrderZero |
| 784 | (fun j => PositiveAxisSystem.actualJet (profile (F j 0)) (X, eta)) |
| 785 | (fun j => PositiveAxisSystem.actualJet (profile (F j 1)) (X, eta)) |
| 786 | (fun j => profile (F j 4) (X, eta))) |
| 787 | (PositiveAxisSystem.actualLowerSource h n (fun j => profile (F j 0)) (fun j => profile (F j 1)) |
| 788 | (fun j => profile (F j 4)) (AxisSourceRegularity.previousOmegaDivX h |
| 789 | (fun j => profile (F j 1)) (fun j => profile (F j 4)) n) (X, eta)) |
| 790 | (PositiveAxisSystem.actualJet (profile (step c hS hSR C n F 0)) (X, eta)) |
| 791 | (PositiveAxisSystem.actualJet (profile (step c hS hSR C n F 1)) (X, eta)) |
| 792 | (PositiveAxisSystem.actualJet (profile (step c hS hSR C n F 2)) (X, eta)) |
| 793 | (PositiveAxisSystem.actualJet (profile (step c hS hSR C n F 3)) (X, eta)) := by |
| 794 | let r := Real.sqrt X |
| 795 | have hr : r ∈ Ioo (-S) S := sqrt_mem hS ⟨hX.1.le, hX.2⟩ |
| 796 | have hr0 : r ≠ 0 := (Real.sqrt_pos.mpr hX.1).ne' |
| 797 | have hrX : r ^ 2 = X := Real.sq_sqrt hX.1.le |
| 798 | have hd := sourceData_regular c (fun j => F j 0) (fun j => F j 1) (fun j => F j 4) n |
| 799 | have hreal := sourceData_real_smaller c hS hSR.le (fun j => F j 0) (fun j => F j 1) (fun j => F j 4) n |
| 800 | have he := PositiveAxisExistence.positiveSolution_profiles_system hS hSR c.open_set |
| 801 | h (PositiveAxisSystem.slowPower h n) C hd hreal hr hr0 heta |
| 802 | have h0 : profile (step c hS hSR C n F 0) = PositiveAxisExistence.xProfile (stepRaw c hS C n F) 0 := |
| 803 | step_profile c hS hSR C n F 0 |
| 804 | have h1 : profile (step c hS hSR C n F 1) = PositiveAxisExistence.xProfile (stepRaw c hS C n F) 1 := |
| 805 | step_profile c hS hSR C n F 1 |
| 806 | have h2 : profile (step c hS hSR C n F 2) = PositiveAxisExistence.xProfile (stepRaw c hS C n F) 2 := |
| 807 | step_profile c hS hSR C n F 2 |
| 808 | have h3 : profile (step c hS hSR C n F 3) = PositiveAxisExistence.xProfile (stepRaw c hS C n F) 3 := |
| 809 | step_profile c hS hSR C n F 3 |
| 810 | have hsm (i : Fin 5) : ContDiffAt ℝ ∞ (profile (step c hS hSR C n F i)) (r ^ 2, eta) := by |
| 811 | rw [hrX] |
| 812 | exact profile_contDiffAt hS c.open_set _ hX heta |
| 813 | let G := PositiveAxisExistence.lowerHistoryData h n (fun j => profile (F j 0)) |
| 814 | (fun j => profile (F j 1)) (fun j => profile (F j 4)) |
| 815 | (AxisSourceRegularity.previousOmegaDivX h (fun j => profile (F j 1)) (fun j => profile (F j 4)) n) |
| 816 | have he' : PositiveAxisSystem.ProfileSystem h (PositiveAxisSystem.slowPower h n) C r eta |
| 817 | (PositiveAxisExistence.realBase G (r ^ 2, eta)) (PositiveAxisExistence.realSource G (r ^ 2, eta)) |
| 818 | (profile (step c hS hSR C n F 0)) (profile (step c hS hSR C n F 1)) |
| 819 | (profile (step c hS hSR C n F 2)) (profile (step c hS hSR C n F 3)) := by |
| 820 | rw [h0, h1, h2, h3] |
| 821 | exact he |
| 822 | have hout := (PositiveAxisSystem.profileSystem_iff_expanded hr0 _ _ |
| 823 | ((hsm 0).of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)) |
| 824 | ((hsm 1).of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)) |
| 825 | ((hsm 2).differentiableAt (by simp)) ((hsm 3).differentiableAt (by simp))).mp he' |
| 826 | simp only [hrX] at hout ⊢ |
| 827 | exact hout |
| 828 | |
| 829 | theorem betaOperator_axis_zero {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 830 | (n : ℕ) (u k : AxisFunction R U) |
| 831 | (hu : ∀ z ∈ U, u (0, z) = 0) (hk : ∀ z ∈ U, k (0, z) = 0) |
| 832 | {z : ℂ} (hz : z ∈ U) : betaOperator c n u k (0, z) = 0 := by |
| 833 | have hd (F : AxisFunction R U) (hF : ∀ z ∈ U, F (0, z) = 0) : |
| 834 | parameterDerivative c.open_set F (0, z) = 0 := by |
| 835 | have he : (fun w => F (0, w)) =ᶠ[𝓝 z] (fun _ => (0 : ℂ)) := by |
| 836 | filter_upwards [c.open_set.mem_nhds hz] with w hw |
| 837 | exact hF w hw |
| 838 | exact he.deriv_eq.trans (deriv_const z 0) |
| 839 | change (2 * z * _ * u (0, z) - 2 * z * _ * k (0, z) - |
| 840 | (1 - z ^ 2) * (parameterDerivative c.open_set u (0, z) + parameterDerivative c.open_set k (0, z))) * _ = 0 |
| 841 | rw [hu z hz, hk z hz, hd u hu, hd k hk] |
| 842 | ring |
| 843 | |
| 844 | theorem step_axis_zero {R S : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 845 | (hS : 0 < S) (hSR : S < R) (C : ℝ) (n : ℕ) (F : ℕ → Coefficient R U) |
| 846 | (i : Fin 5) {z : ℂ} (hz : z ∈ U) : step c hS hSR C n F i (0, z) = 0 := by |
| 847 | fin_cases i |
| 848 | · exact stepComponent_axis_zero c hS hSR C n F 0 (by decide) hz |
| 849 | · exact stepComponent_axis_zero c hS hSR C n F 1 (by decide) hz |
| 850 | · exact stepComponent_axis_zero c hS hSR C n F 2 (by decide) hz |
| 851 | · exact stepComponent_axis_zero c hS hSR C n F 3 (by decide) hz |
| 852 | · exact betaOperator_axis_zero (c.restrict hS) n _ _ |
| 853 | (fun _ hz => stepComponent_axis_zero c hS hSR C n F 1 (by decide) hz) |
| 854 | (fun _ hz => stepComponent_axis_zero c hS hSR C n F 2 (by decide) hz) hz |
| 855 | |
| 856 | /-- Buffer radii approach a fixed positive core without ever reaching it. -/ |
| 857 | noncomputable def radius (core buffer : ℝ) (n : ℕ) : ℝ := |
| 858 | core + buffer / ((n : ℝ) + 1) |
| 859 | |
| 860 | theorem core_lt_radius {core buffer : ℝ} (hbuffer : 0 < buffer) (n : ℕ) : |
| 861 | core < radius core buffer n := by |
| 862 | unfold radius |
| 863 | have hd : 0 < buffer / ((n : ℝ) + 1) := div_pos hbuffer (by positivity) |
| 864 | linarith |
| 865 | |
| 866 | theorem radius_pos {core buffer : ℝ} (hcore : 0 < core) (hbuffer : 0 < buffer) (n : ℕ) : |
| 867 | 0 < radius core buffer n := lt_trans hcore (core_lt_radius hbuffer n) |
| 868 | |
| 869 | theorem radius_antitone {core buffer : ℝ} (hbuffer : 0 ≤ buffer) : Antitone (radius core buffer) := by |
| 870 | intro m n hmn |
| 871 | unfold radius |
| 872 | apply add_le_add_right |
| 873 | apply div_le_div_of_nonneg_left hbuffer (by positivity) |
| 874 | exact_mod_cast Nat.add_le_add_right hmn 1 |
| 875 | |
| 876 | theorem radius_succ_lt {core buffer : ℝ} (hbuffer : 0 < buffer) (n : ℕ) : |
| 877 | radius core buffer (n + 1) < radius core buffer n := by |
| 878 | unfold radius |
| 879 | apply add_lt_add_right |
| 880 | apply div_lt_div_of_pos_left hbuffer (by positivity) |
| 881 | norm_num |
| 882 | |
| 883 | theorem radiusDomain {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 884 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) (n : ℕ) : |
| 885 | Domain (radius core buffer n) U h := c.restrict (radius_pos hcore hbuffer n) |
| 886 | |
| 887 | /-- Only coefficients with index below `n` are accessed. The zero branch |
| 888 | is outside every finite source sum and is not an assumed future coefficient. -/ |
| 889 | noncomputable def lowerHistory {core buffer : ℝ} {U : Set ℂ} (hbuffer : 0 < buffer) (n : ℕ) |
| 890 | (previous : (j : ℕ) → j < n → Coefficient (radius core buffer j) U) : |
| 891 | ℕ → Coefficient (radius core buffer (n - 1)) U := |
| 892 | fun j => if hj : j < n then |
| 893 | fun i => restrict (radius_antitone hbuffer.le (by omega : j ≤ n - 1)) (previous j hj i) |
| 894 | else 0 |
| 895 | |
| 896 | theorem lowerHistory_apply {core buffer : ℝ} {U : Set ℂ} (hbuffer : 0 < buffer) (n : ℕ) |
| 897 | (previous : (j : ℕ) → j < n → Coefficient (radius core buffer j) U) |
| 898 | {j : ℕ} (hj : j < n) (i : Fin 5) (p : ℝ × ℂ) : |
| 899 | lowerHistory hbuffer n previous j i p = previous j hj i p := by |
| 900 | simp only [lowerHistory, dite_eq_left hj, restrict_apply] |
| 901 | |
| 902 | noncomputable def recursionStep {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 903 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 904 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) : |
| 905 | (n : ℕ) → ((j : ℕ) → j < n → Coefficient (radius core buffer j) U) → Coefficient (radius core buffer n) U |
| 906 | | 0, _ => base |
| 907 | | n + 1, previous => step (radiusDomain c hcore hbuffer n) |
| 908 | (radius_pos hcore hbuffer (n + 1)) (radius_succ_lt hbuffer n) C (n + 1) |
| 909 | (lowerHistory hbuffer (n + 1) previous) |
| 910 | |
| 911 | /-- The actual sequence is built by well-founded recursion from one base |
| 912 | coefficient. Every recursive input has a strictly smaller slow index. -/ |
| 913 | noncomputable def hierarchy {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 914 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 915 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) (n : ℕ) : |
| 916 | Coefficient (radius core buffer n) U := |
| 917 | Nat.lt_wfRel.wf.fix (recursionStep c hcore hbuffer C base) n |
| 918 | |
| 919 | theorem hierarchy_zero {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 920 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 921 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) : |
| 922 | hierarchy c hcore hbuffer C base 0 = base := by |
| 923 | unfold hierarchy |
| 924 | rw [WellFounded.fix_eq] |
| 925 | rfl |
| 926 | |
| 927 | theorem hierarchy_succ {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 928 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 929 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) (n : ℕ) : |
| 930 | hierarchy c hcore hbuffer C base (n + 1) = |
| 931 | step (radiusDomain c hcore hbuffer n) |
| 932 | (radius_pos hcore hbuffer (n + 1)) (radius_succ_lt hbuffer n) C (n + 1) |
| 933 | (lowerHistory hbuffer (n + 1) (fun j _ => hierarchy c hcore hbuffer C base j)) := by |
| 934 | unfold hierarchy |
| 935 | rw [WellFounded.fix_eq] |
| 936 | rfl |
| 937 | |
| 938 | /-- All orders on the same radial rectangle and the same complex |
| 939 | parameter neighborhood. Restriction changes no pointwise function value. -/ |
| 940 | noncomputable def sequence {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 941 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 942 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) (n : ℕ) : Coefficient core U := |
| 943 | fun i => restrict (core_lt_radius hbuffer n).le (hierarchy c hcore hbuffer C base n i) |
| 944 | |
| 945 | theorem sequence_profile {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 946 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 947 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) (n : ℕ) (i : Fin 5) : |
| 948 | profile (sequence c hcore hbuffer C base n i) = profile (hierarchy c hcore hbuffer C base n i) := rfl |
| 949 | |
| 950 | theorem sequence_zero {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 951 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 952 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) (i : Fin 5) : |
| 953 | profile (sequence c hcore hbuffer C base 0 i) = profile (base i) := by |
| 954 | rw [sequence_profile, hierarchy_zero] |
| 955 | |
| 956 | theorem lowerHistory_profile {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 957 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 958 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) {n j : ℕ} (hj : j < n) (i : Fin 5) : |
| 959 | profile (lowerHistory hbuffer n (fun j _ => hierarchy c hcore hbuffer C base j) j i) = |
| 960 | profile (sequence c hcore hbuffer C base j i) := by |
| 961 | funext p |
| 962 | exact congrArg Complex.re (lowerHistory_apply hbuffer n _ hj i (Real.sqrt p.1, (p.2 : ℂ))) |
| 963 | |
| 964 | theorem previousOmega_congr (h : ℝ) {n : ℕ} |
| 965 | {u beta u' beta' : ℕ → SimilarityProfile.InnerProfile} |
| 966 | (hu : ∀ j, j < n → u j = u' j) (hb : ∀ j, j < n → beta j = beta' j) : |
| 967 | AxisSourceRegularity.previousOmegaDivX h u beta n = |
| 968 | AxisSourceRegularity.previousOmegaDivX h u' beta' n := by |
| 969 | cases n with |
| 970 | | zero => rfl |
| 971 | | succ k => |
| 972 | funext w |
| 973 | have hs : (∑ ij ∈ Finset.antidiagonal k, |
| 974 | (beta ij.1 w * (beta ij.2 w / 2 + w.1 * SimilarityProfile.partialX (beta ij.2) w) + |
| 975 | u ij.1 w * SimilarityProfile.Z h (AxisSourceRegularity.slowOrder h ij.2 - 1) (beta ij.2) w)) = |
| 976 | ∑ ij ∈ Finset.antidiagonal k, |
| 977 | (beta' ij.1 w * (beta' ij.2 w / 2 + w.1 * SimilarityProfile.partialX (beta' ij.2) w) + |
| 978 | u' ij.1 w * SimilarityProfile.Z h (AxisSourceRegularity.slowOrder h ij.2 - 1) (beta' ij.2) w) := by |
| 979 | apply Finset.sum_congr rfl |
| 980 | intro ij hij |
| 981 | have hij' := Finset.mem_antidiagonal.mp hij |
| 982 | rw [hb ij.1 (by omega), hb ij.2 (by omega), hu ij.1 (by omega)] |
| 983 | have hp : AxisSourceRegularity.shiftedAxialFactor h beta k = |
| 984 | AxisSourceRegularity.shiftedAxialFactor h beta' k := by |
| 985 | cases k with |
| 986 | | zero => rfl |
| 987 | | succ k => simp only [AxisSourceRegularity.shiftedAxialFactor, hb k (by omega)] |
| 988 | simp only [AxisSourceRegularity.previousOmegaDivX, AxisSourceRegularity.omegaDivX, |
| 989 | hb k (Nat.lt_succ_self k), hs, hp] |
| 990 | |
| 991 | theorem sequence_succ_profile {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 992 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 993 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) (n : ℕ) (i : Fin 5) : |
| 994 | profile (sequence c hcore hbuffer C base (n + 1) i) = |
| 995 | profile (step (radiusDomain c hcore hbuffer n) |
| 996 | (radius_pos hcore hbuffer (n + 1)) (radius_succ_lt hbuffer n) C (n + 1) |
| 997 | (lowerHistory hbuffer (n + 1) (fun j _ => hierarchy c hcore hbuffer C base j)) i) := by |
| 998 | rw [sequence_profile, hierarchy_succ] |
| 999 | |
| 1000 | theorem core_square_lt {core buffer X : ℝ} (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 1001 | (hX : X < core ^ 2) (n : ℕ) : X < radius core buffer n ^ 2 := by |
| 1002 | have hr := core_lt_radius (core := core) hbuffer n |
| 1003 | nlinarith |
| 1004 | |
| 1005 | theorem sequence_beta {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 1006 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 1007 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) {n : ℕ} (hn : 0 < n) |
| 1008 | {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (core ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 1009 | profile (sequence c hcore hbuffer C base n 4) (X, eta) = |
| 1010 | PositiveAxisExistence.newBeta h n (profile (sequence c hcore hbuffer C base n 1)) |
| 1011 | (profile (sequence c hcore hbuffer C base n 2)) (X, eta) := by |
| 1012 | obtain ⟨m, rfl⟩ := Nat.exists_eq_succ_of_ne_zero (Nat.ne_of_gt hn) |
| 1013 | simp only [sequence_succ_profile] |
| 1014 | exact step_beta (radiusDomain c hcore hbuffer m) (radius_pos hcore hbuffer (m + 1)) |
| 1015 | (radius_succ_lt hbuffer m) C (m + 1) _ |
| 1016 | ⟨hX.1, core_square_lt hcore hbuffer hX.2 (m + 1)⟩ heta |
| 1017 | |
| 1018 | theorem sequence_expanded {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 1019 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 1020 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) {n : ℕ} (hn : 0 < n) |
| 1021 | {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (core ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 1022 | let A := sequence c hcore hbuffer C base |
| 1023 | PositiveAxisSystem.ExpandedEquations h (PositiveAxisSystem.slowPower h n) C eta X |
| 1024 | (PositiveAxisSystem.baseAtOrderZero |
| 1025 | (fun j => PositiveAxisSystem.actualJet (profile (A j 0)) (X, eta)) |
| 1026 | (fun j => PositiveAxisSystem.actualJet (profile (A j 1)) (X, eta)) |
| 1027 | (fun j => profile (A j 4) (X, eta))) |
| 1028 | (PositiveAxisSystem.actualLowerSource h n (fun j => profile (A j 0)) (fun j => profile (A j 1)) |
| 1029 | (fun j => profile (A j 4)) (AxisSourceRegularity.previousOmegaDivX h |
| 1030 | (fun j => profile (A j 1)) (fun j => profile (A j 4)) n) (X, eta)) |
| 1031 | (PositiveAxisSystem.actualJet (profile (A n 0)) (X, eta)) |
| 1032 | (PositiveAxisSystem.actualJet (profile (A n 1)) (X, eta)) |
| 1033 | (PositiveAxisSystem.actualJet (profile (A n 2)) (X, eta)) |
| 1034 | (PositiveAxisSystem.actualJet (profile (A n 3)) (X, eta)) := by |
| 1035 | obtain ⟨m, rfl⟩ := Nat.exists_eq_succ_of_ne_zero (Nat.ne_of_gt hn) |
| 1036 | let A := sequence c hcore hbuffer C base |
| 1037 | let H := lowerHistory hbuffer (m + 1) (fun j _ => hierarchy c hcore hbuffer C base j) |
| 1038 | have hH (j : ℕ) (hj : j < m + 1) (i : Fin 5) : profile (H j i) = profile (A j i) := |
| 1039 | lowerHistory_profile c hcore hbuffer C base hj i |
| 1040 | have hO := previousOmega_congr h (fun j hj => hH j hj 1) (fun j hj => hH j hj 4) |
| 1041 | have hS := PositiveAxisSystem.actualLowerSource_congr h |
| 1042 | (AxisSourceRegularity.previousOmegaDivX h (fun j => profile (A j 1)) (fun j => profile (A j 4)) (m + 1)) |
| 1043 | (fun j hj => hH j hj 0) (fun j hj => hH j hj 1) (fun j hj => hH j hj 4) (X, eta) |
| 1044 | have hB : PositiveAxisSystem.baseAtOrderZero |
| 1045 | (fun j => PositiveAxisSystem.actualJet (profile (H j 0)) (X, eta)) |
| 1046 | (fun j => PositiveAxisSystem.actualJet (profile (H j 1)) (X, eta)) |
| 1047 | (fun j => profile (H j 4) (X, eta)) = |
| 1048 | PositiveAxisSystem.baseAtOrderZero |
| 1049 | (fun j => PositiveAxisSystem.actualJet (profile (A j 0)) (X, eta)) |
| 1050 | (fun j => PositiveAxisSystem.actualJet (profile (A j 1)) (X, eta)) |
| 1051 | (fun j => profile (A j 4) (X, eta)) := by |
| 1052 | simp only [PositiveAxisSystem.baseAtOrderZero, hH 0 (Nat.zero_lt_succ m)] |
| 1053 | have hout := step_expanded (radiusDomain c hcore hbuffer m) |
| 1054 | (radius_pos hcore hbuffer (m + 1)) (radius_succ_lt hbuffer m) C (m + 1) H |
| 1055 | ⟨hX.1, core_square_lt hcore hbuffer hX.2 (m + 1)⟩ heta |
| 1056 | rw [hO, hS, hB] at hout |
| 1057 | simpa only [A, H, ← sequence_succ_profile] using hout |
| 1058 | |
| 1059 | /-- Every positive slow coefficient solves the actual finite convolution |
| 1060 | equations, with the lower radial residual computed from the same hierarchy. -/ |
| 1061 | theorem sequence_positive_order {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 1062 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 1063 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) {n : ℕ} (hn : 0 < n) |
| 1064 | {X eta : ℝ} (hX : X ∈ Ioo (0 : ℝ) (core ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 1065 | let A := sequence c hcore hbuffer C base |
| 1066 | PositiveAxisSystem.PositiveOrderEquations h C eta X n |
| 1067 | (fun j => PositiveAxisSystem.actualJet (profile (A j 0)) (X, eta)) |
| 1068 | (fun j => PositiveAxisSystem.actualJet (profile (A j 1)) (X, eta)) |
| 1069 | (fun j => profile (A j 4) (X, eta)) |
| 1070 | (PositiveAxisSystem.actualJet (profile (A n 2)) (X, eta)) |
| 1071 | (PositiveAxisSystem.actualJet (profile (A n 3)) (X, eta)) |
| 1072 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.angularPower h) (fun j => profile (A j 0)) n (X, eta)) |
| 1073 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.axialPower h) (fun j => profile (A j 1)) n (X, eta)) |
| 1074 | (AxisSourceRegularity.previousOmegaDivX h (fun j => profile (A j 1)) (fun j => profile (A j 4)) n (X, eta)) := by |
| 1075 | apply (PositiveAxisSystem.expanded_iff_positiveOrder h C eta X hn _ _ _ _ _ _ _ _ |
| 1076 | (sequence_beta c hcore hbuffer C base hn hX heta)).mp |
| 1077 | exact sequence_expanded c hcore hbuffer C base hn hX heta |
| 1078 | |
| 1079 | theorem sequence_axis_zero {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 1080 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 1081 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) {n : ℕ} (hn : 0 < n) |
| 1082 | (i : Fin 5) {z : ℂ} (hz : z ∈ U) : sequence c hcore hbuffer C base n i (0, z) = 0 := by |
| 1083 | obtain ⟨m, rfl⟩ := Nat.exists_eq_succ_of_ne_zero (Nat.ne_of_gt hn) |
| 1084 | change hierarchy c hcore hbuffer C base (m + 1) i (0, z) = 0 |
| 1085 | rw [hierarchy_succ] |
| 1086 | exact step_axis_zero _ _ _ _ _ _ _ hz |
| 1087 | |
| 1088 | theorem domain_real_denominator {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 1089 | {eta : ℝ} (heta : (eta : ℂ) ∈ U) : SimilarityProfile.L h eta ≠ 0 := by |
| 1090 | have he : ((SimilarityProfile.L h eta : ℝ) : ℂ) = PositiveAxisSystem.ell (h : ℂ) (eta : ℂ) := by |
| 1091 | simp [SimilarityProfile.L, CoordinateAlgebra.L, PositiveAxisSystem.ell] |
| 1092 | intro hh |
| 1093 | apply c.denominator (eta : ℂ) heta |
| 1094 | rw [← he, hh, Complex.ofReal_zero] |
| 1095 | |
| 1096 | theorem average_from_equation {R : ℝ} (hR : 0 < R) {U : Set ℂ} (hU : IsOpen U) |
| 1097 | (u k : AxisFunction R U) {eta X : ℝ} (heta : (eta : ℂ) ∈ U) |
| 1098 | (hX : X ∈ Ioo (0 : ℝ) (R ^ 2)) |
| 1099 | (heq : ∀ Y ∈ Ioo (0 : ℝ) (R ^ 2), |
| 1100 | Y * (SimilarityProfile.partialX (profile u) (Y, eta) + |
| 1101 | SimilarityProfile.partialX (profile k) (Y, eta)) + profile k (Y, eta) = 0) : |
| 1102 | ProfileHistories.average (profile u) (X, eta) = profile u (X, eta) + profile k (X, eta) := by |
| 1103 | have hc (F : AxisFunction R U) : ContinuousOn (fun Y => profile F (Y, eta)) (Icc (0 : ℝ) X) := |
| 1104 | (profile_smooth hR hU F).continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn |
| 1105 | (fun Y hY => ⟨⟨hY.1, lt_of_le_of_lt hY.2 hX.2⟩, heta⟩) |
| 1106 | have hd (F : AxisFunction R U) (Y : ℝ) (hY : Y ∈ Ioo (0 : ℝ) X) : |
| 1107 | HasDerivAt (fun Z => profile F (Z, eta)) (SimilarityProfile.partialX (profile F) (Y, eta)) Y := by |
| 1108 | exact ((profile_contDiffAt hR hU F ⟨hY.1, lt_trans hY.2 hX.2⟩ heta).differentiableAt |
| 1109 | (by simp)).hasFDerivAt.comp_hasDerivAt Y ((hasDerivAt_id Y).prodMk (hasDerivAt_const Y eta)) |
| 1110 | have hi : IntervalIntegrable (fun Y => profile u (Y, eta)) MeasureTheory.volume 0 X := by |
| 1111 | apply ContinuousOn.intervalIntegrable |
| 1112 | simpa only [uIcc_of_le hX.1.le] using hc u |
| 1113 | have he := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le hX.1.le |
| 1114 | (continuousOn_id.fun_mul ((hc u).fun_add (hc k))) |
| 1115 | (fun Y hY => show HasDerivAt (fun Z => Z * (profile u (Z, eta) + profile k (Z, eta))) |
| 1116 | (profile u (Y, eta)) Y from by |
| 1117 | convert! (hasDerivAt_id Y).fun_mul ((hd u Y hY).fun_add (hd k Y hY)) using 1 |
| 1118 | have hh := heq Y ⟨hY.1, lt_trans hY.2 hX.2⟩ |
| 1119 | simp only [id_eq, one_mul] |
| 1120 | linarith) hi |
| 1121 | have hmean : X * ProfileHistories.average (profile u) (X, eta) = |
| 1122 | ∫ Y in (0 : ℝ)..X, profile u (Y, eta) := by |
| 1123 | change X • (∫ t in (0 : ℝ)..1, profile u (t * X, eta)) = _ |
| 1124 | rw [intervalIntegral.smul_integral_comp_mul_right (f := fun Y => profile u (Y, eta)), zero_mul, one_mul] |
| 1125 | rw [he] at hmean |
| 1126 | simp only [id_eq, zero_mul, sub_zero] at hmean |
| 1127 | exact (mul_left_cancel₀ hX.1.ne' hmean) |
| 1128 | |
| 1129 | /-- The stored average defect is the literal integral average, including |
| 1130 | the axis. No free integration constant survives the regular zero trace. -/ |
| 1131 | theorem sequence_average {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 1132 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 1133 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) {n : ℕ} (hn : 0 < n) |
| 1134 | {X eta : ℝ} (hX : X ∈ Ico (0 : ℝ) (core ^ 2)) (heta : (eta : ℂ) ∈ U) : |
| 1135 | let A := sequence c hcore hbuffer C base |
| 1136 | ProfileHistories.average (profile (A n 1)) (X, eta) = |
| 1137 | profile (A n 1) (X, eta) + profile (A n 2) (X, eta) := by |
| 1138 | by_cases hz : X = 0 |
| 1139 | · subst X |
| 1140 | have hk : profile (sequence c hcore hbuffer C base n 2) (0, eta) = 0 := by |
| 1141 | change (sequence c hcore hbuffer C base n 2 (Real.sqrt 0, (eta : ℂ))).re = 0 |
| 1142 | rw [Real.sqrt_zero, sequence_axis_zero c hcore hbuffer C base hn 2 heta] |
| 1143 | rfl |
| 1144 | simp [ProfileHistories.average, hk] |
| 1145 | · exact average_from_equation hcore c.open_set _ _ heta ⟨lt_of_le_of_ne hX.1 (Ne.symm hz), hX.2⟩ |
| 1146 | (fun Y hY => (sequence_positive_order c hcore hbuffer C base hn hY heta).1) |
| 1147 | |
| 1148 | theorem profile_axis_jet {R : ℝ} (hR : 0 < R) {U : Set ℂ} (F : AxisFunction R U) |
| 1149 | {eta : ℝ} (heta : (eta : ℂ) ∈ U) (k : ℕ) : |
| 1150 | iteratedDerivWithin k (fun X => profile F (X, eta)) (Ici 0) 0 = |
| 1151 | ((k.factorial : ℝ) / ((2 * k).factorial : ℝ)) • |
| 1152 | iteratedDeriv (2 * k) (fun r => (F (r, (eta : ℂ))).re) 0 := by |
| 1153 | apply EvenSmoothDescent.iteratedDerivWithin_descent_zero_local |
| 1154 | (f := fun r => (F (r, (eta : ℂ))).re) hR |
| 1155 | · exact Complex.reCLM.contDiff.comp_contDiffOn |
| 1156 | (F.2.smooth.comp (contDiff_id.prodMk contDiff_const).contDiffOn (fun r hr => ⟨hr, heta⟩)) |
| 1157 | · exact fun r hr => congrArg Complex.re (F.2.even _ heta r hr) |
| 1158 | |
| 1159 | /-- A base made from four genuine profiles; its divergence coefficient is |
| 1160 | computed by the same canonical derivative operator used in the recursion. -/ |
| 1161 | noncomputable def makeBase {R : ℝ} {U : Set ℂ} {h : ℝ} (c : Domain R U h) |
| 1162 | (phi u average pressure : AxisFunction R U) : Coefficient R U := |
| 1163 | ![phi, u, average - u, pressure, betaOperator c 0 u (average - u)] |
| 1164 | |
| 1165 | /-- The concrete finite equations of an actual sequence of profile functions. -/ |
| 1166 | def OrderEquations {R : ℝ} {U : Set ℂ} (h C : ℝ) (A : ℕ → Coefficient R U) |
| 1167 | (n : ℕ) (w : SimilarityProfile.InnerPoint) : Prop := |
| 1168 | PositiveAxisSystem.PositiveOrderEquations h C w.2 w.1 n |
| 1169 | (fun j => PositiveAxisSystem.actualJet (profile (A j 0)) w) |
| 1170 | (fun j => PositiveAxisSystem.actualJet (profile (A j 1)) w) |
| 1171 | (fun j => profile (A j 4) w) |
| 1172 | (PositiveAxisSystem.actualJet (profile (A n 2)) w) |
| 1173 | (PositiveAxisSystem.actualJet (profile (A n 3)) w) |
| 1174 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.angularPower h) (fun j => profile (A j 0)) n w) |
| 1175 | (PositiveAxisSystem.precedingDiffusion h (PositiveAxisSystem.axialPower h) (fun j => profile (A j 1)) n w) |
| 1176 | (AxisSourceRegularity.previousOmegaDivX h (fun j => profile (A j 1)) (fun j => profile (A j 4)) n w) |
| 1177 | |
| 1178 | /-- A local slow hierarchy is the output, not a hypothesis on the data. |
| 1179 | Its underlying type supplies genuine compatible smooth coefficient functions. -/ |
| 1180 | structure LocalHierarchy (R : ℝ) (U : Set ℂ) (h C : ℝ) |
| 1181 | (base : Fin 5 → SimilarityProfile.InnerProfile) where |
| 1182 | coefficients : ℕ → Coefficient R U |
| 1183 | starts : ∀ i, profile (coefficients 0 i) = base i |
| 1184 | zero_axis : ∀ n, 0 < n → ∀ i : Fin 5, ∀ z ∈ U, coefficients n i (0, z) = 0 |
| 1185 | beta : ∀ n, 0 < n → ∀ X ∈ Ioo (0 : ℝ) (R ^ 2), ∀ eta : ℝ, (eta : ℂ) ∈ U → |
| 1186 | profile (coefficients n 4) (X, eta) = PositiveAxisExistence.newBeta h n |
| 1187 | (profile (coefficients n 1)) (profile (coefficients n 2)) (X, eta) |
| 1188 | equations : ∀ n, 0 < n → ∀ X ∈ Ioo (0 : ℝ) (R ^ 2), ∀ eta : ℝ, (eta : ℂ) ∈ U → |
| 1189 | OrderEquations h C coefficients n (X, eta) |
| 1190 | average : ∀ n, 0 < n → ∀ X ∈ Ico (0 : ℝ) (R ^ 2), ∀ eta : ℝ, (eta : ℂ) ∈ U → |
| 1191 | ProfileHistories.average (profile (coefficients n 1)) (X, eta) = |
| 1192 | profile (coefficients n 1) (X, eta) + profile (coefficients n 2) (X, eta) |
| 1193 | |
| 1194 | /-- Construct every positive slow order from a single finite base profile. |
| 1195 | The entire sequence uses one fixed radial core and one fixed parameter domain. -/ |
| 1196 | noncomputable def buildLocalHierarchy {core buffer : ℝ} {U : Set ℂ} {h : ℝ} |
| 1197 | (c : Domain (radius core buffer 0) U h) (hcore : 0 < core) (hbuffer : 0 < buffer) |
| 1198 | (C : ℝ) (base : Coefficient (radius core buffer 0) U) : |
| 1199 | LocalHierarchy core U h C (fun i => profile (base i)) where |
| 1200 | coefficients := sequence c hcore hbuffer C base |
| 1201 | starts := sequence_zero c hcore hbuffer C base |
| 1202 | zero_axis := fun _ hn i _ hz => sequence_axis_zero c hcore hbuffer C base hn i hz |
| 1203 | beta := fun _ hn _ hX _ heta => sequence_beta c hcore hbuffer C base hn hX heta |
| 1204 | equations := fun _ hn _ hX _ heta => sequence_positive_order c hcore hbuffer C base hn hX heta |
| 1205 | average := fun _ hn _ hX _ heta => sequence_average c hcore hbuffer C base hn hX heta |
| 1206 | |
| 1207 | theorem LocalHierarchy.profiles_smooth {R : ℝ} {U : Set ℂ} {h C : ℝ} |
| 1208 | {base : Fin 5 → SimilarityProfile.InnerProfile} (A : LocalHierarchy R U h C base) |
| 1209 | (hR : 0 < R) (hU : IsOpen U) (n : ℕ) (i : Fin 5) : |
| 1210 | ContDiffOn ℝ ∞ (profile (A.coefficients n i)) |
| 1211 | (Ico (0 : ℝ) (R ^ 2) ×ˢ PositiveAxisExistence.realParameterDomain U) := |
| 1212 | profile_smooth hR hU _ |
| 1213 | |
| 1214 | end NavierStokes.SlowRecursion |