41
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê Thành Dũng 1,2 Thomas Seiller 2 1 École normale supérieure de Paris 2 Laboratoire d’informatique de Paris Nord, CNRS / Université Paris 13 Linearity/TLLA 2018 (FLoC workshop) Oxford, July 8 th , 2018 Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 1 / 22

Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

Embed Size (px)

Citation preview

Page 1: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Coherent interaction graphsA nondeterministic geometry of interaction for MLL

Nguyễn Lê Thành Dũng1,2 Thomas Seiller2

1École normale supérieure de Paris

2Laboratoire d’informatique de Paris Nord, CNRS / Université Paris 13

Linearity/TLLA 2018 (FLoC workshop)Oxford, July 8th, 2018

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 1 / 22

Page 2: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

MLL proofs as matchings (i.e. fixed-point-free involutions)

2 proofs of A ⊗ A ⊸ A ⊗ A:

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 2 / 22

Page 3: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

MLL proofs as matchings (i.e. fixed-point-free involutions)

2 proofs of A ⊗ A ⊸ A ⊗ A:

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 2 / 22

Page 4: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A (Cut)

⊢ A⊥ ` A⊥,A ⊗ A

Geometry of Interaction:predict the normal form by following paths

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 3 / 22

Page 5: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A (Cut)

⊢ A⊥ ` A⊥,A ⊗ A

Geometry of Interaction:predict the normal form by following paths

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 3 / 22

Page 6: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A (Cut)

⊢ A⊥ ` A⊥,A ⊗ A

Geometry of Interaction:predict the normal form by following paths

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 3 / 22

Page 7: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A (Cut)

⊢ A⊥ ` A⊥,A ⊗ A

Geometry of Interaction:predict the normal form by following paths

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 3 / 22

Page 8: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥,A⊥,A ⊗ A⊢ A⊥ ` A⊥,A ⊗ A (Cut)

⊢ A⊥ ` A⊥,A ⊗ A

Geometry of Interaction:predict the normal form by following paths

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 3 / 22

Page 9: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings: another example

⊢ A⊥,A⊢ A⊥ ` A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥ ⊗ A⊥,A,A⊢ A ⊗ A⊥,A⊥ ` A (Cut)

⊢ A⊥ ` A

Alternating paths ≃ composition of strategies in game semantics

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 4 / 22

Page 10: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings: another example

⊢ A⊥,A⊢ A⊥ ` A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥ ⊗ A⊥,A,A⊢ A ⊗ A⊥,A⊥ ` A (Cut)

⊢ A⊥ ` A

Alternating paths ≃ composition of strategies in game semantics

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 4 / 22

Page 11: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cut-elimination on matchings: another example

⊢ A⊥,A⊢ A⊥ ` A

⊢ A⊥,A ⊢ A⊥,A⊢ A⊥ ⊗ A⊥,A,A⊢ A ⊗ A⊥,A⊥ ` A (Cut)

⊢ A⊥ ` A

Alternating paths ≃ composition of strategies in game semantics

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 4 / 22

Page 12: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

From matchings to Interaction Graphs

Matchings are both a GoI and a sort of game semanticsExecution between matchings can be extended to arbitrary graphs:

DefinitionLet G, H be two graphs. Their execution G :: H is the graph whosevertex set is V(G)△V(H), and whose edges correspond to alternatingpaths between G and H.

J−K : {MLL proofs} → {matchings} ⊂ {graphs} then enjoys:

PropositionJcut(π, ρ)K = JπK :: JρKNguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 5 / 22

Page 13: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Interaction graphs as a denotational semantics

Proposition (Associativity / Church–Rosser)If V(F) ∩ V(G) ∩ V(H) = ∅, then (F :: G) :: H = F :: (G :: H).

Then it suffices to define types as some sets of graphs with thesame vertex set to get a model of MLL, that is:

TheoremInteraction graphs constitute a ∗-autonomous category with composition ofmorphisms given by execution.

In general, a whole family of models, depending on choices ofparameters (e.g. monoid of weights → quantitative semantics)Extension to MELL: generalize from graphs to graphings (cf. LucPellissier’s talk) to represent exponentials

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 6 / 22

Page 14: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Our goal: non-determinism / additives

Let’s extend MLL with non-deterministic sums of (sub-)proofs:

⊢ Γ . . . ⊢ Γ (Sum)⊢ Γ

How to interpret this rule in interaction graphs?Also relevant for additives: &-intro is a non-det. superpositionFormal sums of graphs → size explosion

A solution: coherent interaction graphs▶ Originally introduced in Seiller’s PhD for a different purpose

Using a coherence relation is common for additives, e.g. conflict nets(Hughes–Heijltjes), Girard’s “Transcendental syntax 2”, etc.

▶ But we won’t treat additives here: technical issues common to allGoI approaches

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 7 / 22

Page 15: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Our goal: non-determinism / additives

Let’s extend MLL with non-deterministic sums of (sub-)proofs:

⊢ Γ . . . ⊢ Γ (Sum)⊢ Γ

How to interpret this rule in interaction graphs?Also relevant for additives: &-intro is a non-det. superpositionFormal sums of graphs → size explosion

A solution: coherent interaction graphs▶ Originally introduced in Seiller’s PhD for a different purpose

Using a coherence relation is common for additives, e.g. conflict nets(Hughes–Heijltjes), Girard’s “Transcendental syntax 2”, etc.

▶ But we won’t treat additives here: technical issues common to allGoI approaches

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 7 / 22

Page 16: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Coherent graphsDefinitionA coherent graph is a graph G equipped with a coherence relation ¨G onits edge set E(G).

i.e. (E(G),¨G) is a coherent space (which we’ll identify with E(G))

DefinitionIf V(G) = V(H) = V, then the incoherent sum of G and H is defined asG

⌣+ H = (V,E(G)⊕ E(H)). (⊕: disjoint union of coherent spaces)

⌣+ interprets the Sum ruleThink of a coherent graph (V,E) as the formal sum∑

C⊂E(V,C) (C clique)

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 8 / 22

Page 17: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Execution of coherent graphs: example

Here red ¨ black, blue ¨ black, red ⌣ blue

Incoherence: don’t take this path

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 9 / 22

Page 18: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Execution of coherent graphs: example

Here red ¨ black, blue ¨ black, red ⌣ blue

Incoherence: don’t take this path

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 9 / 22

Page 19: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Execution of coherent graphs: example

Here red ¨ black, blue ¨ black, red ⌣ blue

Incoherence: don’t take this path

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 9 / 22

Page 20: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Execution of coherent graphs: example

Here red ¨ black, blue ¨ black, red ⌣ blue

Incoherence: don’t take this path

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 9 / 22

Page 21: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Execution of coherent graphs: example

Here red ¨ black, blue ¨ black, red ⌣ blue

Incoherence: don’t take this path

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 9 / 22

Page 22: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Execution of coherent graphs

In summary: exec. of coherent graphs = alt. coherent paths

TheoremCoherent interaction graphs constitute a ∗-autonomous category withcomposition of morphisms given by execution.

Next: a different application of coherent graphs…▶ …namely internalization of a correctness criterion▶ We need to present more details on the interpretation of types first

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 10 / 22

Page 23: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Execution of coherent graphs

In summary: exec. of coherent graphs = alt. coherent paths

TheoremCoherent interaction graphs constitute a ∗-autonomous category withcomposition of morphisms given by execution.

Next: a different application of coherent graphs…▶ …namely internalization of a correctness criterion▶ We need to present more details on the interpretation of types first

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 10 / 22

Page 24: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Orthogonality and types (1)

In the interaction graphs model, morphisms = graphs, objects = ?A set of graphs with the same vertex set……and the same “specification”, think BHK/realisability: a proofof A is anything that behaves as prescribed by A

▶ Typically we will get A ⊸ B = {f | ∀a ∈ A, f :: a ∈ B}

→ types specified by collections of testsTests are also given by graphs, acting as counter-proofsProofs and counter-proofs related by symmetric orthogonality ⊥

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 11 / 22

Page 25: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Orthogonality and types (1)

In the interaction graphs model, morphisms = graphs, objects = ?A set of graphs with the same vertex set……and the same “specification”, think BHK/realisability: a proofof A is anything that behaves as prescribed by A

▶ Typically we will get A ⊸ B = {f | ∀a ∈ A, f :: a ∈ B}→ types specified by collections of tests

Tests are also given by graphs, acting as counter-proofsProofs and counter-proofs related by symmetric orthogonality ⊥

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 11 / 22

Page 26: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Orthogonality and types (1)

In the interaction graphs model, morphisms = graphs, objects = ?A set of graphs with the same vertex set……and the same “specification”, think BHK/realisability: a proofof A is anything that behaves as prescribed by A

▶ Typically we will get A ⊸ B = {f | ∀a ∈ A, f :: a ∈ B}→ types specified by collections of testsTests are also given by graphs, acting as counter-proofsProofs and counter-proofs related by symmetric orthogonality ⊥

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 11 / 22

Page 27: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Orthogonality and types (2)

Morphisms = graphs, objects = conducts

DefinitionA conduct is the orthogonal T⊥ = {G | ∀H ∈ T,G ⊥ H} of some set ofgraphs T (playing the role of tests) over a common vertex set.

Equivalently: A is a conduct iff A⊥⊥ = AThus A⊥ can be used as tests for A, and vice versa

What is ⊥? Parameter of the model!In general one can define orthogonality as any reasonablepredicate on the set of alternating cycles between G and HThis talk: simple choice avoiding technical complications

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 12 / 22

Page 28: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Orthogonality and types (2)

Morphisms = graphs, objects = conducts

DefinitionA conduct is the orthogonal T⊥ = {G | ∀H ∈ T,G ⊥ H} of some set ofgraphs T (playing the role of tests) over a common vertex set.

Equivalently: A is a conduct iff A⊥⊥ = AThus A⊥ can be used as tests for A, and vice versa

What is ⊥? Parameter of the model!In general one can define orthogonality as any reasonablepredicate on the set of alternating cycles between G and HThis talk: simple choice avoiding technical complications

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 12 / 22

Page 29: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Orthogonality as acyclicity

DefinitionG ⊥ H ⇔ ∄ alternating cycle between G and H.

Theorem (Adjunction)If V(G) ∩ V(H) = ∅, then F ⊥ (G ⊔ H) ⇔ (F :: G) ⊥ H.

The adjunction is the key to building a model of MLL: linearnegation is orthogonal, A ⊗ B = {a ⊔ b | a ∈ A, b ∈ B}⊥⊥

▶ For other choices of ⊥, need tweaking for adjunction to holdWe do get A ⊸ B = (A ⊗ B⊥)⊥ = {f | ∀a ∈ A, f :: a ∈ B}

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 13 / 22

Page 30: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Tests for coherent interaction graphs

Original IGs: to generate a type, many tests may be neededCoherent IGs: single test needed, by taking a big sum!

Proposition

F ⊥ G ∧ F ⊥ H ⇔ F ⊥ (G⌣+ H)

But this results in a very big test, not sure what we won…▶ Recall efficiency concern w.r.t. formal sums

More interestingly, small tests often suffice

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 14 / 22

Page 31: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Tests for coherent interaction graphs

Original IGs: to generate a type, many tests may be neededCoherent IGs: single test needed, by taking a big sum!

Proposition

F ⊥ G ∧ F ⊥ H ⇔ F ⊥ (G⌣+ H)

But this results in a very big test, not sure what we won…▶ Recall efficiency concern w.r.t. formal sums

More interestingly, small tests often suffice

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 14 / 22

Page 32: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Operations on single tests

Proposition{G}⊥ ` {H}⊥ = {G ⊔ H}⊥.

PropositionAnalogously, from G and H one can define G ` H such that

{G}⊥ ⊗ {H}⊥ = {G ` H}⊥

|E(G ` H)| = |E(G)|+ |E(H)|+ |V(G)| · |V(H)|

All conducts generated from {∗} by ⊗ and ` admit single tests s.t.|E| ≤ |V|(|V| − 1)/2So by interpreting atoms as {∗} we can always get small tests…

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 15 / 22

Page 33: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Tests are cographsFormula F → conduct (w/ atoms sent to {∗}) → test T(F)

▶ T(F) generated from {∗} by ` and ⊔LCAF(A,B): least common ancestor of atoms A and B in formula F

PropositionThe underlying graph of T(F) is the cograph of F:

V(T(F)) = {atoms of F}E(T(F)) = {(A,B) | LCAF(A,B) = ⊗}

A

B C

D

A B C D

` `

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 16 / 22

Page 34: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Tests are cographs with chordless coherencePropositionFor all e ̸= f ∈ E(T(F)), e ⌣ f ⇔ ∃g ∈ E(T(F)) incident to both e and f.

PropositionLet G and H be coherent graphs s.t. ¨G and ¨H satisfy the above. Thenalternating paths / cycles between G and H are coherent iff they are chordless.

Chordless cycle All cycles have chords

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 17 / 22

Page 35: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Characterizing denotations of proofs

Consider a proof π of AJπK ∈ JAK = {T(A)}⊥, equivalently JπK ⊥ T(A)

→ necessary condition for a graph to come from a proof of AConverse?

TheoremM matching and M ⊥ T(A)⇒ M comes from a MLL+Mix proof of A.

Corollary (Full completeness)All matchings in JAK come from proofs of A in MLL+Mix.

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 18 / 22

Page 36: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Characterizing denotations of proofs

Consider a proof π of AJπK ∈ JAK = {T(A)}⊥, equivalently JπK ⊥ T(A)

→ necessary condition for a graph to come from a proof of AConverse?

TheoremM matching and M ⊥ T(A) ⇒ M comes from a MLL+Mix proof of A.

Corollary (Full completeness)All matchings in JAK come from proofs of A in MLL+Mix.

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 18 / 22

Page 37: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Characterizing denotations of proofs

Consider a proof π of AJπK ∈ JAK = {T(A)}⊥, equivalently JπK ⊥ T(A)

→ necessary condition for a graph to come from a proof of AConverse?

Theorem (Reformulation of Retoré 2003 / Ehrhard 2014)M matching and M ⊥ T(A) ⇒ M comes from a MLL+Mix proof of A.

Corollary (Full completeness)All matchings in JAK come from proofs of A in MLL+Mix.

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 18 / 22

Page 38: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cographic proof nets

Proof nets = axiom matching + type informationTraditionally, type tree; but cographs can encode the same thing

A A⊥ B B⊥

` `

⊗ A

A⊥ B

B⊥

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 19 / 22

Page 39: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Cographic correctness criterion

Cographic proof structure: (M,G) with V(M) = V(G)(M matching, G cograph)Cographic proof net: is the translation of some sequent proof

Theorem (Retoré 2003 / Ehrhard 2014)A cographic proof structure (M,G) is a MLL+Mix proof net if and only ifthere is no chordless alternating cycle between M and G.

Which we wrote previously as M ⊥ G: orthogonality reflects thiscorrectness criterionUsing coherent interaction graphs, we recovered “only if”We used “if” – the sequentialization theorem – to deduce our fullcompleteness result

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 20 / 22

Page 40: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Geometry of Interaction and correctness criteria

Traditional correctness criteria for proof nets:▶ Generate set of switchings from type tree▶ Test each switching against the axiom matching

Founding observation of GoI: switchings can be seen ascounter-proofs (switchings for A ≃ (kind of) proofs of A⊥)

▶ Girard’s “Multiplicatives” paper→ tests for a type = switchings

▶ Exponentially many switchings▶ Forgetting they all come from the same concise object

Coherent IGs: single test ≃ superposition of switchings▶ We recover a notion of proof net from this model

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 21 / 22

Page 41: Coherent interaction graphs - nguyentito.eunguyentito.eu/tlla18-cohgraphs-slides.pdf · Coherent interaction graphs A nondeterministic geometry of interaction for MLL Nguyễn Lê

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

Conclusion

Interaction graphs: a graph-theoretic geometry of interactionmodel (also a primitive game semantics)Coherent IGs are sparse non-deterministic programs

▶ Representation of proofs with formal sums of sub-proofs:linear in the size of the proof

▶ Tests quadratic in the size of the formulaFuture work: additives? MELL? DiLL?

▶ Connections with Pagani’s visible acyclicity?

Nguyễn L. T. D. & T. Seiller Coherent interaction graphs Linearity/TLLA 2018 22 / 22