Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay...

30
Physics, Topology, Logic and Computation: a Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic Computation object system manifold proposition data type morphism process cobordism proof program z z z z z z z || X&Y Z λ xλ y . x( y)

Transcript of Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay...

Page 1: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

Physics Topology Logic and Computationa Rosetta Stone

John Baez and Mike Stay

April 9 2010California State University Fresno

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

The Big Idea

Once upon a time mathematics was all about sets

In 1945 Eilenberg and Mac Lane introducedcategories

These put processes on an equal footing with things

In physics we often use categories where

bull objects represent physical systems

bullmorphisms represent physical processes

In classical physics we often use the category Set where

bull an object is a set

bull a morphism is a function

In quantum physics we often use Hilb where

bull an object is a Hilbert space

bull a morphism is a linear operator

A category C consists of

bullA collection of objects If X is an object of C wewrite X isin C

bull For any X Y isin C a set of morphisms f X rarr Y

We require that

bull Every X isin C has an identity morphism1X X rarr X

bullGiven f X rarr Y and g Y rarr Z there is acomposite morphism g f X rarr Z

bull The unit laws hold if f X rarr Y thenf1X = f = 1Y f

bullComposition is associative (hg) f = h(g f )

Feynman used diagrams to describe processes inquantum physics

-------------

HHHHHHHHH

VVVVVVV

LLLLLL

ee

Now we know that these are pictures of morphisms mdashso we can use these diagrams in other contexts

We can draw a morphism

f X rarr Y

like this

f

X

Y

We draw the composite of f X rarr Y and g Y rarr Zlike this

f

g

X

Y

Z

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 2: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

The Big Idea

Once upon a time mathematics was all about sets

In 1945 Eilenberg and Mac Lane introducedcategories

These put processes on an equal footing with things

In physics we often use categories where

bull objects represent physical systems

bullmorphisms represent physical processes

In classical physics we often use the category Set where

bull an object is a set

bull a morphism is a function

In quantum physics we often use Hilb where

bull an object is a Hilbert space

bull a morphism is a linear operator

A category C consists of

bullA collection of objects If X is an object of C wewrite X isin C

bull For any X Y isin C a set of morphisms f X rarr Y

We require that

bull Every X isin C has an identity morphism1X X rarr X

bullGiven f X rarr Y and g Y rarr Z there is acomposite morphism g f X rarr Z

bull The unit laws hold if f X rarr Y thenf1X = f = 1Y f

bullComposition is associative (hg) f = h(g f )

Feynman used diagrams to describe processes inquantum physics

-------------

HHHHHHHHH

VVVVVVV

LLLLLL

ee

Now we know that these are pictures of morphisms mdashso we can use these diagrams in other contexts

We can draw a morphism

f X rarr Y

like this

f

X

Y

We draw the composite of f X rarr Y and g Y rarr Zlike this

f

g

X

Y

Z

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 3: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

In physics we often use categories where

bull objects represent physical systems

bullmorphisms represent physical processes

In classical physics we often use the category Set where

bull an object is a set

bull a morphism is a function

In quantum physics we often use Hilb where

bull an object is a Hilbert space

bull a morphism is a linear operator

A category C consists of

bullA collection of objects If X is an object of C wewrite X isin C

bull For any X Y isin C a set of morphisms f X rarr Y

We require that

bull Every X isin C has an identity morphism1X X rarr X

bullGiven f X rarr Y and g Y rarr Z there is acomposite morphism g f X rarr Z

bull The unit laws hold if f X rarr Y thenf1X = f = 1Y f

bullComposition is associative (hg) f = h(g f )

Feynman used diagrams to describe processes inquantum physics

-------------

HHHHHHHHH

VVVVVVV

LLLLLL

ee

Now we know that these are pictures of morphisms mdashso we can use these diagrams in other contexts

We can draw a morphism

f X rarr Y

like this

f

X

Y

We draw the composite of f X rarr Y and g Y rarr Zlike this

f

g

X

Y

Z

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 4: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

A category C consists of

bullA collection of objects If X is an object of C wewrite X isin C

bull For any X Y isin C a set of morphisms f X rarr Y

We require that

bull Every X isin C has an identity morphism1X X rarr X

bullGiven f X rarr Y and g Y rarr Z there is acomposite morphism g f X rarr Z

bull The unit laws hold if f X rarr Y thenf1X = f = 1Y f

bullComposition is associative (hg) f = h(g f )

Feynman used diagrams to describe processes inquantum physics

-------------

HHHHHHHHH

VVVVVVV

LLLLLL

ee

Now we know that these are pictures of morphisms mdashso we can use these diagrams in other contexts

We can draw a morphism

f X rarr Y

like this

f

X

Y

We draw the composite of f X rarr Y and g Y rarr Zlike this

f

g

X

Y

Z

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 5: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

Feynman used diagrams to describe processes inquantum physics

-------------

HHHHHHHHH

VVVVVVV

LLLLLL

ee

Now we know that these are pictures of morphisms mdashso we can use these diagrams in other contexts

We can draw a morphism

f X rarr Y

like this

f

X

Y

We draw the composite of f X rarr Y and g Y rarr Zlike this

f

g

X

Y

Z

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 6: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

We can draw a morphism

f X rarr Y

like this

f

X

Y

We draw the composite of f X rarr Y and g Y rarr Zlike this

f

g

X

Y

Z

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 7: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

We draw the composite of f X rarr Y and g Y rarr Zlike this

f

g

X

Y

Z

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 8: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

Then the associative law is implicit

f

g

h

X

Y

Z

W

If we draw the identity morphism 1X X rarr X likethis

X

the unit laws are implicit too

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 9: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

For theories with at least 1 dimension of space weneed monoidal categories

Here any pair of morphisms f X rarr Y f prime Xprime rarr Yprimehas a tensor product

f otimes f prime X otimes Xprime rarr Y otimes Yprime

We use this to describe parallel processes

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes YprimeExamplesbull The category Hilb with its usual tensor productotimes

bull The category Set with the cartesian product times

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 10: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

More generally we can draw any morphism

f X1 otimes middot middot middot otimes Xn rarr Y1 otimes middot middot middot otimes Ym

like this

f

X1 X2 X3

Y1 Y2

In physics we use this to depict an interactionbetween particles

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 11: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

By composing and tensoring we can build up biggerdiagrams

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

The monoidal category axioms let us deform thepicture without changing the morphism

f

gh

j

X1 X2 X3 X4

Y1 Y2 Y3 Y4

Z

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 12: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

In theories with least 2 dimensions of space we usebraided monoidal categories We can draw thebraiding

BXY X otimes Y rarr Y otimes X

like this

X Y

It has an inverse drawn like this

XY

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 13: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

Then we have

X

X

Y

Y

= X Y =

Y

Y

X

X

In theories with at least 3 dimensions of space we usesymmetric monoidal categories where

X Y=

YX

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 14: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

The most familiar braided monoidal categories aresymmetric

bull In Set with its cartesian product the standardbraiding is

BXY X times Y rarr Y times X(x y) 7rarr (y x)

bull In Hilb with its usual tensor product the standardbraiding is

BXY X otimes Y rarr Y otimes Xx otimes y 7rarr y otimes x

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 15: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

However in thin films there can be lsquoanyonsrsquo Theseare particle-like excitations described by braided monoidalcategories that are not symmetric

bull Superconducting films the quantum Hall effect

bullGraphene (single-layer graphite) fractional-chargeanyons are possible not yet seen

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 16: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

But therersquos a lot more to this story

THE ROSETTA STONE

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 17: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

In topology there is a category nCob where

bull objects are (n minus 1)-dimensional manifolds

bullmorphisms are cobordisms

A cobordism f X rarr Y is an n-dimensional manifoldwhose boundary is the disjoint union of X and Y Forexample when n = 2

X

Y

f

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 18: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

We compose cobordisms by gluing the lsquooutputrsquo of oneto the lsquoinputrsquo of the other

X

Y

f

Y

Z

g

X

Z

g f

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 19: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

nCob is a monoidal category We tensor cobordismsby taking their disjoint union

X

Y

f

Xprime

Yprimeg

X otimes Xprime

Y otimes Yprimefotimesg

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 20: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

In fact nCob is a symmetric monoidal categoryX otimes Y

Y otimes X

BXY

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 21: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

In general relativity objects in nCob describe choicesof space while morphisms describe choices of space-time I believe that

Quantum theory will eventually make more sense aspart of a theory of quantum gravity mdash but this can onlybe understood using categories

Why The weird features of quantum theory comefrom the ways that Hilb is less like Set than nCobBut nCob is what we use to describe space and space-time in general relativity

lsquoWeirdrsquo properties of quantum theory correspond tounsurprising properties of spacetime

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 22: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

object morphismbull bull rarr bull

SET set function betweenTHEORY sets

QUANTUM Hilbert space operator betweenTHEORY Hilbert spaces

(state) (process)

GENERAL manifold cobordism betweenRELATIVITY manifolds

(space) (spacetime)

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 23: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

For example Set is lsquocartesianrsquo while nCob and Hilbare not

If a symmetric monoidal category is cartesian youcan do various things including duplication

∆X X rarr X otimes X

In Set we can duplicate as follows

∆X X rarr X times Xx 7rarr (x x)

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 24: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

In Hilb we cannot duplicate the function

X rarr X otimes Xx 7rarr x otimes x

is not linear Itrsquos not a morphism in HilbSo we lsquocannot clone a quantum statersquo

Similarly in nCob there is no duplication despitethis misleading picture for n = 2

X

X otimes X

When n = 1 therersquos typically no cobordism from amanifold X to X otimes X and similarly for n = 4

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 25: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

What about logic and computer science These toostudy categories of things and processes

In proof theory we use categories where

bull an object is a proposition

bull a morphism is a proof

In computer science we use categories where

bull an object is a data type

bull a morphism is a program

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 26: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

In proof theory X ` Y means assuming X we canprove Y But we can also let it mean the set of proofsleading from assumption X to conclusion Y

Since proofs are morphisms we can compose themX ` Y Y ` Z

X ` Z

The identity morphism

X ` X

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 27: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

Logic uses monoidal categories where the tensorproduct is lsquoandrsquo We can tensor propositions andtensor proofs

W ` X Y ` ZWampY ` XampZ

In fact logic uses symmetric monoidal categoriesX ` YampZX ` ZampY

Classical logic is cartesian so it permits duplicationX ` Y

X ` YampY

Linear logic does not

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 28: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

A program that takes data of type X as input andreturns data of type Y can be seen as a morphismf X rarr Y

Categories of data types and programs are monoidalGiven data types X and Xprime there is a data type XotimesXprimeAnd given programs f X rarr Y f Xprime rarr Yprime we canwrite a program f otimes f prime that does these two jobs inparallel

fX

Yf prime

Xprime

Yprime= f otimes f prime

X otimes Xprime

Y otimes Yprime

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 29: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

These categories are are typically symmetric monoidal

X Y

Theyrsquore also cartesian For example we can writeprograms that duplicate data

∆X X rarr X otimes X

But for quantum computation we need programminglanguages that apply to noncartesian categories mdashbecause you canrsquot duplicate quantum data

And in quantum computation using anyons therelevant categories are braided

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)

Page 30: Physics, Topology, Logic and Computation: a Rosetta Stonea Rosetta Stone John Baez and Mike Stay April 9, 2010 California State University, Fresno Categories Physics Topology Logic

For more detail read our paper in Bob Coeckersquos forth-coming book New Structures in Physics You can findit now You can find it now on the arXiv

Categories Physics Topology Logic Computationobject system manifold proposition data type

morphism process cobordism proof program

zzzzzzz||

` `

` `

XampY ` Z λxλy x(y)