153
Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky Department of Computer Science, University of Oxford Samson Abramsky (Department of Computer Science, University of Oxford) Introduction to the sheaf-theoretic approach to contextuality 1 / 35

Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Introduction to the sheaf-theoretic approach tocontextuality

Samson Abramsky

Department of Computer Science, University of Oxford

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 1 / 35

Page 2: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why sheaves?

Sounds intimidating – it isn’t!

Connects to beautiful and powerful mathematical ideas

One of now several approaches which develop a general theory ofcontextuality, rather than a collection of examples:

I Spekkens,I Contextuality by Default (Dzhakfarov and Kujala),I graph-theoretic (Cabello, Severini, Winter),I hypergraphs (Acin, Fritz, Leverrier, Sainz).

See recent exposition of some of this by Marcelo Terra Cunha and BarbaraAmaral

Comparison with other approaches, e.g. the CSW graph-theoretic approach:both have useful features, the “sheaf” approach exposes some additionalmathematical structure, which plays a crucial role in gaining a widerperspective on contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 2 / 35

Page 3: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why sheaves?

Sounds intimidating – it isn’t!

Connects to beautiful and powerful mathematical ideas

One of now several approaches which develop a general theory ofcontextuality, rather than a collection of examples:

I Spekkens,I Contextuality by Default (Dzhakfarov and Kujala),I graph-theoretic (Cabello, Severini, Winter),I hypergraphs (Acin, Fritz, Leverrier, Sainz).

See recent exposition of some of this by Marcelo Terra Cunha and BarbaraAmaral

Comparison with other approaches, e.g. the CSW graph-theoretic approach:both have useful features, the “sheaf” approach exposes some additionalmathematical structure, which plays a crucial role in gaining a widerperspective on contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 2 / 35

Page 4: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why sheaves?

Sounds intimidating – it isn’t!

Connects to beautiful and powerful mathematical ideas

One of now several approaches which develop a general theory ofcontextuality, rather than a collection of examples:

I Spekkens,I Contextuality by Default (Dzhakfarov and Kujala),I graph-theoretic (Cabello, Severini, Winter),I hypergraphs (Acin, Fritz, Leverrier, Sainz).

See recent exposition of some of this by Marcelo Terra Cunha and BarbaraAmaral

Comparison with other approaches, e.g. the CSW graph-theoretic approach:both have useful features, the “sheaf” approach exposes some additionalmathematical structure, which plays a crucial role in gaining a widerperspective on contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 2 / 35

Page 5: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why sheaves?

Sounds intimidating – it isn’t!

Connects to beautiful and powerful mathematical ideas

One of now several approaches which develop a general theory ofcontextuality, rather than a collection of examples:

I Spekkens,I Contextuality by Default (Dzhakfarov and Kujala),I graph-theoretic (Cabello, Severini, Winter),I hypergraphs (Acin, Fritz, Leverrier, Sainz).

See recent exposition of some of this by Marcelo Terra Cunha and BarbaraAmaral

Comparison with other approaches, e.g. the CSW graph-theoretic approach:both have useful features, the “sheaf” approach exposes some additionalmathematical structure, which plays a crucial role in gaining a widerperspective on contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 2 / 35

Page 6: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why sheaves?

Sounds intimidating – it isn’t!

Connects to beautiful and powerful mathematical ideas

One of now several approaches which develop a general theory ofcontextuality, rather than a collection of examples:

I Spekkens,I Contextuality by Default (Dzhakfarov and Kujala),I graph-theoretic (Cabello, Severini, Winter),I hypergraphs (Acin, Fritz, Leverrier, Sainz).

See recent exposition of some of this by Marcelo Terra Cunha and BarbaraAmaral

Comparison with other approaches, e.g. the CSW graph-theoretic approach:both have useful features, the “sheaf” approach exposes some additionalmathematical structure, which plays a crucial role in gaining a widerperspective on contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 2 / 35

Page 7: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why sheaves?

Sounds intimidating – it isn’t!

Connects to beautiful and powerful mathematical ideas

One of now several approaches which develop a general theory ofcontextuality, rather than a collection of examples:

I Spekkens,I Contextuality by Default (Dzhakfarov and Kujala),I graph-theoretic (Cabello, Severini, Winter),I hypergraphs (Acin, Fritz, Leverrier, Sainz).

See recent exposition of some of this by Marcelo Terra Cunha and BarbaraAmaral

Comparison with other approaches, e.g. the CSW graph-theoretic approach:both have useful features, the “sheaf” approach exposes some additionalmathematical structure, which plays a crucial role in gaining a widerperspective on contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 2 / 35

Page 8: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

What is Contextuality?

What, then, is the essence of contextuality? In broad terms, we propose todescribe it as follows:

Contextuality arises where we have a family of data which is

locally consistent, but globally inconsistent

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 3 / 35

Page 9: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality Analogy: Local Consistency

a a′

b

b′

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 4 / 35

Page 10: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality Analogy: Local Consistency

a a′

b

b′

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 4 / 35

Page 11: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality Analogy: Global Inconsistency

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 5 / 35

Page 12: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Empirical Data

(0, 0) (0, 1) (1, 0) (1, 1)

(a, b) 1/2 0 0 1/2

(a, b′) 3/8 1/8 1/8 3/8

(a′, b) 3/8 1/8 1/8 3/8

(a′, b′) 1/8 3/8 3/8 1/8

measurement

device

mA ∈ {a, a′}

oA ∈ {0, 1}

measurement

device

mB ∈ {b, b′}

oB ∈ {0, 1}

preparation

p

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 6 / 35

Page 13: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Empirical Data

(0, 0) (0, 1) (1, 0) (1, 1)

(a, b) 1/2 0 0 1/2

(a, b′) 3/8 1/8 1/8 3/8

(a′, b) 3/8 1/8 1/8 3/8

(a′, b′) 1/8 3/8 3/8 1/8

measurement

device

mA ∈ {a, a′}

oA ∈ {0, 1}

measurement

device

mB ∈ {b, b′}

oB ∈ {0, 1}

preparation

pSamson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 6 / 35

Page 14: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 15: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 16: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 17: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 18: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 19: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 20: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 21: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Measurement scenarios

These are types in logical/CS terms. Types of experimental set-up.

A scenario is (X ,M,O), where

X is a set of variables or measurement labels

M is a family of subsets of X – the contexts, or compatible subsets

O is a set of outcomes or values for the variables. Can be refined to Ox ,x ∈ X .

Two variants of M, which is a hypergraph: either the maximal contexts (noinclusions), or closure under subsets.

In the latter case, we have an abstract simplicial complex.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 7 / 35

Page 22: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Example

(0, 0) (0, 1) (1, 0) (1, 1)

(a, b) 1/2 0 0 1/2

(a, b′) 3/8 1/8 1/8 3/8

(a′, b) 3/8 1/8 1/8 3/8

(a′, b′) 1/8 3/8 3/8 1/8

In this table, the set of variables is X = {a, a′, b, b′}.

The measurement contexts are:

{{a1, b1}, {a2, b1}, {a1, b2}, {a2, b2}}

The outcomes areO = {0, 1}

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 8 / 35

Page 23: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Example

(0, 0) (0, 1) (1, 0) (1, 1)

(a, b) 1/2 0 0 1/2

(a, b′) 3/8 1/8 1/8 3/8

(a′, b) 3/8 1/8 1/8 3/8

(a′, b′) 1/8 3/8 3/8 1/8

In this table, the set of variables is X = {a, a′, b, b′}.

The measurement contexts are:

{{a1, b1}, {a2, b1}, {a1, b2}, {a2, b2}}

The outcomes areO = {0, 1}

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 8 / 35

Page 24: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Example

(0, 0) (0, 1) (1, 0) (1, 1)

(a, b) 1/2 0 0 1/2

(a, b′) 3/8 1/8 1/8 3/8

(a′, b) 3/8 1/8 1/8 3/8

(a′, b′) 1/8 3/8 3/8 1/8

In this table, the set of variables is X = {a, a′, b, b′}.

The measurement contexts are:

{{a1, b1}, {a2, b1}, {a1, b2}, {a2, b2}}

The outcomes areO = {0, 1}

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 8 / 35

Page 25: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Example

(0, 0) (0, 1) (1, 0) (1, 1)

(a, b) 1/2 0 0 1/2

(a, b′) 3/8 1/8 1/8 3/8

(a′, b) 3/8 1/8 1/8 3/8

(a′, b′) 1/8 3/8 3/8 1/8

In this table, the set of variables is X = {a, a′, b, b′}.

The measurement contexts are:

{{a1, b1}, {a2, b1}, {a1, b2}, {a2, b2}}

The outcomes areO = {0, 1}

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 8 / 35

Page 26: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Example

(0, 0) (0, 1) (1, 0) (1, 1)

(a, b) 1/2 0 0 1/2

(a, b′) 3/8 1/8 1/8 3/8

(a′, b) 3/8 1/8 1/8 3/8

(a′, b′) 1/8 3/8 3/8 1/8

In this table, the set of variables is X = {a, a′, b, b′}.

The measurement contexts are:

{{a1, b1}, {a2, b1}, {a1, b2}, {a2, b2}}

The outcomes areO = {0, 1}

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 8 / 35

Page 27: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The 18-vector Kochen-Specker construction (Cabello et al)

This uses

A set X of 18 variables, {A, . . . ,O}

A measurement cover U = {U1, . . . ,U9}, where the columns Ui are the setsin the cover:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P Q

B E I K E K Q R R

C F C G M N D F M

D G J L N O J L O

The original K-S construction used 117 variables!

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 9 / 35

Page 28: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The 18-vector Kochen-Specker construction (Cabello et al)

This uses

A set X of 18 variables, {A, . . . ,O}

A measurement cover U = {U1, . . . ,U9}, where the columns Ui are the setsin the cover:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P Q

B E I K E K Q R R

C F C G M N D F M

D G J L N O J L O

The original K-S construction used 117 variables!

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 9 / 35

Page 29: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The 18-vector Kochen-Specker construction (Cabello et al)

This uses

A set X of 18 variables, {A, . . . ,O}

A measurement cover U = {U1, . . . ,U9}, where the columns Ui are the setsin the cover:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P Q

B E I K E K Q R R

C F C G M N D F M

D G J L N O J L O

The original K-S construction used 117 variables!

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 9 / 35

Page 30: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The 18-vector Kochen-Specker construction (Cabello et al)

This uses

A set X of 18 variables, {A, . . . ,O}

A measurement cover U = {U1, . . . ,U9}, where the columns Ui are the setsin the cover:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P Q

B E I K E K Q R R

C F C G M N D F M

D G J L N O J L O

The original K-S construction used 117 variables!

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 9 / 35

Page 31: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The 18-vector Kochen-Specker construction (Cabello et al)

This uses

A set X of 18 variables, {A, . . . ,O}

A measurement cover U = {U1, . . . ,U9}, where the columns Ui are the setsin the cover:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P Q

B E I K E K Q R R

C F C G M N D F M

D G J L N O J L O

The original K-S construction used 117 variables!

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 9 / 35

Page 32: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The 18-vector Kochen-Specker construction (Cabello et al)

This uses

A set X of 18 variables, {A, . . . ,O}

A measurement cover U = {U1, . . . ,U9}, where the columns Ui are the setsin the cover:

U1 U2 U3 U4 U5 U6 U7 U8 U9

A A H H B I P P Q

B E I K E K Q R R

C F C G M N D F M

D G J L N O J L O

The original K-S construction used 117 variables!

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 9 / 35

Page 33: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic events are local sections

A basic event is to measure all the variables in a context C ∈M, and observe theoutcomes.

This is represented by a function s : C → O, i.e. s ∈ OC , or more generallys ∈

∏x∈C Ox .

Example: if C = {a, b}, O = {0, 1}, such an outcome might be

s = {a 7→ 0, b 7→ 1}

This is a local section, since it is defined only on C , not on the whole of X !

Basic operation of restriction: if C ⊆ C ′, s ∈ OC ′, then s|C ∈ OC .

E.g. s|{a} = {a 7→ 0}.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 10 / 35

Page 34: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic events are local sections

A basic event is to measure all the variables in a context C ∈M, and observe theoutcomes.

This is represented by a function s : C → O, i.e. s ∈ OC , or more generallys ∈

∏x∈C Ox .

Example: if C = {a, b}, O = {0, 1}, such an outcome might be

s = {a 7→ 0, b 7→ 1}

This is a local section, since it is defined only on C , not on the whole of X !

Basic operation of restriction: if C ⊆ C ′, s ∈ OC ′, then s|C ∈ OC .

E.g. s|{a} = {a 7→ 0}.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 10 / 35

Page 35: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic events are local sections

A basic event is to measure all the variables in a context C ∈M, and observe theoutcomes.

This is represented by a function s : C → O, i.e. s ∈ OC , or more generallys ∈

∏x∈C Ox .

Example: if C = {a, b}, O = {0, 1}, such an outcome might be

s = {a 7→ 0, b 7→ 1}

This is a local section, since it is defined only on C , not on the whole of X !

Basic operation of restriction: if C ⊆ C ′, s ∈ OC ′, then s|C ∈ OC .

E.g. s|{a} = {a 7→ 0}.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 10 / 35

Page 36: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic events are local sections

A basic event is to measure all the variables in a context C ∈M, and observe theoutcomes.

This is represented by a function s : C → O, i.e. s ∈ OC , or more generallys ∈

∏x∈C Ox .

Example: if C = {a, b}, O = {0, 1}, such an outcome might be

s = {a 7→ 0, b 7→ 1}

This is a local section, since it is defined only on C , not on the whole of X !

Basic operation of restriction: if C ⊆ C ′, s ∈ OC ′, then s|C ∈ OC .

E.g. s|{a} = {a 7→ 0}.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 10 / 35

Page 37: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic events are local sections

A basic event is to measure all the variables in a context C ∈M, and observe theoutcomes.

This is represented by a function s : C → O, i.e. s ∈ OC , or more generallys ∈

∏x∈C Ox .

Example: if C = {a, b}, O = {0, 1}, such an outcome might be

s = {a 7→ 0, b 7→ 1}

This is a local section, since it is defined only on C , not on the whole of X !

Basic operation of restriction: if C ⊆ C ′, s ∈ OC ′, then s|C ∈ OC .

E.g. s|{a} = {a 7→ 0}.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 10 / 35

Page 38: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic events are local sections

A basic event is to measure all the variables in a context C ∈M, and observe theoutcomes.

This is represented by a function s : C → O, i.e. s ∈ OC , or more generallys ∈

∏x∈C Ox .

Example: if C = {a, b}, O = {0, 1}, such an outcome might be

s = {a 7→ 0, b 7→ 1}

This is a local section, since it is defined only on C , not on the whole of X !

Basic operation of restriction: if C ⊆ C ′, s ∈ OC ′, then s|C ∈ OC .

E.g. s|{a} = {a 7→ 0}.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 10 / 35

Page 39: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic events are local sections

A basic event is to measure all the variables in a context C ∈M, and observe theoutcomes.

This is represented by a function s : C → O, i.e. s ∈ OC , or more generallys ∈

∏x∈C Ox .

Example: if C = {a, b}, O = {0, 1}, such an outcome might be

s = {a 7→ 0, b 7→ 1}

This is a local section, since it is defined only on C , not on the whole of X !

Basic operation of restriction: if C ⊆ C ′, s ∈ OC ′, then s|C ∈ OC .

E.g. s|{a} = {a 7→ 0}.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 10 / 35

Page 40: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Empirical models

Empirical model e : (X ,M,O):

e = {eC ∈ Prob(OC ) | C ∈M}

In other words, the empirical model specifies a probability distribution over theevents in each context.

These distributions are the rows of our probability tables.

Thus we have a family of probability distributions over different, but coherentlyrelated, sample spaces.

(The coherent relationship is functoriality!)

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 11 / 35

Page 41: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Empirical models

Empirical model e : (X ,M,O):

e = {eC ∈ Prob(OC ) | C ∈M}

In other words, the empirical model specifies a probability distribution over theevents in each context.

These distributions are the rows of our probability tables.

Thus we have a family of probability distributions over different, but coherentlyrelated, sample spaces.

(The coherent relationship is functoriality!)

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 11 / 35

Page 42: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Empirical models

Empirical model e : (X ,M,O):

e = {eC ∈ Prob(OC ) | C ∈M}

In other words, the empirical model specifies a probability distribution over theevents in each context.

These distributions are the rows of our probability tables.

Thus we have a family of probability distributions over different, but coherentlyrelated, sample spaces.

(The coherent relationship is functoriality!)

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 11 / 35

Page 43: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Empirical models

Empirical model e : (X ,M,O):

e = {eC ∈ Prob(OC ) | C ∈M}

In other words, the empirical model specifies a probability distribution over theevents in each context.

These distributions are the rows of our probability tables.

Thus we have a family of probability distributions over different, but coherentlyrelated, sample spaces.

(The coherent relationship is functoriality!)

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 11 / 35

Page 44: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Formalizing Contextuality: Empirical models

Empirical model e : (X ,M,O):

e = {eC ∈ Prob(OC ) | C ∈M}

In other words, the empirical model specifies a probability distribution over theevents in each context.

These distributions are the rows of our probability tables.

Thus we have a family of probability distributions over different, but coherentlyrelated, sample spaces.

(The coherent relationship is functoriality!)

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 11 / 35

Page 45: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Restriction and Compatibility

We would like to express the condition that an empirical model is compatible,i.e. “locally consistent”.

We want to do this by saying that the distributions “agree on overlaps”. For allC ,C ′ ∈M:

eC |C∩C ′ = eC ′ |C∩C ′ .

Cf. the usual notion of compatibility of a family of functions defined on subsets.

Marginalization of distributions: if C ⊆ C ′, d ∈ Prob(OC ′),

d |C (s) :=∑

t∈OC′ , t|C =s

d(t)

Compatibility is a general form of the important physical principle ofNo-Signalling; this general form is also known as No Disturbance.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 12 / 35

Page 46: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Restriction and Compatibility

We would like to express the condition that an empirical model is compatible,i.e. “locally consistent”.

We want to do this by saying that the distributions “agree on overlaps”. For allC ,C ′ ∈M:

eC |C∩C ′ = eC ′ |C∩C ′ .

Cf. the usual notion of compatibility of a family of functions defined on subsets.

Marginalization of distributions: if C ⊆ C ′, d ∈ Prob(OC ′),

d |C (s) :=∑

t∈OC′ , t|C =s

d(t)

Compatibility is a general form of the important physical principle ofNo-Signalling; this general form is also known as No Disturbance.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 12 / 35

Page 47: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Restriction and Compatibility

We would like to express the condition that an empirical model is compatible,i.e. “locally consistent”.

We want to do this by saying that the distributions “agree on overlaps”. For allC ,C ′ ∈M:

eC |C∩C ′ = eC ′ |C∩C ′ .

Cf. the usual notion of compatibility of a family of functions defined on subsets.

Marginalization of distributions: if C ⊆ C ′, d ∈ Prob(OC ′),

d |C (s) :=∑

t∈OC′ , t|C =s

d(t)

Compatibility is a general form of the important physical principle ofNo-Signalling; this general form is also known as No Disturbance.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 12 / 35

Page 48: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Restriction and Compatibility

We would like to express the condition that an empirical model is compatible,i.e. “locally consistent”.

We want to do this by saying that the distributions “agree on overlaps”. For allC ,C ′ ∈M:

eC |C∩C ′ = eC ′ |C∩C ′ .

Cf. the usual notion of compatibility of a family of functions defined on subsets.

Marginalization of distributions: if C ⊆ C ′, d ∈ Prob(OC ′),

d |C (s) :=∑

t∈OC′ , t|C =s

d(t)

Compatibility is a general form of the important physical principle ofNo-Signalling; this general form is also known as No Disturbance.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 12 / 35

Page 49: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Restriction and Compatibility

We would like to express the condition that an empirical model is compatible,i.e. “locally consistent”.

We want to do this by saying that the distributions “agree on overlaps”. For allC ,C ′ ∈M:

eC |C∩C ′ = eC ′ |C∩C ′ .

Cf. the usual notion of compatibility of a family of functions defined on subsets.

Marginalization of distributions: if C ⊆ C ′, d ∈ Prob(OC ′),

d |C (s) :=∑

t∈OC′ , t|C =s

d(t)

Compatibility is a general form of the important physical principle ofNo-Signalling; this general form is also known as No Disturbance.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 12 / 35

Page 50: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Restriction and Compatibility

We would like to express the condition that an empirical model is compatible,i.e. “locally consistent”.

We want to do this by saying that the distributions “agree on overlaps”. For allC ,C ′ ∈M:

eC |C∩C ′ = eC ′ |C∩C ′ .

Cf. the usual notion of compatibility of a family of functions defined on subsets.

Marginalization of distributions: if C ⊆ C ′, d ∈ Prob(OC ′),

d |C (s) :=∑

t∈OC′ , t|C =s

d(t)

Compatibility is a general form of the important physical principle ofNo-Signalling; this general form is also known as No Disturbance.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 12 / 35

Page 51: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality defined

An empirical model {eC}C∈M on a measurement scenario (X ,M,O) isnon-contextual if there is a distribution d ∈ Prob(OX ) such that, for all C ∈M:

d |C = eC .

That is, we can glue all the local information together into a global consistentdescription from which the local information can be recovered.

We call such a d a global section.

If no such global section exists, the empirical model is contextual.

Thus contextuality arises where we have a family of data which is locallyconsistent but globally inconsistent.

The import of Bell’s theorem and similar results is that there are empirical modelsarising from quantum mechanics which are contextual.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 13 / 35

Page 52: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality defined

An empirical model {eC}C∈M on a measurement scenario (X ,M,O) isnon-contextual if there is a distribution d ∈ Prob(OX ) such that, for all C ∈M:

d |C = eC .

That is, we can glue all the local information together into a global consistentdescription from which the local information can be recovered.

We call such a d a global section.

If no such global section exists, the empirical model is contextual.

Thus contextuality arises where we have a family of data which is locallyconsistent but globally inconsistent.

The import of Bell’s theorem and similar results is that there are empirical modelsarising from quantum mechanics which are contextual.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 13 / 35

Page 53: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality defined

An empirical model {eC}C∈M on a measurement scenario (X ,M,O) isnon-contextual if there is a distribution d ∈ Prob(OX ) such that, for all C ∈M:

d |C = eC .

That is, we can glue all the local information together into a global consistentdescription from which the local information can be recovered.

We call such a d a global section.

If no such global section exists, the empirical model is contextual.

Thus contextuality arises where we have a family of data which is locallyconsistent but globally inconsistent.

The import of Bell’s theorem and similar results is that there are empirical modelsarising from quantum mechanics which are contextual.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 13 / 35

Page 54: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality defined

An empirical model {eC}C∈M on a measurement scenario (X ,M,O) isnon-contextual if there is a distribution d ∈ Prob(OX ) such that, for all C ∈M:

d |C = eC .

That is, we can glue all the local information together into a global consistentdescription from which the local information can be recovered.

We call such a d a global section.

If no such global section exists, the empirical model is contextual.

Thus contextuality arises where we have a family of data which is locallyconsistent but globally inconsistent.

The import of Bell’s theorem and similar results is that there are empirical modelsarising from quantum mechanics which are contextual.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 13 / 35

Page 55: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality defined

An empirical model {eC}C∈M on a measurement scenario (X ,M,O) isnon-contextual if there is a distribution d ∈ Prob(OX ) such that, for all C ∈M:

d |C = eC .

That is, we can glue all the local information together into a global consistentdescription from which the local information can be recovered.

We call such a d a global section.

If no such global section exists, the empirical model is contextual.

Thus contextuality arises where we have a family of data which is locallyconsistent but globally inconsistent.

The import of Bell’s theorem and similar results is that there are empirical modelsarising from quantum mechanics which are contextual.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 13 / 35

Page 56: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality defined

An empirical model {eC}C∈M on a measurement scenario (X ,M,O) isnon-contextual if there is a distribution d ∈ Prob(OX ) such that, for all C ∈M:

d |C = eC .

That is, we can glue all the local information together into a global consistentdescription from which the local information can be recovered.

We call such a d a global section.

If no such global section exists, the empirical model is contextual.

Thus contextuality arises where we have a family of data which is locallyconsistent but globally inconsistent.

The import of Bell’s theorem and similar results is that there are empirical modelsarising from quantum mechanics which are contextual.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 13 / 35

Page 57: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality defined

An empirical model {eC}C∈M on a measurement scenario (X ,M,O) isnon-contextual if there is a distribution d ∈ Prob(OX ) such that, for all C ∈M:

d |C = eC .

That is, we can glue all the local information together into a global consistentdescription from which the local information can be recovered.

We call such a d a global section.

If no such global section exists, the empirical model is contextual.

Thus contextuality arises where we have a family of data which is locallyconsistent but globally inconsistent.

The import of Bell’s theorem and similar results is that there are empirical modelsarising from quantum mechanics which are contextual.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 13 / 35

Page 58: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 59: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 60: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 61: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 62: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 63: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 64: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 65: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 66: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 67: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 68: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 69: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 70: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 71: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 72: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 73: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 74: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 75: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Logical Contextuality

Ignore precise probabilities

Events are possible or not

E.g. the Hardy model:

00 01 10 11

ab X X X X

ab′ × X X X

a′b × X X X

a′b′ X X X ×

•a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Local consistency: We may extend from one context to the next

Global inconsistency: Not all events extend to global valuations

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 14 / 35

Page 76: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Strong Contextuality

A B (0, 0) (1, 0) (0, 1) (1, 1)

a1 b1 1 0 0 1

a1 b2 1 0 0 1

a2 b1 1 0 0 1

a2 b2 0 1 1 0

The PR Box

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 15 / 35

Page 77: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Bundle Pictures

Strong Contextuality

E.g. the PR box:

00 01 10 11

ab X × × X

ab′ X × × X

a′b X × × X

a′b′ × X X × •a• b

• a′•b′

•0

•1•

•1

• 0

• 1

•0

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 16 / 35

Page 78: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Visualizing Contextuality

•a1

•b1

• a2

•b2

•0

•1•

•1

• 0

• 1

•0

•a1

•b1

• a2

•b2

•0

•1•

•1

• 0

• 1

•0

The Hardy table and the PR box as bundles

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 17 / 35

Page 79: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Comparison with the graph-theoretic CSW approach

Deriving an orthogonality graph Ge = (V ,E ) from an empirical model e

V = {(C , s) | C ∈M, s ∈ OC}

(C , s) _ (C ′, s ′) ⇐⇒ ∃x ∈ C ∩ C ′. s(x) 6= s ′(x)

(de Silva 2016): e is strongly contextual iff the independence number of Ge is lessthan |M|.

There is more structure in an empirical model e than in Ge .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 18 / 35

Page 80: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Comparison with the graph-theoretic CSW approach

Deriving an orthogonality graph Ge = (V ,E ) from an empirical model e

V = {(C , s) | C ∈M, s ∈ OC}

(C , s) _ (C ′, s ′) ⇐⇒ ∃x ∈ C ∩ C ′. s(x) 6= s ′(x)

(de Silva 2016): e is strongly contextual iff the independence number of Ge is lessthan |M|.

There is more structure in an empirical model e than in Ge .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 18 / 35

Page 81: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Comparison with the graph-theoretic CSW approach

Deriving an orthogonality graph Ge = (V ,E ) from an empirical model e

V = {(C , s) | C ∈M, s ∈ OC}

(C , s) _ (C ′, s ′) ⇐⇒ ∃x ∈ C ∩ C ′. s(x) 6= s ′(x)

(de Silva 2016): e is strongly contextual iff the independence number of Ge is lessthan |M|.

There is more structure in an empirical model e than in Ge .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 18 / 35

Page 82: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Comparison with the graph-theoretic CSW approach

Deriving an orthogonality graph Ge = (V ,E ) from an empirical model e

V = {(C , s) | C ∈M, s ∈ OC}

(C , s) _ (C ′, s ′) ⇐⇒ ∃x ∈ C ∩ C ′. s(x) 6= s ′(x)

(de Silva 2016): e is strongly contextual iff the independence number of Ge is lessthan |M|.

There is more structure in an empirical model e than in Ge .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 18 / 35

Page 83: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality, Logic and Paradoxes

Liar cycles. A Liar cycle of length N is a sequence of statements

S1 : S2 is true,

S2 : S3 is true,...

SN−1 : SN is true,

SN : S1 is false.

For N = 1, this is the classic Liar sentence

S : S is false.

Following Cook, Walicki et al. we can model the situation by boolean equations:

x1 = x2, . . . , xn−1 = xn, xn = ¬x1

The “paradoxical” nature of the original statements is now captured by theinconsistency of these equations.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 19 / 35

Page 84: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality, Logic and Paradoxes

Liar cycles. A Liar cycle of length N is a sequence of statements

S1 : S2 is true,

S2 : S3 is true,...

SN−1 : SN is true,

SN : S1 is false.

For N = 1, this is the classic Liar sentence

S : S is false.

Following Cook, Walicki et al. we can model the situation by boolean equations:

x1 = x2, . . . , xn−1 = xn, xn = ¬x1

The “paradoxical” nature of the original statements is now captured by theinconsistency of these equations.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 19 / 35

Page 85: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality, Logic and Paradoxes

Liar cycles. A Liar cycle of length N is a sequence of statements

S1 : S2 is true,

S2 : S3 is true,...

SN−1 : SN is true,

SN : S1 is false.

For N = 1, this is the classic Liar sentence

S : S is false.

Following Cook, Walicki et al. we can model the situation by boolean equations:

x1 = x2, . . . , xn−1 = xn, xn = ¬x1

The “paradoxical” nature of the original statements is now captured by theinconsistency of these equations.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 19 / 35

Page 86: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality, Logic and Paradoxes

Liar cycles. A Liar cycle of length N is a sequence of statements

S1 : S2 is true,

S2 : S3 is true,...

SN−1 : SN is true,

SN : S1 is false.

For N = 1, this is the classic Liar sentence

S : S is false.

Following Cook, Walicki et al. we can model the situation by boolean equations:

x1 = x2, . . . , xn−1 = xn, xn = ¬x1

The “paradoxical” nature of the original statements is now captured by theinconsistency of these equations.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 19 / 35

Page 87: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality in the Liar; Liar cycles in the PR Box

We can regard each of these equations as fibered over the set of variables whichoccur in it:

{x1, x2} : x1 = x2

{x2, x3} : x2 = x3

...

{xn−1, xn} : xn−1 = xn

{xn, x1} : xn = ¬x1

Any subset of up to n − 1 of these equations is consistent; while the whole set isinconsistent.

Up to rearrangement, the Liar cycle of length 4 corresponds exactly to thePR box.

The usual reasoning to derive a contradiction from the Liar cycle correspondsprecisely to the attempt to find a univocal path in the bundle diagram.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 20 / 35

Page 88: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality in the Liar; Liar cycles in the PR Box

We can regard each of these equations as fibered over the set of variables whichoccur in it:

{x1, x2} : x1 = x2

{x2, x3} : x2 = x3

...

{xn−1, xn} : xn−1 = xn

{xn, x1} : xn = ¬x1

Any subset of up to n − 1 of these equations is consistent; while the whole set isinconsistent.

Up to rearrangement, the Liar cycle of length 4 corresponds exactly to thePR box.

The usual reasoning to derive a contradiction from the Liar cycle correspondsprecisely to the attempt to find a univocal path in the bundle diagram.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 20 / 35

Page 89: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality in the Liar; Liar cycles in the PR Box

We can regard each of these equations as fibered over the set of variables whichoccur in it:

{x1, x2} : x1 = x2

{x2, x3} : x2 = x3

...

{xn−1, xn} : xn−1 = xn

{xn, x1} : xn = ¬x1

Any subset of up to n − 1 of these equations is consistent; while the whole set isinconsistent.

Up to rearrangement, the Liar cycle of length 4 corresponds exactly to thePR box.

The usual reasoning to derive a contradiction from the Liar cycle correspondsprecisely to the attempt to find a univocal path in the bundle diagram.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 20 / 35

Page 90: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality in the Liar; Liar cycles in the PR Box

We can regard each of these equations as fibered over the set of variables whichoccur in it:

{x1, x2} : x1 = x2

{x2, x3} : x2 = x3

...

{xn−1, xn} : xn−1 = xn

{xn, x1} : xn = ¬x1

Any subset of up to n − 1 of these equations is consistent; while the whole set isinconsistent.

Up to rearrangement, the Liar cycle of length 4 corresponds exactly to thePR box.

The usual reasoning to derive a contradiction from the Liar cycle correspondsprecisely to the attempt to find a univocal path in the bundle diagram.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 20 / 35

Page 91: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextuality in the Liar; Liar cycles in the PR Box

We can regard each of these equations as fibered over the set of variables whichoccur in it:

{x1, x2} : x1 = x2

{x2, x3} : x2 = x3

...

{xn−1, xn} : xn−1 = xn

{xn, x1} : xn = ¬x1

Any subset of up to n − 1 of these equations is consistent; while the whole set isinconsistent.

Up to rearrangement, the Liar cycle of length 4 corresponds exactly to thePR box.

The usual reasoning to derive a contradiction from the Liar cycle correspondsprecisely to the attempt to find a univocal path in the bundle diagram.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 20 / 35

Page 92: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Paths to contradiction

•a1

•b1

• a2

•b2

•0

•1•

•1

• 0

• 1

•0

Suppose that we try to set a2 to 1. Following the path on the right leads to thefollowing local propagation of values:

a2 = 1 ; b1 = 1 ; a1 = 1 ; b2 = 1 ; a2 = 0

a2 = 0 ; b1 = 0 ; a1 = 0 ; b2 = 0 ; a2 = 1

We have discussed a specific case here, but the analysis can be generalised to alarge class of examples.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 21 / 35

Page 93: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Paths to contradiction

•a1

•b1

• a2

•b2

•0

•1•

•1

• 0

• 1

•0

Suppose that we try to set a2 to 1. Following the path on the right leads to thefollowing local propagation of values:

a2 = 1 ; b1 = 1 ; a1 = 1 ; b2 = 1 ; a2 = 0

a2 = 0 ; b1 = 0 ; a1 = 0 ; b2 = 0 ; a2 = 1

We have discussed a specific case here, but the analysis can be generalised to alarge class of examples.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 21 / 35

Page 94: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Paths to contradiction

•a1

•b1

• a2

•b2

•0

•1•

•1

• 0

• 1

•0

Suppose that we try to set a2 to 1. Following the path on the right leads to thefollowing local propagation of values:

a2 = 1 ; b1 = 1 ; a1 = 1 ; b2 = 1 ; a2 = 0

a2 = 0 ; b1 = 0 ; a1 = 0 ; b2 = 0 ; a2 = 1

We have discussed a specific case here, but the analysis can be generalised to alarge class of examples.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 21 / 35

Page 95: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Constraint Satisfaction

Constraint satisfaction is an important paradigm in AI, algorithms and complexity.

A (possibilistic) empirical model is a constraint satisfaction problem!

Represent eC ⊆ OC as a formula.

Example: the PR Box

00 01 10 11

ab X × × X a↔ b

ab′ X × × X a↔ b′

a′b X × × X a′ ↔ b

a′b′ × X X × a′ ⊕ b′

Local consistency is well-studied in (classical) CSP.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 22 / 35

Page 96: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Constraint Satisfaction

Constraint satisfaction is an important paradigm in AI, algorithms and complexity.

A (possibilistic) empirical model is a constraint satisfaction problem!

Represent eC ⊆ OC as a formula.

Example: the PR Box

00 01 10 11

ab X × × X a↔ b

ab′ X × × X a↔ b′

a′b X × × X a′ ↔ b

a′b′ × X X × a′ ⊕ b′

Local consistency is well-studied in (classical) CSP.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 22 / 35

Page 97: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Constraint Satisfaction

Constraint satisfaction is an important paradigm in AI, algorithms and complexity.

A (possibilistic) empirical model is a constraint satisfaction problem!

Represent eC ⊆ OC as a formula.

Example: the PR Box

00 01 10 11

ab X × × X a↔ b

ab′ X × × X a↔ b′

a′b X × × X a′ ↔ b

a′b′ × X X × a′ ⊕ b′

Local consistency is well-studied in (classical) CSP.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 22 / 35

Page 98: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Constraint Satisfaction

Constraint satisfaction is an important paradigm in AI, algorithms and complexity.

A (possibilistic) empirical model is a constraint satisfaction problem!

Represent eC ⊆ OC as a formula.

Example: the PR Box

00 01 10 11

ab X × × X a↔ b

ab′ X × × X a↔ b′

a′b X × × X a′ ↔ b

a′b′ × X X × a′ ⊕ b′

Local consistency is well-studied in (classical) CSP.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 22 / 35

Page 99: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Constraint Satisfaction

Constraint satisfaction is an important paradigm in AI, algorithms and complexity.

A (possibilistic) empirical model is a constraint satisfaction problem!

Represent eC ⊆ OC as a formula.

Example: the PR Box

00 01 10 11

ab X × × X a↔ b

ab′ X × × X a↔ b′

a′b X × × X a′ ↔ b

a′b′ × X X × a′ ⊕ b′

Local consistency is well-studied in (classical) CSP.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 22 / 35

Page 100: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Constraint Satisfaction

Constraint satisfaction is an important paradigm in AI, algorithms and complexity.

A (possibilistic) empirical model is a constraint satisfaction problem!

Represent eC ⊆ OC as a formula.

Example: the PR Box

00 01 10 11

ab X × × X a↔ b

ab′ X × × X a↔ b′

a′b X × × X a′ ↔ b

a′b′ × X X × a′ ⊕ b′

Local consistency is well-studied in (classical) CSP.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 22 / 35

Page 101: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Topological Characterization

Local consistency — global inconsistency

Contextuality is pervasive (e.g. physics, computation, logic, . . . )

Goal: find the common mathematical structure in these diversemanifestations, and develop a widely applicable theory

Can be effectively visualised in topological terms

“Twisting” in bundle space gives rise to an obstruction to global consistency

Idea: use cohomology to characterize contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 23 / 35

Page 102: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Topological Characterization

Local consistency — global inconsistency

Contextuality is pervasive (e.g. physics, computation, logic, . . . )

Goal: find the common mathematical structure in these diversemanifestations, and develop a widely applicable theory

Can be effectively visualised in topological terms

“Twisting” in bundle space gives rise to an obstruction to global consistency

Idea: use cohomology to characterize contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 23 / 35

Page 103: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Topological Characterization

Local consistency — global inconsistency

Contextuality is pervasive (e.g. physics, computation, logic, . . . )

Goal: find the common mathematical structure in these diversemanifestations, and develop a widely applicable theory

Can be effectively visualised in topological terms

“Twisting” in bundle space gives rise to an obstruction to global consistency

Idea: use cohomology to characterize contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 23 / 35

Page 104: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Topological Characterization

Local consistency — global inconsistency

Contextuality is pervasive (e.g. physics, computation, logic, . . . )

Goal: find the common mathematical structure in these diversemanifestations, and develop a widely applicable theory

Can be effectively visualised in topological terms

“Twisting” in bundle space gives rise to an obstruction to global consistency

Idea: use cohomology to characterize contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 23 / 35

Page 105: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Topological Characterization

Local consistency — global inconsistency

Contextuality is pervasive (e.g. physics, computation, logic, . . . )

Goal: find the common mathematical structure in these diversemanifestations, and develop a widely applicable theory

Can be effectively visualised in topological terms

“Twisting” in bundle space gives rise to an obstruction to global consistency

Idea: use cohomology to characterize contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 23 / 35

Page 106: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Topological Characterization

Local consistency — global inconsistency

Contextuality is pervasive (e.g. physics, computation, logic, . . . )

Goal: find the common mathematical structure in these diversemanifestations, and develop a widely applicable theory

Can be effectively visualised in topological terms

“Twisting” in bundle space gives rise to an obstruction to global consistency

Idea: use cohomology to characterize contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 23 / 35

Page 107: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Topological Characterization

Local consistency — global inconsistency

Contextuality is pervasive (e.g. physics, computation, logic, . . . )

Goal: find the common mathematical structure in these diversemanifestations, and develop a widely applicable theory

Can be effectively visualised in topological terms

“Twisting” in bundle space gives rise to an obstruction to global consistency

Idea: use cohomology to characterize contextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 23 / 35

Page 108: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why Cohomology?

A major theme of 20/21st century mathematics

Constructive witnesses for non-existence, instead of proofs by contradiction

Often computable

Increasingly coming into applications (e.g. persistent homology, TDA)

Part of the program of developing a widely applicable mathematical theory ofcontextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 24 / 35

Page 109: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why Cohomology?

A major theme of 20/21st century mathematics

Constructive witnesses for non-existence, instead of proofs by contradiction

Often computable

Increasingly coming into applications (e.g. persistent homology, TDA)

Part of the program of developing a widely applicable mathematical theory ofcontextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 24 / 35

Page 110: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why Cohomology?

A major theme of 20/21st century mathematics

Constructive witnesses for non-existence, instead of proofs by contradiction

Often computable

Increasingly coming into applications (e.g. persistent homology, TDA)

Part of the program of developing a widely applicable mathematical theory ofcontextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 24 / 35

Page 111: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why Cohomology?

A major theme of 20/21st century mathematics

Constructive witnesses for non-existence, instead of proofs by contradiction

Often computable

Increasingly coming into applications (e.g. persistent homology, TDA)

Part of the program of developing a widely applicable mathematical theory ofcontextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 24 / 35

Page 112: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why Cohomology?

A major theme of 20/21st century mathematics

Constructive witnesses for non-existence, instead of proofs by contradiction

Often computable

Increasingly coming into applications (e.g. persistent homology, TDA)

Part of the program of developing a widely applicable mathematical theory ofcontextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 24 / 35

Page 113: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Why Cohomology?

A major theme of 20/21st century mathematics

Constructive witnesses for non-existence, instead of proofs by contradiction

Often computable

Increasingly coming into applications (e.g. persistent homology, TDA)

Part of the program of developing a widely applicable mathematical theory ofcontextuality

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 24 / 35

Page 114: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Summary of Cohomological Characterization

We have a coverU = {C1, . . . ,Cn}

of measurement contexts.

Given s = s1 ∈ Se(C1), we define

z = δ0(s1, . . . , sn),

where s1|C1∩Ci = si |C1∩Ci , i = 1, . . . , n.

This is a cocycle in the relative Cech cohomology with respect to C1.

We defineγ(s) = [z ] ∈ H1(U ,FC1

)

where F is the AbGrp-valued presheaf Z[Se ].

Here γ is in fact the connecting homomorphism of the long exact sequence.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 25 / 35

Page 115: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Summary of Cohomological Characterization

We have a coverU = {C1, . . . ,Cn}

of measurement contexts.

Given s = s1 ∈ Se(C1), we define

z = δ0(s1, . . . , sn),

where s1|C1∩Ci = si |C1∩Ci , i = 1, . . . , n.

This is a cocycle in the relative Cech cohomology with respect to C1.

We defineγ(s) = [z ] ∈ H1(U ,FC1

)

where F is the AbGrp-valued presheaf Z[Se ].

Here γ is in fact the connecting homomorphism of the long exact sequence.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 25 / 35

Page 116: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Summary of Cohomological Characterization

We have a coverU = {C1, . . . ,Cn}

of measurement contexts.

Given s = s1 ∈ Se(C1), we define

z = δ0(s1, . . . , sn),

where s1|C1∩Ci = si |C1∩Ci , i = 1, . . . , n.

This is a cocycle in the relative Cech cohomology with respect to C1.

We defineγ(s) = [z ] ∈ H1(U ,FC1

)

where F is the AbGrp-valued presheaf Z[Se ].

Here γ is in fact the connecting homomorphism of the long exact sequence.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 25 / 35

Page 117: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Summary of Cohomological Characterization

We have a coverU = {C1, . . . ,Cn}

of measurement contexts.

Given s = s1 ∈ Se(C1), we define

z = δ0(s1, . . . , sn),

where s1|C1∩Ci = si |C1∩Ci , i = 1, . . . , n.

This is a cocycle in the relative Cech cohomology with respect to C1.

We defineγ(s) = [z ] ∈ H1(U ,FC1

)

where F is the AbGrp-valued presheaf Z[Se ].

Here γ is in fact the connecting homomorphism of the long exact sequence.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 25 / 35

Page 118: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Summary of Cohomological Characterization

We have a coverU = {C1, . . . ,Cn}

of measurement contexts.

Given s = s1 ∈ Se(C1), we define

z = δ0(s1, . . . , sn),

where s1|C1∩Ci = si |C1∩Ci , i = 1, . . . , n.

This is a cocycle in the relative Cech cohomology with respect to C1.

We defineγ(s) = [z ] ∈ H1(U ,FC1

)

where F is the AbGrp-valued presheaf Z[Se ].

Here γ is in fact the connecting homomorphism of the long exact sequence.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 25 / 35

Page 119: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Summary of Cohomological Characterization

We have a coverU = {C1, . . . ,Cn}

of measurement contexts.

Given s = s1 ∈ Se(C1), we define

z = δ0(s1, . . . , sn),

where s1|C1∩Ci = si |C1∩Ci , i = 1, . . . , n.

This is a cocycle in the relative Cech cohomology with respect to C1.

We defineγ(s) = [z ] ∈ H1(U ,FC1

)

where F is the AbGrp-valued presheaf Z[Se ].

Here γ is in fact the connecting homomorphism of the long exact sequence.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 25 / 35

Page 120: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic Results

Proposition

The following are equivalent:

1 The cohomology obstruction vanishes: γ(s1) = 0.

2 There is a family {ri ∈ F(Ci )} with s1 = r1, and for all i , j :

ri |Ci ∩ Cj = rj |Ci ∩ Cj .

Proposition

If the model e is possibilistically extendable, then the obstruction vanishes forevery section in the support of the model. If e is not strongly contextual, then theobstruction vanishes for some section in the support.

Thus non-vanishing of the obstruction provides a cohomological witness forcontextuality.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 26 / 35

Page 121: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic Results

Proposition

The following are equivalent:

1 The cohomology obstruction vanishes: γ(s1) = 0.

2 There is a family {ri ∈ F(Ci )} with s1 = r1, and for all i , j :

ri |Ci ∩ Cj = rj |Ci ∩ Cj .

Proposition

If the model e is possibilistically extendable, then the obstruction vanishes forevery section in the support of the model. If e is not strongly contextual, then theobstruction vanishes for some section in the support.

Thus non-vanishing of the obstruction provides a cohomological witness forcontextuality.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 26 / 35

Page 122: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic Results

Proposition

The following are equivalent:

1 The cohomology obstruction vanishes: γ(s1) = 0.

2 There is a family {ri ∈ F(Ci )} with s1 = r1, and for all i , j :

ri |Ci ∩ Cj = rj |Ci ∩ Cj .

Proposition

If the model e is possibilistically extendable, then the obstruction vanishes forevery section in the support of the model. If e is not strongly contextual, then theobstruction vanishes for some section in the support.

Thus non-vanishing of the obstruction provides a cohomological witness forcontextuality.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 26 / 35

Page 123: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Basic Results

Proposition

The following are equivalent:

1 The cohomology obstruction vanishes: γ(s1) = 0.

2 There is a family {ri ∈ F(Ci )} with s1 = r1, and for all i , j :

ri |Ci ∩ Cj = rj |Ci ∩ Cj .

Proposition

If the model e is possibilistically extendable, then the obstruction vanishes forevery section in the support of the model. If e is not strongly contextual, then theobstruction vanishes for some section in the support.

Thus non-vanishing of the obstruction provides a cohomological witness forcontextuality.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 26 / 35

Page 124: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Notes on Cohomology

There are false positives because of negative coefficients in cochains.

We can effectively compute (mod 2) witnesses in many cases of interest:GHZ, Kylachko, Peres-Mermin, large class of Kochen-Specker models, . . .

In Contextuality, Cohomology and Paradox (ABKLM 2015), we obtain verygeneral results in cases where the outcomes themselves have a modulestructure (over the same ring as the cohomology coefficients).

This yields cohomological characterisations of All-vs.-Nothing proofs(Mermin). These account for most of the contextuality arguments in thequantum literature. In particular, we can find large classes of concreteexamples in stabiliser QM.

Theorem

Let S be an empirical model on 〈X ,M,R〉. Then:

AvNR(S) ⇒ SC(Aff S) ⇒ CSCR(S) ⇒ CSCZ(S) ⇒ SC(S) .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 27 / 35

Page 125: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Notes on Cohomology

There are false positives because of negative coefficients in cochains.

We can effectively compute (mod 2) witnesses in many cases of interest:GHZ, Kylachko, Peres-Mermin, large class of Kochen-Specker models, . . .

In Contextuality, Cohomology and Paradox (ABKLM 2015), we obtain verygeneral results in cases where the outcomes themselves have a modulestructure (over the same ring as the cohomology coefficients).

This yields cohomological characterisations of All-vs.-Nothing proofs(Mermin). These account for most of the contextuality arguments in thequantum literature. In particular, we can find large classes of concreteexamples in stabiliser QM.

Theorem

Let S be an empirical model on 〈X ,M,R〉. Then:

AvNR(S) ⇒ SC(Aff S) ⇒ CSCR(S) ⇒ CSCZ(S) ⇒ SC(S) .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 27 / 35

Page 126: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Notes on Cohomology

There are false positives because of negative coefficients in cochains.

We can effectively compute (mod 2) witnesses in many cases of interest:GHZ, Kylachko, Peres-Mermin, large class of Kochen-Specker models, . . .

In Contextuality, Cohomology and Paradox (ABKLM 2015), we obtain verygeneral results in cases where the outcomes themselves have a modulestructure (over the same ring as the cohomology coefficients).

This yields cohomological characterisations of All-vs.-Nothing proofs(Mermin). These account for most of the contextuality arguments in thequantum literature. In particular, we can find large classes of concreteexamples in stabiliser QM.

Theorem

Let S be an empirical model on 〈X ,M,R〉. Then:

AvNR(S) ⇒ SC(Aff S) ⇒ CSCR(S) ⇒ CSCZ(S) ⇒ SC(S) .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 27 / 35

Page 127: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Notes on Cohomology

There are false positives because of negative coefficients in cochains.

We can effectively compute (mod 2) witnesses in many cases of interest:GHZ, Kylachko, Peres-Mermin, large class of Kochen-Specker models, . . .

In Contextuality, Cohomology and Paradox (ABKLM 2015), we obtain verygeneral results in cases where the outcomes themselves have a modulestructure (over the same ring as the cohomology coefficients).

This yields cohomological characterisations of All-vs.-Nothing proofs(Mermin). These account for most of the contextuality arguments in thequantum literature. In particular, we can find large classes of concreteexamples in stabiliser QM.

Theorem

Let S be an empirical model on 〈X ,M,R〉. Then:

AvNR(S) ⇒ SC(Aff S) ⇒ CSCR(S) ⇒ CSCZ(S) ⇒ SC(S) .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 27 / 35

Page 128: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Notes on Cohomology

There are false positives because of negative coefficients in cochains.

We can effectively compute (mod 2) witnesses in many cases of interest:GHZ, Kylachko, Peres-Mermin, large class of Kochen-Specker models, . . .

In Contextuality, Cohomology and Paradox (ABKLM 2015), we obtain verygeneral results in cases where the outcomes themselves have a modulestructure (over the same ring as the cohomology coefficients).

This yields cohomological characterisations of All-vs.-Nothing proofs(Mermin). These account for most of the contextuality arguments in thequantum literature. In particular, we can find large classes of concreteexamples in stabiliser QM.

Theorem

Let S be an empirical model on 〈X ,M,R〉. Then:

AvNR(S) ⇒ SC(Aff S) ⇒ CSCR(S) ⇒ CSCZ(S) ⇒ SC(S) .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 27 / 35

Page 129: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Relational databases

This geometric picture and the associated methods can be applied to a wide rangeof situations in classical computer science.

In particular, as we shall now see, there is an isomorphism between the formaldescription we have given for the quantum notions of non-locality andcontextuality, and basic definitions and concepts in relational database theory.

Samson Abramsky, ‘Relational databases and Bell’s theorem’, In In Search ofElegance in the Theory and Practice of Computation: Essays Dedicated to PeterBuneman, Springer 2013.

branch-name account-no customer-name balance

Cambridge 10991-06284 Newton £2,567.53

Hanover 10992-35671 Leibniz e11,245.75

. . . . . . . . . . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 28 / 35

Page 130: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Relational databases

This geometric picture and the associated methods can be applied to a wide rangeof situations in classical computer science.

In particular, as we shall now see, there is an isomorphism between the formaldescription we have given for the quantum notions of non-locality andcontextuality, and basic definitions and concepts in relational database theory.

Samson Abramsky, ‘Relational databases and Bell’s theorem’, In In Search ofElegance in the Theory and Practice of Computation: Essays Dedicated to PeterBuneman, Springer 2013.

branch-name account-no customer-name balance

Cambridge 10991-06284 Newton £2,567.53

Hanover 10992-35671 Leibniz e11,245.75

. . . . . . . . . . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 28 / 35

Page 131: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Relational databases

This geometric picture and the associated methods can be applied to a wide rangeof situations in classical computer science.

In particular, as we shall now see, there is an isomorphism between the formaldescription we have given for the quantum notions of non-locality andcontextuality, and basic definitions and concepts in relational database theory.

Samson Abramsky, ‘Relational databases and Bell’s theorem’, In In Search ofElegance in the Theory and Practice of Computation: Essays Dedicated to PeterBuneman, Springer 2013.

branch-name account-no customer-name balance

Cambridge 10991-06284 Newton £2,567.53

Hanover 10992-35671 Leibniz e11,245.75

. . . . . . . . . . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 28 / 35

Page 132: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Relational databases

This geometric picture and the associated methods can be applied to a wide rangeof situations in classical computer science.

In particular, as we shall now see, there is an isomorphism between the formaldescription we have given for the quantum notions of non-locality andcontextuality, and basic definitions and concepts in relational database theory.

Samson Abramsky, ‘Relational databases and Bell’s theorem’, In In Search ofElegance in the Theory and Practice of Computation: Essays Dedicated to PeterBuneman, Springer 2013.

branch-name account-no customer-name balance

Cambridge 10991-06284 Newton £2,567.53

Hanover 10992-35671 Leibniz e11,245.75

. . . . . . . . . . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 28 / 35

Page 133: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Relational databases

This geometric picture and the associated methods can be applied to a wide rangeof situations in classical computer science.

In particular, as we shall now see, there is an isomorphism between the formaldescription we have given for the quantum notions of non-locality andcontextuality, and basic definitions and concepts in relational database theory.

Samson Abramsky, ‘Relational databases and Bell’s theorem’, In In Search ofElegance in the Theory and Practice of Computation: Essays Dedicated to PeterBuneman, Springer 2013.

branch-name account-no customer-name balance

Cambridge 10991-06284 Newton £2,567.53

Hanover 10992-35671 Leibniz e11,245.75

. . . . . . . . . . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 28 / 35

Page 134: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

From possibility models to databases

Consider again the Hardy model:

(0, 0) (0, 1) (1, 0) (1, 1)

(a1, b1) 1 1 1 1

(a1, b2) 0 1 1 1

(a2, b1) 0 1 1 1

(a2, b2) 1 1 1 0

Change of perspective:

a1, a2, b1, b2 attributes

0, 1 data values

joint outcomes of measurements tuples

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 29 / 35

Page 135: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

From possibility models to databases

Consider again the Hardy model:

(0, 0) (0, 1) (1, 0) (1, 1)

(a1, b1) 1 1 1 1

(a1, b2) 0 1 1 1

(a2, b1) 0 1 1 1

(a2, b2) 1 1 1 0

Change of perspective:

a1, a2, b1, b2 attributes

0, 1 data values

joint outcomes of measurements tuples

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 29 / 35

Page 136: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

From possibility models to databases

Consider again the Hardy model:

(0, 0) (0, 1) (1, 0) (1, 1)

(a1, b1) 1 1 1 1

(a1, b2) 0 1 1 1

(a2, b1) 0 1 1 1

(a2, b2) 1 1 1 0

Change of perspective:

a1, a2, b1, b2 attributes

0, 1 data values

joint outcomes of measurements tuples

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 29 / 35

Page 137: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The Hardy model as a relational databaseThe four rows of the model turn into four relation tables:

a1 b1

0 0

0 1

1 0

1 1

a1 b2

0 1

1 0

1 1

a2 b1

0 1

1 0

1 1

a2 b2

0 0

1 0

0 1

What is the DB property corresponding to the presence ofnon-locality/contextuality in the Hardy table?

There is no universal relation: no table

a1 a2 b1 b2

......

......

whose projections onto {ai , bi}, i = 1, 2, yield the above four tables.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 30 / 35

Page 138: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The Hardy model as a relational databaseThe four rows of the model turn into four relation tables:

a1 b1

0 0

0 1

1 0

1 1

a1 b2

0 1

1 0

1 1

a2 b1

0 1

1 0

1 1

a2 b2

0 0

1 0

0 1

What is the DB property corresponding to the presence ofnon-locality/contextuality in the Hardy table?

There is no universal relation: no table

a1 a2 b1 b2

......

......

whose projections onto {ai , bi}, i = 1, 2, yield the above four tables.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 30 / 35

Page 139: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The Hardy model as a relational databaseThe four rows of the model turn into four relation tables:

a1 b1

0 0

0 1

1 0

1 1

a1 b2

0 1

1 0

1 1

a2 b1

0 1

1 0

1 1

a2 b2

0 0

1 0

0 1

What is the DB property corresponding to the presence ofnon-locality/contextuality in the Hardy table?

There is no universal relation: no table

a1 a2 b1 b2

......

......

whose projections onto {ai , bi}, i = 1, 2, yield the above four tables.Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 30 / 35

Page 140: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

A dictionary

Relational databases measurement scenarios

attribute measurement

set of attributes defining a relation table compatible set of measurements

database schema measurement cover

tuple local section (joint outcome)

relation/set of tuples boolean distribution on joint outcomes

universal relation instance global section/hidden variable model

acyclicity Vorob’ev condition

We can also consider probabilistic databases and other generalisations;cf. provenance semirings.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 31 / 35

Page 141: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

A dictionary

Relational databases measurement scenarios

attribute measurement

set of attributes defining a relation table compatible set of measurements

database schema measurement cover

tuple local section (joint outcome)

relation/set of tuples boolean distribution on joint outcomes

universal relation instance global section/hidden variable model

acyclicity Vorob’ev condition

We can also consider probabilistic databases and other generalisations;cf. provenance semirings.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 31 / 35

Page 142: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

A dictionary

Relational databases measurement scenarios

attribute measurement

set of attributes defining a relation table compatible set of measurements

database schema measurement cover

tuple local section (joint outcome)

relation/set of tuples boolean distribution on joint outcomes

universal relation instance global section/hidden variable model

acyclicity Vorob’ev condition

We can also consider probabilistic databases and other generalisations;cf. provenance semirings.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 31 / 35

Page 143: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextual Semantics

Why do such similar structures arise in such apparently different settings?

The phenomenon of contextuality is pervasive. Once we start looking for it, wecan find it everywhere!Physics, computation, logic, natural language, . . . biology, economics, . . .

The Contextual semantics hypothesis: we can find common mathematicalstructure in all these diverse manifestations, and develop a widely applicabletheory.

More than a hypothesis! Already extensive results in

Quantum information and foundations: hierarchy of contextuality, logicalcharacterisation of Bell inequalities, classification of multipartite entangledstates, cohomological characterisation of contextuality, contextual fraction asa measure of contextuality, resource theorty for contextuality, applications toquantum advantage, quantum homomorphisms and the the quantum monad,developments towards quantum finite model theory . . .

And beyond: connections with databases, robust refinement of the constraintsatisfaction paradigm, application of contextual semantics to natural languagesemantics, connections with team semantics in Dependence logics, . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 32 / 35

Page 144: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextual SemanticsWhy do such similar structures arise in such apparently different settings?

The phenomenon of contextuality is pervasive. Once we start looking for it, wecan find it everywhere!Physics, computation, logic, natural language, . . . biology, economics, . . .

The Contextual semantics hypothesis: we can find common mathematicalstructure in all these diverse manifestations, and develop a widely applicabletheory.

More than a hypothesis! Already extensive results in

Quantum information and foundations: hierarchy of contextuality, logicalcharacterisation of Bell inequalities, classification of multipartite entangledstates, cohomological characterisation of contextuality, contextual fraction asa measure of contextuality, resource theorty for contextuality, applications toquantum advantage, quantum homomorphisms and the the quantum monad,developments towards quantum finite model theory . . .

And beyond: connections with databases, robust refinement of the constraintsatisfaction paradigm, application of contextual semantics to natural languagesemantics, connections with team semantics in Dependence logics, . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 32 / 35

Page 145: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextual SemanticsWhy do such similar structures arise in such apparently different settings?

The phenomenon of contextuality is pervasive. Once we start looking for it, wecan find it everywhere!Physics, computation, logic, natural language, . . . biology, economics, . . .

The Contextual semantics hypothesis: we can find common mathematicalstructure in all these diverse manifestations, and develop a widely applicabletheory.

More than a hypothesis! Already extensive results in

Quantum information and foundations: hierarchy of contextuality, logicalcharacterisation of Bell inequalities, classification of multipartite entangledstates, cohomological characterisation of contextuality, contextual fraction asa measure of contextuality, resource theorty for contextuality, applications toquantum advantage, quantum homomorphisms and the the quantum monad,developments towards quantum finite model theory . . .

And beyond: connections with databases, robust refinement of the constraintsatisfaction paradigm, application of contextual semantics to natural languagesemantics, connections with team semantics in Dependence logics, . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 32 / 35

Page 146: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextual SemanticsWhy do such similar structures arise in such apparently different settings?

The phenomenon of contextuality is pervasive. Once we start looking for it, wecan find it everywhere!Physics, computation, logic, natural language, . . . biology, economics, . . .

The Contextual semantics hypothesis: we can find common mathematicalstructure in all these diverse manifestations, and develop a widely applicabletheory.

More than a hypothesis! Already extensive results in

Quantum information and foundations: hierarchy of contextuality, logicalcharacterisation of Bell inequalities, classification of multipartite entangledstates, cohomological characterisation of contextuality, contextual fraction asa measure of contextuality, resource theorty for contextuality, applications toquantum advantage, quantum homomorphisms and the the quantum monad,developments towards quantum finite model theory . . .

And beyond: connections with databases, robust refinement of the constraintsatisfaction paradigm, application of contextual semantics to natural languagesemantics, connections with team semantics in Dependence logics, . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 32 / 35

Page 147: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextual SemanticsWhy do such similar structures arise in such apparently different settings?

The phenomenon of contextuality is pervasive. Once we start looking for it, wecan find it everywhere!Physics, computation, logic, natural language, . . . biology, economics, . . .

The Contextual semantics hypothesis: we can find common mathematicalstructure in all these diverse manifestations, and develop a widely applicabletheory.

More than a hypothesis! Already extensive results in

Quantum information and foundations: hierarchy of contextuality, logicalcharacterisation of Bell inequalities, classification of multipartite entangledstates, cohomological characterisation of contextuality, contextual fraction asa measure of contextuality, resource theorty for contextuality, applications toquantum advantage, quantum homomorphisms and the the quantum monad,developments towards quantum finite model theory . . .

And beyond: connections with databases, robust refinement of the constraintsatisfaction paradigm, application of contextual semantics to natural languagesemantics, connections with team semantics in Dependence logics, . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 32 / 35

Page 148: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextual SemanticsWhy do such similar structures arise in such apparently different settings?

The phenomenon of contextuality is pervasive. Once we start looking for it, wecan find it everywhere!Physics, computation, logic, natural language, . . . biology, economics, . . .

The Contextual semantics hypothesis: we can find common mathematicalstructure in all these diverse manifestations, and develop a widely applicabletheory.

More than a hypothesis! Already extensive results in

Quantum information and foundations: hierarchy of contextuality, logicalcharacterisation of Bell inequalities, classification of multipartite entangledstates, cohomological characterisation of contextuality, contextual fraction asa measure of contextuality, resource theorty for contextuality, applications toquantum advantage, quantum homomorphisms and the the quantum monad,developments towards quantum finite model theory . . .

And beyond: connections with databases, robust refinement of the constraintsatisfaction paradigm, application of contextual semantics to natural languagesemantics, connections with team semantics in Dependence logics, . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 32 / 35

Page 149: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

Contextual SemanticsWhy do such similar structures arise in such apparently different settings?

The phenomenon of contextuality is pervasive. Once we start looking for it, wecan find it everywhere!Physics, computation, logic, natural language, . . . biology, economics, . . .

The Contextual semantics hypothesis: we can find common mathematicalstructure in all these diverse manifestations, and develop a widely applicabletheory.

More than a hypothesis! Already extensive results in

Quantum information and foundations: hierarchy of contextuality, logicalcharacterisation of Bell inequalities, classification of multipartite entangledstates, cohomological characterisation of contextuality, contextual fraction asa measure of contextuality, resource theorty for contextuality, applications toquantum advantage, quantum homomorphisms and the the quantum monad,developments towards quantum finite model theory . . .

And beyond: connections with databases, robust refinement of the constraintsatisfaction paradigm, application of contextual semantics to natural languagesemantics, connections with team semantics in Dependence logics, . . .

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 32 / 35

Page 150: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

People

Adam Brandenburger, Lucien Hardy, Shane Mansfield, Rui Soares Barbosa, Ray Lal,Mehrnoosh Sadrzadeh, Phokion Kolaitis, Georg Gottlob, Carmen Constantin,

Kohei Kishida. Giovanni Caru, Linde Wester, Nadish de Silva

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 33 / 35

Page 151: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

People

Adam Brandenburger, Lucien Hardy, Shane Mansfield, Rui Soares Barbosa, Ray Lal,Mehrnoosh Sadrzadeh, Phokion Kolaitis, Georg Gottlob, Carmen Constantin,

Kohei Kishida. Giovanni Caru, Linde Wester, Nadish de SilvaSamson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 33 / 35

Page 152: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

References

Papers (available on arXiv):

S. Abramsky and A. Brandenburger. The sheaf-theoretic structure ofnon-locality and contextuality. New Journal of Physics, 13(2011):113036,2011.

S. Abramsky, Contextual Semantics: From Quantum Mechanics to Logic,Databases, Constraints, and Complexity, in Bulletin of the EuropeanAssociation for Theoretical Computer Science, Number 113, pages 137–163,June 2014.

S. Abramsky and L. Hardy. Logical Bell Inequalities. Phys. Rev. A 85,062114 (2012).

S. Abramsky, Relational Databases and Bell’s Theorem, In In Search ofElegance in the Theory and Practice of Computation: Essays Dedicated toPeter Buneman, Springer 2013.

S. Abramsky, G. Gottlob and P. Kolaitis, Robust Constraint Satisfaction andLocal Hidden Variables in Quantum Mechanics, Proceedings IJCAI 2013.

S. Abramsky, Rui Soares Barbosa, Kohei Kishida, Ray Lal and ShaneMansfield, Contextuality, Cohomology and Paradox. Proceedings CSL 2015.

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 34 / 35

Page 153: Introduction to the sheaf-theoretic approach to contextuality · Introduction to the sheaf-theoretic approach to contextuality Samson Abramsky ... which is a hypergraph: either the

The Penrose Tribar

Samson Abramsky (Department of Computer Science, University of Oxford)Introduction to the sheaf-theoretic approach to contextuality 35 / 35