From Knot Atlas
KnotTheory` can compute knot and link invariants associated with matrix solutions of the Yang-Baxter equation, using the program
(For In see Setup)
In more detail, let V be a free module of finite rank over a commutative ring, and let be invertible. Further, let there be invertible endomorphisms ; these correspond to McupL, McupR, McapL, and McapR respectively. Fixing a basis of V, we can regard all of these endomorphisms as matrices.
The following notation is useful: for n = dim(V), refers to the element of R in row n(c−1) + d and column n(a−1) + b.
For an oriented knot or link K, REngine returns the product τ(K), which is computed as follows:
- Find a Morse link presentation of K such that it is composed only of crossings of the
X[k, Over/Under, Down, Down]variety; this is accomplished by adding caps and cups where necessary.
- Label the edges in between events in the Morse link presentation of K.
- Associate each event with one of the matrices as shown, with the indices given by the labelling:
- Define τ(K) as the result of taking the product of the matrices associated with the elements of K, and summing over repeated indices; each sum runs from 1 to n = dim(V).
As an example, let K be the trefoil as shown, with the chosen axis upwards, and the strands going down through all the crossings. Then
where the summation is carried out on all the indices a through i, each ranging from 1 to n.
Determining that τ(K) is actually an invariant is simply a matter of checking the equality of the outcomes of Reidemeister moves in various configurations and orientations, as well as a few 'topological' moves. Note that
REngine does not perform any checks, while the utility TestRMatrix performs the tests required to determine regular isotopy.
Let's use the REngine to find the Jones polynomial of the trefoil. The R and M matrices for the Jones polynomial, in the indeterminate t, are as follows:
Putting these definitions into Mathematica, we run the REngine on the trefoil. Note that the Jones polynomial is usually normalized so that the polynomial of the unknot 0_1 is 1, hence the term on the denominator.
 See also
See also QuantumGroups`, a Mathematica package by Scott Morrison, now included in KnotTheory`, which computes arbitrary quantum knot invariants. (For now, it only uses braid representations, not morse link representations.)