Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
An introduction to Krivine realizability
Alexandre Miquel
E Q U I P O . D E . L O
- G
An introduction to Krivine realizability Alexandre Miquel D E . - - PowerPoint PPT Presentation
Introduction 2nd-order arithmetic (PA2) The c -calculus Realizability Adequacy Witness extraction An introduction to Krivine realizability Alexandre Miquel D E . . O L - P O G I U I Q C E A U R D A E L July 20th,
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
3
4
5
6
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
3
4
5
6
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
A∈Γ
x / ∈FV (Γ)
X / ∈FV (Γ)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
(x:A)∈Γ
x / ∈FV (Γ)
X / ∈FV (Γ)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
∀x (x∈N⇒A(x))
∀Z (∀x (A(x)⇒Z)⇒Z) ∀Z (∀x (x∈N⇒A(x)⇒Z)⇒Z)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
(non standard elements)
(may be countable)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
3
4
5
6
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
3
4
5
6
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
(slogan: never trust a classical realizer!)
⊥
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
⊥ is defined from:
(but we could take any model M of PA2 as well)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1 , . . . , eN k )
⊥
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
⊥ and |A|⊥ ⊥ to recall the dependency
⊥
⊥
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
3
4
5
6
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
1
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
x / ∈FV (A)
X / ∈FV (A)
x / ∈FV (A)
X / ∈FV (A)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
3
4
5
6
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
3
4
⊥
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
0-formulas)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
k
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1-case (+ display intermediate results)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1-extraction technique to the above proof
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1-formula, so that we can perform program extraction:
1-extraction to the above non-constructive proof,
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1-Corollary
witness x + justification
witness x (same as above) + justif. of f(x) ≤ f(2x + 1)
Correct: continue Incorrect: backtrack
1-extractor
(half conditional)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1-extraction to the proof of
1-extractor evaluates incorrect justification and backtracks
1-extractor evaluates incorrect justification and backtracks
1-extractor evaluates incorrect justification and backtracks
1-extractor evaluates correct justification and returns x = 1023
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
1
2
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
λxf . f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f (f ( f (f (f (f (f (f (f (f (f (f (f (f x)))))))))))))))))))))))))))))))))))))))))
(λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))( (λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))( (λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))( (λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))( (λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))( (λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))( (λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))((λnxf .f (nxf ))( (λxf .x)))))))))))))))))))))))))))))))))))))))))))
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction
⊥
1-case is exactly Friedman’s trick (transposed to LRS)
Introduction 2nd-order arithmetic (PA2) The λc -calculus Realizability Adequacy Witness extraction