Classical vs Quantum Computation (Week 18)
Posted by John Baez
Today we had our last class on Classical vs Quantum Computation for this quarter:
-
Week 18 (Mar. 15) -
2-categories from typed λ-calculi, continued.
The Church-Rosser theorem. Surface diagrams showing
the process of computation. β-reduction as a fold
catastrophe. Thom’s ideas on catastrophe theory.
Challenge: draw the surface diagram for η-reduction.
Which catastrophe does it correspond to?
Blog entry.
Supplementary reading:
-
Lucien Dujardin, Catastrophe teacher: an introduction for experimentalists.
-
Barnaby P. Hilken, Towards a
proof theory of rewriting: the simply-typed 2λ-calculus,
Theor. Comp. Sci. 170 (1996), 407–444.
-
R. A. G. Seely, Weak
adjointness in proof theory
in Proc. Durham Conf. on Applications of Sheaves,
Springer Lecture Notes in Mathematics 753,
Springer, Berlin, 1979, pp. 697–701.
-
R. A. G. Seely, Modeling
computations: a 2-categorical framework, in
Proc. Symposium on Logic in Computer Science 1987,
Computer Society of the IEEE, pp. 65–71.
-
C. Barry Jay and Neil Ghani, The virtues of eta-expansion,
J. Functional Programming 1 (1993), 1–19.
Last week’s notes are here; next week’s notes are here.
We came pretty close to our goal of explaining how processes of computation are 2-morphisms in a 2-category. Namely, we came close to seeing how for any typed λ-calculus there’s a 2-category with
-
types as objects,
-
terms as morphisms,
-
rewrite rules (ways of simplifying terms) as 2-morphisms.
We saw how to draw these 2-morphisms as surfaces, and we noticed an intriguing relation to René Thom’s ideas on catastrophe theory: it turned out that the process of ‘applying a function to its argument’ gives a surface with the simplest sort of catastrophe — a fold catastrophe:

We did not reach our goal of proving that the 2-category we got is a ‘cartesian closed 2-category’. In fact, we didn’t even define that concept! Nor did we get around to generalizing all this to the non-cartesian — or roughly speaking, ‘quantum’ — context.
Today’s session was a bit sad, because it’s the last one my student Mike Stay will attend. He’s the one who turned my interest in categories and computation from a hobby to something a bit more than a hobby, by coming to U.C. Riverside with a master’s in computer science and wanting to work on categories and quantum computation. Unfortunately, he couldn’t earn enough money here to support his family, so he took a job at Google, and he’s leaving town this weekend. Luckily, his skills in cryptography will now let him earn more than I do! I’m hoping he becomes a bigshot at Google and sets up a little n-category research group.
Right now we’re writing an expository paper on logic, computation, categories and Feynman diagrams, for a book Bob Coecke is editing. Google has a nice policy of letting their employees spend one day a week on projects of their own choosing. So, we’ll keep working away — but it won’t be the same. I may or may not keep the Classical vs Quantum Computation seminar going in the Spring quarter: my other students are working on other stuff!
Posted at March 15, 2007 9:36 PM UTC
TrackBack URL for this Entry: http://golem.ph.utexas.edu/cgi-bin/MT-3.0/dxy-tb.fcgi/1205
Re: Classical vs Quantum Computation (Week 18)
I was under the impression that Whitney, not Thom, discovered the fold map, and more generally classified singularities of 2-dimensional maps (i.e. maps R2 → R2).
(I was also under the impression that since the 1980s there’s a rule against calling these things “catastrophes,” but maybe the backlash has died down enough by now.)
Re: Classical vs Quantum Computation (Week 18)
Thanks for the info about Whitney!
I know there was a harsh reaction against the inflated rhetoric about catastrophe theory that was so common after René Thom’s Structural Stability and Morphogenesis and Semiophysics came out.
However, it’s precisely one of Thom’s dangerously broad claims that I wanted to take up here, namely that verbs correspond to catastrophes. This is a relation between syntax and differential topology — and it’s precisely this sort of relation we’re seeing when we use surface diagrams to represent processes of computation in the 2-category coming from a typed λ-calculus!
Of course in -category theory we say ‘object’ instead of ‘noun’, ‘morphism’ instead of ‘verb’ — and we can go further and talk about 2-morphisms, etc. Thom didn’t think in terms of -categories, but that needn’t stop us.
By following some systematic rules, we saw in class that the process of evaluating a function, or more precisely the 2-morphism ‘β-reduction’, corresponds to a fold catastrophe! And this is just the tip of the iceberg — further thought along these lines quickly takes us to the swallowtail singularity, and beyond.
So, something big is going on, and the person to blame for these dangerously sexy big ideas is Thom, not Whitney.
Of course, some people got carried away with catastrophe theory in rather silly ways. But it would also be silly not to mention it when some of Thom’s ideas are getting realized in a very precise way.
Re: Classical vs Quantum Computation (Week 18)
James Tobias of the English department at UCR came to this class, having seen an announcement for it, and being interested in quantum computation. I warned him that it was the last class of two quarter’s worth of fancy mathematics. Amazingly, he seemed to enjoy or at least tolerate it!
The participants of the class had a short discussion of the etymology of the word ‘catastrophe’. Here’s some followup from Prof. Tobias:
By the way, I also thought that “strophe” was an equivalent of the Latin “trope,” but I was confused between the Latin and Greek. So I looked up the terms in the OED to make sure of the meanings. “Strophe” of “catastrophe” is, as you indicated, “a turning,” so that “catastrophe” is an “overturning” or broadly, a sudden conclusion.
The OED on “strophe”: “Originally the word στροϕη, ‘turning’, was applied to the movement of the chorus from right to left, and αντιστροϕη [antistrophe], ‘counter-turn’, to its returning movement from left to right; hence these terms became the designations of the portions of the choric ode sung during these movements respectively.”
In these terms, since you so elegantly “fell turning” into your conclusions after the back and forth parsing of functions and diagrams, your talk, including the call and response with your chorus of graduate students, was for this outsider, a very successful catastrophe!
Warmly,
James Tobias
Read the post
Cohomology and Computation (Week 19)
Weblog: The n-Category Café
Excerpt: The origins of cohomology in the study of 'syzygies', or relations between relations.
Tracked: April 20, 2007 8:39 PM
Re: Classical vs Quantum Computation (Week 18)
I went to a neat talk here at Google yesterday. It was about an interesting paper
that says given only the type of a term, you can construct the term of
that type that must be there, and also about a Haskell program
“Djinn” that “magically” produces the code.
There’s a list of examples and a help file that explains a little bit about how to use it.
It produced code for identity, S and K combinators, first and second
projections from a pair, swap, compose, curry, uncurry, bind and
return for monads, even call-with-current-continuation, all from just
the type information.
I think it also generated the traditional Church-numeral code for zero and plus, but I’m not sure about that.
Re: Classical vs Quantum Computation (Week 18)
I just added a bunch more links to 2-categorical aspects of the -calculus. Most of these are familiar to those in the know, but Paul-André Melliè pointed me to one I’d never seen:
Re: Classical vs Quantum Computation (Week 18)
I was under the impression that Whitney, not Thom, discovered the fold map, and more generally classified singularities of 2-dimensional maps (i.e. maps R2 → R2).
(I was also under the impression that since the 1980s there’s a rule against calling these things “catastrophes,” but maybe the backlash has died down enough by now.)