Documentation

Physicslib4.Spacetime.Curves

Paths and curves on a spacetime #

This file formalises the various flavours of paths and curves used in section 10.2 of the AQFT-in-Lean blueprint.

Main definitions #

Modelling notes #

The notion of "smooth at a boundary point of a closed interval" is delicate in general. In this file we follow the conservative convention used in Mathlib for ContMDiff of a function on a subset, and state the "non-vanishing derivative" condition pointwise on the parameter space Σ. These are genuine Prop fields of SmoothPathsmoothOn : ContMDiffOn and nonvanishing : ∀ s ∈ Σ, mfderivWithin _ _ toFun Σ s 1 ≠ 0 — carried by the structure, not sorry placeholders. They are discharged for concrete paths via named lemmas; for the straight-line path see standardMinkowskiLineSegmentPath_smoothOn and standardMinkowskiLineSegmentPath_nonvanishing in Minkowski.lean.

Paths #

A path in a spacetime M is a continuous map μ : Σ → M.Carrier whose domain Σ, called the parameter space, is a closed, connected subset of containing more than one point.

Following the blueprint we store Σ as a Set along with proofs that it is closed, connected and not a singleton (i.e. contains more than one point).

Instances For
    structure Physicslib4.Spacetime.SmoothPath (M : Spacetime) extends M.Path :
    Type u_1

    A smooth path in a spacetime M is a path μ : Σ → M which is smooth and has a non-vanishing derivative along Σ.

    The smoothness condition is ContMDiffOn on the parameter space, relative to the identity model with corners on and the spacetime's model. The non-vanishing-derivative condition states that the manifold derivative mfderiv of μ, applied to the basis vector 1 : ℝ, is non-zero at every point of Σ.

    Instances For

      The parameter space of a path has unique differentials: being a closed connected subset of with at least two points, it is a non-degenerate interval, hence convex with non-empty interior. This is the analytic prerequisite for differentiating compositions along a path via the mfderivWithin chain rule.

      Tangent vector #

      The tangent vector of a smooth path μ at parameter s: the manifold derivative of μ along its parameter space, applied to the basis vector 1 : ℝ. This is the object all the causal predicates below are phrased in terms of.

      Equations
      Instances For
        theorem Physicslib4.Spacetime.SmoothPath.tangent_def {M : Spacetime} (μ : M.SmoothPath) (s : ) :
        μ.tangent s = (mfderiv[μ.parameterSpace] μ.toFun s) 1

        Unfolding lemma for SmoothPath.tangent to the raw mfderivWithin form.

        The tangent vector of a smooth path is non-vanishing on the parameter space (the nonvanishing field, restated via tangent).

        theorem Physicslib4.Spacetime.SmoothPath.mfderivWithin_comp_reparam {M : Spacetime} (μ : M.SmoothPath) {φ : } {u : Set } {s : } ( : MDiffAt[u] φ s) (hmaps : Set.MapsTo φ u μ.parameterSpace) (huniq : UniqueMDiffAt[u] s) (hs : s u) :
        (mfderiv[u] (μ.toFun φ) s) 1 = derivWithin φ u s μ.tangent (φ s)

        Reparametrisation chain rule for the tangent vector. Composing a smooth path μ with a (manifold-)differentiable reparametrisation φ : ℝ → ℝ that maps Σ' into μ's parameter space scales the tangent vector by the derivative of φ: tangent (μ ∘ φ) s = (φ'(s)) • tangent μ (φ s), where the scalar is the one-dimensional manifold derivative of φ. This is the analytic heart of the reparametrisation-invariance of the causal type of a curve.

        theorem Physicslib4.Spacetime.SmoothPath.tangent_reparam_eq {M : Spacetime} (μ₁ μ₂ : M.SmoothPath) {φ : } {s : } ( : MDiffAt[μ₁.parameterSpace] φ s) (hmaps : Set.MapsTo φ μ₁.parameterSpace μ₂.parameterSpace) (heq : s'μ₁.parameterSpace, μ₂.toFun (φ s') = μ₁.toFun s') (hs : s μ₁.parameterSpace) :
        μ₁.tangent s = derivWithin φ μ₁.parameterSpace s μ₂.tangent (φ s)

        Tangent vector under a reparametrisation. If a reparametrisation φ : ℝ → ℝ (differentiable, mapping μ₁'s parameter space into μ₂'s) identifies the two paths pointwise (μ₂ (φ s') = μ₁ s' on μ₁'s parameter space), then the tangent vectors are related by the derivative of φ: tangent μ₁ s = (φ'(s)) • tangent μ₂ (φ s). Combines the reparametrisation chain rule with mfderivWithin_congr (the two paths agree on the parameter space, so have equal within-derivatives).

        theorem Physicslib4.Spacetime.derivWithin_ne_zero_of_leftInverse {φ ψ : } {u v : Set } {x : } ( : DifferentiableWithinAt φ u x) ( : DifferentiableWithinAt ψ v (φ x)) (hmaps : Set.MapsTo φ u v) (huniq : UniqueDiffWithinAt u x) (hx : x u) (hinv : yu, ψ (φ y) = y) :
        derivWithin φ u x 0

        Non-vanishing of a reparametrisation derivative. If ψ ∘ φ = id on a set u (with φ mapping u into v, both maps differentiable within their sets, and u having unique differentials at x), then the within-derivative of φ is non-zero at x. This is the real-analytic fact behind the derivWithin φ ≠ 0 hypothesis of the pointwise reparametrisation lemmas, obtained by differentiating the left-inverse identity via the chain rule.

        theorem Physicslib4.Spacetime.mdifferentiableWithinAt_of_contDiffOn {φ : } {u : Set } (h : ContDiffOn φ u) {x : } (hx : x u) :
        MDiffAt[u] φ x

        A C^⊤ function ℝ → ℝ is manifold-differentiable within a set, for the self models on . Bridges the ContDiffOn datum stored in SmoothPathEquiv to the MDifferentiableWithinAt hypothesis required by the tangent reparametrisation lemmas.

        Reparametrisation equivalence #

        def Physicslib4.Spacetime.PathEquiv (M : Spacetime) (μ₁ μ₂ : M.Path) :

        Two paths μ₁ : Σ₁ → M, μ₂ : Σ₂ → M are equivalent if there is a homeomorphism φ of mapping Σ₁ bijectively onto Σ₂ such that μ₂ ∘ φ = μ₁ on Σ₁. We package the homeomorphism on the parameter spaces via its underlying function on together with the relevant restriction conditions.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          Two smooth paths are equivalent if there is a diffeomorphism φ : ℝ → ℝ sending one parameter space to the other and identifying the underlying maps. We package the diffeomorphism condition by smoothness of φ and its inverse ψ on the relevant parameter spaces, paired with their being two-sided inverses.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Two smooth paths are orientation-preservingly equivalent if they are related by a smooth reparametrisation φ (as in SmoothPathEquiv) whose within-derivative is everywhere positive on μ₁'s parameter space. Positivity of φ' is exactly what distinguishes orientation-preserving from orientation-reversing reparametrisations, and it is the extra datum needed to transport the time orientation of a curve (future/past-pointing), not merely its causal type.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              An orientation-preserving smooth reparametrisation is in particular a smooth reparametrisation.

              Curves #

              A curve in a spacetime is an equivalence class of paths under parameter reparametrisation by homeomorphisms. We package this as a Quot over the (possibly non-equivalence) relation PathEquiv; the actual equivalence-class structure is left implicit.

              Equations
              Instances For

                A smooth curve in a spacetime is an equivalence class of smooth paths under parameter reparametrisation by diffeomorphisms.

                Equations
                Instances For

                  Constructor: every smooth path determines a smooth curve.

                  Equations
                  Instances For

                    Constructor: every path determines a curve.

                    Equations
                    Instances For

                      Timelike and causal smooth curves #

                      A smooth path μ : Σ → M is timelike at parameter s ∈ Σ if its tangent vector at s (the image under mfderivWithin of 1 : ℝ) is a timelike tangent vector at the spacetime point μ s.

                      Equations
                      Instances For
                        theorem Physicslib4.Spacetime.SmoothPath.isTimelikeAt_reparam {M : Spacetime} (μ₁ μ₂ : M.SmoothPath) {φ : } {s : } ( : MDiffAt[μ₁.parameterSpace] φ s) (hmaps : Set.MapsTo φ μ₁.parameterSpace μ₂.parameterSpace) (heq : s'μ₁.parameterSpace, μ₂.toFun (φ s') = μ₁.toFun s') (hs : s μ₁.parameterSpace) (hφ' : derivWithin φ μ₁.parameterSpace s 0) :
                        IsTimelikeAt M μ₁ s IsTimelikeAt M μ₂ (φ s)

                        Pointwise reparametrisation-invariance of timelikeness. Under a reparametrisation identifying μ₁ with μ₂ (as in tangent_reparam_eq) with non-vanishing derivative φ'(s) ≠ 0, μ₁ is timelike at s iff μ₂ is timelike at φ s. Combines the reparametrisation chain rule with the scaling invariance isTimelike_smul_iff.

                        theorem Physicslib4.Spacetime.SmoothPath.causalAt_reparam {M : Spacetime} (μ₁ μ₂ : M.SmoothPath) {φ : } {s : } ( : MDiffAt[μ₁.parameterSpace] φ s) (hmaps : Set.MapsTo φ μ₁.parameterSpace μ₂.parameterSpace) (heq : s'μ₁.parameterSpace, μ₂.toFun (φ s') = μ₁.toFun s') (hs : s μ₁.parameterSpace) (hφ' : derivWithin φ μ₁.parameterSpace s 0) :
                        M.IsTimelike (μ₁.tangent s) M.IsNull (μ₁.tangent s) M.IsTimelike (μ₂.tangent (φ s)) M.IsNull (μ₂.tangent (φ s))

                        Pointwise reparametrisation-invariance of the causal (timelike-or-null) condition. The direct analogue of isTimelikeAt_reparam for the disjunction timelike ∨ null, via the reparametrisation chain rule together with the scaling invariances isTimelike_smul_iff and isNull_smul_iff.

                        theorem Physicslib4.Spacetime.SmoothPath.isFuturePointing_reparam {M : Spacetime} (μ₁ μ₂ : M.SmoothPath) (t : M.TimeOrientation) {φ : } {s : } ( : MDiffAt[μ₁.parameterSpace] φ s) (hmaps : Set.MapsTo φ μ₁.parameterSpace μ₂.parameterSpace) (heq : s'μ₁.parameterSpace, μ₂.toFun (φ s') = μ₁.toFun s') (hs : s μ₁.parameterSpace) (hφ' : 0 < derivWithin φ μ₁.parameterSpace s) :
                        M.IsFuturePointing t (μ₁.tangent s) M.IsFuturePointing t (μ₂.tangent (φ s))

                        Pointwise reparametrisation-invariance of future-pointing. Under an orientation-preserving reparametrisation identifying μ₁ with μ₂ (positive derivative 0 < φ'(s)), μ₁'s tangent is future-pointing at s iff μ₂'s is at φ s. Combines the reparametrisation chain rule with the positive-scaling invariance isFuturePointing_smul_iff.

                        theorem Physicslib4.Spacetime.SmoothPath.isPastPointing_reparam {M : Spacetime} (μ₁ μ₂ : M.SmoothPath) (t : M.TimeOrientation) {φ : } {s : } ( : MDiffAt[μ₁.parameterSpace] φ s) (hmaps : Set.MapsTo φ μ₁.parameterSpace μ₂.parameterSpace) (heq : s'μ₁.parameterSpace, μ₂.toFun (φ s') = μ₁.toFun s') (hs : s μ₁.parameterSpace) (hφ' : 0 < derivWithin φ μ₁.parameterSpace s) :
                        M.IsPastPointing t (μ₁.tangent s) M.IsPastPointing t (μ₂.tangent (φ s))

                        Pointwise reparametrisation-invariance of past-pointing. The dual of isFuturePointing_reparam, via isPastPointing_smul_iff.

                        A smooth path is timelike if its tangent vector is timelike at every point of the parameter space.

                        Equations
                        Instances For

                          A smooth path is causal if its tangent vector is either timelike or null at every point of the parameter space.

                          Equations
                          Instances For

                            Reparametrisation-invariance of timelikeness. Two smooth paths related by a smooth reparametrisation (SmoothPathEquiv) are timelike together: one is timelike iff the other is. The forward direction uses the inverse diffeomorphism ψ for surjectivity onto μ₂'s parameter space; both directions rest on the pointwise isTimelikeAt_reparam (via the chain rule and scaling invariance), with the reparametrisation derivative non-vanishing by derivWithin_ne_zero_of_leftInverse.

                            Reparametrisation-invariance of the causal condition. Two smooth paths related by a smooth reparametrisation (SmoothPathEquiv) are causal together. Same structure as isTimelike_iff_of_smoothPathEquiv, using the pointwise causalAt_reparam.

                            A timelike smooth curve is a smooth curve all of whose representative smooth paths are timelike. Since the timelike condition is invariant under reparametrisation by an orientation-preserving diffeomorphism but not orientation-reversing ones — and since the underlying tangent vector condition g(v,v) < 0 is invariant under non-zero scaling — we state the predicate by existential quantification over a representative.

                            Equations
                            Instances For

                              A causal smooth curve is a smooth curve all of whose representative smooth paths are causal.

                              Equations
                              Instances For

                                Future and past oriented smooth curves #

                                A smooth path is future-oriented with respect to a time orientation t if its tangent vector is future-pointing at every parameter point.

                                Equations
                                Instances For

                                  A smooth path is past-oriented with respect to a time orientation t if its tangent vector is past-pointing at every parameter point.

                                  Equations
                                  Instances For

                                    A future-oriented smooth curve is a smooth curve admitting a future-oriented representative smooth path (relative to a fixed time orientation t).

                                    Equations
                                    Instances For

                                      A past-oriented smooth curve is a smooth curve admitting a past-oriented representative smooth path (relative to a fixed time orientation t).

                                      Equations
                                      Instances For

                                        Reparametrisation-invariance of future-orientedness. Two smooth paths related by an orientation-preserving smooth reparametrisation (OrientedSmoothPathEquiv) are future-oriented together: one is future-oriented iff the other is. The forward direction uses the inverse diffeomorphism ψ for surjectivity; both directions rest on the pointwise isFuturePointing_reparam, with the reparametrisation derivative positive by hypothesis.

                                        Well-definedness of the causal type on smooth curves #

                                        Timelikeness and causality are invariant under any smooth reparametrisation, so they descend to genuine predicates on SmoothCurve (the quotient by SmoothPathEquiv): a curve is timelike/causal iff any chosen representative is. The transfer along the quotient uses the equivalence closure of SmoothPathEquiv (via Quot.eqvGen_exact) together with the per-reparametrisation iffs.

                                        Timelikeness is invariant along the equivalence closure of SmoothPathEquiv.

                                        Well-definedness of timelikeness on smooth curves. A smooth curve is timelike (has a timelike representative) iff the chosen representative μ is timelike; the value does not depend on the representative.

                                        Causality is invariant along the equivalence closure of SmoothPathEquiv.

                                        Well-definedness of causality on smooth curves.

                                        Oriented smooth curves and well-definedness of orientation #

                                        The time orientation of a curve (future- vs past-pointing) is not invariant under orientation-reversing reparametrisations, so it does not descend to SmoothCurve. It does descend to the finer quotient by OrientedSmoothPathEquiv, which is the correct home for future/past-oriented curves.

                                        An oriented smooth curve: an equivalence class of smooth paths under orientation-preserving reparametrisation. Finer than SmoothCurve (which also allows orientation-reversing reparametrisations), it is the natural domain on which the time orientation of a curve is well-defined.

                                        Equations
                                        Instances For

                                          Every smooth path determines an oriented smooth curve.

                                          Equations
                                          Instances For

                                            An oriented smooth curve is future-oriented (relative to a time orientation t) if it admits a future-oriented representative smooth path.

                                            Equations
                                            Instances For

                                              An oriented smooth curve is past-oriented (relative to a time orientation t) if it admits a past-oriented representative smooth path.

                                              Equations
                                              Instances For

                                                Future-orientedness is invariant along the equivalence closure of OrientedSmoothPathEquiv.

                                                Well-definedness of future-orientedness on oriented smooth curves.

                                                Past-orientedness is invariant along the equivalence closure of OrientedSmoothPathEquiv.

                                                Well-definedness of past-orientedness on oriented smooth curves.

                                                Projection to the coarser quotient #

                                                Every orientation-preserving reparametrisation is a smooth reparametrisation, so there is a canonical projection OrientedSmoothCurveSmoothCurve forgetting the orientation. It sends ofPath μ to ofPath μ, hence is compatible with the (orientation-independent) timelike and causal predicates.

                                                The canonical projection from oriented smooth curves to smooth curves, forgetting the orientation. Well-defined because OrientedSmoothPathEquiv refines SmoothPathEquiv.

                                                Equations
                                                Instances For

                                                  The projection is surjective: every smooth curve underlies an oriented one.

                                                  Compatibility with timelikeness. The smooth curve underlying an oriented smooth curve ofPath μ is timelike iff μ is — the timelike predicate factors through the projection.

                                                  A future-oriented oriented smooth curve projects to a causal smooth curve (future-pointing tangents are timelike or null).

                                                  A past-oriented oriented smooth curve projects to a causal smooth curve.

                                                  Endpoints #

                                                  A point p of a spacetime M is an endpoint of a path μ : Σ → M if it lies in the image of the topological frontier of Σ (i.e. its boundary ∂Σ in ) under μ.

                                                  Equations
                                                  Instances For

                                                    For a smooth path μ whose associated smooth curve is timelike and future-oriented, a past endpoint is the image under μ of the lesser of the two boundary components of ∂Σ.

                                                    We capture this as: there exists a value s ∈ Σ such that every other s' ∈ Σ satisfies s ≤ s', and μ s = p. Quantifying over the parameter space (rather than its frontier ∂Σ) ensures the witness is a genuine minimum of Σ, which on a closed connected Σ ⊆ ℝ forces Σ to be bounded below; together with IsFutureEndpoint this excludes half-lines and pins Σ down to a compact closed interval [a, b].

                                                    Equations
                                                    Instances For

                                                      For a smooth path μ whose associated smooth curve is timelike and future-oriented, a future endpoint is the image under μ of the greater of the two boundary components of ∂Σ. Quantifying over the parameter space (rather than ∂Σ) ensures the witness is a genuine maximum, forcing boundedness above; see IsPastEndpoint for the dual.

                                                      Equations
                                                      Instances For