Documentation

Physlib.Relativity.Tensors.RealTensor.Vector.Basic

Lorentz Vectors #

In this module we define Lorentz vectors as real Lorentz tensors with a single up index. We create an API around Lorentz vectors to make working with them as easy as possible.

@[implicit_reducible]
def Lorentz.Vector (d : ℕ := 3) :

Real contravariant Lorentz vector.

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

    The equivalence between Vector d and EuclideanSpace ℝ (Fin 1 ⊕ Fin d).

    Equations
    Instances For
      @[simp]
      theorem Lorentz.Vector.equivEuclid_apply (d : ℕ) (v : Vector d) (i : Fin 1 ⊕ Fin d) :
      ((equivEuclid d) v).ofLp i = v i
      theorem Lorentz.Vector.eq_of_apply_eq {d : ℕ} {v w : Vector d} (h : ∀ (i : Fin 1 ⊕ Fin d), v i = w i) :
      v = w
      theorem Lorentz.Vector.eq_of_apply_eq_iff {d : ℕ} {v w : Vector d} :
      v = w ↔ ∀ (i : Fin 1 ⊕ Fin d), v i = w i
      @[instance_reducible]
      noncomputable instance Lorentz.Vector.instNorm (d : ℕ) :
      Equations
      @[simp]
      theorem Lorentz.Vector.abs_component_le_norm {d : ℕ} (v : Vector d) (i : Fin 1 ⊕ Fin d) :
      @[instance_reducible]
      Equations
      • One or more equations did not get rendered due to their size.
      @[instance_reducible]
      Equations
      @[instance_reducible]
      noncomputable instance Lorentz.Vector.instInnerReal (d : ℕ) :
      Equations
      @[instance_reducible]

      The Euclidean inner product structure on CoVector.

      Equations
      • One or more equations did not get rendered due to their size.
      theorem Lorentz.Vector.inner_eq_sum {d : ℕ} (v w : Vector d) :
      inner ℝ v w = ∑ μ : Fin 1 ⊕ Fin d, v μ * w μ

      The inner product on Vector d as a sum over components.

      @[instance_reducible]
      noncomputable instance Lorentz.Vector.instChartedSpace {d : ℕ} :

      The instance of a ChartedSpace on Vector d.

      Equations
      @[instance_reducible]
      Equations
      theorem Lorentz.Vector.ext_of_apply {d : ℕ} {v w : Vector d} (h : ∀ (i : Fin 1 ⊕ Fin d), v i = w i) :
      v = w
      @[simp]
      theorem Lorentz.Vector.apply_smul {d : ℕ} (c : ℝ) (v : Vector d) (i : Fin 1 ⊕ Fin d) :
      (c • v) i = c * v i
      @[simp]
      theorem Lorentz.Vector.apply_add {d : ℕ} (v w : Vector d) (i : Fin 1 ⊕ Fin d) :
      (v + w) i = v i + w i
      @[simp]
      theorem Lorentz.Vector.apply_sub {d : ℕ} (v w : Vector d) (i : Fin 1 ⊕ Fin d) :
      (v - w) i = v i - w i
      theorem Lorentz.Vector.apply_sum {d : ℕ} {ι : Type} [Fintype ι] (f : ι → Vector d) (i : Fin 1 ⊕ Fin d) :
      (∑ j : ι, f j) i = ∑ j : ι, f j i
      @[simp]
      theorem Lorentz.Vector.neg_apply {d : ℕ} (v : Vector d) (i : Fin 1 ⊕ Fin d) :
      (-v) i = -v i
      @[simp]
      theorem Lorentz.Vector.zero_apply {d : ℕ} (i : Fin 1 ⊕ Fin d) :
      0 i = 0
      noncomputable def Lorentz.Vector.coordCLM {d : ℕ} (i : Fin 1 ⊕ Fin d) :

      The continuous linear map from a Lorentz vector to one of its coordinates.

      Equations
      Instances For
        theorem Lorentz.Vector.coordCLM_apply {d : ℕ} (i : Fin 1 ⊕ Fin d) (v : Vector d) :
        (coordCLM i) v = v i
        theorem Lorentz.Vector.coord_continuous {d : ℕ} (i : Fin 1 ⊕ Fin d) :
        Continuous fun (v : Vector d) => v i
        theorem Lorentz.Vector.coord_contDiff {n : WithTop ℕ∞} {d : ℕ} (i : Fin 1 ⊕ Fin d) :
        ContDiff ℝ n fun (v : Vector d) => v i
        theorem Lorentz.Vector.coord_differentiable {d : ℕ} (i : Fin 1 ⊕ Fin d) :
        Differentiable ℝ fun (v : Vector d) => v i
        theorem Lorentz.Vector.coord_differentiableAt {d : ℕ} (i : Fin 1 ⊕ Fin d) (v : Vector d) :
        DifferentiableAt ℝ (fun (v : Vector d) => v i) v

        The continuous linear equivalence between Vector d and Euclidean space.

        Equations
        Instances For
          noncomputable def Lorentz.Vector.equivPi (d : ℕ) :

          The continuous linear equivalence between Vector d and the corresponding Pi type.

          Equations
          Instances For
            @[simp]
            theorem Lorentz.Vector.equivPi_apply {d : ℕ} (v : Vector d) (i : Fin 1 ⊕ Fin d) :
            (equivPi d) v i = v i
            theorem Lorentz.Vector.continuous_of_apply {d : ℕ} {α : Type u_1} [TopologicalSpace α] (f : α → Vector d) (h : ∀ (i : Fin 1 ⊕ Fin d), Continuous fun (x : α) => f x i) :
            theorem Lorentz.Vector.differentiable_apply {d : ℕ} {α : Type u_1} [NormedAddCommGroup α] [NormedSpace ℝ α] (f : α → Vector d) :
            (∀ (i : Fin 1 ⊕ Fin d), Differentiable ℝ fun (x : α) => f x i) ↔ Differentiable ℝ f
            theorem Lorentz.Vector.contDiff_apply {n : WithTop ℕ∞} {d : ℕ} {α : Type u_1} [NormedAddCommGroup α] [NormedSpace ℝ α] (f : α → Vector d) :
            (∀ (i : Fin 1 ⊕ Fin d), ContDiff ℝ n fun (x : α) => f x i) ↔ ContDiff ℝ n f
            theorem Lorentz.Vector.fderiv_apply {d : ℕ} {α : Type u_1} [NormedAddCommGroup α] [NormedSpace ℝ α] (f : α → Vector d) (h : Differentiable ℝ f) (x dt : α) (ν : Fin 1 ⊕ Fin d) :
            (fderiv ℝ f x) dt ν = (fderiv ℝ (fun (y : α) => f y ν) x) dt
            @[simp]
            theorem Lorentz.Vector.fderiv_coord {d : ℕ} (μ : Fin 1 ⊕ Fin d) (x : Vector d) :
            fderiv ℝ (fun (v : Vector d) => v μ) x = coordCLM μ

            Basis #

            noncomputable def Lorentz.Vector.basis {d : ℕ} :

            The basis on Vector d indexed by Fin 1 ⊕ Fin d.

            Equations
            Instances For
              @[simp]
              theorem Lorentz.Vector.basis_apply {d : ℕ} (μ ν : Fin 1 ⊕ Fin d) :
              basis μ ν = if μ = ν then 1 else 0
              theorem Lorentz.Vector.basis_repr_apply {d : ℕ} (p : Vector d) (μ : Fin 1 ⊕ Fin d) :
              (basis.repr p) μ = p μ
              theorem Lorentz.Vector.sum_basis_eq_zero_iff {d : ℕ} (f : Fin 1 ⊕ Fin d → ℝ) :
              ∑ μ : Fin 1 ⊕ Fin d, f μ • basis μ = 0 ↔ ∀ (μ : Fin 1 ⊕ Fin d), f μ = 0
              theorem Lorentz.Vector.sum_inl_inr_basis_eq_zero_iff {d : ℕ} (f₀ : ℝ) (f : Fin d → ℝ) :
              f₀ • basis (Sum.inl 0) + ∑ i : Fin d, f i • basis (Sum.inr i) = 0 ↔ f₀ = 0 ∧ ∀ (i : Fin d), f i = 0

              C. The Spatial part #

              @[reducible, inline]

              Extract spatial components from a Lorentz vector, returning them as a vector in Euclidean space.

              Equations
              Instances For

                The spatial part of a Lorentz vector as a continuous linear map.

                Equations
                Instances For

                  The Temporal component #

                  @[reducible, inline]

                  Extract time component from a Lorentz vector

                  Equations
                  Instances For

                    The temporal part of a Lorentz vector as a continuous linear map.

                    Equations
                    Instances For

                      The continuous linear map corresponding to the creation of a Lorentz Vector with only a non-zero temporal component.

                      Equations
                      Instances For

                        The continuous linear map corresponding to the creation of a Lorentz Vector with only non-zero spatial components.

                        Equations
                        Instances For

                          ## Smoothness

                          The structure of a smooth manifold on Vector .

                          Equations
                          Instances For

                            Properties of the inner product (note not the Minkowski product) #

                            theorem Lorentz.Vector.basis_inner {d : ℕ} (μ : Fin 1 ⊕ Fin d) (p : Vector d) :
                            inner ℝ (basis μ) p = p μ
                            theorem Lorentz.Vector.inner_basis {d : ℕ} (p : Vector d) (μ : Fin 1 ⊕ Fin d) :
                            inner ℝ p (basis μ) = p μ

                            A vector with zero time component and zero spatial part is zero.

                            The spatial components of a vector whose spatial part has zero norm vanish.