/- Adapted from Mapher `PoincareMT/Proofs/M03/Existence/MetricPerturbationNative.lean` at f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See `references/ricci-flow/mapher/local-theory/port.json`. -/ import PoincareLib.Geometry.Riemannian.Connection import PoincareLib.Geometry.RicciFlow.Basic import Mathlib.Geometry.Manifold.VectorBundle.ContMDiffSection /-! # Native positive metric decoder This is the metric-reconstruction node used by a local DeTurck producer. A smooth symmetric perturbation which is bounded by a fixed fraction of a background metric is decoded directly into a genuine `ContMDiffRiemannianMetric`. No flow or analytic existence result is assumed. -/ set_option autoImplicit false set_option maxHeartbeats 1600000 set_option synthInstance.maxHeartbeats 100000 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[ℝ] ℝ /-- A smooth symmetric tensor whose quadratic part is at most half the background metric. -/ structure SmallMetricPerturbation (gβ‚€ : RiemannianMetric n M) where tensor : βˆ€ x : M, FiberBilin x symm : βˆ€ (x : M) (v w : TangentSpace (𝓑 n) x), tensor x v w = tensor x w v small : βˆ€ (x : M) (v : TangentSpace (𝓑 n) x), |tensor x v v| ≀ (1 / 2 : ℝ) * gβ‚€.inner x v v smooth : ContMDiff (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E β†’L[ℝ] E β†’L[ℝ] ℝ)) ∞ (fun x : M => Bundle.TotalSpace.mk' (E β†’L[ℝ] E β†’L[ℝ] ℝ) x (tensor x)) namespace SmallMetricPerturbation variable {gβ‚€ : RiemannianMetric n M} (P : SmallMetricPerturbation gβ‚€) theorem lower_bound (x : M) (v : TangentSpace (𝓑 n) x) : (1 / 2 : ℝ) * gβ‚€.inner x v v ≀ gβ‚€.inner x v v + P.tensor x v v := by have h := neg_le_of_abs_le (P.small x v) linarith theorem positive (x : M) (v : TangentSpace (𝓑 n) x) (hv : v β‰  0) : 0 < gβ‚€.inner x v v + P.tensor x v v := by exact (mul_pos (by norm_num) (gβ‚€.pos x v hv)).trans_le (P.lower_bound x v) /-- Decode the perturbation as a metric. -/ noncomputable def metric : RiemannianMetric n M where inner x := gβ‚€.inner x + P.tensor x symm x v w := by simp only [add_apply] rw [gβ‚€.symm] exact congrArg (fun z => gβ‚€.inner x w v + z) (P.symm x v w) pos x v hv := P.positive x v hv isVonNBounded x := by let c : ℝ := 1 / 2 let L : TangentSpace (𝓑 n) x β†’L[ℝ] TangentSpace (𝓑 n) x := (Real.sqrt c)⁻¹ β€’ ContinuousLinearMap.id ℝ (TangentSpace (𝓑 n) x) refine ((gβ‚€.isVonNBounded x).image L).subset ?_ intro v hv refine ⟨Real.sqrt c β€’ v, ?_, ?_⟩ Β· change gβ‚€.inner x (Real.sqrt c β€’ v) (Real.sqrt c β€’ v) < 1 simp only [map_smul, smul_apply, smul_eq_mul] rw [← mul_assoc, Real.mul_self_sqrt (by norm_num : 0 ≀ c)] exact (P.lower_bound x v).trans_lt hv Β· change (Real.sqrt c)⁻¹ β€’ (Real.sqrt c β€’ v) = v rw [smul_smul, inv_mul_cancelβ‚€ (Real.sqrt_ne_zero'.mpr (by norm_num : 0 < c)), one_smul] contMDiff := gβ‚€.contMDiff.add_section P.smooth @[simp] theorem metric_inner (x : M) (v w : TangentSpace (𝓑 n) x) : P.metric.inner x v w = gβ‚€.inner x v w + P.tensor x v w := rfl theorem metric_lower_bound (x : M) (v : TangentSpace (𝓑 n) x) : (1 / 2 : ℝ) * gβ‚€.inner x v v ≀ P.metric.inner x v v := by exact P.lower_bound x v theorem metric_positive (x : M) (v : TangentSpace (𝓑 n) x) (hv : v β‰  0) : 0 < P.metric.inner x v v := by exact P.positive x v hv end SmallMetricPerturbation /-- The zero perturbation is the actual initial metric seed. -/ noncomputable def SmallMetricPerturbation.zero (gβ‚€ : RiemannianMetric n M) : SmallMetricPerturbation gβ‚€ where tensor := fun _ => 0 symm := by simp small := by intro x v simp only [zero_apply, abs_zero] by_cases hv : v = 0 Β· simp [hv] Β· exact (mul_pos (by norm_num) (gβ‚€.pos x v hv)).le smooth := by change ContMDiff (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E β†’L[ℝ] E β†’L[ℝ] ℝ)) ∞ (Bundle.zeroSection (E β†’L[ℝ] E β†’L[ℝ] ℝ) (fun x : M => FiberBilin x)) exact Bundle.contMDiff_zeroSection ℝ _ @[simp] theorem SmallMetricPerturbation.zero_metric (gβ‚€ : RiemannianMetric n M) : (SmallMetricPerturbation.zero gβ‚€).metric = gβ‚€ := by have hinner : βˆ€ (x : M) (v w : TangentSpace (𝓑 n) x), (SmallMetricPerturbation.zero gβ‚€).metric.inner x v w = gβ‚€.inner x v w := by intro x v w change gβ‚€.inner x v w + (0 : FiberBilin x) v w = gβ‚€.inner x v w simp cases h₁ : (SmallMetricPerturbation.zero gβ‚€).metric cases hβ‚‚ : gβ‚€ simp only [Bundle.ContMDiffRiemannianMetric.mk.injEq] funext x apply ContinuousLinearMap.ext intro v apply ContinuousLinearMap.ext intro w simpa only [h₁, hβ‚‚] using hinner x v w /-! The same decoder at every time, with the joint section exposed in the native spacetime form used by the short-time contract. -/ structure SmallMetricPath (gβ‚€ : RiemannianMetric n M) (J : Set ℝ) where tensor : ℝ β†’ βˆ€ x : M, FiberBilin x symm : βˆ€ (t : ℝ) (x : M) (v w : TangentSpace (𝓑 n) x), tensor t x v w = tensor t x w v small : βˆ€ (t : ℝ) (x : M) (v : TangentSpace (𝓑 n) x), |tensor t x v v| ≀ (1 / 2 : ℝ) * gβ‚€.inner x v v slice_smooth : βˆ€ t : ℝ, ContMDiff (𝓑 n) ((𝓑 n).prod π“˜(ℝ, E β†’L[ℝ] E β†’L[ℝ] ℝ)) ∞ (fun x : M => Bundle.TotalSpace.mk' (E β†’L[ℝ] E β†’L[ℝ] ℝ) x (tensor t x)) joint_smooth : RiemannianMetric.IsSmoothFamilyOn (fun t => SmallMetricPerturbation.metric ({ tensor := tensor t symm := symm t small := small t smooth := slice_smooth t } : SmallMetricPerturbation gβ‚€)) J initial_zero : βˆ€ (x : M) (v w : TangentSpace (𝓑 n) x), tensor 0 x v w = 0 namespace SmallMetricPath variable {gβ‚€ : RiemannianMetric n M} {J : Set ℝ} (P : SmallMetricPath gβ‚€ J) noncomputable def slice (t : ℝ) : SmallMetricPerturbation gβ‚€ where tensor := P.tensor t symm := P.symm t small := P.small t smooth := P.slice_smooth t noncomputable def metric (t : ℝ) : RiemannianMetric n M := (P.slice t).metric @[simp] theorem metric_inner (t : ℝ) (x : M) (v w : TangentSpace (𝓑 n) x) : (P.metric t).inner x v w = gβ‚€.inner x v w + P.tensor t x v w := rfl theorem metric_initial : P.metric 0 = gβ‚€ := by have hinner : βˆ€ (x : M) (v w : TangentSpace (𝓑 n) x), (P.metric 0).inner x v w = gβ‚€.inner x v w := by intro x v w rw [P.metric_inner, P.initial_zero] simp cases h₁ : P.metric 0 cases hβ‚‚ : gβ‚€ simp only [Bundle.ContMDiffRiemannianMetric.mk.injEq] funext x apply ContinuousLinearMap.ext intro v apply ContinuousLinearMap.ext intro w simpa only [h₁, hβ‚‚] using hinner x v w theorem metric_isSmoothFamilyOn : RiemannianMetric.IsSmoothFamilyOn P.metric J := by change RiemannianMetric.IsSmoothFamilyOn (fun t => (P.slice t).metric) J exact P.joint_smooth theorem metric_lower_bound (t : ℝ) (x : M) (v : TangentSpace (𝓑 n) x) : (1 / 2 : ℝ) * gβ‚€.inner x v v ≀ (P.metric t).inner x v v := by exact (P.slice t).metric_lower_bound x v end SmallMetricPath end PoincareMT