<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Azimuth]]></provider_name><provider_url><![CDATA[https://johncarlosbaez.wordpress.com]]></provider_url><author_name><![CDATA[John Baez]]></author_name><author_url><![CDATA[https://johncarlosbaez.wordpress.com/author/johncarlosbaez/]]></author_url><title><![CDATA[Categories in Control]]></title><type><![CDATA[link]]></type><html><![CDATA[<div align="center">
<a href="http://math.ucr.edu/home/baez/networks/networks_1.html"><br />
<img src="https://i0.wp.com/math.ucr.edu/home/baez/networks/leaf.jpg" /><br />
</a></div>
<div align="center"><i>To understand ecosystems, ultimately will be to understand networks.</i> &#8211; B. C. Patten and M. Witkamp </div>
<p>A while back I decided one way to apply my math skills to help save the planet was to start pushing toward <a href="http://math.ucr.edu/home/baez/networks/networks_1.html"><font color="green">green mathematics</font></a>: a kind of mathematics that can interact with biology and ecology just as fruitfully as traditional mathematics interacts with physics.  As usual with math, the payoffs will come slowly, but they may be large.  It&#8217;s not a substitute for doing other, more urgent things&#8212;but if mathematicians don&#8217;t do this, who will?</p>
<p>As a first step in this direction, I decided to study <i>networks</i>.</p>
<p>This May, a small group of mathematicians is meeting in Turin for a workshop on the <a href="https://johncarlosbaez.wordpress.com/2015/04/04/categorical-foundations-of-network-theory/">categorical foundations of network theory</a>, organized by <a href="http://www.thequantumnetwork.org/team/jacob-biamonte/">Jacob Biamonte</a>.   I&#8217;m trying to get us mentally prepared for this.  We all have different ideas, yet they should fit together somehow.</p>
<p><a href="https://johncarlosbaez.wordpress.com/2015/04/07/resource-convertibility-part-1/">Tobias Fritz</a>, <a href="https://johncarlosbaez.wordpress.com/2014/03/18/networks-of-dynamical-systems/">Eugene Lerman</a> and <a href="https://johncarlosbaez.wordpress.com/2015/03/27/spivak-part-1/">David Spivak</a> have all written articles here about their work, though I suspect Eugene will have a lot of completely new things to say, too.  Now it&#8217;s time for me to say what my students and I have been doing.</p>
<p>Despite my ultimate aim of studying biological and ecological networks, I decided to start by clarifying the math of networks that appear in chemistry and engineering, since these are simpler, better understood, useful in their own right, and probably a good warmup for the grander goal.  I&#8217;ve been working with <a href="https://www.cs.ox.ac.uk/people/brendan.fong/">Brendan Fong</a> on electrical ciruits, and with <a href="http://mathdept.ucr.edu/gradwebpages/erbele.html">Jason Erbele</a> on control theory.  Let me talk about this paper:</p>
<p>&bull; John Baez and Jason Erbele, <a href="http://arxiv.org/abs/1405.6881">Categories in control</a>.</p>
<p><a href="http://en.wikipedia.org/wiki/Control_theory">Control theory</a> is the branch of engineering that focuses on manipulating <a href="http://en.wikipedia.org/wiki/Open_system_%28systems_theory%29">open systems</a>&mdash;systems with inputs and outputs&mdash;to achieve desired goals.  In control theory, <a href="http://en.wikibooks.org/wiki/Control_Systems/Signal_Flow_Diagrams#Resistor_R_.28Branch_equation_.29">signal-flow diagrams</a> are used to describe linear ways of manipulating signals, for example smooth real-valued functions of time.   Here&#8217;s a real-world example; click the picture for more details:</p>
<div align="center"><a href="http://en.wikipedia.org/wiki/Signal-flow_graph#Mechatronics_:_Position_servo_with_multi-loop_feedback"><br />
<img width="450" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/position_servo_signal_flow_graph.png" /><br />
</a></div>
<p>For a category theorist, at least, it is natural to treat signal-flow diagrams as <a href="https://www.youtube.com/watch?v=USYRDDZ9yEc&amp;feature=related">string diagrams</a> in a <a href="http://en.wikipedia.org/wiki/Symmetric_monoidal_category">symmetric monoidal category</a>.  This forces some small changes of perspective, which I&#8217;ll explain, but more important is the question: <i>which symmetric monoidal category?</i></p>
<p>We argue that the answer is: the category <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> of finite-dimensional vector spaces over a certain field <img src='https://s0.wp.com/latex.php?latex=k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k,' title='k,' class='latex' /> but with <i>linear relations</i> rather than linear maps as morphisms, and <i>direct sum</i> rather than tensor product providing the symmetric monoidal structure.  We use the field <img src='https://s0.wp.com/latex.php?latex=k+%3D+%5Cmathbb%7BR%7D%28s%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k = &#92;mathbb{R}(s)' title='k = &#92;mathbb{R}(s)' class='latex' /> consisting of rational functions in one real variable <img src='https://s0.wp.com/latex.php?latex=s.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='s.' title='s.' class='latex' />  This variable has the meaning of differentation.  A linear relation from <img src='https://s0.wp.com/latex.php?latex=k%5Em&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k^m' title='k^m' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=k%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k^n' title='k^n' class='latex' /> is thus a system of linear constant-coefficient ordinary differential equations relating <img src='https://s0.wp.com/latex.php?latex=m&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='m' title='m' class='latex' /> &#8216;input&#8217; signals and <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> &#8216;output&#8217; signals.</p>
<p>Our main goal in this paper is to provide a complete &#8216;generators and relations&#8217; picture of this symmetric monoidal category, with the generators being familiar components of signal-flow diagrams.  It turns out that the answer has an intriguing but mysterious connection to ideas that are familiar in the diagrammatic approach to quantum theory!   Quantum theory also involves linear algebra, but it uses linear maps between Hilbert spaces as morphisms, and the tensor product of Hilbert spaces provides the symmetric monoidal structure.</p>
<p>We hope that the category-theoretic viewpoint on signal-flow diagrams will shed new light on control theory.  However, in this paper we only lay the groundwork.</p>
<h3> Signal flow diagrams </h3>
<p>There are several basic operations that one wants to perform when manipulating signals.  The simplest is multiplying a signal by a scalar.  A signal can be amplified by a constant factor:</p>
<p><img src='https://s0.wp.com/latex.php?latex=f+%5Cmapsto+cf++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f &#92;mapsto cf  ' title='f &#92;mapsto cf  ' class='latex' /></p>
<p>where <img src='https://s0.wp.com/latex.php?latex=c+%5Cin+%5Cmathbb%7BR%7D.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c &#92;in &#92;mathbb{R}.' title='c &#92;in &#92;mathbb{R}.' class='latex' />  We can write this as a string diagram:</p>
<div align="center">
<img width="100" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_scalar_multiplication.jpg" />
</div>
<p>Here the labels <img src='https://s0.wp.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f' title='f' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=c+f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c f' title='c f' class='latex' /> on top and bottom are just for explanatory purposes and not really part of the diagram.  Control theorists often draw arrows on the wires, but this is unnecessary from the string diagram perspective.  Arrows on wires are useful to distinguish objects from their<br />
duals, but ultimately we will obtain a compact closed category where each object is its own dual, so the arrows can be dropped.  What we really need is for the box denoting scalar multiplication to have a clearly defined input and output.  This is why we draw it as a triangle.  Control theorists often use a rectangle or circle, using arrows on wires to indicate which carries the input <img src='https://s0.wp.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f' title='f' class='latex' /> and which the output <img src='https://s0.wp.com/latex.php?latex=c+f.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c f.' title='c f.' class='latex' /></p>
<p>A signal can also be integrated with respect to the time variable:</p>
<p><img src='https://s0.wp.com/latex.php?latex=f+%5Cmapsto+%5Cint+f+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f &#92;mapsto &#92;int f ' title='f &#92;mapsto &#92;int f ' class='latex' /></p>
<p>Mathematicians typically take differentiation as fundamental, but engineers sometimes prefer integration, because it is more robust against small perturbations.  In the end it  will not matter much here.  We can again draw integration as a string diagram:</p>
<div align="center">
<img width="100" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_integration.jpg" />
</div>
<p>Since this looks like the diagram for scalar multiplication, it is natural to extend <img src='https://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathbb{R}' title='&#92;mathbb{R}' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%28s%29%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathbb{R}(s),' title='&#92;mathbb{R}(s),' class='latex' /> the field of rational functions of a variable <img src='https://s0.wp.com/latex.php?latex=s&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='s' title='s' class='latex' /> which stands for differentiation.   Then differentiation becomes a special case of scalar multiplication, namely  multiplication by <img src='https://s0.wp.com/latex.php?latex=s%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='s,' title='s,' class='latex' /> and integration becomes multiplication by <img src='https://s0.wp.com/latex.php?latex=1%2Fs.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1/s.' title='1/s.' class='latex' />  Engineers accomplish the same effect with Laplace transforms, since differentiating a signal $f$ is equivalent to multiplying its Laplace transform</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B++%28%5Cmathcal%7BL%7Df%29%28s%29+%3D+%5Cint_0%5E%5Cinfty+f%28t%29+e%5E%7B-st%7D+%5C%2Cdt++%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{  (&#92;mathcal{L}f)(s) = &#92;int_0^&#92;infty f(t) e^{-st} &#92;,dt  }' title='&#92;displaystyle{  (&#92;mathcal{L}f)(s) = &#92;int_0^&#92;infty f(t) e^{-st} &#92;,dt  }' class='latex' /></p>
<p>by the variable <img src='https://s0.wp.com/latex.php?latex=s.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='s.' title='s.' class='latex' />   Another option is to use the Fourier transform: differentiating <img src='https://s0.wp.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f' title='f' class='latex' /> is equivalent to multiplying its Fourier transform</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+++%28%5Cmathcal%7BF%7Df%29%28%5Comega%29+%3D+%5Cint_%7B-%5Cinfty%7D%5E%5Cinfty+f%28t%29+e%5E%7B-i%5Comega+t%7D%5C%2C+dt++%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{   (&#92;mathcal{F}f)(&#92;omega) = &#92;int_{-&#92;infty}^&#92;infty f(t) e^{-i&#92;omega t}&#92;, dt  } ' title='&#92;displaystyle{   (&#92;mathcal{F}f)(&#92;omega) = &#92;int_{-&#92;infty}^&#92;infty f(t) e^{-i&#92;omega t}&#92;, dt  } ' class='latex' /></p>
<p>by <img src='https://s0.wp.com/latex.php?latex=-i%5Comega.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='-i&#92;omega.' title='-i&#92;omega.' class='latex' />   Of course, the function <img src='https://s0.wp.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f' title='f' class='latex' /> needs to be sufficiently well-behaved to justify calculations involving its Laplace or Fourier transform.  At a more basic level, it also requires some work to treat integration as the two-sided inverse of differentiation.  Engineers do this by considering signals that vanish for <img src='https://s0.wp.com/latex.php?latex=t+%3C+0%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='t &lt; 0,' title='t &lt; 0,' class='latex' /> and choosing the antiderivative that vanishes under the same condition.  Luckily all these issues can be side-stepped in a formal treatment of signal-flow diagrams: we can simply treat signals as living in an unspecified vector space over the field <img src='https://s0.wp.com/latex.php?latex=%5Cmathbb%7BR%7D%28s%29.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathbb{R}(s).' title='&#92;mathbb{R}(s).' class='latex' />  The field <img src='https://s0.wp.com/latex.php?latex=%5Cmathbb%7BC%7D%28s%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathbb{C}(s)' title='&#92;mathbb{C}(s)' class='latex' /> would work just as well, and control theory relies heavily on complex analysis.   In our paper we work over an arbitrary field <img src='https://s0.wp.com/latex.php?latex=k.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k.' title='k.' class='latex' /></p>
<p>The simplest possible signal processor is a rock, which takes the &#039;input&#039; given by the force <img src='https://s0.wp.com/latex.php?latex=F&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='F' title='F' class='latex' /> on the rock and produces as &#039;output&#039; the rock&#039;s position <img src='https://s0.wp.com/latex.php?latex=q.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='q.' title='q.' class='latex' />  Thanks to Newton&#039;s second law <img src='https://s0.wp.com/latex.php?latex=F%3Dma%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='F=ma,' title='F=ma,' class='latex' /> we can describe this using a signal-flow diagram:</p>
<div align="center">
<img width="100" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/signal_flow_diagram_F=ma.jpg" />
</div>
<p>Here composition of morphisms is drawn in the usual way, by attaching the output wire of one morphism to the input wire of the next.</p>
<p>To build more interesting machines we need more building blocks, such as addition:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%2B+%3A+%28f%2Cg%29+%5Cmapsto+f+%2B+g+++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+ : (f,g) &#92;mapsto f + g   ' title='+ : (f,g) &#92;mapsto f + g   ' class='latex' /></p>
<p>and duplication:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CDelta+%3A++f+%5Cmapsto+%28f%2Cf%29++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Delta :  f &#92;mapsto (f,f)  ' title='&#92;Delta :  f &#92;mapsto (f,f)  ' class='latex' /></p>
<p>When these linear maps are written as matrices, their matrices are transposes of each other.  This is reflected in the string diagrams for addition and duplication:</p>
<div align="center">
<img width="350" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_addition_duplication.jpg" />
</div>
<p>The second is essentially an upside-down version of the first.  However, we draw addition as a dark triangle and duplication as a light one because we will later want another way to &#8216;turn addition upside-down&#8217; that does <i>not</i> give duplication.  As an added bonus, a light upside-down triangle resembles the Greek letter <img src='https://s0.wp.com/latex.php?latex=%5CDelta%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Delta,' title='&#92;Delta,' class='latex' /> the usual symbol for duplication.</p>
<p>While they are typically not considered worthy of mention in control theory, for completeness we must include two other building blocks.  One is the zero map from the zero-dimensional vector space <img src='https://s0.wp.com/latex.php?latex=%5C%7B0%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;{0&#92;}' title='&#92;{0&#92;}' class='latex' /> to our field <img src='https://s0.wp.com/latex.php?latex=k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k,' title='k,' class='latex' /> which we denote as <img src='https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0' title='0' class='latex' /> and draw as follows:</p>
<div align="center">
<img width="50" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_zero.jpg" />
</div>
<p>The other is the zero map from <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=%5C%7B0%5C%7D%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;{0&#92;},' title='&#92;{0&#92;},' class='latex' /> sometimes called &#8216;deletion&#8217;, which we denote as <img src='https://s0.wp.com/latex.php?latex=%21&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='!' title='!' class='latex' /> and draw thus:</p>
<div align="center">
<img width="50" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_deletion.jpg" />
</div>
<p>Just as the matrices for addition and duplication are transposes of each other, so are the matrices for zero and deletion, though they are rather degenerate, being <img src='https://s0.wp.com/latex.php?latex=1+%5Ctimes+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1 &#92;times 0' title='1 &#92;times 0' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=0+%5Ctimes+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0 &#92;times 1' title='0 &#92;times 1' class='latex' /> matrices, respectively.  Addition and zero make <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> into a <a href="http://en.wikipedia.org/wiki/Monoid_%28category_theory%29"><b>commutative monoid</b></a>, meaning that the following relations hold:</p>
<div align="center">
<img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_commutative_monoid.jpg" />
</div>
<p>The equation at right is the commutative law, and the crossing of strands is the <a href="http://en.wikipedia.org/wiki/Braided_monoidal_category">braiding</a>:</p>
<p><img src='https://s0.wp.com/latex.php?latex=B+%3A+%28f%2Cg%29+%5Cmapsto+%28g%2Cf%29++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='B : (f,g) &#92;mapsto (g,f)  ' title='B : (f,g) &#92;mapsto (g,f)  ' class='latex' /></p>
<p>by which we switch two signals.   In fact this braiding is a <a href="http://en.wikipedia.org/wiki/Symmetric_monoidal_category">symmetry</a>, so it does not matter which strand goes over which:</p>
<div align="center">
<img width="250" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_symmetry.jpg" />
</div>
<p>Dually, duplication and deletion make <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> into a cocommutative <a href="http://ncatlab.org/nlab/show/comonoid"><b>comonoid</b></a>.  This means that if we reflect the equations obeyed by addition and zero across the horizontal axis and turn dark operations into light ones, we obtain another set of valid equations:</p>
<div align="center">
<img width="450" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_cocommutative_comonoid.jpg" />
</div>
<p>There are also relations between the monoid and comonoid operations.  For example, adding two signals and then duplicating the result gives the same output as duplicating each signal and then adding the results:</p>
<div align="center">
<img width="400" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_bimonoid_multiplication_comultiplication.jpg" />
</div>
<p>This diagram is familiar in the theory of <a href="http://en.wikipedia.org/wiki/Hopf_algebra">Hopf algebras</a>, or more generally <a href="http://en.wikipedia.org/wiki/Bialgebra">bialgebras</a>.  Here it is an example of the fact that the monoid operations on <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> are comonoid homomorphisms&mdash;or equivalently, the comonoid operations are monoid homomorphisms.</p>
<p>We summarize this situation by saying that <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> is a <b>bimonoid</b>.  These are all the bimonoid laws, drawn as diagrams:</p>
<div align="center">
<img width="200" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_bimonoid_1.jpg" /><br />
<img width="450" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_bimonoid_2.jpg" />
</div>
<p>The last equation means we can actually make the diagram at left disappear, since it equals the identity morphism on the 0-dimensional vector space, which is drawn as <i>nothing</i>.</p>
<p>So far all our string diagrams denote linear maps.  We can treat these as morphisms in the category <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k,' title='&#92;mathrm{FinVect}_k,' class='latex' /> where objects are finite-dimensional vector spaces over a field <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> and morphisms are linear maps.  This category is equivalent to the category where the only objects are vector spaces <img src='https://s0.wp.com/latex.php?latex=k%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k^n' title='k^n' class='latex' /> for <img src='https://s0.wp.com/latex.php?latex=n+%5Cge+0%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n &#92;ge 0,' title='n &#92;ge 0,' class='latex' /> and then morphisms can be seen as <img src='https://s0.wp.com/latex.php?latex=n+%5Ctimes+m&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n &#92;times m' title='n &#92;times m' class='latex' /> matrices.  The space of signals is a vector space <img src='https://s0.wp.com/latex.php?latex=V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='V' title='V' class='latex' /> over <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> which may not be finite-dimensional, but this does not cause a problem: an <img src='https://s0.wp.com/latex.php?latex=n+%5Ctimes+m&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n &#92;times m' title='n &#92;times m' class='latex' /> matrix with entries in <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> still defines a linear map from <img src='https://s0.wp.com/latex.php?latex=V%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='V^n' title='V^n' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=V%5Em&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='V^m' title='V^m' class='latex' /> in a functorial way.</p>
<p>In applications of string diagrams to quantum theory, we make <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k' title='&#92;mathrm{FinVect}_k' class='latex' /> into a symmetric monoidal category using the tensor product of vector spaces.  In control theory, we instead make <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k' title='&#92;mathrm{FinVect}_k' class='latex' /> into a symmetric monoidal category using the <i>direct sum</i> of vector spaces.  In Lemma 1 of our paper we prove that for any field <img src='https://s0.wp.com/latex.php?latex=k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k,' title='k,' class='latex' /> <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k' title='&#92;mathrm{FinVect}_k' class='latex' /> with direct sum is generated as a symmetric monoidal category by the one object <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> together with these morphisms:</p>
<div align="center">
<img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generators_FinVect.jpg" />
</div>
<p>where <img src='https://s0.wp.com/latex.php?latex=c+%5Cin+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c &#92;in k' title='c &#92;in k' class='latex' /> is arbitrary.</p>
<p>However, these generating morphisms obey some unexpected relations!  For example, we have:</p>
<div align="center">
<img width="400" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_braiding.jpg" />
</div>
<p>Thus, it is important to find a complete set of relations obeyed by these generating morphisms, thus obtaining a presentation of <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k' title='&#92;mathrm{FinVect}_k' class='latex' /> as a symmetric monoidal category.  We do this in Theorem 2.  In brief, these relations say:</p>
<p>(1) <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%2B%2C+0%2C+%5CDelta%2C+%21%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, +, 0, &#92;Delta, !)' title='(k, +, 0, &#92;Delta, !)' class='latex' /> is a bicommutative bimonoid;</p>
<p>(2) the rig operations of <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> can be recovered from the generating morphisms;</p>
<p>(3) all the generating morphisms commute with scalar multiplication.</p>
<p>Here item (2) means that <img src='https://s0.wp.com/latex.php?latex=%2B%2C+%5Ccdot%2C+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+, &#92;cdot, 0' title='+, &#92;cdot, 0' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1' title='1' class='latex' /> in the field <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> can be expressed in terms of signal-flow diagrams as follows:</p>
<div align="center">
<img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_rig_1.jpg" />
</div>
<div align="center">
<img src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_rig_2.jpg" />
</div>
<p>Multiplicative inverses cannot be so expressed, so our signal-flow diagrams so far do not know that <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> is a field.  Additive inverses also cannot be expressed in this way.  So, we expect that a version of Theorem 2 will hold whenever <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> is a mere <a href="http://en.wikipedia.org/wiki/Semiring">rig</a>: that is, a &#8216;ring without negatives&#8217;, like the natural numbers.  The one change is that instead of working with vector spaces, we should work with finitely presented free <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' />-modules.</p>
<p>Item (3), the fact that all our generating morphisms commute with scalar multiplication, amounts to these diagrammatic equations:</p>
<div align="center">
<img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_linearity_1.jpg" /></p>
<p><img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_linearity_2.jpg" />
</div>
<p>While Theorem 2 is a step towards understanding the category-theoretic underpinnings of control theory, it does not treat signal-flow diagrams that include &#8216;feedback&#8217;.  Feedback is one of the most fundamental concepts in control theory because a control system without feedback may be highly sensitive to disturbances or unmodeled behavior.  Feedback allows these uncontrolled behaviors to be mollified.  As a string diagram, a basic feedback system might look schematically like this:</p>
<div align="center">
<img width="300" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/signal_flow_diagram_feedback_loop.jpg" />
</div>
<p>The user inputs a &#8216;reference&#8217; signal, which is fed into a controller, whose output is fed into a system, which control theorists call a &#8216;plant&#8217;, which in turn produces its own output.  But then the system&#8217;s output is duplicated, and one copy is fed into a sensor, whose output is added (or if we prefer, subtracted) from the reference signal.</p>
<p>In string diagrams&mdash;unlike in the usual thinking on control theory&mdash;it is essential to be  able to read any diagram from top to bottom as a composite of tensor products of generating morphisms.   Thus, to incorporate the idea of feedback, we need two more generating morphisms.  These are the &#8216;cup&#8217;:</p>
<div align="center">
<img width="150" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_cup.jpg" />
</div>
<p>and &#8216;cap&#8217;:</p>
<div align="center">
<img width="150" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_cap.jpg" />
</div>
<p>These are not maps: they are relations.  The cup imposes the relation that its two inputs be equal, while the cap does the same for its two outputs.  This is a way of describing how a signal flows around a bend in a wire.</p>
<p>To make this precise, we use a category called <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k.' title='&#92;mathrm{FinRel}_k.' class='latex' />  An object of this category is a finite-dimensional vector space over <img src='https://s0.wp.com/latex.php?latex=k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k,' title='k,' class='latex' /> while a morphism from <img src='https://s0.wp.com/latex.php?latex=U&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='U' title='U' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=V%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='V,' title='V,' class='latex' /> denoted <img src='https://s0.wp.com/latex.php?latex=L+%3A+U+%5Crightharpoonup+V%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L : U &#92;rightharpoonup V,' title='L : U &#92;rightharpoonup V,' class='latex' /> is a <b>linear relation</b>, meaning a linear subspace</p>
<p><img src='https://s0.wp.com/latex.php?latex=L+%5Csubseteq+U+%5Coplus+V+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L &#92;subseteq U &#92;oplus V ' title='L &#92;subseteq U &#92;oplus V ' class='latex' /></p>
<p>In particular, when <img src='https://s0.wp.com/latex.php?latex=k+%3D+%5Cmathbb%7BR%7D%28s%29%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k = &#92;mathbb{R}(s),' title='k = &#92;mathbb{R}(s),' class='latex' /> a linear relation <img src='https://s0.wp.com/latex.php?latex=L+%3A+k%5Em+%5Cto+k%5En&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L : k^m &#92;to k^n' title='L : k^m &#92;to k^n' class='latex' /> is just an arbitrary system of constant-coefficient linear ordinary differential equations relating <img src='https://s0.wp.com/latex.php?latex=m&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='m' title='m' class='latex' /> input variables and <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' /> output variables.</p>
<p>Since the direct sum <img src='https://s0.wp.com/latex.php?latex=U+%5Coplus+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='U &#92;oplus V' title='U &#92;oplus V' class='latex' /> is also the cartesian product of <img src='https://s0.wp.com/latex.php?latex=U&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='U' title='U' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=V%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='V,' title='V,' class='latex' /> a linear relation is indeed a relation in the usual sense, but with the property that if <img src='https://s0.wp.com/latex.php?latex=u+%5Cin+U&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='u &#92;in U' title='u &#92;in U' class='latex' /> is  related to <img src='https://s0.wp.com/latex.php?latex=v+%5Cin+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='v &#92;in V' title='v &#92;in V' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=u%27+%5Cin+U&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='u&#039; &#92;in U' title='u&#039; &#92;in U' class='latex' /> is related to <img src='https://s0.wp.com/latex.php?latex=v%27+%5Cin+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='v&#039; &#92;in V' title='v&#039; &#92;in V' class='latex' /> then <img src='https://s0.wp.com/latex.php?latex=cu+%2B+c%27u%27&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='cu + c&#039;u&#039;' title='cu + c&#039;u&#039;' class='latex' /> is related to <img src='https://s0.wp.com/latex.php?latex=cv+%2B+c%27v%27&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='cv + c&#039;v&#039;' title='cv + c&#039;v&#039;' class='latex' /> whenever <img src='https://s0.wp.com/latex.php?latex=c%2Cc%27+%5Cin+k.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c,c&#039; &#92;in k.' title='c,c&#039; &#92;in k.' class='latex' /></p>
<p>We compose linear relations <img src='https://s0.wp.com/latex.php?latex=L+%3A+U+%5Crightharpoonup+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L : U &#92;rightharpoonup V' title='L : U &#92;rightharpoonup V' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=L%27+%3A+V+%5Crightharpoonup+W&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L&#039; : V &#92;rightharpoonup W' title='L&#039; : V &#92;rightharpoonup W' class='latex' /> as follows:</p>
<p><img src='https://s0.wp.com/latex.php?latex=L%27L+%3D+%5C%7B%28u%2Cw%29+%5Ccolon+%5C%3B+%5Cexists%5C%3B+v+%5Cin+V+%5C%3B%5C%3B+%28u%2Cv%29+%5Cin+L+%5Ctextrm%7B+and+%7D+%28v%2Cw%29+%5Cin+L%27%5C%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L&#039;L = &#92;{(u,w) &#92;colon &#92;; &#92;exists&#92;; v &#92;in V &#92;;&#92;; (u,v) &#92;in L &#92;textrm{ and } (v,w) &#92;in L&#039;&#92;} ' title='L&#039;L = &#92;{(u,w) &#92;colon &#92;; &#92;exists&#92;; v &#92;in V &#92;;&#92;; (u,v) &#92;in L &#92;textrm{ and } (v,w) &#92;in L&#039;&#92;} ' class='latex' /></p>
<p>Any linear map <img src='https://s0.wp.com/latex.php?latex=f+%3A+U+%5Cto+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f : U &#92;to V' title='f : U &#92;to V' class='latex' /> gives a linear relation <img src='https://s0.wp.com/latex.php?latex=F+%3A+U+%5Crightharpoonup+V%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='F : U &#92;rightharpoonup V,' title='F : U &#92;rightharpoonup V,' class='latex' /> namely the graph of that map:</p>
<p><img src='https://s0.wp.com/latex.php?latex=F+%3D+%5C%7B+%28u%2Cf%28u%29%29+%3A+u+%5Cin+U+%5C%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='F = &#92;{ (u,f(u)) : u &#92;in U &#92;} ' title='F = &#92;{ (u,f(u)) : u &#92;in U &#92;} ' class='latex' /></p>
<p>Composing linear maps thus becomes a special case of composing linear relations, so <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k' title='&#92;mathrm{FinVect}_k' class='latex' /> becomes a subcategory of <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k.' title='&#92;mathrm{FinRel}_k.' class='latex' />  Furthermore, we can make <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> into a monoidal category using direct sums, and it becomes symmetric monoidal using the braiding already present in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k.' title='&#92;mathrm{FinVect}_k.' class='latex' /></p>
<p>In these terms, the <b>cup</b> is the linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Ccup+%3A+k%5E2+%5Crightharpoonup+%5C%7B0%5C%7D+++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cup : k^2 &#92;rightharpoonup &#92;{0&#92;}   ' title='&#92;cup : k^2 &#92;rightharpoonup &#92;{0&#92;}   ' class='latex' /></p>
<p>given by</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Ccup+%5C%3B+%3D+%5C%3B+%5C%7B+%28x%2Cx%2C0%29+%3A+x+%5Cin+k+++%5C%7D+%5C%3B+%5Csubseteq+%5C%3B+k%5E2+%5Coplus+%5C%7B0%5C%7D+++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cup &#92;; = &#92;; &#92;{ (x,x,0) : x &#92;in k   &#92;} &#92;; &#92;subseteq &#92;; k^2 &#92;oplus &#92;{0&#92;}   ' title='&#92;cup &#92;; = &#92;; &#92;{ (x,x,0) : x &#92;in k   &#92;} &#92;; &#92;subseteq &#92;; k^2 &#92;oplus &#92;{0&#92;}   ' class='latex' /></p>
<p>while the <b>cap</b> is the linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Ccap+%3A+%5C%7B0%5C%7D+%5Crightharpoonup+k%5E2++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cap : &#92;{0&#92;} &#92;rightharpoonup k^2  ' title='&#92;cap : &#92;{0&#92;} &#92;rightharpoonup k^2  ' class='latex' /></p>
<p>given by</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Ccap+%5C%3B+%3D+%5C%3B+%5C%7B+%280%2Cx%2Cx%29+%3A+x+%5Cin+k+++%5C%7D+%5C%3B+%5Csubseteq+%5C%3B+%5C%7B0%5C%7D+%5Coplus+k%5E2++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cap &#92;; = &#92;; &#92;{ (0,x,x) : x &#92;in k   &#92;} &#92;; &#92;subseteq &#92;; &#92;{0&#92;} &#92;oplus k^2  ' title='&#92;cap &#92;; = &#92;; &#92;{ (0,x,x) : x &#92;in k   &#92;} &#92;; &#92;subseteq &#92;; &#92;{0&#92;} &#92;oplus k^2  ' class='latex' /></p>
<p>These obey the <b>zigzag relations</b>:</p>
<div align="center">
<img width="450" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_zigzag.jpg" />
</div>
<p>Thus, they make <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> into a compact closed category where <img src='https://s0.wp.com/latex.php?latex=k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k,' title='k,' class='latex' /> and thus every object, is its own dual.</p>
<p>Besides feedback, one of the things that make the cap and cup useful is that they allow any morphism <img src='https://s0.wp.com/latex.php?latex=L+%3A+U+%5Crightharpoonup+V+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L : U &#92;rightharpoonup V ' title='L : U &#92;rightharpoonup V ' class='latex' /> to be &#8216;plugged in backwards&#8217; and thus &#8216;turned around&#8217;.  For instance, turning around integration:</p>
<div align="center">
<img width="150" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/signal_flow_diagram_flipped_integration.jpg" />
</div>
<p>we obtain differentiation.  In general, using caps and cups we can turn around any linear relation <img src='https://s0.wp.com/latex.php?latex=L+%3A+U+%5Crightharpoonup+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L : U &#92;rightharpoonup V' title='L : U &#92;rightharpoonup V' class='latex' /> and obtain a linear relation <img src='https://s0.wp.com/latex.php?latex=L%5E%5Cdagger+%3A+V+%5Crightharpoonup+U%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L^&#92;dagger : V &#92;rightharpoonup U,' title='L^&#92;dagger : V &#92;rightharpoonup U,' class='latex' /> called the <b>adjoint</b> of <img src='https://s0.wp.com/latex.php?latex=L%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L,' title='L,' class='latex' /> which turns out to given by</p>
<p><img src='https://s0.wp.com/latex.php?latex=L%5E%5Cdagger+%3D+%5C%7B%28v%2Cu%29+%3A+%28u%2Cv%29+%5Cin+L+%5C%7D++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L^&#92;dagger = &#92;{(v,u) : (u,v) &#92;in L &#92;}  ' title='L^&#92;dagger = &#92;{(v,u) : (u,v) &#92;in L &#92;}  ' class='latex' /></p>
<p>For example, if <img src='https://s0.wp.com/latex.php?latex=c+%5Cin+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c &#92;in k' title='c &#92;in k' class='latex' /> is nonzero, the adjoint of scalar multiplication by <img src='https://s0.wp.com/latex.php?latex=c&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c' title='c' class='latex' /> is multiplication by <img src='https://s0.wp.com/latex.php?latex=c%5E%7B-1%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c^{-1}' title='c^{-1}' class='latex' />:</p>
<div align="center">
<img width="250" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_inverse.jpg" />
</div>
<p>Thus, caps and cups allow us to express multiplicative inverses in terms of signal-flow diagrams! One might think that a problem arises when when <img src='https://s0.wp.com/latex.php?latex=c+%3D+0%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c = 0,' title='c = 0,' class='latex' /> but no: the adjoint of scalar multiplication by <img src='https://s0.wp.com/latex.php?latex=0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0' title='0' class='latex' /> is</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5C%7B%280%2Cx%29+%3A+x+%5Cin+k+%5C%7D+%5Csubseteq+k+%5Coplus+k+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;{(0,x) : x &#92;in k &#92;} &#92;subseteq k &#92;oplus k ' title='&#92;{(0,x) : x &#92;in k &#92;} &#92;subseteq k &#92;oplus k ' class='latex' /></p>
<p>In Lemma 3 we show that <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> is generated, as a symmetric monoidal category, by these morphisms:</p>
<div align="center">
<img width="450" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generators_FinRel.jpg" />
</div>
<p>where <img src='https://s0.wp.com/latex.php?latex=c+%5Cin+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c &#92;in k' title='c &#92;in k' class='latex' /> is arbitrary.</p>
<p>In Theorem 4 we find a complete set of relations obeyed by these generating morphisms,thus giving a presentation of <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> as a symmetric monoidal category.  To describe these relations, it is useful to work with adjoints of the generating morphisms.  We have already seen that the adjoint of scalar multiplication by <img src='https://s0.wp.com/latex.php?latex=c&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c' title='c' class='latex' /> is scalar multiplication by <img src='https://s0.wp.com/latex.php?latex=c%5E%7B-1%7D%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c^{-1},' title='c^{-1},' class='latex' /> except when <img src='https://s0.wp.com/latex.php?latex=c+%3D+0.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c = 0.' title='c = 0.' class='latex' />  Taking adjoints of the other four generating morphisms of <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinVect%7D_k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinVect}_k,' title='&#92;mathrm{FinVect}_k,' class='latex' /> we obtain four important but perhaps unfamiliar linear relations.  We draw these as &#8216;turned around&#8217; versions of the original generating morphisms:</p>
<p>&bull; <b>Coaddition</b> is a linear relation from <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=k%5E2&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k^2' title='k^2' class='latex' /> that holds when the two outputs sum to the input:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%2B%5E%5Cdagger+%3A+k+%5Crightharpoonup+k%5E2+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+^&#92;dagger : k &#92;rightharpoonup k^2 ' title='+^&#92;dagger : k &#92;rightharpoonup k^2 ' class='latex' /></p>
<p><img src='https://s0.wp.com/latex.php?latex=%2B%5E%5Cdagger+%3D+%5C%7B%28x%2Cy%2Cz%29++%3A+%5C%3B+x+%3D+y+%2B+z+%5C%7D+%5Csubseteq+k+%5Coplus+k%5E2+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+^&#92;dagger = &#92;{(x,y,z)  : &#92;; x = y + z &#92;} &#92;subseteq k &#92;oplus k^2 ' title='+^&#92;dagger = &#92;{(x,y,z)  : &#92;; x = y + z &#92;} &#92;subseteq k &#92;oplus k^2 ' class='latex' /></p>
<div align="center">
<img width="350" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_coaddition.jpg" />
</div>
<p>&bull; <b>Cozero</b> is a linear relation from <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=%5C%7B0%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;{0&#92;}' title='&#92;{0&#92;}' class='latex' /> that holds when the input is zero:</p>
<p><img src='https://s0.wp.com/latex.php?latex=0%5E%5Cdagger+%3A+k+%5Crightharpoonup+%5C%7B0%5C%7D+++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0^&#92;dagger : k &#92;rightharpoonup &#92;{0&#92;}   ' title='0^&#92;dagger : k &#92;rightharpoonup &#92;{0&#92;}   ' class='latex' /></p>
<p><img src='https://s0.wp.com/latex.php?latex=0%5E%5Cdagger+%3D+%5C%7B+%280%2C0%29%5C%7D+%5Csubseteq+k+%5Coplus+%5C%7B0%5C%7D+++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0^&#92;dagger = &#92;{ (0,0)&#92;} &#92;subseteq k &#92;oplus &#92;{0&#92;}   ' title='0^&#92;dagger = &#92;{ (0,0)&#92;} &#92;subseteq k &#92;oplus &#92;{0&#92;}   ' class='latex' /></p>
<div align="center">
<img width="200" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_cozero.jpg" />
</div>
<p>&bull; <b>Coduplication</b> is a linear relation from <img src='https://s0.wp.com/latex.php?latex=k%5E2&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k^2' title='k^2' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> that holds when the two inputs both equal the output:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CDelta%5E%5Cdagger+%3A+k%5E2+%5Crightharpoonup+k+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Delta^&#92;dagger : k^2 &#92;rightharpoonup k ' title='&#92;Delta^&#92;dagger : k^2 &#92;rightharpoonup k ' class='latex' /></p>
<p><img src='https://s0.wp.com/latex.php?latex=%5CDelta%5E%5Cdagger+%3D+%5C%7B%28x%2Cy%2Cz%29++%3A+%5C%3B+x+%3D+y+%3D+z+%5C%7D+%5Csubseteq+k%5E2+%5Coplus+k+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Delta^&#92;dagger = &#92;{(x,y,z)  : &#92;; x = y = z &#92;} &#92;subseteq k^2 &#92;oplus k ' title='&#92;Delta^&#92;dagger = &#92;{(x,y,z)  : &#92;; x = y = z &#92;} &#92;subseteq k^2 &#92;oplus k ' class='latex' /></p>
<div align="center">
<img width="350" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_coduplication.jpg" />
</div>
<p>&bull; <b>Codeletion</b> is a linear relation from <img src='https://s0.wp.com/latex.php?latex=%5C%7B0%5C%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;{0&#92;}' title='&#92;{0&#92;}' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> that holds always:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%21%5E%5Cdagger+%3A+%5C%7B0%5C%7D+%5Crightharpoonup+k+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='!^&#92;dagger : &#92;{0&#92;} &#92;rightharpoonup k ' title='!^&#92;dagger : &#92;{0&#92;} &#92;rightharpoonup k ' class='latex' /></p>
<p><img src='https://s0.wp.com/latex.php?latex=%21%5E%5Cdagger+%3D+%5C%7B%280%2Cx%29+%5C%7D+%5Csubseteq+%5C%7B0%5C%7D+%5Coplus+k+++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='!^&#92;dagger = &#92;{(0,x) &#92;} &#92;subseteq &#92;{0&#92;} &#92;oplus k   ' title='!^&#92;dagger = &#92;{(0,x) &#92;} &#92;subseteq &#92;{0&#92;} &#92;oplus k   ' class='latex' /></p>
<div align="center">
<img width="200" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/generator_codeletion.jpg" />
</div>
<p>Since <img src='https://s0.wp.com/latex.php?latex=%2B%5E%5Cdagger%2C0%5E%5Cdagger%2C%5CDelta%5E%5Cdagger&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+^&#92;dagger,0^&#92;dagger,&#92;Delta^&#92;dagger' title='+^&#92;dagger,0^&#92;dagger,&#92;Delta^&#92;dagger' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=%21%5E%5Cdagger&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='!^&#92;dagger' title='!^&#92;dagger' class='latex' /> automatically obey turned-around versions of the relations obeyed by <img src='https://s0.wp.com/latex.php?latex=%2B%2C0%2C%5CDelta&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+,0,&#92;Delta' title='+,0,&#92;Delta' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=%21%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='!,' title='!,' class='latex' /> we see that <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> acquires a <i>second</i> bicommutative bimonoid structure when considered as an object in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k.' title='&#92;mathrm{FinRel}_k.' class='latex' /></p>
<p>Moreover, the four dark operations make <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> into a <a href="http://ncatlab.org/nlab/show/Frobenius+algebra#AlgebraCoalgebra">Frobenius monoid</a>.  This means that <img src='https://s0.wp.com/latex.php?latex=%28k%2C%2B%2C0%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k,+,0)' title='(k,+,0)' class='latex' /> is a monoid, <img src='https://s0.wp.com/latex.php?latex=%28k%2C%2B%5E%5Cdagger%2C+0%5E%5Cdagger%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k,+^&#92;dagger, 0^&#92;dagger)' title='(k,+^&#92;dagger, 0^&#92;dagger)' class='latex' /> is a comonoid, and the <b>Frobenius relation</b> holds:</p>
<p><img width="450" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_frobenius_addition.jpg" /></p>
<p>All three expressions in this equation are linear relations saying that the sum of the two inputs equal the sum of the two outputs.</p>
<p>The operation sending each linear relation to its adjoint extends to a contravariant functor</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdagger+%3A+%5Cmathrm%7BFinRel%7D_k%5C+%5Cto+%5Cmathrm%7BFinRel%7D_k+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;dagger : &#92;mathrm{FinRel}_k&#92; &#92;to &#92;mathrm{FinRel}_k ' title='&#92;dagger : &#92;mathrm{FinRel}_k&#92; &#92;to &#92;mathrm{FinRel}_k ' class='latex' /></p>
<p>which obeys a list of properties that are summarized by saying that <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> is a <a href="http://en.wikipedia.org/wiki/Dagger_compact_category">&dagger;-compact category</a>.  Because two of the operations in the Frobenius monoid <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%2B%2C0%2C%2B%5E%5Cdagger%2C0%5E%5Cdagger%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, +,0,+^&#92;dagger,0^&#92;dagger)' title='(k, +,0,+^&#92;dagger,0^&#92;dagger)' class='latex' /> are adjoints of the other two, it is a <b>&dagger;-Frobenius monoid</b>.</p>
<p>This Frobenius monoid is also <a href="http://ncatlab.org/nlab/show/Frobenius+algebra#special_frobenius_algebras">special</a>, meaning that<br />
comultiplication (in this case <img src='https://s0.wp.com/latex.php?latex=%2B%5E%5Cdagger&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+^&#92;dagger' title='+^&#92;dagger' class='latex' />) followed by multiplication (in this case <img src='https://s0.wp.com/latex.php?latex=%2B&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+' title='+' class='latex' />) equals the identity:</p>
<div align="center">
<img width="150" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_special_addition.jpg" />
</div>
<p>This Frobenius monoid is also commutative&mdash;and cocommutative, but for Frobenius monoids this follows from commutativity.</p>
<p>Starting around 2008, commutative special &dagger;-Frobenius monoids have become important in the categorical foundations of quantum theory, where they can be understood as &#8216;classical structures&#8217; for quantum systems.  The category <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinHilb%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinHilb}' title='&#92;mathrm{FinHilb}' class='latex' /> of finite-dimensional Hilbert spaces and linear maps is a &dagger;-compact category, where any linear map <img src='https://s0.wp.com/latex.php?latex=f+%3A+H+%5Cto+K&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f : H &#92;to K' title='f : H &#92;to K' class='latex' /> has an adjoint <img src='https://s0.wp.com/latex.php?latex=f%5E%5Cdagger+%3A+K+%5Cto+H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f^&#92;dagger : K &#92;to H' title='f^&#92;dagger : K &#92;to H' class='latex' /> given by</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Clangle+f%5E%5Cdagger+%5Cphi%2C+%5Cpsi+%5Crangle+%3D+%5Clangle+%5Cphi%2C+f+%5Cpsi+%5Crangle+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;langle f^&#92;dagger &#92;phi, &#92;psi &#92;rangle = &#92;langle &#92;phi, f &#92;psi &#92;rangle ' title='&#92;langle f^&#92;dagger &#92;phi, &#92;psi &#92;rangle = &#92;langle &#92;phi, f &#92;psi &#92;rangle ' class='latex' /></p>
<p>for all <img src='https://s0.wp.com/latex.php?latex=%5Cpsi+%5Cin+H%2C+%5Cphi+%5Cin+K+.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi &#92;in H, &#92;phi &#92;in K .' title='&#92;psi &#92;in H, &#92;phi &#92;in K .' class='latex' />  A commutative special &dagger;-Frobenius monoid in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinHilb%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinHilb}' title='&#92;mathrm{FinHilb}' class='latex' /> is then the same as a Hilbert space with a chosen orthonormal basis.  The reason is that given an orthonormal basis <img src='https://s0.wp.com/latex.php?latex=%5Cpsi_i+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi_i ' title='&#92;psi_i ' class='latex' /> for a finite-dimensional Hilbert space <img src='https://s0.wp.com/latex.php?latex=H%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H,' title='H,' class='latex' /> we can make <img src='https://s0.wp.com/latex.php?latex=H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H' title='H' class='latex' /> into a  commutative special &dagger;-Frobenius monoid with multiplication <img src='https://s0.wp.com/latex.php?latex=m+%3A+H+%5Cotimes+H+%5Cto+H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='m : H &#92;otimes H &#92;to H' title='m : H &#92;otimes H &#92;to H' class='latex' /> given by</p>
<p><img src='https://s0.wp.com/latex.php?latex=m+%28%5Cpsi_i+%5Cotimes+%5Cpsi_j+%29+%3D+%5Cleft%5C%7B+%5Cbegin%7Barray%7D%7Bcl%7D++%5Cpsi_i+%26+i+%3D+j+%5C%5C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++0+%26+i+%5Cne+j++%5Cend%7Barray%7D%5Cright.++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='m (&#92;psi_i &#92;otimes &#92;psi_j ) = &#92;left&#92;{ &#92;begin{array}{cl}  &#92;psi_i &amp; i = j &#92;&#92;                                                                 0 &amp; i &#92;ne j  &#92;end{array}&#92;right.  ' title='m (&#92;psi_i &#92;otimes &#92;psi_j ) = &#92;left&#92;{ &#92;begin{array}{cl}  &#92;psi_i &amp; i = j &#92;&#92;                                                                 0 &amp; i &#92;ne j  &#92;end{array}&#92;right.  ' class='latex' /></p>
<p>and unit <img src='https://s0.wp.com/latex.php?latex=i+%3A+%5Cmathbb%7BC%7D+%5Cto+H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i : &#92;mathbb{C} &#92;to H' title='i : &#92;mathbb{C} &#92;to H' class='latex' /> given by</p>
<p><img src='https://s0.wp.com/latex.php?latex=i%281%29+%3D+%5Csum_i+%5Cpsi_i++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i(1) = &#92;sum_i &#92;psi_i  ' title='i(1) = &#92;sum_i &#92;psi_i  ' class='latex' /></p>
<p>The comultiplication <img src='https://s0.wp.com/latex.php?latex=m%5E%5Cdagger&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='m^&#92;dagger' title='m^&#92;dagger' class='latex' /> duplicates basis states:</p>
<p><img src='https://s0.wp.com/latex.php?latex=m%5E%5Cdagger%28%5Cpsi_i%29+%3D+%5Cpsi_i+%5Cotimes+%5Cpsi_i+++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='m^&#92;dagger(&#92;psi_i) = &#92;psi_i &#92;otimes &#92;psi_i   ' title='m^&#92;dagger(&#92;psi_i) = &#92;psi_i &#92;otimes &#92;psi_i   ' class='latex' /></p>
<p>Conversely, any commutative special &dagger;-Frobenius monoid in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinHilb%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinHilb}' title='&#92;mathrm{FinHilb}' class='latex' /> arises this way.</p>
<p>Considerably earlier, around 1995, commutative Frobenius monoids were recognized as important in topological quantum field theory.  The reason, ultimately, is that the free symmetric monoidal category on a commutative Frobenius monoid is <img src='https://s0.wp.com/latex.php?latex=2%5Cmathrm%7BCob%7D%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='2&#92;mathrm{Cob},' title='2&#92;mathrm{Cob},' class='latex' /> the category with 2-dimensional oriented cobordisms as morphisms.  But the free symmetric monoidal category on a commutative <i>special</i> Frobenius monoid was worked out even earlier: it is the category with finite sets as objects, where a morphism <img src='https://s0.wp.com/latex.php?latex=f+%3A+X+%5Cto+Y&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f : X &#92;to Y' title='f : X &#92;to Y' class='latex' /> is an isomorphism class of cospans</p>
<p><img src='https://s0.wp.com/latex.php?latex=X+%5Clongrightarrow+S+%5Clongleftarrow+Y++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X &#92;longrightarrow S &#92;longleftarrow Y  ' title='X &#92;longrightarrow S &#92;longleftarrow Y  ' class='latex' /></p>
<p>This category can be made into a &dagger;-compact category in an obvious way, and then the 1-element set becomes a commutative special &dagger;-Frobenius monoid.</p>
<p>For all these reasons, it is interesting to find a commutative special &dagger;-Frobenius monoid lurking at the heart of control theory!  However, the Frobenius monoid here has yet another property, which is more unusual.  Namely, the unit <img src='https://s0.wp.com/latex.php?latex=0+%3A+%5C%7B0%5C%7D+%5Crightharpoonup+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0 : &#92;{0&#92;} &#92;rightharpoonup k' title='0 : &#92;{0&#92;} &#92;rightharpoonup k' class='latex' /> followed by the counit <img src='https://s0.wp.com/latex.php?latex=0%5E%5Cdagger+%3A+k+%5Crightharpoonup+%5C%7B0%5C%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0^&#92;dagger : k &#92;rightharpoonup &#92;{0&#92;} ' title='0^&#92;dagger : k &#92;rightharpoonup &#92;{0&#92;} ' class='latex' /> is the identity:</p>
<div align="center">
<img width="100" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_extra_addition.jpg" />
</div>
<p>We call a special Frobenius monoid that also obeys this extra law <b>extra-special</b>.  One can check that the free symmetric monoidal category on a commutative extra-special Frobenius monoid is the category with finite sets as objects, where a morphism <img src='https://s0.wp.com/latex.php?latex=f+%3A+X+%5Cto+Y&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f : X &#92;to Y' title='f : X &#92;to Y' class='latex' /> is an equivalence relation on the disjoint union <img src='https://s0.wp.com/latex.php?latex=X+%5Csqcup+Y%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X &#92;sqcup Y,' title='X &#92;sqcup Y,' class='latex' /> and we compose <img src='https://s0.wp.com/latex.php?latex=f+%3A+X+%5Cto+Y&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f : X &#92;to Y' title='f : X &#92;to Y' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=g+%3A+Y+%5Cto+Z&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='g : Y &#92;to Z' title='g : Y &#92;to Z' class='latex' /> by letting <img src='https://s0.wp.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f' title='f' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=g&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='g' title='g' class='latex' /> generate an equivalence relation on <img src='https://s0.wp.com/latex.php?latex=X+%5Csqcup+Y+%5Csqcup+Z&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X &#92;sqcup Y &#92;sqcup Z' title='X &#92;sqcup Y &#92;sqcup Z' class='latex' /> and then restricting this to <img src='https://s0.wp.com/latex.php?latex=X+%5Csqcup+Z.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X &#92;sqcup Z.' title='X &#92;sqcup Z.' class='latex' /></p>
<p>As if this were not enough, the light operations share many properties with the dark ones.  In particular, these operations make <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> into a commutative extra-special &dagger;-Frobenius monoid in a second way.  In summary:</p>
<p>&bull; <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%2B%2C+0%2C+%5CDelta%2C+%21%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, +, 0, &#92;Delta, !)' title='(k, +, 0, &#92;Delta, !)' class='latex' /> is a bicommutative bimonoid;</p>
<p>&bull; <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%5CDelta%5E%5Cdagger%2C+%21%5E%5Cdagger%2C+%2B%5E%5Cdagger%2C+0%5E%5Cdagger%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, &#92;Delta^&#92;dagger, !^&#92;dagger, +^&#92;dagger, 0^&#92;dagger)' title='(k, &#92;Delta^&#92;dagger, !^&#92;dagger, +^&#92;dagger, 0^&#92;dagger)' class='latex' /> is a bicommutative bimonoid;</p>
<p>&bull; <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%2B%2C+0%2C+%2B%5E%5Cdagger%2C+0%5E%5Cdagger%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, +, 0, +^&#92;dagger, 0^&#92;dagger)' title='(k, +, 0, +^&#92;dagger, 0^&#92;dagger)' class='latex' /> is a commutative extra-special &dagger;-Frobenius monoid;</p>
<p>&bull; <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%5CDelta%5E%5Cdagger%2C+%21%5E%5Cdagger%2C+%5CDelta%2C+%21%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, &#92;Delta^&#92;dagger, !^&#92;dagger, &#92;Delta, !)' title='(k, &#92;Delta^&#92;dagger, !^&#92;dagger, &#92;Delta, !)' class='latex' /> is a commutative extra-special &dagger;-Frobenius monoid.</p>
<p>It should be no surprise that with all these structures built in, signal-flow diagrams are a powerful method of designing processes.</p>
<p>However, it is surprising that most of these structures are present in a seemingly very different context: the so-called <a href="http://arxiv.org/abs/0906.4725">ZX calculus</a>, a diagrammatic formalism for working with complementary observables in quantum theory.  This arises naturally when one has an <img src='https://s0.wp.com/latex.php?latex=n&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='n' title='n' class='latex' />-dimensional Hilbert space $H$ with two orthonormal bases <img src='https://s0.wp.com/latex.php?latex=%5Cpsi_i%2C+%5Cphi_i+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi_i, &#92;phi_i ' title='&#92;psi_i, &#92;phi_i ' class='latex' /> that are <a href="http://en.wikipedia.org/wiki/Mutually_unbiased_bases">mutually unbiased</a>, meaning that</p>
<p><img src='https://s0.wp.com/latex.php?latex=%7C%5Clangle+%5Cpsi_i%2C+%5Cphi_j+%5Crangle%7C%5E2+%3D+%5Cdisplaystyle%7B%5Cfrac%7B1%7D%7Bn%7D%7D++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='|&#92;langle &#92;psi_i, &#92;phi_j &#92;rangle|^2 = &#92;displaystyle{&#92;frac{1}{n}}  ' title='|&#92;langle &#92;psi_i, &#92;phi_j &#92;rangle|^2 = &#92;displaystyle{&#92;frac{1}{n}}  ' class='latex' /></p>
<p>for all <img src='https://s0.wp.com/latex.php?latex=1+%5Cle+i%2C+j+%5Cle+n.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1 &#92;le i, j &#92;le n.' title='1 &#92;le i, j &#92;le n.' class='latex' />  Each orthonormal basis makes <img src='https://s0.wp.com/latex.php?latex=H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H' title='H' class='latex' /> into commutative special &dagger;-Frobenius monoid in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinHilb%7D.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinHilb}.' title='&#92;mathrm{FinHilb}.' class='latex' />  Moreover, the multiplication and unit of either one of these Frobenius monoids fits together with the comultiplication and counit of the other to form a bicommutative bimonoid.  So, we have all the structure present in the list above&mdash;except that these Frobenius monoids are only extra-special if <img src='https://s0.wp.com/latex.php?latex=H&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='H' title='H' class='latex' /> is 1-dimensional.</p>
<p>The field <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> is also a 1-dimensional vector space, but this is a red herring: in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> <i>every</i> finite-dimensional vector space naturally acquires all four structures listed above, since addition, zero, duplication and deletion are well-defined and obey all the relations we have discussed.  Jason and I focus on <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> in our paper simply because it generates all the objects <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> via direct sum.</p>
<p>Finally, in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> the cap and cup are related to the light and dark operations as follows:</p>
<div align="center">
<img width="200" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_cap.jpg" /></p>
<p><img width="230" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_cup.jpg" />
</div>
<p>Note the curious factor of <img src='https://s0.wp.com/latex.php?latex=-1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='-1' title='-1' class='latex' /> in the second equation, which breaks some of the symmetry we have seen so far.  This equation says that two elements <img src='https://s0.wp.com/latex.php?latex=x%2C+y+%5Cin+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x, y &#92;in k' title='x, y &#92;in k' class='latex' /> sum to zero if and only if <img src='https://s0.wp.com/latex.php?latex=-x+%3D+y.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='-x = y.' title='-x = y.' class='latex' />  Using the zigzag relations, the two equations above give</p>
<div align="center">
<img width="200" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/signal_flow/relation_cap_cup.jpg" />
</div>
<p>We thus see that in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k,' title='&#92;mathrm{FinRel}_k,' class='latex' /> both additive and multiplicative inverses can be expressed in terms of the generating morphisms used in signal-flow diagrams.</p>
<p>Theorem 4 of our paper gives a presentation of <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> based on the ideas just discussed.  Briefly, it says that <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> is equivalent to the symmetric monoidal category generated by an object <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> and these morphisms:</p>
<p>&bull; addition <img src='https://s0.wp.com/latex.php?latex=%2B%3A+k%5E2+%5Crightharpoonup+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+: k^2 &#92;rightharpoonup k' title='+: k^2 &#92;rightharpoonup k' class='latex' /><br />
&bull; zero <img src='https://s0.wp.com/latex.php?latex=0+%3A+%5C%7B0%5C%7D+%5Crightharpoonup+k+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='0 : &#92;{0&#92;} &#92;rightharpoonup k ' title='0 : &#92;{0&#92;} &#92;rightharpoonup k ' class='latex' /><br />
&bull; duplication <img src='https://s0.wp.com/latex.php?latex=%5CDelta%3A+k%5Crightharpoonup+k%5E2+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Delta: k&#92;rightharpoonup k^2 ' title='&#92;Delta: k&#92;rightharpoonup k^2 ' class='latex' /><br />
&bull; deletion <img src='https://s0.wp.com/latex.php?latex=%21+%3A+k+%5Crightharpoonup+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='! : k &#92;rightharpoonup 0' title='! : k &#92;rightharpoonup 0' class='latex' /><br />
&bull; scalar multiplication <img src='https://s0.wp.com/latex.php?latex=c%3A+k%5Crightharpoonup+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c: k&#92;rightharpoonup k' title='c: k&#92;rightharpoonup k' class='latex' /> for any <img src='https://s0.wp.com/latex.php?latex=c%5Cin+k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c&#92;in k' title='c&#92;in k' class='latex' /><br />
&bull; cup <img src='https://s0.wp.com/latex.php?latex=%5Ccup+%3A+k%5E2+%5Crightharpoonup+%5C%7B0%5C%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cup : k^2 &#92;rightharpoonup &#92;{0&#92;} ' title='&#92;cup : k^2 &#92;rightharpoonup &#92;{0&#92;} ' class='latex' /><br />
&bull; cap <img src='https://s0.wp.com/latex.php?latex=%5Ccap+%3A+%5C%7B0%5C%7D+%5Crightharpoonup+k%5E2+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cap : &#92;{0&#92;} &#92;rightharpoonup k^2 ' title='&#92;cap : &#92;{0&#92;} &#92;rightharpoonup k^2 ' class='latex' /></p>
<p>obeying these relations:</p>
<p>(1) <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%2B%2C+0%2C+%5CDelta%2C+%21%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, +, 0, &#92;Delta, !)' title='(k, +, 0, &#92;Delta, !)' class='latex' /> is a bicommutative bimonoid;</p>
<p>(2) <img src='https://s0.wp.com/latex.php?latex=%5Ccap&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cap' title='&#92;cap' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=%5Ccup&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;cup' title='&#92;cup' class='latex' /> obey the zigzag equations;</p>
<p>(3) <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%2B%2C+0%2C+%2B%5E%5Cdagger%2C+0%5E%5Cdagger%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, +, 0, +^&#92;dagger, 0^&#92;dagger)' title='(k, +, 0, +^&#92;dagger, 0^&#92;dagger)' class='latex' /> is a commutative extra-special &dagger;-Frobenius monoid;</p>
<p>(4) <img src='https://s0.wp.com/latex.php?latex=%28k%2C+%5CDelta%5E%5Cdagger%2C+%21%5E%5Cdagger%2C+%5CDelta%2C+%21%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(k, &#92;Delta^&#92;dagger, !^&#92;dagger, &#92;Delta, !)' title='(k, &#92;Delta^&#92;dagger, !^&#92;dagger, &#92;Delta, !)' class='latex' /> is a commutative extra-special &dagger;-Frobenius monoid;</p>
<p>(5) the field operations of <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> can be recovered from the generating morphisms;</p>
<p>(6) the generating morphisms (1)-(4) commute with scalar multiplication.</p>
<p>Note that item (2) makes <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BFinRel%7D_k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{FinRel}_k' title='&#92;mathrm{FinRel}_k' class='latex' /> into a &dagger;-compact category, allowing us to mention the adjoints of generating morphisms in the subsequent relations.  Item (5) means that <img src='https://s0.wp.com/latex.php?latex=%2B%2C+%5Ccdot%2C+0%2C+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='+, &#92;cdot, 0, 1' title='+, &#92;cdot, 0, 1' class='latex' /> and also additive and multiplicative inverses in the field <img src='https://s0.wp.com/latex.php?latex=k&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='k' title='k' class='latex' /> can be expressed in terms of signal-flow diagrams in the manner we have explained.</p>
<p>So, we have a good categorical understanding of the linear algebra used in signal flow diagrams!</p>
<p>Now Jason is moving ahead to apply this to some interesting problems&#8230; but that&#8217;s another story, for later.</p>
]]></html><thumbnail_url><![CDATA[https://i0.wp.com/math.ucr.edu/home/baez/networks/leaf.jpg?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[234]]></thumbnail_height><thumbnail_width><![CDATA[300]]></thumbnail_width></oembed>