Buckets:
| import OAI.Analysis.LienardCycles.ArchVariation | |
| namespace OAI | |
| universe uP | |
| open Set Filter MeasureTheory | |
| open Set Filter Metric | |
| open scoped Topology NNReal ContDiff Manifold | |
| open Filter Set | |
| open Set Filter Metric MeasureTheory | |
| open scoped Topology NNReal ContDiff | |
| open Set Filter | |
| open scoped Topology ContDiff | |
| open Set Filter | |
| open scoped Topology ContDiff | |
| namespace QuinticLienard.CanonicalVariation | |
| open ScalarArcs ArcEndpoints ArcFamilies PartialCalculus ArchVariation | |
| lemma canonical_of_arch {φ u : ℝ → ℝ} {h t a b : ℝ} | |
| (hu : IsArch φ u h t a b) (hφ : ContDiff ℝ 1 φ) (hht : h < t) : | |
| lower φ h t = a ∧ upper φ h t = b := by | |
| obtain ⟨ψ,K,B,_,hK,_,hψ⟩ := entire_profile_extension hφ hht | |
| have hc := chosen_arch (entire_arch_exists hφ hht) | |
| have hh := hc.unique hu hK hψ | |
| exact ⟨hh.1,hh.2.1⟩ | |
| variable {P : Type uP} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| [FiniteDimensional ℝ P] | |
| theorem endpoint_witness (Φ : P × ℝ → ℝ) (hΦ : ContDiff ℝ ω Φ) | |
| (hloc : ∀ x : State P, ∃ f : State P × ℝ → State P, | |
| ContDiffAt ℝ ω f (x,0) ∧ ∀ᶠ q in 𝓝 (x,(0:ℝ)), | |
| f (q.1,0) = q.1 ∧ HasDerivAt (fun s => f (q.1,s)) (field Φ (f q)) q.2) | |
| {p : P} {t h : ℝ} (hht : h < t) : | |
| ∃ w : (P × ℝ) × ℝ → ℝ, | |
| (∀ q, Continuous (fun y => w (q,y))) ∧ | |
| (∀ q, w (q,Φ q) = q.2) ∧ | |
| (∀ y ∈ Icc (lowerFamily Φ ((p,t),h)) (upperFamily Φ ((p,t),h)), | |
| ContDiffAt ℝ ω w ((p,t),y)) ∧ | |
| (∀ y ∈ Icc (lowerFamily Φ ((p,t),h)) (upperFamily Φ ((p,t),h)), | |
| ∀ᶠ q in 𝓝 ((p,t),y), | |
| HasDerivAt (fun s => w (q.1,s)) (Φ (q.1.1,w q)-q.2) q.2) ∧ | |
| ∀ᶠ q in 𝓝 ((p,t),h), | |
| IsArch (fun x => Φ (q.1.1,x)) (fun y => w (q.1,y)) | |
| q.2 q.1.2 (lowerFamily Φ q) (upperFamily Φ q) := by | |
| have hφ (p : P) : ContDiff ℝ 1 (fun x => Φ (p,x)) := | |
| (hΦ.comp (contDiff_const.prodMk contDiff_id)).of_le (by simp) | |
| obtain ⟨u,a₀,b₀,hu⟩ := entire_arch_exists (hφ p) (show h-1 < t by linarith) | |
| obtain ⟨a,b,ha,hb,harch⟩ := hu.subarch (hφ p) (show h-1 < h by linarith) hht | |
| have hV : ContDiffOn ℝ 1 (field Φ) univ := by | |
| have hd : ContDiff ℝ ω (field Φ) := | |
| contDiff_const.prodMk (((hΦ.comp (contDiff_fst.prodMk contDiff_snd.fst)).sub | |
| contDiff_snd.snd).prodMk contDiff_const) | |
| exact (hd.of_le (by simp)).contDiffOn | |
| obtain ⟨w,hwc,hwpeak,hwmatch,hwd,hwe⟩ := peak_family Φ isOpen_univ hV | |
| (fun x _ => hloc x) hΦ.contDiffAt hu.lower_lt_peak hu.peak_lt_upper | |
| hu.continuous hu.peak hu.equation (fun _ _ => mem_univ _) | |
| let A := (a₀+a)/2 | |
| let B := (b+b₀)/2 | |
| have hA : a₀ < A ∧ A < a := by dsimp [A]; constructor <;> linarith | |
| have hB : b < B ∧ B < b₀ := by dsimp [B]; constructor <;> linarith | |
| have hsub : Icc A B ⊆ Ioo a₀ b₀ := | |
| fun _ hy => ⟨hA.1.trans_le hy.1,hy.2.trans_lt hB.2⟩ | |
| have hwb : IsArch (fun x => Φ (p,x)) (fun y => w ((p,t),y)) h t a b := by | |
| apply IsArch.of_solution_and_hits (hφ p) (hwc (p,t)) | |
| (fun y hy => (hwe y (hsub ⟨hA.2.le.trans hy.1,hy.2.trans hB.1.le⟩)).self_of_nhds) | |
| harch.lower_lt_peak harch.peak_lt_upper (hwpeak (p,t)) | |
| · rw [hwmatch a ⟨ha.le,(harch.lower_lt_peak.trans hu.peak_lt_upper).le⟩] | |
| exact harch.lower | |
| · rw [hwmatch b ⟨(hu.lower_lt_peak.trans harch.peak_lt_upper).le,hb.le⟩] | |
| exact harch.upper | |
| obtain ⟨l,r,_,_,_,_,he⟩ := actual_endpoint_families Φ hφ hwc hwpeak | |
| (fun y hy => hwd y (Ioo_subset_Icc_self (hsub hy))) | |
| (fun y hy => hwe y (hsub hy)) hwb hA.2 hB.1 hΦ.continuous.continuousAt | |
| have hlr := canonical_of_arch hwb (hφ p) hht | |
| change lowerFamily Φ ((p,t),h) = a ∧ upperFamily Φ ((p,t),h) = b at hlr | |
| have hinc : Icc (lowerFamily Φ ((p,t),h)) (upperFamily Φ ((p,t),h)) ⊆ | |
| Ioo a₀ b₀ := by | |
| rw [hlr.1,hlr.2] | |
| exact fun _ hy => ⟨ha.trans_le hy.1,hy.2.trans_lt hb⟩ | |
| refine ⟨w,hwc,hwpeak,fun y hy => hwd y (Ioo_subset_Icc_self (hinc hy)), | |
| fun y hy => hwe y (hinc hy),?_⟩ | |
| have ht : ∀ᶠ q : (P × ℝ) × ℝ in 𝓝 ((p,t),h), q.2 < q.1.2 := | |
| continuousAt_snd.eventually_lt continuousAt_fst.snd hht | |
| filter_upwards [he,ht] with q hq hqt | |
| have hcanon := canonical_of_arch hq (hφ q.1.1) hqt | |
| change lowerFamily Φ q = l q ∧ upperFamily Φ q = r q at hcanon | |
| rwa [hcanon.1,hcanon.2] | |
| theorem peak_signs (Φ : P × ℝ → ℝ) (hΦ : ContDiff ℝ ω Φ) | |
| (hloc : ∀ x : State P, ∃ f : State P × ℝ → State P, | |
| ContDiffAt ℝ ω f (x,0) ∧ ∀ᶠ q in 𝓝 (x,(0:ℝ)), | |
| f (q.1,0) = q.1 ∧ HasDerivAt (fun s => f (q.1,s)) (field Φ (f q)) q.2) | |
| {p : P} {t h : ℝ} (hht : h < t) : | |
| deriv (fun s => lowerFamily Φ ((p,s),h)) t < 0 ∧ | |
| 0 < deriv (fun s => upperFamily Φ ((p,s),h)) t := by | |
| obtain ⟨w,hwc,hpeak,hwd,hwe,harch⟩ := endpoint_witness Φ hΦ hloc hht | |
| have hu := harch.self_of_nhds | |
| have hφ : ContDiff ℝ 1 (fun x => Φ (p,x)) := | |
| (hΦ.comp (contDiff_const.prodMk contDiff_id)).of_le (by simp) | |
| let w₀ : ℝ × ℝ → ℝ := fun q => w ((p,q.1),q.2) | |
| let l : ℝ → ℝ := fun s => lowerFamily Φ ((p,s),h) | |
| let r : ℝ → ℝ := fun s => upperFamily Φ ((p,s),h) | |
| have hw₀ (y : ℝ) (hy : y ∈ Icc (l t) (r t)) : ContDiffAt ℝ ω w₀ (t,y) := | |
| (hwd y hy).comp (t,y) ((contDiffAt_const.prodMk contDiffAt_fst).prodMk contDiffAt_snd) | |
| have he₀ (y : ℝ) (hy : y ∈ Icc (l t) (r t)) : | |
| ∀ᶠ q in 𝓝 (t,y), HasDerivAt (fun s => w₀ (q.1,s)) (Φ (p,w₀ q)-q.2) q.2 := by | |
| have hc : ContinuousAt (fun q : ℝ × ℝ => ((p,q.1),q.2)) (t,y) := | |
| (continuousAt_const.prodMk continuousAt_fst).prodMk continuousAt_snd | |
| exact hc.eventually (hwe y hy) | |
| have hh := peak_derivative_positive hφ (hwc (p,t)) hw₀ he₀ | |
| (Eventually.of_forall (fun s => hpeak (p,s))) | |
| ⟨hu.lower_lt_peak.le,hu.peak_lt_upper.le⟩ | |
| obtain ⟨hl,hr⟩ := CanonicalAnalytic.endpoints Φ hΦ hloc (p := p) hht | |
| have hld : DifferentiableAt ℝ l t := | |
| (hl.comp t ((contDiffAt_const.prodMk contDiffAt_id).prodMk contDiffAt_const)).differentiableAt (by simp) | |
| have hrd : DifferentiableAt ℝ r t := | |
| (hr.comp t ((contDiffAt_const.prodMk contDiffAt_id).prodMk contDiffAt_const)).differentiableAt (by simp) | |
| have hag : ∀ᶠ s in 𝓝 t, | |
| IsArch (fun x => Φ (p,x)) (fun y => w₀ (s,y)) h s (l s) (r s) := | |
| ((continuousAt_const.prodMk continuousAt_id).prodMk continuousAt_const).eventually harch | |
| have hab := hu.lower_lt_peak.le.trans hu.peak_lt_upper.le | |
| have hal : l t ∈ Icc (l t) (r t) := ⟨le_rfl,hab⟩ | |
| have har : r t ∈ Icc (l t) (r t) := ⟨hab,le_rfl⟩ | |
| have hel0 : w ((p,t),l t) = h := hu.lower | |
| have her0 : w ((p,t),r t) = h := hu.upper | |
| apply endpoint_peak_signs (φ := fun s => Φ (p,s)) hld hrd ((hw₀ _ hal).differentiableAt (by simp)) | |
| ((hw₀ _ har).differentiableAt (by simp)) | |
| (hag.mono fun _ hq => hq.lower) (hag.mono fun _ hq => hq.upper) | |
| · simpa only [hel0] using hu.equation _ hal | |
| · simpa only [her0] using hu.equation _ har | |
| · exact hh _ hal | |
| · exact hh _ har | |
| · exact hu.lower_transverse | |
| · exact hu.upper_transverse | |
| theorem base_derivatives (Φ : P × ℝ → ℝ) (hΦ : ContDiff ℝ ω Φ) | |
| (hloc : ∀ x : State P, ∃ f : State P × ℝ → State P, | |
| ContDiffAt ℝ ω f (x,0) ∧ ∀ᶠ q in 𝓝 (x,(0:ℝ)), | |
| f (q.1,0) = q.1 ∧ HasDerivAt (fun s => f (q.1,s)) (field Φ (f q)) q.2) | |
| {p : P} {t h : ℝ} (hht : h < t) : | |
| HasDerivAt (fun s => lowerFamily Φ ((p,t),s)) | |
| (1/(Φ (p,h)-lowerFamily Φ ((p,t),h))) h ∧ | |
| HasDerivAt (fun s => upperFamily Φ ((p,t),s)) | |
| (1/(Φ (p,h)-upperFamily Φ ((p,t),h))) h := by | |
| obtain ⟨w,_,_,_,_,he⟩ := endpoint_witness Φ hΦ hloc hht | |
| have hu := he.self_of_nhds | |
| obtain ⟨hl,hr⟩ := CanonicalAnalytic.endpoints Φ hΦ hloc (p := p) hht | |
| let l : ℝ → ℝ := fun s => lowerFamily Φ ((p,t),s) | |
| let r : ℝ → ℝ := fun s => upperFamily Φ ((p,t),s) | |
| have hld : DifferentiableAt ℝ l h := | |
| (hl.comp h (contDiffAt_const.prodMk contDiffAt_id)).differentiableAt (by simp) | |
| have hrd : DifferentiableAt ℝ r h := | |
| (hr.comp h (contDiffAt_const.prodMk contDiffAt_id)).differentiableAt (by simp) | |
| have hag : ∀ᶠ s in 𝓝 h, | |
| IsArch (fun x => Φ (p,x)) (fun y => w ((p,t),y)) s t (l s) (r s) := | |
| (continuousAt_const.prodMk continuousAt_id).eventually he | |
| have hab := hu.lower_lt_peak.le.trans hu.peak_lt_upper.le | |
| have hal : l h ∈ Icc (l h) (r h) := ⟨le_rfl,hab⟩ | |
| have har : r h ∈ Icc (l h) (r h) := ⟨hab,le_rfl⟩ | |
| have hel : w ((p,t),l h) = h := hu.lower | |
| have her : w ((p,t),r h) = h := hu.upper | |
| have hdl : HasDerivAt (fun y => w ((p,t),y)) (Φ (p,h)-l h) (l h) := by | |
| simpa only [hel] using hu.equation _ hal | |
| have hdr : HasDerivAt (fun y => w ((p,t),y)) (Φ (p,h)-r h) (r h) := by | |
| simpa only [her] using hu.equation _ har | |
| have hlv := (hdl.comp h hld.hasDerivAt).unique | |
| ((hasDerivAt_id h).congr_of_eventuallyEq (hag.mono fun _ hq => hq.lower)) | |
| have hrv := (hdr.comp h hrd.hasDerivAt).unique | |
| ((hasDerivAt_id h).congr_of_eventuallyEq (hag.mono fun _ hq => hq.upper)) | |
| have hlne : Φ (p,h)-l h ≠ 0 := ne_of_gt (sub_pos.mpr hu.lower_transverse) | |
| have hrne : Φ (p,h)-r h ≠ 0 := ne_of_lt (sub_neg.mpr hu.upper_transverse) | |
| have hleq : deriv l h = 1/(Φ (p,h)-l h) := by | |
| apply (eq_div_iff hlne).mpr | |
| simpa only [mul_comm] using hlv | |
| have hreq : deriv r h = 1/(Φ (p,h)-r h) := by | |
| apply (eq_div_iff hrne).mpr | |
| simpa only [mul_comm] using hrv | |
| exact ⟨by simpa only [hleq] using hld.hasDerivAt, | |
| by simpa only [hreq] using hrd.hasDerivAt⟩ | |
| theorem peak_width_midpoint_bounds (Φ : P × ℝ → ℝ) (hΦ : ContDiff ℝ ω Φ) | |
| (hloc : ∀ x : State P, ∃ f : State P × ℝ → State P, | |
| ContDiffAt ℝ ω f (x,0) ∧ ∀ᶠ q in 𝓝 (x,(0:ℝ)), | |
| f (q.1,0) = q.1 ∧ HasDerivAt (fun s => f (q.1,s)) (field Φ (f q)) q.2) | |
| {p : P} {t h : ℝ} (hht : h < t) : | |
| 0 < deriv (fun s => width (fun u => Φ (p,u)) h s) t ∧ | |
| |deriv (fun s => midpoint (fun u => Φ (p,u)) h s) t / | |
| deriv (fun s => width (fun u => Φ (p,u)) h s) t| < 1 := by | |
| obtain ⟨hl,hr⟩ := CanonicalAnalytic.endpoints Φ hΦ hloc (p := p) hht | |
| have hld := (hl.comp t | |
| ((contDiffAt_const.prodMk contDiffAt_id).prodMk contDiffAt_const)).differentiableAt | |
| (by simp) | |
| have hrd := (hr.comp t | |
| ((contDiffAt_const.prodMk contDiffAt_id).prodMk contDiffAt_const)).differentiableAt | |
| (by simp) | |
| obtain ⟨hls,hrs⟩ := peak_signs Φ hΦ hloc hht | |
| have hb := width_midpoint_peak_bounds hld hrd hls hrs | |
| have hmid : deriv (fun s => midpoint (fun u => Φ (p,u)) h s) t = | |
| deriv (fun s => (upperFamily Φ ((p,s),h)+lowerFamily Φ ((p,s),h))/2) t := by | |
| exact (((hrd.hasDerivAt.add hld.hasDerivAt).div_const 2).sub_const (Φ (p,h))).deriv.trans | |
| (((hrd.hasDerivAt.add hld.hasDerivAt).div_const 2).deriv.symm) | |
| rw [hmid] | |
| exact hb | |
| end QuinticLienard.CanonicalVariation | |
| end OAI | |
Xet Storage Details
- Size:
- 11 kB
- Xet hash:
- ed6a4ee70b4ab2c6ab27c67de6b9a4cd875544cbd3a6a0aa5d9399f08a99b510
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.