Diagrammatic Process Theory as a Logic for Social Interaction

227
Diagrammatic Process Theory as a Logic for Social Interaction Bob Coecke University of Oxford

Transcript of Diagrammatic Process Theory as a Logic for Social Interaction

Page 1: Diagrammatic Process Theory as a Logic for Social Interaction

Diagrammatic Process Theory as aLogic for Social Interaction

Bob CoeckeUniversity of Oxford

Page 2: Diagrammatic Process Theory as a Logic for Social Interaction

Diagrammatic Process Theory as aLogic for Social Interaction

Bob CoeckeUniversity of Oxford

Towards model independent compositional reason-ing about social behaviours. Candidate models:

• theoretical models

• statistical data

Page 3: Diagrammatic Process Theory as a Logic for Social Interaction

Diagrammatic Process Theory as aLogic for Social Interaction

Bob CoeckeUniversity of Oxford

Towards model independent compositional reason-ing about social behaviours. Candidate models:

• plain statistical data

• theoretical models

Page 4: Diagrammatic Process Theory as a Logic for Social Interaction

Our starting point is the common structure of:

Page 5: Diagrammatic Process Theory as a Logic for Social Interaction

Our starting point is the common structure of:

• how quantum systems interact

• how meanings in natural language interact

Exploring connections:

• BC (2012) The logic of quantum mechanics - Take II. arXiv:1204.3458

• S. Clark, BC, E. Grefenstette, S. Pulman & M. Sadrzadeh (2013) A quan-tum teleportation inspired algorithm produces sentence meaning from wordmeaning and grammatical structure. arXiv:1305.0556

Page 6: Diagrammatic Process Theory as a Logic for Social Interaction

– e.g. quantum teleportation –

Page 7: Diagrammatic Process Theory as a Logic for Social Interaction

– e.g. entanglement swapping –

Page 8: Diagrammatic Process Theory as a Logic for Social Interaction

– e.g. negation and relative pronouns –

Page 9: Diagrammatic Process Theory as a Logic for Social Interaction
Page 10: Diagrammatic Process Theory as a Logic for Social Interaction

The overarching framework:

Page 11: Diagrammatic Process Theory as a Logic for Social Interaction

The overarching framework:

• process theories

• purely diagrammatic reasoning

Forthcoming book (750 pp):

• BC & Aleks KissingerPicturing Quantum ProcessesCambridge University Press, spring 2015

Page 12: Diagrammatic Process Theory as a Logic for Social Interaction

Also in the scope of the framework:

Page 13: Diagrammatic Process Theory as a Logic for Social Interaction

Also in the scope of the framework:

• animal behaviour and evolution

Forthcoming paper:

• BC (2014) In the beginning God created ⊗. In: The Incom-putable, S. B. Cooper & S. Soskova, Eds. Springer.

Page 14: Diagrammatic Process Theory as a Logic for Social Interaction

Also in the scope of the framework:

• animal behaviour and evolution

Forthcoming paper:

• BC (2014) In the beginning God created ⊗. In: The Incom-putable, S. B. Cooper & S. Soskova, Eds. Springer.

. . . evidently exactly the same:

• social behaviour and development

Page 15: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Page 16: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Can QM be formulated in pictures?

Page 17: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Can QM be formulated in pictures?

Same question, put differently:

• Can QM be formulated in terms of ⊗?

Page 18: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Can QM be formulated in pictures?

Same question, put differently:

• Can QM be formulated in terms of ⊗?(contra: C, +, matrices, ...)

Page 19: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Can QM be formulated in pictures?

Same question, put differently:

• Can QM be formulated in terms of ⊗?(contra: C, +, matrices, ...)

• Can QM be formulated in terms of processes?

Page 20: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Can QM be formulated in pictures?

Same question, put differently:

• Can QM be formulated in terms of ⊗?(contra: C, +, matrices, ...)

• Can QM be formulated in terms of processes?(contra: states, numbers)

Page 21: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Can QM be formulated in pictures?

Same question, put differently:

• Can QM be formulated in terms of ⊗?(contra: C, +, matrices, ...)

• Can QM be formulated in terms of processes?(contra: states, numbers)

• Does QM have logic features?

Page 22: Diagrammatic Process Theory as a Logic for Social Interaction

Initial question (quant-ph/0510032):

Can QM be formulated in pictures?

Same question, put differently:

• Can QM be formulated in terms of ⊗?(contra: C, +, matrices, ...)

• Can QM be formulated in terms of processes?(contra: states, numbers)

• Does QM have logic features?(contra: failures)

Page 23: Diagrammatic Process Theory as a Logic for Social Interaction

Category-theoretic underpinning:

Abramsky, S., and Coecke, B. (2004) A categorical semantics of quantumprotocols. LICS. arXiv:quant-ph/0402130.

Selinger, P. (2007) Dagger compact closed categories and completely positivemaps. ENTCS.

Coecke, B., and Pavlovic, D. (2007) Quantum measurements without sums.In: Mathematics of Quantum Computing and Technology. Taylor and Francis.arXiv:quant-ph/0608035

Coecke, B., and Duncan, R. (2008) Interacting quantum observables. ICALP’08& NJP’10. arXiv:quant- ph/09064725

Coecke, B., Paquette, E. O., and Pavlovic, D. (2010) Classical and quan-tum structuralism. In: Semantic Techniques in Quantum Computation. CUP.arXiv:0904.1997

Chiribella, G., D’Ariano, G. M., and Perinotti, P. (2010) Probabilistic theo-ries with purification. Physical Review. arXiv:0908.1583

Page 24: Diagrammatic Process Theory as a Logic for Social Interaction

. . . mainly borrowing from Australians:

Kelly, M. (1972) Many-variable functorial calculus I. LNM.

Carboni, A., and Walters, R. F. C. (1980) Cartesian bicategories I. JPAA.

Joyal, A., and Street, R. (1991) The geometry of tensor calculus I. AM.

Lack, S. (2004) Composing PROPs. TAC.

Page 25: Diagrammatic Process Theory as a Logic for Social Interaction

New structural theorems:

Selinger, P. (2011) Finite dimensional Hilbert spaces are complete for daggercompact closed categories. ENTCS.

Coecke, B., Pavlovic, D., and Vicary, J. (2011) A new description of orthog-onal bases. MSCS. arXiv:quant-ph/0810.1037

Backens, M. (2013) The ZX-calculus is complete for stabilizer quantum me-chanics. arXiv:1307.7025.

Kissinger, A. (2014) Finite matrices are complete for (dagger-)multigraph cat-egories. arXiv:1406.5942.

Page 26: Diagrammatic Process Theory as a Logic for Social Interaction

BC & Aleks Kissinger

Picturing Quantum ProcessesCambridge University Press, spring 2015.

Page 27: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

Philosophy [i.e. physics] is written in this grand book—I mean theuniverse—which stands continually open to our gaze, but it cannot beunderstood unless one first learns to comprehend the language andinterpret the characters in which it is written. It is written in thelanguage of mathematics, and its characters are triangles, circles,and other geometrical figures, without which it is humanly impossibleto understand a single word of it; without these, one is wanderingaround in a dark labyrinth.

— Galileo Galilei, “Il Saggiatore”, 1623.

Here we introduce:• diagrams

• process theories

• (boring) circuit diagrams

Page 28: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– processes as boxes and systems as wires –

Page 29: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– processes as boxes and systems as wires –

Page 30: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– processes as boxes and systems as wires –

Page 31: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– processes as boxes and systems as wires –

Page 32: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– processes as boxes and systems as wires –

Page 33: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– processes as boxes and systems as wires –

Page 34: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– composing processes –

Page 35: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– composing processes –

Page 36: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– composing processes –

Page 37: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– composing processes –

Page 38: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

Page 39: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

... consists of:

• set of systems S

• set of processes P, with ins and outs in S ,

Page 40: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

... consists of:

• set of systems S

• set of processes P, with ins and outs in S ,which are:

• closed under forming diagrams.

Page 41: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

... consists of:

• set of systems S

• set of processes P, with ins and outs in S ,which are:

• closed under forming diagrams.

It tells us:

• how to interpret boxes and wires,

Page 42: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

... consists of:

• set of systems S

• set of processes P, with ins and outs in S ,which are:

• closed under forming diagrams.

It tells us:

• how to interpret boxes and wires,

• and hence, when two diagrams are equal.

Page 43: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

Page 44: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

Page 45: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

Page 46: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– process theory –

Page 47: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– diagrams algebraically –

Page 48: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– diagrams algebraically –

Two operations:

“ f ⊗ g” := “ f while g ”“ f ◦ g” := “ f after g ”

Page 49: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– diagrams algebraically –

Two operations:

“ f ⊗ g” := “ f while g”“ f ◦ g” := “ f after g”

Page 50: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Page 51: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Since all equations come for free!

Page 52: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Since all equations come for free!

Page 53: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Since all equations come for free!

Page 54: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Since all equations come for free!

Page 55: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Since all equations come for free!

Page 56: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Since all equations come for free!

Page 57: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

Since all equations come for free!

Page 58: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– why diagrams? –

In formulas:

=

In diagrams:

=

Page 59: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– circuits –

Page 60: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– circuits –

Defn. ... := can be build with ⊗ and ◦.

Page 61: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– circuits –

Defn. ... := can be build with ⊗ and ◦.

E.g.:

Page 62: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– circuits –

Defn. ... := can be build with ⊗ and ◦.

E.g.:

Page 63: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– circuits –

Defn. ... := can be build with ⊗ and ◦.

Thm. Diagram is circuit⇔ is ‘causal’ e.g.:

with

Page 64: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– special processes/diagrams –

Page 65: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– special processes/diagrams –

State :=

Page 66: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– special processes/diagrams –

State :=

Effect / Test :=

Page 67: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– special processes/diagrams –

State :=

Effect / Test :=

Number :=

Page 68: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– special processes/diagrams –

Dirac notation :=

Page 69: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 1 – Processes as diagrams —

– special processes/diagrams –

Born rule :=

Page 70: Diagrammatic Process Theory as a Logic for Social Interaction

Candidate systems:

Page 71: Diagrammatic Process Theory as a Logic for Social Interaction

Candidate systems:

• vector space with inner-product:

– pure (or closed) quantum states (complex)

– standard natural language processing (real)

Page 72: Diagrammatic Process Theory as a Logic for Social Interaction

Candidate systems:

• vector space with inner-product:

– pure (or closed) quantum states (complex)

– standard natural language processing (real)

• density matrices with trace:

– mixed (or open) quantum states

– neo natural language processing

Page 73: Diagrammatic Process Theory as a Logic for Social Interaction

Candidate systems:

• vector space with inner-product:

– pure (or closed) quantum states (complex)

– standard natural language processing (real)

• density matrices with trace:

– mixed (or open) quantum states

– neo natural language processing

• more abstract models and constructions

Page 74: Diagrammatic Process Theory as a Logic for Social Interaction

Vector space model of word meaning in NLP:

Page 75: Diagrammatic Process Theory as a Logic for Social Interaction

Vector space model of word meaning in NLP:

• vector space spanned by context words

Page 76: Diagrammatic Process Theory as a Logic for Social Interaction

Vector space model of word meaning in NLP:

• vector space spanned by context words

• meaning vectors from relative occurrences

Page 77: Diagrammatic Process Theory as a Logic for Social Interaction

Vector space model of word meaning in NLP:

• vector space spanned by context words

• meaning vectors from relative occurrences

• similarity from inner product

Page 78: Diagrammatic Process Theory as a Logic for Social Interaction

Vector space model of word meaning in NLP:

• vector space spanned by context words

• meaning vectors from relative occurrences

• similarity from inner product

Source: huge corpus

Pioneer:

• H. Schuetze (1998) Automatic word sense discrimination. Com-putational Linguistics, 24, 97123.

Page 79: Diagrammatic Process Theory as a Logic for Social Interaction

Vector space model of social properties:

• vector space spanned by context words

• meaning vectors from relative occurrences

• similarity from inner product

Source: Facebook, personal page, ...

Pioneer:

• H. Schuetze (1998) Automatic word sense discrimination. Com-putational Linguistics, 24, 97123.

Page 80: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

When two systems, of which we know the states by their respectiverepresentatives, enter into temporary physical interaction due to knownforces between them, and when after a time of mutual influence thesystems separate again, then they can no longer be described in thesame way as before, viz. by endowing each of them with a representa-tive of its own. I would not call that one but rather the characteristictrait of quantum mechanics, the one that enforces its entire departurefrom classical lines of thought.

— Erwin Schrodinger, 1935.

Here we introduce:• string diagrams• transposes and adjoints• quantum phenomena in great generality

Page 81: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– TFAE –

Page 82: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– TFAE –

1. ‘Circuits’ with cup-state and cup-effect:

which satisfy:

Page 83: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– TFAE –

I.e. ‘constructive’ CJ-isomorphism via Bell-state/effect:

Page 84: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– TFAE –

I.e. ‘constructive’ CJ-isomorphism via Bell-state/effect:

Pf.

Page 85: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– TFAE –

2. diagrams allowing in-in, out-out and out-in wiring:

Page 86: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– TFAE –

From 1. to 2.:

so that:

Page 87: Diagrammatic Process Theory as a Logic for Social Interaction

Symmetric monoidal categories as diagrams:

Page 88: Diagrammatic Process Theory as a Logic for Social Interaction

Symmetric monoidal categories as diagrams:

compact closed traced plain

string diagrams diagrams cicuits

no ins/outs outs to ins causal structure

Page 89: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– transpose –

Page 90: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– transpose –

... :=

Page 91: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– transpose –

Clever new notation:

(intuition: again yanking the wire)

Page 92: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– transpose –

Clever new notation:

(intuition: again yanking the wire)

Page 93: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– transpose –

Prop. Sliding:

Page 94: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– transpose –

Prop. Sliding:

... so this is a mathematical equation:

Page 95: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– trace –

... :=

Page 96: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– trace –

Prop. Cyclicity:

Fun but redundant ‘ferris wheel’ proof:

Page 97: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– adjoint & conjugate –

Page 98: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– adjoint & conjugate –

From a state to its test:

Page 99: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– adjoint & conjugate –

From a state to its test:

Page 100: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– adjoint & conjugate –

Conjugate :=

7→

Adjoint :=

7→

Page 101: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– adjoint & conjugate –

Unitarity/isometry :=

Page 102: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– sets and relations –

Page 103: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– sets and relations –

• wires := sets

• two wires := cartesian product

• boxes := relations

Page 104: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– sets and relations –

• wires := sets

• two wires := cartesian product

• boxes := relations

• transpose = adjoint := converse

• cups and caps for B :=

Page 105: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– ‘quantum’-like features –

Page 106: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– quantum teleportation –

Page 107: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– quantum teleportation –

Page 108: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– quantum teleportation –

Page 109: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– quantum teleportation –

Page 110: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– linearity –

Page 111: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– linearity –

Thm. No-cloning from assumptions:

Page 112: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– linearity –

Thm. No-cloning from assumptions:

(Categorically:= cartesian ⊥ compact closed)

Page 113: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– no-cloning –

Pf.

Page 114: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– no-cloning –

Pf.

Page 115: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– no-cloning –

Pf.

Page 116: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– no-cloning –

Pf.

Page 117: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– no-cloning –

Pf.

Page 118: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– no-cloning –

Page 119: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– no-cloning –

Page 120: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– correlations –

Page 121: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– correlations –

Transpose with agents:

Page 122: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– correlations –

Perfect correlations:

Page 123: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– time-reversal –

Page 124: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– time-reversal –

Logical reading:

Page 125: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 2 – String diagrams —

– time-reversal –

Operational reading:

Page 126: Diagrammatic Process Theory as a Logic for Social Interaction

String diagrams for natural language meaning:

Page 127: Diagrammatic Process Theory as a Logic for Social Interaction

String diagrams for natural language meaning:

• Top part: grammar

• Bottom part: meaning vectors

Page 128: Diagrammatic Process Theory as a Logic for Social Interaction

Lambek’s Residuated monoids (1950’s):

b ≤ a( c⇔ a · b ≤ c⇔ a ≤ c � b

Page 129: Diagrammatic Process Theory as a Logic for Social Interaction

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 130: Diagrammatic Process Theory as a Logic for Social Interaction

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 131: Diagrammatic Process Theory as a Logic for Social Interaction

From grammar to meaning:

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

Page 132: Diagrammatic Process Theory as a Logic for Social Interaction

From grammar to meaning:

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

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

Page 133: Diagrammatic Process Theory as a Logic for Social Interaction

From grammar to meaning:

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

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

Page 134: Diagrammatic Process Theory as a Logic for Social Interaction

From grammar to meaning:

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

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

Page 135: Diagrammatic Process Theory as a Logic for Social Interaction

From grammar to meaning:

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:

Page 136: Diagrammatic Process Theory as a Logic for Social Interaction

From grammar to meaning:

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:

Page 137: Diagrammatic Process Theory as a Logic for Social Interaction

Algorithm for meaning composition:

Page 138: Diagrammatic Process Theory as a Logic for Social Interaction

Algorithm for meaning composition:

1. Perform grammatical 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 139: Diagrammatic Process Theory as a Logic for Social Interaction

Algorithm for meaning composition:

Dimitri Kartsaklis & Mehrnoosh Sadrzadeh (2013) Prior Disambiguation ofWord Tensors for Constructing Sentence Vectors. In EMNLP’13.

Page 140: Diagrammatic Process Theory as a Logic for Social Interaction

Algorithm for meaning composition:

1. Perform grammatical 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 141: Diagrammatic Process Theory as a Logic for Social Interaction

Algorithm for social behaviour composition:

1. Perform social type reduction:

(person type 1) . . . (person type n) { group 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 142: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

I would like to make a confession which may seem immoral: I do notbelieve absolutely in Hilbert space any more.

— John von Neumann, letter to Garrett Birkhoff, 1935.

Here we define for string diagrams:

• ONBs, matrices and sums

• (multi-)linear maps & Hilbert spaces

Page 143: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– orthonormal basis –

Page 144: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– orthonormal basis –

... := (minimal) set:

Page 145: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– orthonormal basis –

... := (minimal) set:

such that:

Page 146: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– orthonormal basis –

For:

• unit number := ‘empty’ diagram

• zero number := ‘black hole’ diagram

Page 147: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– orthonormal basis –

For:

• unit number := ‘empty’ diagram

• zero number := ‘black hole’ diagram

we set:

Page 148: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– sum –

... := for processes of ‘same type’ there exists:

Page 149: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– sum –

... := for processes of ‘same type’ there exists:

which ‘moves around’:

Page 150: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– definition –

Thm.

(multi) linear maps := string diagrams s.t.:

• each system has ONB

• ∃ sums

• numbers are C

Page 151: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– definition –

Thm.

(multi) linear maps := string diagrams s.t.:

• each system has ONB

• ∃ sums

• numbers are C

Hilbert space := states for a system with Born-rule.

Page 152: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– definition –

Thm.

(multi) linear maps := string diagrams s.t.:

• each system has ONB

• ∃ sums

• numbers are C

Hilbert space := states for a system with Born-rule.

(note: tensor product comes for free)

Page 153: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– completeness –

Page 154: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– completeness –

THM. (Selinger, 2008)

An equation between string diagrams holds, if and onlyif it holds for Hilbert spaces and linear maps.

Page 155: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– completeness –

THM. (Selinger, 2008)

An equation between string diagrams holds, if and onlyif it holds for Hilbert spaces and linear maps.

I.e. defining Hilbert spaces and linear maps in this man-ner is a ‘conservative extension’ of string diagrams.

Page 156: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

The art of progress is to preserve order amid change, and to preservechange amid order.

— Alfred North Whitehead, Process and Reality, 1929.

Here we introduce:

• pure quantum maps

• general quantum maps

• causality, no-signalling & Stinespring dilation

Page 157: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– pure quantum maps –

Goal 1:

Page 158: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– pure quantum maps –

Goal 1:

Goal 2:

Page 159: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– pure quantum maps –

... :=

Page 160: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– pure quantum maps –

Born-rule :=

Page 161: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– quantum maps –

Page 162: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– quantum maps –

Discarding :=

Page 163: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– quantum maps –

Discarding :=

Thm. Discarding is not a pure quantum map.

Page 164: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– quantum maps –

Discarding :=

Thm. Discarding is not a pure quantum map.

Pf. Something connected , something disconnected.

Page 165: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– quantum maps –

... := pure quantum maps + discarding

Page 166: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– quantum maps –

... := pure quantum maps + discarding

(cf. Krauss form of CP-map)

Page 167: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– axiom: causality (= terminality of I) –

(a surprising plethora of things follows: an arrowof time, non-signalling, relativistic covariance, ...)

Page 168: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– causality –

Page 169: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– causality –

Page 170: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– causality –

Page 171: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– causality –

Page 172: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– axiom: causality (= terminality of I) –

Prop. For pure quantum maps:

causality⇐⇒ isometry

Page 173: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– axiom: causality (= terminality of I) –

Prop. For pure quantum maps:

causality⇐⇒ isometry

Pf.

Page 174: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– axiom: causality (= terminality of I) –

Prop. For general quantum maps:

causalityStinespring⇐⇒ of the form

Page 175: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 4 – Quantum processes —

– axiom: causality (= terminality of I) –

Prop. For general quantum maps:

causalityStinespring⇐⇒ of the form

Pf.

Page 176: Diagrammatic Process Theory as a Logic for Social Interaction

Candidate systems:

• vector space with inner-product:

– pure (or closed) quantum states (complex)

– standard natural language processing (real)

• density matrices with trace:

– mixed (or open) quantum states

– neo natural language processing

• more abstract models and constructions

Page 177: Diagrammatic Process Theory as a Logic for Social Interaction

Mixing:

Page 178: Diagrammatic Process Theory as a Logic for Social Interaction

Mixing:

Page 179: Diagrammatic Process Theory as a Logic for Social Interaction

Mixing:

Page 180: Diagrammatic Process Theory as a Logic for Social Interaction

Mixing:

Two distinct sums:

Page 181: Diagrammatic Process Theory as a Logic for Social Interaction

Advantages over vector spaces of meaning:

Page 182: Diagrammatic Process Theory as a Logic for Social Interaction

Advantages over vector spaces of meaning:

• Ambiguity:

– Robin Piedeleu’s MSc thesis (2014)

– Dimitri Kartsaklis’s PhD thesis (2014)

Page 183: Diagrammatic Process Theory as a Logic for Social Interaction

Advantages over vector spaces of meaning:

• Ambiguity:

– Robin Piedeleu’s MSc thesis (2014)

– Dimitri Kartsaklis’s PhD thesis (2014)

• Information/propositional content:

– Esma Balkir’s MSc thesis (2014)

Page 184: Diagrammatic Process Theory as a Logic for Social Interaction

Advantages over vector spaces of meaning:

• Ambiguity:

– Robin Piedeleu’s MSc thesis (2014)

– Dimitri Kartsaklis’s PhD thesis (2014)

• Information/propositional content:

– Esma Balkir’s MSc thesis (2014)

• Construction can be iterated

Page 185: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 5 – Quantum measurement —

The bureaucratic mentality is the only constant in the universe.

— Dr. McCoy, Star Trek IV: The Voyage Home, 2286.

↙ ↘

Page 186: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 5 – Quantum measurement —

– is quantum measurement weird? –

Page 187: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 5 – Quantum measurement —

– is quantum measurement weird? –

Heisenberg-Bohr:

any attempt to observe is bound to disturb

Page 188: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 5 – Quantum measurement —

– is quantum measurement weird? –

Heisenberg-Bohr:

any attempt to observe is bound to disturb

Newtonian equivalent:

locating a baloon by mechanical means

Page 189: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 5 – Quantum measurement —

– is quantum measurement weird? –

Heisenberg-Bohr:

any attempt to observe is bound to disturb

Newtonian equivalent:

locating a baloon by mechanical means

Resulting diagnosis:

we suffer from quantum-blindness

Page 190: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

Damn it! I knew she was a monster! John! Amy! Listen! Guard yourbuttholes.

— David Wong, This Book Is Full of Spiders, 2012.

Here we fully diagrammatically describe:

• classical-quantum processes

• classical data as spiders

• fully diagrammatic protocols

Page 191: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Main idea:

classical systemquantum system

=single wire

double wire

Page 192: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Fix ONB and set:

:= “providing classical value i”

:= “testing for classical value i”

Page 193: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Fix ONB and set:

:= “providing classical value i”

:= “testing for classical value i”

Sanity check:

Page 194: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Page 195: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

... :=

Page 196: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Classical map :=

Page 197: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

copy :=

delete :=

Page 198: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Indeed:

Page 199: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

encode :=

measure :=

Page 200: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Thm. ... are always of the form:

where Φ is a quantum map.

Page 201: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical-quantum maps –

Thm. ... are always of the form:

Page 202: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– classical maps –

Thm. ... are always of the form:

Page 203: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

Page 204: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

copy delete

match compare

Page 205: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

Page 206: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

copy :=

delete :=

Page 207: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

... :=

Page 208: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

Prop.

Page 209: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

E.g.:

Page 210: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

... and in particular:

Page 211: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– spiders –

THM.

These equations imply ONB for linear maps!

Page 212: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 3 – Hilbert space from diagrams —

– completeness –

THM. (Kissinger, 2014)

An equation between dot diagrams holds, if and only ifit holds for Hilbert spaces with a fixed basis and linearmaps, that is, for matrices of complex numbers.

Page 213: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– causality –

Page 214: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– causality –

Lem.

Page 215: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– causality –

Thm. ... :=

Page 216: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– teleportation diagrammatically –

Page 217: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– teleportation diagrammatically –

Prop. Controlled isometry:

Page 218: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– teleportation diagrammatically –

Page 219: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– teleportation diagrammatically –

Page 220: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 6 – Picturing classical processes —

– teleportation diagrammatically –

Page 221: Diagrammatic Process Theory as a Logic for Social Interaction

Dot diagrams for natural language meaning:

Page 222: Diagrammatic Process Theory as a Logic for Social Interaction

Dot diagrams for natural language meaning:

• Top part: grammar

• Bottom part: meaning vectors

Page 223: Diagrammatic Process Theory as a Logic for Social Interaction

Dual type social dynamic-epistemic paradigm:

Page 224: Diagrammatic Process Theory as a Logic for Social Interaction

Dual type social dynamic-epistemic paradigm:

• Thick wires := social types

• Thin wires := information types

•Measurement := share information

• Encode := being affected by information

Page 225: Diagrammatic Process Theory as a Logic for Social Interaction

Dual type social dynamic-epistemic paradigm:

• Thick wires := social types

• Thin wires := information types

•Measurement := share information

• Encode := being affected by information

Not so crazy:• A. Baltag, L. S. Moss, S. Solecki (1999) The logic of public announce-

ments, common knowledge, and private suspicions. TARK’98.

• A. Baltag, BC & M. Sadrzadeh (2006) Epistemic actions as resources.arXiv:math/0608166.

• A. Carboni & R. F. C. Walters (1987) Cartesian bicategories I. JPAA.

• BC, E. O. Paquette & D. Pavlovic (2009) Classical and quantum struc-turalism. arXiv:0904.1997

Page 226: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 7 – Picturing phases & complementarity —

When spider webs unite, they can tie up a lion.

— Ethiopian proverb.

Here we identify in terms of spiders:

• phases

• complementarity

• strong complementarity

Page 227: Diagrammatic Process Theory as a Logic for Social Interaction

— Ch. 7 – Picturing phases & complementarity —

– complementary spiders –

Thm.