Lecture 18 - Resource Theories
Hi, I'm back from Leiden! I'm ready to rock and roll! Are you ready?
I could spend all day talking about the workshop on applied category theory and what we did there. We figured out the math of how cells "couple" chemical reactions, we learned an amazing connection between "lenses" in bidirectional programming and supervised learning in artificial intelligence, we launched a new journal... and much, much more. My brain is still recovering. But right now it's time to teach you some cool stuff!
Chapter 2 is about "resource theories". Resource theories help us answer questions like this:
- Given what I have, is it possible to get what I want?
- Given what I have, how much will it cost to get what I want?
- Given what I have, how long will it take to get what I want?
- Given what I have, what is the set of ways to get what I want?
In each of these questions we are given some "inputs" \(x\) and we want some "outputs" \(y\). In the first question we want a yes-or-no answer: can we get from \(x\) to \(y\). In the second and third questions we want a number for an answer. In the fourth question we want a set for an answer. We'll eventually get a unified framework for answering questions of all these kinds.
For example, we could be trying to make a lemon meringue pie. Have you ever made one? Not me! But here's a way to make one... at least before you put it into the oven:
This kind of picture often called a "string diagram". Fong and Spivak call it a "wiring diagram", so we'll do that.
We can use this wiring diagram in many ways. The simplest way is to answer the first question in our list! Yes, it is possible to make an unbaked lemon meringue pie if you have a crust, a lemon, some butter, some sugar, and egg, and some more sugar.
(Of course you'll also need some kitchen tools. These could be included in a more detailed string diagram. For now I'm trying to simplify things. That's also why I'm not saying how much butter and sugar we need.)
Another thing we can do with this wiring diagram is connect it to another wiring diagram and build a bigger wiring diagram, like this:
Now we are baking our pie! For this we need an oven.
If all we care about is the first question in our list - is it possible to go from some inputs to some outputs - wiring diagrams are overkill. For this question, we could summarize our first wiring diagram as an inequality:
$$ \text{unbaked pie} \le \text{crust} + \text{lemon} + \text{butter} + \text{sugar} + \text{egg} + \text{sugar} $$
where we use \(x \le y\) to mean "we can get \(x\) from \(y\)". Similarly, we could summarize the baking process by
$$ \text{baked pie} \le \text{unbaked pie} + \text{oven} $$
We can manipulate these inequalities in familiar ways to get
$$ \text{baked pie} \le \text{crust} + \text{lemon} + \text{butter} + \text{sugar} + \text{egg} + \text{sugar} + \text{oven} $$
But what are these "familiar ways", exactly?
For starters, we are using the rules for a preorder, which say that
$$ x \le x $$
and
$$ x \le y \textrm{ and } y \le z \textrm{ imply } x \le z .$$
That's one reason we went through Chapter 1: to understand this stuff, you need to understand posets! But we are also using some rules about the symbol \(+\). We're not doing ordinary addition of numbers here. So, what does this \(+\) symbol really mean? More precisely: what rules does should it obey?
This question is one of the big topics of Chapter 2. If you want to peek ahead at the answer, read Section 2.2 of our textbook.
But first I need to say more about why resource theories are important. We do not really need them to make lemon meringue pies! But we do need them to deeply understand chemistry, thermodynamics, operations research, project management, information theory and the study of quantum entanglement... and how these subjects fit together! So, I want to say a bit about that.
If you want to learn more about resource theories, besides our textbook and my lectures I recommend these papers:
-
Bob Coecke, Tobias Fritz and Robert W. Spekkens, A mathematical theory of resources.
-
Tobias Fritz, Resource convertibility and ordered commutative monoids.
The first is more elementary, so start there! Luckily Tobias Fritz is my friend, and he's attending this course - so once we get going, we can ask him some questions!
To read other lectures go here.