Categories in Control John Baez and Jason Erbele

Similar documents
Applied Category Theory. John Baez

CATEGORIES IN CONTROL. John Baez Canadian Mathematical Society Winter Meeting 5 December 2015

CATEGORIES IN CONTROL. John Baez, Jason Erbele & Nick Woods Higher-Dimensional Rewriting and Applications Warsaw, 28 June 2015

NETWORK THEORY. John Baez Categorical Foundations of Network Theory Institute for Scientific Interchange, Turin, Italy 25 May 2015

Network Theory. 1. Tuesday 25 February, 3:30 pm: electrical circuits and signal-flow graphs.

The Mathematics of Open Reaction Networks

CIRCUITS, CATEGORIES AND REWRITE RULES. John Baez & Brendan Fong Higher-Dimensional Rewriting and Applications Warsaw, 29 June 2015

Props in Network Theory

PROPS IN NETWORK THEORY

Lecture 4. Signal Flow Graphs and recurrence relations

Categories, Functors, Natural Transformations

Custom Hypergraph Categories via Generalized Relations

UNIVERSITY OF CALIFORNIA RIVERSIDE. Circuits, Bond Graphs, and Signal-Flow Diagrams: A Categorical Perspective

Quantum Groups and Link Invariants

Abstract structure of unitary oracles for quantum algorithms

A Compositional Framework for Markov Processes. John C. Baez. Brendan Fong. Blake S. Pollard

A Hopf Algebra Structure on Hall Algebras

OPERAD BIMODULE CHARACTERIZATION OF ENRICHMENT. V2

Categorical quantum mechanics

Network Theory III: Bayesian Networks, Information and Entropy. John Baez, Brendan Fong, Tobias Fritz, Tom Leinster

Wed Feb The vector spaces 2, 3, n. Announcements: Warm-up Exercise:

Network Theory II: Stochastic Petri Nets, Chemical Reaction Networks and Feynman Diagrams. John Baez, Jacob Biamonte, Brendan Fong

Quantum Quandaries: A Category Theoretic Perspective

Supercategories. Urs July 5, Odd flows and supercategories 4. 4 Braided monoidal supercategories 7

(Refer Slide Time: )

Energy Diagrams --- Attraction

Chapter 1 Review of Equations and Inequalities

Vertex algebras, chiral algebras, and factorisation algebras

A categorical model for a quantum circuit description language

1. Introduction to commutative rings and fields

In other words, we are interested in what is happening to the y values as we get really large x values and as we get really small x values.

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction: Op-amps in Negative Feedback

CHAPTER 6 VECTOR CALCULUS. We ve spent a lot of time so far just looking at all the different ways you can graph

RTG Mini-Course Perspectives in Geometry Series

Linear Algebra, Summer 2011, pt. 2

Categorification and Topology.

Vector Basics, with Exercises

A Categorification of Hall Algebras

Math From Scratch Lesson 24: The Rational Numbers

Gaussian elimination

Cambridge University Press Frobenius Algebras and 2D Topological Quantum Field Theories Joachim Kock Excerpt More information

3. Categories and Functors We recall the definition of a category: Definition 3.1. A category C is the data of two collections. The first collection

Lab 4. Current, Voltage, and the Circuit Construction Kit

1 Categorical Background

Algebraic Varieties. Notes by Mateusz Micha lek for the lecture on April 17, 2018, in the IMPRS Ringvorlesung Introduction to Nonlinear Algebra

Category Theory. Categories. Definition.

Angular Momentum Algebra

Ch. 11 Solving Quadratic & Higher Degree Inequalities

A Graph Theoretic Perspective on CPM(Rel)

Topics in linear algebra

Lecture 8: A Crash Course in Linear Algebra

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Commutative Rings and Fields

Representations of quivers

1 Differentiable manifolds and smooth maps

PARABOLIC SHEAVES ON LOGARITHMIC SCHEMES

Physics 2020 Lab 5 Intro to Circuits

Types in categorical linguistics (& elswhere)

MA 1125 Lecture 15 - The Standard Normal Distribution. Friday, October 6, Objectives: Introduce the standard normal distribution and table.

Universal Algebra and Diagrammatic Reasoning

Proving Completeness for Nested Sequent Calculi 1

Figure 1. Symmetries of an equilateral triangle

Open Markov processes and reaction networks

Electricity. Part 1: Static Electricity

Martin Schnabl. Institute of Physics AS CR. Collaborators: T. Kojita, M. Kudrna, C. Maccaferri, T. Masuda and M. Rapčák

If a function has an inverse then we can determine the input if we know the output. For example if the function

Introduction to Vectors

Conservation of Information

1. Introduction to commutative rings and fields

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 2

48 CHAPTER 2. COMPUTATIONAL METHODS

INTRODUCTION TO PART V: CATEGORIES OF CORRESPONDENCES

Rings If R is a commutative ring, a zero divisor is a nonzero element x such that xy = 0 for some nonzero element y R.

HOW TO THINK ABOUT POINTS AND VECTORS WITHOUT COORDINATES. Math 225

Exploring the Exotic Setting for Algebraic Geometry

Topological quantum computation with anyons

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 24

The Integers. Peter J. Kahn

Lecture 2: Vector Spaces, Metric Spaces

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 5

Lecture for Week 2 (Secs. 1.3 and ) Functions and Limits

Chern Classes and the Chern Character

1. multiplication is commutative and associative;

Addition, Subtraction, Multiplication, and Division

Midterm 1 Review. Distance = (x 1 x 0 ) 2 + (y 1 y 0 ) 2.

Cluster varieties for tree-shaped quivers and their cohomology

Math 309 Notes and Homework for Days 4-6

Mathematics-I Prof. S.K. Ray Department of Mathematics and Statistics Indian Institute of Technology, Kanpur. Lecture 1 Real Numbers

Locally G-ringed spaces and rigid spaces

THE QUANTUM DOUBLE AS A HOPF ALGEBRA

Summary of free theory: one particle state: vacuum state is annihilated by all a s: then, one particle state has normalization:

Algebraic Geometry

CHAPTER 4 VECTORS. Before we go any further, we must talk about vectors. They are such a useful tool for

Construction of Physical Models from Category Theory. Master Thesis in Theoretical Physics. Marko Marjanovic

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 8

Categories and functors

Fock Space Techniques for Stochastic Physics. John Baez, Jacob Biamonte, Brendan Fong

Finish section 3.6 on Determinants and connections to matrix inverses. Use last week's notes. Then if we have time on Tuesday, begin:

where Σ is a finite discrete Gal(K sep /K)-set unramified along U and F s is a finite Gal(k(s) sep /k(s))-subset

9. TRANSFORMING TOOL #2 (the Multiplication Property of Equality)

Transcription:

Categories in Control John Baez and Jason Erbele

Categories are great for describing processes. A process with input x and output y is a morphism F : x y, and we can draw it like this: F

We can do one process after another if the output of the first equals the input of the second: F G Here we are composing morphisms F : x y and G : y z to get a morphism GF : x z.

In a monoidal category, we can also do processes in parallel : F G Here we are tensoring F : x y and G : x y to get a morphism F G : x x y y.

The category with vector spaces as objects and linear maps as morphisms becomes a monoidal category with the usual. In quantum field theory, Feynman diagrams are pictures of morphisms in this monoidal category:

But why should quantum field theorists have all the fun? This is the century of biology, and ecology. Now is our chance to understand the biosphere, and stop destroying it! We should be using category theory and everything else to do these things.

Biologists use diagrams to describe the complex processes they find in life. They use at least three different diagram languages, as formalized in Systems Biology Graphical Notation. We should try to understand these diagrams using all the tools of modern mathematics!

But let s start with something easier: engineering. Engineers use signal-flow graphs to describe processes where signals flow through a system and interact:

Think of a signal as a smooth real-valued function of time: f : R R We can multiply a signal by a constant and get a new signal: f c cf

We can integrate a signal: f f

Here is what happens when you push on a mass m with a time-dependent force F : F 1 m a v q

Integration introduces an ambiguity: the constant of integration. But electrical engineers often use Laplace transforms to write signals as linear combinations of exponentials Then they define f (t) = e st for some s > 0 ( f )(t) = e st s This lets us think of integration as a special case of scalar multiplication! We extend our field of scalars from R to R(s), the field of rational real functions in one variable s.

Let us be general and work with an arbitrary field k. For us, any signal-flow graph with m input edges and n output edges will stand for a linear map F : k m k n In other words: signal-flow graphs are pictures of morphisms in FinVect k, the category of finite-dimensional vector spaces over k... where we make this into a monoidal category using, not. We build these pictures from a few simple generators.

First, we have scalar multiplication: c This is a notation for the linear map k k f cf

Second, we can add two signals: This is a notation for +: k k k

Third, we can duplicate a signal: This is a notation for the diagonal map : k k k f (f, f )

Fourth, we can delete a signal: This is a notation for the linear map k {0} f 0

Fifth, we have the zero signal: This is a notation for the linear map {0} k 0 0

Furthermore, (FinVect k, ) is a symmetric monoidal category. This means we have a braiding : a way to switch two signals: f g g f This is a notation for the linear map k k k k (f, g) (g, f ) In a symmetric monoidal category, the braiding must obey a few axioms. I won t list them here, since they are easy to find.

From these generators : c together with the braiding, we can build complicated signal flow diagrams. In fact, we can describe any linear map F : k m k n this way!

But these generators obey some unexpected relations: = 1 1

Luckily, we can derive all the relations from some very nice ones! Theorem (Jason Erbele) FinVect k is equivalent to the symmetric monoidal category generated by the object k and these morphisms: c where c k, with the following relations.

Addition and zero make k into a commutative monoid: = = =

Duplication and deletion make k into a cocommutative comonoid: = = =

The monoid and comonoid operations are compatible, as in a bialgebra: = = = =

The ring structure of k can be recovered from the generators: bc = b c b + c = b c 1 = 0 =

Scalar multiplication is linear (compatible with addition and zero): c c = c c =

Scalar multiplication is colinear (compatible with duplication and deletion): c c = c c = Those are all the relations we need!

However, control theory also needs more general signal-flow graphs, which have feedback loops : This is the most important concept in control theory: letting the output of a system affect its input.

To allow feedback loops we need morphisms more general than linear maps. We need linear relations! A linear relation F : U V from a vector space U to a vector space V is a linear subspace F U V. We can compose linear relations F : U V and G : V W and get a linear relation G F : U W : G F = {(u, w) : v V (u, v) F and (v, w) G}.

A linear map φ: U V gives a linear relation F : U V, namely the graph of that map: F = {(u, φ(u)) : u U} Composing linear maps becomes a special case of composing linear relations. There is a symmetric monoidal category FinRel k with finitedimensional vector spaces over the field k as objects and linear relations as morphisms. This has FinVect k as a subcategory. Fully general signal-flow diagrams are pictures of morphisms in FinRel k, typically with k = R(s).

Jason Erbele showed that besides the previous generators of FinVect k, we only need two more morphisms to generate all the morphisms in FinRel k : the cup and cap. f f = g g f f = g g These linear relations say that when a signal goes around a bend in a wire, the signal coming out equals the signal going in!

More formally, the cup is the linear relation : k k {0} that is, the subspace k k {0} given by: = {(f, f, 0) : f k} Similarly, the cap is the subspace given by: : {0} k k {0} k k = {(0, f, f ) : f k}

Theorem (Jason Erbele) FinRel k is equivalent to the symmetric monoidal category generated by the object k and these morphisms: c where c k, and an explicit list of relations.

Instead of listing the relations, let me just sketch what comes next! I have only talked about linear control theory. There is also a nonlinear version. In both the linear and nonlinear case there s a general issue: engineers want to build devices that actually implement a given signal-flow graph. One way is to use electrical circuits. These are described using circuit diagrams :

At least in the linear case, there is a category Circ whose morphisms are circuit diagrams. Thanks to work in progress by Brendan Fong, we know there is a functor from this category to FinRel k : Z: Circ FinRel k This functor says, for any linear circuit, how the voltages and currents on the input wires are related to those on the ouput wires.

However, we do not get arbitrary linear relations this way. The space of voltages and currents on n wires, k n k n is naturally a symplectic vector space. And the kind of linear relation F : k m k m k n k n we get from a linear circuit is naturally a Lagrangian relation. That is, F (k m k m ) (k n k n ) is a Lagrangian subspace: a maximal subspace on which the symplectic 2-form vanishes! These are important in classical mechanics.

So, we can see the beginnings of an interesting relation between: control theory electrical engineering category theory symplectic geometry This should become even more interesting when we study nonlinear systems. And as we move from the networks important in human-engineered systems to those important in biology and ecology, the mathematics should become even more rich! For more, see what the Azimuth Project is doing on network theory: www.azimuthproject.org