Relational Proof Interpretations Paulo Oliva Queen Mary University - - PowerPoint PPT Presentation

relational proof interpretations
SMART_READER_LITE
LIVE PREVIEW

Relational Proof Interpretations Paulo Oliva Queen Mary University - - PowerPoint PPT Presentation

Relational Proof Interpretations Paulo Oliva Queen Mary University of London Logic Colloquium Udine, 23 July 2018 Thanks to collaborators: Martn Escard, Thomas Powell, Gilda Ferreira, Jaime Gaspar, Dan Hernest proof interpretations


slide-1
SLIDE 1

Relational Proof Interpretations

Paulo Oliva Queen Mary University of London Logic Colloquium Udine, 23 July 2018

Thanks to collaborators: Martín Escardó, Thomas Powell, Gilda Ferreira, Jaime Gaspar, Dan Hernest

slide-2
SLIDE 2

classical proof computer programs

proofs-as-programs

constructive proof

Brouwer, Bishop, Bridges,… proof interpretations (Dialectica, realizability,…) (extended) proofs-as-programs Griffin, Krivine, Herbelin, …

slide-3
SLIDE 3

Plan

  • Part 1: Sets vs Relations 


(intuitionistic logic)

  • Part 2: Unification


(linear logic)

  • Part 3: Games and Applications


(classical logic)

relational approach is more general interpretations (only) differ in treatment of !A higher-order games explain higher-order programs

slide-4
SLIDE 4

Part 1: Sets vs Relations

(realizability vs dialectica)

slide-5
SLIDE 5

n r (s =t) ≡ (n= 0) ∧ (s =t) n r A∧B ≡ n0 r A ∧ n1 r B n r A ∨B ≡ (n0= 0 ∧ n1 r A) ∨ (n0 ≠ 1 ∧ n1 r B) n r A → B ≡ ∀a(a r A → {n}(a)↓ ∧ {n}(a) r B) n r ∃z A(z) ≡ n1 r A(n0) n r ∀z A(z) ≡ ∀x({n}(x)↓ ∧ {n}(x) r A(x))

If HA ⊢ A then HA ⊢ n r A, for some numeral n

Theorem (Kleene-Nelson).

slide-6
SLIDE 6

A ! { n : n r A }

Realizability

{

sentence

{

set of realizers of A

slide-7
SLIDE 7

|A∧B|y ,w

x ,v

≡ |A|y

x ∧|B|w v

|A∨B|y ,w

x ,v ,b

≡ (b=0 ∧|A|y

x )∨(b ≠1 ∧|B|w v )

|A→ B|x ,w

f ,g

≡ |A|g(x ,w)

x

→ |B|w

f (x)

|∀z A(z)|y ,s

f

≡ |A(s)|y

f (s)

|∃z A(z)|y

x ,s

≡ |A(s)|y

x

Dialectica, vol. 12, 1958

If HA ⊢ A then T ⊢ ∀y|A|y

t for some term t ∈T

Theorem (Gödel).

slide-8
SLIDE 8

Dialectica Interpretation

A !

{ (x, y) : |A|y

x }

{

sentence

{

relation between arguments and counter-arguments

slide-9
SLIDE 9

A ≡ ∃n∀i ≥ n(α(i)≤ n)→ ∃k∀j(α( j)≤ k)

|A|n,j

f ,g ≡ (g(n, j)≥ n→α(g(n, j))≤ n)→α( j)≤ f (n)

Example

α is eventually bounded

α is bounded

f (n) = max{n,max {α(i)|i < n}} g(n, j) = j

slide-10
SLIDE 10

Realizability can also be presented in a ‘relational’ style so… which one is better, sets or relations?

relational approach is more general

slide-11
SLIDE 11

n r A iff ∀a|A|a

n

n r A∧B ≡ n0 r A ∧ n1 r B n r A ∨B ≡ (n0= 0 ∧ n1 r A) ∨ (n0 ≠1 ∧ n1 r B) n r A → B ≡ ∀a(a r A → {n}(a)↓ ∧ {n}(a) r B) n r ∃z A(z) ≡ n1 r A(n0) n r ∀z A(z) ≡ ∀x({n}(x)↓ ∧ {n}(x) r A(x)) Kleene realizability

|A∧B|a

n

≡ |A|a0

n0 ∧|B|a1 n1

|A∨B|a

n

≡ (n0= 0 ∧ |A|a

n1) ∨ (n0 ≠1 ∧ |B|a n1)

|A→ B|a

n

≡ ∀b|A|b

a0→({n}(a0)↓ ∧ |B|a1 {n}(a0))

|∃z A(z)|a

n

≡ |A(n0)|a

n1

|∀z A(z)|a

n

≡ {n}(a0)↓ ∧|A(a0)|a1

{n}(a0)

Relational presentation

slide-12
SLIDE 12

x mr A iff ∀y|A|y

x

Kreisel modified realizability

x,v mr A∧B ≡ x mr A ∧ v mr B x,v,b mr A ∨B ≡ (b=0∧ x mr A) ∨ (b ≠ 0∧v mr B) f mr A → B ≡ ∀x(x mr A → f (x) mr B) x,s mr ∃z A(z) ≡ x mr A(s) f mr ∀z A(z) ≡ ∀x( f (x) mr A(x))

|A∧B|y ,w

x ,v

≡ |A|y

x ∧|B|w v

|A∨B|y ,w

x ,v ,b

≡ (b=0 ∧|A|y

x ) ∨ (b ≠1 ∧|B|w v )

|A→ B|x ,w

f

≡ ∀y|A|y

x → |B|w f (x)

|∀z A(z)|y ,s

f

≡ |A(s)|y

f (s)

|∃z A(z)|y

x ,s

≡ |A(s)|y

x

Relational presentation

slide-13
SLIDE 13

|A∧B|y ,w

x ,v

≡ |A|y

x ∧|B|w v

|A∨B|y ,w

x ,v ,b

≡ (b=0 ∧|A|y

x ) ∨ (b ≠1 ∧|B|w v )

|A→ B|x ,w

f

≡ ∀y|A|y

x → |B|w f (x)

|∀z A(z)|y ,s

f

≡ |A(s)|y

f (s)

|∃z A(z)|y

x ,s

≡ |A(s)|y

x

|A∧B|y ,w

x ,v

≡ |A|y

x ∧|B|w v

|A∨B|y ,w

x ,v ,b

≡ (b=0 ∧|A|y

x ) ∨ (b ≠1 ∧|B|w v )

|A→ B|x ,w

f ,g

≡ |A|g(x ,w)

x

→ |B|w

f (x)

|∀z A(z)|y ,s

f

≡ |A(s)|y

f (s)

|∃z A(z)|y

x ,s

≡ |A(s)|y

x

Gödel Dialectica interpretation

x mr A iff ∀y|A|y

x

  • P. Oliva, Unifying functional interpretations, NDJFL, 47 (2), 2006

Kreisel modified realizability

AD(x, y) iff |A|y

x

slide-14
SLIDE 14

Part 2: Linear Logic

(it’s all about the bang!)

slide-15
SLIDE 15

Linear Logic

A refinement of classical and intuitionistic logic

A→ B A∧B !A!B A& B A⊗B

slide-16
SLIDE 16

(A∧B)* ≡ A* & B* (A∨B)* ≡ !A* ⊕!B* (A→ B)* ≡ !A* !B* (∀z A)* ≡ ∀z A* (∃z A)* ≡ ∃z!A* (A∧B)° ≡ A° ⊗B° (A∨B)° ≡ A° ⊕B° (A→ B)° ≡ !(A° !B°) (∀z A)° ≡ !∀z A° (∃z A)° ≡ ∃z A°

IL⊢ A LL⊢ A° LL⊢ A*

call-by-value translation call-by-name translation

slide-17
SLIDE 17

IL⊢ A LL⊢ A*

(⋅)*

IL

ω ⊢t mr A

realizability

LL

ω ⊢(t mr A)*

(⋅)*

?

slide-18
SLIDE 18

|A⊗B|y ,w

x ,v

≡ |A|y

x ⊗|B|w v

|A⊕B|y ,w

x ,v ,b

≡ (b=0 &|A|y

x ) ⊕ (b ≠1 &|B|w v )

|A& B|y ,w,b

x ,v

≡ (b=0 &|A|y

x ) ⊕ (b ≠1 &|B|w v )

|A!B|x ,w

f ,g

≡ |A|g(x ,w)

x

!|B|w

f (x)

|∀z A(z)|y ,s

f

≡ |A(s)|y

f (s)

|∃z A(z)|y

x ,s

≡ |A(s)|y

x

Interpretation of Linear Logic

  • G. Ferreira and P. Oliva, Functional interpretations of intuitionistic linear logic,

Logical Methods in Computer Science, 7(1), 2011 based on earlier work of de Paiva and Shirahata

  • P. Oliva, Modified realizability interpretation of classical linear logic, LICS 2007
slide-19
SLIDE 19

A x mr A A*

(x mr A)* ⇔ ∀y|A* |y

x

(⋅)* (⋅)*

|!A|x ≡ !∀y|A|y

x

modified realizability

interpretations (only) differ in treatment of !A

slide-20
SLIDE 20

!A Trans. Interpretation

|!A|x ≡ !∀y|A|y

x

(⋅)* or (⋅)°

Kreisel modified realizability

|!A|x ≡ !∀y|A|y

x ⊗ !A

modified realizability with truth

(⋅)° |!A|x ≡ !∀y|A|y

x ⊗ !A

(⋅)*

q-variant of modified realizability

|!A|a

x ≡ !∀y ∈a|A|y x

(⋅)* or (⋅)°

Diller-Nahm interpretation

|!A|a

x ≡ !|A|a x

Gödel’s Dialectica interpretation

(⋅)* or (⋅)° |!A|a

x ≡ !∀y ∈a|A|y x ⊗ !A

Diller-Nahm with truth

(⋅)°

  • J. Gaspar and P. Oliva, Proof interpretations with truth, MLQ, 56(6):591-610, 2010
slide-21
SLIDE 21

Part 3: Applications

(classical logic and games)

slide-22
SLIDE 22

How about classical logic, arithmetic and analysis?

A∨¬A ¬¬A→A

∃x(D(x)→ ∀yD( y)) (A→ B)∨(B → A) ¬∀nD(n)→ ∃n¬D(n) ((A→ B)→ B)→ A ∀n< k∃i A(n,i)→ ∃s∀n<k A(n,sn)

law of excluded middle double negation elimination Peirce’s law Drinker’s paradox finite choice Markov principle pre-linearity

slide-23
SLIDE 23
  • G. Ferreira and P. Oliva, On the relation between various negative

translations, Logic, Construction, Computation, vol 3, 227-258, 2012

(P)K ≡ P (A∧B)K ≡ AK ∧BK (A∨B)K ≡ AK ∨BK (A→ B)K ≡ AK → BK (∀z A)K ≡ ∀z¬¬AK (∃z A)K ≡ ∃z AK

Kuroda translation

(P)G ≡ ¬¬P (A∧B)G ≡ AG ∧BG (A∨B)G ≡ ¬¬(AG ∨BG) (A→ B)G ≡ AG → BG (∀z A)G ≡ ∀z AG (∃z A)G ≡ ¬¬∃z AG

Gödel-Gentzen translation

CL⊢ A

IL⊢ AG IL⊢ ¬¬AK

slide-24
SLIDE 24

classical proof computer programs

negative translation + proof interpretation

CL⊢ A IL⊢ AG T ⊢|AG |y

t

∃t ∈T

slide-25
SLIDE 25

classical proof computer programs

negative translation + proof interpretation

∃x X∀y RA(x, y)

?

¬¬∃x X∀y RA(x, y)

∀pX→RA(φ(p),p(φ(p)))

program φ(X→R)→X

slide-26
SLIDE 26

∃x X∀y RA(x, y)

∀pX→RA(φ(p),p(φ(p)))

program φ(X→R)→X

  • utcome

move game continuation player

  • ptimal

move

  • ptimal
  • utcome
  • M. Escardó and P. Oliva, Sequential games and optimal strategies,
  • Proc. of the Royal Society A, 467:1519-1545, 2011

x is a good move given outcome y

higher-order games explain higher-order programs

slide-27
SLIDE 27

Logical form Specifies

∃x X∀y RA(x, y)

player finite game

finite choice

(bounded collection)

unbounded game

countable choice

∀n∃x X∀y RAn(x, y)

sequence of players

  • M. Escardó and P. Oliva, Selection functions, bar recursion, and

backward induction, MSCS, 20 (2), pp .127-168, 2010

  • P. Oliva and T. Powell, A game-theoretic computational interpretation

  • f proofs in classical analysis, Gentzen's Centenary, 501-531, 2015
slide-28
SLIDE 28

Summary

  • Realizability also has a “relational” presentation
  • Relational presentation allows for interpretation of

LL and unification (including truth variants)

  • Classical proofs dealt with by combining

interpretation with a negative translation

  • Classical proof (and higher-order programs) can be

“explained” in terms of higher-order games

slide-29
SLIDE 29
  • P. Oliva, Unifying functional interpretations, NDJFL, 47 (2), 2006
  • G. Ferreira and P. Oliva, Functional interpretations of intuitionistic linear

logic, Logical Methods in Computer Science, 7(1), 2011

  • P. Oliva, Modified realizability interpretation of classical linear logic, LICS 2007
  • J. Gaspar and P. Oliva, Proof interpretations with truth, MLQ, 56:591-610, 2010
  • G. Ferreira and P. Oliva, On the relation between various negative translations,

Logic, Construction, Computation, vol 3, 227-258, 2012

  • M. Escardó and P. Oliva, Sequential games and optimal strategies, Proc. of the

Royal Society A, 467:1519-1545, 2011

  • M. Escardó and P. Oliva, Selection functions, bar recursion, and backward

induction, MSCS, 20 (2), pp .127-168, 2010

  • P. Oliva and T. Powell, A game-theoretic computational interpretation of 


proofs in classical analysis, Gentzen's Centenary, 501-531, Springer, 2015