Documentation

Physlib.Relativity.Tensors.TensorSpecies.Basic

Tensor species #

structure TensorSpecies (k : Type) [CommRing 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)) (basis : (c : C) → Module.Basis (basisIdx c) k (V c)) :

The structure TensorSpecies contains the necessary structure needed to define a system of tensors with index notation. Examples of TensorSpecies include real Lorentz tensors, complex Lorentz tensors, and ordinary Euclidean tensors.

Instances For

    Properties of the basis #

    def TensorSpecies.basisIdxCongr {C : Type} {basisIdx : C → Type} {c c1 : C} (h : c = c1) :
    basisIdx c ≃ basisIdx c1

    The casting between basisIdx c and basisIdx c1.

    Equations
    Instances For
      @[simp]
      theorem TensorSpecies.basisIdxCongr_rfl {C : Type} {basisIdx : C → Type} (c : C) (i : basisIdx c) :
      (basisIdxCongr ⋯) i = i
      theorem TensorSpecies.basisIdxCongr_symm {C : Type} {basisIdx : C → Type} {c c1 : C} (h : c = c1) (i : basisIdx c1) :
      @[simp]
      theorem TensorSpecies.basisIdxCongr_apply_apply {C : Type} {basisIdx : C → Type} {c c1 c2 : C} (h1 : c = c1) (h2 : c1 = c2) (i : basisIdx c) :
      theorem TensorSpecies.basisIdxCongr_heq_arg {C : Type} {basisIdx : C → Type} {c1 c2 d : C} (h1 : c1 = d) (h2 : c2 = d) {x : basisIdx c1} {y : basisIdx c2} (hxy : x ≍ y) :

      basisIdxCongr only depends on its endpoints up to HEq of the arguments: equal target colours and heterogeneously equal labels give equal casts.

      theorem TensorSpecies.basisIdxCongr_heq {C : Type} {basisIdx : C → Type} {c c1 : C} (h : c = c1) (x : basisIdx c) :

      A transported label is heterogeneously equal to the original.

      @[simp]
      theorem TensorSpecies.basisIdxCongr_const {C I : Type} {c c1 : C} (h : c = c1) :

      For a species whose every colour carries the same label type I, a label transport is the identity.

      @[simp]
      theorem TensorSpecies.τ_τ_apply {k : Type} [CommRing 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)} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep basis) (c : C) :
      S.τ (S.τ c) = c
      theorem TensorSpecies.basis_congr {k : Type} [CommRing k] {C : Type} {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} {c c1 : C} (h : c = c1) (i : basisIdx c) :
      (basis c) i = (LinearEquiv.cast ⋯) ((basis c1) ((basisIdxCongr h) i))
      theorem TensorSpecies.map_basis_eq {k : Type} [CommRing k] {C : Type} {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} {c c1 : C} (h : c = c1) (i : basisIdx c) :
      (LinearEquiv.cast h) ((basis c) i) = (basis c1) ((basisIdxCongr h) i)
      theorem TensorSpecies.contr_basis_congr {k : Type} [CommRing 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)} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep basis) {a a' : C} (h : a = a') (x : basisIdx a) (y : basisIdx (S.τ a)) :
      (S.contr a) ((basis a) x ⊗ₜ[k] (basis (S.τ a)) y) = (S.contr a') ((basis a') ((basisIdxCongr h) x) ⊗ₜ[k] (basis (S.τ a')) ((basisIdxCongr ⋯) y))

      The contraction of two basis vectors does not change when their colour is transported along an equality and their labels with it.

      theorem TensorSpecies.equivCast_basis {k : Type} [CommRing k] {C : Type} {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} {c c1 : C} (h : c = c1) (i : basisIdx c) :
      (Equiv.cast ⋯) ((basis c) i) = (basis c1) ((basisIdxCongr h) i)

      map_basis_eq with the cast spelled Equiv.cast, the form contr_tmul_symm applies to its first vector.

      def TensorSpecies.numIndices {k : Type} [CommRing 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)} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep basis} {n : ℕ} {c : Fin n → C} :
      (PiTensorProduct k fun (i : Fin n) => V (c i)) → ℕ

      The number of indices n from a tensor.

      Equations
      Instances For

        Metric #

        class TensorSpecies.WithMetric {k : Type} [CommRing 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)} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep basis) :

        Instance of a metric on a tensor species. For each color c an invariant tensor in V c ⊗ V c, whose contraction against the metric of the dual color τ c is the unit. Not every species has one: it requires every color to be self-dual, which fails for the fundamental of SU(N), 3 ≤ N.

        Instances
          @[reducible, inline]
          abbrev TensorSpecies.metric {k : Type} [CommRing 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)} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep basis) [S.WithMetric] (c : C) :
          (Representation.trivial k G k).IntertwiningMap ((rep c).tprod (rep c))

          The metric of a species with a metric, at the color c.

          Equations
          Instances For
            theorem TensorSpecies.contr_metric {k : Type} [CommRing 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)} {basis : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep basis) [S.WithMetric] (c : C) :
            (TensorProduct.comm k (V c) (V (S.τ c))) ((LinearEquiv.lTensor (V c) (TensorProduct.lid k (V (S.τ c)))) ((LinearMap.lTensor (V c) (LinearMap.rTensor (V (S.τ c)) (S.contr c).toLinearMap)) ((LinearMap.lTensor (V c) ↑(TensorProduct.assoc k (V c) (V (S.τ c)) (V (S.τ c))).symm) ((TensorProduct.assoc k (V c) (V c) (TensorProduct k (V (S.τ c)) (V (S.τ c)))) ((S.metric c) 1 ⊗ₜ[k] (S.metric (S.τ c)) 1))))) = (S.unit c) 1

            On contracting metrics we get the unit.