Documentation

Physlib.Relativity.Tensors.Constructors

Constructors of tensors. #

There are a number of ways to construct explicit tensors.

Tensors with a single index. #

noncomputable def TensorSpecies.Tensor.Pure.fromSingleP {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c : C} :
V c ≃ₗ[k] Pure S ![c]

The equivalence between V c and Pure S ![c].

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def TensorSpecies.Tensor.fromSingleT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c : C} :

    The equivalence between V c and S.Tensor ![c].

    Equations
    Instances For
      theorem TensorSpecies.Tensor.fromSingleT_symm_pure {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c : C} (p : Pure S ![c]) :
      theorem TensorSpecies.Tensor.fromSingleT_eq_pureT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c : C} (x : V c) :
      fromSingleT x = Pure.toTensor fun (x_1 : Fin (Nat.succ 0)) => match x_1 with | 0 => x
      theorem TensorSpecies.Tensor.actionT_fromSingleT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c : C} (x : V c) (g : G) :
      g • fromSingleT x = fromSingleT (((rep c) g) x)
      theorem TensorSpecies.Tensor.fromSingleT_map {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 : C} (h : c = c1) (x : V c) :
      theorem TensorSpecies.Tensor.contrT_fromSingleT_fromSingleT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c : C} (x : V c) (y : V (S.τ c)) :
      (contrT 0 0 1 ⋯) ((prodT (fromSingleT x)) (fromSingleT y)) = (S.contr c) (x ⊗ₜ[k] y) • default.toTensor

      Tensors with two indices. #

      fromPairT #

      noncomputable def TensorSpecies.Tensor.fromPairT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 : C} :
      TensorProduct k (V c1) (V c2) →ₗ[k] S.Tensor ![c1, c2]

      The construction of a tensor with two indices from the tensor product V c1 ⊗[k] V c2 defined categorically.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem TensorSpecies.Tensor.fromPairT_tmul {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 : C} (x : V c1) (y : V c2) :
        theorem TensorSpecies.Tensor.fromPairT_eq_pure {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 : C} (x : V c1) (y : V c2) :
        fromPairT (x ⊗ₜ[k] y) = Pure.toTensor fun (x_1 : Fin (Nat.succ 0).succ) => match x_1 with | 0 => x | 1 => y
        theorem TensorSpecies.Tensor.actionT_fromPairT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 : C} (x : TensorProduct k (V c1) (V c2)) (g : G) :
        g • fromPairT x = fromPairT ((TensorProduct.map ((rep c1) g) ((rep c2) g)) x)
        theorem TensorSpecies.Tensor.fromPairT_map_right {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 c2' : C} (h : c2 = c2') (x : TensorProduct k (V c1) (V c2)) :
        theorem TensorSpecies.Tensor.fromPairT_comm {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 : C} (x : TensorProduct k (V c1) (V c2)) :
        fromPairT ((TensorProduct.comm k (V c1) (V c2)) x) = (permT ![1, 0] ⋯) (fromPairT x)

        Contraction of fromPairT with fromSingleT #

        noncomputable def TensorSpecies.Tensor.fromSingleTContrFromPairT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c2 : C} (x : V c) (y : TensorProduct k (V (S.τ c)) (V c2)) :

        The contraction of tensors with one index with one with two indices defined categorically.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem TensorSpecies.Tensor.fromSingleTContrFromPairT_tmul {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c2 : C} (x : V c) (y1 : V (S.τ c)) (y2 : V c2) :
          theorem TensorSpecies.Tensor.fromSingleT_contr_fromPairT_tmul {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c2 : C} (x : V c) (y1 : V (S.τ c)) (y2 : V c2) :
          (contrT 1 0 1 ⋯) ((prodT (fromSingleT x)) (fromPairT (y1 ⊗ₜ[k] y2))) = (permT id ⋯) (fromSingleTContrFromPairT x (y1 ⊗ₜ[k] y2))
          theorem TensorSpecies.Tensor.contrT_fromSingleT_fromPairT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c2 : C} (x : V c) (y : TensorProduct k (V (S.τ c)) (V c2)) :
          (contrT 1 0 1 ⋯) ((prodT (fromSingleT x)) (fromPairT y)) = (permT id ⋯) (fromSingleTContrFromPairT x y)

          Contraction of fromPairT with fromPairT #

          noncomputable def TensorSpecies.Tensor.fromPairTContr {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 c2 : C} (x : TensorProduct k (V c1) (V c)) (y : TensorProduct k (V (S.τ c)) (V c2)) :
          S.Tensor ![c1, c2]

          The contraction of tensors with two indices defined categorically.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem TensorSpecies.Tensor.fromPairTContr_tmul_tmul {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 c2 : C} (x1 : V c1) (x2 : V c) (y1 : V (S.τ c)) (y2 : V c2) :
            fromPairTContr (x1 ⊗ₜ[k] x2) (y1 ⊗ₜ[k] y2) = (S.contr c) (x2 ⊗ₜ[k] y1) • fromPairT (x1 ⊗ₜ[k] y2)
            theorem TensorSpecies.Tensor.fromPairT_contr_fromPairT_eq_fromPairTContr_tmul {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} (c c1 c2 : C) (x1 : V c1) (x2 : V c) (y1 : V (S.τ c)) (y2 : V c2) :
            (contrT 2 1 2 ⋯) ((prodT (fromPairT (x1 ⊗ₜ[k] x2))) (fromPairT (y1 ⊗ₜ[k] y2))) = (permT id ⋯) (fromPairTContr (x1 ⊗ₜ[k] x2) (y1 ⊗ₜ[k] y2))
            theorem TensorSpecies.Tensor.fromPairT_contr_fromPairT_eq_fromPairTContr {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} (c c1 c2 : C) (x : TensorProduct k (V c1) (V c)) (y : TensorProduct k (V (S.τ c)) (V c2)) :
            (contrT 2 1 2 ⋯) ((prodT (fromPairT x)) (fromPairT y)) = (permT id ⋯) (fromPairTContr x y)
            theorem TensorSpecies.Tensor.fromPairT_basis_repr {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 : C} (x : TensorProduct k (V c) (V c1)) (φ : ComponentIdx ![c, c1]) :
            ((basis ![c, c1]).repr (fromPairT x)) φ = (((b c).tensorProduct (b c1)).repr x) (φ 0, φ 1)
            theorem TensorSpecies.Tensor.fromPairT_apply_basis_repr {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 : C} (b0 : basisIdx c) (b1 : basisIdx c1) :
            fromPairT ((b c) b0 ⊗ₜ[k] (b c1) b1) = (basis ![c, c1]) fun (x : Fin (Nat.succ 0).succ) => match x with | 0 => b0 | 1 => b1

            fromConstPair #

            noncomputable def TensorSpecies.Tensor.fromConstPair {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 : C} (v : (Representation.trivial k G k).IntertwiningMap ((rep c1).tprod (rep c2))) :
            S.Tensor ![c1, c2]

            A constant two tensor (e.g. metric and unit).

            Equations
            Instances For
              @[simp]
              theorem TensorSpecies.Tensor.actionT_fromConstPair {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 : C} (v : (Representation.trivial k G k).IntertwiningMap ((rep c1).tprod (rep c2))) (g : G) :

              Tensors formed by fromConstPair are invariant under the group action.

              fromMatrixT #

              noncomputable def TensorSpecies.Tensor.fromMatrixT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} (c0 c1 : C) :
              Matrix (basisIdx c0) (basisIdx c1) k ≃ₗ[k] S.Tensor ![c0, c1]

              Rank-two tensors and their component matrices, as a linear equivalence: fromMatrixT c0 c1 M is the tensor with component matrix M.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem TensorSpecies.Tensor.fromMatrixT_basis_repr {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} (c0 c1 : C) (M : Matrix (basisIdx c0) (basisIdx c1) k) (φ : ComponentIdx ![c0, c1]) :
                ((basis ![c0, c1]).repr ((fromMatrixT c0 c1) M)) φ = M (φ 0) (φ 1)
                noncomputable def TensorSpecies.Tensor.toMatrix {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {cs : Fin 2 → C} (t : S.Tensor cs) :
                Matrix (basisIdx (cs 0)) (basisIdx (cs 1)) k

                The component matrix of a rank-two tensor: the (x, y) entry is repr t (ComponentIdx.pair.symm (x, y)).

                Equations
                Instances For
                  @[simp]
                  theorem TensorSpecies.Tensor.toMatrix_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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {cs : Fin 2 → C} (t : S.Tensor cs) (x : basisIdx (cs 0)) (y : basisIdx (cs 1)) :
                  @[simp]
                  theorem TensorSpecies.Tensor.toMatrix_apply_cons {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c0 c1 : C} (t : S.Tensor ![c0, c1]) (x : basisIdx c0) (y : basisIdx c1) :

                  toMatrix_apply at a cons colour list ![c0, c1], where the labels are named by the colours.

                  @[simp]
                  theorem TensorSpecies.Tensor.toMatrix_fromMatrixT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} (c0 c1 : C) (M : Matrix (basisIdx c0) (basisIdx c1) k) :
                  ((fromMatrixT c0 c1) M).toMatrix = M
                  @[simp]
                  theorem TensorSpecies.Tensor.fromMatrixT_toMatrix {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c0 c1 : C} (t : S.Tensor ![c0, c1]) :
                  (fromMatrixT c0 c1) t.toMatrix = t
                  theorem TensorSpecies.Tensor.toMatrix_injective {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {cs : Fin 2 → C} :

                  Rank-two tensors with equal component matrices are equal.

                  theorem TensorSpecies.Tensor.toMatrix_permT_swap {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 : Fin 2 → C} (h0 : c 1 = c1 0) (h1 : c 0 = c1 1) (t : S.Tensor c) :

                  Swapping the two slots of a rank-two tensor transposes its component matrix.

                  fromTripleT #

                  noncomputable def TensorSpecies.Tensor.fromTripleT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 c3 : C} :
                  TensorProduct k (V c1) (TensorProduct k (V c2) (V c3)) →ₗ[k] S.Tensor ![c1, c2, c3]

                  The construction of a tensor with two indices from the tensor product V c1 ⊗[k] V c2 defined categorically.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    theorem TensorSpecies.Tensor.fromTripleT_tmul {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 c3 : C} (x : V c1) (y : V c2) (z : V c3) :
                    theorem TensorSpecies.Tensor.actionT_fromTripleT {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 c3 : C} (x : TensorProduct k (V c1) (TensorProduct k (V c2) (V c3))) (g : G) :
                    g • fromTripleT x = fromTripleT ((TensorProduct.map ((rep c1) g) (TensorProduct.map ((rep c2) g) ((rep c3) g))) x)
                    theorem TensorSpecies.Tensor.fromTripleT_basis_repr {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 c2 : C} (x : TensorProduct k (V c) (TensorProduct k (V c1) (V c2))) (φ : ComponentIdx ![c, c1, c2]) :
                    ((basis ![c, c1, c2]).repr (fromTripleT x)) φ = (((b c).tensorProduct ((b c1).tensorProduct (b c2))).repr x) (φ 0, φ 1, φ 2)
                    theorem TensorSpecies.Tensor.fromTripleT_apply_basis {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c c1 c2 : C} (b0 : basisIdx c) (b1 : basisIdx c1) (b2 : basisIdx c2) :
                    fromTripleT ((b c) b0 ⊗ₜ[k] ((b c1) b1 ⊗ₜ[k] (b c2) b2)) = (basis ![c, c1, c2]) fun (x : Fin (Nat.succ 0).succ.succ) => match x with | 0 => b0 | 1 => b1 | 2 => b2

                    fromConstTriple #

                    noncomputable def TensorSpecies.Tensor.fromConstTriple {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 c3 : C} (v : (Representation.trivial k G k).IntertwiningMap ((rep c1).tprod ((rep c2).tprod (rep c3)))) :
                    S.Tensor ![c1, c2, c3]

                    A constant three tensor (e.g. the Pauli matrices).

                    Equations
                    Instances For
                      @[simp]
                      theorem TensorSpecies.Tensor.actionT_fromConstTriple {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)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} {c1 c2 c3 : C} (v : (Representation.trivial k G k).IntertwiningMap ((rep c1).tprod ((rep c2).tprod (rep c3)))) (g : G) :

                      Tensors formed by fromConstPair are invariant under the group action.