<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://drorbn.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Andy</id>
	<title>Drorbn - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://drorbn.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Andy"/>
	<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=Special:Contributions/Andy"/>
	<updated>2026-05-04T19:15:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=7325</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=7325"/>
		<updated>2008-12-01T16:28:59Z</updated>

		<summary type="html">&lt;p&gt;Andy: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{06-1350/Navigation}}&lt;br /&gt;
&lt;br /&gt;
For a condensed version of this page, check [[06-1350/Syzygies in Asymptote in Brief]].&lt;br /&gt;
&lt;br /&gt;
===Disclaimer===&lt;br /&gt;
These instructions (and the program they describe) are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
To use the syzygy script, you need to have a working version of Asymptote.  Asymptote is installed on coxeter.  To install on another computer, see [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instructions on how to run a script in Asymptote to produce a picture.  You should also have (or install) a variant of TeX on your system, such as MiKTeX, so that Asymptote can typeset labels.  The &amp;lt;tt&amp;gt;syzygy&amp;lt;/tt&amp;gt; package is now part of the standard Asymptote distribution.&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file, say &amp;lt;code&amp;gt;mybraid.asy&amp;lt;/code&amp;gt; and run with Asymptote, the result is a picture:&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
====Drawing====&lt;br /&gt;
To define a relation, we first define two braids, and then stick them into a &amp;lt;code&amp;gt;Relation&amp;lt;/code&amp;gt; structure.  The below script generates an R3 relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file and run, this draws the two sides of the relation.  If TeX is installed, Asymptote will also put a lovely equals sign, typeset by TeX, between the two figures.&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
====Outputting Equations====&lt;br /&gt;
We can also get useful equations out of the relation.  The method &amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; will produce a string that is the formula for the relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This string can be written out to the standard output by &amp;lt;code&amp;gt;write(r3.toFormula())&amp;lt;/code&amp;gt;.  It can be written to a file by &amp;lt;code&amp;gt;file f=output(&amp;quot;filename.txt&amp;quot;); write(f, r3.toFormula())&amp;lt;/code&amp;gt;. The string is formatted so it can be put into TeX or a wiki page using math mode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The method &amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version of the relation that can be used in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few relations, such as &amp;lt;code&amp;gt;r3&amp;lt;/code&amp;gt;, are already defined in &amp;lt;code&amp;gt;syzygy.asy&amp;lt;/code&amp;gt; but more should be added.&lt;br /&gt;
&lt;br /&gt;
====Applying====&lt;br /&gt;
Now that we have relations, we can apply them to bigger braids.  Let&#039;s start with the braid in the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
Braid b;&lt;br /&gt;
b.n=4;&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,1);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(phi,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbstart.png|center]]&lt;br /&gt;
&lt;br /&gt;
After skipping the lowest knot, we can apply R3 to the next three knots:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid bb=apply(r3, b, 1, 0);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
here &amp;lt;code&amp;gt;apply(r, b, k, n)&amp;lt;/code&amp;gt; means we are applying the relation &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; to the braid &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; at the place in the braid found by counting &amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt; components up from the bottom component and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; strands in from the leftmost strand.  &amp;lt;code&amp;gt;apply&amp;lt;/code&amp;gt; does not modify the original braid, but returns the result of applying the relation (stored here as &amp;lt;code&amp;gt;bb&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbnext.png|center]]&lt;br /&gt;
&lt;br /&gt;
This went from the left hand side of the relation to the right hand side.  To apply a relation in reverse, simply prefix it by a minus sign.  For example &amp;lt;code&amp;gt;apply(-r3, bb, 1, 0)&amp;lt;/code&amp;gt; will yield a braid equivalent to our original.  When applying a relation, the script first checks that the one side of the relation matches that portion of the braid, and will give a (somewhat cryptic) error if the relation cannot be applied.&lt;br /&gt;
&lt;br /&gt;
In our braids, the components are placed from bottom to top in a fixed order.  Sometimes when building syzygies, it is neccessary to swap the order that these components occur.  This is done by the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; method.  For instance, starting from &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;, we can swap the two bottom crossings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid swapped=b.swap(0,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbswap.png|center]]&lt;br /&gt;
&lt;br /&gt;
Remember that components are ordered from bottom to top, starting at 0.  Again, the script checks to make sure the swap is valid (ie. changing the order of the two components, doesn&#039;t actually change the knot) and will issue an error if it isn&#039;t.&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
One could manually apply relations and swaps, and make a whole bunch of braids, but it would be annoying to keep track of them all.  Thankfully, the &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure does that for us.  For example, here is the complete code for the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the result&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to give the formulas for the syzygies.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure assumes that after the last application of a relation, the braid is in the same form as the start, so it won&#039;t draw the last braid.  This is annoying when building a syzygy, so it can be turned off by  &amp;lt;code&amp;gt;pb.cyclic=false;&amp;lt;/code&amp;gt;  If you set &amp;lt;code&amp;gt;bp.showall=true;&amp;lt;/code&amp;gt; the syzygy will draw all changes to the braid, including swaps.  Finally, setting &amp;lt;code&amp;gt;bp.number=true;&amp;lt;/code&amp;gt; will print numbers on the diagrams so you can follow them around.&lt;br /&gt;
&lt;br /&gt;
===Conclusion===&lt;br /&gt;
Example syzygyies and the latest version of the script can be found in the syzygy directory on the course Subversion repository [http://katlas.math.toronto.edu/svn/06-1350/syzygy/trunk/syzygy/].  Please contact me if you have any questions or suggestions.  Good luck and happy syzyging!&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3149</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3149"/>
		<updated>2006-12-09T17:53:24Z</updated>

		<summary type="html">&lt;p&gt;Andy: /* Conclusion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{06-1350/Navigation}}&lt;br /&gt;
&lt;br /&gt;
For a condensed version of this page, check [[06-1350/Syzygies in Asymptote in Brief]].&lt;br /&gt;
&lt;br /&gt;
===Disclaimer===&lt;br /&gt;
These instructions (and the program they describe) are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
To use the syzygy script, first install [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instructions on how to run a script in Asymptote to produce a picture.  Once installed, download [http://katlas.math.toronto.edu/svn/06-1350/syzygy/trunk/syzygy/syzygy.asy syzygy.asy] and put it in a directory where Asymptote can find it.  You should also have (or install) a variant of TeX on your system, such as MiKTeX, so that Asymptote can typeset labels.&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file, say &amp;lt;code&amp;gt;mybraid.asy&amp;lt;/code&amp;gt; and run with Asymptote, the result is a picture:&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
====Drawing====&lt;br /&gt;
To define a relation, we first define two braids, and then stick them into a &amp;lt;code&amp;gt;Relation&amp;lt;/code&amp;gt; structure.  The below script generates an R3 relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file and run, this draws the two sides of the relation.  If TeX is installed, Asymptote will also put a lovely equals sign, typeset by TeX, between the two figures.&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
====Outputting Equations====&lt;br /&gt;
We can also get useful equations out of the relation.  The method &amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; will produce a string that is the formula for the relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This string can be written out to the standard output by &amp;lt;code&amp;gt;write(r3.toFormula())&amp;lt;/code&amp;gt;.  It can be written to a file by &amp;lt;code&amp;gt;file f=output(&amp;quot;filename.txt&amp;quot;); write(f, r3.toFormula())&amp;lt;/code&amp;gt;. The string is formatted so it can be put into TeX or a wiki page using math mode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The method &amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version of the relation that can be used in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few relations, such as &amp;lt;code&amp;gt;r3&amp;lt;/code&amp;gt;, are already defined in &amp;lt;code&amp;gt;syzygy.asy&amp;lt;/code&amp;gt; but more should be added.&lt;br /&gt;
&lt;br /&gt;
====Applying====&lt;br /&gt;
Now that we have relations, we can apply them to bigger braids.  Let&#039;s start with the braid in the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
Braid b;&lt;br /&gt;
b.n=4;&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,1);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(phi,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbstart.png|center]]&lt;br /&gt;
&lt;br /&gt;
After skipping the lowest knot, we can apply R3 to the next three knots:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid bb=apply(r3, b, 1, 0);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
here &amp;lt;code&amp;gt;apply(r, b, k, n)&amp;lt;/code&amp;gt; means we are applying the relation &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; to the braid &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; at the place in the braid found by counting &amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt; components up from the bottom component and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; strands in from the leftmost strand.  &amp;lt;code&amp;gt;apply&amp;lt;/code&amp;gt; does not modify the original braid, but returns the result of applying the relation (stored here as &amp;lt;code&amp;gt;bb&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbnext.png|center]]&lt;br /&gt;
&lt;br /&gt;
This went from the left hand side of the relation to the right hand side.  To apply a relation in reverse, simply prefix it by a minus sign.  For example &amp;lt;code&amp;gt;apply(-r3, bb, 1, 0)&amp;lt;/code&amp;gt; will yield a braid equivalent to our original.  When applying a relation, the script first checks that the one side of the relation matches that portion of the braid, and will give a (somewhat cryptic) error if the relation cannot be applied.&lt;br /&gt;
&lt;br /&gt;
In our braids, the components are placed from bottom to top in a fixed order.  Sometimes when building syzygies, it is neccessary to swap the order that these components occur.  This is done by the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; method.  For instance, starting from &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;, we can swap the two bottom crossings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid swapped=b.swap(0,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbswap.png|center]]&lt;br /&gt;
&lt;br /&gt;
Remember that components are ordered from bottom to top, starting at 0.  Again, the script checks to make sure the swap is valid (ie. changing the order of the two components, doesn&#039;t actually change the knot) and will issue an error if it isn&#039;t.&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
One could manually apply relations and swaps, and make a whole bunch of braids, but it would be annoying to keep track of them all.  Thankfully, the &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure does that for us.  For example, here is the complete code for the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the result&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to give the formulas for the syzygies.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure assumes that after the last application of a relation, the braid is in the same form as the start, so it won&#039;t draw the last braid.  This is annoying when building a syzygy, so it can be turned off by  &amp;lt;code&amp;gt;pb.cyclic=false;&amp;lt;/code&amp;gt;  If you set &amp;lt;code&amp;gt;bp.showall=true;&amp;lt;/code&amp;gt; the syzygy will draw all changes to the braid, including swaps.  Finally, setting &amp;lt;code&amp;gt;bp.number=true;&amp;lt;/code&amp;gt; will print numbers on the diagrams so you can follow them around.&lt;br /&gt;
&lt;br /&gt;
===Conclusion===&lt;br /&gt;
Example syzygyies and the latest version of the script can be found in the syzygy directory on the course Subversion repository [[http://katlas.math.toronto.edu/svn/06-1350/syzygy/trunk/syzygy/]].  Please contact me if you have any questions or suggestions.  Good luck and happy syzyging!&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3148</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3148"/>
		<updated>2006-12-09T17:53:02Z</updated>

		<summary type="html">&lt;p&gt;Andy: Changed link to SVN.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{06-1350/Navigation}}&lt;br /&gt;
&lt;br /&gt;
For a condensed version of this page, check [[06-1350/Syzygies in Asymptote in Brief]].&lt;br /&gt;
&lt;br /&gt;
===Disclaimer===&lt;br /&gt;
These instructions (and the program they describe) are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
To use the syzygy script, first install [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instructions on how to run a script in Asymptote to produce a picture.  Once installed, download [http://katlas.math.toronto.edu/svn/06-1350/syzygy/trunk/syzygy/syzygy.asy syzygy.asy] and put it in a directory where Asymptote can find it.  You should also have (or install) a variant of TeX on your system, such as MiKTeX, so that Asymptote can typeset labels.&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file, say &amp;lt;code&amp;gt;mybraid.asy&amp;lt;/code&amp;gt; and run with Asymptote, the result is a picture:&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
====Drawing====&lt;br /&gt;
To define a relation, we first define two braids, and then stick them into a &amp;lt;code&amp;gt;Relation&amp;lt;/code&amp;gt; structure.  The below script generates an R3 relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file and run, this draws the two sides of the relation.  If TeX is installed, Asymptote will also put a lovely equals sign, typeset by TeX, between the two figures.&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
====Outputting Equations====&lt;br /&gt;
We can also get useful equations out of the relation.  The method &amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; will produce a string that is the formula for the relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This string can be written out to the standard output by &amp;lt;code&amp;gt;write(r3.toFormula())&amp;lt;/code&amp;gt;.  It can be written to a file by &amp;lt;code&amp;gt;file f=output(&amp;quot;filename.txt&amp;quot;); write(f, r3.toFormula())&amp;lt;/code&amp;gt;. The string is formatted so it can be put into TeX or a wiki page using math mode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The method &amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version of the relation that can be used in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few relations, such as &amp;lt;code&amp;gt;r3&amp;lt;/code&amp;gt;, are already defined in &amp;lt;code&amp;gt;syzygy.asy&amp;lt;/code&amp;gt; but more should be added.&lt;br /&gt;
&lt;br /&gt;
====Applying====&lt;br /&gt;
Now that we have relations, we can apply them to bigger braids.  Let&#039;s start with the braid in the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
Braid b;&lt;br /&gt;
b.n=4;&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,1);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(phi,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbstart.png|center]]&lt;br /&gt;
&lt;br /&gt;
After skipping the lowest knot, we can apply R3 to the next three knots:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid bb=apply(r3, b, 1, 0);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
here &amp;lt;code&amp;gt;apply(r, b, k, n)&amp;lt;/code&amp;gt; means we are applying the relation &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; to the braid &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; at the place in the braid found by counting &amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt; components up from the bottom component and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; strands in from the leftmost strand.  &amp;lt;code&amp;gt;apply&amp;lt;/code&amp;gt; does not modify the original braid, but returns the result of applying the relation (stored here as &amp;lt;code&amp;gt;bb&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbnext.png|center]]&lt;br /&gt;
&lt;br /&gt;
This went from the left hand side of the relation to the right hand side.  To apply a relation in reverse, simply prefix it by a minus sign.  For example &amp;lt;code&amp;gt;apply(-r3, bb, 1, 0)&amp;lt;/code&amp;gt; will yield a braid equivalent to our original.  When applying a relation, the script first checks that the one side of the relation matches that portion of the braid, and will give a (somewhat cryptic) error if the relation cannot be applied.&lt;br /&gt;
&lt;br /&gt;
In our braids, the components are placed from bottom to top in a fixed order.  Sometimes when building syzygies, it is neccessary to swap the order that these components occur.  This is done by the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; method.  For instance, starting from &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;, we can swap the two bottom crossings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid swapped=b.swap(0,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbswap.png|center]]&lt;br /&gt;
&lt;br /&gt;
Remember that components are ordered from bottom to top, starting at 0.  Again, the script checks to make sure the swap is valid (ie. changing the order of the two components, doesn&#039;t actually change the knot) and will issue an error if it isn&#039;t.&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
One could manually apply relations and swaps, and make a whole bunch of braids, but it would be annoying to keep track of them all.  Thankfully, the &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure does that for us.  For example, here is the complete code for the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the result&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to give the formulas for the syzygies.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure assumes that after the last application of a relation, the braid is in the same form as the start, so it won&#039;t draw the last braid.  This is annoying when building a syzygy, so it can be turned off by  &amp;lt;code&amp;gt;pb.cyclic=false;&amp;lt;/code&amp;gt;  If you set &amp;lt;code&amp;gt;bp.showall=true;&amp;lt;/code&amp;gt; the syzygy will draw all changes to the braid, including swaps.  Finally, setting &amp;lt;code&amp;gt;bp.number=true;&amp;lt;/code&amp;gt; will print numbers on the diagrams so you can follow them around.&lt;br /&gt;
&lt;br /&gt;
===Conclusion===&lt;br /&gt;
Example syzygyies and the last version of the script can be found in the syzygy directory on the course Subversion repository [[http://katlas.math.toronto.edu/svn/06-1350/syzygy/trunk/syzygy/]].  Please contact me if you have any questions or suggestions.  Good luck and happy syzyging!&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3147</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3147"/>
		<updated>2006-12-09T17:48:30Z</updated>

		<summary type="html">&lt;p&gt;Andy: Changed syzygy.asy link to the SVN repository.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{06-1350/Navigation}}&lt;br /&gt;
&lt;br /&gt;
For a condensed version of this page, check [[06-1350/Syzygies in Asymptote in Brief]].&lt;br /&gt;
&lt;br /&gt;
===Disclaimer===&lt;br /&gt;
These instructions (and the program they describe) are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
To use the syzygy script, first install [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instructions on how to run a script in Asymptote to produce a picture.  Once installed, download [http://katlas.math.toronto.edu/svn/06-1350/syzygy/trunk/syzygy/syzygy.asy syzygy.asy] and put it in a directory where Asymptote can find it.  You should also have (or install) a variant of TeX on your system, such as MiKTeX, so that Asymptote can typeset labels.&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file, say &amp;lt;code&amp;gt;mybraid.asy&amp;lt;/code&amp;gt; and run with Asymptote, the result is a picture:&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
====Drawing====&lt;br /&gt;
To define a relation, we first define two braids, and then stick them into a &amp;lt;code&amp;gt;Relation&amp;lt;/code&amp;gt; structure.  The below script generates an R3 relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file and run, this draws the two sides of the relation.  If TeX is installed, Asymptote will also put a lovely equals sign, typeset by TeX, between the two figures.&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
====Outputting Equations====&lt;br /&gt;
We can also get useful equations out of the relation.  The method &amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; will produce a string that is the formula for the relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This string can be written out to the standard output by &amp;lt;code&amp;gt;write(r3.toFormula())&amp;lt;/code&amp;gt;.  It can be written to a file by &amp;lt;code&amp;gt;file f=output(&amp;quot;filename.txt&amp;quot;); write(f, r3.toFormula())&amp;lt;/code&amp;gt;. The string is formatted so it can be put into TeX or a wiki page using math mode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The method &amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version of the relation that can be used in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few relations, such as &amp;lt;code&amp;gt;r3&amp;lt;/code&amp;gt;, are already defined in &amp;lt;code&amp;gt;syzygy.asy&amp;lt;/code&amp;gt; but more should be added.&lt;br /&gt;
&lt;br /&gt;
====Applying====&lt;br /&gt;
Now that we have relations, we can apply them to bigger braids.  Let&#039;s start with the braid in the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
Braid b;&lt;br /&gt;
b.n=4;&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,1);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(phi,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbstart.png|center]]&lt;br /&gt;
&lt;br /&gt;
After skipping the lowest knot, we can apply R3 to the next three knots:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid bb=apply(r3, b, 1, 0);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
here &amp;lt;code&amp;gt;apply(r, b, k, n)&amp;lt;/code&amp;gt; means we are applying the relation &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; to the braid &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; at the place in the braid found by counting &amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt; components up from the bottom component and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; strands in from the leftmost strand.  &amp;lt;code&amp;gt;apply&amp;lt;/code&amp;gt; does not modify the original braid, but returns the result of applying the relation (stored here as &amp;lt;code&amp;gt;bb&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbnext.png|center]]&lt;br /&gt;
&lt;br /&gt;
This went from the left hand side of the relation to the right hand side.  To apply a relation in reverse, simply prefix it by a minus sign.  For example &amp;lt;code&amp;gt;apply(-r3, bb, 1, 0)&amp;lt;/code&amp;gt; will yield a braid equivalent to our original.  When applying a relation, the script first checks that the one side of the relation matches that portion of the braid, and will give a (somewhat cryptic) error if the relation cannot be applied.&lt;br /&gt;
&lt;br /&gt;
In our braids, the components are placed from bottom to top in a fixed order.  Sometimes when building syzygies, it is neccessary to swap the order that these components occur.  This is done by the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; method.  For instance, starting from &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;, we can swap the two bottom crossings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid swapped=b.swap(0,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbswap.png|center]]&lt;br /&gt;
&lt;br /&gt;
Remember that components are ordered from bottom to top, starting at 0.  Again, the script checks to make sure the swap is valid (ie. changing the order of the two components, doesn&#039;t actually change the knot) and will issue an error if it isn&#039;t.&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
One could manually apply relations and swaps, and make a whole bunch of braids, but it would be annoying to keep track of them all.  Thankfully, the &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure does that for us.  For example, here is the complete code for the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the result&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to give the formulas for the syzygies.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure assumes that after the last application of a relation, the braid is in the same form as the start, so it won&#039;t draw the last braid.  This is annoying when building a syzygy, so it can be turned off by  &amp;lt;code&amp;gt;pb.cyclic=false;&amp;lt;/code&amp;gt;  If you set &amp;lt;code&amp;gt;bp.showall=true;&amp;lt;/code&amp;gt; the syzygy will draw all changes to the braid, including swaps.  Finally, setting &amp;lt;code&amp;gt;bp.number=true;&amp;lt;/code&amp;gt; will print numbers on the diagrams so you can follow them around.&lt;br /&gt;
&lt;br /&gt;
===Conclusion===&lt;br /&gt;
Example syzygyies can be found at my [[http://www.math.utoronto.ca/andy/ lame homepage]].  Please contact me if you have any questions or suggestions.  Good luck and happy syzyging!&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3067</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3067"/>
		<updated>2006-12-05T22:35:42Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R2====&lt;br /&gt;
The following version of R2 was the easiest to use to build my [[media:06-1350-PhiAroundPhi.png|original &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; syzygy]]:  &lt;br /&gt;
[[Image:06-1350-R2-weird.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;1 = (123)^\star B^- (132)^\star B^+.&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_2(x_1,x_2,x_3) =  - b^-(x_1,x_2,x_3) - b^+(x_1,x_3,x_2).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R4====&lt;br /&gt;
To establish the syzygy below, I needed two versions of R4. First: &lt;br /&gt;
[[Image:06-1350-R4a.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star \Phi = (1123)^\star \Phi (1233)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4a}(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + \phi(x_1,x_3,x_4) - \phi(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_3+x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Second: &lt;br /&gt;
[[Image:06-1350-R4b.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1123)^\star B^+ (1203)^\star B^+ (1231)^\star \Phi = (1230)^\star \Phi (1223)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1,x_2,x_3,x_4) = b^+(x_1+x_2,x_3,x_4) + b^+(x_1,x_2,x_4) + \phi(x_1+x_4,x_2,x_3) - \phi(x_1,x_2,x_3) - b^+(x_1,x_2+x_3,x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Are these independent, or can they be shown to be equivalent using other relations?&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The original syzygy is available at [[:Image:06-1350-PhiAroundPhi.png]].&lt;br /&gt;
A cleaner, minimal picture is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundPhiClean.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{|align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi\Phi(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1+x_4,x_2,x_3,x_5) + \rho_{4b}(x_1,x_2,x_3,x_4) + \rho_{4a}(x_1,x_2+x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_2,x_3,x_4+x_5) - \rho_{4a}(x_1+x_2,x_3,x_4,x_5) - \rho_{4a}(x_1,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-PhiAroundPhiClean.png&amp;diff=3066</id>
		<title>File:06-1350-PhiAroundPhiClean.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-PhiAroundPhiClean.png&amp;diff=3066"/>
		<updated>2006-12-05T22:30:54Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3065</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3065"/>
		<updated>2006-12-05T22:30:30Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added cleaner Phi around Phi syzygy.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R2====&lt;br /&gt;
The following version of R2 was the easiest to use to program the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; syzygy:  &lt;br /&gt;
[[Image:06-1350-R2-weird.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;1 = (123)^\star B^- (132)^\star B^+.&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_2(x_1,x_2,x_3) =  - b^-(x_1,x_2,x_3) - b^+(x_1,x_3,x_2).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R4====&lt;br /&gt;
To establish the syzygy below, I needed two versions of R4. First: &lt;br /&gt;
[[Image:06-1350-R4a.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star \Phi = (1123)^\star \Phi (1233)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4a}(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + \phi(x_1,x_3,x_4) - \phi(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_3+x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Second: &lt;br /&gt;
[[Image:06-1350-R4b.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1123)^\star B^+ (1203)^\star B^+ (1231)^\star \Phi = (1230)^\star \Phi (1223)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1,x_2,x_3,x_4) = b^+(x_1+x_2,x_3,x_4) + b^+(x_1,x_2,x_4) + \phi(x_1+x_4,x_2,x_3) - \phi(x_1,x_2,x_3) - b^+(x_1,x_2+x_3,x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Are these independent, or can they be shown to be equivalent using other relations?&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The original picture is available at [[:Image:06-1350-PhiAroundPhi.png]].&lt;br /&gt;
A cleaner, minimal picture is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundPhiClean.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi\Phi(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1+x_4,x_2,x_3,x_5) + \rho_{4b}(x_1,x_2,x_3,x_4) + \rho_{4a}(x_1,x_2+x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_2,x_3,x_4+x_5) - \rho_{4a}(x_1+x_2,x_3,x_4,x_5) - \rho_{4a}(x_1,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3063</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3063"/>
		<updated>2006-12-05T21:53:41Z</updated>

		<summary type="html">&lt;p&gt;Andy: /* The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&amp;quot; Syzygy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R2====&lt;br /&gt;
The following version of R2 was the easiest to use to program the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; syzygy:  &lt;br /&gt;
[[Image:06-1350-R2-weird.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;1 = (123)^\star B^- (132)^\star B^+.&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_2(x_1,x_2,x_3) =  - b^-(x_1,x_2,x_3) - b^+(x_1,x_3,x_2).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R4====&lt;br /&gt;
To establish the syzygy below, I needed two versions of R4. First: &lt;br /&gt;
[[Image:06-1350-R4a.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star \Phi = (1123)^\star \Phi (1233)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4a}(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + \phi(x_1,x_3,x_4) - \phi(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_3+x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Second: &lt;br /&gt;
[[Image:06-1350-R4b.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1123)^\star B^+ (1203)^\star B^+ (1231)^\star \Phi = (1230)^\star \Phi (1223)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1,x_2,x_3,x_4) = b^+(x_1+x_2,x_3,x_4) + b^+(x_1,x_2,x_4) + \phi(x_1+x_4,x_2,x_3) - \phi(x_1,x_2,x_3) - b^+(x_1,x_2+x_3,x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Are these independent, or can they be shown to be equivalent using other relations?&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundPhi.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi\Phi(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_2(x_1+x_2,x_3,x_4) + \rho_2(x_1+x_2+x_4,x_3,x_5) + \rho_{4b}(x_1+x_2,x_4,x_5,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_2(x_1,x_2,x_4) + \rho_2(x_1+x_4,x_2,x_5) + \rho_{4b}(x_1,x_4,x_5,x_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_{4a}(x_1,x_4+x_5,x_2,x_3) - \rho_{4b}(x_1,x_4,x_5,x_2+x_3) - \rho_{4a}(x_1+x_4,x_5,x_2,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_2(x_1+x_4,x_2,x_5) - \rho_2(x_1+x_2+x_4,x_3,x_5) - \rho_{4a}(x_1,x_4,x_2,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_2(x_1,x_2,x_4) - \rho_2(x_1+x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the first and last terms cancel, as the two steps at the top of the diagram are opposites.&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-R2-weird.png&amp;diff=3062</id>
		<title>File:06-1350-R2-weird.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-R2-weird.png&amp;diff=3062"/>
		<updated>2006-12-05T19:30:59Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3061</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3061"/>
		<updated>2006-12-05T19:30:23Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added weird R2.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R2====&lt;br /&gt;
The following version of R2 was the easiest to use to program the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; syzygy:  &lt;br /&gt;
[[Image:06-1350-R2-weird.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;1 = (123)^\star B^- (132)^\star B^+.&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_2(x_1,x_2,x_3) =  - b^-(x_1,x_2,x_3) - b^+(x_1,x_3,x_2).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R4====&lt;br /&gt;
To establish the syzygy below, I needed two versions of R4. First: &lt;br /&gt;
[[Image:06-1350-R4a.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star \Phi = (1123)^\star \Phi (1233)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4a}(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + \phi(x_1,x_3,x_4) - \phi(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_3+x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Second: &lt;br /&gt;
[[Image:06-1350-R4b.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1123)^\star B^+ (1203)^\star B^+ (1231)^\star \Phi = (1230)^\star \Phi (1223)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1,x_2,x_3,x_4) = b^+(x_1+x_2,x_3,x_4) + b^+(x_1,x_2,x_4) + \phi(x_1+x_4,x_2,x_3) - \phi(x_1,x_2,x_3) - b^+(x_1,x_2+x_3,x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Are these independent, or can they be shown to be equivalent using other relations?&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundPhi.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi\Phi(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_2(x_1+x_2,x_3,x_4) + \rho_2(x_1+x_2+x_4,x_3,x_5) + \rho_{4b}(x_1+x_2,x_4,x_5,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_2(x_1,x_2,x_4) + \rho_2(x_1+x_4,x_2,x_5) + \rho_{4b}(x_1,x_4,x_5,x_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_{4a}(x_1,x_4+x_5,x_2,x_3) - \rho_{4b}(x_1,x_4,x_5,x_2+x_3) - \rho_{4a}(x_1+x_4,x_5,x_2,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_2(x_1+x_4,x_2,x_5) - \rho_2(x_1+x_2+x_4,x_3,x_5) - \rho_{4a}(x_1,x_4,x_2,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_2(x_1,x_2,x_4) - \rho_2(x_1+x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the first and last terms cancel, as the top steps at the top of the diagram are opposites.&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-PhiAroundPhi.png&amp;diff=3060</id>
		<title>File:06-1350-PhiAroundPhi.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-PhiAroundPhi.png&amp;diff=3060"/>
		<updated>2006-12-05T19:15:08Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3059</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=3059"/>
		<updated>2006-12-05T19:14:36Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added Phi around Phi syzygy.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R4====&lt;br /&gt;
To establish the syzygy below, I needed two versions of R4. First: &lt;br /&gt;
[[Image:06-1350-R4a.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star \Phi = (1123)^\star \Phi (1233)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4a}(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + \phi(x_1,x_3,x_4) - \phi(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_3+x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Second: &lt;br /&gt;
[[Image:06-1350-R4b.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1123)^\star B^+ (1203)^\star B^+ (1231)^\star \Phi = (1230)^\star \Phi (1223)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1,x_2,x_3,x_4) = b^+(x_1+x_2,x_3,x_4) + b^+(x_1,x_2,x_4) + \phi(x_1+x_4,x_2,x_3) - \phi(x_1,x_2,x_3) - b^+(x_1,x_2+x_3,x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Are these independent, or can they be shown to be equivalent using other relations?&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundPhi.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote], [[06-1350/Syzygies in Asymptote|Syzygies in Asymptote]])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi\Phi(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_2(x_1+x_2,x_3,x_4) + \rho_2(x_1+x_2+x_4,x_3,x_5) + \rho_{4b}(x_1+x_2,x_4,x_5,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_2(x_1,x_2,x_4) + \rho_2(x_1+x_4,x_2,x_5) + \rho_{4b}(x_1,x_4,x_5,x_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_{4a}(x_1,x_4+x_5,x_2,x_3) - \rho_{4b}(x_1,x_4,x_5,x_2+x_3) - \rho_{4a}(x_1+x_4,x_5,x_2,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_2(x_1+x_4,x_2,x_5) - \rho_2(x_1+x_2+x_4,x_3,x_5) - \rho_{4a}(x_1,x_4,x_2,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_2(x_1,x_2,x_4) - \rho_2(x_1+x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Note that the first and last terms cancel, as the top steps at the top of the diagram are opposites.&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3035</id>
		<title>06-1350/Syzygies in Asymptote in Brief</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3035"/>
		<updated>2006-12-05T00:29:34Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installation===&lt;br /&gt;
See [[06-1350/Syzygies in Asymptote]] for more detailed information.&lt;br /&gt;
&lt;br /&gt;
First install [http://asymptote.sourceforge.net Asymptote].  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy].&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
{|align=center cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-mybraid.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
{|align=center cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a formula name.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-R3-asy.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; produces the formula:&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
{|align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version usable in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
&lt;br /&gt;
{|align=center cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-bpsmall.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to produce formulas.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3034</id>
		<title>06-1350/Syzygies in Asymptote in Brief</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3034"/>
		<updated>2006-12-05T00:25:11Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installation===&lt;br /&gt;
See [[06-1350/Syzygies in Asymptote]] for more detailed information.&lt;br /&gt;
&lt;br /&gt;
First install [http://asymptote.sourceforge.net Asymptote].  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy].&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
{|align=center cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-mybraid.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
{|align=center cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a formula name.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-R3-asy.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; produces the formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version usable in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
&lt;br /&gt;
{|align=center cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-bpsmall.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to produce formulas.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3033</id>
		<title>06-1350/Syzygies in Asymptote in Brief</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3033"/>
		<updated>2006-12-05T00:23:33Z</updated>

		<summary type="html">&lt;p&gt;Andy: Formatting.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installation===&lt;br /&gt;
See [[06-1350/Syzygies in Asymptote]] for more detailed information.&lt;br /&gt;
&lt;br /&gt;
First install [http://asymptote.sourceforge.net Asymptote].  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy].&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
{|align=center cellpadding=&amp;quot;20&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-mybraid.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
{|align=center cellpadding=&amp;quot;20&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a formula name.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-R3-asy.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; produces the formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version usable in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
&lt;br /&gt;
{|align=center cellpadding=&amp;quot;20&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
|[[Image:06-1350-bpsmall.png]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to produce formulas.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-bpsmall.png&amp;diff=3030</id>
		<title>File:06-1350-bpsmall.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-bpsmall.png&amp;diff=3030"/>
		<updated>2006-12-04T23:48:32Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3029</id>
		<title>06-1350/Syzygies in Asymptote in Brief</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3029"/>
		<updated>2006-12-04T23:48:05Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installation===&lt;br /&gt;
See [[06-1350/Syzygies in Asymptote]] for more detailed information.&lt;br /&gt;
&lt;br /&gt;
First install [http://asymptote.sourceforge.net Asymptote].  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy].&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
[[Image:06-1350-mybraid.png|frame]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
[[Image:06-1350-R3-asy.png|frame]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; produces the formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version usable in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-bpsmall.png|frame]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to produce formulas.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3028</id>
		<title>06-1350/Syzygies in Asymptote in Brief</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3028"/>
		<updated>2006-12-04T23:37:01Z</updated>

		<summary type="html">&lt;p&gt;Andy: /* Installation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installation===&lt;br /&gt;
See [[06-1350/Syzygies in Asymptote]] for more detailed information.&lt;br /&gt;
&lt;br /&gt;
First install [http://asymptote.sourceforge.net Asymptote].  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy].&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; produces the formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version usable in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to produce formulas.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3027</id>
		<title>06-1350/Syzygies in Asymptote in Brief</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote_in_Brief&amp;diff=3027"/>
		<updated>2006-12-04T23:36:32Z</updated>

		<summary type="html">&lt;p&gt;Andy: For Handout.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Installation===&lt;br /&gt;
See [[Syzygies in Asymptote]] for more detailed information.&lt;br /&gt;
&lt;br /&gt;
First install [http://asymptote.sourceforge.net Asymptote].  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy].&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; produces the formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version usable in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to produce formulas.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3026</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3026"/>
		<updated>2006-12-04T23:21:29Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added headings.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===Disclaimer===&lt;br /&gt;
These instructions (and the program they describe) are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
===Installation===&lt;br /&gt;
To use the syzygy script, first install [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instructions on how to run a script in Asymptote to produce a picture.  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy] and put it in a directory where Asymptote can find it.  You should also have (or install) a variant of TeX on your system, such as MiKTeX, so that Asymptote can typeset labels.&lt;br /&gt;
&lt;br /&gt;
===Braids===&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file, say &amp;lt;code&amp;gt;mybraid.asy&amp;lt;/code&amp;gt; and run with Asymptote, the result is a picture:&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Relations===&lt;br /&gt;
====Drawing====&lt;br /&gt;
To define a relation, we first define two braids, and then stick them into a &amp;lt;code&amp;gt;Relation&amp;lt;/code&amp;gt; structure.  The below script generates an R3 relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to be used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file and run, this draws the two sides of the relation.  If TeX is installed, Asymptote will also put a lovely equals sign, typeset by TeX, between the two figures.&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
====Outputting Equations====&lt;br /&gt;
We can also get useful equations out of the relation.  The method &amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; will produce a string that is the formula for the relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This string can be written out to the standard output by &amp;lt;code&amp;gt;write(r3.toFormula())&amp;lt;/code&amp;gt;.  It can be written to a file by &amp;lt;code&amp;gt;file f=output(&amp;quot;filename.txt&amp;quot;); write(f, r3.toFormula())&amp;lt;/code&amp;gt;. The string is formatted so it can be put into TeX or a wiki page using math mode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The method &amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version of the relation that can be used in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few relations, such as &amp;lt;code&amp;gt;r3&amp;lt;/code&amp;gt;, are already defined in &amp;lt;code&amp;gt;syzygy.asy&amp;lt;/code&amp;gt; but more should be added.&lt;br /&gt;
&lt;br /&gt;
====Applying====&lt;br /&gt;
Now that we have relations, we can apply them to bigger braids.  Let&#039;s start with the braid in the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
Braid b;&lt;br /&gt;
b.n=4;&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,1);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(phi,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbstart.png|center]]&lt;br /&gt;
&lt;br /&gt;
After skipping the lowest knot, we can apply R3 to the next three knots:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid bb=apply(r3, b, 1, 0);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
here &amp;lt;code&amp;gt;apply(r, b, k, n)&amp;lt;/code&amp;gt; means we are applying the relation &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; to the braid &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; at the place in the braid found by counting &amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt; components up from the bottom component and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; strands in from the leftmost strand.  &amp;lt;code&amp;gt;apply&amp;lt;/code&amp;gt; does not modify the original braid, but returns the result of applying the relation (stored here as &amp;lt;code&amp;gt;bb&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbnext.png|center]]&lt;br /&gt;
&lt;br /&gt;
This went from the left hand side of the relation to the right hand side.  To apply a relation in reverse, simply prefix it by a minus sign.  For example &amp;lt;code&amp;gt;apply(-r3, bb, 1, 0)&amp;lt;/code&amp;gt; will yield a braid equivalent to our original.  When applying a relation, the script first checks that the one side of the relation matches that portion of the braid, and will give a (somewhat cryptic) error if the relation cannot be applied.&lt;br /&gt;
&lt;br /&gt;
In our braids, the components are placed from bottom to top in a fixed order.  Sometimes when building syzygies, it is neccessary to swap the order that these components occur.  This is done by the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; method.  For instance, starting from &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;, we can swap the two bottom crossings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid swapped=b.swap(0,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbswap.png|center]]&lt;br /&gt;
&lt;br /&gt;
Remember that components are ordered from bottom to top, starting at 0.  Again, the script checks to make sure the swap is valid (ie. changing the order of the two components, doesn&#039;t actually change the knot) and will issue an error if it isn&#039;t.&lt;br /&gt;
&lt;br /&gt;
===Syzygies===&lt;br /&gt;
One could manually apply relations and swaps, and make a whole bunch of braids, but it would be annoying to keep track of them all.  Thankfully, the &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure does that for us.  For example, here is the complete code for the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the result&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to give the formulas for the syzygies.&lt;br /&gt;
&lt;br /&gt;
===Conclusion===&lt;br /&gt;
Example syzygyies can be found at my [[http://www.math.utoronto.ca/andy/ lame homepage]].  Please contact me if you have any questions or suggestions.  Good luck and happy syzyging!&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-pbnext.png&amp;diff=3025</id>
		<title>File:06-1350-pbnext.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-pbnext.png&amp;diff=3025"/>
		<updated>2006-12-04T23:00:46Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-pbswap.png&amp;diff=3024</id>
		<title>File:06-1350-pbswap.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-pbswap.png&amp;diff=3024"/>
		<updated>2006-12-04T23:00:02Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-pbstart.png&amp;diff=3023</id>
		<title>File:06-1350-pbstart.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-pbstart.png&amp;diff=3023"/>
		<updated>2006-12-04T22:59:35Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3022</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3022"/>
		<updated>2006-12-04T22:59:21Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WARNING: These instructions are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
To use the syzygy script, first install [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instructions on how to run a script in Asymptote to produce a picture.  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy] and put it in a directory where Asymptote can find it.  You should also have (or install) a variant of TeX on your system, such as MiKTeX, so that Asymptote can typeset labels.&lt;br /&gt;
&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp,0);    // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm,1);    // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi,0);   // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw();       // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file, say &amp;lt;code&amp;gt;mybraid.asy&amp;lt;/code&amp;gt; and run with Asymptote, the result is a picture:&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-mybraid.png|center]]&lt;br /&gt;
&lt;br /&gt;
To define a relation, we first define two braids, and then stick them into a &amp;lt;code&amp;gt;Relation&amp;lt;/code&amp;gt; structure.  The below script generates an R3 relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;      // Access the syzygy module.&lt;br /&gt;
Braid l;            // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp,0);  l.add(bp,1);  l.add(bp,0);&lt;br /&gt;
Braid r;            // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp,1);  r.add(bp,0);  r.add(bp,1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;        // Define a relation.&lt;br /&gt;
r3.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r3.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to used by Mathematica.&lt;br /&gt;
r3.lhs=l;  r3.rhs=r;&lt;br /&gt;
r3.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file and run, this draws the two sides of the relation.  If TeX is installed, Asymptote will also put a lovely equals sign, typeset by TeX, between the two figures.&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-R3-asy.png|center]]&lt;br /&gt;
&lt;br /&gt;
We can also get useful equations out of the relation.  The method &amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; will produce a string that is the formula for the relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This string can be written out to the standard output by &amp;lt;code&amp;gt;write(r3.toFormula())&amp;lt;/code&amp;gt;.  It can be written to a file by &amp;lt;code&amp;gt;file f=output(&amp;quot;filename.txt&amp;quot;); write(f, r3.toFormula())&amp;lt;/code&amp;gt;. The string is formatted so it can be put into TeX or a wiki page using math mode:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = &lt;br /&gt;
(1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The method &amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\rho_3(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4) - b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version of the relation that can be used in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] + bp[x1, x3, x4]&lt;br /&gt;
                            - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] - bp[x1 + x4, x2, x3]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A few relations, such as &amp;lt;code&amp;gt;r3&amp;lt;/code&amp;gt;, are already defined in &amp;lt;code&amp;gt;syzygy.asy&amp;lt;/code&amp;gt; but more should be added.&lt;br /&gt;
&lt;br /&gt;
Now that we have relations, we can apply them to bigger braids.  Let&#039;s start with the braid in the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
Braid b;&lt;br /&gt;
b.n=4;&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,1);&lt;br /&gt;
b.add(bp,0);&lt;br /&gt;
b.add(bp,2);&lt;br /&gt;
b.add(phi,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbstart.png|center]]&lt;br /&gt;
&lt;br /&gt;
After skipping the lowest knot, we can apply R3 to the next three knots:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid bb=apply(r3, b, 1, 0);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
here &amp;lt;code&amp;gt;apply(r, b, k, n)&amp;lt;/code&amp;gt; means we are applying the relation &amp;lt;code&amp;gt;r&amp;lt;/code&amp;gt; to the braid &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt; at the place in the braid found by counting &amp;lt;code&amp;gt;k&amp;lt;/code&amp;gt; components up from the bottom component and &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; strands in from the leftmost strand.  &amp;lt;code&amp;gt;apply&amp;lt;/code&amp;gt; does not modify the original braid, but returns the result of applying the relation (stored here as &amp;lt;code&amp;gt;bb&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbnext.png|center]]&lt;br /&gt;
&lt;br /&gt;
This went from the left hand side of the relation to the right hand side.  To apply a relation in reverse, simply prefix it by a minus sign.  For example &amp;lt;code&amp;gt;apply(-r3, bb, 1, 0)&amp;lt;/code&amp;gt; will yield a braid equivalent to our original.  When applying a relation, the script first checks that the one side of the relation matches that portion of the braid, and will give a (somewhat cryptic) error if the relation cannot be applied.&lt;br /&gt;
&lt;br /&gt;
In our braids, the components are placed from bottom to top in a fixed order.  Sometimes when building syzygies, it is neccessary to swap the order that these components occur.  This is done by the &amp;lt;code&amp;gt;swap&amp;lt;/code&amp;gt; method.  For instance, starting from &amp;lt;code&amp;gt;b&amp;lt;/code&amp;gt;, we can swap the two bottom crossings:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Braid swapped=b.swap(0,1);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-pbswap.png|center]]&lt;br /&gt;
&lt;br /&gt;
Remember that components are ordered from bottom to top, starting at 0.  Again, the script checks to make sure the swap is valid (ie. changing the order of the two components, doesn&#039;t actually change the knot) and will issue an error if it isn&#039;t.&lt;br /&gt;
&lt;br /&gt;
One could manually apply relations and swaps, and make a whole bunch of braids, but it would be annoying to keep track of them all.  Thankfully, the &amp;lt;code&amp;gt;Syzygy&amp;lt;/code&amp;gt; structure does that for us.  For example, here is the complete code for the &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B syzygy:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;&lt;br /&gt;
&lt;br /&gt;
// Phi around B&lt;br /&gt;
Braid initial;&lt;br /&gt;
initial.n=4;&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,1);&lt;br /&gt;
initial.add(bp,0);&lt;br /&gt;
initial.add(bp,2);&lt;br /&gt;
initial.add(phi,1);&lt;br /&gt;
&lt;br /&gt;
Syzygy pb;&lt;br /&gt;
pb.lsym=&amp;quot;\Phi B&amp;quot;;&lt;br /&gt;
pb.codename=&amp;quot;PhiAroundB&amp;quot;;&lt;br /&gt;
pb.initial=initial;&lt;br /&gt;
pb.apply(r3,1,0);&lt;br /&gt;
pb.apply(r4a,3,1);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(r4b,0,1);&lt;br /&gt;
pb.apply(-r3,1,0);&lt;br /&gt;
pb.apply(-r4a,0,0);&lt;br /&gt;
pb.swap(2,3);&lt;br /&gt;
pb.apply(-r4b,3,0);&lt;br /&gt;
pb.apply(r3,1,1);&lt;br /&gt;
&lt;br /&gt;
pb.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the result&lt;br /&gt;
&lt;br /&gt;
[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
&lt;br /&gt;
Again, like relations, we can use &amp;lt;code&amp;gt;pb.toLinear()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;pb.toCode()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PhiAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + rho4a[x1 + x5, x2, x3, x4]&lt;br /&gt;
 + rho4b[x1 + x2, x3, x4, x5] - rho3[x1, x2, x3 + x4, x5] - rho4a[x1, x2, x3, x4]&lt;br /&gt;
 - rho4b[x1, x3, x4, x5] + rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to give the formulas for the syzygies.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-R3-asy.png&amp;diff=3021</id>
		<title>File:06-1350-R3-asy.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-R3-asy.png&amp;diff=3021"/>
		<updated>2006-12-04T22:58:22Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-mybraid.png&amp;diff=3020</id>
		<title>File:06-1350-mybraid.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-mybraid.png&amp;diff=3020"/>
		<updated>2006-12-04T22:57:15Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3009</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3009"/>
		<updated>2006-12-04T20:12:04Z</updated>

		<summary type="html">&lt;p&gt;Andy: More write-up&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WARNING: These instructions are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
To use the syzygy script, first install [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instructions on how to run a script in Asymptote to produce a picture.  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy] and put it in a directory where Asymptote can find it.  You should also have (or install) a variant of TeX on your system, such as MiKTeX, so that Asymptote can typeset labels.&lt;br /&gt;
&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp, 0);   // Add a overcrossing component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bm, 1);   // Add an undercrossing starting at strand 1.&lt;br /&gt;
b.add(phi, 0);  // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw()        // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file, say &amp;lt;code&amp;gt;mybraid.asy&amp;lt;/code&amp;gt; and run with Asymptote, the result is a picture:&lt;br /&gt;
&lt;br /&gt;
ADD PICTURE&lt;br /&gt;
&lt;br /&gt;
To define a relation, we first define two braids, and then stick them into a &amp;lt;code&amp;gt;Relation&amp;lt;/code&amp;gt; structure.  The below script generates an R3 relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Access the syzygy module.&lt;br /&gt;
Braid l.        // Define the left hand side of the relation.&lt;br /&gt;
l.n=3;  l.add(bp, 0);  l.add(bp, 1);  l.add(bp, 0);&lt;br /&gt;
Braid r.        // Define the right hand side of the relation.&lt;br /&gt;
r.n=3;  r.add(bp, 1);  l.add(bp, 0);  l.add(bp, 1);&lt;br /&gt;
&lt;br /&gt;
Relation r3;       // Define a relation.&lt;br /&gt;
r.lsym=&amp;quot;\rho_3&amp;quot;;   // Give the relation a name for when it is written in functional form.&lt;br /&gt;
r.codename=&amp;quot;rho3&amp;quot;; // Give the relation a name to used by Mathematica.&lt;br /&gt;
r.lhs=l;  r.rhs.r;&lt;br /&gt;
r.draw();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
When saved into an asy file and run, this draws the two sides of the relation.  If TeX is installed, Asymptote will also put a lovely equals sign, typeset by TeX, between the two figures.&lt;br /&gt;
&lt;br /&gt;
ADD ANOTHER PICTURE&lt;br /&gt;
&lt;br /&gt;
We can also get useful equations out of the relation.  The method &amp;lt;code&amp;gt;r3.toFormula()&amp;lt;/code&amp;gt; will produce a string that is the formula for the relation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
big ugly string&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This string can be written out to the standard output by &amp;lt;code&amp;gt;write(r3.toFormula())&amp;lt;/code&amp;gt;.  It can be written to a file by &amp;lt;code&amp;gt;file f=output(&amp;quot;filename.txt&amp;quot;); write(f, r3.toFormula())&amp;lt;/code&amp;gt;. The string is formatted so it can be put into TeX or a wiki page using math mode:&lt;br /&gt;
&lt;br /&gt;
ADD EQUATION&lt;br /&gt;
&lt;br /&gt;
The method &amp;lt;code&amp;gt;r3.toLinear()&amp;lt;/code&amp;gt; produces the formula in linear form:&lt;br /&gt;
&lt;br /&gt;
ADD EQUATION&lt;br /&gt;
&lt;br /&gt;
and &amp;lt;code&amp;gt;r3.toCode()&amp;lt;/code&amp;gt; produces a version of the relation that can be used in Mathematica:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ADD CODE&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3008</id>
		<title>06-1350/Syzygies in Asymptote</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Syzygies_in_Asymptote&amp;diff=3008"/>
		<updated>2006-12-04T19:45:57Z</updated>

		<summary type="html">&lt;p&gt;Andy: Started guide.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;WARNING: These instructions are a work in progress and should be considered highly unreliable.&lt;br /&gt;
&lt;br /&gt;
To use the syzygy script, first install [http://asymptote.sourceforge.net Asymptote].  Instructions for installing the program on several OSes is given in the documentation at the Asymptote website.  The documentation also gives helpful instruction on how to run a script in Asymptote to produce a picture.  Once installed, download [http://www.math.utoronto.ca/~andy/syzygy.asy syzygy.asy] and put it in a directory where Asymptote can find it.&lt;br /&gt;
&lt;br /&gt;
Once installed, we can draw a braid in Asymptote:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
import syzygy;  // Accesses the syzygy module.&lt;br /&gt;
Braid b;        // Start a new braid.&lt;br /&gt;
b.n=3;          // The braid has three strands.&lt;br /&gt;
                // The strands are numbered left to right starting at 0.&lt;br /&gt;
b.add(bp, 0);   // Add a B^+ (overcrossing) component starting at strand 0,&lt;br /&gt;
                // the leftmost strand.&lt;br /&gt;
b.add(bp, 1);   // Add another B^+ starting at strand 1.&lt;br /&gt;
b.add(phi, 0);  // Add a trivalent vertex that merges strands 0 and 1.&lt;br /&gt;
                // Strand 2 is now renumbered as strand 1.&lt;br /&gt;
b.draw()        // Draw the resulting braid.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2987</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2987"/>
		<updated>2006-12-03T23:20:22Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added equation for syzygy.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R4====&lt;br /&gt;
To establish the syzygy below, I needed two versions of R4. First: &lt;br /&gt;
[[Image:06-1350-R4a.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star \Phi = (1123)^\star \Phi (1233)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4a}(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + \phi(x_1,x_3,x_4) - \phi(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_3+x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Second: &lt;br /&gt;
[[Image:06-1350-R4b.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1123)^\star B^+ (1203)^\star B^+ (1231)^\star \Phi = (1230)^\star \Phi (1223)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1,x_2,x_3,x_4) = b^+(x_1+x_2,x_3,x_4) + b^+(x_1,x_2,x_4) + \phi(x_1+x_4,x_2,x_3) - \phi(x_1,x_2,x_3) - b^+(x_1,x_2+x_3,x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Are these independent, or can they be shown to be equivalent using other relations?&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi B(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1,x_2,x_3,x_5) + \rho_{4a}(x_1+x_5,x_2,x_3,x_4) + \rho_{4b}(x_1+x_2,x_3,x_4,x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1,x_2,x_3+x_4,x_5) - \rho_{4a}(x_1,x_2,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_{4b}(x_1,x_3,x_4,x_5) + \rho_3(x_1+x_3,x_2,x_4,x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-R4b.png&amp;diff=2986</id>
		<title>File:06-1350-R4b.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-R4b.png&amp;diff=2986"/>
		<updated>2006-12-03T23:12:47Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2985</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2985"/>
		<updated>2006-12-03T23:12:30Z</updated>

		<summary type="html">&lt;p&gt;Andy: Adding R4 relations.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
To establish the syzygy below, I needed two versions of R4. First: &lt;br /&gt;
[[Image:06-1350-R4a.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star \Phi = (1123)^\star \Phi (1233)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4a}(x_1,x_2,x_3,x_4) = b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + \phi(x_1,x_3,x_4) - \phi(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_3+x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Second: &lt;br /&gt;
[[Image:06-1350-R4b.png|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1123)^\star B^+ (1203)^\star B^+ (1231)^\star \Phi = (1230)^\star \Phi (1223)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_{4b}(x_1,x_2,x_3,x_4) = b^+(x_1+x_2,x_3,x_4) + b^+(x_1,x_2,x_4) + \phi(x_1+x_4,x_2,x_3) - \phi(x_1,x_2,x_3) - b^+(x_1,x_2+x_3,x_4).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Are these independent, or can they be shown to be equivalent using other relations?&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-R4a.png&amp;diff=2984</id>
		<title>File:06-1350-R4a.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-R4a.png&amp;diff=2984"/>
		<updated>2006-12-03T23:09:55Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:R4b.png&amp;diff=2983</id>
		<title>File:R4b.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:R4b.png&amp;diff=2983"/>
		<updated>2006-12-03T23:06:46Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:R4a.png&amp;diff=2982</id>
		<title>File:R4a.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:R4a.png&amp;diff=2982"/>
		<updated>2006-12-03T23:06:34Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2972</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2972"/>
		<updated>2006-12-03T17:11:31Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added Phi around B picture.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding (and any other helpful notations) removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-PhiAroundB.png|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://asymptote.sf.net/ Asymptote])&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-PhiAroundB.png&amp;diff=2970</id>
		<title>File:06-1350-PhiAroundB.png</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-PhiAroundB.png&amp;diff=2970"/>
		<updated>2006-12-03T17:03:00Z</updated>

		<summary type="html">&lt;p&gt;Andy: A minimal picture showing a Phi around B+ syzygy.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A minimal picture showing a Phi around B+ syzygy.&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2901</id>
		<title>User:Andy/06-1350-HW4</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=User:Andy/06-1350-HW4&amp;diff=2901"/>
		<updated>2006-11-27T21:51:41Z</updated>

		<summary type="html">&lt;p&gt;Andy: Copied the assignment.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===The Generators===&lt;br /&gt;
&lt;br /&gt;
Our generators are &amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;B^{\pm}&amp;lt;/math&amp;gt;:&lt;br /&gt;
{| align=center cellpadding=10 style=&amp;quot;border: solid orange 1px&amp;quot;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Picture&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|&lt;br /&gt;
|[[Image:06-1350-BPlus.svg|100px]]&lt;br /&gt;
|&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Generator&lt;br /&gt;
|&amp;lt;math&amp;gt;T&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;R&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\Phi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;B^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|- align=center valign=middle&lt;br /&gt;
|align=left|Perturbation&lt;br /&gt;
|&amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;r&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\varphi&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+&amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^-&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Relations===&lt;br /&gt;
&lt;br /&gt;
====The Reidemeister Move R3====&lt;br /&gt;
The picture (with three sides of the shielding removed) is&lt;br /&gt;
[[Image:06-1350-R4.svg|400px|center]]&lt;br /&gt;
In formulas, this is&lt;br /&gt;
&amp;lt;center&amp;gt;&amp;lt;math&amp;gt;(1230)^\star B^+ (1213)^\star B^+ (1023)^\star B^+ = (1123)^\star B^+ (1203)^\star B^+ (1231)^\star B^+&amp;lt;/math&amp;gt;.&amp;lt;/center&amp;gt;&lt;br /&gt;
Linearized and written in functional form, this becomes&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_4) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;b^+(x_1,x_2,x_3) + b^+(x_1+x_3,x_2,x_4) + b^+(x_1,x_3,x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- b^+(x_1+x_2,x_3,x_4) - b^+(x_1,x_2,x_4) - b^+(x_1+x_4,x_2,x_3).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===The Syzygies===&lt;br /&gt;
&lt;br /&gt;
====The &amp;quot;B around B&amp;quot; Syzygy====&lt;br /&gt;
&lt;br /&gt;
The picture, with all shielding removed, is&lt;br /&gt;
{| align=center&lt;br /&gt;
|- align=center&lt;br /&gt;
|[[Image:06-1350-BAroundB.svg|center]]&lt;br /&gt;
|-&lt;br /&gt;
|align=right|(Drawn with [http://www.inkscape.org/ Inkscape])&amp;lt;br&amp;gt;(note that lower quality pictures are also acceptable)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The functional form of this syzygy is&lt;br /&gt;
&lt;br /&gt;
{| align=center&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;math&amp;gt;BB(x_1,x_2,x_3,x_4,x_5) = &amp;lt;/math&amp;gt;&lt;br /&gt;
|&amp;lt;math&amp;gt;\rho_3(x_1, x_2, x_3, x_5) + \rho_3(x_1 + x_5, x_2, x_3, x_4) - \rho_3(x_1 + x_2, x_3, x_4, x_5)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;- \rho_3(x_1, x_2, x_4, x_5) - \rho_3(x_1 + x_4, x_2, x_3, x_5) - \rho_3(x_1, x_2, x_3, x_4)&amp;lt;/math&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|&amp;lt;math&amp;gt;+ \rho_3(x_1, x_3, x_4, x_5) + \rho_3(x_1 + x_3, x_2, x_4, x_5).&amp;lt;/math&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===A Mathematica Verification===&lt;br /&gt;
&lt;br /&gt;
The following simulated Mathematica session proves that for our single relation and single syzygy, &amp;lt;math&amp;gt;d^2=0&amp;lt;/math&amp;gt;. Copy paste it into a live Mathematica session to see that it&#039;s right!&lt;br /&gt;
&lt;br /&gt;
{{In|n=1|in=&amp;lt;nowiki&amp;gt;d1 = {&lt;br /&gt;
  rho3[x1_, x2_, x3_, x4_] :&amp;gt; bp[x1, x2, x3] + bp[x1 + x3, x2, x4] +&lt;br /&gt;
  bp[x1, x3, x4] - bp[x1 + x2, x3, x4] - bp[x1, x2, x4] -&lt;br /&gt;
  bp[x1 + x4, x2, x3]&lt;br /&gt;
};&lt;br /&gt;
d2 = {&lt;br /&gt;
  BAroundB[x1_, x2_, x3_, x4_, x5_] :&amp;gt; rho3[x1, x2, x3, x5] + &lt;br /&gt;
  rho3[x1 + x5, x2, x3, x4] - rho3[x1 + x2, x3, x4, x5] -&lt;br /&gt;
  rho3[x1, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5] -&lt;br /&gt;
  rho3[x1, x2, x3, x4] + rho3[x1, x3, x4, x5] +&lt;br /&gt;
  rho3[x1 + x3, x2, x4, x5]&lt;br /&gt;
};&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=3|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;- rho3[x1, x2, x3, x4] + rho3[x1, x2, x3, x5] - rho3[x1, x2, x4, x5]&lt;br /&gt;
+ rho3[x1, x3, x4, x5] - rho3[x1 + x2, x3, x4, x5]&lt;br /&gt;
+ rho3[x1 + x3, x2, x4, x5] - rho3[x1 + x4, x2, x3, x5]&lt;br /&gt;
+ rho3[x1 + x5, x2, x3, x4]&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{InOut|n=4|in=&amp;lt;nowiki&amp;gt;BAroundB[x1, x2, x3, x4, x5] /. d2 /. d1&amp;lt;/nowiki&amp;gt;|out=&amp;lt;nowiki&amp;gt;0&amp;lt;/nowiki&amp;gt;}}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=Template:06-1350/Navigation&amp;diff=2681</id>
		<title>Template:06-1350/Navigation</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=Template:06-1350/Navigation&amp;diff=2681"/>
		<updated>2006-11-08T15:43:18Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added comma&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;clear: right; float: right&amp;quot;&lt;br /&gt;
|- align=right&lt;br /&gt;
|&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;[[06-1350]]/[[Template:06-1350/Navigation|Navigation Panel]]&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1px&amp;quot; cellpadding=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;220&amp;quot; style=&amp;quot;margin: 0 0 1em 0.5em; font-size: small&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!#&lt;br /&gt;
!Week of...&lt;br /&gt;
!Links&lt;br /&gt;
|-&lt;br /&gt;
|align=center|1&lt;br /&gt;
|Sep 11&lt;br /&gt;
|[[06-1350/About This Class|About]], [[06-1350/Class Notes for Tuesday September 12|Tue]], [[06-1350/Class Notes for Thursday September 14|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|2&lt;br /&gt;
|Sep 18&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday September 19|Tue]], [[06-1350/Some Equations by Kurlin|Kurlin]](P), [[06-1350/Class Notes for Thursday September 21|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|3&lt;br /&gt;
|Sep 25&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday September 26|Tue]], [[06-1350/Class Photo|Photo]], [[06-1350/Class Notes for Thursday September 28|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|4&lt;br /&gt;
|Oct 2&lt;br /&gt;
|[[06-1350/Homework Assignment 1|HW1]], [[06-1350/Class Notes for Tuesday October 3|Tue]], [[06-1350/Class Notes for Tuesday October 5|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|5&lt;br /&gt;
|Oct 9&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday October 10|Tue]](P), [[06-1350/Class Notes for Thursday October 12|Thu]](P)&lt;br /&gt;
|-&lt;br /&gt;
|align=center|6&lt;br /&gt;
|Oct 16&lt;br /&gt;
|[[06-1350/Homework Assignment 2|HW2]], [[06-1350/Class Notes for Tuesday October 17|Tue]](P), [[06-1350/Class Notes for Thursday October 19|Thu]](P)&lt;br /&gt;
|-&lt;br /&gt;
|align=center|7&lt;br /&gt;
|Oct 23&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday October 24|Tue]](P), [[06-1350/Class Notes for Thursday October 26|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|8&lt;br /&gt;
|Oct 30&lt;br /&gt;
|[[06-1350/Homework Assignment 3|HW3]], [[06-1350/Class Notes for Tuesday October 31|Tue]], [[06-1350/Class Notes for Thursday November 2|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|9&lt;br /&gt;
|Nov 6&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday November 7|Tue]], [[06-1350/Class Notes for Thursday November 9|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|10&lt;br /&gt;
|Nov 13&lt;br /&gt;
|HW4&lt;br /&gt;
|-&lt;br /&gt;
|align=center|11&lt;br /&gt;
|Nov 20&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|align=center|12&lt;br /&gt;
|Nov 27&lt;br /&gt;
|HW5&lt;br /&gt;
|-&lt;br /&gt;
|align=center|13&lt;br /&gt;
|Dec 4&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|colspan=3 align=left|&#039;&#039;&#039;Note.&#039;&#039;&#039; HW weeks are tentative.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=3 align=left|&#039;&#039;&#039;Note.&#039;&#039;&#039; (P) means &amp;quot;contains a problem that {{Dror}} cares about&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=3 align=center|[[Image:06-1350-ClassPhoto.jpg|180px]]&amp;lt;br&amp;gt;[[06-1350/Class Photo|Add your name / see who&#039;s in!]]&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Class_Notes_for_Thursday_October_26&amp;diff=2680</id>
		<title>06-1350/Class Notes for Thursday October 26</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Class_Notes_for_Thursday_October_26&amp;diff=2680"/>
		<updated>2006-11-08T15:40:27Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added rest of the pages&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{06-1350/Navigation}}&lt;br /&gt;
&lt;br /&gt;
==Scanned Notes==&lt;br /&gt;
&lt;br /&gt;
{| align=left&lt;br /&gt;
 |[[Image:06-1350-scan1026-0001.jpg|thumb]]&lt;br /&gt;
 |[[Image:06-1350-scan1026-0002.jpg|thumb]]&lt;br /&gt;
|}&lt;br /&gt;
{| align=left&lt;br /&gt;
 |[[Image:06-1350-scan1026-0003.jpg|thumb]]&lt;br /&gt;
 |[[Image:06-1350-scan1026-0004.jpg|thumb]]&lt;br /&gt;
|}&lt;br /&gt;
{| align=left&lt;br /&gt;
 |[[Image:06-1350-scan1026-0005.jpg|thumb]]&lt;br /&gt;
 |[[Image:06-1350-scan1026-0006.jpg|thumb]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Class_Notes_for_Tuesday_October_31&amp;diff=2679</id>
		<title>06-1350/Class Notes for Tuesday October 31</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Class_Notes_for_Tuesday_October_31&amp;diff=2679"/>
		<updated>2006-11-08T15:39:41Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added scanned notes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{06-1350/Navigation}}&lt;br /&gt;
&lt;br /&gt;
==Scanned Notes==&lt;br /&gt;
&lt;br /&gt;
{| align=left&lt;br /&gt;
 |[[Image:06-1350-scan1031-0001.jpg|thumb]]&lt;br /&gt;
 |[[Image:06-1350-scan1031-0002.jpg|thumb]]&lt;br /&gt;
|}&lt;br /&gt;
{| align=left&lt;br /&gt;
 |[[Image:06-1350-scan1031-0003.jpg|thumb]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=06-1350/Class_Notes_for_Thursday_October_26&amp;diff=2678</id>
		<title>06-1350/Class Notes for Thursday October 26</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=06-1350/Class_Notes_for_Thursday_October_26&amp;diff=2678"/>
		<updated>2006-11-08T15:38:14Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added scanned notes.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{06-1350/Navigation}}&lt;br /&gt;
&lt;br /&gt;
==Scanned Notes==&lt;br /&gt;
&lt;br /&gt;
{| align=left&lt;br /&gt;
 |[[Image:06-1350-scan1026-0001.jpg|thumb]]&lt;br /&gt;
 |[[Image:06-1350-scan1026-0002.jpg|thumb]]&lt;br /&gt;
|}&lt;br /&gt;
{| align=left&lt;br /&gt;
 |[[Image:06-1350-scan1026-0003.jpg|thumb]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=Template:06-1350/Navigation&amp;diff=2677</id>
		<title>Template:06-1350/Navigation</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=Template:06-1350/Navigation&amp;diff=2677"/>
		<updated>2006-11-08T15:36:23Z</updated>

		<summary type="html">&lt;p&gt;Andy: Added dates for notes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;clear: right; float: right&amp;quot;&lt;br /&gt;
|- align=right&lt;br /&gt;
|&amp;lt;div class=&amp;quot;NavFrame&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;NavHead&amp;quot;&amp;gt;[[06-1350]]/[[Template:06-1350/Navigation|Navigation Panel]]&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div class=&amp;quot;NavContent&amp;quot;&amp;gt;&lt;br /&gt;
{| border=&amp;quot;1px&amp;quot; cellpadding=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; width=&amp;quot;220&amp;quot; style=&amp;quot;margin: 0 0 1em 0.5em; font-size: small&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!#&lt;br /&gt;
!Week of...&lt;br /&gt;
!Links&lt;br /&gt;
|-&lt;br /&gt;
|align=center|1&lt;br /&gt;
|Sep 11&lt;br /&gt;
|[[06-1350/About This Class|About]], [[06-1350/Class Notes for Tuesday September 12|Tue]], [[06-1350/Class Notes for Thursday September 14|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|2&lt;br /&gt;
|Sep 18&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday September 19|Tue]], [[06-1350/Some Equations by Kurlin|Kurlin]](P), [[06-1350/Class Notes for Thursday September 21|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|3&lt;br /&gt;
|Sep 25&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday September 26|Tue]], [[06-1350/Class Photo|Photo]], [[06-1350/Class Notes for Thursday September 28|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|4&lt;br /&gt;
|Oct 2&lt;br /&gt;
|[[06-1350/Homework Assignment 1|HW1]], [[06-1350/Class Notes for Tuesday October 3|Tue]], [[06-1350/Class Notes for Tuesday October 5|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|5&lt;br /&gt;
|Oct 9&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday October 10|Tue]](P), [[06-1350/Class Notes for Thursday October 12|Thu]](P)&lt;br /&gt;
|-&lt;br /&gt;
|align=center|6&lt;br /&gt;
|Oct 16&lt;br /&gt;
|[[06-1350/Homework Assignment 2|HW2]], [[06-1350/Class Notes for Tuesday October 17|Tue]](P), [[06-1350/Class Notes for Thursday October 19|Thu]](P)&lt;br /&gt;
|-&lt;br /&gt;
|align=center|7&lt;br /&gt;
|Oct 23&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday October 24|Tue]](P), [[06-1350/Class Notes for Thursday October 26|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|8&lt;br /&gt;
|Oct 30&lt;br /&gt;
|[[06-1350/Homework Assignment 3|HW3]], [[06-1350/Class Notes for Tuesday October 31|Tue]] [[06-1350/Class Notes for Thursday November 2|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|9&lt;br /&gt;
|Nov 6&lt;br /&gt;
|[[06-1350/Class Notes for Tuesday November 7|Tue]], [[06-1350/Class Notes for Thursday November 9|Thu]]&lt;br /&gt;
|-&lt;br /&gt;
|align=center|10&lt;br /&gt;
|Nov 13&lt;br /&gt;
|HW4&lt;br /&gt;
|-&lt;br /&gt;
|align=center|11&lt;br /&gt;
|Nov 20&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|align=center|12&lt;br /&gt;
|Nov 27&lt;br /&gt;
|HW5&lt;br /&gt;
|-&lt;br /&gt;
|align=center|13&lt;br /&gt;
|Dec 4&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|colspan=3 align=left|&#039;&#039;&#039;Note.&#039;&#039;&#039; HW weeks are tentative.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=3 align=left|&#039;&#039;&#039;Note.&#039;&#039;&#039; (P) means &amp;quot;contains a problem that {{Dror}} cares about&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
|colspan=3 align=center|[[Image:06-1350-ClassPhoto.jpg|180px]]&amp;lt;br&amp;gt;[[06-1350/Class Photo|Add your name / see who&#039;s in!]]&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1102-0005.jpg&amp;diff=2676</id>
		<title>File:06-1350-scan1102-0005.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1102-0005.jpg&amp;diff=2676"/>
		<updated>2006-11-08T15:33:11Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1102-0004.jpg&amp;diff=2675</id>
		<title>File:06-1350-scan1102-0004.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1102-0004.jpg&amp;diff=2675"/>
		<updated>2006-11-08T15:33:03Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1102-0003.jpg&amp;diff=2674</id>
		<title>File:06-1350-scan1102-0003.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1102-0003.jpg&amp;diff=2674"/>
		<updated>2006-11-08T15:32:56Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1102-0002.jpg&amp;diff=2673</id>
		<title>File:06-1350-scan1102-0002.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1102-0002.jpg&amp;diff=2673"/>
		<updated>2006-11-08T15:32:49Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1102-0001.jpg&amp;diff=2672</id>
		<title>File:06-1350-scan1102-0001.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1102-0001.jpg&amp;diff=2672"/>
		<updated>2006-11-08T15:32:41Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1031-0003.jpg&amp;diff=2671</id>
		<title>File:06-1350-scan1031-0003.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1031-0003.jpg&amp;diff=2671"/>
		<updated>2006-11-08T15:32:31Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1031-0002.jpg&amp;diff=2670</id>
		<title>File:06-1350-scan1031-0002.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1031-0002.jpg&amp;diff=2670"/>
		<updated>2006-11-08T15:32:23Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
	<entry>
		<id>https://drorbn.net/index.php?title=File:06-1350-scan1031-0001.jpg&amp;diff=2669</id>
		<title>File:06-1350-scan1031-0001.jpg</title>
		<link rel="alternate" type="text/html" href="https://drorbn.net/index.php?title=File:06-1350-scan1031-0001.jpg&amp;diff=2669"/>
		<updated>2006-11-08T15:32:15Z</updated>

		<summary type="html">&lt;p&gt;Andy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
	</entry>
</feed>