physics, language, maths & music

83
Physics, Language, Maths & Music (partly in arXiv:1204.3458) Bob Coecke, Oxford, CS-Quantum SyFest, Vienna, July 2013 = f f = f f f ALICE BOB = ALICE BOB f = not like Bob Alice does Alice not like not Bob meaning vectors of words pregroup grammar

Upload: others

Post on 03-Feb-2022

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Physics, Language, Maths & Music

Physics, Language, Maths & Music(partly in arXiv:1204.3458)

Bob Coecke, Oxford, CS-Quantum

SyFest, Vienna, July 2013

=

f

f =

f f

f

ALICE

BOB

=

ALICE

BOB

f=

not

likeBobAlice

does

Alice not like

not

Bob

meaning vectors of words

pregroup grammar

Page 2: Physics, Language, Maths & Music

. . . via (some sort of) Logic(partly in arXiv:1204.3458)

Bob Coecke, Oxford, CS-Quantum

SyFest, Vienna, July 2013

=

f

f =

f f

f

ALICE

BOB

=

ALICE

BOB

f=

not

likeBobAlice

does

Alice not like

not

Bob

meaning vectors of words

pregroup grammar

Page 3: Physics, Language, Maths & Music

— PHYSICS —

Samson Abramsky & BC (2004) A categorical semantics for quantum proto-cols. In: IEEE-LiCS’04. quant-ph/0402130

BC (2005) Kindergarten quantum mechanics. quant-ph/0510032

Page 4: Physics, Language, Maths & Music

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

Page 5: Physics, Language, Maths & Music

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

Page 6: Physics, Language, Maths & Music

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

[Birkhoff and von Neumann 1936] The Logic of Quan-tum Mechanics in Annals of Mathematics.

Page 7: Physics, Language, Maths & Music

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

[Birkhoff and von Neumann 1936] The Logic of Quan-tum Mechanics in Annals of Mathematics.

[1936 – 2000] many followed them, ... and FAILED.

Page 8: Physics, Language, Maths & Music

— genesis —

[von Neumann 1932] Formalized quantum mechanicsin “Mathematische Grundlagen der Quantenmechanik”

[von Neumann to Birkhoff 1935] “I would like tomake a confession which may seem immoral: I do notbelieve absolutely in Hilbert space no more.” (sic)

[Birkhoff and von Neumann 1936] The Logic of Quan-tum Mechanics in Annals of Mathematics.

[1936 – 2000] many followed them, ... and FAILED.

Page 9: Physics, Language, Maths & Music

— the mathematics of it —

Page 10: Physics, Language, Maths & Music

— the mathematics of it —

Hilbert space stuff: continuum, field structure of com-plex numbers, vector space over it, inner-product, etc.

Page 11: Physics, Language, Maths & Music

— the mathematics of it —

Hilbert space stuff: continuum, field structure of com-plex numbers, vector space over it, inner-product, etc.

WHY?

Page 12: Physics, Language, Maths & Music

— the mathematics of it —

Hilbert space stuff: continuum, field structure of com-plex numbers, vector space over it, inner-product, etc.

WHY?

von Neumann: only used it since it was ‘available’.

Page 13: Physics, Language, Maths & Music

— the physics of it —

Page 14: Physics, Language, Maths & Music

— the physics of it —

von Neumann crafted Birkhoff-von Neumann Quan-tum ‘Logic’ to capture the concept of superposition.

Page 15: Physics, Language, Maths & Music

— the physics of it —

von Neumann crafted Birkhoff-von Neumann Quan-tum ‘Logic’ to capture the concept of superposition.

Schrodinger (1935): the stuff which is the true soul ofquantum theory is how quantum systems compose.

Page 16: Physics, Language, Maths & Music

— the physics of it —

von Neumann crafted Birkhoff-von Neumann Quan-tum ‘Logic’ to capture the concept of superposition.

Schrodinger (1935): the stuff which is the true soul ofquantum theory is how quantum systems compose.

Quantum Computer Scientists: Schrodinger is right!

Page 17: Physics, Language, Maths & Music

— the game plan —

Page 18: Physics, Language, Maths & Music

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

Page 19: Physics, Language, Maths & Music

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

i.e. axiomatize “⊗” without reference to spaces.

Page 20: Physics, Language, Maths & Music

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

i.e. axiomatize “⊗” without reference to spaces.

Task 1. Investigate which assumptions (i.e. which struc-ture) on ⊗ is needed to deduce physical phenomena.

Page 21: Physics, Language, Maths & Music

— the game plan —

Task 0. Solve:tensor product structure

the other stuff= ???

i.e. axiomatize “⊗” without reference to spaces.

Task 1. Investigate which assumptions (i.e. which struc-ture) on ⊗ is needed to deduce physical phenomena.

Task 2. Investigate wether such an “interaction struc-ture” appear elsewhere in “our classical reality”.

Page 22: Physics, Language, Maths & Music

— wire and box language —

Page 23: Physics, Language, Maths & Music

— wire and box language —

foutput wire(s)

input wire(s)Box =:

Interpretation: wire := system ; box := process

Page 24: Physics, Language, Maths & Music

— wire and box language —

foutput wire(s)

input wire(s)Box =:

Interpretation: wire := system ; box := process

one system: n subsystems: no system:

︸︷︷︸1

. . .︸ ︷︷ ︸

n︸︷︷︸

0

Page 25: Physics, Language, Maths & Music

— wire and box games —

sequential or causal or connected composition:

g ◦ f ≡g

f

parallel or acausal or disconnected composition:

f ⊗ g ≡ f fg

Page 26: Physics, Language, Maths & Music

— merely a new notation? —

(g ◦ f ) ⊗ (k ◦ h) = (g ⊗ k) ◦ ( f ⊗ h)

=f h

g k

f h

g k

Page 27: Physics, Language, Maths & Music

— quantitative metric —

f : A→ B

f

A

B

Page 28: Physics, Language, Maths & Music

— quantitative metric —

f † : B→ A

f

B

A

Page 29: Physics, Language, Maths & Music

— asserting (pure) entanglement —

quantumclassical

=

==

Page 30: Physics, Language, Maths & Music

— asserting (pure) entanglement —

quantumclassical

=

==

⇒ introduce ‘parallel wire’ between systems:

subject to: only topology matters!

Page 31: Physics, Language, Maths & Music

— quantum-like —

E.g.

=

Page 32: Physics, Language, Maths & Music

Transpose:

ff

=Conjugate:

ff

=

Page 33: Physics, Language, Maths & Music

classical data flow?

f

=

fff

Page 34: Physics, Language, Maths & Music

classical data flow?

f

=

f

Page 35: Physics, Language, Maths & Music

classical data flow?

f

=

f

Page 36: Physics, Language, Maths & Music

classical data flow?

f

ALICE

BOB

=

ALICE

BOB

f

⇒ quantum teleportation

Page 37: Physics, Language, Maths & Music

— symbolically: dagger compact categories —

Thm. [Kelly-Laplaza ’80; Selinger ’05] An equa-tional statement between expressions in dagger com-pact categorical language holds if and only if it isderivable in the graphical notation via homotopy.

Thm. [Hasegawa-Hofmann-Plotkin; Selinger ’08]An equational statement between expressions in dag-ger compact categorical language holds if and onlyif it is derivable in the dagger compact category of fi-nite dimensional Hilbert spaces, linear maps, tensorproduct and adjoints.

Page 38: Physics, Language, Maths & Music

— LANGUAGE—

BC, Mehrnoosh Sadrzadeh & Stephen Clark (2010) Mathematical foundationsfor a compositional distributional model of meaning. arXiv:1003.4394

Page 39: Physics, Language, Maths & Music

— the logic of it —

WHAT IS “LOGIC”?

Page 40: Physics, Language, Maths & Music

— the logic of it —

WHAT IS “LOGIC”?

Pragmatic option 1: Logic is structure in language.

Page 41: Physics, Language, Maths & Music

— the logic of it —

WHAT IS “LOGIC”?

Pragmatic option 1: Logic is structure in language.

“Alice and Bob ate everything or nothing, then got sick.”

connectives (∧,∨) : and, ornegation (¬) : not (cf. nothing = not something)entailment (⇒) : thenquantifiers (∀,∃) : every(thing), some(thing)constants (a, b) : thingvariable (x) : Alice, Bobpredicates (P(x),R(x, y)) : eating, getting sicktruth valuation (0, 1) : true, false

(∀z : Eat(a, z) ∧ Eat(b, z)) ∧ ¬(∃z : Eat(a, z) ∧ Eat(b, z))⇒ S ick(a), S ick(b)

Page 42: Physics, Language, Maths & Music

— the logic of it —

WHAT IS “LOGIC”?

Pragmatic option 1: Logic is structure in language.

Pragmatic option 2: Logic lets machines reason.

Page 43: Physics, Language, Maths & Music

— the logic of it —

WHAT IS “LOGIC”?

Pragmatic option 1: Logic is structure in language.

Pragmatic option 2: Logic lets machines reason.

E.g. automated theory exploration, ...

Page 44: Physics, Language, Maths & Music

— the logic of it —

WHAT IS “LOGIC”?

Pragmatic option 1: Logic is structure in language.

Pragmatic option 2: Logic lets machines reason.

Our framework appeals to both senses of logic, andmoreover induces important new applications:From truth to meaning in natural language processing:

— (December 2010)

Automated theorem generation for graphical theories:

— http://sites.google.com/site/quantomatic/

Page 45: Physics, Language, Maths & Music

— the from-words-to-a-sentence process —

Consider meanings of words, e.g. as vectors (cf. Google):

word 1 word 2 word n...

Page 46: Physics, Language, Maths & Music

— the from-words-to-a-sentence process —

What is the meaning the sentence made up of these?

word 1 word 2 word n...

Page 47: Physics, Language, Maths & Music

— the from-words-to-a-sentence process —

I.e. how do we/machines produce meanings of sentences?

word 1 word 2 word n...?

Page 48: Physics, Language, Maths & Music

— the from-words-to-a-sentence process —

I.e. how do we/machines produce meanings of sentences?

word 1 word 2 word n...grammar

Page 49: Physics, Language, Maths & Music

— the from-words-to-a-sentence process —

Information flow within a verb:

verb

object subject

Page 50: Physics, Language, Maths & Music

— the from-words-to-a-sentence process —

Information flow within a verb:

verb

object subject

Again we have:

=

Page 51: Physics, Language, Maths & Music

— pregoup grammar —

Lambek’s residuated monoids (1950’s):b ≤ a( c⇔ a · b ≤ c⇔ a ≤ c � b

Page 52: Physics, Language, Maths & Music

— pregoup grammar —

Lambek’s residuated monoids (1950’s):b ≤ a( c⇔ a · b ≤ c⇔ a ≤ c � b

or equivalently,

a · (a( c) ≤ c ≤ a( (a · c)

(c � b) · b ≤ c ≤ (c · b) � b

Page 53: Physics, Language, Maths & Music

— pregoup grammar —

Lambek’s residuated monoids (1950’s):b ≤ a( c⇔ a · b ≤ c⇔ a ≤ c � b

or equivalently,

a · (a( c) ≤ c ≤ a( (a · c)

(c � b) · b ≤ c ≤ (c · b) � b

Lambek’s pregroups (2000’s):a · ∗a ≤ 1 ≤ ∗a · ab∗ · b ≤ 1 ≤ b · b∗

Page 54: Physics, Language, Maths & Music

— pregoup grammar —

Lambek’s residuated monoids (1950’s):b ≤ a( c⇔ a · b ≤ c⇔ a ≤ c � b

or equivalently,

a · (a( c) ≤ c ≤ a( (a · c)

(c � b) · b ≤ c ≤ (c · b) � b

Lambek’s pregroups (2000’s):a · −1a ≤ 1 ≤ −1a · a

b−1 · b ≤ 1 ≤ b · b−1

Page 55: Physics, Language, Maths & Music

— pregoup grammar —

A A A AA A A A

-1

-1

-1

-1

=

A

A

A

A=A

A A

A=A

A

A

A=A

A A

A-1

-1

-1

-1 -1

-1 -1

-1

Page 56: Physics, Language, Maths & Music

— pregoup grammar —

For noun type n, verb type is −1n · s · n−1, so:

Page 57: Physics, Language, Maths & Music

— pregoup grammar —

For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

Page 58: Physics, Language, Maths & Music

— pregoup grammar —

For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

Page 59: Physics, Language, Maths & Music

— pregoup grammar —

For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

Page 60: Physics, Language, Maths & Music

— pregoup grammar —

For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

Diagrammatic type reduction:

n nsn n-1 -1

Page 61: Physics, Language, Maths & Music

— pregoup grammar —

For noun type n, verb type is −1n · s · n−1, so:

n · −1n · s · n−1 · n ≤ 1 · s · 1 ≤ s

Diagrammatic meaning:

verbn n

flow flow

Page 62: Physics, Language, Maths & Music

— algorithm for meaning of sentences —

Page 63: Physics, Language, Maths & Music

— algorithm for meaning of sentences —

1. Perform type reduction:

(word type 1) . . . (word type n) { sentence type

Page 64: Physics, Language, Maths & Music

— algorithm for meaning of sentences —

1. Perform type reduction:

(word type 1) . . . (word type n) { sentence type

2. Interpret diagrammatic type reduction as linear map:

f :: 7→

∑i

〈ii|

⊗ id ⊗

∑i

〈ii|

Page 65: Physics, Language, Maths & Music

— algorithm for meaning of sentences —

1. Perform type reduction:

(word type 1) . . . (word type n) { sentence type

2. Interpret diagrammatic type reduction as linear map:

f :: 7→

∑i

〈ii|

⊗ id ⊗

∑i

〈ii|

3. Apply this map to tensor of word meaning vectors:

f(−→v 1 ⊗ . . . ⊗

−→v n

)

Page 66: Physics, Language, Maths & Music

—−−−−→Alice ⊗

−−−→does ⊗ −−→not ⊗

−−→like ⊗

−−→Bob —

Page 67: Physics, Language, Maths & Music

—−−−−→Alice ⊗

−−−→does ⊗ −−→not ⊗

−−→like ⊗

−−→Bob —

Alice not like Bob

meaning vectors of words

not

grammar

does

Page 68: Physics, Language, Maths & Music

—−−−−→Alice ⊗

−−−→does ⊗ −−→not ⊗

−−→like ⊗

−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not

Page 69: Physics, Language, Maths & Music

—−−−−→Alice ⊗

−−−→does ⊗ −−→not ⊗

−−→like ⊗

−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not

Page 70: Physics, Language, Maths & Music

—−−−−→Alice ⊗

−−−→does ⊗ −−→not ⊗

−−→like ⊗

−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not= not

like

BobAlice

Page 71: Physics, Language, Maths & Music

—−−−−→Alice ⊗

−−−→does ⊗ −−→not ⊗

−−→like ⊗

−−→Bob —

Alice like Bob

meaning vectors of words

grammar

not= not

like

BobAlice = not

likeBobAlice

Using: =

likelike

=

likelike

Page 72: Physics, Language, Maths & Music

— experiment: word disambiguation —E.g. what is “saw”’ in: “Alice saw Bob with a saw”.

Edward Grefenstette & Mehrnoosh Sadrzadeh (2011) Experimental supportfor a categorical compositional distributional model of meaning. Acceptedfor: Empirical Methods in Natural Language Processing (EMNLP’11).

Page 73: Physics, Language, Maths & Music

— Frobenius algebras —

Page 74: Physics, Language, Maths & Music

— Frobenius algebras —

‘spiders’ =

m︷ ︸︸ ︷....

....︸ ︷︷ ︸n

such that, for k > 0:

m+m′−k︷ ︸︸ ︷........

....

....

....

︸ ︷︷ ︸n+n′−k

=

....

....

BC & Dusko Pavlovic (2007) Quantum measurement without sums. In: Math-ematics of Quantum Computing and Technology. quant-ph/0608035

BC, Dusko Pavlovic & Jamie Vicary (2008) A new description of orthogonalbases. Mathematical Structures in Computer Science. 0810.0812

Page 75: Physics, Language, Maths & Music

— Frobenius algebras —

‘spiders’ =

m︷ ︸︸ ︷....

....︸ ︷︷ ︸n

such that, for k > 0:

m+m′−k︷ ︸︸ ︷........

....

....

....

︸ ︷︷ ︸n+n′−k

=

....

....

BC & Dusko Pavlovic (2007) Quantum measurement without sums. In: Math-ematics of Quantum Computing and Technology. quant-ph/0608035

BC, Dusko Pavlovic & Jamie Vicary (2008) A new description of orthogonalbases. Mathematical Structures in Computer Science. 0810.0812

Page 76: Physics, Language, Maths & Music

— Frobenius algebras —Language-meaning:

Bob = (the) man who Alice hates = Bob

Stephen Clark, BC and Mehrnoosh Sadrzadeh (2013) The Frobenius Anatomyof Relative Pronouns. MOL ’13.

Page 77: Physics, Language, Maths & Music

— Frobenius algebras —Language-meaning:

Bob = (the) man who Alice hates = Bob

Stephen Clark, BC and Mehrnoosh Sadrzadeh (2013) The Frobenius Anatomyof Relative Pronouns. MOL ’13.

Page 78: Physics, Language, Maths & Music

— Frobenius algebras —Language-meaning:

Bob = (the) man who Alice hates = Bob

Stephen Clark, BC and Mehrnoosh Sadrzadeh (2013) The Frobenius Anatomyof Relative Pronouns. MOL ’13.

Page 79: Physics, Language, Maths & Music

— MATHS —

Page 80: Physics, Language, Maths & Music

— MATHS —

“Topological” QFT (Atiyah ’88):

F :: 7→ f : V ⊗ V → V

Page 81: Physics, Language, Maths & Music

— MATHS —

“Topological” QFT (Atiyah ’88):

F :: 7→ f : V ⊗ V → V

“Grammatical” QFT:

F :: 7→

∑i

〈ii|

⊗id⊗

∑i

〈ii|

Page 82: Physics, Language, Maths & Music

— MUSIC —

Page 83: Physics, Language, Maths & Music

— MUSIC —