SLIDE 1
-defjnable functions and automata theory Nguyn L Thnh Dng (a.k.a. - - PowerPoint PPT Presentation
-defjnable functions and automata theory Nguyn L Thnh Dng (a.k.a. - - PowerPoint PPT Presentation
LIPN, Universit Paris 13 TACL summer school, Porquerolles, June 12th, 2019 1/6 -defjnable functions and automata theory Nguyn L Thnh Dng (a.k.a. Tito) nltd@nguyentito.eu f n 2/6 morally, n x f f x f 2 f f f n Church
SLIDE 2
SLIDE 3
The λ-calculus
A naive syntactic theory of functions: f x ≈ f(x) λx. t ≈ x → t (λx. t) u =β t{x := u} ≈ (x → x2 + 1)(42) = 422 + 1 Church encodings of natural numbers: morally, n ∈ N ⇝ n : f → f n = f ◦ . . . ◦ f 2 = λf. (λx. f (f x))
2/6
SLIDE 4
The simply typed λ-calculus
Add a type system: specifjcations for λ-terms t : A → B ≈ “t is a function from A to B” Simple types: built from constant o and binary operation → f : o → o f : o → o x : o f x : o f (f x) : o 2 f x f f x
- Nat
- is the type of natural numbers
3/6
SLIDE 5
The simply typed λ-calculus
Add a type system: specifjcations for λ-terms t : A → B ≈ “t is a function from A to B” Simple types: built from constant o and binary operation → f : o → o f : o → o x : o f x : o f (f x) : o 2 = λf. (λx. f (f x)) : (o → o) → (o → o) Nat = (o → o) → (o → o) is the type of natural numbers
3/6
SLIDE 6
λ-defjnable functions
f : N → N λ-defjnable ifg ∃A simple type, t : Nat{o := A} → Nat | ∀n ∈ N, t n =β f(n) Question: what are the λ-defjnable functions N → N? Open question! No satisfactory characterization.
Nat Nat w/o substitution: extended polynomials (Schwichtenberg 1975)
Theorem (folklore? but not very well-known) For X , X f
1 0 for some
- defjnable f
ifg X is ultimately periodic.
4/6
SLIDE 7
λ-defjnable functions
f : N → N λ-defjnable ifg ∃A simple type, t : Nat{o := A} → Nat | ∀n ∈ N, t n =β f(n) Question: what are the λ-defjnable functions N → N? Open question! No satisfactory characterization.
Nat → Nat w/o substitution: extended polynomials (Schwichtenberg 1975)
Theorem (folklore? but not very well-known) For X , X f
1 0 for some
- defjnable f
ifg X is ultimately periodic.
4/6
SLIDE 8
λ-defjnable functions
f : N → N λ-defjnable ifg ∃A simple type, t : Nat{o := A} → Nat | ∀n ∈ N, t n =β f(n) Question: what are the λ-defjnable functions N → N? Open question! No satisfactory characterization.
Nat → Nat w/o substitution: extended polynomials (Schwichtenberg 1975)
Theorem (folklore? but not very well-known) For X ⊆ N, X = f−1(0) for some λ-defjnable f : N → N ifg X is ultimately periodic.
4/6
SLIDE 9
Proof by semantic evaluation
Canonical semantics:
- choose set S, o = S, A → B = BA
- t : A ⇝ t ∈ A, e.g. f x = f (x)
- soundness: t =β u =
⇒ t = u Theorem For X , X f
1 0 for some
- defjnable f
ifg X is ultimately periodic. Proof sketch of .
- choose S fjnite: Nat is a fjnite monoid
- n
n is a monoid morphism from to Nat
- n determines whether n
X
5/6
SLIDE 10
Proof by semantic evaluation
Canonical semantics:
- choose set S, o = S, A → B = BA
- t : A ⇝ t ∈ A, e.g. f x = f (x)
- soundness: t =β u =
⇒ t = u Theorem For X ⊆ N, X = f−1(0) for some λ-defjnable f : N → N ifg X is ultimately periodic. Proof sketch of ( = ⇒ ).
- choose S fjnite: Nat is a fjnite monoid
- n → n is a monoid morphism from (N, +) to Nat
- n determines whether n ∈ X
5/6
SLIDE 11