\mathfrak{sl}_{3}foam homology calculations
Abstract.
We exhibit a certain infinite family of threestranded quasialternating pretzel knots which are counterexamples to Lobb’s conjecture that the \mathfrak{sl}_{3}–knot concordance invariant s_{3} (suitably normalised) should be equal to the Rasmussen invariant s_{2}. For this family, s_{3}<s_{2}. However, we also find other knots for which s_{3}>s_{2}. The main tool is an implementation of Morrison and Nieh’s algorithm to calculate Khovanov’s \mathfrak{sl}_{3}–foam link homology. Our C++program is fast enough to calculate the integral homology of e.g. the (6,5)–torus knot in six minutes. Furthermore, we propose a potential improvement of the algorithm by gluing subtangles in a more flexible way.
1. Introduction
During the last decade, \mathfrak{sl}_{n}–polynomials were categorified one after the other: beginning, of course, with Khovanov’s categorification of the Jones polynomial [khovanov] using cobordisms, followed by his categorification of the \mathfrak{sl}_{3}–polynomial [khovanovsl3] using foams; and finally, Khovanov and Rozansky’s categorification of the \mathfrak{sl}_{N}–polynomials for arbitrary N [roz] and of the Homflypt–polynomial itself [roz2] (see also Khovanov [khsoergel] and Webster [homflycan]) using matrix factorisations.
All these homologies are completely combinatorial in nature – unlike e.g. the original knot Floer homology – meaning that their definition is in itself a description how to compute them. By hand, this direct way of computation is hardly feasible for any but the smallest knots, and using skein long exact sequences and criteria for thinness is much more efficient (see e.g. a computation of Mackaay and Vaz [terasaka]). On a computer, however, even the straightforward method, as implemented with some tweaks in the program KhoHo [khoho] by Shumakovitch, could already compute the \mathfrak{sl}_{2}–homology of knots with up to ca. 20 crossings. Matrix factorisations, on the other hand, are more reluctant to efficient treatment by a computer. Nevertheless, Carqueville and Murfet [carqueville] wrote a program that is able to compute \mathfrak{sl}_{N}–homology of links with up to six crossings and N\approx 18. Webster’s program [krm2] computes Homflypthomology of short braids, but is largely limited to 3–stranded ones.
Yet it is desirable to be able to compute the Khovanov–Rozansky homologies of much larger knots, since some phenomena require a certain complexity of the knot to occur; see e.g. Hedden and Ording’s 15–crossing knot which demonstrates that the Rasmussen and Floer concordance invariants differ [sneqtau]. Or to mention an extreme example, see Freedman et al. [manandmachine] for a link with 222 crossings whose Rasmussen invariant was worthwhile to compute at the time, because it could have provided a counterexample to the fourdimensional smooth Poincaré conjecture (this approach was later rebuted by Akbulut [akbulut]).
BarNatan’s extension of \mathfrak{sl}_{2}–homology from link diagrams to tangles [tanglescobordisms] (see also Khovanov [khtangles]) led subsequently to a divideandconquer algorithm to compute \mathfrak{sl}_{2}–homology [fastcompu]. The speed of this algorithm depends primarily on the girth of the link diagram: this is the maximal number of intersection points of a horizontal line with the diagram (see e.g. [freedman], and cf. section LABEL:sec:algo for details). An implementation by Green and Morrison called JavaKh [javakh] is able to compute the homology of knots of girth up to 14, e.g. the (8,7)torus knot. Mackaay and Vaz [vazuniverse] and Morrison and Nieh [su] then extended \mathfrak{sl}_{3}–homology to tangles, and the latter describe in detail the ensuing algorithm. In this text, we present an implementation of this algorithm as a C++program called FoamHo [foamho].
The algorithm can be improved by gluing subtangles in a more flexible way, along a subtangle tree instead of one after the other. This leads to the notion of the recursive girth of a link, which replaces the girth as main factor limiting calculation speed. Even though this improvement is not implemented in FoamHo yet, the program is still fast enough to calculate the integral homology, reduced or unreduced, of links with girth up to 10, such as the (6,5)–torus knot. The \mathfrak{sl}_{3}–concordance invariant s_{3}, as defined by Lobb [lobbconcordance] (see also Wu [wu3] and Lobb [lobbonroz]), may (in most cases) be extracted from the \mathfrak{sl}_{3}–homology by means of the spectral sequence converging to the filtered version of homology. This method was used for \mathfrak{sl}_{2}–homology by Freedman et al. [manandmachine]. It does not depend on the conjectured convergence of the spectral sequence on the second page.
The most striking calculatory result obtained with FoamHo concerns this s_{3}–invariant, which is the \mathfrak{sl}_{3}–analogue of the Rasmussen invariant s_{2}. Those two invariants share many properties, e.g. they agree on homogeneous and quasipositive knots, and until now it was not known whether they were actually equal or not (see Lobb [lobbconcordance, Conjectures 1.5, 1.6]).
Conjecture.
Let s_{3} be the \mathfrak{sl}_{3}–concordance invariant, normalised to take the same value as the Rasmussen invariant on the trefoil. If a>b\geq 3, c\geq 2, and a+1\equiv b+1\equiv c\equiv 0\pmod{2}, then the (a,b,c)–pretzel knot P(a,b,c) has s_{3}–invariant
s_{3}(P(a,b,c))=ab+\delta_{c}, 
where \delta_{2}=1 and \delta_{c}=2 for c>2.
This statement is called a “conjecture” since it is established by FoamHocalculations only for small values of a, b and c. In addition, however, we have a prove for the case c>2 which does not rely on computer calculations [lewarkprepare]. See section LABEL:mainproof for further details.
If one appends b>c to the hypotheses of the conjecture, then the (a,b,c)–pretzel knot is quasialternating (see Champanerkar and Kofman [quasialtpretzels] and Greene [greene]), and hence its s_{2}–invariant equals its classical knot signature (see Manolescu and Ozsváth [quasialt]): s_{2}(P(a,b,c))=\sigma(P(a,b,c))=ab. This value of the signature can be easily computed using Göritz matrices and the formula of Gordon and Litherland [gordon]. So for this infinite family of pretzel knots, the s_{2}– and s_{3}–invariant differ, and the latter gives a weaker bound for the slice genus than the former. However, there are knots for which this is different, e.g. s_{3}(12n_{340})=1 and s_{2}(12n_{340})=0.
The rest of the paper is organised as follows: section 2 provides a brief, but essentially selfcontained definition of the \mathfrak{sl}_{3}–foam homology as defined by Khovanov [khovanovsl3], Mackaay and Vaz [vazuniverse], and Morrison and Nieh [su]. We also define reduced homology in the framework of foams. In section LABEL:sec:3.1, we give an account of the divideandconquer algorithm, including the computation of integral homology and the acceleration of the algorithm using a subtangle tree. In section LABEL:sec:3.2, we discuss how to extract s_{3} from the \mathfrak{sl}_{3}homology. Section LABEL:sec:3.3 addresses some particular implementation issues and their resolution in FoamHo, and section LABEL:sec:3.4 presents the usage and characteristics of the program itself. Finally, section LABEL:sec:3.5 states some results of FoamHo calculations, and compares them against previously known results.
Acknowledgements I would like to thank Pedro Vaz and Alexander Shumakovitch for encouraging me to pursue this subject and write a program, LouisHadrien Robert for all the inspiring discussions, and Christian Blanchet for his continuous support and advice. Thanks to Nils Carqueville, Pedro Vaz, Scott Morrison and Christian Blanchet for comments on the first version of the paper.
2. The \mathfrak{sl}_{3}foam homology of tangle diagrams
This section gives a definition of the \mathfrak{sl}_{3}–polynomial and its categorification, the \mathfrak{sl}_{3}–foam homology. Except for the use of a generalised definition of planar algebras (sec. 2.2) to formalise localness, and the definition of reduced homology using foams (sec. LABEL:sec:red), this section contains nothing essentially new. We just review the parts of [khovanovsl3, su] which are relevant to the purpose of this section – which is to provide a selfcontained definition of \mathfrak{sl}_{3}–homology with the objective of calculation in mind. Instead of choking tori we use dots, like Khovanov [khovanovsl3] and Mackaay and Vaz [vazuniverse]. The origin of webs and the \mathfrak{sl}_{N}–polynomials lie in representation theory [RT, kuperberg], an aspect we we will not dwell on.
2.1. The \mathfrak{sl}_{3}–polynomial, naively
The \mathfrak{sl}_{3}–polynomial can be defined by a single skein relation involving only link diagrams. We will instead use the two skein relations (Sk{}^{+}) and (Sk{}^{}), see below, because this allows a categorification using foams. These skein relations involve webs: a closed web is a plane oriented trivalent graph whose every vertex is either a source or a sink, and that may have vertexless circles as additional edges.
A tangle diagram is the generic intersection of a link diagram with a disc; generic means that the disc’s border intersects the diagram’s strands transversely, and does not pass through a crossing. Let us define a map V from the set of smooth isotopy classes of tangle diagrams to the free \mathbb{Z}[q^{\pm 1}]–module on the set of smooth isotopy classes of closed webs. The map V is uniquely determined by the following two local relations, which are interpreted naively for now (i.e. apply these relations to all crossings of the link at once, then expand):
(Sk{}^{})  \displaystyle V\left(\raisebox{6.62pt}{\includegraphics[]{figs/32neg.pdf}}\right)  \displaystyle=q^{2}\cdot V\left(\raisebox{6.62pt}{\includegraphics[]{figs/03% Eqsign.pdf}}\right)q^{3}\cdot V\left(\raisebox{6.62pt}{\includegraphics[]{% figs/02H.pdf}}\right)\qquad\text{and}  
(Sk{}^{+})  \displaystyle V\left(\raisebox{6.62pt}{\includegraphics[]{figs/35pos.pdf}}\right)  \displaystyle=q^{2}\cdot V\left(\raisebox{6.62pt}{\includegraphics[]{figs/03% Eqsign.pdf}}\right)q^{3}\cdot V\left(\raisebox{6.62pt}{\includegraphics[]{% figs/02H.pdf}}\right). 
Next, we define an evaluation \langle\,\cdot\,\rangle of closed webs, called the Kuperberg bracket [kuperberg, jaeger], which associates to a closed web a Laurent polynomial in q. This evaluation is given by the four relations
(C)  \displaystyle\left\langle\raisebox{6.62pt}{\includegraphics[]{figs/101% othercircle.pdf}}\right\rangle=\left\langle\raisebox{6.62pt}{\includegraphics% []{figs/38circle.pdf}}\right\rangle  \displaystyle=(q^{2}+1+q^{2})\cdot\left\langle\raisebox{6.62pt}{% \includegraphics[]{figs/41void.pdf}}\right\rangle,  
(D)  \displaystyle\left\langle\raisebox{6.62pt}{\includegraphics[]{figs/50digonUp% .pdf}}\right\rangle  \displaystyle=(q^{1}+q)\cdot\left\langle\raisebox{6.62pt}{\includegraphics[]% {figs/49straightUp.pdf}}\right\rangle,  
(S)  \displaystyle\left\langle\raisebox{6.62pt}{\includegraphics[]{figs/37% squareOr.pdf}}\right\rangle  \displaystyle=\left\langle\raisebox{6.62pt}{\includegraphics[]{figs/13II.pdf% }}\right\rangle+\left\langle\raisebox{6.62pt}{\includegraphics[]{figs/36II2.% pdf}}\right\rangle\qquad\text{and}  
(U)  \displaystyle\langle W_{1}\sqcup W_{2}\rangle  \displaystyle=\langle W_{1}\rangle\cdot\langle W_{2}\rangle. 
The \mathfrak{sl}_{3}–polynomial, which associates a Laurent polynomial in q to a link diagram, can now be obtained by composing V with \langle\,\cdot\,\rangle, and identifying the empty web with 1. Categorifying this construction is going to yield the \mathfrak{sl}_{3}–homology. However, it is advantageous to formalise the localness of the relations (Sk{}^{\pm}, C, D, S) before proceeding.
2.2. Planar algebras
While 2–categories do give a framework for webs and foams, they make sense only if one aims at interpreting webs as maps between oriented 0–manifolds; this aspect is not essential to the calculation of \mathfrak{sl}_{3}–homology, and so we use planar algebras instead. Planar algebras were introduced by Jones [jones] to identify subfactors. They were subsequently used to describe locally defined knot invariants such as the Jones polynomial. BarNatan [tanglescobordisms] introduced a categorified version of planar algebras called canopolis to describe Khovanov homology, a method adaptable to \mathfrak{sl}_{3}–homology [su]. We will use a slightly generalised version of planar algebras, working over arbitrary monoidal categories instead of over the category of vector spaces over a fixed field. In this way, a canopolis is a planar algebra as well.
Let B_{0}\subset\mathbb{R}^{2} be a closed disc, and B_{1},\ldots B_{n}\subset B_{0}^{\circ} be n pairwisely disjoint smaller closed discs. Punching out these discs yields a disc with holes, H=B_{0}\setminus\bigcup_{i=1}^{n}B_{i}^{\circ}. Let M be a compact oriented onedimensional smooth submanifold of H with M\cap\partial H=\partial M; in other words, M is a collection of circles and of intervals whose endpoints lie on the boundary of the big discs or one of the smaller discs. An input diagram consists of M, H, and on each boundary component of H a base point which is not in \partial M. We consider input diagrams up to smooth isotopy, in the course of which boundary points of M may not cross the base points.
For every i\in\{0,\ldots n\}, the intersection M\cap B_{i} is a finite set; at each of its points, the corresponding interval of M is either oriented towards the boundary (+ for i>0,  for i=0), or away from it ( for i>0, + for i=0). Moreover, these points have a canonical order, given by starting from the base point and walking once around the circle in the counterclockwise direction. Thus the isotopy type of M\cap B_{i} may be written as a signword \varepsilon_{i}, i.e. a word over the alphabet \{+,\}. The boundary of H is the tuple (\varepsilon_{0},\ldots\varepsilon_{n}).
Now suppose (M,H) and (M^{\prime},H^{\prime}) are two input diagrams, such that \varepsilon_{0}^{\prime}=\varepsilon_{i} for a fixed k\in\{1,\ldots n\}. Then (M^{\prime},H^{\prime}) may be shrunk and glued into B_{k}, base point on base point and boundary points on boundary points, resulting in a new input diagram with n+n^{\prime}1 holes.
Let I be a subset of the set of all signwords. Let \mathsf{C} be a monoidal category, in the easiest case just the category \mathsf{Set} of sets, and in the classical case the category of vector spaces over a fixed field. Then a planar algebra \mathcal{P} over I and \mathsf{C} consists of the following data:

For each \varepsilon\in I, an object \mathcal{P}_{\varepsilon}\in\mathsf{C}.

For each input diagram H with boundary (\varepsilon_{0},\ldots\varepsilon_{n}) such that \forall i:\varepsilon_{i}\in I, a \mathsf{C}–morphism
\mathcal{P}_{H}:\bigotimes_{i=1}^{n}\mathcal{P}_{\varepsilon_{i}}\to\mathcal{P% }_{\varepsilon_{0}}.
This data is required to satisfy the following axioms:

Suppose H is an input diagram with n=1 and \varepsilon_{0}=\varepsilon_{1} that consists only of appropriately oriented radial strands. Then \mathcal{P}_{H}:\mathcal{P}_{\varepsilon_{0}}\to\mathcal{P}_{\varepsilon_{1}} is the identity morphism.

Let H and H^{\prime} be two input diagrams with boundary (\varepsilon_{0},\ldots\varepsilon_{n}) and (\varepsilon^{\prime}_{0},\ldots\varepsilon^{\prime}_{n}), respectively. Suppose that for a fixed k\in\{1,\ldots n\}, \varepsilon^{\prime}_{0}=\varepsilon_{k}. Let H^{\prime\prime} be the input diagram obtained from gluing H^{\prime} into the k–th hole of H. Then the morphism \mathcal{P}_{H^{\prime\prime}} is equal to the composition of the morphisms \mathcal{P}_{H} and \mathcal{P}_{H^{\prime}}, i.e.
\mathcal{P}_{H^{\prime\prime}}=\mathcal{P}_{H}\circ\bigl{(}\operatorname{id}_{% \bigotimes_{i=1}^{k1}\mathcal{P}_{\varepsilon_{i}}}\otimes\mathcal{P}_{H^{% \prime}}\otimes\operatorname{id}_{\bigotimes_{i=k+1}^{n}\mathcal{P}_{% \varepsilon_{i}}}\bigr{)}.
If F:\mathsf{C}\to\mathsf{C}^{\prime} is a monoidal functor, one may define the planar algebra F(\mathcal{P}) over I and \mathsf{C}^{\prime} by F(\mathcal{P})_{\varepsilon}=F(\mathcal{P}_{\varepsilon}) and
F(\mathcal{P})_{H}:\bigotimes_{i=1}^{n}F(\mathcal{P})_{\varepsilon_{i}}\to F(% \mathcal{P})_{\varepsilon_{0}} 
to be the composition F(\mathcal{P}_{H})\circ\gamma, where \gamma is the natural transformation
\bigotimes_{i=1}^{n}F(\mathcal{P}_{\varepsilon_{i}})\to F\Bigl{(}\bigotimes_{i% =1}^{n}\mathcal{P}_{\varepsilon_{i}}\Bigr{)} 
which comes with the functor F because it is monoidal. Examples of this construction include, for a planar algebra \mathcal{P} over \mathsf{Set}, replacing for all \varepsilon\in I the set \mathcal{P}_{\varepsilon} by the free R–modules for some ring R by means of applying the leftadjoint of the forgetful functor from the category of R–modules to \mathsf{Set}; or the quotient \mathcal{P} by an equivalence relation on \mathcal{P}, by which we mean a collection of equivalence relations on all the \mathcal{P}_{\varepsilon} which respect the planar algebra structure.
Suppose \mathcal{P} and \mathcal{P}^{\prime} are planar algebras over I, I^{\prime} and \mathsf{C}, \mathsf{C}^{\prime},
respectively, such that I\subset I^{\prime}. A planar algebra morphism from \mathcal{P} to
\mathcal{P}^{\prime} consists of a functor F:\mathsf{C}^{\prime}\to\mathsf{C} and an I–indexed collection of
\mathsf{C}–morphisms \mathcal{P}_{\varepsilon}\to F(\mathcal{P}^{\prime}_{\varepsilon})
which respect the planar algebra structure, i.e. commute with the maps \mathcal{P}_{H} and
\mathcal{P}^{\prime}_{H}. The functor F will typically be a forgetful functor.
Tangle diagrams with a base point on the boundary, considered – as input diagrams – up to smooth isotopy, form a planar algebra \mathcal{T} over \mathsf{Set} and the set I_{0} of signwords \varepsilon_{1}\cdots\varepsilon_{m} with \sum_{j=1}^{m}\varepsilon_{j}=0. Let us elaborate this example: the planar algebra \mathcal{T} associates to a signword \varepsilon with an equal number of both signs the (countably infinite) set \mathcal{T}_{\varepsilon} of all tangles diagrams with boundary \varepsilon, modulo smooth isotopy; and to an input diagram H with n holes (see e.g. fig. 2) a function which maps a tuple of n tangle diagrams with appropriate boundaries to a new, bigger tangle diagram, by gluing each of the n tangle diagrams into the corresponding hole of H. One easily verifies that the planar algebra axioms are satisfied.
2.3. The \mathfrak{sl}_{3}–polynomial in the context of planar algebras
Suppose the unit circle intersects a closed web generically; as in the definition of tangle diagrams, this means that the circle intersects the edges of the closed web transversely, and does not pass through a vertex. Then the intersection of the closed web with the unit disc is called a web. As for input diagrams, we fix a base point on the boundary of a web, and encode the isotopy type of the boundary by a signword, in which + stands for a strand oriented away from the boundary,  for a strand oriented towards it. Note that a signword \varepsilon_{1}\cdots\varepsilon_{m} is the boundary of some web if and only if \sum_{j=1}^{m}\varepsilon_{j}\equiv 0\pmod{3}. Denote by I_{3} the set of all such signwords. Webs, up to smooth isotopy, form a planar algebra \mathcal{W} over I_{3} and \mathsf{Set}.
Let \mathcal{W}^{q}_{\varepsilon} be the free \mathbb{Z}[q^{\pm 1}]–module on \mathcal{W}_{\varepsilon}. Then \mathcal{W}^{q} forms a planar algebra over I_{3} and the category of \mathbb{Z}[q^{\pm 1}]–modules. In \mathcal{W}^{q}, we may interpret the relations (C), (D) and (S) as relations on \mathcal{W}^{q}_{\varnothing}, \mathcal{W}^{q}_{+} or \mathcal{W}^{q}_{+} and \mathcal{W}^{q}_{++} or \mathcal{W}^{q}_{++}, respectively. Denote by \mathcal{W}^{qr} the quotient by the generated equivalence relation. In this context, the relation (U) is implied by the compatibility of the equivalence relation with the planar algebra structure.
Let W,W^{\prime} be two webs and \varphi:W\to W^{\prime} a diffeomorphism – just of the webs themselves, not taking into account the ambient discs. We call \varphi a web diffeomorphism if it preserves the order of the boundary points, and the cyclic ordering of edges around vertices. Note that in the quotient \mathcal{W}^{qr}, the equivalence class of a web is already determined by its web diffeomorphism type. In \mathcal{W}, this distinction is slightly coarser than the isotopy type, since e.g. web diffeomorphisms do not take the orientation and relative position of closed components into account.
The two skein relations (Sk{}^{\pm}) determine a unique morphism V:\mathcal{T}\to\mathcal{W}^{q} of planar algebras, \mathcal{T} being the planar algebra of tangles. A link diagram L may be seen as element of \mathcal{T}_{\varnothing}. The equivalence class [V(L)]\in\mathcal{W}^{qr} has a unique member that is a \mathbb{Z}[q^{\pm 1}]–multiple of the empty web. The coefficient equals the \mathfrak{sl}_{3}–polynomial of the link diagram. Reidemeister invariance may be shown by proving that the tangle diagrams with two, four and six boundary points corresponding to the Reidemeister moves I, II and III have in each case the same image under V.
2.4. The \mathfrak{sl}_{3}–homology in the context of a special kind of planar algebras: canopolis
To categorify the \mathfrak{sl}_{3}–polynomial, one needs to understand foams, the cobordisms of webs. Suppose that for all i\in\{1,2,3\}, \Sigma^{i} are compact oriented smooth (generally not connected) 2–manifolds with m boundary components S^{i}_{1},\ldots,S^{i}_{m} each. Let \varphi_{j}:S^{1}_{j}\to S^{2}_{j} and \psi_{j}:S^{1}_{j}\to S^{3}_{j} be orientation preserving diffeomorphisms. Consider the quotient of \Sigma^{1}\sqcup\Sigma^{2}\sqcup\Sigma^{3} by the equivalence relation generated by [x]=[\varphi_{j}(x)]=[\psi_{j}(x)] for all j. The images of the S^{1}_{j} in the quotient are called singular circles, and the images of connected components of the \Sigma^{i} are called facets. There are three facets adjacent to each singular circle. Associate a nonnegative integer to each facet. Such an integer d will graphically be represented by drawing d dots on the facet, which may roam the facet freely, but may not cross a singular circle. Such a quotient, together with the dots and with a choice of cyclic ordering of the three facets around each singular circle is called a prefoam.
Now consider a smooth embedding of a prefoam into \mathbb{R}^{3}, i.e. an embedding that is smooth on the facets and on the singular circles. Such an embedding induces cyclic orderings of the facets around each singular circle by the lefthand rule (see figure 3).
If these cyclic orderings agree with those given by the prefoam, the image of the embedding is called a closed foam. Under the following conditions, the intersection of a closed foam with the cylinder B\times[0,1]=\{(x,y,z)\mid x^{2}+y^{2}\leq 1\text{ and }0\leq z\leq 1\} is called a foam:

The boundary of the cylinder intersects the facets and singular circles of the closed foam transversely.

The side (\partial B)\times[0,1] of the cylinder intersects the closed foam in finitely many vertical lines, and is disjoint from all singular circles.

The intersections with the top and bottom of the cylinder are webs.

The base point of the top and the base point of the bottom web have the same x– and y–coordinates.
We consider foams up to isotopies which, on the side of the cylinder, do not depend on the z–coordinate. A connected component of the intersection of a singular circle with the cylinder is called a singular edge. The tangle diagrams on the bottom of the cylinder is called domain of the foam, and the codomain of the foam is defined as the tangle diagram on the top of the cylinder, with the orientation of each edge reversed. As usual, let \chi denote the Euler characteristic. Then the degree of a foam f is defined by
\deg f=\chi(\text{domain of }f)+\chi(\text{codomain of }f)+2(\text{total % number of dots on }f)2\chi(f). 
Foams can be glued in two ways: if the domain of one foam agrees with the codomain of another, by stacking them on top of each other. Or, by gluing them into the cylindrical holes of a thickened input diagram. The degree is additive with respect to both of these operations.
Webs with a fixed boundary and the foams between them thus constitute a graded category, i.e. a category whose morphisms have an integral rank which is additive under composition. Let us define a planar algebra \mathcal{W}^{c} over I_{3} and the category \mathsf{GCat} of small graded categories: ^{1}^{1}1The c superscript stands for categorification. to \varepsilon\in I_{3}, associate the category whose set of objects is \mathcal{W}_{\varepsilon}, and whose morphisms W\to W^{\prime} between two webs W,W^{\prime}\in\mathcal{W}_{\varepsilon} are the foams with domain W and codomain W^{\prime}. If H is a planar input diagram, then \mathcal{W}^{c}_{H} is the functor that acts as \mathcal{W}_{H} on the objects, and glues foams into a thickened version of H.
Next, \mathcal{W}^{cq} may be constructed by applying a functor from \mathsf{GCat} to \mathsf{ACat}, the category of small additive categories: replace webs by \mathbb{Z}[q^{\pm 1}]–linear combinations of webs, and foams by matrices of \mathbb{Z}–linear combination of foams, where morphisms from q^{\alpha}\cdot W to q^{\beta}\cdot W^{\prime} are the foams with degree \beta\alpha. So the categories \mathcal{W}^{cq}_{\varepsilon} are not graded, but have instead a shift operator for their objects. In this planar algebra, consider the following morphisms:
(C{}^{c})  \displaystyle\xymatrix@=5cm@M=3mm{{}{}{}{}{}{}{}{}{}{}{}{}\xy@@ix@{{{<*h\hbox{}}}}} 