Documentation

Physlib.Relativity.Tensors.Dual

Dual tensors #

i. Overview #

The metric tensor identifies a tensor with the one obtained by dualising the color of a single index: contracting slot i of t against metricTensor (S.τ (c i)) returns a tensor of color Function.update c i (S.τ (c i)), leaving every other slot alone. This is the raising and lowering of a named index, T^{μν} ↦ T_{μ}{}^{ν}. toDualMapAtIndex i is that contraction, crossToSlot against the metric, at every rank and every named slot.

A metric contracted against the metric at the dual color collapses to the unit tensor, in both orders. So the contraction back against metricTensor (c i), fromDualMapAtIndex i, inverts it, and the two assemble into the linear equivalence toDualAtIndex i: the two color assignments carry the same information. Dualising the same index twice returns the original tensor, up to the reindexing of the colors.

ii. Key results #

iii. Table of contents #

iv. References #

A. Dualising a named index #

noncomputable def TensorSpecies.Tensor.toDualMapAtIndex {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) :
S.Tensor c →ₗ[k] S.Tensor (Function.update c i (S.τ (c i)))

The linear map between S.Tensor c and S.Tensor (Function.update c i (S.τ (c i))) formed by contracting the index i with the metric tensor.

Equations
Instances For

    B. Contracting a metric against its dual #

    theorem TensorSpecies.Tensor.contractInnerT_dual_metricTensor_metricTensor {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {c : C} :

    The metric at τ c contracted with the metric at c is the unit tensor at c, η^{μν} η_{νρ} = δ^μ_ρ.

    theorem TensorSpecies.Tensor.contractInnerT_metricTensor_metricTensor_eq_dual_unit {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {c : C} :
    ((contractInnerT ⋯) (metricTensor c)) (metricTensor (S.τ c)) = (permT id ⋯) (unitTensor (S.τ c))

    The metric at c contracted with the metric at τ c is the unit tensor at τ c, η_{μν} η^{νρ} = δ_μ^ρ.

    C. Dualising twice #

    theorem TensorSpecies.Tensor.toDualMapAtIndex_toDualMapAtIndex {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) (t : S.Tensor c) :

    Dualising the index i twice returns the original tensor, up to the reindexing of the colors.

    D. The returning contraction #

    noncomputable def TensorSpecies.Tensor.fromDualMapAtIndex {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) :
    S.Tensor (Function.update c i (S.τ (c i))) →ₗ[k] S.Tensor c

    The linear map between S.Tensor (Function.update c i (S.τ (c i))) and S.Tensor c formed by contracting the index i with the metric tensor. It is the inverse of toDualMapAtIndex.

    Equations
    Instances For
      @[simp]
      theorem TensorSpecies.Tensor.fromDualMapAtIndex_toDualMapAtIndex {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) (t : S.Tensor c) :
      @[simp]
      theorem TensorSpecies.Tensor.toDualMapAtIndex_fromDualMapAtIndex {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) (t : S.Tensor (Function.update c i (S.τ (c i)))) :

      E. Equivariance #

      @[simp]
      theorem TensorSpecies.Tensor.toDualMapAtIndex_equivariant {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) (g : G) (t : S.Tensor c) :

      Dualising the index i commutes with the action of G.

      F. Raising and lowering as an equivalence #

      noncomputable def TensorSpecies.Tensor.toDualAtIndex {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) :
      S.Tensor c ≃ₗ[k] S.Tensor (Function.update c i (S.τ (c i)))

      The linear equivalence between S.Tensor c and S.Tensor (Function.update c i (S.τ (c i))) formed by contracting the index i with the metric tensor.

      Equations
      Instances For
        @[simp]
        theorem TensorSpecies.Tensor.toDualAtIndex_apply {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) (t : S.Tensor c) :
        @[simp]
        theorem TensorSpecies.Tensor.toDualAtIndex_symm_apply {k : Type} [RCLike k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.WithMetric] {n : ℕ} {c : Fin n → C} (i : Fin n) (t : S.Tensor (Function.update c i (S.τ (c i)))) :