import PoincareLib.Geometry.Spacetime.Realization.Interval.Differential /-! # Coherence of the interval realizations The actual subtype inclusions are smooth even when an endpoint of a smaller interval is interior to the larger one. Their differentials preserve the positive time tangent by the chain rule for the common real inclusion. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Bundle Topology open PoincareMT namespace Poincare.Spacetime.Realization theorem smoothInterval_inclusion_smooth (I J : SpacetimeInterval) (h : I.domain βŠ† J.domain) : ContMDiff (π“‘βˆ‚ 1) (π“‘βˆ‚ 1) ∞ (spacetimeIntervalInclusion (smoothInterval I) (smoothInterval J) h) := by let := intervalChartedSpace I let := intervalChartedSpace J let f := spacetimeIntervalInclusion (smoothInterval I) (smoothInterval J) h intro t let D := intervalSegmentAt J (f t) let : Fact (D.left < D.right) := ⟨D.lt⟩ let S : Set (smoothInterval I).Point := {s | s.val ∈ D.window} have hS : S ∈ 𝓝 t := (D.open_window.preimage continuous_subtype_val).mem_nhds (intervalSegmentAt_mem J (f t)) have hproj : ContMDiffOn (π“‘βˆ‚ 1) (π“‘βˆ‚ 1) ∞ (D.toSegment ∘ f) S := by apply contMDiffOn_projIcc.comp (smoothInterval I).inclusion_smooth.contMDiffOn intro s hs exact D.window_subset ⟨hs, h s.property⟩ apply contMDiffAt_iff_target.mpr refine ⟨?_, ?_⟩ Β· change ContinuousAt (fun s : I.domain ↦ (⟨s.val, h s.property⟩ : J.domain)) t fun_prop change ContMDiffAt (π“‘βˆ‚ 1) π“˜(ℝ, EuclideanSpace ℝ (Fin 1)) ∞ (extChartAt (π“‘βˆ‚ 1) (D.toSegment (f t)) ∘ (D.toSegment ∘ f)) t exact (contMDiffAt_extChartAt (I := π“‘βˆ‚ 1) (x := D.toSegment (f t))).comp t (hproj.contMDiffAt hS) theorem smoothInterval_inclusion_derivative (I J : SpacetimeInterval) (h : I.domain βŠ† J.domain) (t : (smoothInterval I).Point) : mfderiv (π“‘βˆ‚ 1) (π“‘βˆ‚ 1) (spacetimeIntervalInclusion (smoothInterval I) (smoothInterval J) h) t ((smoothInterval I).positiveTangent t) = (smoothInterval J).positiveTangent (spacetimeIntervalInclusion (smoothInterval I) (smoothInterval J) h t) := by let := intervalChartedSpace I let := intervalChartedSpace J let f := spacetimeIntervalInclusion (smoothInterval I) (smoothInterval J) h apply ((smoothInterval J).inclusionDerivative (f t)).injective have hchain := mfderiv_comp_apply t (((smoothInterval J).inclusion_smooth (f t)).mdifferentiableAt (by simp)) ((smoothInterval_inclusion_smooth I J h t).mdifferentiableAt (by simp)) ((smoothInterval I).positiveTangent t) have hnorm : mfderiv (π“‘βˆ‚ 1) π“˜(ℝ) (Subtype.val ∘ f) t ((smoothInterval I).positiveTangent t) = (1 : ℝ) := ((smoothInterval I).inclusionDerivative t).apply_symm_apply 1 have hnorm' := ((smoothInterval J).inclusionDerivative (f t)).apply_symm_apply (1 : ℝ) exact hchain.symm.trans (hnorm.trans hnorm'.symm) /-- The coherent interval family required by both M11 construction outputs. -/ noncomputable def intervalSystem : SpacetimeIntervalSystem where interval := smoothInterval inclusion_smooth := smoothInterval_inclusion_smooth inclusion_derivative := smoothInterval_inclusion_derivative end Poincare.Spacetime.Realization