import PoincareLib.Geometry.Spacetime.Rescaling.Interval import PoincareLib.Geometry.Spacetime.Rescaling.Interval.Smooth import Mathlib.Analysis.Calculus.Deriv.Mul /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M13/IntervalTransport.lean`, revision `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See `references/ricci-flow/mapher/rescaling-import.json`. -/ /-! # Affine transport of selected interval realizations The two interval realizations may be selected independently. Derivative factors are measured by their retained positive actual time tangents. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open scoped Manifold ContDiff Topology namespace PoincareMT.ParabolicRescaling theorem interval_map_derivative {I J : SpacetimeInterval} (D : SmoothSpacetimeInterval I) (E : SmoothSpacetimeInterval J) (f : D.Point โ†’ E.Point) (hf : ContMDiff (๐“กโˆ‚ 1) (๐“กโˆ‚ 1) โˆž f) (ฯ† : โ„ โ†’ โ„) (hval : โˆ€ x, (f x : โ„) = ฯ† (x : โ„)) (x : D.Point) (c : โ„) (hฯ† : HasDerivAt ฯ† c (x : โ„)) : mfderiv (๐“กโˆ‚ 1) (๐“กโˆ‚ 1) f x (D.positiveTangent x) = c โ€ข E.positiveTangent (f x) := by let : ChartedSpace (EuclideanHalfSpace 1) D.Point := D.chartedSpace let : IsManifold (๐“กโˆ‚ 1) โˆž D.Point := D.isManifold let : ChartedSpace (EuclideanHalfSpace 1) E.Point := E.chartedSpace let : IsManifold (๐“กโˆ‚ 1) โˆž E.Point := E.isManifold apply (E.inclusionDerivative (f x)).injective have houter := mfderiv_comp x (E.inclusion_smooth.mdifferentiable (by simp) (f x)) (hf.mdifferentiable (by simp) x) have hscalar := hฯ†.hasFDerivAt.hasMFDerivAt.comp x (D.inclusion_smooth.mdifferentiable (by simp) x).hasMFDerivAt have hfun : (Subtype.val : E.Point โ†’ โ„) โˆ˜ f = ฯ† โˆ˜ (Subtype.val : D.Point โ†’ โ„) := funext hval have hderiv := hscalar.mfderiv rw [โ† hfun, houter, โ† E.inclusionDerivative_eq, โ† D.inclusionDerivative_eq] at hderiv have hvalue := congrArg (fun L : TangentSpace (๐“กโˆ‚ 1) x โ†’L[โ„] โ„ โ†ฆ L (D.positiveTangent x)) hderiv change (E.inclusionDerivative (f x)) (mfderiv (๐“กโˆ‚ 1) (๐“กโˆ‚ 1) f x (D.positiveTangent x)) = (ContinuousLinearMap.toSpanSingleton โ„ c) (D.inclusionDerivative x (D.positiveTangent x)) at hvalue simpa only [ContinuousLinearMap.comp_apply, ContinuousLinearEquiv.coe_coe, SmoothSpacetimeInterval.positiveTangent, ContinuousLinearEquiv.apply_symm_apply, ContinuousLinearMap.toSpanSingleton_apply_one, map_smul, smul_eq_mul, mul_one] using hvalue noncomputable def affineIntervalDiffeomorph (I : SpacetimeInterval) (Q : โ„) (hQ : 0 < Q) (a : โ„) (D : SmoothSpacetimeInterval I) (E : SmoothSpacetimeInterval (parabolicInterval Q hQ a I)) : Diffeomorph (๐“กโˆ‚ 1) (๐“กโˆ‚ 1) D.Point E.Point โˆž where toFun := parabolicTimePoint Q hQ a I invFun := parabolicTimePointInv Q hQ a I left_inv := by intro t apply Subtype.ext exact parabolicTimeInv_parabolicTime Q hQ a t.val right_inv := by intro s apply Subtype.ext exact parabolicTime_parabolicTimeInv Q hQ a s.val contMDiff_toFun := by apply interval_map_smooth D E have hclock : ContDiff โ„ โˆž (parabolicTime Q a) := contDiff_const.mul (contDiff_id.sub contDiff_const) exact hclock.contMDiff.comp D.inclusion_smooth contMDiff_invFun := by apply interval_map_smooth E D have hclock : ContDiff โ„ โˆž (parabolicTimeInv Q a) := contDiff_const.add (contDiff_id.div_const Q) exact hclock.contMDiff.comp E.inclusion_smooth theorem affineIntervalDiffeomorph_derivative (I : SpacetimeInterval) (Q : โ„) (hQ : 0 < Q) (a : โ„) (D : SmoothSpacetimeInterval I) (E : SmoothSpacetimeInterval (parabolicInterval Q hQ a I)) (t : D.Point) : mfderiv (๐“กโˆ‚ 1) (๐“กโˆ‚ 1) (affineIntervalDiffeomorph I Q hQ a D E) t (D.positiveTangent t) = Q โ€ข E.positiveTangent (affineIntervalDiffeomorph I Q hQ a D E t) := by apply interval_map_derivative D E _ (Diffeomorph.contMDiff _) (parabolicTime Q a) (fun _ โ†ฆ rfl) convert! ((hasDerivAt_id (t : โ„)).sub_const a).const_mul Q using 1 simp theorem affineIntervalDiffeomorph_inverse_derivative (I : SpacetimeInterval) (Q : โ„) (hQ : 0 < Q) (a : โ„) (D : SmoothSpacetimeInterval I) (E : SmoothSpacetimeInterval (parabolicInterval Q hQ a I)) (s : E.Point) : mfderiv (๐“กโˆ‚ 1) (๐“กโˆ‚ 1) (affineIntervalDiffeomorph I Q hQ a D E).symm s (E.positiveTangent s) = (1 / Q : โ„) โ€ข D.positiveTangent ((affineIntervalDiffeomorph I Q hQ a D E).symm s) := by apply interval_map_derivative E D _ (Diffeomorph.contMDiff _) (parabolicTimeInv Q a) (fun _ โ†ฆ rfl) convert! ((hasDerivAt_id (s : โ„)).div_const Q).const_add a using 1 noncomputable def parabolicIntervalTransport (T : SpacetimeIntervalSystem) (Q : โ„) (hQ : 0 < Q) (a : โ„) : ParabolicIntervalTransport T Q hQ a where diffeomorph I := affineIntervalDiffeomorph I Q hQ a (T.interval I) (T.interval (parabolicInterval Q hQ a I)) forward_eq _ _ := rfl inverse_eq _ _ := rfl derivative I := affineIntervalDiffeomorph_derivative I Q hQ a (T.interval I) (T.interval (parabolicInterval Q hQ a I)) inverse_derivative I := affineIntervalDiffeomorph_inverse_derivative I Q hQ a (T.interval I) (T.interval (parabolicInterval Q hQ a I)) end PoincareMT.ParabolicRescaling