<?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[Network Theory (Part&nbsp;33)]]></title><type><![CDATA[link]]></type><html><![CDATA[<p><a href="https://johncarlosbaez.wordpress.com/2014/10/20/network-theory-part-32/">Last time</a> I came close to describing the &#8216;black box functor&#8217;, which takes an electrical circuit made of resistors</p>
<div align="center"><img height="150" src="https://i2.wp.com/math.ucr.edu/home/baez/networks/circuit_made_of_resistors.png" /></div>
<p>and sends it to its behavior as viewed from outside.  From outside, all you can see is the relation between currents and potentials at the &#8216;terminals&#8217;&#8212;the little bits of wire that poke out of the black box:</p>
<div align="center"><img height="160" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/circuit_made_of_resistors_black_boxed.png" /></div>
<p>I came close to defining the black box functor, but I didn&#8217;t quite make it!  This time let&#8217;s finish the job.</p>
<h3> The categories in question </h3>
<p>The black box functor</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cblacksquare+%3A+%5Cmathrm%7BResCirc%7D+%5Cto+%5Cmathrm%7BLinRel%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;blacksquare : &#92;mathrm{ResCirc} &#92;to &#92;mathrm{LinRel} ' title='&#92;blacksquare : &#92;mathrm{ResCirc} &#92;to &#92;mathrm{LinRel} ' class='latex' /></p>
<p>goes from the category <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BResCirc%7D%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{ResCirc},' title='&#92;mathrm{ResCirc},' class='latex' /> where morphisms are circuits made of resistors, to the category <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BLinRel%7D%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{LinRel},' title='&#92;mathrm{LinRel},' class='latex' /> where morphisms are linear relations.   Let me remind you how these categories work, and introduce a bit of new notation.</p>
<p>Here is the category <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BResCirc%7D%3A&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{ResCirc}:' title='&#92;mathrm{ResCirc}:' class='latex' /></p>
<p>&bull; an object is a finite set;</p>
<p>&bull; a morphism from <img src='https://s0.wp.com/latex.php?latex=X&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X' title='X' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=Y&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Y' title='Y' class='latex' /> is an isomorphism class of cospans</p>
<div align="center">
<img width="205" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/cospan_2.jpg" />
</div>
<p>in the category of graphs with edges labelled by <b>resistances</b>: numbers in <img src='https://s0.wp.com/latex.php?latex=%280%2C%5Cinfty%29.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(0,&#92;infty).' title='(0,&#92;infty).' class='latex' />   Here we think of the finite sets <img src='https://s0.wp.com/latex.php?latex=X&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X' title='X' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=Y&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Y' title='Y' class='latex' /> as graphs with no edges.  We call <img src='https://s0.wp.com/latex.php?latex=X&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X' title='X' class='latex' /> the set of <b>inputs</b> and <img src='https://s0.wp.com/latex.php?latex=Y&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Y' title='Y' class='latex' /> the set of <b>outputs</b>.</p>
<p>&bull; we compose morphisms in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BResCirc%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{ResCirc}' title='&#92;mathrm{ResCirc}' class='latex' /> by <a href="https://johncarlosbaez.wordpress.com/2014/10/13/network-theory-part-31/">composing isomorphism classes of cospans</a>.</p>
<p>And here is the category <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BLinRel%7D%3A&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{LinRel}:' title='&#92;mathrm{LinRel}:' class='latex' /></p>
<p>&bull; an object is a finite-dimensional real vector space;</p>
<p>&bull; 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&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='V' title='V' class='latex' /> is a <b>linear relation</b> <img src='https://s0.wp.com/latex.php?latex=R+%3A+U+%5Cleadsto+V%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='R : U &#92;leadsto V,' title='R : U &#92;leadsto V,' class='latex' /> meaning a linear subspace <img src='https://s0.wp.com/latex.php?latex=R+%5Csubseteq+U+%5Ctimes+V%3B&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='R &#92;subseteq U &#92;times V;' title='R &#92;subseteq U &#92;times V;' class='latex' /></p>
<p>&bull; we compose a linear relation <img src='https://s0.wp.com/latex.php?latex=R+%5Csubseteq+U+%5Ctimes+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='R &#92;subseteq U &#92;times V' title='R &#92;subseteq U &#92;times V' class='latex' /> and a linear relation <img src='https://s0.wp.com/latex.php?latex=S+%5Csubseteq+V+%5Ctimes+W&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S &#92;subseteq V &#92;times W' title='S &#92;subseteq V &#92;times W' class='latex' /> in the usual way we compose relations, getting:</p>
<p><img src='https://s0.wp.com/latex.php?latex=SR+%3D+%5C%7B%28u%2Cw%29+%5Cin+U+%5Ctimes+W+%3A+%5C%3B+%5Cexists+v+%5Cin+V+%5C%3B+%28u%2Cv%29+%5Cin+R+%5Cmathrm%7B%5C%3B+and+%5C%3B%7D+%28v%2Cw%29+%5Cin+S+%5C%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='SR = &#92;{(u,w) &#92;in U &#92;times W : &#92;; &#92;exists v &#92;in V &#92;; (u,v) &#92;in R &#92;mathrm{&#92;; and &#92;;} (v,w) &#92;in S &#92;} ' title='SR = &#92;{(u,w) &#92;in U &#92;times W : &#92;; &#92;exists v &#92;in V &#92;; (u,v) &#92;in R &#92;mathrm{&#92;; and &#92;;} (v,w) &#92;in S &#92;} ' class='latex' /></p>
<p>In case you&#8217;re wondering: I&#8217;ve just introduced the wiggly arrow notation</p>
<p><img src='https://s0.wp.com/latex.php?latex=R+%3A+U+%5Cleadsto+V+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='R : U &#92;leadsto V ' title='R : U &#92;leadsto V ' class='latex' /></p>
<p>for a linear relation 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' /> because it suggests that a relation is a bit like a function but more general.  Indeed, a function is a special case of a relation, and composing functions is a special case of composing relations.</p>
<h3> The black box functor </h3>
<p>Now, how do we define the black box functor?</p>
<p>Defining it on objects is easy.  An object of <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BResCirc%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{ResCirc}' title='&#92;mathrm{ResCirc}' class='latex' /> is a finite set <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 we define</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cblacksquare%7BS%7D+%3D+%5Cmathbb%7BR%7D%5ES+%5Ctimes+%5Cmathbb%7BR%7D%5ES+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;blacksquare{S} = &#92;mathbb{R}^S &#92;times &#92;mathbb{R}^S ' title='&#92;blacksquare{S} = &#92;mathbb{R}^S &#92;times &#92;mathbb{R}^S ' class='latex' /></p>
<p>The idea is that <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' /> could be a set of inputs or outputs, and then</p>
<p><img src='https://s0.wp.com/latex.php?latex=%28%5Cphi%2C+I%29+%5Cin+%5Cmathbb%7BR%7D%5ES+%5Ctimes+%5Cmathbb%7BR%7D%5ES+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(&#92;phi, I) &#92;in &#92;mathbb{R}^S &#92;times &#92;mathbb{R}^S ' title='(&#92;phi, I) &#92;in &#92;mathbb{R}^S &#92;times &#92;mathbb{R}^S ' class='latex' /></p>
<p>is a list of numbers: the potentials and currents at those inputs or outputs.</p>
<p>So, the interesting part is defining the black box functor on morphisms!</p>
<p>For this we start with a morphism in <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BResCirc%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{ResCirc}' title='&#92;mathrm{ResCirc}' class='latex' />:</p>
<div align="center">
<img width="205" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/cospan_2.jpg" />
</div>
<p>The labelled graph <img src='https://s0.wp.com/latex.php?latex=%5CGamma&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Gamma' title='&#92;Gamma' class='latex' /> consists of:</p>
<p>&bull; a set <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' /> of <b>nodes</b>,</p>
<p>&bull; a set <img src='https://s0.wp.com/latex.php?latex=E&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='E' title='E' class='latex' /> of <b>edges</b>,</p>
<p>&bull; maps <img src='https://s0.wp.com/latex.php?latex=s%2C+t+%3A+E+%5Cto+N&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='s, t : E &#92;to N' title='s, t : E &#92;to N' class='latex' /> sending each edge to its <b>source</b> and <b>target</b>,</p>
<p>&bull; a map <img src='https://s0.wp.com/latex.php?latex=r+%3A+E+%5Cto+%280%2C%5Cinfty%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='r : E &#92;to (0,&#92;infty)' title='r : E &#92;to (0,&#92;infty)' class='latex' /> sending each edge to its <b>resistance</b>.</p>
<p>The cospan gives maps</p>
<p><img src='https://s0.wp.com/latex.php?latex=i%3A+X+%5Cto+N%2C+%5Cqquad+o%3A+Y+%5Cto+N&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i: X &#92;to N, &#92;qquad o: Y &#92;to N' title='i: X &#92;to N, &#92;qquad o: Y &#92;to N' class='latex' /></p>
<p>These say how the inputs and outputs are interpreted as nodes in the circuit.  We&#8217;ll call the nodes that come from inputs or outputs &#8216;terminals&#8217;.  So, mathematically,</p>
<p><img src='https://s0.wp.com/latex.php?latex=T+%3D+%5Cmathrm%7Bim%7D%28i%29+%5Ccup+%5Cmathrm%7Bim%7D%28o%29+%5Csubseteq+N&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='T = &#92;mathrm{im}(i) &#92;cup &#92;mathrm{im}(o) &#92;subseteq N' title='T = &#92;mathrm{im}(i) &#92;cup &#92;mathrm{im}(o) &#92;subseteq N' class='latex' /></p>
<p>is the set of <b>terminals</b>: the union of the images of <img src='https://s0.wp.com/latex.php?latex=i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i' title='i' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=o.&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='o.' title='o.' class='latex' /></p>
<p>In the simplest case, the maps <img src='https://s0.wp.com/latex.php?latex=i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i' title='i' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=o&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='o' title='o' class='latex' /> are one-to-one, with disjoint ranges.  Then each terminal either comes from a <i>single</i> input, or a <i>single</i> output, but <i>not both!</i>  This is a good picture to keep in mind.  But some subtleties arise when we leave this simplest case and consider other cases.</p>
<p>Now, the black box functor is supposed to send our circuit to a linear relation.  I&#8217;ll call the circuit <img src='https://s0.wp.com/latex.php?latex=%5CGamma&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Gamma' title='&#92;Gamma' class='latex' /> for short, though it&#8217;s really the whole cospan</p>
<div align="center">
<img width="205" src="https://i0.wp.com/math.ucr.edu/home/baez/networks/cospan_2.jpg" />
</div>
<p>So, our black box functor is supposed to send this circuit to a linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cblacksquare%28%5CGamma%29+%3A+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5EX+%5Cleadsto+%5Cmathbb%7BR%7D%5EY+%5Ctimes+%5Cmathbb%7BR%7D%5EY&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;blacksquare(&#92;Gamma) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y' title='&#92;blacksquare(&#92;Gamma) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y' class='latex' /></p>
<p>This is a relation between the potentials and currents at the input terminals and the potentials and currents at the output terminals!   How is it defined?</p>
<p>I&#8217;ll start by outlining how this works.</p>
<p>First, our circuit picks out a subspace</p>
<p><img src='https://s0.wp.com/latex.php?latex=dQ+%5Csubseteq+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='dQ &#92;subseteq &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T' title='dQ &#92;subseteq &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T' class='latex' /></p>
<p>This is the subspace of allowed potentials and currents on the terminals.  I&#8217;ll explain this and why it&#8217;s called <img src='https://s0.wp.com/latex.php?latex=dQ&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='dQ' title='dQ' class='latex' /> a bit later.  Briefly, it comes from the principle of minimum power, described <a href="https://johncarlosbaez.wordpress.com/2014/10/20/network-theory-part-32/">last time</a>.</p>
<p>Then, the map</p>
<p><img src='https://s0.wp.com/latex.php?latex=i%3A+X+%5Cto+T+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i: X &#92;to T ' title='i: X &#92;to T ' class='latex' /></p>
<p>gives a linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=S%28i%29+%3A+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5EX+%5Cleadsto+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S(i) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' title='S(i) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' class='latex' /></p>
<p>This says how the potentials and currents at the inputs are related to those at the terminals.  Similarly, the map</p>
<p><img src='https://s0.wp.com/latex.php?latex=o%3A+Y+%5Cto+T+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='o: Y &#92;to T ' title='o: Y &#92;to T ' class='latex' /></p>
<p>gives a linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=S%28o%29+%3A+%5Cmathbb%7BR%7D%5EY+%5Ctimes+%5Cmathbb%7BR%7D%5EY+%5Cleadsto+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S(o) : &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' title='S(o) : &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' class='latex' /></p>
<p>This says how the potentials and currents at the <i>outputs</i> are related to those at the terminals.</p>
<p>Next, we can &#8216;turn around&#8217; any linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=R+%3A+%5Cmathbb%7BR%7D%5EY+%5Ctimes+%5Cmathbb%7BR%7D%5EY+%5Cleadsto+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='R : &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' title='R : &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' class='latex' /></p>
<p>to get a relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=R%5E%5Cdagger+%3A+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET++%5Cleadsto+%5Cmathbb%7BR%7D%5EY+%5Ctimes+%5Cmathbb%7BR%7D%5EY&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='R^&#92;dagger : &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T  &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y' title='R^&#92;dagger : &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T  &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y' class='latex' /></p>
<p>defined by</p>
<p><img src='https://s0.wp.com/latex.php?latex=R%5E%5Cdagger+%3D+%5C%7B%28%5Cphi%27%2C-I%27%2C%5Cphi%2C-I%29+%3A+%28%5Cphi%2C+I%2C+%5Cphi%27%2C+I%27%29+%5Cin+R+%5C%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='R^&#92;dagger = &#92;{(&#92;phi&#039;,-I&#039;,&#92;phi,-I) : (&#92;phi, I, &#92;phi&#039;, I&#039;) &#92;in R &#92;} ' title='R^&#92;dagger = &#92;{(&#92;phi&#039;,-I&#039;,&#92;phi,-I) : (&#92;phi, I, &#92;phi&#039;, I&#039;) &#92;in R &#92;} ' class='latex' /></p>
<p>Here we are just switching the input and output potentials, but when we switch the currents we also throw in a minus sign.  The reason is that we care about the current flowing <i>in</i> to an input, but <i>out</i> of an output.</p>
<p>Finally, one more trick: given a linear subspace</p>
<p><img src='https://s0.wp.com/latex.php?latex=L+%5Csubseteq+V&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L &#92;subseteq V' title='L &#92;subseteq V' class='latex' /></p>
<p>of 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' /> we get a linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=1%7C_L+%3A+V+%5Cleadsto+V+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1|_L : V &#92;leadsto V ' title='1|_L : V &#92;leadsto V ' class='latex' /></p>
<p>called <b>the identity restricted to</b> <img src='https://s0.wp.com/latex.php?latex=L&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L' title='L' class='latex' />, defined like this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=1%7C_L+%3D+%5C%7B+%28v%2C+v%29+%3A%5C%3B+v+%5Cin+L+%5C%7D+%5Csubseteq+V+%5Ctimes+V+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1|_L = &#92;{ (v, v) :&#92;; v &#92;in L &#92;} &#92;subseteq V &#92;times V ' title='1|_L = &#92;{ (v, v) :&#92;; v &#92;in L &#92;} &#92;subseteq V &#92;times V ' class='latex' /></p>
<p>If <img src='https://s0.wp.com/latex.php?latex=L&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='L' title='L' class='latex' /> is all of <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' /> this relation is actually the identity function on <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' />  Otherwise it&#8217;s a partially defined function that&#8217;s defined only on <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' /> and is the identity there.  (A partially defined function is an example of a relation.)  My notation <img src='https://s0.wp.com/latex.php?latex=1%7C_L&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1|_L' title='1|_L' class='latex' /> is probably bad, but I don&#8217;t know a better one, so bear with me.</p>
<p>Let&#8217;s use all these ideas to define</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cblacksquare%28%5CGamma%29+%3A+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5EX+%5Cleadsto+%5Cmathbb%7BR%7D%5EY+%5Ctimes+%5Cmathbb%7BR%7D%5EY&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;blacksquare(&#92;Gamma) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y' title='&#92;blacksquare(&#92;Gamma) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y' class='latex' /></p>
<p>To do this, we compose three linear relations:</p>
<p>1) We start with</p>
<p><img src='https://s0.wp.com/latex.php?latex=S%28i%29+%3A+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5EX+%5Cleadsto+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S(i) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' title='S(i) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' class='latex' /></p>
<p>2) We compose this with</p>
<p><img src='https://s0.wp.com/latex.php?latex=1%7C_%7BdQ%7D+%3A+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+%5Cleadsto+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='1|_{dQ} : &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' title='1|_{dQ} : &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' class='latex' /></p>
<p>3) Then we compose this with</p>
<p><img src='https://s0.wp.com/latex.php?latex=S%28o%29%5E%5Cdagger+%3A+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+%5Cleadsto+%5Cmathbb%7BR%7D%5EY+%5Ctimes+%5Cmathbb%7BR%7D%5EY+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S(o)^&#92;dagger : &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y ' title='S(o)^&#92;dagger : &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T &#92;leadsto &#92;mathbb{R}^Y &#92;times &#92;mathbb{R}^Y ' class='latex' /></p>
<p>Note that:</p>
<p>1) says how the potentials and currents at the inputs are related to those at the terminals,</p>
<p>2) picks out which potentials and currents at the terminals are actually allowed, and</p>
<p>3) says how the potentials and currents at the terminals are related to those at the outputs.</p>
<p>So, I hope all makes sense, at least in some rough way.  In brief, here&#8217;s the formula:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cblacksquare%28%5CGamma%29+%3D+S%28o%29%5E%5Cdagger+%5C%3B+1%7C_%7BdQ%7D+%5C%3B+S%28i%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;blacksquare(&#92;Gamma) = S(o)^&#92;dagger &#92;; 1|_{dQ} &#92;; S(i) ' title='&#92;blacksquare(&#92;Gamma) = S(o)^&#92;dagger &#92;; 1|_{dQ} &#92;; S(i) ' class='latex' /></p>
<p>Now I just need to fill in some details.  First, how do we define <img src='https://s0.wp.com/latex.php?latex=S%28i%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S(i)' title='S(i)' class='latex' /> and <img src='https://s0.wp.com/latex.php?latex=S%28o%29%3F&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S(o)?' title='S(o)?' class='latex' />  They work exactly the same way, by &#8216;copying potentials and adding currents&#8217;, so I&#8217;ll just talk about one.  Second, how do we define the subspace <img src='https://s0.wp.com/latex.php?latex=dQ%3F&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='dQ?' title='dQ?' class='latex' />  This uses the principle of minimum power.</p>
<h3> Duplicating potentials and adding currents </h3>
<p>Any function between finite sets</p>
<p><img src='https://s0.wp.com/latex.php?latex=i%3A+X+%5Cto+T+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i: X &#92;to T ' title='i: X &#92;to T ' class='latex' /></p>
<p>gives a linear map</p>
<p><img src='https://s0.wp.com/latex.php?latex=i%5E%2A+%3A+%5Cmathbb%7BR%7D%5ET+%5Cto+%5Cmathbb%7BR%7D%5EX+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i^* : &#92;mathbb{R}^T &#92;to &#92;mathbb{R}^X ' title='i^* : &#92;mathbb{R}^T &#92;to &#92;mathbb{R}^X ' class='latex' /></p>
<p>Mathematicians call this linear map the <b>pullback along</b> <img src='https://s0.wp.com/latex.php?latex=i%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i,' title='i,' class='latex' /> and for any <img src='https://s0.wp.com/latex.php?latex=%5Cphi+%5Cin+%5Cmathbb%7BR%7D%5ET&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;phi &#92;in &#92;mathbb{R}^T' title='&#92;phi &#92;in &#92;mathbb{R}^T' class='latex' /> it&#8217;s defined by</p>
<p><img src='https://s0.wp.com/latex.php?latex=i%5E%2A%28%5Cphi%29%28x%29+%3D+%5Cphi%28i%28x%29%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i^*(&#92;phi)(x) = &#92;phi(i(x)) ' title='i^*(&#92;phi)(x) = &#92;phi(i(x)) ' class='latex' /></p>
<p>In our application, we think of <img src='https://s0.wp.com/latex.php?latex=%5Cphi&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;phi' title='&#92;phi' class='latex' /> as a list of potentials at terminals.  The function <img src='https://s0.wp.com/latex.php?latex=i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i' title='i' class='latex' /> could map a bunch of inputs to the same terminal, and the above formula says the potential at this terminal gives the potential at all those inputs.  So, we are <i>copying potentials</i>.</p>
<p>We also get a linear map going the other way:</p>
<p><img src='https://s0.wp.com/latex.php?latex=i_%2A+%3A+%5Cmathbb%7BR%7D%5EX+%5Cto+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i_* : &#92;mathbb{R}^X &#92;to &#92;mathbb{R}^T ' title='i_* : &#92;mathbb{R}^X &#92;to &#92;mathbb{R}^T ' class='latex' /></p>
<p>Mathematicians call this the <b>pushforward along</b> <img src='https://s0.wp.com/latex.php?latex=i%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i,' title='i,' class='latex' /> and for any <img src='https://s0.wp.com/latex.php?latex=I+%5Cin+%5Cmathbb%7BR%7D%5EX&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='I &#92;in &#92;mathbb{R}^X' title='I &#92;in &#92;mathbb{R}^X' class='latex' /> it&#8217;s defined by</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+i_%2A%28I%29%28t%29+%3D+%5Csum_%7Bx+%5C%3B+%3A+%5C%3B+i%28x%29+%3D+t+%7D+I%28x%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ i_*(I)(t) = &#92;sum_{x &#92;; : &#92;; i(x) = t } I(x) } ' title='&#92;displaystyle{ i_*(I)(t) = &#92;sum_{x &#92;; : &#92;; i(x) = t } I(x) } ' class='latex' /></p>
<p>In our application, we think of <img src='https://s0.wp.com/latex.php?latex=I&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='I' title='I' class='latex' /> as a list of currents entering at some inputs.  The function <img src='https://s0.wp.com/latex.php?latex=i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i' title='i' class='latex' /> could map a bunch of inputs to the same terminal, and the above formula says the current at this terminal is the sum of the currents at all those inputs.  So, we are <i>adding currents</i>.</p>
<p>Putting these together, our map</p>
<p><img src='https://s0.wp.com/latex.php?latex=i+%3A+X+%5Cto+T+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='i : X &#92;to T ' title='i : X &#92;to T ' class='latex' /></p>
<p>gives a linear relation</p>
<p><img src='https://s0.wp.com/latex.php?latex=S%28i%29+%3A+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5EX+%5Cleadsto+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='S(i) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' title='S(i) : &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;leadsto &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' class='latex' /></p>
<p>where the pair <img src='https://s0.wp.com/latex.php?latex=%28%5Cphi%2C+I%29+%5Cin+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5EX+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(&#92;phi, I) &#92;in &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X ' title='(&#92;phi, I) &#92;in &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X ' class='latex' /> is related to the pair <img src='https://s0.wp.com/latex.php?latex=%28%5Cphi%27%2C+I%27%29+%5Cin+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(&#92;phi&#039;, I&#039;) &#92;in &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' title='(&#92;phi&#039;, I&#039;) &#92;in &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T ' class='latex' /> iff</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cphi+%3D+i%5E%2A%28%5Cphi%27%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;phi = i^*(&#92;phi&#039;)' title='&#92;phi = i^*(&#92;phi&#039;)' class='latex' /></p>
<p>and</p>
<p><img src='https://s0.wp.com/latex.php?latex=I%27+%3D+i_%2A%28I%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='I&#039; = i_*(I) ' title='I&#039; = i_*(I) ' class='latex' /></p>
<p>So, here&#8217;s the rule of thumb when attaching the points of <img src='https://s0.wp.com/latex.php?latex=X&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='X' title='X' class='latex' /> to the input terminals of our circuit: <i>copy potentials, but add up currents</i>.  More formally:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cbegin%7Barray%7D%7Bccl%7D+S%28i%29+%26%3D%26+%5C%7B+%28%5Cphi%2C+I%2C+%5Cphi%27%2C+I%27%29+%3A+%5C%3B+%5Cphi+%3D+i%5E%2A%28%5Cphi%27%29+%2C+%5C%3B+I%27+%3D+i_%2A%28I%29+%5C%7D++%5C%5C+%5C%5C++%26%5Csubseteq%26+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5EX+%5Ctimes+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+%5Cend%7Barray%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;begin{array}{ccl} S(i) &amp;=&amp; &#92;{ (&#92;phi, I, &#92;phi&#039;, I&#039;) : &#92;; &#92;phi = i^*(&#92;phi&#039;) , &#92;; I&#039; = i_*(I) &#92;}  &#92;&#92; &#92;&#92;  &amp;&#92;subseteq&amp; &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T &#92;end{array}' title='&#92;begin{array}{ccl} S(i) &amp;=&amp; &#92;{ (&#92;phi, I, &#92;phi&#039;, I&#039;) : &#92;; &#92;phi = i^*(&#92;phi&#039;) , &#92;; I&#039; = i_*(I) &#92;}  &#92;&#92; &#92;&#92;  &amp;&#92;subseteq&amp; &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^X &#92;times &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T &#92;end{array}' class='latex' /></p>
<h3> The principle of minimum power </h3>
<p>Finally, how does our circuit define a subspace</p>
<p><img src='https://s0.wp.com/latex.php?latex=dQ+%5Csubseteq+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='dQ &#92;subseteq &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T' title='dQ &#92;subseteq &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T' class='latex' /></p>
<p>of allowed potential-current pairs at the terminals?  The trick is to use the ideas we discussed last time.  If we know the potential at all nodes of our circuit, say <img src='https://s0.wp.com/latex.php?latex=%5Cphi+%5Cin+%5Cmathbb%7BR%7D%5EN&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;phi &#92;in &#92;mathbb{R}^N' title='&#92;phi &#92;in &#92;mathbb{R}^N' class='latex' />, we know the power used by the circuit:</p>
<p><img src='https://s0.wp.com/latex.php?latex=P%28%5Cphi%29+%3D+%5Cdisplaystyle%7B+%5Csum_%7Be+%5Cin+E%7D+%5Cfrac%7B1%7D%7Br_e%7D+%5Cbig%28%5Cphi%28s%28e%29%29+-+%5Cphi%28t%28e%29%29%5Cbig%29%5E2+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='P(&#92;phi) = &#92;displaystyle{ &#92;sum_{e &#92;in E} &#92;frac{1}{r_e} &#92;big(&#92;phi(s(e)) - &#92;phi(t(e))&#92;big)^2 } ' title='P(&#92;phi) = &#92;displaystyle{ &#92;sum_{e &#92;in E} &#92;frac{1}{r_e} &#92;big(&#92;phi(s(e)) - &#92;phi(t(e))&#92;big)^2 } ' class='latex' /></p>
<p>We saw last time that if we fix the potentials at the terminals, the circuit will choose potentials at the other nodes to minimize this power.  We can describe the potential at the terminals by</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cpsi+%5Cin+%5Cmathbb%7BR%7D%5ET+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;psi &#92;in &#92;mathbb{R}^T ' title='&#92;psi &#92;in &#92;mathbb{R}^T ' class='latex' /></p>
<p>So, the power for a given potential at the terminals is</p>
<p><img src='https://s0.wp.com/latex.php?latex=Q%28%5Cpsi%29+%3D+%5Cdisplaystyle%7B+%5Cfrac%7B1%7D%7B2%7D+%5Cmin_%7B%5Cphi+%5Cin+%5Cmathbb%7BR%7D%5EN+%5C%3B+%3A+%5C%3B+%5Cphi%7C_T+%3D+%5Cpsi%7D+%5Csum_%7Be+%5Cin+E%7D+%5Cfrac%7B1%7D%7Br_e%7D+%5Cbig%28%5Cphi%28s%28e%29%29+-+%5Cphi%28t%28e%29%29%5Cbig%29%5E2+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q(&#92;psi) = &#92;displaystyle{ &#92;frac{1}{2} &#92;min_{&#92;phi &#92;in &#92;mathbb{R}^N &#92;; : &#92;; &#92;phi|_T = &#92;psi} &#92;sum_{e &#92;in E} &#92;frac{1}{r_e} &#92;big(&#92;phi(s(e)) - &#92;phi(t(e))&#92;big)^2 } ' title='Q(&#92;psi) = &#92;displaystyle{ &#92;frac{1}{2} &#92;min_{&#92;phi &#92;in &#92;mathbb{R}^N &#92;; : &#92;; &#92;phi|_T = &#92;psi} &#92;sum_{e &#92;in E} &#92;frac{1}{r_e} &#92;big(&#92;phi(s(e)) - &#92;phi(t(e))&#92;big)^2 } ' class='latex' /></p>
<p>Actually this is half the power: I stuck in a factor of 1/2 for some reason we&#8217;ll soon see.  This <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' /> is a quadratic function</p>
<p><img src='https://s0.wp.com/latex.php?latex=Q+%3A+%5Cmathbb%7BR%7D%5ET+%5Cto+%5Cmathbb%7BR%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q : &#92;mathbb{R}^T &#92;to &#92;mathbb{R} ' title='Q : &#92;mathbb{R}^T &#92;to &#92;mathbb{R} ' class='latex' /></p>
<p>so its derivative is linear.  And, our work last time showed something interesting: to compute the current <img src='https://s0.wp.com/latex.php?latex=J_x&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='J_x' title='J_x' class='latex' /> flowing into a terminal <img src='https://s0.wp.com/latex.php?latex=x+%5Cin+T%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x &#92;in T,' title='x &#92;in T,' class='latex' /> we just differentiate <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' /> with respect to the potential at that terminal:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+J_x+%3D+%5Cfrac%7B%5Cpartial+Q%28%5Cpsi%29%7D%7B%5Cpartial+%5Cpsi_x%7D+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ J_x = &#92;frac{&#92;partial Q(&#92;psi)}{&#92;partial &#92;psi_x} }' title='&#92;displaystyle{ J_x = &#92;frac{&#92;partial Q(&#92;psi)}{&#92;partial &#92;psi_x} }' class='latex' /></p>
<p>This is the reason for the 1/2: when we take the derivative of <img src='https://s0.wp.com/latex.php?latex=Q%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='Q,' title='Q,' class='latex' /> we bring down a 2 from differentiating all those squares, and to make that go away we need a 1/2.</p>
<p>The space of allowed potential-current pairs at the terminals is thus the linear subspace</p>
<p><img src='https://s0.wp.com/latex.php?latex=dQ+%3D+%5C%7B+%28%5Cpsi%2C+J%29+%3A+%5C%3B+%5Cdisplaystyle%7B+J_x+%3D+%5Cfrac%7B%5Cpartial+Q%28%5Cpsi%29%7D%7B%5Cpartial+%5Cpsi_x%7D+%5C%7D++%5Csubseteq+%5Cmathbb%7BR%7D%5ET+%5Ctimes+%5Cmathbb%7BR%7D%5ET+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='dQ = &#92;{ (&#92;psi, J) : &#92;; &#92;displaystyle{ J_x = &#92;frac{&#92;partial Q(&#92;psi)}{&#92;partial &#92;psi_x} &#92;}  &#92;subseteq &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T }' title='dQ = &#92;{ (&#92;psi, J) : &#92;; &#92;displaystyle{ J_x = &#92;frac{&#92;partial Q(&#92;psi)}{&#92;partial &#92;psi_x} &#92;}  &#92;subseteq &#92;mathbb{R}^T &#92;times &#92;mathbb{R}^T }' class='latex' /></p>
<p>And this completes our precise description of the black box functor!</p>
<p>The hard part is this:</p>
<p><b>Theorem.</b> <img src='https://s0.wp.com/latex.php?latex=%5Cblacksquare+%3A+%5Cmathrm%7BResCirc%7D+%5Cto+%5Cmathrm%7BLinRel%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;blacksquare : &#92;mathrm{ResCirc} &#92;to &#92;mathrm{LinRel} ' title='&#92;blacksquare : &#92;mathrm{ResCirc} &#92;to &#92;mathrm{LinRel} ' class='latex' /> is a functor.</p>
<p>In other words, we have to prove that it preserves composition:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cblacksquare%28fg%29+%3D+%5Cblacksquare%28f%29+%5Cblacksquare%28g%29+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;blacksquare(fg) = &#92;blacksquare(f) &#92;blacksquare(g) ' title='&#92;blacksquare(fg) = &#92;blacksquare(f) &#92;blacksquare(g) ' class='latex' /></p>
<p>For that, read our paper:</p>
<p>&bull; John Baez and Brendan Fong, <a href="http://math.ucr.edu/home/baez/circuits.pdf">A compositional framework for passive linear networks</a>.</p>
]]></html><thumbnail_url><![CDATA[https://i2.wp.com/math.ucr.edu/home/baez/networks/circuit_made_of_resistors.png?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[250]]></thumbnail_height><thumbnail_width><![CDATA[375]]></thumbnail_width></oembed>