/- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/PullbackMetricNative.lean` at f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See `references/ricci-flow/mapher/local-theory/port.json`. -/ import PoincareLib.Geometry.Riemannian.Connection import Mathlib.Geometry.Manifold.Diffeomorph import Mathlib.Geometry.Manifold.VectorBundle.ContMDiffSection /-! # Native pullback metric construction This file constructs the metric pulled back by a smooth diffeomorphism. The smoothness of the bundled bilinear section is supplied by the producer that constructs the diffeomorphism family; the metric itself is constructed here without importing an external Ricci-flow formalization. -/ set_option autoImplicit false set_option maxHeartbeats 1600000 open scoped Manifold ContDiff Bundle noncomputable section universe u namespace PoincareMT variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] local notation "E" => EuclideanSpace ℝ (Fin n) local notation "FiberBilin" => fun x : M => TangentSpace (𝓑 n) x β†’L[ℝ] TangentSpace (𝓑 n) x β†’L[ℝ] ℝ noncomputable def pinner (g : RiemannianMetric n M) (Ξ¦ : Diffeomorph (𝓑 n) (𝓑 n) M M ∞) (x : M) : TangentSpace (𝓑 n) x β†’L[ℝ] TangentSpace (𝓑 n) x β†’L[ℝ] ℝ := by letI : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ let A := Ξ¦.mfderivToContinuousLinearEquiv (by simp) x exact (((ContinuousLinearMap.precompL (π•œ := ℝ) (TangentSpace (𝓑 n) x) (g.inner (Ξ¦ x))) A.toContinuousLinearMap).comp A.toContinuousLinearMap).flip theorem pinner_apply (g : RiemannianMetric n M) (Ξ¦ : Diffeomorph (𝓑 n) (𝓑 n) M M ∞) (x : M) (v w : TangentSpace (𝓑 n) x) : pinner g Ξ¦ x v w = g.inner (Ξ¦ x) (mfderiv (𝓑 n) (𝓑 n) Ξ¦ x v) (mfderiv (𝓑 n) (𝓑 n) Ξ¦ x w) := by simp [pinner, Diffeomorph.mfderivToContinuousLinearEquiv_coe] noncomputable def pullbackMetric (g : RiemannianMetric n M) (Ξ¦ : Diffeomorph (𝓑 n) (𝓑 n) M M ∞) (hsmooth : ContMDiff (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E β†’L[ℝ] E β†’L[ℝ] ℝ)) ∞ (fun x : M => Bundle.TotalSpace.mk' (E β†’L[ℝ] E β†’L[ℝ] ℝ) x (pinner g Ξ¦ x))) : RiemannianMetric n M where inner := pinner g Ξ¦ symm x v w := by rw [pinner_apply, pinner_apply, g.symm] pos x v hv := by letI : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ let A := Ξ¦.mfderivToContinuousLinearEquiv (by simp) x apply g.pos (Ξ¦ x) (A v) intro hz apply hv exact A.injective (by simpa using hz) isVonNBounded x := by letI : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ let A := Ξ¦.mfderivToContinuousLinearEquiv (by simp) x let Ainv := A.symm.toContinuousLinearMap refine ((g.isVonNBounded (Ξ¦ x)).image Ainv).subset ?_ intro v hv refine ⟨A v, ?_, ?_⟩ Β· change g.inner (Ξ¦ x) (A v) (A v) < 1 exact hv Β· exact A.symm_apply_apply v contMDiff := hsmooth theorem pullbackMetric_inner (g : RiemannianMetric n M) (Ξ¦ : Diffeomorph (𝓑 n) (𝓑 n) M M ∞) (hsmooth : ContMDiff (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E β†’L[ℝ] E β†’L[ℝ] ℝ)) ∞ (fun x : M => Bundle.TotalSpace.mk' (E β†’L[ℝ] E β†’L[ℝ] ℝ) x (pinner g Ξ¦ x))) (x : M) (v w : TangentSpace (𝓑 n) x) : (pullbackMetric g Ξ¦ hsmooth).inner x v w = g.inner (Ξ¦ x) (mfderiv (𝓑 n) (𝓑 n) Ξ¦ x v) (mfderiv (𝓑 n) (𝓑 n) Ξ¦ x w) := by exact pinner_apply g Ξ¦ x v w theorem pullbackMetric_refl (g : RiemannianMetric n M) (hsmooth : ContMDiff (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E β†’L[ℝ] E β†’L[ℝ] ℝ)) ∞ (fun x : M => Bundle.TotalSpace.mk' (E β†’L[ℝ] E β†’L[ℝ] ℝ) x (pinner g (Diffeomorph.refl (𝓑 n) M ∞) x))) : pullbackMetric g (Diffeomorph.refl (𝓑 n) M ∞) hsmooth = g := by have hinner : βˆ€ x (v w : TangentSpace (𝓑 n) x), (pullbackMetric g (Diffeomorph.refl (𝓑 n) M ∞) hsmooth).inner x v w = g.inner x v w := by intro x v w rw [pullbackMetric_inner] simp only [Diffeomorph.coe_refl, mfderiv_id, ContinuousLinearMap.id_apply, id_eq] change g.inner x v w = g.inner x v w rfl have hp := hinner cases h₁ : pullbackMetric g (Diffeomorph.refl (𝓑 n) M ∞) hsmooth cases hβ‚‚ : g rw [h₁, hβ‚‚] at hp simp only [Bundle.ContMDiffRiemannianMetric.mk.injEq] funext x apply ContinuousLinearMap.ext intro v apply ContinuousLinearMap.ext intro w exact hp x v w end PoincareMT