Documentation

Physlib.Relativity.Tensors.Contraction.UnitTensorContraction

Contraction against the unit tensor #

i. Overview #

The unit tensor is the identity for slot contraction: contracting any slot of t against unitTensor for that slot's color returns t, the slot relabelled to the survivor tail. That is what collapses "raise then lower" to the identity, a metric contracted against its dual becoming the unit tensor and then contracting away.

crossToEnd_unitTensor is proved by decomposing t along its last slot (eq_sum_evalT) and transporting to an arbitrary slot with the transposition swap i (last). On it the round trip against a matched pair is assembled in both conventions, and a pair collapsing in both orders makes the two contractions mutually inverse, which crossToSlotEquiv bundles as a linear equivalence between the two color assignments.

Since unitTensor is RCLike-valued, this material sits over an [RCLike k] variable block, apart from the CommRing crossToEnd/crossToSlot algebra.

ii. Key results #

iii. Table of contents #

iv. References #

A. The unit tensor as a slot-contraction identity #

Contracting a named slot against unitTensor returns the tensor unchanged, the slot carried to the survivor tail by move_last.

theorem TensorSpecies.Tensor.crossToEnd_unitTensor {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} {nA : ℕ} {cA : Fin (nA + 1) → C} {c : C} (i : Fin (nA + 1)) (hc : cA i = c) (t1 : S.Tensor cA) :
((crossToEnd i 0 ⋯) t1) (unitTensor c) = (permT (Fin.append i.succAbove fun (x : Fin 1) => i) ⋯) t1

Contracting slot i of t1 against the unit tensor for that slot's color returns t1, the contracted slot relabelled by move_last i. The unit tensor acts as an identity for crossToEnd at any named slot.

B. Round trips against a matched pair #

If M_{μν} M'^{νρ} = δ_μ^ρ, contracting an index of a tensor t with M and then with M' gives back t. The metric and its inverse are such a pair.

theorem TensorSpecies.Tensor.crossToEnd_round_trip_of_unit_slot {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} {nA : ℕ} {c : Fin (nA + 1) → C} {d : C} (i j : Fin (nA + 1)) (hj : j = Fin.last nA) (M₁ : S.Tensor ![S.τ (c i), d]) (M₂ : S.Tensor ![S.τ d, c i]) (hM : ((contractInnerT ⋯) M₁) M₂ = (permT id ⋯) (unitTensor (c i))) (t : S.Tensor c) :
((crossToEnd j 0 ⋯) (((crossToEnd i 0 ⋯) t) M₁)) M₂ = (permT (Fin.append i.succAbove fun (x : Fin 1) => i) ⋯) t

If M₁_{μν} M₂^{νρ} = δ_μ^ρ, contracting slot i of t with M₁ and then with M₂ gives back t with that slot moved to the end, because crossToEnd places the surviving index last. The last slot is a variable j with hj : j = last nA, so the lemma also applies where j is last only up to an equality.

theorem TensorSpecies.Tensor.crossToSlot_raise_lower_round_trip {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} {nA : ℕ} {c : Fin (nA + 1) → C} {cs ds : Fin 2 → C} (i : Fin (nA + 1)) (he : c i = ds 1) (ha : S.τ (c i) = cs 0) (hb : S.τ (cs 1) = ds 0) (M : S.Tensor cs) (M' : S.Tensor ds) (hM : ((contractInnerT hb) M) M' = (permT id ⋯) (unitTensor (ds 1))) (t : S.Tensor c) :
(crossToSlot i 0 ⋯ M') ((crossToSlot i 0 ha M) t) = (permT id ⋯) t

If M_{μν} M'^{νρ} = δ_μ^ρ, contracting slot i of t with M and then with M' gives back t in place, up to renaming the colour of slot i. The equalities ha, hb and he match slot i with the indices of M and M', so M and M' can have any colour lists.

C. Raising and lowering as an equivalence #

Both collapse orders are hypotheses here and each is used once: M · M' = δ gives one round trip by section B, M' · M = δ the other through injectivity of the lowering half. If the label sets of the two indices of M are in bijection, as for a metric, the second law follows from the first (section D).

theorem TensorSpecies.Tensor.crossToSlotInv_crossToSlot {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} {nA : ℕ} {c : Fin (nA + 1) → C} {cs ds : Fin 2 → C} (i : Fin (nA + 1)) (he : c i = ds 1) (ha : S.τ (c i) = cs 0) (hb : S.τ (cs 1) = ds 0) (M : S.Tensor cs) (M' : S.Tensor ds) (hMM' : ((contractInnerT hb) M) M' = (permT id ⋯) (unitTensor (ds 1))) (t : S.Tensor c) :
(crossToSlotInv i he hb M') ((crossToSlot i 0 ha M) t) = t

If M_{μν} M'^{νρ} = δ_μ^ρ, crossToSlotInv with M' undoes crossToSlot with M.

theorem TensorSpecies.Tensor.crossToSlot_crossToSlotInv {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} {nA : ℕ} {c : Fin (nA + 1) → C} {cs ds : Fin 2 → C} (i : Fin (nA + 1)) (he : c i = ds 1) (ha : S.τ (c i) = cs 0) (hb : S.τ (cs 1) = ds 0) (M : S.Tensor cs) (M' : S.Tensor ds) (hMM' : ((contractInnerT hb) M) M' = (permT id ⋯) (unitTensor (ds 1))) (hM'M : ((contractInnerT ⋯) M') M = (permT id ⋯) (unitTensor (cs 1))) (t : S.Tensor (Function.update c i (cs 1))) :
(crossToSlot i 0 ha M) ((crossToSlotInv i he hb M') t) = t

If also M'^{νρ} M_{ρσ} = δ^ν_σ, crossToSlot with M undoes crossToSlotInv with M'. The second law makes crossToSlotInv injective, so its left inverse is also a right inverse.

noncomputable def TensorSpecies.Tensor.crossToSlotEquiv {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} {nA : ℕ} {c : Fin (nA + 1) → C} {cs ds : Fin 2 → C} (i : Fin (nA + 1)) (he : c i = ds 1) (ha : S.τ (c i) = cs 0) (hb : S.τ (cs 1) = ds 0) (M : S.Tensor cs) (M' : S.Tensor ds) (hMM' : ((contractInnerT hb) M) M' = (permT id ⋯) (unitTensor (ds 1))) (hM'M : ((contractInnerT ⋯) M') M = (permT id ⋯) (unitTensor (cs 1))) :

The linear equivalence crossToSlot with M, with inverse crossToSlotInv with M', when M_{μν} M'^{νρ} = δ_μ^ρ and M'^{νρ} M_{ρσ} = δ^ν_σ. Slot i has colour c i on one side and the colour cs 1 of the second index of M on the other. For the metric this lowers and raises an index with η_{μν} and η^{νρ}.

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

    D. One contraction law from the other #

    theorem TensorSpecies.Tensor.contractInnerT_eq_unitTensor_comm {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.HasContrDualBases] {cs ds : Fin 2 → C} (hb : S.τ (cs 1) = ds 0) (ha : S.τ (ds 1) = cs 0) (e : basisIdx (cs 0) ≃ basisIdx (cs 1)) (M : S.Tensor cs) (M' : S.Tensor ds) (h : ((contractInnerT hb) M) M' = (permT id ⋯) (unitTensor (ds 1))) :
    ((contractInnerT ha) M') M = (permT id ⋯) (unitTensor (cs 1))

    If the label sets of the two indices of M are in bijection, M_{μν} M'^{νρ} = δ_μ^ρ implies M'^{νρ} M_{ρσ} = δ^ν_σ. Without the bijection e this fails, since A B = 1 does not imply B A = 1 for rectangular matrices.