-defjnable functions and automata theory Nguyn L Thnh Dng (a.k.a. - - PowerPoint PPT Presentation

defjnable functions and automata theory
SMART_READER_LITE
LIVE PREVIEW

-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-1
SLIDE 1

λ-defjnable functions and automata theory

Nguyễn Lê Thành Dũng (a.k.a. Tito) — nltd@nguyentito.eu LIPN, Université Paris 13 TACL summer school, Porquerolles, June 12th, 2019

1/6

slide-2
SLIDE 2

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 f f n f f 2 f x f f x

2/6

slide-3
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
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
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
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
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
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
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
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
SLIDE 11

Finally: connections with automata

Generalization to Church-encoded words over fjnite alphabet Σ: Theorem (Hillebrand & Kanellakis 1995) For L ⊆ Σ∗, L = f−1(ε) for some λ-defjnable f : Σ∗ → Σ∗ ifg X is a regular language.

Same proof (characterize reg. lang. by monoids).

λ-defjnable languages are recognizable by fjnite automata. λ-defjnable functions are regularity-preserving. − → I’m looking for an automata-theoretic characterization.

6/6