30
Network Theory 1. Tuesday 25 February, 3:30 pm: electrical circuits and signal-flow graphs. 2. Tuesday 4 March, 3:30 pm: stochastic Petri nets, chemical reaction networks and Feynman diagrams. 3. Tuesday 11 March, 3:30 pm: Bayesian networks, information and entropy.

Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Network Theory

1. Tuesday 25 February, 3:30 pm: electrical circuits andsignal-flow graphs.

2. Tuesday 4 March, 3:30 pm: stochastic Petri nets, chemicalreaction networks and Feynman diagrams.

3. Tuesday 11 March, 3:30 pm: Bayesian networks, informationand entropy.

Page 2: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

In many areas of science and engineering, people use diagrams ofnetworks, with boxes connected by wires:

We need a good mathematical theory of these.

Page 3: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Categories must be part of the solution. This became clear in the1980s, at the interface of knot theory and quantum physics:

Page 4: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Categories are great for describing processes of all kinds. A processwith input x and output y is called a morphism F : x → y , and wedraw it like this:

x

F

y

The input and output are called objects.

Page 5: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

We can do one process after another if the output of the firstequals the input of the second:

F

x

G

y

z

Here we are composing morphisms F : x → y and G : y → z toget a morphism GF : x → z .

Page 6: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

In a monoidal category, we can also do processes ‘in parallel’:

x

F

y

x ′

G

y ′

Here we are tensoring F : x → y and G : x ′ → y ′ to get amorphism F ⊗ G : x ⊗ x ′ → y ⊗ y ′.

Page 7: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

In a braided monoidal category, we have a process of switching:

x

y x

y

This is called the braiding Bx ,y : x ⊗ y → y ⊗ x . It has an inverse:

x

yx

y

Page 8: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

In a symmetric monoidal category it doesn’t matter which wiregoes over which:

x

y x

y

=

y

xy

x

All these kinds of categories obey some axioms, which are easy tofind.

Page 9: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

The category with vector spaces as objects and linear mapsbetween these as morphisms becomes a symmetric monoidalcategory with the usual ⊗.

In particle physics, ‘Feynman diagrams’ are pictures of morphismsin this category:

Page 10: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

But why should particle physicists have all the fun? This is thecentury of biology.

Now is our chance to understand the biosphere, and stopdestroying it! We should use everything we can — evenmathematics — to do this.

Page 12: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Nowadays, biologists use networks of many kinds to describe thecomplex processes they find in life.

The Systems Biology Graphical Notation project is trying tostandardize these network languages. They have developed three:

I activity flow diagrams

I entity relationship diagrams

I process diagrams

Page 13: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Activity Flow Diagrams show the flow of information betweenentities:

Page 14: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Entity Relationship Diagrams show how entities influence thebehavior of each other:

Page 15: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Process Diagrams show how entities change from one type toanother over time:

With numbers for rates, we get a system of differential equations!

Page 16: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Process diagrams generalize ‘stochastic Petri nets’, which aremathematically well-understood — I’ll talk about them in Part 2.

A Petri net is a presentation of a symmetric monoidal categorythat is freely generated by some objects and morphisms:

fission: amoeba→ amoeba ⊗ amoebacompetition: amoeba ⊗ amoeba→ amoeba

Page 17: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

From these ‘generators’ we can build all the morphisms in ourcategory by composition, tensoring and the braiding:

Page 18: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

In a stochastic Petri net, each generating morphism is assigned arate constant r > 0.

Using this we can calculate a probability for any morphism tooccur in any given amount of time t > 0.

Page 19: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

The details work almost exactly like Feynman diagrams in particlephysics. But there’s one big difference! We take the symmetricmonoidal category used in quantum physics, where:

I objects are complex vector spaces,

I morphisms are linear maps,

I ⊗ is the usual tensor product of vector spaces

and everywhere replace the complex numbers, C, by nonnegativereal numbers, [0,∞).

This lets us take quantum techniques and apply them to stochasticprocesses.

In Part 2 we’ll see that this gives a new outlook on chemistry.

Page 20: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Instead of Petri nets, chemists use reaction networks, in which

becomes

But this is an equivalent formalism!

Page 21: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

In Part 3 we’ll see that closely related categories also give a newway to think about entropy.

For example, let FinProb be the category where:

I an object (X , p) is a finite set equipped with a probabilitydistribution on it:

px ≥ 0 and∑x∈X

px = 1

I a morphism f : (X , p)→ (Y , q) is a probability-preservingfunction:

qy =∑

x∈X : f (x)=y

px

Page 22: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

We can define convex linear combinations of objects inFinProb. For for any 0 ≤ c ≤ 1, let

c(X , p) + (1− c)(Y , q)

be the disjoint union of X and Y , with the probability distributiongiven by cp on X and (1− c)q on Y .

We can also define convex linear combinations of morphisms.

Page 23: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

Any object in FinProb has an entropy

S(X , p) = −∑x∈X

px ln px

But what’s so great about this? Here’s one answer.

There is a category [0,∞) with one object ∗, where morphismsc : ∗ → ∗ are numbers c ≥ 0 and composition is addition.

Theorem (Baez, Fritz, Leinster). Any map between categories

F : FinProb→ [0,∞)

that is continuous and preserves convex linear combinations is amultiple of the change in entropy: for some α ≥ 0,

g : (X , p)→ (Y , q) =⇒ F (g) = α(S(X , p)− S(Y , q))

Page 24: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

We can use networks to describe processes, and this makes us treatthem as morphisms. But we can also use them to describe things,and this makes us treat them as objects.

A large body of network theory does this, using ideas from graphtheory. For example, the Internet is a thing worth studying:

Page 25: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

The interplay between networks as things and networks asprocesses is especially clear in control theory, which uses‘signal-flow graphs’ to describe physical systems with inputs andoutputs:

For example, an upside-down pendulum on a cart...

Page 26: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

... has this signal-flow graph:

Page 27: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

We’ll see in Part 1 that signal-flow graphs describe morphisms in acertain symmetric monoidal category... which is similar to thatused in particle physics, but also curiously different.

When we call them ‘morphisms’, we are treating signal-flow graphsas processes: ways of turning input signals into outputs.

Page 28: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

But signal-flow graphs that implement the same process can bevery different as things:

−1 −1

?=

Page 29: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

To deal with this more clearly we should use bicategories, whichhave

I objects

I morphisms between objects: F : x → y

I 2-morphisms between morphisms α : F ⇒ G

−1 −1 ⇒

Page 30: Network Theory - Department of Mathematicsmath.ucr.edu/home/baez/networks_oxford/networks_overview.pdf · Network Theory 1.Tuesday 25 February, 3:30 pm: electrical circuits and signal-ow

So, not just categories but bicategories pervade network theory.These should be especially important in the study of networks thatchange with time:

In the spin foam approach to quantum gravity, space itself is achanging network of this kind. But we should try to use theseideas for something more practical!