cfahlgren1's picture
download
raw
7.83 kB
124
def diagonalSplitAction (x : M) (t : โ„)
    (q : TangentSpace ๐“˜(โ„,Model n) x ร— TangentSpace ๐“˜(โ„,Model n) x) : โ„ :=
body ยท 1 line
  splitNormalAction x t q.1 (0,q.2)
128
lemma split_regular_legs_near {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x} {t : โ„}
    (hleft : t โ€ข p โˆˆ injectivityDomain x)
    (hright : (1-t) โ€ข (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
      injectivityDomain (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1) :
    โˆ€แถ  v : TangentSpace ๐“˜(โ„,Model n) x in ๐“ p, t โ€ข v โˆˆ injectivityDomain x โˆง
      (1-t) โ€ข (sprayFlow t (โŸจx,vโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
        injectivityDomain (sprayFlow t (โŸจx,vโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1 := by
proof ยท 11 lines
  have hscale : Continuous (fun v : TangentSpace ๐“˜(โ„,Model n) x => t โ€ข v) := by fun_prop
  have hโ‚ : โˆ€แถ  v : TangentSpace ๐“˜(โ„,Model n) x in ๐“ p, t โ€ข v โˆˆ injectivityDomain x :=
    hscale.continuousAt.preimage_mem_nhds
      ((isOpen_injectivityDomain x).mem_nhds hleft)
  have hZ := contMDiff_tangentScale.comp ((contMDiff_const (c := 1-t)).prodMk (contMDiff_spray_fiber (E := Model n) x t))
  have hโ‚‚ : โˆ€แถ  v : TangentSpace ๐“˜(โ„,Model n) x in ๐“ p,
      (1-t) โ€ข (sprayFlow t (โŸจx,vโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
        injectivityDomain (sprayFlow t (โŸจx,vโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1 :=
    (hZ.continuous.continuousAt (x := p)).preimage_mem_nhds
      (isOpen_total_injectivityDomain.mem_nhds hright)
  exact hโ‚.and hโ‚‚
147
lemma diagonalSplitAction_contDiffAt {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
    {t : โ„} (hleft : t โ€ข p โˆˆ injectivityDomain x)
    (hright : (1-t) โ€ข (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
      injectivityDomain (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1) :
    ContDiffAt โ„ โˆž (diagonalSplitAction x t) (p,p) :=
proof ยท 2 lines
  (splitNormalAction_contDiffAt hleft hright).comp (p,p)
    (contDiffAt_fst.prodMk (contDiffAt_const.prodMk contDiffAt_snd))
155
lemma diagonalSplitAction_stationary {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
    {t : โ„} (ht : 0<t) (ht1 : t<1) (hleft : t โ€ข p โˆˆ injectivityDomain x)
    (hright : (1-t) โ€ข (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
      injectivityDomain (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1)
    (xi : TangentSpace ๐“˜(โ„,Model n) x) :
    fderiv โ„ (diagonalSplitAction x t) (p,p) (0,xi)=0 := by
proof ยท 33 lines
  have hD := cost_start_gradient_of_injectivityDomain hright
  rw [shifted_exp_endpoint] at hD
  have hD' : HasMFDerivAt ๐“˜(โ„,Model n) ๐“˜(โ„,โ„)
      (fun b => dist b (riemannianExp x p)^2/2)
      (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1
      (innerSL โ„ ((-(1-t)) โ€ข (sprayFlow t (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2)) := by
    simpa only [cost,neg_smul] using hD
  have H := spray_action_line_stationary x p xi t (1-t) (sub_pos.mpr ht1).ne' (riemannianExp x p) hD'
  have hline : ContinuousAt (fun s : โ„ => p+s โ€ข xi) 0 := by fun_prop
  have hnear : โˆ€แถ  s : โ„ in ๐“ 0, t โ€ข (p+s โ€ข xi) โˆˆ injectivityDomain x := by
    have hn := (split_regular_legs_near hleft hright).mono (fun _ h => h.1)
    have hl : Tendsto (fun s : โ„ => p+s โ€ข xi) (๐“ 0) (๐“ p) := by simpa only [ContinuousAt,zero_smul,add_zero] using hline
    exact hl.eventually hn
  have heq : (fun s : โ„ => diagonalSplitAction x t (p,p+s โ€ข xi)) =แถ [๐“ 0]
      (fun s : โ„ => t*โ€–p+s โ€ข xiโ€–^2/2 +
        dist (sprayFlow t (โŸจx,p+s โ€ข xiโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1 (riemannianExp x p)^2/2/(1-t)) := by
    filter_upwards [hnear] with s hs
    have hm := injectivityDomain_subset_minimizingVectors x hs
    change dist x (riemannianExp x (t โ€ข (p+s โ€ข xi)))=โ€–t โ€ข (p+s โ€ข xi)โ€– at hm
    simp only [diagonalSplitAction,splitNormalAction,riemannianExp_zero,cost]
    rw [hm,norm_smul,Real.norm_eq_abs,abs_of_pos ht]
    rw [riemannianExp_smul]
    field_simp
  have hstat := H.congr_of_eventuallyEq heq
  have hpโ‚€ : HasDerivAt (fun s : โ„ => (p,p+s โ€ข xi)) (0,xi) 0 := by
    convert! (hasDerivAt_const (0:โ„) p).prodMk
      ((hasDerivAt_const (0:โ„) p).add ((hasDerivAt_id (0:โ„)).smul_const xi)) using 1
    simp
  have hf := ((diagonalSplitAction_contDiffAt hleft hright).differentiableAt (by simp)).hasFDerivAt
  have hf' : HasFDerivAt (diagonalSplitAction x t)
      (fderiv โ„ (diagonalSplitAction x t) (p,p)) (p,p+(0:โ„) โ€ข xi) := by
    simpa only [zero_smul,add_zero] using hf
  exact (hf'.comp_hasDerivAt (f := fun s : โ„ => (p,p+s โ€ข xi)) 0 hpโ‚€).unique hstat

Xet Storage Details

Size:
7.83 kB
ยท
Xet hash:
719d7db0bca1172123dd4a610d0f3045318fc444cfdba3fa88165a93e6d21750

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.