Documentation

LeanPool.RegtsSevenster.RS.Classical.CatTheory.PartialTrace

The partial categorical trace #

Tracing out the last tensor factor: for f : P ⊗ X ⟶ P ⊗ X the partial trace ptr f : P ⟶ P closes the X strand into a loop and leaves the P strand open.

The calculus: the partial trace absorbs factors acting on P alone from either side, it commutes with whiskering by a further factor on the left, the partial trace of the braiding of the last two factors is the identity, and the full trace of a partial trace is the full trace. Those are what the cycle-trace factorisation of a permutation action needs.

The partial trace of an endomorphism of P ⊗ X over its last factor: coevaluate an X strand beside P, let the endomorphism act, cross the strand over its dual and evaluate.

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

    Tracing inside a further factor #

    Partial trace over the last factor is unaffected by a factor whiskered on the far left, so it may be computed inside the smaller tensorand. Combined with the calculus above this evaluates the partial trace of the braiding of the last two factors.

    The partial trace of the braiding is the identity: the strand created by the coevaluation crosses the open strand and is capped against it, and the resulting zig-zag is the snake identity of the pairing.

    The full trace of a partial trace #

    Closing the remaining P strand of ptr f into a loop closes both strands of f. The comparison passes through the partial trace over the first factor: against the tensor pairing the two loops of the full trace disentangle with the P loop innermost, and an exchange of disjoint cups and caps re-nests the loop closure of ptr f into exactly that shape.

    The full trace of a partial trace is the full trace: closing the remaining strand of ptr f into a loop closes both strands of f.