import PoincareLib.Geometry.RicciFlow.Curvature.Evolution.Connection.ConnectionVariation /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M04/ConnectionVariationVector.lean`, revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. See the curvature import record under `references/ricci-flow/mapher/curvature/`. -/ /-! # Vector variation of the supplied connection The fixed-metric pairing variation is reconstructed in the orthonormal basis at the evaluation point. See Topping, Proposition 2.3.1 and Remarks 2.3.2-2.3.3. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle open Set Topology Filter universe u namespace PoincareMT.RicciFlowAnalysis variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {J : Set ℝ} theorem hasDerivAt_connection_vector (F : RicciFlow n M J) {U : Set M} {X Y : (y : M) β†’ TangentSpace (𝓑 n) y} {t : ℝ} {x : M} (hU : IsOpen U) (hX : ContMDiffOn (𝓑 n) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% X) U) (hY : ContMDiffOn (𝓑 n) ((𝓑 n).prod π“˜(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Y) U) (ht : t ∈ interior J) (hx : x ∈ U) : letI : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨(F.metric t).toRiemannianMetric⟩ let D := F.connection t let b := (F.metric t).orthonormalBasis x HasDerivAt (fun s ↦ (F.connection s).connection Y x (X x)) (βˆ‘ i, (-D.covariantTensorDerivative D.ricciEvaluation x ![X x, Y x, b i] - D.covariantTensorDerivative D.ricciEvaluation x ![Y x, X x, b i] + D.covariantTensorDerivative D.ricciEvaluation x ![b i, X x, Y x]) β€’ b i) t := by classical let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨(F.metric t).toRiemannianMetric⟩ let D := F.connection t let b := (F.metric t).orthonormalBasis x let a (i : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x))) := -D.covariantTensorDerivative D.ricciEvaluation x ![X x, Y x, b i] - D.covariantTensorDerivative D.ricciEvaluation x ![Y x, X x, b i] + D.covariantTensorDerivative D.ricciEvaluation x ![b i, X x, Y x] change HasDerivAt (fun s ↦ (F.connection s).connection Y x (X x)) (βˆ‘ i, a i β€’ b i) t let e := trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n) : M β†’ Type _) x have hxe : x ∈ U ∩ e.baseSet := ⟨hx, FiberBundle.mem_baseSet_trivializationAt' x⟩ have hc (i : Fin (Module.finrank ℝ (TangentSpace (𝓑 n) x))) : HasDerivAt (fun s ↦ (F.metric t).inner x ((F.connection s).connection Y x (X x)) (b i)) (a i) t := by have h := hasDerivAt_connection_pairing F (hU.inter e.open_baseSet) (hX.mono inter_subset_left) (hY.mono inter_subset_left) ((contMDiffOn_extend_baseSet (n := n) (M := M) (x := x) (b i)).mono inter_subset_right) ht hxe simpa only [FiberBundle.extend_apply_self] using h have hs := HasDerivAt.fun_sum (u := Finset.univ) (fun i _ ↦ (hc i).smul_const (b i)) have heq (s : ℝ) : (βˆ‘ i, (F.metric t).inner x ((F.connection s).connection Y x (X x)) (b i) β€’ b i) = (F.connection s).connection Y x (X x) := by change (βˆ‘ i, inner ℝ ((F.connection s).connection Y x (X x)) (b i) β€’ b i) = _ simpa only [real_inner_comm] using b.sum_repr' ((F.connection s).connection Y x (X x)) exact hs.congr_of_eventuallyEq (Eventually.of_forall fun s ↦ (heq s).symm) end PoincareMT.RicciFlowAnalysis