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.AxisHolomorphicJoint |
| 2 | import NavierStokes.HolomorphicFamily |
| 3 | import NavierStokes.ReferenceJetBounds |
| 4 | import NavierStokes.StressActivation |
| 5 | import Mathlib.Analysis.SpecialFunctions.Complex.LogDeriv |
| 6 | import Mathlib.Analysis.Complex.LocallyUniformLimit |
| 7 | import Mathlib.Algebra.Group.EvenFunction |
| 8 | |
| 9 | /-! |
| 10 | # A common holomorphic parameter neighborhood through initial activation |
| 11 | |
| 12 | All continuations below are explicit integrals of the actual natural slopes. |
| 13 | The complex neighborhood is obtained from compactness and real positivity. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.ActivationHolomorphic |
| 19 | |
| 20 | open Set Filter Metric MeasureTheory Complex |
| 21 | open scoped Topology ContDiff |
| 22 | |
| 23 | |
| 24 | abbrev CPoint := ℝ × ℂ |
| 25 | abbrev CField := CPoint → ℂ |
| 26 | |
| 27 | def radial (F : CField) (p : CPoint) : ℂ := deriv (fun x => F (x, p.2)) p.1 |
| 28 | |
| 29 | /-- Joint real smoothness and actual holomorphic parameter slices. -/ |
| 30 | structure Regular (S : Set ℝ) (Ω : Set ℂ) (F : CField) : Prop where |
| 31 | smooth : ContDiffOn ℝ ∞ F (S ×ˢ Ω) |
| 32 | holomorphic : ∀ x ∈ S, DifferentiableOn ℂ (fun z => F (x, z)) Ω |
| 33 | |
| 34 | theorem radial_smooth {S : Set ℝ} {Ω : Set ℂ} (hS : IsOpen S) (hΩ : IsOpen Ω) |
| 35 | {F : CField} (hF : ContDiffOn ℝ ∞ F (S ×ˢ Ω)) : |
| 36 | ContDiffOn ℝ ∞ (radial F) (S ×ˢ Ω) := by |
| 37 | intro p hp |
| 38 | have hbase := hF.contDiffAt ((hS.prod hΩ).mem_nhds hp) |
| 39 | have hG : ContDiffAt ℝ ∞ (fun w : CPoint × ℝ => F (w.2, w.1.2)) (p, p.1) := |
| 40 | hbase.comp (p, p.1) (contDiffAt_snd.prodMk contDiffAt_fst.snd) |
| 41 | exact ((hG.fderiv contDiffAt_fst (by simp)).clm_apply contDiffAt_const).contDiffWithinAt |
| 42 | |
| 43 | /-- Radial differentiation preserves holomorphy on an arbitrary open radial |
| 44 | domain. The difference quotients converge uniformly on each compact disk. -/ |
| 45 | theorem radial_holomorphic {S : Set ℝ} {Ω : Set ℂ} (hS : IsOpen S) (hΩ : IsOpen Ω) |
| 46 | {F : CField} (hF : ContDiffOn ℝ ∞ F (S ×ˢ Ω)) |
| 47 | (hhol : ∀ r ∈ S, DifferentiableOn ℂ (fun z => F (r, z)) Ω) |
| 48 | {r : ℝ} (hr : r ∈ S) : DifferentiableOn ℂ (fun z => radial F (r, z)) Ω := by |
| 49 | intro z hz |
| 50 | obtain ⟨ε, hε, hεsub⟩ := Metric.mem_nhds_iff.mp (hΩ.mem_nhds hz) |
| 51 | let σ := ε / 2 |
| 52 | have hσ : 0 < σ := by dsimp [σ]; linarith |
| 53 | have hDisk : closedBall z σ ⊆ Ω := |
| 54 | (closedBall_subset_ball (by dsimp [σ]; linarith : σ < ε)).trans hεsub |
| 55 | let V : ℝ → C(CauchyRestriction.Disk z σ, ℂ) := |
| 56 | CompactSmoothFamily.family (closedBall z σ) F |
| 57 | have hV : ContDiffOn ℝ ∞ V S := |
| 58 | CompactSmoothFamily.contDiffOn_family_of_joint (closedBall z σ) S Ω |
| 59 | hS hΩ hDisk F hF |
| 60 | have hval (s : ℝ) (hs : s ∈ S) (w : CauchyRestriction.Disk z σ) : V s w = F (s, w) := |
| 61 | CompactSmoothFamily.family_apply_of_joint (closedBall z σ) hDisk F hF.continuousOn hs w |
| 62 | have hd : HasDerivAt V (deriv V r) r := |
| 63 | (hV.contDiffAt (hS.mem_nhds hr)).differentiableAt (by simp) |>.hasDerivAt |
| 64 | have hderiv (w : CauchyRestriction.Disk z σ) : deriv V r w = radial F (r, w) := by |
| 65 | have he := (ContinuousMap.evalCLM ℝ w).hasFDerivAt.comp_hasDerivAt r hd |
| 66 | have heq : (fun s => V s w) =ᶠ[𝓝 r] (fun s => F (s, w)) := by |
| 67 | filter_upwards [hS.mem_nhds hr] with s hs |
| 68 | exact hval s hs w |
| 69 | exact (he.congr_of_eventuallyEq heq.symm).deriv.symm |
| 70 | let Q : ℝ → ℂ → ℂ := fun t w => t⁻¹ • (F (r + t, w) - F (r, w)) |
| 71 | have hnear : ∀ᶠ t : ℝ in 𝓝 (0 : ℝ), r + t ∈ S := by |
| 72 | exact |
| 73 | (continuousAt_const.fun_add continuousAt_id : ContinuousAt (fun t : ℝ => r + t) 0).eventually |
| 74 | (hS.mem_nhds (by simpa only [add_zero] using hr)) |
| 75 | have hlim : TendstoUniformlyOn Q (fun w => radial F (r, w)) (𝓝[≠] (0 : ℝ)) (ball z σ) := by |
| 76 | rw [Metric.tendstoUniformlyOn_iff] |
| 77 | intro δ hδ |
| 78 | have ht := Metric.tendsto_nhds.mp hd.tendsto_slope_zero δ hδ |
| 79 | filter_upwards [ht, hnear.filter_mono nhdsWithin_le_nhds] with t ht htr |
| 80 | intro w hw |
| 81 | let w' : CauchyRestriction.Disk z σ := ⟨w, ball_subset_closedBall hw⟩ |
| 82 | have hb := (deriv V r - t⁻¹ • (V (r + t) - V r)).norm_coe_le_norm w' |
| 83 | have hn : ‖radial F (r, w) - Q t w‖ ≤ |
| 84 | ‖deriv V r - t⁻¹ • (V (r + t) - V r)‖ := by |
| 85 | simpa only [ContinuousMap.sub_apply, ContinuousMap.smul_apply, hderiv, |
| 86 | hval (r + t) htr, hval r hr, Q, w'] using hb |
| 87 | rw [dist_eq_norm] |
| 88 | apply hn.trans_lt |
| 89 | simpa only [dist_eq_norm, norm_sub_rev] using ht |
| 90 | have hQ : ∀ᶠ t in 𝓝[≠] (0 : ℝ), DifferentiableOn ℂ (Q t) (ball z σ) := by |
| 91 | filter_upwards [hnear.filter_mono nhdsWithin_le_nhds] with t ht |
| 92 | exact (((hhol (r + t) ht).sub (hhol r hr)).const_smul t⁻¹).mono |
| 93 | (ball_subset_closedBall.trans hDisk) |
| 94 | have hdiff := hlim.tendstoLocallyUniformlyOn.differentiableOn hQ isOpen_ball |
| 95 | exact (hdiff.differentiableAt (Metric.ball_mem_nhds z hσ)).differentiableWithinAt |
| 96 | |
| 97 | theorem Regular.radial {S : Set ℝ} {Ω : Set ℂ} {F : CField} |
| 98 | (hF : Regular S Ω F) (hS : IsOpen S) (hΩ : IsOpen Ω) : Regular S Ω (radial F) := |
| 99 | ⟨radial_smooth hS hΩ hF.smooth, fun _ hr => radial_holomorphic hS hΩ hF.smooth hF.holomorphic hr⟩ |
| 100 | |
| 101 | theorem Regular.mono {S S' : Set ℝ} {Ω Ω' : Set ℂ} {F : CField} |
| 102 | (hF : Regular S Ω F) (hS : S' ⊆ S) (hΩ : Ω' ⊆ Ω) : Regular S' Ω' F := |
| 103 | ⟨hF.smooth.mono (Set.prod_mono hS hΩ), fun _ hx => (hF.holomorphic _ (hS hx)).mono hΩ⟩ |
| 104 | |
| 105 | theorem regular_const (S : Set ℝ) (Ω : Set ℂ) (c : ℂ) : Regular S Ω (fun _ => c) := |
| 106 | ⟨contDiffOn_const, fun _ _ => differentiableOn_const c⟩ |
| 107 | |
| 108 | theorem Regular.add {S : Set ℝ} {Ω : Set ℂ} {F G : CField} |
| 109 | (hF : Regular S Ω F) (hG : Regular S Ω G) : Regular S Ω (fun p => F p + G p) := |
| 110 | ⟨hF.smooth.add hG.smooth, fun x hx => (hF.holomorphic x hx).add (hG.holomorphic x hx)⟩ |
| 111 | |
| 112 | theorem Regular.mul {S : Set ℝ} {Ω : Set ℂ} {F G : CField} |
| 113 | (hF : Regular S Ω F) (hG : Regular S Ω G) : Regular S Ω (fun p => F p * G p) := |
| 114 | ⟨hF.smooth.mul hG.smooth, fun x hx => (hF.holomorphic x hx).mul (hG.holomorphic x hx)⟩ |
| 115 | |
| 116 | theorem Regular.cexp {S : Set ℝ} {Ω : Set ℂ} {F : CField} (hF : Regular S Ω F) : |
| 117 | Regular S Ω (fun p => Complex.exp (F p)) := |
| 118 | ⟨((Complex.contDiff_exp : ContDiff ℂ ∞ Complex.exp).restrict_scalars ℝ).comp_contDiffOn hF.smooth, |
| 119 | fun x hx => (hF.holomorphic x hx).cexp⟩ |
| 120 | |
| 121 | theorem Regular.clog {S : Set ℝ} {Ω : Set ℂ} {F : CField} |
| 122 | (hF : Regular S Ω F) (hne : ∀ p ∈ S ×ˢ Ω, F p ∈ Complex.slitPlane) : |
| 123 | Regular S Ω (fun p => Complex.log (F p)) := by |
| 124 | constructor |
| 125 | · intro p hp |
| 126 | exact ((Complex.contDiffAt_log (hne p hp)).restrict_scalars ℝ |>.comp_contDiffWithinAt p |
| 127 | (hF.smooth p hp)) |
| 128 | · intro x hx z hz |
| 129 | exact ((hF.holomorphic x hx z hz).clog (hne (x,z) ⟨hx,hz⟩)) |
| 130 | |
| 131 | theorem regular_parameter {S : Set ℝ} {Ω : Set ℂ} {g : ℂ → ℂ} |
| 132 | (hg : AnalyticOnNhd ℂ g Ω) : Regular S Ω (fun p => g p.2) := |
| 133 | ⟨(hg.contDiffOn_of_completeSpace.restrict_scalars ℝ).comp contDiffOn_snd (fun _ hp => hp.2), |
| 134 | fun _ _ => hg.differentiableOn⟩ |
| 135 | |
| 136 | theorem regular_radius {S : Set ℝ} {Ω : Set ℂ} {g : ℝ → ℝ} (hg : ContDiffOn ℝ ∞ g S) : |
| 137 | Regular S Ω (fun p => (g p.1 : ℂ)) := |
| 138 | ⟨Complex.ofRealCLM.contDiff.comp_contDiffOn (hg.comp contDiffOn_fst (fun _ hp => hp.1)), |
| 139 | fun x _ => by |
| 140 | change DifferentiableOn ℂ (fun _ : ℂ => (g x : ℂ)) Ω |
| 141 | exact differentiableOn_const _⟩ |
| 142 | |
| 143 | section CompactIntegral |
| 144 | |
| 145 | variable {H : Type*} [NormedAddCommGroup H] [NormedSpace ℝ H] [ProperSpace H] |
| 146 | {s : Set H} {G : H × ℝ → ℂ} |
| 147 | |
| 148 | theorem compact_integral_smooth (hs : IsOpen s) |
| 149 | (hG : ∀ p ∈ s, ∀ t ∈ Icc (0 : ℝ) 1, ContDiffAt ℝ ∞ G (p,t)) : |
| 150 | ContDiffOn ℝ ∞ (fun p => ∫ t in (0 : ℝ)..1, G (p,t)) s := by |
| 151 | apply SmoothParameterIntegral.contDiffOn_intervalIntegral_of_continuous_jet hs zero_le_one |
| 152 | · intro t ht p hp |
| 153 | exact ((hG p hp t ht).comp p (contDiffAt_id.prodMk contDiffAt_const)).contDiffWithinAt |
| 154 | · intro k |
| 155 | rintro ⟨p,t⟩ ⟨hp,ht⟩ |
| 156 | have hflip : ContDiffAt ℝ ∞ (Function.uncurry (fun t p => G (p,t))) (t,p) := |
| 157 | (hG p hp t ht).comp (t,p) (contDiffAt_snd.prodMk contDiffAt_fst) |
| 158 | have hd := ParametricFlatFactor.contDiffAt_partial_iteratedFDeriv (fun t p => G (p,t)) k t p hflip |
| 159 | exact ((hd.comp (p,t) (contDiffAt_snd.prodMk contDiffAt_fst)).continuousAt).continuousWithinAt |
| 160 | |
| 161 | end CompactIntegral |
| 162 | |
| 163 | abbrev Segment := ↥(Icc (0 : ℝ) 1) |
| 164 | |
| 165 | def segmentExtend (f : C(Segment, ℂ)) (t : ℝ) : ℂ := |
| 166 | f (projIcc 0 1 zero_le_one t) |
| 167 | |
| 168 | theorem segmentExtend_continuous (f : C(Segment, ℂ)) : Continuous (segmentExtend f) := |
| 169 | f.continuous.comp continuous_projIcc |
| 170 | |
| 171 | theorem segmentIntegral_norm (f : C(Segment, ℂ)) : |
| 172 | ‖∫ t in (0 : ℝ)..1, segmentExtend f t‖ ≤ 1 * ‖f‖ := by |
| 173 | have h := intervalIntegral.norm_integral_le_of_norm_le_const |
| 174 | (a := (0 : ℝ)) (b := 1) (f := segmentExtend f) |
| 175 | (fun t _ => f.norm_coe_le_norm (projIcc 0 1 zero_le_one t)) |
| 176 | simpa only [sub_zero, abs_one, mul_one, one_mul] using h |
| 177 | |
| 178 | noncomputable def segmentIntegral : C(Segment, ℂ) →L[ℂ] ℂ := |
| 179 | LinearMap.mkContinuous { |
| 180 | toFun f := ∫ t in (0 : ℝ)..1, segmentExtend f t |
| 181 | map_add' := by |
| 182 | intro f g |
| 183 | exact intervalIntegral.integral_add |
| 184 | ((segmentExtend_continuous f).intervalIntegrable 0 1) |
| 185 | ((segmentExtend_continuous g).intervalIntegrable 0 1) |
| 186 | map_smul' := by |
| 187 | intro c f |
| 188 | exact intervalIntegral.integral_smul c (segmentExtend f) |
| 189 | } 1 segmentIntegral_norm |
| 190 | |
| 191 | /-- Holomorphic integration only requires smoothness near the actual compact |
| 192 | integration segment, with no assumptions outside that segment. -/ |
| 193 | theorem compact_integral_holomorphic {Ω : Set ℂ} (hΩ : IsOpen Ω) {G : ℂ × ℝ → ℂ} |
| 194 | (hG : ∀ z ∈ Ω, ∀ t ∈ Icc (0 : ℝ) 1, ContDiffAt ℝ ∞ G (z,t)) |
| 195 | (hhol : ∀ t ∈ Icc (0 : ℝ) 1, DifferentiableOn ℂ (fun z => G (z,t)) Ω) : |
| 196 | DifferentiableOn ℂ (fun z => ∫ t in (0 : ℝ)..1, G (z,t)) Ω := by |
| 197 | let K : Set ℝ := Icc 0 1 |
| 198 | let D : ℂ × ℝ → ℂ →L[ℝ] ℂ := fun p => fderiv ℝ (fun z => G (z,p.2)) p.1 |
| 199 | have hGc : ContinuousOn G (Ω ×ˢ K) := by |
| 200 | rintro ⟨z,t⟩ ⟨hz,ht⟩ |
| 201 | exact (hG z hz t ht).continuousAt.continuousWithinAt |
| 202 | have hDc : ContinuousOn D (Ω ×ˢ K) := by |
| 203 | rintro ⟨z,t⟩ ⟨hz,ht⟩ |
| 204 | have hdup : ContDiffAt ℝ ∞ (fun w : (ℂ × ℝ) × ℂ => G (w.2,w.1.2)) ((z,t),z) := |
| 205 | (hG z hz t ht).comp ((z,t),z) (contDiffAt_snd.prodMk contDiffAt_fst.snd) |
| 206 | have hD : ContDiffAt ℝ ∞ D (z,t) := hdup.fderiv contDiffAt_fst (by simp) |
| 207 | exact hD.continuousAt.continuousWithinAt |
| 208 | have hf : DifferentiableOn ℂ (CompactSmoothFamily.family K G) Ω := by |
| 209 | intro z hz |
| 210 | apply DifferentiableAt.differentiableWithinAt |
| 211 | apply HolomorphicFamily.differentiableAt_of_evaluations (CompactSmoothFamily.family K G) |
| 212 | · exact (CompactSmoothFamily.hasFDerivAt_family K hΩ G D hGc hDc |
| 213 | (fun z hz t => ((hG z hz t t.2).comp z |
| 214 | (contDiffAt_id.prodMk contDiffAt_const)).differentiableAt (by simp) |>.hasFDerivAt) hz).differentiableAt |
| 215 | · intro t |
| 216 | apply ((hhol t t.2).differentiableAt (hΩ.mem_nhds hz)).congr_of_eventuallyEq |
| 217 | filter_upwards [hΩ.mem_nhds hz] with w hw |
| 218 | exact CompactSmoothFamily.family_apply K G w |
| 219 | (CompactSmoothFamily.slice_continuous hGc hw) t |
| 220 | have hi := (segmentIntegral : C(Segment, ℂ) →L[ℂ] ℂ).differentiable.comp_differentiableOn hf |
| 221 | apply hi.congr |
| 222 | intro z hz |
| 223 | change (∫ t in (0 : ℝ)..1, G (z,t)) = ∫ t in (0 : ℝ)..1, |
| 224 | segmentExtend (CompactSmoothFamily.family K G z) t |
| 225 | apply intervalIntegral.integral_congr |
| 226 | intro t ht |
| 227 | have ht' : t ∈ K := by simpa only [K,uIcc_of_le zero_le_one] using ht |
| 228 | rw [segmentExtend,projIcc_of_mem zero_le_one ht'] |
| 229 | exact (CompactSmoothFamily.family_apply K G z |
| 230 | (CompactSmoothFamily.slice_continuous hGc hz) ⟨t,ht'⟩).symm |
| 231 | |
| 232 | def average (F : CField) (p : CPoint) : ℂ := ∫ t in (0 : ℝ)..1, F (t*p.1,p.2) |
| 233 | def primitive (F : CField) (p : CPoint) : ℂ := ∫ x in (0 : ℝ)..p.1, F (x,p.2) |
| 234 | |
| 235 | theorem primitive_eq_mul_average (F : CField) (p : CPoint) : |
| 236 | primitive F p = (p.1 : ℂ) * average F p := by |
| 237 | have he := intervalIntegral.smul_integral_comp_mul_left (fun x => F (x,p.2)) p.1 (a := 0) (b := 1) |
| 238 | simpa only [primitive,average,mul_zero,mul_one,Complex.real_smul,mul_comm] using he.symm |
| 239 | |
| 240 | theorem Regular.average {S : Set ℝ} {Ω : Set ℂ} {F : CField} |
| 241 | (hF : Regular S Ω F) (hS : IsOpen S) (hΩ : IsOpen Ω) |
| 242 | (hscale : ∀ x ∈ S, ∀ t ∈ Icc (0 : ℝ) 1, t*x ∈ S) : Regular S Ω (average F) := by |
| 243 | constructor |
| 244 | · unfold ActivationHolomorphic.average |
| 245 | apply compact_integral_smooth (G := fun q : CPoint × ℝ => F (q.2*q.1.1,q.1.2)) (hS.prod hΩ) |
| 246 | intro p hp t ht |
| 247 | have hb : ContDiffAt ℝ ∞ F (t*p.1,p.2) := |
| 248 | hF.smooth.contDiffAt ((hS.prod hΩ).mem_nhds ⟨hscale p.1 hp.1 t ht,hp.2⟩) |
| 249 | exact hb.comp (p,t) ((contDiffAt_snd.mul contDiffAt_fst.fst).prodMk contDiffAt_fst.snd) |
| 250 | · intro x hx |
| 251 | unfold ActivationHolomorphic.average |
| 252 | apply compact_integral_holomorphic (G := fun q : ℂ × ℝ => F (q.2*x,q.1)) hΩ |
| 253 | · intro z hz t ht |
| 254 | have hb : ContDiffAt ℝ ∞ F (t*x,z) := |
| 255 | hF.smooth.contDiffAt ((hS.prod hΩ).mem_nhds ⟨hscale x hx t ht,hz⟩) |
| 256 | exact hb.comp (z,t) ((contDiffAt_snd.mul contDiffAt_const).prodMk contDiffAt_fst) |
| 257 | · intro t ht |
| 258 | exact hF.holomorphic (t*x) (hscale x hx t ht) |
| 259 | |
| 260 | theorem Regular.primitive {S : Set ℝ} {Ω : Set ℂ} {F : CField} |
| 261 | (hF : Regular S Ω F) (hS : IsOpen S) (hΩ : IsOpen Ω) |
| 262 | (hscale : ∀ x ∈ S, ∀ t ∈ Icc (0 : ℝ) 1, t*x ∈ S) : Regular S Ω (primitive F) := by |
| 263 | have hb := (regular_radius (Ω := Ω) (contDiffOn_id : ContDiffOn ℝ ∞ id S)).mul (hF.average hS hΩ hscale) |
| 264 | have he : ActivationHolomorphic.primitive F = |
| 265 | (fun p => (p.1 : ℂ) * ActivationHolomorphic.average F p) := funext (primitive_eq_mul_average F) |
| 266 | rw [he] |
| 267 | exact hb |
| 268 | |
| 269 | theorem radial_hasDerivAt {S : Set ℝ} {Ω : Set ℂ} {F : CField} |
| 270 | (hS : IsOpen S) (hΩ : IsOpen Ω) (hF : ContDiffOn ℝ ∞ F (S ×ˢ Ω)) |
| 271 | {p : CPoint} (hp : p ∈ S ×ˢ Ω) : |
| 272 | HasDerivAt (fun x => F (x,p.2)) (radial F p) p.1 := |
| 273 | (((hF.contDiffAt ((hS.prod hΩ).mem_nhds hp)).comp p.1 |
| 274 | (contDiffAt_id.prodMk contDiffAt_const)).differentiableAt (by simp)).hasDerivAt |
| 275 | |
| 276 | theorem slice_continuous {Ω : Set ℂ} {F : CField} (hΩ : IsOpen Ω) |
| 277 | (hF : ContDiffOn ℝ ∞ F (univ ×ˢ Ω)) {z : ℂ} (hz : z ∈ Ω) : |
| 278 | Continuous (fun x => F (x,z)) := by |
| 279 | apply continuous_iff_continuousAt.mpr |
| 280 | intro x |
| 281 | exact ((hF.contDiffAt ((isOpen_univ.prod hΩ).mem_nhds ⟨mem_univ _,hz⟩)).comp x |
| 282 | (contDiffAt_id.prodMk contDiffAt_const)).continuousAt |
| 283 | |
| 284 | def dampedSlope (δ : ℝ) (G : CField) (p : CPoint) : ℂ := |
| 285 | (ReferencePath.slopeCutoff δ p.1 : ℂ) * radial G p |
| 286 | |
| 287 | def continuation (δ : ℝ) (G : CField) (p : CPoint) : ℂ := |
| 288 | G (0,p.2) + primitive (dampedSlope δ G) p |
| 289 | |
| 290 | theorem regular_dampedSlope {T δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < T) |
| 291 | {Ω : Set ℂ} (hΩ : IsOpen Ω) {G : CField} (hG : Regular (Iio T) Ω G) : |
| 292 | Regular univ Ω (dampedSlope δ G) := by |
| 293 | have hD := hG.radial isOpen_Iio hΩ |
| 294 | constructor |
| 295 | · intro p hp |
| 296 | by_cases ht : p.1 < T |
| 297 | · exact (((Complex.ofRealCLM.contDiff.comp (ReferencePath.slopeCutoff_smooth δ)).comp |
| 298 | contDiff_fst).contDiffAt.mul |
| 299 | (hD.smooth.contDiffAt ((isOpen_Iio.prod hΩ).mem_nhds ⟨ht,hp.2⟩))).contDiffWithinAt |
| 300 | · have hfar : 2*δ < p.1 := hδT.trans_le (le_of_not_gt ht) |
| 301 | have heq : dampedSlope δ G =ᶠ[𝓝 p] (fun _ => 0) := by |
| 302 | filter_upwards [continuousAt_fst.eventually (Ioi_mem_nhds hfar)] with q hq |
| 303 | simp only [dampedSlope,ReferencePath.slopeCutoff_zero hδ hq.le,Complex.ofReal_zero,zero_mul] |
| 304 | exact (contDiffAt_const.congr_of_eventuallyEq heq).contDiffWithinAt |
| 305 | · intro x _ |
| 306 | by_cases ht : x < T |
| 307 | · change DifferentiableOn ℂ (fun z => (ReferencePath.slopeCutoff δ x : ℂ) * radial G (x,z)) Ω |
| 308 | exact (differentiableOn_const _).mul (hD.holomorphic x ht) |
| 309 | · have hzero : (fun z => dampedSlope δ G (x,z)) = (fun _ => 0) := by |
| 310 | funext z |
| 311 | simp [dampedSlope,ReferencePath.slopeCutoff_zero hδ (hδT.le.trans (le_of_not_gt ht))] |
| 312 | rw [hzero] |
| 313 | exact differentiableOn_const _ |
| 314 | |
| 315 | theorem regular_continuation {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) (hδT : 2*δ < T) |
| 316 | {Ω : Set ℂ} (hΩ : IsOpen Ω) {G : CField} (hG : Regular (Iio T) Ω G) : |
| 317 | Regular univ Ω (continuation δ G) := by |
| 318 | have hi := (regular_dampedSlope hδ hδT hΩ hG).primitive isOpen_univ hΩ (by intros; trivial) |
| 319 | have hzero : Regular univ Ω (fun p => G (0,p.2)) := by |
| 320 | constructor |
| 321 | · exact hG.smooth.comp (contDiff_const.prodMk contDiff_snd).contDiffOn |
| 322 | (fun _ hp => ⟨hT,hp.2⟩) |
| 323 | · intro _ _ |
| 324 | exact hG.holomorphic 0 hT |
| 325 | exact hzero.add hi |
| 326 | |
| 327 | theorem continuation_eq_initial {T δ : ℝ} (_ : 0 < T) (hδ : 0 < δ) (hδT : 2*δ < T) |
| 328 | {Ω : Set ℂ} (hΩ : IsOpen Ω) {G : CField} (hG : Regular (Iio T) Ω G) |
| 329 | {p : CPoint} (hp : p.2 ∈ Ω) (hx : p.1 ≤ δ) : continuation δ G p = G p := by |
| 330 | have hd : ∀ t ∈ uIcc 0 p.1, |
| 331 | HasDerivAt (fun x => G (x,p.2)) (dampedSlope δ G (t,p.2)) t := by |
| 332 | intro t ht |
| 333 | have htδ : t ≤ δ := (mem_uIcc.mp ht).elim (fun h => h.2.trans hx) (fun h => h.2.trans hδ.le) |
| 334 | have htT : t < T := by linarith |
| 335 | simpa only [dampedSlope,ReferencePath.slopeCutoff_one hδ htδ,Complex.ofReal_one,one_mul] using |
| 336 | radial_hasDerivAt isOpen_Iio hΩ hG.smooth (p := (t,p.2)) ⟨htT,hp⟩ |
| 337 | have hc := slice_continuous hΩ (regular_dampedSlope hδ hδT hΩ hG).smooth hp |
| 338 | have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt hd (hc.intervalIntegrable 0 p.1) |
| 339 | change G (0,p.2) + _ = _ |
| 340 | rw [show primitive (dampedSlope δ G) p = G p-G (0,p.2) from hi] |
| 341 | ring |
| 342 | |
| 343 | def controlled (T κ : ℝ) (G : CField) (p : CPoint) : ℂ := |
| 344 | G (0,p.2) + primitive (fun q => (StressActivation.damping T κ q.1 : ℂ) * radial G q) p |
| 345 | |
| 346 | theorem regular_controlled (T κ : ℝ) {Ω : Set ℂ} (hΩ : IsOpen Ω) |
| 347 | {G : CField} (hG : Regular univ Ω G) : Regular univ Ω (controlled T κ G) := by |
| 348 | have hD := (regular_radius (StressActivation.damping_smooth T κ).contDiffOn).mul |
| 349 | (hG.radial isOpen_univ hΩ) |
| 350 | have hi := hD.primitive isOpen_univ hΩ (by intros; trivial) |
| 351 | have hzero : Regular univ Ω (fun p => G (0,p.2)) := by |
| 352 | constructor |
| 353 | · exact hG.smooth.comp (contDiff_const.prodMk contDiff_snd).contDiffOn (fun _ hp => ⟨trivial,hp.2⟩) |
| 354 | · intro _ _ |
| 355 | exact hG.holomorphic 0 (mem_univ _) |
| 356 | exact hzero.add hi |
| 357 | |
| 358 | theorem controlled_eq_initial {T : ℝ} (hT : 0 < T) (κ : ℝ) {Ω : Set ℂ} (hΩ : IsOpen Ω) |
| 359 | {G : CField} (hG : Regular univ Ω G) {p : CPoint} (hp : p.2 ∈ Ω) (hx : p.1 ≤ 0) : |
| 360 | controlled T κ G p = G p := by |
| 361 | have hd : ∀ t ∈ uIcc 0 p.1, HasDerivAt (fun x => G (x,p.2)) |
| 362 | ((StressActivation.damping T κ t : ℂ) * radial G (t,p.2)) t := by |
| 363 | intro t ht |
| 364 | have ht0 : t ≤ 0 := (show t ∈ Icc p.1 0 by simpa only [uIcc_of_ge hx] using ht).2 |
| 365 | simpa only [StressActivation.damping,StressActivation.activation_zero hT κ ht0,sub_zero, |
| 366 | Complex.ofReal_one,one_mul] using |
| 367 | radial_hasDerivAt isOpen_univ hΩ hG.smooth (p := (t,p.2)) ⟨trivial,hp⟩ |
| 368 | have hD := (regular_radius (StressActivation.damping_smooth T κ).contDiffOn).mul |
| 369 | (hG.radial isOpen_univ hΩ) |
| 370 | have hc := slice_continuous hΩ hD.smooth hp |
| 371 | have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt hd (hc.intervalIntegrable 0 p.1) |
| 372 | change G (0,p.2) + _ = _ |
| 373 | unfold primitive |
| 374 | rw [hi] |
| 375 | ring |
| 376 | |
| 377 | theorem radial_ofReal {S : Set ℝ} (hS : IsOpen S) {G : CField} {g : ProfileHistories.Field} |
| 378 | {x η : ℝ} (hx : x ∈ S) (hg : ContDiffAt ℝ ∞ g (x,η)) |
| 379 | (heq : ∀ y ∈ S, G (y,(η : ℂ)) = (g (y,η) : ℂ)) : |
| 380 | radial G (x,(η : ℂ)) = (ProfileHistories.radialPartial g (x,η) : ℂ) := by |
| 381 | have he : (fun y => G (y,(η : ℂ))) =ᶠ[𝓝 x] (fun y => (g (y,η) : ℂ)) := by |
| 382 | filter_upwards [hS.mem_nhds hx] with y hy |
| 383 | exact heq y hy |
| 384 | exact he.deriv_eq.trans (ReferenceJetBounds.radial_deriv hg).ofReal_comp.deriv |
| 385 | |
| 386 | theorem continuation_ofReal {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) (hδT : 2*δ < T) |
| 387 | {J : Set ℝ} (hJ : IsOpen J) {G : CField} {g : ProfileHistories.Field} |
| 388 | (hg : ContDiffOn ℝ ∞ g (Iio T ×ˢ J)) |
| 389 | (heq : ∀ x < T, ∀ η ∈ J, G (x,(η : ℂ)) = (g (x,η) : ℂ)) |
| 390 | (x : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 391 | continuation δ G (x,(η : ℂ)) = (ReferencePath.continuation δ g (x,η) : ℂ) := by |
| 392 | have hD (y : ℝ) : dampedSlope δ G (y,(η : ℂ)) = (ReferencePath.dampedSlope δ g (y,η) : ℂ) := by |
| 393 | by_cases hy : y < T |
| 394 | · have hd := radial_ofReal isOpen_Iio hy |
| 395 | (hg.contDiffAt ((isOpen_Iio.prod hJ).mem_nhds ⟨hy,hη⟩)) (fun z hz => heq z hz η hη) |
| 396 | simp only [dampedSlope,ReferencePath.dampedSlope,hd,Complex.ofReal_mul] |
| 397 | · have hz := ReferencePath.slopeCutoff_zero hδ (hδT.le.trans (le_of_not_gt hy)) |
| 398 | simp only [dampedSlope,ReferencePath.dampedSlope,hz,Complex.ofReal_zero,zero_mul] |
| 399 | simp only [continuation,ReferencePath.continuation,primitive,ProfileHistories.primitive,Complex.ofReal_add] |
| 400 | rw [heq 0 hT η hη] |
| 401 | congr 1 |
| 402 | calc |
| 403 | _ = ∫ y in (0 : ℝ)..x, (ReferencePath.dampedSlope δ g (y,η) : ℂ) := |
| 404 | intervalIntegral.integral_congr (fun y _ => hD y) |
| 405 | _ = _ := intervalIntegral.integral_ofReal |
| 406 | |
| 407 | theorem controlled_ofReal (T κ : ℝ) {J : Set ℝ} (hJ : IsOpen J) |
| 408 | {G : CField} {g : ProfileHistories.Field} (hg : ContDiffOn ℝ ∞ g (univ ×ˢ J)) |
| 409 | (heq : ∀ x η : ℝ, η ∈ J → G (x,(η : ℂ)) = (g (x,η) : ℂ)) |
| 410 | (x : ℝ) {η : ℝ} (hη : η ∈ J) : |
| 411 | controlled T κ G (x,(η : ℂ)) = (StressActivation.controlled T κ g (x,η) : ℂ) := by |
| 412 | have hD (y : ℝ) : radial G (y,(η : ℂ)) = (ProfileHistories.radialPartial g (y,η) : ℂ) := |
| 413 | radial_ofReal isOpen_univ (mem_univ _) |
| 414 | (hg.contDiffAt ((isOpen_univ.prod hJ).mem_nhds ⟨mem_univ _,hη⟩)) (fun z _ => heq z η hη) |
| 415 | simp only [controlled,StressActivation.controlled,primitive,ProfileHistories.primitive,Complex.ofReal_add] |
| 416 | rw [heq 0 η hη] |
| 417 | congr 1 |
| 418 | calc |
| 419 | _ = ∫ y in (0 : ℝ)..x, |
| 420 | ((StressActivation.damping T κ y * ProfileHistories.radialPartial g (y,η) : ℝ) : ℂ) := by |
| 421 | apply intervalIntegral.integral_congr |
| 422 | intro y _ |
| 423 | change (StressActivation.damping T κ y : ℂ) * radial G (y,(η : ℂ)) = |
| 424 | ((StressActivation.damping T κ y * ProfileHistories.radialPartial g (y,η) : ℝ) : ℂ) |
| 425 | rw [hD y,Complex.ofReal_mul] |
| 426 | _ = _ := intervalIntegral.integral_ofReal |
| 427 | |
| 428 | def logPoint (N : ReferencePath.Input) (p : CPoint) : CPoint := (N.logTime p.1,p.2) |
| 429 | def expPoint (N : ReferencePath.Input) (p : CPoint) : CPoint := (N.endpoint*Real.exp p.1,p.2) |
| 430 | |
| 431 | theorem logPoint_smoothAt (N : ReferencePath.Input) {p : CPoint} (hp : 0 < p.1) : |
| 432 | ContDiffAt ℝ ∞ (logPoint N) p := by |
| 433 | have hd : ContDiffAt ℝ ∞ (fun q : CPoint => q.1 / N.endpoint) p := |
| 434 | contDiffAt_fst.div_const _ |
| 435 | exact (hd.log (div_pos hp N.endpoint_pos).ne').prodMk contDiffAt_snd |
| 436 | |
| 437 | theorem expPoint_smooth (N : ReferencePath.Input) : ContDiff ℝ ∞ (expPoint N) := |
| 438 | (contDiff_const.mul contDiff_fst.exp).prodMk contDiff_snd |
| 439 | |
| 440 | theorem expPoint_logPoint (N : ReferencePath.Input) {p : CPoint} (hp : 0 < p.1) : |
| 441 | expPoint N (logPoint N p) = p := by |
| 442 | apply Prod.ext |
| 443 | · change N.endpoint * Real.exp (Real.log (p.1/N.endpoint)) = p.1 |
| 444 | rw [Real.exp_log (div_pos hp N.endpoint_pos),mul_div_cancel₀ _ N.endpoint_pos.ne'] |
| 445 | · rfl |
| 446 | |
| 447 | def attach (N : ReferencePath.Input) (F G : CField) (p : CPoint) : ℂ := |
| 448 | if p.1 ≤ N.endpoint then F p else G (logPoint N p) |
| 449 | |
| 450 | theorem attach_logPoint (N : ReferencePath.Input) {F G : CField} {Ω : Set ℂ} |
| 451 | (heq : ∀ p : CPoint, 0 < p.1 → p.1 ≤ N.endpoint → p.2 ∈ Ω → G (logPoint N p) = F p) |
| 452 | {p : CPoint} (hp : 0 < p.1) (hz : p.2 ∈ Ω) : attach N F G p = G (logPoint N p) := by |
| 453 | by_cases hx : p.1 ≤ N.endpoint |
| 454 | · exact (ite_eq_left hx).trans (heq p hp hx hz).symm |
| 455 | · exact ite_eq_right hx |
| 456 | |
| 457 | theorem regular_attach (N : ReferencePath.Input) {R : ℝ} (hR : 0 < R) (hXR : N.endpoint < R) |
| 458 | {Ω : Set ℂ} (hΩ : IsOpen Ω) {F G : CField} |
| 459 | (hF : Regular (Ioo (-R) R) Ω F) (hG : Regular univ Ω G) |
| 460 | (heq : ∀ p : CPoint, 0 < p.1 → p.1 ≤ N.endpoint → p.2 ∈ Ω → G (logPoint N p) = F p) : |
| 461 | Regular (Ioi (-R)) Ω (attach N F G) := by |
| 462 | constructor |
| 463 | · intro p hp |
| 464 | by_cases hx : 0 < p.1 |
| 465 | · have hb : ContDiffAt ℝ ∞ G (logPoint N p) := |
| 466 | hG.smooth.contDiffAt ((isOpen_univ.prod hΩ).mem_nhds ⟨mem_univ _,hp.2⟩) |
| 467 | have hs := hb.comp p (logPoint_smoothAt N hx) |
| 468 | have hlocal : attach N F G =ᶠ[𝓝 p] (fun q => G (logPoint N q)) := by |
| 469 | filter_upwards [continuousAt_fst.eventually (Ioi_mem_nhds hx), |
| 470 | continuousAt_snd.eventually (hΩ.mem_nhds hp.2)] with q hq hz |
| 471 | exact attach_logPoint N heq hq hz |
| 472 | exact (hs.congr_of_eventuallyEq hlocal).contDiffWithinAt |
| 473 | · have hbefore : p.1 < N.endpoint := (le_of_not_gt hx).trans_lt N.endpoint_pos |
| 474 | have hFp : ContDiffAt ℝ ∞ F p := hF.smooth.contDiffAt ((isOpen_Ioo.prod hΩ).mem_nhds |
| 475 | ⟨⟨hp.1,lt_of_le_of_lt (le_of_not_gt hx) hR⟩,hp.2⟩) |
| 476 | have hlocal : attach N F G =ᶠ[𝓝 p] F := by |
| 477 | filter_upwards [continuousAt_fst.eventually (Iio_mem_nhds hbefore)] with q hq |
| 478 | exact ite_eq_left hq.le |
| 479 | exact (hFp.congr_of_eventuallyEq hlocal).contDiffWithinAt |
| 480 | · intro x hx |
| 481 | by_cases hxe : x ≤ N.endpoint |
| 482 | · have hf := hF.holomorphic x ⟨hx,hxe.trans_lt hXR⟩ |
| 483 | simpa only [attach,ite_eq_left hxe] using hf |
| 484 | · have hg := hG.holomorphic (N.logTime x) (mem_univ _) |
| 485 | simpa only [attach,ite_eq_right hxe,logPoint] using hg |
| 486 | |
| 487 | /-- An explicit natural extension, including the positivity neighborhood |
| 488 | needed by the logarithm. It is constructed from the coefficient series below. -/ |
| 489 | structure NaturalExtension (N : ReferencePath.Input) (Ω : Set ℂ) (R : ℝ) where |
| 490 | radius_pos : 0 < R |
| 491 | endpoint_lt : N.endpoint < R |
| 492 | f : CField |
| 493 | U : CField |
| 494 | f_regular : Regular (Ioo (-R) R) Ω f |
| 495 | U_regular : Regular (Ioo (-R) R) Ω U |
| 496 | f_real : ∀ x η : ℝ, f (x,(η : ℂ)) = (N.f (x,η) : ℂ) |
| 497 | U_real : ∀ x η : ℝ, U (x,(η : ℂ)) = (N.U (x,η) : ℂ) |
| 498 | exp_mem : ∀ t < ReferencePath.rampLimit, N.endpoint*Real.exp t ∈ Ioo (-R) R |
| 499 | right_half : ∀ t < ReferencePath.rampLimit, ∀ z ∈ Ω, 0 < (f (N.endpoint*Real.exp t,z)).re |
| 500 | initial_half : ∀ x ∈ Icc (0 : ℝ) N.endpoint, ∀ z ∈ Ω, 0 < (f (x,z)).re |
| 501 | |
| 502 | namespace NaturalExtension |
| 503 | |
| 504 | variable {N : ReferencePath.Input} {Ω : Set ℂ} {R : ℝ} (E : NaturalExtension N Ω R) |
| 505 | |
| 506 | def logF : CField := fun p => Complex.log (E.f (expPoint N p)) |
| 507 | def logU : CField := fun p => E.U (expPoint N p) |
| 508 | |
| 509 | theorem logF_regular : Regular (Iio ReferencePath.rampLimit) Ω E.logF := by |
| 510 | have hb : Regular (Iio ReferencePath.rampLimit) Ω (fun p => E.f (expPoint N p)) := by |
| 511 | constructor |
| 512 | · exact E.f_regular.smooth.comp (expPoint_smooth N).contDiffOn |
| 513 | (fun p hp => ⟨E.exp_mem p.1 hp.1,hp.2⟩) |
| 514 | · intro t ht |
| 515 | exact E.f_regular.holomorphic _ (E.exp_mem t ht) |
| 516 | exact hb.clog (fun p hp => Or.inl (E.right_half p.1 hp.1 p.2 hp.2)) |
| 517 | |
| 518 | theorem logU_regular : Regular (Iio ReferencePath.rampLimit) Ω E.logU := by |
| 519 | constructor |
| 520 | · exact E.U_regular.smooth.comp (expPoint_smooth N).contDiffOn |
| 521 | (fun p hp => ⟨E.exp_mem p.1 hp.1,hp.2⟩) |
| 522 | · intro t ht |
| 523 | exact E.U_regular.holomorphic _ (E.exp_mem t ht) |
| 524 | |
| 525 | theorem logF_real {t η : ℝ} (ht : t < ReferencePath.rampLimit) |
| 526 | (hη : η ∈ ReferencePath.parameterInterval) : |
| 527 | E.logF (t,(η : ℂ)) = (N.logF (t,η) : ℂ) := by |
| 528 | change Complex.log (E.f (N.endpoint*Real.exp t,(η : ℂ))) = _ |
| 529 | rw [E.f_real] |
| 530 | exact (Complex.ofReal_log (N.fromLog_f_pos (p := (t,η)) ⟨ht,hη⟩).le).symm |
| 531 | |
| 532 | theorem logU_real (t η : ℝ) : E.logU (t,(η : ℂ)) = (N.logU (t,η) : ℂ) := E.U_real _ _ |
| 533 | |
| 534 | def refLog (δ : ℝ) : CField := continuation δ E.logF |
| 535 | def refAxial (δ : ℝ) : CField := continuation δ E.logU |
| 536 | def actLog (T κ δ : ℝ) : CField := controlled T κ (E.refLog δ) |
| 537 | def actAxial (T κ δ : ℝ) : CField := controlled T κ (E.refAxial δ) |
| 538 | def actF (T κ δ : ℝ) : CField := attach N E.f (fun p => Complex.exp (E.actLog T κ δ p)) |
| 539 | def actU (T κ δ : ℝ) : CField := attach N E.U (E.actAxial T κ δ) |
| 540 | |
| 541 | theorem refLog_regular (hΩ : IsOpen Ω) {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) : |
| 542 | Regular univ Ω (E.refLog δ) := |
| 543 | regular_continuation ReferencePath.rampLimit_pos hδ hδT hΩ E.logF_regular |
| 544 | |
| 545 | theorem refAxial_regular (hΩ : IsOpen Ω) {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) : |
| 546 | Regular univ Ω (E.refAxial δ) := |
| 547 | regular_continuation ReferencePath.rampLimit_pos hδ hδT hΩ E.logU_regular |
| 548 | |
| 549 | theorem refLog_initial (hΩ : IsOpen Ω) {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 550 | {p : CPoint} (hp : p.2 ∈ Ω) (ht : p.1 ≤ 0) : E.refLog δ p = E.logF p := |
| 551 | continuation_eq_initial ReferencePath.rampLimit_pos hδ hδT hΩ E.logF_regular hp (ht.trans hδ.le) |
| 552 | |
| 553 | theorem refAxial_initial (hΩ : IsOpen Ω) {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 554 | {p : CPoint} (hp : p.2 ∈ Ω) (ht : p.1 ≤ 0) : E.refAxial δ p = E.logU p := |
| 555 | continuation_eq_initial ReferencePath.rampLimit_pos hδ hδT hΩ E.logU_regular hp (ht.trans hδ.le) |
| 556 | |
| 557 | theorem angular_attach_regular (hΩ : IsOpen Ω) {G : CField} (hG : Regular univ Ω G) |
| 558 | (hinit : ∀ p : CPoint, p.2 ∈ Ω → p.1 ≤ 0 → G p = E.logF p) : |
| 559 | Regular (Ioi (-R)) Ω (attach N E.f (fun p => Complex.exp (G p))) := by |
| 560 | apply regular_attach N E.radius_pos E.endpoint_lt hΩ E.f_regular hG.cexp |
| 561 | intro p hp hxe hz |
| 562 | have ht : N.logTime p.1 ≤ 0 := (N.logTime_le_iff hp).2 (by simpa only [Real.exp_zero,mul_one] using hxe) |
| 563 | rw [hinit (logPoint N p) hz ht] |
| 564 | change Complex.exp (Complex.log (E.f (expPoint N (logPoint N p)))) = E.f p |
| 565 | rw [expPoint_logPoint N hp] |
| 566 | apply Complex.exp_log |
| 567 | have hpos := E.right_half (N.logTime p.1) (ht.trans_lt ReferencePath.rampLimit_pos) p.2 hz |
| 568 | have he : (N.endpoint*Real.exp (N.logTime p.1),p.2) = p := expPoint_logPoint N hp |
| 569 | rw [he] at hpos |
| 570 | intro hn |
| 571 | simp only [hn,Complex.zero_re,lt_self_iff_false] at hpos |
| 572 | |
| 573 | theorem axial_attach_regular (hΩ : IsOpen Ω) {G : CField} (hG : Regular univ Ω G) |
| 574 | (hinit : ∀ p : CPoint, p.2 ∈ Ω → p.1 ≤ 0 → G p = E.logU p) : |
| 575 | Regular (Ioi (-R)) Ω (attach N E.U G) := by |
| 576 | apply regular_attach N E.radius_pos E.endpoint_lt hΩ E.U_regular hG |
| 577 | intro p hp hxe hz |
| 578 | have ht : N.logTime p.1 ≤ 0 := (N.logTime_le_iff hp).2 (by simpa only [Real.exp_zero,mul_one] using hxe) |
| 579 | rw [hinit (logPoint N p) hz ht] |
| 580 | change E.U (expPoint N (logPoint N p)) = E.U p |
| 581 | rw [expPoint_logPoint N hp] |
| 582 | |
| 583 | theorem actF_regular (hΩ : IsOpen Ω) {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| 584 | (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) : Regular (Ioi (-R)) Ω (E.actF T κ δ) := by |
| 585 | apply E.angular_attach_regular hΩ (regular_controlled T κ hΩ (E.refLog_regular hΩ hδ hδT)) |
| 586 | intro p hp ht |
| 587 | exact (controlled_eq_initial hT κ hΩ (E.refLog_regular hΩ hδ hδT) hp ht).trans |
| 588 | (E.refLog_initial hΩ hδ hδT hp ht) |
| 589 | |
| 590 | theorem actU_regular (hΩ : IsOpen Ω) {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| 591 | (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) : Regular (Ioi (-R)) Ω (E.actU T κ δ) := by |
| 592 | apply E.axial_attach_regular hΩ (regular_controlled T κ hΩ (E.refAxial_regular hΩ hδ hδT)) |
| 593 | intro p hp ht |
| 594 | exact (controlled_eq_initial hT κ hΩ (E.refAxial_regular hΩ hδ hδT) hp ht).trans |
| 595 | (E.refAxial_initial hΩ hδ hδT hp ht) |
| 596 | |
| 597 | theorem refLog_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 598 | (x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 599 | E.refLog δ (x,(η : ℂ)) = (StressActivation.FromReference.refLog N δ (x,η) : ℂ) := |
| 600 | continuation_ofReal ReferencePath.rampLimit_pos hδ hδT ReferencePath.parameterInterval_open |
| 601 | N.logF_smooth (fun _ ht _ hη => E.logF_real ht hη) x hη |
| 602 | |
| 603 | theorem refAxial_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 604 | (x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 605 | E.refAxial δ (x,(η : ℂ)) = (StressActivation.FromReference.refAxial N δ (x,η) : ℂ) := |
| 606 | continuation_ofReal ReferencePath.rampLimit_pos hδ hδT ReferencePath.parameterInterval_open |
| 607 | N.logU_smooth (fun _ _ _ _ => E.logU_real _ _) x hη |
| 608 | |
| 609 | theorem actLog_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 610 | (T κ x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 611 | E.actLog T κ δ (x,(η : ℂ)) = |
| 612 | (StressActivation.controlled T κ (StressActivation.FromReference.refLog N δ) (x,η) : ℂ) := |
| 613 | controlled_ofReal T κ ReferencePath.parameterInterval_open |
| 614 | (StressActivation.FromReference.refLog_smooth N hδ hδT) |
| 615 | (fun x _ hη => E.refLog_real hδ hδT x hη) x hη |
| 616 | |
| 617 | theorem actAxial_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 618 | (T κ x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 619 | E.actAxial T κ δ (x,(η : ℂ)) = |
| 620 | (StressActivation.controlled T κ (StressActivation.FromReference.refAxial N δ) (x,η) : ℂ) := |
| 621 | controlled_ofReal T κ ReferencePath.parameterInterval_open |
| 622 | (StressActivation.FromReference.refAxial_smooth N hδ hδT) |
| 623 | (fun x _ hη => E.refAxial_real hδ hδT x hη) x hη |
| 624 | |
| 625 | theorem actF_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 626 | (T κ x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 627 | E.actF T κ δ (x,(η : ℂ)) = (StressActivation.FromReference.f N T κ δ (x,η) : ℂ) := by |
| 628 | by_cases hx : x ≤ N.endpoint |
| 629 | · simp only [actF,attach,ite_eq_left hx,StressActivation.FromReference.f,ReferencePath.Input.refF,E.f_real] |
| 630 | · simp only [actF,attach,ite_eq_right hx,StressActivation.FromReference.f,logPoint,StressActivation.activatedAngular] |
| 631 | rw [E.actLog_real hδ hδT T κ _ hη,Complex.ofReal_exp] |
| 632 | |
| 633 | theorem actU_real {δ : ℝ} (hδ : 0 < δ) (hδT : 2*δ < ReferencePath.rampLimit) |
| 634 | (T κ x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 635 | E.actU T κ δ (x,(η : ℂ)) = (StressActivation.FromReference.U N T κ δ (x,η) : ℂ) := by |
| 636 | by_cases hx : x ≤ N.endpoint |
| 637 | · simp only [actU,attach,ite_eq_left hx,StressActivation.FromReference.U,ReferencePath.Input.refU,E.U_real] |
| 638 | · simp only [actU,attach,ite_eq_right hx,StressActivation.FromReference.U,logPoint] |
| 639 | exact E.actAxial_real hδ hδT T κ _ hη |
| 640 | |
| 641 | end NaturalExtension |
| 642 | |
| 643 | open NaturalAxisCoefficients NaturalEntrance |
| 644 | |
| 645 | def parameterWindow : AxisCoefficientSpace.Window where |
| 646 | left := -21/20 |
| 647 | right := 21/20 |
| 648 | nondegenerate := by norm_num |
| 649 | |
| 650 | theorem parameterWindow_subset {η : ℝ} (hη : η ∈ parameterWindow.interval) : |
| 651 | η ∈ window.interval ∧ η ∈ ReferencePath.parameterInterval := by |
| 652 | change -21/20 ≤ η ∧ η ≤ 21/20 at hη |
| 653 | change (-11/10 ≤ η ∧ η ≤ 11/10) ∧ (-11/10 < η ∧ η < 11/10) |
| 654 | constructor <;> constructor <;> linarith [hη.1,hη.2] |
| 655 | |
| 656 | theorem closed_parameter_subset {η : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) : |
| 657 | η ∈ parameterWindow.interval := by |
| 658 | change -21/20 ≤ η ∧ η ≤ 21/20 |
| 659 | constructor <;> linarith [hη.1,hη.2] |
| 660 | |
| 661 | theorem parameterTube_open (J : AxisCoefficientSpace.Window) (δ : ℝ) : |
| 662 | IsOpen (AxisHolomorphic.parameterTube J δ) := by |
| 663 | apply isOpen_iff_mem_nhds.mpr |
| 664 | rintro z ⟨η,hη,hz⟩ |
| 665 | apply Filter.mem_of_superset (isOpen_ball.mem_nhds hz) |
| 666 | intro w hw |
| 667 | exact ⟨η,hη,hw⟩ |
| 668 | |
| 669 | section NaturalConstruction |
| 670 | |
| 671 | variable {h j σ Λ C : ℝ} {P0 : ℝ → ℝ} {d : AnalyticInputs h j σ P0} |
| 672 | variable (F : CoefficientProfile d Λ C) |
| 673 | |
| 674 | def naturalF (p : CPoint) : ℂ := |
| 675 | (Complex.exp ((Λ : ℂ) * axisPhase h j σ p.2) / (C : ℂ)) * |
| 676 | AxisHolomorphic.complexProfile window d.coefficients.epsilon F.coefficients.1 0 (Λ*p.1) p.2 |
| 677 | |
| 678 | def naturalU (p : CPoint) : ℂ := |
| 679 | complexU j p.2 + (1/(Λ : ℂ)) * |
| 680 | AxisHolomorphic.complexProfile window d.coefficients.epsilon F.coefficients.2 0 (Λ*p.1) p.2 |
| 681 | |
| 682 | theorem naturalF_real (x η : ℝ) : naturalF F (x,(η : ℂ)) = (F.family.f (x,η) : ℂ) := by |
| 683 | rw [F.f_eq] |
| 684 | simp only [naturalF,axisPhase_ofReal,AxisHolomorphic.complexProfile_zero_ofReal] |
| 685 | change _ = ((realAmplitude h j σ Λ C η * |
| 686 | AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.1 (Λ*x,η) : ℝ) : ℂ) |
| 687 | simp only [realAmplitude,Complex.ofReal_mul,Complex.ofReal_div,Complex.ofReal_exp] |
| 688 | |
| 689 | theorem naturalU_real (x η : ℝ) : naturalU F (x,(η : ℂ)) = (F.family.U (x,η) : ℂ) := by |
| 690 | rw [F.U_eq] |
| 691 | simp only [naturalU,AxisHolomorphic.complexProfile_zero_ofReal] |
| 692 | change _ = ((NaturalAxisData.U j η + (1/Λ) * |
| 693 | AxisEvaluation.profile window d.coefficients.epsilon F.coefficients.2 (Λ*x,η) : ℝ) : ℂ) |
| 694 | simp only [complexU,NaturalAxisData.U,Complex.ofReal_add,Complex.ofReal_mul,Complex.ofReal_div, |
| 695 | Complex.ofReal_one,Complex.ofReal_ofNat] |
| 696 | |
| 697 | theorem scaled_radius_mem (hΛ : 0 < Λ) {x : ℝ} (hx : x ∈ Ioo (-(5/Λ)) (5/Λ)) : |
| 698 | Λ*x ∈ Ioo (-5 : ℝ) 5 := by |
| 699 | constructor |
| 700 | · have ht := (mul_lt_mul_of_pos_left hx.1 hΛ) |
| 701 | have he : Λ * (-(5/Λ)) = -5 := by field_simp |
| 702 | rwa [he] at ht |
| 703 | · have ht := (mul_lt_mul_of_pos_left hx.2 hΛ) |
| 704 | simpa only [mul_div_cancel₀ 5 hΛ.ne'] using ht |
| 705 | |
| 706 | theorem coefficient_regular (hΛ : 0 < Λ) {Ω : Set ℂ} |
| 707 | (hΩ : Ω ⊆ AxisHolomorphic.parameterStrip window (d.coefficients.epsilon*(1-(1/2 : ℝ)))) |
| 708 | (A : AxisCoefficientSpace.AxisSpace window d.coefficients.epsilon) : |
| 709 | Regular (Ioo (-(5/Λ)) (5/Λ)) Ω |
| 710 | (fun p => AxisHolomorphic.complexProfile window d.coefficients.epsilon A 0 (Λ*p.1) p.2) := by |
| 711 | constructor |
| 712 | · have hb : ContDiffOn ℝ ∞ |
| 713 | (fun p : CPoint => AxisHolomorphic.complexProfile window d.coefficients.epsilon A 0 p.1 p.2) |
| 714 | (Ioo (-5 : ℝ) 5 ×ˢ AxisHolomorphic.parameterStrip window (d.coefficients.epsilon*(1-(1/2 : ℝ)))) := |
| 715 | AxisHolomorphicJoint.complexProfile_joint_smooth window d.coefficients.epsilon_pos |
| 716 | (by norm_num : (1 : ℝ) ≤ 5) (by norm_num : (5 : ℝ)/20 < 1/2) |
| 717 | (by norm_num : (1/2 : ℝ) < 1) A 0 |
| 718 | have hm : ContDiffOn ℝ ∞ (fun p : CPoint => (Λ*p.1,p.2)) |
| 719 | (Ioo (-(5/Λ)) (5/Λ) ×ˢ Ω) := |
| 720 | ((contDiff_const.mul contDiff_fst).prodMk contDiff_snd).contDiffOn |
| 721 | have hout := hb.comp hm (fun p hp => ⟨scaled_radius_mem hΛ hp.1,hΩ hp.2⟩) |
| 722 | simpa only [Function.comp_def] using hout |
| 723 | · intro x hx |
| 724 | exact ((AxisHolomorphic.complexProfile_analytic window d.coefficients.epsilon_pos |
| 725 | (by norm_num : (1 : ℝ) ≤ 5) (by norm_num : (5 : ℝ)/20 < 1/2) |
| 726 | (by norm_num : (1/2 : ℝ) < 1) A 0 (abs_lt.mpr (scaled_radius_mem hΛ hx)).le).mono hΩ).differentiableOn |
| 727 | |
| 728 | theorem naturalF_regular (hΛ : 0 < Λ) {Ω : Set ℂ} |
| 729 | (hstrip : Ω ⊆ AxisHolomorphic.parameterStrip window (d.coefficients.epsilon*(1-(1/2 : ℝ)))) |
| 730 | (hphase : Ω ⊆ d.compactSet) : Regular (Ioo (-(5/Λ)) (5/Λ)) Ω (naturalF F) := by |
| 731 | have hA : AnalyticOnNhd ℂ (fun z => Complex.exp ((Λ : ℂ)*axisPhase h j σ z)/(C : ℂ)) Ω := by |
| 732 | intro z hz |
| 733 | have hp : AnalyticAt ℂ (fun w => (Λ : ℂ)*axisPhase h j σ w) z := |
| 734 | analyticAt_const.mul (d.phase_analytic z (hphase hz)) |
| 735 | simpa only [div_eq_mul_inv, Function.comp_def] using hp.cexp.fun_mul (analyticAt_const (v := (C : ℂ)⁻¹)) |
| 736 | exact (regular_parameter hA).mul (coefficient_regular hΛ hstrip F.coefficients.1) |
| 737 | |
| 738 | theorem naturalU_regular (hΛ : 0 < Λ) {Ω : Set ℂ} |
| 739 | (hstrip : Ω ⊆ AxisHolomorphic.parameterStrip window (d.coefficients.epsilon*(1-(1/2 : ℝ)))) : |
| 740 | Regular (Ioo (-(5/Λ)) (5/Λ)) Ω (naturalU F) := by |
| 741 | have hbase : AnalyticOnNhd ℂ (complexU j) Ω := by |
| 742 | intro z _ |
| 743 | unfold complexU |
| 744 | fun_prop |
| 745 | exact (regular_parameter hbase).add |
| 746 | ((regular_const _ _ (1/(Λ : ℂ))).mul (coefficient_regular hΛ hstrip F.coefficients.2)) |
| 747 | |
| 748 | theorem exists_preliminary_tube (hsmall : NaturalAxisData.SmallParameters h j) (hσ : 0 < σ) : |
| 749 | ∃ Ω : Set ℂ, IsOpen Ω ∧ |
| 750 | (∀ η ∈ parameterWindow.interval, (η : ℂ) ∈ Ω) ∧ |
| 751 | Ω ⊆ AxisHolomorphic.parameterStrip window (d.coefficients.epsilon*(1-(1/2 : ℝ))) ∧ |
| 752 | Ω ⊆ d.compactSet ∧ Ω ⊆ regularSet h j σ := by |
| 753 | obtain ⟨δ,hδ,hsub⟩ := AxisHolomorphic.exists_parameterTube_subset window parameterWindow |
| 754 | (by norm_num [window,parameterWindow]) (by norm_num [window,parameterWindow]) |
| 755 | (mul_pos d.coefficients.epsilon_pos (by norm_num : 0 < 1-(1/2 : ℝ))) |
| 756 | let r := min δ d.radius |
| 757 | have hr : 0 < r := lt_min hδ d.radius_pos |
| 758 | refine ⟨AxisHolomorphic.parameterTube parameterWindow r ∩ regularSet h j σ, |
| 759 | (parameterTube_open _ _).inter (regularSet_open _ _ _), ?_, ?_, ?_, inter_subset_right⟩ |
| 760 | · intro η hη |
| 761 | exact ⟨AxisHolomorphic.parameterTube_contains_real parameterWindow hr hη, |
| 762 | real_mem_regularSet hsmall hσ (parameterWindow_subset hη).1⟩ |
| 763 | · rintro z ⟨⟨η,hη,hz⟩,_⟩ |
| 764 | exact hsub ⟨η,hη,hz.trans_le (min_le_left _ _)⟩ |
| 765 | · rintro z ⟨⟨η,hη,hz⟩,_⟩ |
| 766 | exact d.covers η (parameterWindow_subset hη).1 (hz.le.trans (min_le_right _ _)) |
| 767 | |
| 768 | /-- Compact real positivity produces a single complex tube, uniformly over |
| 769 | the whole natural radial interval used by REF. -/ |
| 770 | theorem exists_positive_natural_tube (hΛ : 0 < Λ) (hsmall : NaturalAxisData.SmallParameters h j) |
| 771 | (hσ : 0 < σ) : |
| 772 | ∃ δ : ℝ, 0 < δ ∧ |
| 773 | let Ω := AxisHolomorphic.parameterTube parameterWindow δ |
| 774 | IsOpen Ω ∧ Ω ⊆ regularSet h j σ ∧ |
| 775 | Regular (Ioo (-(5/Λ)) (5/Λ)) Ω (naturalF F) ∧ |
| 776 | Regular (Ioo (-(5/Λ)) (5/Λ)) Ω (naturalU F) ∧ |
| 777 | ∀ x ∈ Icc (0 : ℝ) ((41/10)/Λ), ∀ z ∈ Ω, 0 < (naturalF F (x,z)).re := by |
| 778 | obtain ⟨Ω,hΩ,hreal,hstrip,hphase,hreg⟩ := exists_preliminary_tube (d := d) hsmall hσ |
| 779 | have hf := naturalF_regular F hΛ hstrip hphase |
| 780 | have hu := naturalU_regular F hΛ hstrip |
| 781 | let S : Set ℝ := Ioo (-(5/Λ)) (5/Λ) |
| 782 | let O : Set CPoint := {p | p ∈ S ×ˢ Ω ∧ 0 < (naturalF F p).re} |
| 783 | have hopen : IsOpen O := by |
| 784 | apply isOpen_iff_mem_nhds.mpr |
| 785 | intro p hp |
| 786 | have hdom := (isOpen_Ioo.prod hΩ).mem_nhds hp.1 |
| 787 | have hpos := (Complex.continuous_re.continuousAt.comp (hf.smooth.contDiffAt hdom).continuousAt).eventually |
| 788 | (Ioi_mem_nhds hp.2) |
| 789 | filter_upwards [hdom,hpos] with q hq hqpos |
| 790 | exact ⟨hq,hqpos⟩ |
| 791 | let K : Set CPoint := Icc (0 : ℝ) ((41/10)/Λ) ×ˢ (Complex.ofReal '' parameterWindow.interval) |
| 792 | have hK : IsCompact K := isCompact_Icc.prod (isCompact_Icc.image Complex.continuous_ofReal) |
| 793 | have hKS : ∀ x ∈ Icc (0 : ℝ) ((41/10)/Λ), x ∈ S := by |
| 794 | intro x hx |
| 795 | constructor |
| 796 | · exact lt_of_lt_of_le (neg_neg_of_pos (div_pos (by norm_num) hΛ)) hx.1 |
| 797 | · exact hx.2.trans_lt ((div_lt_div_iff_of_pos_right hΛ).2 (by norm_num)) |
| 798 | have hKO : K ⊆ O := by |
| 799 | rintro ⟨x,z⟩ ⟨hx,η,hη,rfl⟩ |
| 800 | refine ⟨⟨hKS x hx,hreal η hη⟩,?_⟩ |
| 801 | rw [naturalF_real,Complex.ofReal_re] |
| 802 | have hY0 : 0 ≤ Λ*x := mul_nonneg hΛ.le hx.1 |
| 803 | have hY1 : Λ*x ≤ 41/10 := by |
| 804 | have hh := mul_le_mul_of_nonneg_left hx.2 hΛ.le |
| 805 | simpa only [mul_div_cancel₀ (41/10) hΛ.ne'] using hh |
| 806 | have hdom : (x,η) ∈ NaturalProfile.domain Λ := by |
| 807 | change (-20 < Λ*x ∧ Λ*x < 20) ∧ η ∈ ReferencePath.parameterInterval |
| 808 | exact ⟨⟨by linarith,by linarith⟩,(parameterWindow_subset hη).2⟩ |
| 809 | exact F.family.positive (x,η) hdom hY0 hY1 |
| 810 | obtain ⟨δ,hδ,hδO⟩ := hK.exists_cthickening_subset_open hopen hKO |
| 811 | have hpos (x : ℝ) (hx : x ∈ Icc (0 : ℝ) ((41/10)/Λ)) |
| 812 | {z : ℂ} (hz : z ∈ AxisHolomorphic.parameterTube parameterWindow δ) : (x,z) ∈ O := by |
| 813 | rcases hz with ⟨η,hη,hz⟩ |
| 814 | apply hδO |
| 815 | apply closedBall_subset_cthickening |
| 816 | (show (x,(η : ℂ)) ∈ K from ⟨hx,mem_image_of_mem Complex.ofReal hη⟩) δ |
| 817 | change dist (x,z) (x,(η : ℂ)) ≤ δ |
| 818 | simpa only [Prod.dist_eq,dist_self,max_eq_right (dist_nonneg)] using hz.le |
| 819 | have hsub : AxisHolomorphic.parameterTube parameterWindow δ ⊆ Ω := by |
| 820 | intro z hz |
| 821 | exact (hpos 0 ⟨le_rfl,by positivity⟩ hz).1.2 |
| 822 | refine ⟨δ,hδ,parameterTube_open _ _,hsub.trans hreg,hf.mono Subset.rfl hsub, |
| 823 | hu.mono Subset.rfl hsub,?_⟩ |
| 824 | intro x hx z hz |
| 825 | exact (hpos x hx hz).2 |
| 826 | |
| 827 | theorem natural_log_radius (hΛ : 0 < Λ) {t : ℝ} (ht : t < ReferencePath.rampLimit) : |
| 828 | 0 < (4/Λ)*Real.exp t ∧ (4/Λ)*Real.exp t < (41/10)/Λ := by |
| 829 | have he : Real.exp t < 41/40 := by |
| 830 | simpa only [ReferencePath.rampLimit,Real.exp_log (by norm_num : (0 : ℝ) < 41/40)] using |
| 831 | Real.exp_lt_exp.mpr ht |
| 832 | constructor |
| 833 | · positivity |
| 834 | · rw [div_mul_eq_mul_div] |
| 835 | exact (div_lt_div_iff_of_pos_right hΛ).2 (by nlinarith) |
| 836 | |
| 837 | /-- Construction from the actual coefficient witness. In particular the |
| 838 | natural extension and its common positive neighborhood are not assumptions. -/ |
| 839 | theorem exists_natural_extension (hΛ : 0 < Λ) (hsmall : NaturalAxisData.SmallParameters h j) |
| 840 | (hσ : 0 < σ) : |
| 841 | ∃ ρ : ℝ, 0 < ρ ∧ ∃ _ : NaturalExtension (ReferenceJetBounds.referenceInput F hΛ) |
| 842 | (AxisHolomorphic.parameterTube parameterWindow ρ) (5/Λ), |
| 843 | AxisHolomorphic.parameterTube parameterWindow ρ ⊆ regularSet h j σ := by |
| 844 | obtain ⟨ρ,hρ,hopen,hreg,hf,hu,hpos⟩ := exists_positive_natural_tube F hΛ hsmall hσ |
| 845 | refine ⟨ρ,hρ,{ |
| 846 | radius_pos := div_pos (by norm_num) hΛ |
| 847 | endpoint_lt := ?_ |
| 848 | f := naturalF F |
| 849 | U := naturalU F |
| 850 | f_regular := hf |
| 851 | U_regular := hu |
| 852 | f_real := naturalF_real F |
| 853 | U_real := naturalU_real F |
| 854 | exp_mem := ?_ |
| 855 | right_half := ?_ |
| 856 | initial_half := ?_ },hreg⟩ |
| 857 | · change 4/Λ < 5/Λ |
| 858 | exact (div_lt_div_iff_of_pos_right hΛ).2 (by norm_num) |
| 859 | · intro t ht |
| 860 | have hb := natural_log_radius hΛ ht |
| 861 | change -(5/Λ) < (4/Λ)*Real.exp t ∧ (4/Λ)*Real.exp t < 5/Λ |
| 862 | constructor |
| 863 | · exact (neg_neg_of_pos (div_pos (by norm_num) hΛ)).trans hb.1 |
| 864 | · exact hb.2.trans ((div_lt_div_iff_of_pos_right hΛ).2 (by norm_num)) |
| 865 | · intro t ht z hz |
| 866 | exact hpos _ ⟨(natural_log_radius hΛ ht).1.le,(natural_log_radius hΛ ht).2.le⟩ z hz |
| 867 | · intro x hx z hz |
| 868 | have he : (ReferenceJetBounds.referenceInput F hΛ).endpoint ≤ (41/10)/Λ := by |
| 869 | change 4/Λ ≤ (41/10)/Λ |
| 870 | exact (div_le_div_iff_of_pos_right hΛ).2 (by norm_num) |
| 871 | exact hpos x ⟨hx.1,hx.2.trans he⟩ z hz |
| 872 | |
| 873 | end NaturalConstruction |
| 874 | |
| 875 | theorem scale_half_interval {R : ℝ} (hR : 0 < R) {x : ℝ} (hx : x ∈ Ioi (-R)) |
| 876 | {t : ℝ} (ht : t ∈ Icc (0 : ℝ) 1) : t*x ∈ Ioi (-R) := by |
| 877 | rcases le_total x 0 with hn | hp |
| 878 | · have hb : x ≤ t*x := by simpa only [one_mul] using mul_le_mul_of_nonpos_right ht.2 hn |
| 879 | exact hx.trans_le hb |
| 880 | · exact (neg_neg_of_pos hR).trans_le (mul_nonneg ht.1 hp) |
| 881 | |
| 882 | theorem Regular.pow {S : Set ℝ} {Ω : Set ℂ} {F : CField} (hF : Regular S Ω F) (n : ℕ) : |
| 883 | Regular S Ω (fun p => F p ^ n) := |
| 884 | ⟨hF.smooth.pow n,fun x hx => (hF.holomorphic x hx).pow n⟩ |
| 885 | |
| 886 | def pressure (P0 : ℂ → ℂ) (f : CField) (p : CPoint) : ℂ := |
| 887 | P0 p.2 + primitive (fun q => f q ^ 2) p |
| 888 | |
| 889 | theorem regular_pressure {R : ℝ} (hR : 0 < R) {Ω : Set ℂ} (hΩ : IsOpen Ω) |
| 890 | {f : CField} (hf : Regular (Ioi (-R)) Ω f) {P0 : ℂ → ℂ} |
| 891 | (hP0 : AnalyticOnNhd ℂ P0 Ω) : Regular (Ioi (-R)) Ω (pressure P0 f) := |
| 892 | (regular_parameter hP0).add ((hf.pow 2).primitive isOpen_Ioi hΩ |
| 893 | (fun _ hx _ ht => scale_half_interval hR hx ht)) |
| 894 | |
| 895 | theorem average_ofReal {F : CField} {g : ProfileHistories.Field} {η : ℝ} |
| 896 | (heq : ∀ x : ℝ, F (x,(η : ℂ)) = (g (x,η) : ℂ)) (x : ℝ) : |
| 897 | average F (x,(η : ℂ)) = (ProfileHistories.average g (x,η) : ℂ) := by |
| 898 | unfold average ProfileHistories.average |
| 899 | calc |
| 900 | _ = ∫ t in (0 : ℝ)..1, (g (t*x,η) : ℂ) := intervalIntegral.integral_congr (fun t _ => heq (t*x)) |
| 901 | _ = _ := intervalIntegral.integral_ofReal |
| 902 | |
| 903 | theorem primitive_ofReal {F : CField} {g : ProfileHistories.Field} {η : ℝ} |
| 904 | (heq : ∀ x : ℝ, F (x,(η : ℂ)) = (g (x,η) : ℂ)) (x : ℝ) : |
| 905 | primitive F (x,(η : ℂ)) = (ProfileHistories.primitive g (x,η) : ℂ) := by |
| 906 | unfold primitive ProfileHistories.primitive |
| 907 | calc |
| 908 | _ = ∫ t in (0 : ℝ)..x, (g (t,η) : ℂ) := intervalIntegral.integral_congr (fun t _ => heq t) |
| 909 | _ = _ := intervalIntegral.integral_ofReal |
| 910 | |
| 911 | theorem pressure_ofReal {F : CField} {g : ProfileHistories.Field} {η : ℝ} |
| 912 | (heq : ∀ x : ℝ, F (x,(η : ℂ)) = (g (x,η) : ℂ)) |
| 913 | {P0 : ℂ → ℂ} {p0 : ℝ → ℝ} (hP0 : P0 (η : ℂ) = (p0 η : ℂ)) (x : ℝ) : |
| 914 | pressure P0 F (x,(η : ℂ)) = |
| 915 | ((p0 η + ProfileHistories.primitive (fun p => g p ^ 2) (x,η) : ℝ) : ℂ) := by |
| 916 | rw [pressure,hP0,Complex.ofReal_add] |
| 917 | congr 1 |
| 918 | apply primitive_ofReal |
| 919 | intro y |
| 920 | simp only [heq,Complex.ofReal_pow] |
| 921 | |
| 922 | def signedSquare (F : CField) (p : CPoint) : ℂ := F (p.1^2,p.2) |
| 923 | |
| 924 | theorem Regular.signedSquare {R : ℝ} (hR : 0 < R) {Ω : Set ℂ} {F : CField} |
| 925 | (hF : Regular (Ioi (-R)) Ω F) : Regular univ Ω (signedSquare F) := by |
| 926 | constructor |
| 927 | · exact hF.smooth.comp ((contDiff_fst.pow 2).prodMk contDiff_snd).contDiffOn |
| 928 | (fun p hp => ⟨(neg_neg_of_pos hR).trans_le (sq_nonneg p.1),hp.2⟩) |
| 929 | · intro r _ |
| 930 | exact hF.holomorphic (r^2) ((neg_neg_of_pos hR).trans_le (sq_nonneg r)) |
| 931 | |
| 932 | theorem signedSquare_even (F : CField) (z : ℂ) : Function.Even (fun r => signedSquare F (r,z)) := by |
| 933 | intro r |
| 934 | simp only [signedSquare,neg_sq] |
| 935 | |
| 936 | /-- The actual base data on one common complex tube. The constructor below |
| 937 | supplies the pressure extension from its proved defining integral. -/ |
| 938 | structure InitialTube (N : ReferencePath.Input) (h : ℝ) (P0 : ℝ → ℝ) |
| 939 | (R : ℝ) (Ω : Set ℂ) where |
| 940 | natural : NaturalExtension N Ω R |
| 941 | isOpen : IsOpen Ω |
| 942 | real_mem : ∀ η ∈ Icc (-1 : ℝ) 1, (η : ℂ) ∈ Ω |
| 943 | elliptic_ne_zero : ∀ z ∈ Ω, complexL h z ≠ 0 |
| 944 | pressure0 : ℂ → ℂ |
| 945 | pressure0_analytic : AnalyticOnNhd ℂ pressure0 Ω |
| 946 | pressure0_real : ∀ η : ℝ, pressure0 (η : ℂ) = (P0 η : ℂ) |
| 947 | |
| 948 | namespace InitialTube |
| 949 | |
| 950 | variable {N : ReferencePath.Input} {h R : ℝ} {P0 : ℝ → ℝ} {Ω : Set ℂ} |
| 951 | variable (E : InitialTube N h P0 R Ω) |
| 952 | |
| 953 | def f (T κ δ : ℝ) : CField := E.natural.actF T κ δ |
| 954 | def U (T κ δ : ℝ) : CField := E.natural.actU T κ δ |
| 955 | def Ubar (T κ δ : ℝ) : CField := average (E.U T κ δ) |
| 956 | def Pi (T κ δ : ℝ) : CField := pressure E.pressure0 (E.f T κ δ) |
| 957 | |
| 958 | theorem regular {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| 959 | (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) : |
| 960 | Regular (Ioi (-R)) Ω (E.f T κ δ) ∧ |
| 961 | Regular (Ioi (-R)) Ω (E.U T κ δ) ∧ |
| 962 | Regular (Ioi (-R)) Ω (E.Ubar T κ δ) ∧ |
| 963 | Regular (Ioi (-R)) Ω (E.Pi T κ δ) := by |
| 964 | have hf := E.natural.actF_regular E.isOpen hT hδ hδT κ |
| 965 | have hu := E.natural.actU_regular E.isOpen hT hδ hδT κ |
| 966 | exact ⟨hf,hu,hu.average isOpen_Ioi E.isOpen |
| 967 | (fun _ hx _ ht => scale_half_interval E.natural.radius_pos hx ht), |
| 968 | regular_pressure E.natural.radius_pos E.isOpen hf E.pressure0_analytic⟩ |
| 969 | |
| 970 | /-- The signed-square pullbacks are smooth and holomorphic through the axis, |
| 971 | and are even in the signed radius. -/ |
| 972 | theorem signed_regular {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| 973 | (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) : |
| 974 | Regular univ Ω (signedSquare (E.f T κ δ)) ∧ |
| 975 | Regular univ Ω (signedSquare (E.U T κ δ)) ∧ |
| 976 | Regular univ Ω (signedSquare (E.Ubar T κ δ)) ∧ |
| 977 | Regular univ Ω (signedSquare (E.Pi T κ δ)) := by |
| 978 | obtain ⟨hf,hu,hv,hp⟩ := E.regular hT hδ hδT κ |
| 979 | exact ⟨hf.signedSquare E.natural.radius_pos,hu.signedSquare E.natural.radius_pos, |
| 980 | hv.signedSquare E.natural.radius_pos,hp.signedSquare E.natural.radius_pos⟩ |
| 981 | |
| 982 | /-- Agreement includes the literal axis-to-radius average and pressure, |
| 983 | with no independently prescribed moment data. -/ |
| 984 | theorem real_profiles {T δ : ℝ} (hT : 0 < T) (hδ : 0 < δ) |
| 985 | (hδT : 2*δ < ReferencePath.rampLimit) (κ : ℝ) (hP0 : ContDiff ℝ ∞ P0) |
| 986 | (x : ℝ) {η : ℝ} (hη : η ∈ ReferencePath.parameterInterval) : |
| 987 | let P := StressActivation.FromReference.histories N hT hδ hδT κ P0 hP0 |
| 988 | E.f T κ δ (x,(η : ℂ)) = (P.f (x,η) : ℂ) ∧ |
| 989 | E.U T κ δ (x,(η : ℂ)) = (P.U (x,η) : ℂ) ∧ |
| 990 | E.Ubar T κ δ (x,(η : ℂ)) = (P.Ubar (x,η) : ℂ) ∧ |
| 991 | E.Pi T κ δ (x,(η : ℂ)) = (P.pressure (x,η) : ℂ) := by |
| 992 | refine ⟨E.natural.actF_real hδ hδT T κ x hη, |
| 993 | E.natural.actU_real hδ hδT T κ x hη,?_,?_⟩ |
| 994 | · exact average_ofReal (fun y => E.natural.actU_real hδ hδT T κ y hη) x |
| 995 | · exact pressure_ofReal (fun y => E.natural.actF_real hδ hδT T κ y hη) (E.pressure0_real η) x |
| 996 | |
| 997 | end InitialTube |
| 998 | |
| 999 | /-- Actual coefficient profiles and the actual pressure datum construct the |
| 1000 | common tube. The width is chosen before the REF and ACT cutoff lengths. -/ |
| 1001 | theorem exists_initialTube {h j σ Λ C : ℝ} {g a : ℝ → ℝ} {cap : ℝ} |
| 1002 | (hp : PressureDatum.Admissible g a cap) |
| 1003 | {d : AnalyticInputs h j σ (PressureDatum.pressure g a)} |
| 1004 | (F : CoefficientProfile d Λ C) (hΛ : 0 < Λ) |
| 1005 | (hsmall : NaturalAxisData.SmallParameters h j) (hσ : 0 < σ) : |
| 1006 | ∃ ρ : ℝ, 0 < ρ ∧ Nonempty (InitialTube (ReferenceJetBounds.referenceInput F hΛ) h |
| 1007 | (PressureDatum.pressure g a) (5/Λ) (AxisHolomorphic.parameterTube parameterWindow ρ)) := by |
| 1008 | obtain ⟨ρ,hρ,E,hreg⟩ := exists_natural_extension F hΛ hsmall hσ |
| 1009 | refine ⟨ρ,hρ,⟨{ |
| 1010 | natural := E |
| 1011 | isOpen := parameterTube_open _ _ |
| 1012 | real_mem := fun η hη => AxisHolomorphic.parameterTube_contains_real parameterWindow hρ (closed_parameter_subset hη) |
| 1013 | elliptic_ne_zero := fun z hz => (hreg hz).1.2 |
| 1014 | pressure0 := PressureDatum.complexPressure g a |
| 1015 | pressure0_analytic := (PressureDatum.complexPressure_analytic hp).mono (fun z hz => (hreg hz).1.1) |
| 1016 | pressure0_real := PressureDatum.complexPressure_ofReal g a |
| 1017 | }⟩⟩ |
| 1018 | |
| 1019 | end NavierStokes.ActivationHolomorphic |
| 1020 | |
| 1021 | end |