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

Similar documents
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

Applied Category Theory. John Baez

Categories in Control John Baez and Jason Erbele

The Mathematics of Open Reaction Networks

Props in Network Theory

PROPS IN NETWORK THEORY

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

Abstract structure of unitary oracles for quantum algorithms

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

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

Endomorphism Semialgebras in Categorical Quantum Mechanics

Universal Algebra and Diagrammatic Reasoning

Lecture 4. Signal Flow Graphs and recurrence relations

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

2-DIMENSIONAL TOPOLOGICAL QUANTUM FIELD THEORIES AND FROBENIUS ALGEBRAS. Contents 1. The main theorem 1

OPERAD BIMODULE CHARACTERIZATION OF ENRICHMENT. V2

Categorical quantum mechanics

Types in categorical linguistics (& elswhere)

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

DEFINITIONS: OPERADS, ALGEBRAS AND MODULES. Let S be a symmetric monoidal category with product and unit object κ.

Operads. Spencer Liang. March 10, 2015

Infinite-dimensional Categorical Quantum Mechanics

Custom Hypergraph Categories via Generalized Relations

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

Black-boxing open reaction networks

1 Categorical Background

Formal Homotopy Quantum Field Theories and 2-groups.

Baby's First Diagrammatic Calculus for Quantum Information Processing

Categorical quantum channels

Categories and Quantum Informatics

A categorical model for a quantum circuit description language

Categories and functors

Groupoid Representation Theory

Loop Groups and Lie 2-Algebras

Endomorphism Rings of Abelian Varieties and their Representations

Categorical relativistic quantum theory. Chris Heunen Pau Enrique Moliner Sean Tull

Categories, Functors, Natural Transformations

CORELATIONS ARE THE PROP FOR EXTRASPECIAL COMMUTATIVE FROBENIUS MONOIDS

Categories and Quantum Informatics: Hilbert spaces

Open Markov processes and reaction networks

arxiv:math/ v1 [math.at] 5 Oct 1999

In the beginning God created tensor... as a picture

Mix Unitary Categories

NOTES ON ATIYAH S TQFT S

Kathryn Hess. Conference on Algebraic Topology, Group Theory and Representation Theory Isle of Skye 9 June 2009

A Graph Theoretic Perspective on CPM(Rel)

arxiv: v1 [math.ct] 29 Mar 2017

Higher-Dimensional Algebra VIII: The Hecke Bicategory

PROGRAMMING RECURRENCE RELATIONS

Categorification and Topology.

D-MODULES: AN INTRODUCTION

Quantum Quandaries: A Category Theoretic Perspective

TENSOR PRODUCTS. (5) A (distributive) multiplication on an abelian group G is a Z-balanced map G G G.

Noncommutative geometry and quantum field theory

Category Theory. Categories. Definition.

VERY ROUGH NOTES ON SPECTRAL DEFORMATION THEORY

Quantum Groups and Link Invariants

arxiv: v5 [math.ct] 23 Jul 2018

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

FUNCTORS AND ADJUNCTIONS. 1. Functors

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

Locally G-ringed spaces and rigid spaces

Categorical techniques for NC geometry and gravity

Theories With Duality DRAFT VERSION ONLY

Categorifying quantum knot invariants

ASSIGNMENT - 1, DEC M.Sc. (FINAL) SECOND YEAR DEGREE MATHEMATICS. Maximum : 20 MARKS Answer ALL questions. is also a topology on X.

Fourier transforms from strongly complementary observables

BRIAN OSSERMAN. , let t be a coordinate for the line, and take θ = d. A differential form ω may be written as g(t)dt,

Symbol Index Group GermAnal Ring AbMonoid

Lie 2-algebras and Higher Gauge Theory. Danny Stevenson Department of Mathematics University of California, Riverside

Topological Groupoids and Exponentiability

VERLINDE ALGEBRA LEE COHN. Contents

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

Connecting the categorical and the modal logic approaches to Quantum Mech

A non-commutative notion of separate continuity

Morita Equivalence. Eamon Quinlan

Formal power series rings, inverse limits, and I-adic completions of rings

Introduction to the Baum-Connes conjecture

Interacting Bialgebras are Frobenius

Causal categories: a backbone for a quantumrelativistic universe of interacting processes

CHARACTERS AS CENTRAL IDEMPOTENTS

Diagrammatic Methods for the Specification and Verification of Quantum Algorithms

Modeling. Transition between the TF to SS and SS to TF will also be discussed.

Frobenius algebras & two dimensional TQFT s

Categorical Models for Quantum Computing

Lecture 15: Duality. Next we spell out the answer to Exercise It is part of the definition of a TQFT.

Lecture 17: Invertible Topological Quantum Field Theories

ABSTRACT DIFFERENTIAL GEOMETRY VIA SHEAF THEORY

Representations of quivers

LOOP GROUPS AND CATEGORIFIED GEOMETRY. Notes for talk at Streetfest. (joint work with John Baez, Alissa Crans and Urs Schreiber)

FOUNDATIONS OF ALGEBRAIC GEOMETRY CLASS 2

What are Iteration Theories?

Duality, Residues, Fundamental class

Computation and the Periodic Table

Lecture 23-Formal Groups

Toric coordinates in relative p-adic Hodge theory

A Taxonomy of 2d TQFTs

Overview of Atiyah-Singer Index Theory

EXAMPLES AND EXERCISES IN BASIC CATEGORY THEORY

Transcription:

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

To understand ecosystems, ultimately will be to understand networks. B. C. Patten and M. Witkamp We need a good mathematical theory of networks.

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

The category with vector spaces as objects and linear maps as morphisms becomes symmetric monoidal with the usual. In quantum field theory, Feynman diagrams are pictures of morphisms in this symmetric monoidal category: But the category of vector spaces also becomes symmetric monoidal using. This is important in control theory: the art of getting systems to do what you want. Control theorists use signal-flow diagrams to describe morphisms in this symmetric monoidal category.

For example, an upside-down pendulum on a cart: has the following signal-flow diagram...

F 1 M mg 1 l g l x θ

To formalize this, 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 also integrate a signal: f f

Electrical engineers use Laplace transforms to write signals as linear combinations of exponentials: f (t) = e st for some s > 0 Then they define ( f )(t) = e st s

Electrical engineers 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! So, signal-flow diagrams are a tool for linear algebra over k = R(s), the field of rational functions in one real variable s.

Let us work over any commutative rig k. We start by using signal-flow diagrams with m inputs and n outputs: to describe k-linear maps F : k m k n

These signal flow diagrams are pictures of morphisms in FinVect k, the strict symmetric monoidal category with: one object k n for each n N k-linear maps F : k m k n as morphisms and with tensor product given by direct sum. FinVect k is abuse of notation: we re talking about finitely generated free k-modules, which are finite-dimensional vector spaces when k is a field.

FinVect k is generated as a symmetric monoidal category by one object, k, and 5 kinds of morphisms: 1. Scalar multiplication by c k c c : k k x cx

2. Addition: +: k 2 k (x, y) x + y

3. Zero: 0: {0} k 0 0

4. Duplication: : k k 2 x (x, x)

5. Deletion:!: k {0} x 0

We know all the relations these generating morphisms obey: Theorem (Baez Erbele,Wadsley Woods) FinVect k is the PROP for bicommutative bimonoids over k. This a terse way to list relations, and to say that these imply all the relations. In detail...

(1) (3) Addition and zero make k into a commutative monoid: = = = (4) (6) Duplication and deletion make k into a cocommutative comonoid: = = =

(7) (10) The monoid and comonoid structures on k fit together to form a bicommutative bimonoid: = = = =

What is a bicommutative bimonoid over k? For any bicommutative bimonoid A in a symmetric monoidal category, the bimonoid endomorphisms f : A A can be added and composed, giving a rig End(A). A bicommutative bimonoid over k is one equipped with a rig homomorphism Φ: k End(A)

(11) (14) Saying that Φ sends each c k to a bimonoid homomorphism means that these extra relations hold: c c = c c = c c = c c =

(15) (18) Saying that Φ is a rig homomorphism means that these extra relations hold: c bc = b+c = b c b 1 = 0 = So, these are all the relations in FinVect k.

But control theory also needs more general signal-flow diagrams with feedback loops : setting measured output 1 measured error a controller system input b system sensor c system output

Feedback is the most important concept in control theory: letting the output of a system affect its input. For this we should let wires bend back : These aren t linear maps they re 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.

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 in the usual way we compose relations. There is a symmetric monoidal category FinRel k with: one object k n for each n N linear relations F : k m k n as morphisms and with tensor product given by direct sum. It has FinVect k as a symmetric monoidal subcategory.

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 in the usual way we compose relations. There is a symmetric monoidal category FinRel k with: one object k n for each n N linear relations F : k m k n as morphisms and with tensor product given by direct sum. It has FinVect k as a symmetric monoidal subcategory. Fully general signal-flow diagrams are pictures of morphisms in FinRel k, typically with k = R(s).

Besides the generators of FinVect k we only need two more morphisms to generate FinRel k : 6. The cup: This is the linear relation : k 2 {0} given by = {(x, x, 0) : x k} k 2 {0}

7. The cap: This is the linear relation : {0} k 2 given by = {(0, x, x) : x k} {0} k 2

Theorem (Baez Erbele, Bonchi Sobociński Zanasi) FinRel k is the free symmetric monoidal category on a pair of interacting bimonoids over k. Besides the relations we ve seen so far, this statement summarizes the following extra relations:

(19) (20) and obey the zigzag relations: = =

It follows that (FinRel k, ) becomes a dagger-compact category, so we can turn around any morphism F : U V and get its adjoint F : V U: F = {(v, u) : (u, v) F }

It follows that (FinRel k, ) becomes a dagger-compact category, so we can turn around any morphism F : U V and get its adjoint F : V U: F = {(v, u) : (u, v) F } For example, turning around duplication : k k k gives coduplication, : k k k: := = {(x, x, x)} k 2 k

(21) (22) (k, +, 0, +, 0 ) is a Frobenius monoid: = = (23) (24) (k,,!,,!) is a Frobenius monoid: = =

(25) (26) The Frobenius monoid (k, +, 0, +, 0 ) is extra-special: = = (27) (28) The Frobenius monoid (k,,!,,!) is extra-special: = =

(29) with a factor of 1 inserted can be expressed in terms of + and 0: 1 = (30) can be expressed in terms of and!: =

(31) For any c k with c 0, scalar multiplication by c 1 is the adjoint of scalar multiplication by c: c = c 1

This is part of a larger story: An electrical circuit made of resistors, resistors and capacitors gives a linear relation between its input and output voltages and currents. Baez and Fong showed this gives a symmetric monoidal functor: Circ FinRel R(s) This gives the semantics for circuit diagrams. For circuits made only of resistors, we have ResCirc FinRel R

Similarly, Baez, Fong and Pollard showed that the steady states of an open detailed balanced Markov process determine a linear relation between its input and output populations and flows. This gives a symmetric monoidal functor : DetBalMark FinRel R fitting into this diagram: DetBalMark K ResCirc α FinRel R In short, we can reduce the steady-state semantics of detailed balanced Markov processes to that of circuits made of resistors!