VasCalc Documentation - User's Guide: Difference between revisions

From Drorbn
Jump to navigationJump to search
No edit summary
No edit summary
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This page documents the ChordsMod4T component of the [[VasCalc]] project. This page is also under construction.
This page documents the ChordsMod4T component of the [[VasCalc]] project. This page is also under construction.


===Overview===
==Overview==
This package provides a Mathematica interface to work with the space generated by chord diagrams on a fixed skeleton of lines and circles, modulo the 4-T relation. See Dror Bar-Natan's [[Survey of Finite Type Invariants]] for further details.
This package provides a Mathematica interface to work with the space generated by chord diagrams on a fixed skeleton of lines and circles, modulo the 4-T relation. See Dror Bar-Natan's [[Survey of Finite Type Invariants]] for further details.


===Requirements===
==Requirements==
The software requirements of this package are Mathematica 4.1 and Java 1.4 (or greater, in both cases). However, note that default installations of Mathematica 4.1 and up include a Java runtime binary, and require no further configuration for this package to work.
The software requirements of this package are Mathematica 4.1 and Java 1.4 (or greater, in both cases). However, note that default installations of Mathematica 4.1 and up include a Java runtime binary, and require no further configuration for this package to work.


In order to use the <code>KontsevichIntegral</code>, you must also install the ''KnotTheory`'' package, which is available from [http://katlas.math.toronto.edu/wiki/The_Mathematica_Package_KnotTheory%60 The Knot Atlas].
While there are no specific hardware requirements, the computations involved are rather resource-intensive. Users of low-end machines will see a smaller range of parameters for which the computation is practicable. We'll have an expected performance profile once work on this package is done.
While there are no specific hardware requirements, the computations involved are rather resource-intensive. Users of low-end machines will see a smaller range of parameters for which the computation is practicable. We'll have an expected performance profile once work on this package is done.


===Installation===
==Installation==
If you have an up-to-date copy of the [http://katlas.math.toronto.edu/svn/VasCalc/ repository], skip ahead. If not, download [http://katlas.math.toronto.edu/svn/VasCalc/trunk/ChordsMod4T.tar.gz ChordsMod4T.tar.gz] and extract it to a directory of your choice.
If you have an up-to-date copy of the [http://katlas.math.toronto.edu/svn/VasCalc/ repository], skip ahead. If not, download [http://katlas.math.toronto.edu/svn/VasCalc/trunk/ChordsMod4T.tar.gz ChordsMod4T.tar.gz] and extract it to a directory of your choice.


You must also ensure that there is a directory named "CM4TData" under the installation directory, creating it if neccessary. This is for save/load functionality to work properly.


===Usage===
==Usage==
====Initialization====
In a Mathematica session, load the definitions by typing:
If you wish to compute the <code>KontsevichIntegral</code> (and really, why else would you be here?), start by loading in the ''KnotTheory`'' package in a Mathematica session:
{{InOut|n=0|in=<nowiki><<KnotTheory`</nowiki>|
out=<nowiki>Loading KnotTheory` version of May 31, 2006, 14:15:20.091.
Read more at http://katlas.math.toronto.edu/wiki/KnotTheory.</nowiki>}}

Also, load in the VasCalc definitions:


{{In|n=1|in=<nowiki> <</path_to_install_folder/CDinterface.m </nowiki>}}
{{In|n=1|in=<nowiki> <</path_to_install_folder/CDinterface.m </nowiki>}}
Line 22: Line 31:


{{In|n=2|in=<nowiki> SetVasCalcPath["/path_to_install_folder"]; </nowiki>}}
{{In|n=2|in=<nowiki> SetVasCalcPath["/path_to_install_folder"]; </nowiki>}}
These steps must be followed at the start of each Mathematica session you wish to use this package.


====Representing Chord Diagrams====
Use the command CreateCDSpace[ lines, circles, chords], to generate the space of chord diagrams with the given parameters, modulo the 4T relations. For example, we construct the space of diagrams with 3 chords on a skeleton of 1 line and 1 circle:
Our convention for representing a chord diagram in Mathematica is through a <code>CD</code> object containing <code>Line</code> and <code>Circle</code> expressions as per the skeleton. To construct such a representation,
* Number the chords on the diagram.
* For each line on the skeleton, put within the brackets of its <code>Line</code> expression the numbers of the chords that have their endpoints on that line, starting from the bottom and working up. For each circle, do the same, but one can choose an arbitrary starting point and count around. If there are no chords on a given line or circle, leave the brackets empty, as in <code>Line[]</code>.
Naturally, there are many representations for a given diagram.
This package also allows for formal linear combinations of <code>CD</code> objects.


====Computing chord diagram spaces modulo 4T and FI relations====
{{In|n=3|in=<nowiki> A = CreateCDSpace[1,1,3]; </nowiki>}}


[[Image:The_4T_Relation.png|300px|right|thumb|The 4T relation: The dotted lines indicated regions that are identical in all diagrams.]]
One can then find the dimension of the resultant space:
The object <code>CDSpace[l,m,n]</code> represents the rational vector space generated by chord diagrams with <code>n</code> chords on a skeleton with <code>l</code> lines and <code>m</code> circles, modulo the 4-T relation. The first time a space is encountered in a session, a check is made to see if there is data for the required space on disc (under the path_to_install_folder/CM4TData directory). If no such entry exists, the space is computed, and by default the results are saved on disc for future use - this computation may be substantial, depending on the values of the parameters. One can prevent the saving of data by using the command <code>CDSpace[l,m,n, WriteToDisc -> False] </code>.


One can obtain the dimension of a chord diagram space, as follows:
{{InOut|n=4|in = <nowiki>GetDimension[A]</nowiki>|out=19}}

{{InOut|n=3|in = <nowiki>GetDimension[CDSpace[1,1,3]]</nowiki>|out=19}}


Note: Our convention for representing a chord diagram in Mathematica is through a <code>CD</code> object containing <code>Line</code> and <code>Circle</code> expressions as per the skeleton. To construct such a representation,
* Number the chords on the diagram.
* For each line on the skeleton, put within the brackets of its <code>Line</code> expression the numbers of the chords that have their endpoints on that line, starting from the bottom and working up. For each circle, do the same, but one can choose an arbitrary starting point and count around. If there are no chords on a given line or circle, leave the brackets empty, as in <code>Line[]</code>.
Naturally, there are many representations for a given diagram.


One can obtain a basis for a chord diagram space (modulo 4T), expressed as a list of chord diagrams:
One can also obtain a basis for a chord diagram space (modulo 4T), expressed as a list of chord diagrams:
{{InOut|n=5| in=<nowiki>GetCDBasis[A] </nowiki>|
{{InOut|n=4| in=<nowiki>GetCDBasis[ CDSpace[1,1,3] ]</nowiki>|
out=<nowiki>{CD[Line[1, 1], Circle[2, 2, 3, 3]], CD[Line[1, 1], Circle[2, 3, 2, 3]],
out=<nowiki>{CD[Line[1, 1], Circle[2, 2, 3, 3]], CD[Line[1, 1], Circle[2, 3, 2, 3]],
CD[Line[1], Circle[1, 2, 3, 2, 3]], CD[Line[1], Circle[1, 2, 3, 3, 2]],
CD[Line[1], Circle[1, 2, 3, 2, 3]], CD[Line[1], Circle[1, 2, 3, 3, 2]],
Line 49: Line 63:
CD[Line[1, 2, 3, 3, 2], Circle[1]]} </nowiki> }}
CD[Line[1, 2, 3, 3, 2], Circle[1]]} </nowiki> }}


In addition, one can work with chord diagram spaces modulo the 4T and framing independence (FI) relations, using the command <code> CDrSpace[l,m,n,opts] </code> - the "r" stands for "further reduced". The above commands work in a similar fashion for these spaces.
The command <code>ReduceCD[ Diagrams, CDSpace]</code> will take a linear combination of chord diagrams, and return another linear combination that is equivalent to the first up to the relations defined. One also needs to pass on the chord diagram space in which the action takes place. For example:
====Using <code>ASeries</code> objects====
{{In|n=6|in=<nowiki>cd = 4 CD[Line[1, 2, 2, 1, 3], Circle[3]] + CD[Line[1, 2, 2, 3, 3, 1], Circle[]];</nowiki> }}
Because operations on chord diagrams (such as multiplication and reduction) can often be resource-intensive, it is desirable to work with representations in Java as much as possible. The <code>ASeries</code> object is meant to facilitate this. To create one, use the command <code>ASeries[Permutation, m, CDcombo]</code>, where
{{InOut|n=7|in=<nowiki>ReduceCD[cd,A]</nowiki>|out=<nowiki>4 CD[Line[1, 2, 3, 3, 2], Circle[1]] + CD[Line[1, 2, 3, 3, 2, 1], Circle[]]</nowiki>}}
*<code>Permutation</code> is a list of integers from 1 to <code>l</code> (the number of strands) which encode the permutation of those strands that the <code>ASeries</code> is intended to represent (Note - <code>Id[n]</code> can be used as a shortcut for the identity permutation on <code>n</code> strands). For example, if one wishes a combination of chord diagrams to represent the braiding of the first two strands in a skeleton of five strands, one would use the permutation <code>{2,1,3,4,5}</code>,
*<code>m</code> is the number of circles, and
*<code>CDcombo</code> is a linear combination of chord diagrams (represented by <code>CD</code>'s, and possibly a constant term), all of which are on a fixed skeleton of <code>l</code> lines and <code>m</code> circles, and may have a different number of chords.

It is important to note that an <code>ASeries</code> carries with it the notion of an order, defined implicitly by the maximum number of chords to appear in a diagram in <code>CDcombo</code>; the result of any and all computations are only given up to the lowest order appearing therein. To force a maximum order, use the command <code>ASeries[Permutation, m, CDCombo, MaxDegree]</code>, where <code>MaxDegree</code> is a non-negative integer.

There are several operations one can perform on an <code>ASeries</code> object. Addition and multiplication is achieved using the <code>+</code> and <code>.</code> operators respectively - however only diagrams representing the same permutation can be added. Multiplication naturally composes the permutations. Also, <code>ASeries</code> objects can be inverted (up to the highest order), provided they are of the form <code>(1 + higher order terms) </code>.

Additionally, the following unary operations are available:
*<code>AddStrand[n, ASeries]</code> adds an empty strand to all the diagrams in the given <code>ASeries</code> after the <code>n</code>'th position.
*<code>DoubleStrand[n, ASeries]</code> doubles the <code>n</code>'th strand in all the diagrams in the given <code>ASeries</code>.
*<code>ReverseStrand[n, ASeries]</code> reverses the <code>n</code>'th strand in all the diagrams in the given <code>ASeries</code>.
*<code>ConnectStrand[i, j, ASeries]</code> is the linear extension of the operation that for each diagram, appends the <code>j</code>'th strand to the end of the <code>i</code>'th one.
*<code>Reduce[ASeries]</code> returns another <code>ASeries</code> equivalent to the first modulo the 4T relation. This operation may take some time if the relevant chord diagram spaces need to be computed.
*<code>ReduceFI[ASeries]</code> returns another <code>ASeries</code> equivalent to the first modulo the 4T relation, and the FI relations. As before, this operation may take some time if the relevant chord diagram spaces need to be computed.

All these operations will be put to use in the next section.

Finally, to convert an <code>ASeries</code> back to a human-readable form, use the command: <code>CD[ AS ]</code>, where <code>AS</code> is the object to be converted.

====Checking the pentagon and hexagon relations====

For paranthesized braids, the pentagon and hexagon equations are given by
{| align=center width=100%
|- align=center
|[[Image:The Pentagon For Parenthesized Braids.jpg|350px]]
|[[Image:The Hexagons For Parenthesized Braids.jpg|500px]]
|- align=center
|colspan=2|'''The Pentagon and the Hexagons for Parenthesized Braids'''
|}.

Algebraically, these relations can be written as

{{Equation|Pentagon|<math>\Phi^{123}\cdot(1\otimes\Delta\otimes 1)(\Phi)\cdot\Phi^{234}=(\Delta\otimes 1\otimes 1)(\Phi)\cdot(1\otimes 1\otimes\Delta)(\Phi)</math>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<math>A_4</math>,}}


{{Equation|Hexagons|<math>(\Delta\otimes 1)(R^{\pm 1}) = \Phi^{123}\cdot (R^{\pm 1})^{23}\cdot(\Phi^{-1})^{132}\cdot(R^{\pm 1})^{13}\cdot\Phi^{312}</math>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;in&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<math>A_3</math>.}}

where <math>A_n</math> is the algebra of chord diagrams on <math>n</math> strands modulo the 4-T relations.

Let us check that a proposed pair <math>\{R, \Phi\}</math> satisfy these equations, up to the third order. After running through the initialization above, we introduce our candidates as <code>ASeries</code> objects - note that we wish <math>R</math> to represent a transposition, while <math>\Phi</math> is a trivial permutation:
{{InOut|n=3|in= <nowiki>Phi = ASeries[{1, 2, 3}, 0,
1 + (1/24)*CD[Line[1], Line[2], Line[1, 2]] -
(1/24)*CD[Line[2], Line[1], Line[1, 2]], 3]
]</nowiki>|
out = <nowiki>ASeries[{1, 2, 3}, 0, {«JavaObject[vectorSpace.Coefficient]»,
«JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]»,
«JavaObject[vectorSpace.Coefficient]»}]</nowiki>}}
{{InOut|n=4|in= <nowiki>R = ASeries[{2, 1}, 0,
1 + (1/2)CD[Line[1], Line[1]] + (1/8)CD[Line[1, 2],Line[1, 2]] +
(1/48)CD[Line[1, 2, 3], Line[1, 2, 3]]
]</nowiki>|
out=<nowiki>ASeries[{2, 1}, 0, {«JavaObject[vectorSpace.Coefficient]»,
«JavaObject[ChordVector]», «JavaObject[ChordVector]»,
«JavaObject[ChordVector]»}] </nowiki>}}

First, we'll check the pentagon equation. Writing the difference of the two sides for <math>\Phi</math>,
{{InOut|n=5|in=<nowiki> AddStrand[0, Phi].DoubleStrand[2, Phi].AddStrand[3, Phi] -
DoubleStrand[1, Phi].DoubleStrand[3, Phi] </nowiki> | out= <nowiki>ASeries[{1,2,3,4}, 0, {«JavaObject[vectorSpace.Coefficient]»,
«JavaObject[ChordVector]», «JavaObject[ChordVector]»}]</nowiki>}}

Now we reduce the result modulo the 4T relations, and convert back to <code>CD</code> notation:
{{InOut|n=6|in=<nowiki>CD[Reduce[%]]</nowiki>|out=0}}
Thus our candidate <math>\Phi</math> solves the pentagon equation.

Let's also test one of the hexagon equations:
{{InOut|n=7|in = <nowiki>DoubleStrand[1, R] - Phi.AddStrand[0, R].(Phi)^(-1).AddStrand[2, R].Phi</nowiki>|out=<nowiki>ASeries[{2,3,1}, 0, {«JavaObject[vectorSpace.Coefficient]»,
«JavaObject[ChordVector]», «JavaObject[ChordVector]»}]</nowiki>}}
Reducing the result, we see that our choices of <math>R</math> and <math>\Phi</math> yield a solution to the first hexagon equation.
{{InOut|n=8|in=<nowiki>CD[Reduce[%]]</nowiki>|out=0}}

The second hexagon equation can be verified in a similar fashion, and the result is the same.

====Braid Invariants====

To come: definition of Z[B[n]], demonstration of Reidemeister moves. For now, [[VasCalc Documentation - An example| reidemeister.nb]].

====The Unknot====
To compute <math>Z(K)</math> for any knot, including the unknot, we need to extend the definition of <math>Z</math> to include "caps" and "cups". In addition, framing independence forces us to introduce the FI relation - hence all the formulae in this section take place in the "further reduced" space of chord diagrams. We proceed using the <math>Z_{\infty}</math> correction term in [http://www.math.toronto.edu/~drorbn/papers/nat/nat.pdf]. To begin, let us choose a pair <math>(R, \Phi)</math> which solve the pentagon and hexagon equations to fourth degree:

{{In|n=9|in=<nowiki>Phi = ASeries[Id[3],0,
1 + CD[Line[1], Line[2], Line[1, 2]]/24 -
(7*CD[Line[1], Line[2, 3, 4], Line[1, 2, 3, 4]])/5760 -
CD[Line[2], Line[1], Line[1, 2]]/24 +
(7*CD[Line[2], Line[1, 3, 4], Line[1, 2, 3, 4]])/1920 -
(7*CD[Line[3], Line[1, 2, 4], Line[1, 2, 3, 4]])/1920 +
(7*CD[Line[4], Line[1, 2, 3], Line[1, 2, 3, 4]])/5760 +
(7*CD[Line[1, 2], Line[3, 4], Line[1, 2, 3, 4]])/5760 -
CD[Line[1, 3], Line[2, 4], Line[1, 2, 3, 4]]/640 -
CD[Line[1, 4], Line[2, 3], Line[1, 2, 3, 4]]/1152 -
CD[Line[2, 3], Line[1, 4], Line[1, 2, 3, 4]]/1152 +
(19*CD[Line[2, 4], Line[1, 3], Line[1, 2, 3, 4]])/5760 -
(7*CD[Line[3, 4], Line[1, 2], Line[1, 2, 3, 4]])/5760 -
CD[Line[1, 2, 3], Line[4], Line[1, 2, 3, 4]]/1440 +
CD[Line[1, 2, 4], Line[3], Line[1, 2, 3, 4]]/480 -
CD[Line[1, 3, 4], Line[2], Line[1, 2, 3, 4]]/480 +
CD[Line[2, 3, 4], Line[1], Line[1, 2, 3, 4]]/1440
]; </nowiki>}}

{{In|n=10|in=<nowiki>R = ASeries[{2,1},0,
1 + CD[Line[1], Line[1]]/2 + CD[Line[1, 2], Line[1, 2]]/8 +
CD[Line[1, 2, 3], Line[1, 2, 3]]/48 +
CD[Line[1, 2, 3, 4], Line[1, 2, 3, 4]]/384
];</nowiki>}}

The definition of <math>Z_\infty</math> involves going up the third strand, down the second, and up the first strand of <math>\Phi</math>:
{{InOut|n=11|in=<nowiki>Zinf = ConnectStrand[2,1, ConnectStrand[3,2, ReverseStrand[2,Phi] ] ]</nowiki>
|out=<nowiki>ASeries[{1}, 0, {«JavaObject[vectorSpace.Coefficient]»,
«JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]»,
«JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]»}]</nowiki>}}

The invariant of the unknot <math>Z(O)</math> is given by closing <math>Z_\infty^{-1}</math> to a circle; we then reduce and display the result:
{{InOut|n=12|in=<nowiki>ConnectStrand[1, 1, Zinf^(-1)] // ReduceFI // CD</nowiki>
|out = <nowiki>1 - CD[Circle[1, 2, 1, 2]]/24 - CD[Circle[1, 2, 3, 1, 4, 2, 3, 4]]/360
+ CD[Circle[1, 2, 3, 1, 4, 3, 2, 4]]/720 +
(7*CD[Circle[1, 2, 3, 4, 1, 2, 3, 4]])/5760</nowiki>}}
====The Kontsevich integral for unframed knots====

We can find the Kontsevich integral of any knot <code>K</code>, through the command <code>KontsevichIntegral[R, Phi, K]</code>, where <code>R</code> and <code>Phi</code> are <code>ASeries</code> objects as above, and <code>K</code> is a [http://katlas.math.toronto.edu/wiki/MorseLink_Presentations Morse link] presentation of a knot (or alternatively any presentation that ''KnotTheory`'' knows how to convert to a Morse link presentation). The output, for a knot, is an <code>ASeries</code> object on one circle, whose degree is determined by the degrees of <code>R</code> and <code>Phi</code>.

In these examples, we shall continue to use the pair <math>(R, \Phi) </math> defined in the previous section.

Here is the Kontsevich integral, up to degree four, of the trefoil:
{{InOut|n=13|in=<nowiki>KontsevichIntegral[R,Phi,Knot[3,1]] // ReduceFI // CD </nowiki>
|out = <nowiki>1 + (23*CD[Circle[1, 2, 1, 2]])/24 -
CD[Circle[1, 2, 3, 1, 2, 3]]/2 + (119*CD[Circle[1, 2, 3, 1, 4, 2, 3, 4]])/360 -
(119*CD[Circle[1, 2, 3, 1, 4, 3, 2, 4]])/720 + (247*CD[Circle[1, 2, 3, 4, 1, 2, 3, 4]])/5760 </nowiki>}}
Below is another embedding of the trefoil, and the Kontsevich integral computed on this diagram is the same as that of the first:
[[Image:Trefoil.jpg|left|thumb|80px|The trefoil]]
{{In|n=14|in=<nowiki>trefoil = MorseLink[Cup[1, 2], Cup[2, 3], X[1, Under, Down, Down],
X[3, Under, Up, Up], X[2, Over, Down, Up], Cap[4, 3], Cap[2, 1]];</nowiki>}}
{{InOut|n=16|in=<nowiki>KontsevichIntegral[R,Phi,trefoil] // ReduceFI // CD</nowiki>
|out = <nowiki>1 + (23*CD[Circle[1, 2, 1, 2]])/24 -
CD[Circle[1, 2, 3, 1, 2, 3]]/2 + (119*CD[Circle[1, 2, 3, 1, 4, 2, 3, 4]])/360 -
(119*CD[Circle[1, 2, 3, 1, 4, 3, 2, 4]])/720 + (247*CD[Circle[1, 2, 3, 4, 1, 2, 3, 4]])/5760 </nowiki>}}


<br style="clear:both" />
===Performance Issues===
==Performance Issues==


We are currently working to improve the performance of this program. For larger computations, it would likely help to increase the maximum heap size available to Java. To do this, type the following into Mathematica <i>before</i> loading the CDinterface.m definitions (step 1 above):
We are currently working to improve the performance of this program. For larger computations, it would likely help to increase the maximum heap size available to Java. To do this, type the following into Mathematica <i>before</i> loading the CDinterface.m definitions (step 1 above):
Line 61: Line 211:


This allows Java to use up to 128 megabytes of memory; you may change the number "128" in the parameter "-Xmx128M" to suit your needs. Note that the first line needs to be entered exactly as shown - the funny apostrophe is located next to the "1" key on many keyboards.
This allows Java to use up to 128 megabytes of memory; you may change the number "128" in the parameter "-Xmx128M" to suit your needs. Note that the first line needs to be entered exactly as shown - the funny apostrophe is located next to the "1" key on many keyboards.
==References==
*<nowiki>[1]</nowiki> D. Bar-Natan, [http://www.math.toronto.edu/~drorbn/papers/nat/nat.pdf <i>Non-Associative Tangles</i>]. Geometric Topology (proceedings of the Georgia International Topology Conference, W. H. Kazez ed.), 139-183, Amer. Math. Soc. and International Press, Providence, 1997.

Latest revision as of 19:53, 12 September 2006

This page documents the ChordsMod4T component of the VasCalc project. This page is also under construction.

Overview

This package provides a Mathematica interface to work with the space generated by chord diagrams on a fixed skeleton of lines and circles, modulo the 4-T relation. See Dror Bar-Natan's Survey of Finite Type Invariants for further details.

Requirements

The software requirements of this package are Mathematica 4.1 and Java 1.4 (or greater, in both cases). However, note that default installations of Mathematica 4.1 and up include a Java runtime binary, and require no further configuration for this package to work.

In order to use the KontsevichIntegral, you must also install the KnotTheory` package, which is available from The Knot Atlas.

While there are no specific hardware requirements, the computations involved are rather resource-intensive. Users of low-end machines will see a smaller range of parameters for which the computation is practicable. We'll have an expected performance profile once work on this package is done.

Installation

If you have an up-to-date copy of the repository, skip ahead. If not, download ChordsMod4T.tar.gz and extract it to a directory of your choice.

You must also ensure that there is a directory named "CM4TData" under the installation directory, creating it if neccessary. This is for save/load functionality to work properly.

Usage

Initialization

If you wish to compute the KontsevichIntegral (and really, why else would you be here?), start by loading in the KnotTheory` package in a Mathematica session:

In[0]:= <<KnotTheory`
Out[0]= Loading KnotTheory` version of May 31, 2006, 14:15:20.091. Read more at http://katlas.math.toronto.edu/wiki/KnotTheory.

Also, load in the VasCalc definitions:

In[1]:= <</path_to_install_folder/CDinterface.m

where "path_to_install_folder" is either the "trunk" folder of the repository, or the folder in which the above archive, if downloaded, was unpacked.

You must also issue the following command, to inform Mathematica of the location of the required Java objects:

In[2]:= SetVasCalcPath["/path_to_install_folder"];

These steps must be followed at the start of each Mathematica session you wish to use this package.

Representing Chord Diagrams

Our convention for representing a chord diagram in Mathematica is through a CD object containing Line and Circle expressions as per the skeleton. To construct such a representation,

  • Number the chords on the diagram.
  • For each line on the skeleton, put within the brackets of its Line expression the numbers of the chords that have their endpoints on that line, starting from the bottom and working up. For each circle, do the same, but one can choose an arbitrary starting point and count around. If there are no chords on a given line or circle, leave the brackets empty, as in Line[].

Naturally, there are many representations for a given diagram. This package also allows for formal linear combinations of CD objects.

Computing chord diagram spaces modulo 4T and FI relations

The 4T relation: The dotted lines indicated regions that are identical in all diagrams.

The object CDSpace[l,m,n] represents the rational vector space generated by chord diagrams with n chords on a skeleton with l lines and m circles, modulo the 4-T relation. The first time a space is encountered in a session, a check is made to see if there is data for the required space on disc (under the path_to_install_folder/CM4TData directory). If no such entry exists, the space is computed, and by default the results are saved on disc for future use - this computation may be substantial, depending on the values of the parameters. One can prevent the saving of data by using the command CDSpace[l,m,n, WriteToDisc -> False] .

One can obtain the dimension of a chord diagram space, as follows:

In[3]:= GetDimension[CDSpace[1,1,3]]
Out[3]= 19


One can also obtain a basis for a chord diagram space (modulo 4T), expressed as a list of chord diagrams:

In[4]:= GetCDBasis[ CDSpace[1,1,3] ]
Out[4]= {CD[Line[1, 1], Circle[2, 2, 3, 3]], CD[Line[1, 1], Circle[2, 3, 2, 3]], CD[Line[1], Circle[1, 2, 3, 2, 3]], CD[Line[1], Circle[1, 2, 3, 3, 2]], CD[Line[], Circle[1, 1, 2, 3, 3, 2]], CD[Line[1, 2, 1, 2], Circle[3, 3]], CD[Line[], Circle[1, 2, 1, 3, 2, 3]], CD[Line[1, 2], Circle[1, 3, 3, 2]], CD[Line[1, 2, 2, 1], Circle[3, 3]], CD[Line[1, 2, 2], Circle[1, 3, 3]], CD[Line[], Circle[1, 2, 3, 1, 2, 3]], CD[Line[1, 2, 3], Circle[1, 3, 2]], CD[Line[1, 2, 3, 2, 1, 3], Circle[]], CD[Line[1, 2, 3, 2], Circle[1, 3]], CD[Line[1, 2, 3, 3], Circle[1, 2]], CD[Line[1, 2, 3, 2, 3, 1], Circle[]], CD[Line[1, 2, 3, 2, 3], Circle[1]], CD[Line[1, 2, 3, 3, 2, 1], Circle[]], CD[Line[1, 2, 3, 3, 2], Circle[1]]}

In addition, one can work with chord diagram spaces modulo the 4T and framing independence (FI) relations, using the command CDrSpace[l,m,n,opts] - the "r" stands for "further reduced". The above commands work in a similar fashion for these spaces.

Using ASeries objects

Because operations on chord diagrams (such as multiplication and reduction) can often be resource-intensive, it is desirable to work with representations in Java as much as possible. The ASeries object is meant to facilitate this. To create one, use the command ASeries[Permutation, m, CDcombo], where

  • Permutation is a list of integers from 1 to l (the number of strands) which encode the permutation of those strands that the ASeries is intended to represent (Note - Id[n] can be used as a shortcut for the identity permutation on n strands). For example, if one wishes a combination of chord diagrams to represent the braiding of the first two strands in a skeleton of five strands, one would use the permutation {2,1,3,4,5},
  • m is the number of circles, and
  • CDcombo is a linear combination of chord diagrams (represented by CD's, and possibly a constant term), all of which are on a fixed skeleton of l lines and m circles, and may have a different number of chords.

It is important to note that an ASeries carries with it the notion of an order, defined implicitly by the maximum number of chords to appear in a diagram in CDcombo; the result of any and all computations are only given up to the lowest order appearing therein. To force a maximum order, use the command ASeries[Permutation, m, CDCombo, MaxDegree], where MaxDegree is a non-negative integer.

There are several operations one can perform on an ASeries object. Addition and multiplication is achieved using the + and . operators respectively - however only diagrams representing the same permutation can be added. Multiplication naturally composes the permutations. Also, ASeries objects can be inverted (up to the highest order), provided they are of the form (1 + higher order terms) .

Additionally, the following unary operations are available:

  • AddStrand[n, ASeries] adds an empty strand to all the diagrams in the given ASeries after the n'th position.
  • DoubleStrand[n, ASeries] doubles the n'th strand in all the diagrams in the given ASeries.
  • ReverseStrand[n, ASeries] reverses the n'th strand in all the diagrams in the given ASeries.
  • ConnectStrand[i, j, ASeries] is the linear extension of the operation that for each diagram, appends the j'th strand to the end of the i'th one.
  • Reduce[ASeries] returns another ASeries equivalent to the first modulo the 4T relation. This operation may take some time if the relevant chord diagram spaces need to be computed.
  • ReduceFI[ASeries] returns another ASeries equivalent to the first modulo the 4T relation, and the FI relations. As before, this operation may take some time if the relevant chord diagram spaces need to be computed.

All these operations will be put to use in the next section.

Finally, to convert an ASeries back to a human-readable form, use the command: CD[ AS ], where AS is the object to be converted.

Checking the pentagon and hexagon relations

For paranthesized braids, the pentagon and hexagon equations are given by

The Pentagon For Parenthesized Braids.jpg The Hexagons For Parenthesized Braids.jpg
The Pentagon and the Hexagons for Parenthesized Braids

.

Algebraically, these relations can be written as

[Pentagon]
     in     ,


[Hexagons]
     in     .

where is the algebra of chord diagrams on strands modulo the 4-T relations.

Let us check that a proposed pair satisfy these equations, up to the third order. After running through the initialization above, we introduce our candidates as ASeries objects - note that we wish to represent a transposition, while is a trivial permutation:

In[3]:= Phi = ASeries[{1, 2, 3}, 0, 1 + (1/24)*CD[Line[1], Line[2], Line[1, 2]] - (1/24)*CD[Line[2], Line[1], Line[1, 2]], 3] ]
Out[3]= ASeries[{1, 2, 3}, 0, {«JavaObject[vectorSpace.Coefficient]», «JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]», «JavaObject[vectorSpace.Coefficient]»}]
In[4]:= R = ASeries[{2, 1}, 0, 1 + (1/2)CD[Line[1], Line[1]] + (1/8)CD[Line[1, 2],Line[1, 2]] + (1/48)CD[Line[1, 2, 3], Line[1, 2, 3]] ]
Out[4]= ASeries[{2, 1}, 0, {«JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]», «JavaObject[ChordVector]», «JavaObject[ChordVector]»}]

First, we'll check the pentagon equation. Writing the difference of the two sides for ,

In[5]:= AddStrand[0, Phi].DoubleStrand[2, Phi].AddStrand[3, Phi] - DoubleStrand[1, Phi].DoubleStrand[3, Phi]
Out[5]= ASeries[{1,2,3,4}, 0, {«JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]», «JavaObject[ChordVector]»}]

Now we reduce the result modulo the 4T relations, and convert back to CD notation:

In[6]:= CD[Reduce[%]]
Out[6]= 0

Thus our candidate solves the pentagon equation.

Let's also test one of the hexagon equations:

In[7]:= DoubleStrand[1, R] - Phi.AddStrand[0, R].(Phi)^(-1).AddStrand[2, R].Phi
Out[7]= ASeries[{2,3,1}, 0, {«JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]», «JavaObject[ChordVector]»}]

Reducing the result, we see that our choices of and yield a solution to the first hexagon equation.

In[8]:= CD[Reduce[%]]
Out[8]= 0

The second hexagon equation can be verified in a similar fashion, and the result is the same.

Braid Invariants

To come: definition of Z[B[n]], demonstration of Reidemeister moves. For now, reidemeister.nb.

The Unknot

To compute for any knot, including the unknot, we need to extend the definition of to include "caps" and "cups". In addition, framing independence forces us to introduce the FI relation - hence all the formulae in this section take place in the "further reduced" space of chord diagrams. We proceed using the correction term in [1]. To begin, let us choose a pair which solve the pentagon and hexagon equations to fourth degree:

In[9]:= Phi = ASeries[Id[3],0, 1 + CD[Line[1], Line[2], Line[1, 2]]/24 - (7*CD[Line[1], Line[2, 3, 4], Line[1, 2, 3, 4]])/5760 - CD[Line[2], Line[1], Line[1, 2]]/24 + (7*CD[Line[2], Line[1, 3, 4], Line[1, 2, 3, 4]])/1920 - (7*CD[Line[3], Line[1, 2, 4], Line[1, 2, 3, 4]])/1920 + (7*CD[Line[4], Line[1, 2, 3], Line[1, 2, 3, 4]])/5760 + (7*CD[Line[1, 2], Line[3, 4], Line[1, 2, 3, 4]])/5760 - CD[Line[1, 3], Line[2, 4], Line[1, 2, 3, 4]]/640 - CD[Line[1, 4], Line[2, 3], Line[1, 2, 3, 4]]/1152 - CD[Line[2, 3], Line[1, 4], Line[1, 2, 3, 4]]/1152 + (19*CD[Line[2, 4], Line[1, 3], Line[1, 2, 3, 4]])/5760 - (7*CD[Line[3, 4], Line[1, 2], Line[1, 2, 3, 4]])/5760 - CD[Line[1, 2, 3], Line[4], Line[1, 2, 3, 4]]/1440 + CD[Line[1, 2, 4], Line[3], Line[1, 2, 3, 4]]/480 - CD[Line[1, 3, 4], Line[2], Line[1, 2, 3, 4]]/480 + CD[Line[2, 3, 4], Line[1], Line[1, 2, 3, 4]]/1440 ];
In[10]:= R = ASeries[{2,1},0, 1 + CD[Line[1], Line[1]]/2 + CD[Line[1, 2], Line[1, 2]]/8 + CD[Line[1, 2, 3], Line[1, 2, 3]]/48 + CD[Line[1, 2, 3, 4], Line[1, 2, 3, 4]]/384 ];

The definition of involves going up the third strand, down the second, and up the first strand of :

In[11]:= Zinf = ConnectStrand[2,1, ConnectStrand[3,2, ReverseStrand[2,Phi] ] ]
Out[11]= ASeries[{1}, 0, {«JavaObject[vectorSpace.Coefficient]», «JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]», «JavaObject[vectorSpace.Coefficient]», «JavaObject[ChordVector]»}]

The invariant of the unknot is given by closing to a circle; we then reduce and display the result:

In[12]:= ConnectStrand[1, 1, Zinf^(-1)] // ReduceFI // CD
Out[12]= 1 - CD[Circle[1, 2, 1, 2]]/24 - CD[Circle[1, 2, 3, 1, 4, 2, 3, 4]]/360 + CD[Circle[1, 2, 3, 1, 4, 3, 2, 4]]/720 + (7*CD[Circle[1, 2, 3, 4, 1, 2, 3, 4]])/5760

The Kontsevich integral for unframed knots

We can find the Kontsevich integral of any knot K, through the command KontsevichIntegral[R, Phi, K], where R and Phi are ASeries objects as above, and K is a Morse link presentation of a knot (or alternatively any presentation that KnotTheory` knows how to convert to a Morse link presentation). The output, for a knot, is an ASeries object on one circle, whose degree is determined by the degrees of R and Phi.

In these examples, we shall continue to use the pair defined in the previous section.

Here is the Kontsevich integral, up to degree four, of the trefoil:

In[13]:= KontsevichIntegral[R,Phi,Knot[3,1]] // ReduceFI // CD
Out[13]= 1 + (23*CD[Circle[1, 2, 1, 2]])/24 - CD[Circle[1, 2, 3, 1, 2, 3]]/2 + (119*CD[Circle[1, 2, 3, 1, 4, 2, 3, 4]])/360 - (119*CD[Circle[1, 2, 3, 1, 4, 3, 2, 4]])/720 + (247*CD[Circle[1, 2, 3, 4, 1, 2, 3, 4]])/5760

Below is another embedding of the trefoil, and the Kontsevich integral computed on this diagram is the same as that of the first:

The trefoil
In[14]:= trefoil = MorseLink[Cup[1, 2], Cup[2, 3], X[1, Under, Down, Down], X[3, Under, Up, Up], X[2, Over, Down, Up], Cap[4, 3], Cap[2, 1]];
In[16]:= KontsevichIntegral[R,Phi,trefoil] // ReduceFI // CD
Out[16]= 1 + (23*CD[Circle[1, 2, 1, 2]])/24 - CD[Circle[1, 2, 3, 1, 2, 3]]/2 + (119*CD[Circle[1, 2, 3, 1, 4, 2, 3, 4]])/360 - (119*CD[Circle[1, 2, 3, 1, 4, 3, 2, 4]])/720 + (247*CD[Circle[1, 2, 3, 4, 1, 2, 3, 4]])/5760


Performance Issues

We are currently working to improve the performance of this program. For larger computations, it would likely help to increase the maximum heap size available to Java. To do this, type the following into Mathematica before loading the CDinterface.m definitions (step 1 above):

In[1]:= Needs["JLink`"];
In[2]:= InstallJava[CommandLine -> "/path_to_java_runtime/java -Xmx128M"]

This allows Java to use up to 128 megabytes of memory; you may change the number "128" in the parameter "-Xmx128M" to suit your needs. Note that the first line needs to be entered exactly as shown - the funny apostrophe is located next to the "1" key on many keyboards.

References

  • [1] D. Bar-Natan, Non-Associative Tangles. Geometric Topology (proceedings of the Georgia International Topology Conference, W. H. Kazez ed.), 139-183, Amer. Math. Soc. and International Press, Providence, 1997.