Cross contraction at named slots #
i. Overview #
contrT contracts two slots of a single tensor. Contracting a slot of one tensor against a slot of
another (T^{μν} u_ν, g_{μν} v^ν) is prodT then contrT, which leaves every call site to
locate the two post-product slots and discharge the distinctness and τ-duality goals.
crossToEnd i j hc performs that contraction at named slots i and j, with
hc : S.τ (cA i) = cB j recording their τ-duality. The output color is
Fin.append (cA ∘ i.succAbove) (cB ∘ j.succAbove): every slot of cA except i, in order, then
every slot of cB except j. These are the survivors. Any slot is reachable:
crossToEnd 2 0 _ R u reads as R_{μνρσ} u^ρ. The survivors are appended rather than interleaved,
and appending is associative, so both bracketings of a chain produce the same survivor list in the
same order.
The complementary convention keeps the replacement index in place. Contracting slot 1 of
![c₀, c₁, c₂, c₃] against a rank-two ![S.τ c₁, d] gives ![c₀, c₂, c₃, d] here and
![c₀, d, c₂, c₃] there; that operation is crossToSlot, built on this substrate in
Physlib.Relativity.Tensors.Contraction.CrossToSlot.
ii. Key results #
TensorSpecies.Tensor.crossToEnd: the slot-addressed cross contraction.TensorSpecies.Tensor.crossToEnd_two: at rank two on each factor, a plaincontrTof the product on slots1, 2.TensorSpecies.Tensor.crossToEnd_basis: the contraction of two basis tensors, which characterisescrossToEnd.TensorSpecies.Tensor.crossToEnd_basis_repr_eq_sum_fin: the component formula at arbitrary slots and ranks for any species, the contraction of the two contracted basis vectors left as an opaque coefficient.TensorSpecies.Tensor.crossToEnd_basis_repr_eq_sum_dual: the same formula for a species with contraction-dual bases, the δ collapsing the two sums into one.TensorSpecies.Tensor.crossToEnd_pair_basis_repr: the component formula at rank two on each factor.TensorSpecies.Tensor.toMatrix_crossToEnd_pair: the same as a matrix equation, cross contraction being the product of the component matrices.TensorSpecies.Tensor.crossToEnd_equivariant: the contraction commutes with theG-action.TensorSpecies.Tensor.crossToEnd_assoc_rankTwo: rebracket the chainA —(iA·0)— B —(last·0)— Cat rank-twoBandC, up topermT id. Not full associativity.TensorSpecies.Tensor.crossToEnd_permT_left/crossToEnd_permT_right: move a relabelling of the left or right factor through the contraction, the contracted slot moving with it.
iii. Table of contents #
- A. Slot-addressed cross contraction
- B. Component formulas and equivariance
- C. Rebracketing the metric chain
- D. Permutation commutators
iv. References #
- None.
A. Slot-addressed cross contraction #
Slot-addressed cross contraction: contract slot i of t1 against slot j of t2. The
survivors are t1's slots except i followed by t2's slots except j, so the output color is
a clean Fin (nA + nB) → C and a chain composes without recasts.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Cross-contracting the last slot of a rank-2 tensor A with the 0-slot of a rank-2 tensor B
is a plain contrT of their product on the middle slots 1, 2, up to a color recast. Discharging
the slot arithmetic once lets a contrT-level identity lift to crossToEnd by one rewrite.
B. Component formulas and equivariance #
crossToEnd i j hc is the curried bilinear map LinearMap.compr₂ prodT post-composed with the
linear permT/contrT factors, so additivity, scalar multiplication, and finite sums in either
argument are already the generic map_add/map_smul/map_sum and need no lemmas of their own.
Cross contraction of two basis tensors: the contraction of the two contracted basis vectors
times the basis tensor of the surviving labels. These values determine crossToEnd i j hc, a
bilinear map in the two tensors.
The component formula for a cross contraction at arbitrary slots and ranks, for any species:
each contracted label is summed over its own slot, with the contraction of the two basis vectors as
coefficient. The counterpart of contrT_basis_repr_apply_eq_sum_fin for two tensors.
The component formula for a cross contraction at arbitrary slots and ranks, for a species with
contraction-dual bases: the contraction coefficient is δ and one sum remains, the contracted label
of t2 matched to that of t1 by contrDualIdxEquiv.
The component formula for cross-contracting the last slot of a rank-two tensor with the first slot of another. The surviving labels are supplied as a dependent pair, so the formula applies when the species has colour-dependent basis-index types.
Cross contraction of two rank-two tensors is the product of their component matrices, the
middle labels matched by HasContrDualBases.dualIdxEquiv.
Cross contraction is G-equivariant, each of prodT, contrT and permT being so.
C. Rebracketing the metric chain #
Both bracketings reduce to one product contracted at its two seams in opposite order, then drop to
the pure-tensor level, so the seam permutation never crosses a contraction under whnf;
Pure.permP_dropPair_dropPair_congr closes the step.
Rebracket the chain A —(iA·0)— B —(last·0)— C for rank-two B and C: contracting A·B
first and then ·C equals contracting B·C first and then A·, up to the color recast
permT id.
Not full associativity: only A's attachment slot iA is free. B's rank two is what makes the
statement possible, the second contraction being addressed at Fin.last nA, the slot B's unique
survivor occupies in A·B. Other slots are reached by conjugating with the permT commutators.
With A := T, B := g, C := g⁻¹ this reassociates (T·g)·g⁻¹ to T·(g·g⁻¹), after which
g·g⁻¹ collapses to the unit tensor: the step behind raising then lowering a named index.
D. Permutation commutators #
Moving a relabelling of one factor through the slot-addressed contraction. The relabelling σ need
not fix the contracted slot, so it carries the contraction from slot i to slot σ i and restricts
to the survivors as a map σ' filling the square (σ i).succAbove ∘ σ' = σ ∘ i.succAbove. Taking
σ' as an argument rather than deriving it lets a caller supply the survivor map it wants (id, a
swap-induced map) instead of an opaque composite.
Left commutator: contracting slot i of permT σ t1 equals contracting slot σ i of t1,
then relabelling the survivors by σ'. The square hσ' records how σ' carries the complement
of i to the complement of σ i, and implies its bijectivity.
Right commutator, the mirror of crossToEnd_permT_left: contracting slot j of permT σ t2
equals contracting slot σ j of t2, then relabelling the survivors by σ'.