On Variants of Modified Bar Recursion Paulo Oliva Queen Mary, - - PowerPoint PPT Presentation

on variants of modified bar recursion
SMART_READER_LITE
LIVE PREVIEW

On Variants of Modified Bar Recursion Paulo Oliva Queen Mary, - - PowerPoint PPT Presentation

On Variants of Modified Bar Recursion On Variants of Modified Bar Recursion Paulo Oliva Queen Mary, University of London, UK (pbo@dcs.qmul.ac.uk) (Joint work with Mart n Escard o) Domains IX, Brighton 22 September 2008 On Variants of


slide-1
SLIDE 1

On Variants of Modified Bar Recursion

On Variants of Modified Bar Recursion

Paulo Oliva

Queen Mary, University of London, UK (pbo@dcs.qmul.ac.uk)

(Joint work with Mart´ ın Escard´

  • )

Domains IX, Brighton 22 September 2008

slide-2
SLIDE 2

On Variants of Modified Bar Recursion

Outline

1

Background

2

Three Realizability Bar Recursions BBC bar recursion Berger’s bar recursion Escardo’s bar recursion

slide-3
SLIDE 3

On Variants of Modified Bar Recursion Background

Outline

1

Background

2

Three Realizability Bar Recursions BBC bar recursion Berger’s bar recursion Escardo’s bar recursion

slide-4
SLIDE 4

On Variants of Modified Bar Recursion Background

Interpretions of Arithmetic and Analysis

PAω

N-trans

HAω

Dialec.

  • A-trans+mr

T

T + SBR PAω + AC0,ρ

N-trans

HAω + ACN

0,ρ Dialec.

  • A-trans+mr

T + MBR

slide-5
SLIDE 5

On Variants of Modified Bar Recursion Background

Primitive recursion vs Bar recursion

R(n)

τ

=

  • G

if n = 0 Hn(R(n − 1))

  • therwise

SBR(sρ∗)

τ

=

  • Gs

if Y (ˆ s) < |s| Hs(λxρ.SBR(s ∗ x))

  • therwise.
slide-6
SLIDE 6

On Variants of Modified Bar Recursion Background

Primitive recursion vs Bar recursion

R(n)

τ

=

  • G

if n = 0 Hn(R(n − 1))

  • therwise

SBR(sρ∗)

τ

=

  • Gs

if Y (ˆ s) < |s| Hs(λxρ.SBR(s ∗ x))

  • therwise.
slide-7
SLIDE 7

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

Outline

1

Background

2

Three Realizability Bar Recursions BBC bar recursion Berger’s bar recursion Escardo’s bar recursion

slide-8
SLIDE 8

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

∀n∃xA(n, x) → ∃f∀nA(n, fn)

slide-9
SLIDE 9

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

∀n∃xA(n, x) → ∃f∀nA(n, fn) ∀n¬¬∃xAN(n, x) → ¬¬∃f∀nAN(n, fn)

slide-10
SLIDE 10

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

∀n∃xA(n, x) → ∃f∀nA(n, fn) ∀n¬¬∃xAN(n, x) → ¬¬∃f∀nAN(n, fn) ∀n((∃xAB(n, x) → B) → B) ∧ (∃f∀nAB(n, fn) → B) → B

slide-11
SLIDE 11

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

∀n∃xA(n, x) → ∃f∀nA(n, fn) ∀n¬¬∃xAN(n, x) → ¬¬∃f∀nAN(n, fn) ∀n((∃xAB(n, x) → B) → B) ∧ (∃f∀nAB(n, fn) → B) → B Given realizers for ∀n((∃xAB(n, x) → B) → B) ∃f∀nAB(n, fn) → B produce realizer for B.

slide-12
SLIDE 12

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

∀n∃xA(n, x) → ∃f∀nA(n, fn) ∀n¬¬∃xAN(n, x) → ¬¬∃f∀nAN(n, fn) ∀n((∃xAB(n, x) → B) → B) ∧ (∃f∀nAB(n, fn) → B) → B Given realizers for ∀n((∃xAB(n, x) → B) → B) ∀n∃xAB(n, x) → B produce realizer for B.

slide-13
SLIDE 13

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

∀n∃xA(n, x) → ∃f∀nA(n, fn) ∀n¬¬∃xAN(n, x) → ¬¬∃f∀nAN(n, fn) ∀n((∃xAB(n, x) → B) → B) ∧ (∃f∀nAB(n, fn) → B) → B Given realizers for ∀n((∃xAB(n, x) → B) → ∃xAB(n, x)) ∀n∃xAB(n, x) → B produce realizer for B.

slide-14
SLIDE 14

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

∀n∃xA(n, x) → ∃f∀nA(n, fn) ∀n¬¬∃xAN(n, x) → ¬¬∃f∀nAN(n, fn) ∀n((∃xAB(n, x) → B) → B) ∧ (∃f∀nAB(n, fn) → B) → B Given realizers for ∀n((A(n) → B) → A(n)) ∀nA(n) → B produce realizer for B.

slide-15
SLIDE 15

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

Given Hn : (A(n) → B) → A(n) Y : ∀nA(n) → B Produce a realiser for B (or ∀nA(n)).

slide-16
SLIDE 16

On Variants of Modified Bar Recursion Three Realizability Bar Recursions

The Challenge

Given Hn : (A(n) → B) → A(n) Y : ∀nA(n) → B Produce a realiser for B (or ∀nA(n)). Sketch of solution: (assume s(N×ρ)∗ : ∀n∈s A(n)) Ψ(s)(n)

ρ

=

  • s(n)

if n ∈ s Hn(λxρ.Y (Ψ(s ∗ n, x)))

  • therwise.
slide-17
SLIDE 17

On Variants of Modified Bar Recursion Three Realizability Bar Recursions BBC bar recursion

Berardi, Bezem, Coquand (BBC) functional

Ψ(s) = s @ λn.Hn(λx.Y (Ψ(s ∗ n, x))) Efficient Not easy to prove total Not easy to prove it is a realiser

slide-18
SLIDE 18

On Variants of Modified Bar Recursion Three Realizability Bar Recursions BBC bar recursion

Berger’s observation

Enough: Given Hn : (A(k) → B) → A(n) Y : ∀nA(n) → B Produce a realiser for ∀nA(n).

slide-19
SLIDE 19

On Variants of Modified Bar Recursion Three Realizability Bar Recursions BBC bar recursion

Berger’s observation

Enough: Given Hn : (A(k) → B) → A(n) Y : ∀nA(n) → B Produce a realiser for ∀nA(n). Sketch of solution: (assume sρ∗ : ∀n<|s| A(n)) Ψ(s)(n)

ρ

=

  • sn

if n < |s| Hn(λxρ.Y (Ψ(s ∗ x)))

  • therwise.
slide-20
SLIDE 20

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Berger’s bar recursion

Berger’s (MBR) functional

Ψ(s) = s @ λn.Hn(λx.Y (Ψ(s ∗ |s|, x))) Not very efficient Easy to prove total (by bar induction) Easy to prove it is a realiser (by bar induction)

slide-21
SLIDE 21

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Berger’s bar recursion

Question

Can we solve the original general problem efficiently with an easy proof of correctness?

slide-22
SLIDE 22

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Escardo’s bar recursion

Escardo’s trick

Given Hn : (A(n) → B) → A(n) Y : ∀nA(n) → B Produce a realiser for ∀nA(n). Sketch of solution: (assume sρ∗ : ∀n<|s| A(n)) Ψ(s)(n)

ρ

=

  • sn

if n < |s| Hn(λxρ.Y (Ψ(s ∗ n, x)))

  • therwise.
slide-23
SLIDE 23

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Escardo’s bar recursion

Escardo’s trick

Given Hn : (A(n) → B) → A(n) Y : ∀nA(n) → B Produce a realiser for ∀nA(n). Sketch of solution: (assume sρ∗ : ∀n<|s| A(n)) Ψ(s)(n)

ρ

=

  • sn

if n < |s| Hn(λxρ.Y (Ψ(s ∗ . . . ∗ n, x)))

  • therwise.
slide-24
SLIDE 24

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Escardo’s bar recursion

Escardo’s trick

Given Hn : (A(n) → B) → A(n) Y : ∀nA(n) → B Produce a realiser for ∀nA(n). Sketch of solution: (assume sρ∗ : ∀n<|s| A(n)) Ψ(s)(n)

ρ

=

  • sn

if n < |s| Hn(λxρ.Y (Ψ(s ∗ . . . ∗ n, x)))

  • therwise.

where . . . ≡ Ψ(s)[|s|, n − 1].

slide-25
SLIDE 25

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Escardo’s bar recursion

Escardo’s (CBR) bar recursion

Ψ(s) = s @ λn.Hn(λx.Y (Ψ(Ψ(s)(n) ∗ n, x))) Efficient Easy to prove total (by course-of-value bar induction) Easy to prove it is a realiser (by course-of-value bar induction)

slide-26
SLIDE 26

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Escardo’s bar recursion

Main results

SBR MBR CBR BBC

Known New Open

?

slide-27
SLIDE 27

On Variants of Modified Bar Recursion Three Realizability Bar Recursions Escardo’s bar recursion

References

Provably recursive functionals of analysis Spector, Proc. Sym. in Pure Maths, 5:1–27, 1962 On the computational content of the axiom of choice Berardi, Bezem and Coquand, JSL, 63(2):600–622, 1998 Modified bar recursion and classical dependent choice Berger and Oliva, LNL, 20:89–107, 2005 Modified bar recursion Berger and Oliva, MSCS, 16:163–183, 2006 On variants on modified bar recursion Escardo and Oliva, in preparation