A first-order logic for string diagrams Aleks Kissinger David Quick - - PowerPoint PPT Presentation

a first order logic for string diagrams
SMART_READER_LITE
LIVE PREVIEW

A first-order logic for string diagrams Aleks Kissinger David Quick - - PowerPoint PPT Presentation

Introduction !-Logic Interpretation Example Summary A first-order logic for string diagrams Aleks Kissinger David Quick Oxford Quantum Group CALCO June 2015 Q UANTUM G ROUP Introduction !-Logic Interpretation Example Summary


slide-1
SLIDE 1

Introduction !-Logic Interpretation Example Summary

A first-order logic for string diagrams

Aleks Kissinger David Quick

Oxford Quantum Group

CALCO June 2015 QUANTUM GROUP

slide-2
SLIDE 2

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

slide-3
SLIDE 3

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

slide-4
SLIDE 4

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

slide-5
SLIDE 5

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

= =

,

slide-6
SLIDE 6

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

= =

,

=

,

slide-7
SLIDE 7

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

= =

,

=

,

=

slide-8
SLIDE 8

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

= =

,

=

,

=

Reason using substitution:

slide-9
SLIDE 9

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

= =

,

=

,

=

Reason using substitution:

slide-10
SLIDE 10

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

= =

,

=

,

=

Reason using substitution:

=

slide-11
SLIDE 11

Introduction !-Logic Interpretation Example Summary

Diagrammatic Reasoning

Given Σ =

  • ,

,

  • ,

Diagram(Σ) :=

  • ,

, , . . .

  • =

,

= =

,

=

,

=

Reason using substitution:

= =

slide-12
SLIDE 12

Introduction !-Logic Interpretation Example Summary

Families of Diagrams

Extend theory to arbitrary arity node

. . . . . . =

slide-13
SLIDE 13

Introduction !-Logic Interpretation Example Summary

Families of Diagrams

Extend theory to arbitrary arity node

. . . . . . =

and hope

. . . = . . .

slide-14
SLIDE 14

Introduction !-Logic Interpretation Example Summary

!-Boxes

. . . replaces

slide-15
SLIDE 15

Introduction !-Logic Interpretation Example Summary

!-Boxes

. . . replaces

and represents the concrete diagrams obtained from two !-box operations:

slide-16
SLIDE 16

Introduction !-Logic Interpretation Example Summary

!-Boxes

. . . replaces

and represents the concrete diagrams obtained from two !-box operations:

Kill

slide-17
SLIDE 17

Introduction !-Logic Interpretation Example Summary

!-Boxes

. . . replaces

and represents the concrete diagrams obtained from two !-box operations:

Kill Exp

slide-18
SLIDE 18

Introduction !-Logic Interpretation Example Summary

!-Boxes

. . . replaces

and represents the concrete diagrams obtained from two !-box operations:

Kill Exp Kill

slide-19
SLIDE 19

Introduction !-Logic Interpretation Example Summary

!-Boxes

. . . replaces

and represents the concrete diagrams obtained from two !-box operations:

Kill Exp Kill Exp

slide-20
SLIDE 20

Introduction !-Logic Interpretation Example Summary

!-Boxes

. . . replaces

and represents the concrete diagrams obtained from two !-box operations:

Kill Exp Kill Exp Kill

slide-21
SLIDE 21

Introduction !-Logic Interpretation Example Summary

!-Box Equations

A A

=

replaces

. . . = . . .

slide-22
SLIDE 22

Introduction !-Logic Interpretation Example Summary

!-Box Equations

A A

=

replaces

. . . = . . .

and represents

  • A

A

=

  • =
slide-23
SLIDE 23

Introduction !-Logic Interpretation Example Summary

!-Box Equations

A A

=

replaces

. . . = . . .

and represents

  • A

A

=

  • =

, =

slide-24
SLIDE 24

Introduction !-Logic Interpretation Example Summary

!-Box Equations

A A

=

replaces

. . . = . . .

and represents

  • A

A

=

  • =

, , =

  • =
slide-25
SLIDE 25

Introduction !-Logic Interpretation Example Summary

!-Box Equations

A A

=

replaces

. . . = . . .

and represents

  • A

A

=

  • =

, , , =

  • =

=

slide-26
SLIDE 26

Introduction !-Logic Interpretation Example Summary

!-Box Equations

A A

=

replaces

. . . = . . .

and represents

  • A

A

=

  • =

, , , . . . =

  • =

=

slide-27
SLIDE 27

Introduction !-Logic Interpretation Example Summary

Induction Attempt

=

A A

slide-28
SLIDE 28

Introduction !-Logic Interpretation Example Summary

Induction Attempt

=

A A

= (Induct)

slide-29
SLIDE 29

Introduction !-Logic Interpretation Example Summary

Induction Attempt

=

A A

=

A A

= → =

A A

(Induct)

slide-30
SLIDE 30

Introduction !-Logic Interpretation Example Summary

Induction Attempt

A A

= → =

A A

slide-31
SLIDE 31

Introduction !-Logic Interpretation Example Summary

Induction Attempt

A A

= → =

A A

represents:

, , , . . . =

  • =

=

slide-32
SLIDE 32

Introduction !-Logic Interpretation Example Summary

Induction Attempt

A A

= → =

A A

represents:

, , , . . . =

  • =

=

slide-33
SLIDE 33

Introduction !-Logic Interpretation Example Summary

Induction Attempt

A A

= → =

A A

represents:

, , , . . . =

  • =

=

, , . . .

  • =

= , =

slide-34
SLIDE 34

Introduction !-Logic Interpretation Example Summary

Induction Problem

→ P(0) ∀n P(n) ∀n P(n + 1) ∀n P(n) (Induct)

slide-35
SLIDE 35

Introduction !-Logic Interpretation Example Summary

Induction Problem

→ P(0) ∀n P(n) ∀n P(n + 1) ∀n P(n) (Induct)

slide-36
SLIDE 36

Introduction !-Logic Interpretation Example Summary

Induction Problem

→ P(0) ∀n P(n) ∀n P(n + 1) ∀n P(n) (Induct) → (Induct) P(0) P(n) P(n + 1) ∀n P(n) ∀n ( )

slide-37
SLIDE 37

Introduction !-Logic Interpretation Example Summary

Corrected Induction

=

A A

=

A A

= → =

A A

(Induct)

slide-38
SLIDE 38

Introduction !-Logic Interpretation Example Summary

Corrected Induction

=

A A

=

A A

= → =

A A

(Induct)

slide-39
SLIDE 39

Introduction !-Logic Interpretation Example Summary

Corrected Induction

=

A A

=

A A

= → =

A A

(Induct) =

A A

=

A A

= → =

A A

(Induct)

  • ∀A.

∀A.

slide-40
SLIDE 40

Introduction !-Logic Interpretation Example Summary

Nesting

!-Boxes can be nested

A B

slide-41
SLIDE 41

Introduction !-Logic Interpretation Example Summary

Nesting

!-Boxes can be nested

ExpA

B′ A B A B

slide-42
SLIDE 42

Introduction !-Logic Interpretation Example Summary

Nesting

!-Boxes can be nested

ExpA ExpB

B′ A B A B A B

slide-43
SLIDE 43

Introduction !-Logic Interpretation Example Summary

Nesting

!-Boxes can be nested

ExpA ExpB

B′ A B A B A B

slide-44
SLIDE 44

Introduction !-Logic Interpretation Example Summary

Components

B A

=

slide-45
SLIDE 45

Introduction !-Logic Interpretation Example Summary

Components

B A

= A B

slide-46
SLIDE 46

Introduction !-Logic Interpretation Example Summary

Components

B A

=

  • ∀A.
  • A

B

slide-47
SLIDE 47

Introduction !-Logic Interpretation Example Summary

Components

B B′ A

= A B B′

slide-48
SLIDE 48

Introduction !-Logic Interpretation Example Summary

Components

B B′ A

=

  • ∀A.
  • A

B B′

slide-49
SLIDE 49

Introduction !-Logic Interpretation Example Summary

Components

B B′ A

=

  • ∀B′.
  • A

B B′

slide-50
SLIDE 50

Introduction !-Logic Interpretation Example Summary

Components

B B′ A

=

  • ∀B′.
  • ∀A.

A B B′

slide-51
SLIDE 51

Introduction !-Logic Interpretation Example Summary

Components

B B′ B A A

= = A B B A B′

slide-52
SLIDE 52

Introduction !-Logic Interpretation Example Summary

Components

− →

B B′ B A A

= = A B B′

slide-53
SLIDE 53

Introduction !-Logic Interpretation Example Summary

Components

− →

B B′ B A A

∀A.

  • =

= A B B′

slide-54
SLIDE 54

Introduction !-Logic Interpretation Example Summary

Components

− →

B B′ B A A

∀B′.

  • =

= A B B′

slide-55
SLIDE 55

Introduction !-Logic Interpretation Example Summary

Components

− →

B B′ B A A

∀B′.

  • =

= ∀A. A B B′

slide-56
SLIDE 56

Introduction !-Logic Interpretation Example Summary

!-Formulae

Definition

The set of !-formulas, FΣ, for a signature Σ are any of:

slide-57
SLIDE 57

Introduction !-Logic Interpretation Example Summary

!-Formulae

Definition

The set of !-formulas, FΣ, for a signature Σ are any of:

  • G = H

G, H compatible !-diagrams, same inputs/outputs

slide-58
SLIDE 58

Introduction !-Logic Interpretation Example Summary

!-Formulae

Definition

The set of !-formulas, FΣ, for a signature Σ are any of:

  • G = H

G, H compatible !-diagrams, same inputs/outputs

  • X ∧ Y

compatible X, Y ∈ FΣ

slide-59
SLIDE 59

Introduction !-Logic Interpretation Example Summary

!-Formulae

Definition

The set of !-formulas, FΣ, for a signature Σ are any of:

  • G = H

G, H compatible !-diagrams, same inputs/outputs

  • X ∧ Y

compatible X, Y ∈ FΣ

  • X → Y

compatible X, Y ∈ FΣ

slide-60
SLIDE 60

Introduction !-Logic Interpretation Example Summary

!-Formulae

Definition

The set of !-formulas, FΣ, for a signature Σ are any of:

  • G = H

G, H compatible !-diagrams, same inputs/outputs

  • X ∧ Y

compatible X, Y ∈ FΣ

  • X → Y

compatible X, Y ∈ FΣ

  • ∀A. X

X ∈ FΣ, A top-level in X

slide-61
SLIDE 61

Introduction !-Logic Interpretation Example Summary

Natural Deduction System

Build logic from formulae using sequents: X1, X2, . . . , Xn ⊢ Y .

slide-62
SLIDE 62

Introduction !-Logic Interpretation Example Summary

Natural Deduction System

Build logic from formulae using sequents: X1, X2, . . . , Xn ⊢ Y . Based on positive intuitionistic logic. e.g.

slide-63
SLIDE 63

Introduction !-Logic Interpretation Example Summary

Natural Deduction System

Build logic from formulae using sequents: X1, X2, . . . , Xn ⊢ Y . Based on positive intuitionistic logic. e.g.

(Ident)

X ⊢ X

slide-64
SLIDE 64

Introduction !-Logic Interpretation Example Summary

Natural Deduction System

Build logic from formulae using sequents: X1, X2, . . . , Xn ⊢ Y . Based on positive intuitionistic logic. e.g.

(Ident)

X ⊢ X Γ ⊢ X ∆ ⊢ Y

(∧I)

Γ, ∆ ⊢ X ∧ Y

slide-65
SLIDE 65

Introduction !-Logic Interpretation Example Summary

Natural Deduction System

Build logic from formulae using sequents: X1, X2, . . . , Xn ⊢ Y . Based on positive intuitionistic logic. e.g.

(Ident)

X ⊢ X Γ ⊢ X ∆ ⊢ Y

(∧I)

Γ, ∆ ⊢ X ∧ Y Γ, X ⊢ Y

(→ I)

Γ ⊢ X → Y

slide-66
SLIDE 66

Introduction !-Logic Interpretation Example Summary

Natural Deduction System

Build logic from formulae using sequents: X1, X2, . . . , Xn ⊢ Y . Based on positive intuitionistic logic. e.g.

(Ident)

X ⊢ X Γ ⊢ X ∆ ⊢ Y

(∧I)

Γ, ∆ ⊢ X ∧ Y Γ, X ⊢ Y

(→ I)

Γ ⊢ X → Y Γ ⊢ X ∆, X ⊢ Y

(Cut)

Γ, ∆ ⊢ Y

slide-67
SLIDE 67

Introduction !-Logic Interpretation Example Summary

!-Box Rules

  • Add quantifier intro/elim:

Γ ⊢ ∀A. X

(∀E)

Γ ⊢ X ′ Γ ⊢ X ′

(∀I)

Γ ⊢ ∀A. X Where X ′ is X with the component containing A renamed (to names not present in Γ):

slide-68
SLIDE 68

Introduction !-Logic Interpretation Example Summary

!-Box Rules

  • Add quantifier intro/elim:

Γ ⊢ ∀A. X

(∀E)

Γ ⊢ X ′ Γ ⊢ X ′

(∀I)

Γ ⊢ ∀A. X Where X ′ is X with the component containing A renamed (to names not present in Γ):

  • and !-box operation rules:

Γ ⊢ ∀A. X

(KillB)

Γ ⊢ KillB(X) Γ ⊢ ∀A. X

(ExpB)

Γ ⊢ ExpB(X) where B is equal to or nested in A.

slide-69
SLIDE 69

Introduction !-Logic Interpretation Example Summary

Induction in !L

Γ ⊢ KillA(X) ∆, X ⊢ ∀B1. . . . ∀Bn. ExpA(X)

(Induct)

Γ, ∆ ⊢ X where B1 to Bn are the fresh names of children of A

slide-70
SLIDE 70

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

slide-71
SLIDE 71

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

P(nm)

slide-72
SLIDE 72

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2

P(nm)

slide-73
SLIDE 73

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2

P(nm) P(4)

slide-74
SLIDE 74

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3

P(nm) P(4) P(15)

slide-75
SLIDE 75

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3 n → 2 m → 4

P(nm) P(4) P(15) P(8)

slide-76
SLIDE 76

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3 n → 2 m → 4

P(nm) P(4) P(15) P(8)

P(nm) =

slide-77
SLIDE 77

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3 n → 2 m → 4

P(nm) P(4) P(15) P(8)

P(nm) ={ n → 1

m → 1 , n → 1 m → 2 , n → 2 m → 1 , n → 1 m → 3 , n → 2 m → 2 , . . .}

slide-78
SLIDE 78

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3 n → 2 m → 4

P(nm) P(4) P(15) P(8)

P(nm) ={ n → 1

m → 1 , n → 1 m → 2 , n → 2 m → 1 , n → 1 m → 3 , n → 2 m → 2 , . . .}

∀m P(nm) =

slide-79
SLIDE 79

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3 n → 2 m → 4

P(nm) P(4) P(15) P(8)

P(nm) ={ n → 1

m → 1 , n → 1 m → 2 , n → 2 m → 1 , n → 1 m → 3 , n → 2 m → 2 , . . .}

∀m P(nm) ={ n → 1 , n → 2 , n → 3 , . . .}

slide-80
SLIDE 80

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3 n → 2 m → 4

P(nm) P(4) P(15) P(8)

P(nm) ={ n → 1

m → 1 , n → 1 m → 2 , n → 2 m → 1 , n → 1 m → 3 , n → 2 m → 2 , . . .}

∀m P(nm) ={ n → 1 , n → 2 , n → 3 , . . .} ∀n (∀m P(nm)) = ∅

slide-81
SLIDE 81

Introduction !-Logic Interpretation Example Summary

Semantics for predicate logic

Let P(n) be the proposition that n is even.

n → 2 m → 2 n → 5 m → 3 n → 2 m → 4

P(nm) P(4) P(15) P(8)

P(nm) ={ n → 1

m → 1 , n → 1 m → 2 , n → 2 m → 1 , n → 1 m → 3 , n → 2 m → 2 , . . .}

∀m P(nm) ={ n → 1 , n → 2 , n → 3 , . . .} ∀n (∀m P(nm)) = ∅ =: F

slide-82
SLIDE 82

Introduction !-Logic Interpretation Example Summary

Valuation

Σ C −

slide-83
SLIDE 83

Introduction !-Logic Interpretation Example Summary

Valuation

Σ C Diagram(Σ) −

slide-84
SLIDE 84

Introduction !-Logic Interpretation Example Summary

Valuation

Σ C Diagram(Σ) − −

slide-85
SLIDE 85

Introduction !-Logic Interpretation Example Summary

Valuation

Σ C Diagram(Σ) − −

For G = H a concrete equation: G = H :=

  • T

if G = H F

  • therwise

(1)

slide-86
SLIDE 86

Introduction !-Logic Interpretation Example Summary

XOR Example

Given: Σ =

  • 0 ,

1 , ×

slide-87
SLIDE 87

Introduction !-Logic Interpretation Example Summary

XOR Example

Given: Σ =

  • 0 ,

1 , ×

  • := 0
slide-88
SLIDE 88

Introduction !-Logic Interpretation Example Summary

XOR Example

Given: Σ =

  • 0 ,

1 , ×

  • := 0
  • 1
  • := 1
slide-89
SLIDE 89

Introduction !-Logic Interpretation Example Summary

XOR Example

Given: Σ =

  • 0 ,

1 , ×

  • := 0
  • 1
  • := 1
  • ×
  • :=

(0, 0) → 0

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

slide-90
SLIDE 90

Introduction !-Logic Interpretation Example Summary

XOR Example

Given: Σ =

  • 0 ,

1 , ×

  • := 0
  • 1
  • := 1
  • ×
  • :=

(0, 0) → 0

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

So:

  • ×

1

=

1

  • = T
slide-91
SLIDE 91

Introduction !-Logic Interpretation Example Summary

XOR Example

Given: Σ =

  • 0 ,

1 , ×

  • := 0
  • 1
  • := 1
  • ×
  • :=

(0, 0) → 0

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

So:

  • ×

1

=

1

  • = T
  • ×

=

1

  • = F
slide-92
SLIDE 92

Introduction !-Logic Interpretation Example Summary

XOR Example

Given: Σ =

  • 0 ,

1 , ×

  • := 0
  • 1
  • := 1
  • ×
  • :=

(0, 0) → 0

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

So:

  • ×

1

=

1

  • = T
  • ×

=

1

  • = F

. . .

× ×

:= . . .

×

slide-93
SLIDE 93

Introduction !-Logic Interpretation Example Summary

Semantics for XOR

A 1

=

×

slide-94
SLIDE 94

Introduction !-Logic Interpretation Example Summary

Semantics for XOR

A 1

=

×

ExpA KillA

1 ×

=

slide-95
SLIDE 95

Introduction !-Logic Interpretation Example Summary

Semantics for XOR

A 1

=

×

ExpA KillA

ExpA ExpA KillA 1 ×

=

1 ×

=

1

slide-96
SLIDE 96

Introduction !-Logic Interpretation Example Summary

Semantics for XOR

A 1

=

×

ExpA KillA

ExpA ExpA KillA

ExpA ExpA ExpA ExpA KillA

1 ×

=

1 ×

=

1 ×

=

1 1 1 1

slide-97
SLIDE 97

Introduction !-Logic Interpretation Example Summary

Semantics for XOR

A 1

=

×

ExpA KillA

ExpA ExpA KillA

ExpA ExpA ExpA ExpA KillA

1 ×

=

1 ×

=

1 ×

=

1 1 1 1

  • A

1

=

×

  • =
  • KillA,

ExpA KillA ,

ExpA ExpA KillA

,

ExpA ExpA ExpA KillA

,

ExpA ExpA ExpA ExpA KillA

, . . .

slide-98
SLIDE 98

Introduction !-Logic Interpretation Example Summary

Semantics for XOR

A 1

=

×

ExpA KillA

ExpA ExpA KillA

ExpA ExpA ExpA ExpA KillA

1 ×

=

1 ×

=

1 ×

=

1 1 1 1

  • A

1

=

×

  • =
  • KillA,

ExpA KillA ,

ExpA ExpA KillA

,

ExpA ExpA ExpA KillA

,

ExpA ExpA ExpA ExpA KillA

, . . .

  • ∀A.

 

A 1

=

×

 

  • = ∅
slide-99
SLIDE 99

Introduction !-Logic Interpretation Example Summary

Semantics for XOR

A 1

=

×

ExpA KillA

ExpA ExpA KillA

ExpA ExpA ExpA ExpA KillA

1 ×

=

1 ×

=

1 ×

=

1 1 1 1

  • A

1

=

×

  • =
  • KillA,

ExpA KillA ,

ExpA ExpA KillA

,

ExpA ExpA ExpA KillA

,

ExpA ExpA ExpA ExpA KillA

, . . .

  • ∀A.

 

A 1

=

×

 

  • = ∅ = F
slide-100
SLIDE 100

Introduction !-Logic Interpretation Example Summary

Semantics for Copy

A

=

A

slide-101
SLIDE 101

Introduction !-Logic Interpretation Example Summary

Semantics for Copy

A

=

A

= KillA

slide-102
SLIDE 102

Introduction !-Logic Interpretation Example Summary

Semantics for Copy

A

=

A

= = KillA

ExpA ExpA KillA

slide-103
SLIDE 103

Introduction !-Logic Interpretation Example Summary

Semantics for Copy

A

=

A

= = = KillA

ExpA ExpA KillA

ExpA ExpA ExpA KillA

slide-104
SLIDE 104

Introduction !-Logic Interpretation Example Summary

Semantics for Copy

A

=

A

= = = KillA

ExpA ExpA KillA

ExpA ExpA ExpA KillA

  • A

A

=

  • =
  • KillA,

ExpA KillA ,

ExpA ExpA KillA

,

ExpA ExpA ExpA KillA

,

ExpA ExpA ExpA ExpA KillA

, . . .

slide-105
SLIDE 105

Introduction !-Logic Interpretation Example Summary

Semantics for Copy

A

=

A

= = = KillA

ExpA ExpA KillA

ExpA ExpA ExpA KillA

  • A

A

=

  • =
  • KillA,

ExpA KillA ,

ExpA ExpA KillA

,

ExpA ExpA ExpA KillA

,

ExpA ExpA ExpA ExpA KillA

, . . .

  • ∀A.
  • A

A

=

= {id}

slide-106
SLIDE 106

Introduction !-Logic Interpretation Example Summary

Semantics for Copy

A

=

A

= = = KillA

ExpA ExpA KillA

ExpA ExpA ExpA KillA

  • A

A

=

  • =
  • KillA,

ExpA KillA ,

ExpA ExpA KillA

,

ExpA ExpA ExpA KillA

,

ExpA ExpA ExpA ExpA KillA

, . . .

  • ∀A.
  • A

A

=

= {id} =: T

slide-107
SLIDE 107

Introduction !-Logic Interpretation Example Summary

Equations

Definition

The interpretation − of a !-logic formula is defined recursively as:

slide-108
SLIDE 108

Introduction !-Logic Interpretation Example Summary

Equations

Definition

The interpretation − of a !-logic formula is defined recursively as: G = H :=

  • i
  • i(G) = i(H)
slide-109
SLIDE 109

Introduction !-Logic Interpretation Example Summary

Equations

Definition

The interpretation − of a !-logic formula is defined recursively as: G = H :=

  • i
  • i(G) = i(H)
  • X ∧ Y :=
  • i
  • i|X ∈ X ∧ i|Y ∈ Y
slide-110
SLIDE 110

Introduction !-Logic Interpretation Example Summary

Equations

Definition

The interpretation − of a !-logic formula is defined recursively as: G = H :=

  • i
  • i(G) = i(H)
  • X ∧ Y :=
  • i
  • i|X ∈ X ∧ i|Y ∈ Y
  • X → Y :=
  • i
  • i|X ∈ X → i|Y ∈ Y
slide-111
SLIDE 111

Introduction !-Logic Interpretation Example Summary

Equations

Definition

The interpretation − of a !-logic formula is defined recursively as: G = H :=

  • i
  • i(G) = i(H)
  • X ∧ Y :=
  • i
  • i|X ∈ X ∧ i|Y ∈ Y
  • X → Y :=
  • i
  • i|X ∈ X → i|Y ∈ Y
  • ∀A. X :=
  • i
  • ∀j ∈ Inst(A) . i ◦ j ∈ X
slide-112
SLIDE 112

Introduction !-Logic Interpretation Example Summary

Sequents

We interpret sequents as truth values: X1, . . . , Xn ⊢ Y

slide-113
SLIDE 113

Introduction !-Logic Interpretation Example Summary

Sequents

We interpret sequents as truth values: X1, . . . , Xn ⊢ Y := X1 ∧ . . . ∧ Xn ⊢ Y

slide-114
SLIDE 114

Introduction !-Logic Interpretation Example Summary

Sequents

We interpret sequents as truth values: X1, . . . , Xn ⊢ Y := X1 ∧ . . . ∧ Xn ⊢ Y := ⊢ (X1 ∧ . . . ∧ Xn) → Y

slide-115
SLIDE 115

Introduction !-Logic Interpretation Example Summary

Sequents

We interpret sequents as truth values: X1, . . . , Xn ⊢ Y := X1 ∧ . . . ∧ Xn ⊢ Y := ⊢ (X1 ∧ . . . ∧ Xn) → Y := ∀ . . . .((X1 ∧ . . . ∧ Xn) → Y )

slide-116
SLIDE 116

Introduction !-Logic Interpretation Example Summary

Soundness and Completeness

Theorem (Soundness)

If Γ ⊢ X is derivable in !L, then Γ ⊢ X is true for any category C.

slide-117
SLIDE 117

Introduction !-Logic Interpretation Example Summary

Soundness and Completeness

Theorem (Soundness)

If Γ ⊢ X is derivable in !L, then Γ ⊢ X is true for any category C. Future work to seek complete !-Logic such that: If Γ ⊢ X is true for any category C then Γ ⊢ X is derivable in !L.

slide-118
SLIDE 118

Introduction !-Logic Interpretation Example Summary

N-Fold Copy

Given Σ =

  • ,

,

slide-119
SLIDE 119

Introduction !-Logic Interpretation Example Summary

N-Fold Copy

Given Σ =

  • ,

,

  • satisfying

Γ =   

= =

,

slide-120
SLIDE 120

Introduction !-Logic Interpretation Example Summary

N-Fold Copy

Given Σ =

  • ,

,

  • satisfying

Γ =   

= =

,

=

,

slide-121
SLIDE 121

Introduction !-Logic Interpretation Example Summary

N-Fold Copy

Given Σ =

  • ,

,

  • satisfying

Γ =   

= =

,

=

,

=

,

slide-122
SLIDE 122

Introduction !-Logic Interpretation Example Summary

N-Fold Copy

Given Σ =

  • ,

,

  • satisfying

Γ =   

= =

,

=

,

=

,

=

  

slide-123
SLIDE 123

Introduction !-Logic Interpretation Example Summary

N-Fold Copy

Given Σ =

  • ,

,

  • satisfying

Γ =   

= =

,

=

,

=

,

=

  

Theorem

= (Copy) Γ ⊢

slide-124
SLIDE 124

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= Γ ⊢

slide-125
SLIDE 125

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= (Ind) Γ ⊢

slide-126
SLIDE 126

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = (Ind) Γ ⊢ Γ ⊢

slide-127
SLIDE 127

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = (Ind) Γ ⊢ Γ ⊢ (Axiom)

slide-128
SLIDE 128

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = = ⊢ = (Ind) (Axiom) Γ, Γ ⊢ Γ ⊢

slide-129
SLIDE 129

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = = ⊢ = (Ind) (Axiom) (≡) (*) Γ, Γ ⊢ Γ ⊢

slide-130
SLIDE 130

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = = ⊢ = (Ind) (Axiom) (≡) (*) Γ, Γ ⊢ Γ ⊢

where we prove (∗) by:

slide-131
SLIDE 131

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = = ⊢ = (Ind) (Axiom) (≡) (*) Γ, Γ ⊢ Γ ⊢

where we prove (∗) by:

slide-132
SLIDE 132

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = = ⊢ = (Ind) (Axiom) (≡) (*) Γ, Γ ⊢ Γ ⊢

where we prove (∗) by:

=

slide-133
SLIDE 133

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = = ⊢ = (Ind) (Axiom) (≡) (*) Γ, Γ ⊢ Γ ⊢

where we prove (∗) by:

= =

slide-134
SLIDE 134

Introduction !-Logic Interpretation Example Summary

Proof

Proof.

= = = ⊢ = (Ind) (Axiom) (≡) (*) Γ, Γ ⊢ Γ ⊢

where we prove (∗) by:

= =

i.h.

=

slide-135
SLIDE 135

Introduction !-Logic Interpretation Example Summary

Summary

slide-136
SLIDE 136

Introduction !-Logic Interpretation Example Summary

Summary

  • !-Formulae:

B B

= → =

B B

∀B.

slide-137
SLIDE 137

Introduction !-Logic Interpretation Example Summary

Summary

  • !-Formulae:

B B

= → =

B B

∀B.

  • !-Logic:

Γ ⊢ ∀A. X

(KillB)

Γ ⊢ KillB(X) Γ ⊢ ∀A. X

(ExpB)

Γ ⊢ ExpB(X)

slide-138
SLIDE 138

Introduction !-Logic Interpretation Example Summary

Summary

  • !-Formulae:

B B

= → =

B B

∀B.

  • !-Logic:

Γ ⊢ ∀A. X

(KillB)

Γ ⊢ KillB(X) Γ ⊢ ∀A. X

(ExpB)

Γ ⊢ ExpB(X)

  • Induction:

Γ ⊢ KillA(X) ∆, X ⊢ ∀B1. . . . ∀Bn. ExpA(X)

(Induct)

Γ, ∆ ⊢ X

slide-139
SLIDE 139

Introduction !-Logic Interpretation Example Summary

Summary

  • !-Formulae:

B B

= → =

B B

∀B.

  • !-Logic:

Γ ⊢ ∀A. X

(KillB)

Γ ⊢ KillB(X) Γ ⊢ ∀A. X

(ExpB)

Γ ⊢ ExpB(X)

  • Induction:

Γ ⊢ KillA(X) ∆, X ⊢ ∀B1. . . . ∀Bn. ExpA(X)

(Induct)

Γ, ∆ ⊢ X

  • Soundness:

If Γ ⊢ X in !L, then Γ ⊢ X is true.