Weak Cardinality Theorems for First-Order Logic Till Tantau Fakult - - PowerPoint PPT Presentation

weak cardinality theorems for first order logic
SMART_READER_LITE
LIVE PREVIEW

Weak Cardinality Theorems for First-Order Logic Till Tantau Fakult - - PowerPoint PPT Presentation

Weak Cardinality Theorems for First-Order Logic Till Tantau Fakult at f ur Elektrotechnik und Informatik Technische Universit at Berlin Fundamentals of Computation Theory 2003 logo History Unification by Logic Applications Summary


slide-1
SLIDE 1

logo

Weak Cardinality Theorems for First-Order Logic

Till Tantau

Fakult¨ at f¨ ur Elektrotechnik und Informatik Technische Universit¨ at Berlin

Fundamentals of Computation Theory 2003

slide-2
SLIDE 2

logo History Unification by Logic Applications Summary

Outline

1

History Enumerability in Recursion and Automata Theory Known Weak Cardinality Theorem Why Do Cardinality Theorems Hold Only for Certain Models?

2

Unification by First-Order Logic Elementary Definitions Enumerability for First-Order Logic Weak Cardinality Theorems for First-Order Logic

3

Applications A Separability Result for First-Order Logic

slide-3
SLIDE 3

logo History Unification by Logic Applications Summary

Outline

1

History Enumerability in Recursion and Automata Theory Known Weak Cardinality Theorem Why Do Cardinality Theorems Hold Only for Certain Models?

2

Unification by First-Order Logic Elementary Definitions Enumerability for First-Order Logic Weak Cardinality Theorems for First-Order Logic

3

Applications A Separability Result for First-Order Logic

slide-4
SLIDE 4

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Motivation of Enumerability

Problem Many functions are not computable or not efficiently computable. Example

#SAT:

How many satisfying assignments does a formula have?

slide-5
SLIDE 5

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Motivation of Enumerability

Problem Many functions are not computable or not efficiently computable. Example For difficult languages A: Cardinality function #n

A:

How many input words are in A? Characteristic function χn

A:

Which input words are in A? (w1, w2, w3, w4, w5) in A 2 01001 #5

A

χ5

A

slide-6
SLIDE 6

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Motivation of Enumerability

Problem Many functions are not computable or not efficiently computable. Solutions Difficult functions can be computed using probabilistic algorithms, computed efficiently on average, approximated, or enumerated.

slide-7
SLIDE 7

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-8
SLIDE 8

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

. . . w1 wn Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-9
SLIDE 9

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-10
SLIDE 10

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-11
SLIDE 11

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerworkingimage

Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-12
SLIDE 12

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

u1 Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-13
SLIDE 13

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

u1 u2 Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-14
SLIDE 14

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

u1 u2 u3 Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-15
SLIDE 15

logo History Unification by Logic Applications Summary Enumerability in Recursion and Automata Theory

Enumerators Output Sets of Possible Function Values

  • utput tape

input tapes . . . w1 wn

computerimage

u1 u2 u3 Definition (1987, 1989, 1994, 2001) An m-enumerator for a function f

1

reads n input words w1, . . . , wn,

2

does a computation,

3

  • utputs at most m values,

4

  • ne of which is f(w1, . . . , wn).
slide-16
SLIDE 16

logo History Unification by Logic Applications Summary Known Weak Cardinality Theorem

How Well Can the Cardinality Function Be Enumerated?

Observation For fixed n, the cardinality function #n

A

can be 1-enumerated by Turing machines only for recursive A, but can be (n + 1)-enumerated for every language A. Question What about 2-, 3-, 4-, . . . , n-enumerability?

slide-17
SLIDE 17

logo History Unification by Logic Applications Summary Known Weak Cardinality Theorem

How Well Can the Cardinality Function Be Enumerated?

Observation For fixed n, the cardinality function #n

A

can be 1-enumerated by Turing machines only for recursive A, but can be (n + 1)-enumerated for every language A. Question What about 2-, 3-, 4-, . . . , n-enumerability?

slide-18
SLIDE 18

logo History Unification by Logic Applications Summary Known Weak Cardinality Theorem

How Well Can the Cardinality Function Be Enumerated by Turing Machines?

Cardinality Theorem (Kummer, 1992) If #n

A is n-enumerable by a Turing machine, then A is recursive.

Weak Cardinality Theorems (1987, 1989, 1992)

1

If χn

A is n-enumerable by a Turing machine, then A is

recursive.

2

If #2

A is 2-enumerable by a Turing machine, then A is

recursive.

3

If #n

A is n-enumerable by a Turing machine that never

enumerates both 0 and n, then A is recursive.

slide-19
SLIDE 19

logo History Unification by Logic Applications Summary Known Weak Cardinality Theorem

How Well Can the Cardinality Function Be Enumerated by Turing Machines?

Cardinality Theorem (Kummer, 1992) If #n

A is n-enumerable by a Turing machine, then A is recursive.

Weak Cardinality Theorems (1987, 1989, 1992)

1

If χn

A is n-enumerable by a Turing machine, then A is

recursive.

2

If #2

A is 2-enumerable by a Turing machine, then A is

recursive.

3

If #n

A is n-enumerable by a Turing machine that never

enumerates both 0 and n, then A is recursive.

slide-20
SLIDE 20

logo History Unification by Logic Applications Summary Known Weak Cardinality Theorem

How Well Can the Cardinality Function Be Enumerated by Turing Machines?

Cardinality Theorem (Kummer, 1992) If #n

A is n-enumerable by a Turing machine, then A is recursive.

Weak Cardinality Theorems (1987, 1989, 1992)

1

If χn

A is n-enumerable by a Turing machine, then A is

recursive.

2

If #2

A is 2-enumerable by a Turing machine, then A is

recursive.

3

If #n

A is n-enumerable by a Turing machine that never

enumerates both 0 and n, then A is recursive.

slide-21
SLIDE 21

logo History Unification by Logic Applications Summary Known Weak Cardinality Theorem

How Well Can the Cardinality Function Be Enumerated by Turing Machines?

Cardinality Theorem (Kummer, 1992) If #n

A is n-enumerable by a Turing machine, then A is recursive.

Weak Cardinality Theorems (1987, 1989, 1992)

1

If χn

A is n-enumerable by a Turing machine, then A is

recursive.

2

If #2

A is 2-enumerable by a Turing machine, then A is

recursive.

3

If #n

A is n-enumerable by a Turing machine that never

enumerates both 0 and n, then A is recursive.

slide-22
SLIDE 22

logo History Unification by Logic Applications Summary Known Weak Cardinality Theorem

How Well Can the Cardinality Function Be Enumerated by Finite Automata?

Conjecture If #n

A is n-enumerable by a finite automaton, then A is regular.

Weak Cardinality Theorems (2001, 2002)

1

If χn

A is n-enumerable by a finite automaton, then A is

regular.

2

If #2

A is 2-enumerable by a finite automaton, then A is

regular.

3

If #n

A is n-enumerable by a finite automaton that never

enumerates both 0 and n, then A is regular.

slide-23
SLIDE 23

logo History Unification by Logic Applications Summary Why Do Cardinality Theorems Hold Only for Certain Models?

Cardinality Theorems Do Not Hold for All Models

Turing machines finite automata Weak cardinality theorems hold. Weak cardinality theorems hold.

slide-24
SLIDE 24

logo History Unification by Logic Applications Summary Why Do Cardinality Theorems Hold Only for Certain Models?

Cardinality Theorems Do Not Hold for All Models

Turing machines resource-bounded machines Weak cardinality theorems do not hold. finite automata Weak cardinality theorems hold. Weak cardinality theorems hold.

slide-25
SLIDE 25

logo History Unification by Logic Applications Summary Why Do Cardinality Theorems Hold Only for Certain Models?

Why?

First Explanation The weak cardinality theorems hold both for recursion and automata theory by coincidence. Second Explanation The weak cardinality theorems hold both for recursion and automata theory, because they are instantiations of single, unifying theorems.

slide-26
SLIDE 26

logo History Unification by Logic Applications Summary Why Do Cardinality Theorems Hold Only for Certain Models?

Why?

First Explanation The weak cardinality theorems hold both for recursion and automata theory by coincidence. Second Explanation The weak cardinality theorems hold both for recursion and automata theory, because they are instantiations of single, unifying theorems. The second explanation is correct. The theorems can (almost) be unified using first-order logic.

slide-27
SLIDE 27

logo History Unification by Logic Applications Summary

Outline

1

History Enumerability in Recursion and Automata Theory Known Weak Cardinality Theorem Why Do Cardinality Theorems Hold Only for Certain Models?

2

Unification by First-Order Logic Elementary Definitions Enumerability for First-Order Logic Weak Cardinality Theorems for First-Order Logic

3

Applications A Separability Result for First-Order Logic

slide-28
SLIDE 28

logo History Unification by Logic Applications Summary Elementary Definitions

What Are Elementary Definitions?

Definition A relation R is elementarily definable in a logical structure S if

1

there exists a first-order formula φ,

2

that is true exactly for the elements of R. Example The set of even numbers is elementarily definable in (N, +) via the formula φ(x) ≡ ∃z z + z = x. Example The set of powers of 2 is not elementarily definable in (N, +).

slide-29
SLIDE 29

logo History Unification by Logic Applications Summary Elementary Definitions

Characterisation of Classes by Elementary Definitions

Theorem (B¨ uchi, 1960) There exists a logical structure (N, +, e2) such that a set A ⊆ N is regular iff it is elementarily definable in (N, +, e2). Theorem There exists a logical structure R such that a set A ⊆ N is recursively enumerable iff it is positively elementarily definable in R.

slide-30
SLIDE 30

logo History Unification by Logic Applications Summary Elementary Definitions

Characterisation of Classes by Elementary Definitions

regular sets (N, +, e2) resource-bounded classes none recursively enumerable sets positively in R

slide-31
SLIDE 31

logo History Unification by Logic Applications Summary Elementary Definitions

Characterisation of Classes by Elementary Definitions

Presburger arithmetic (N, +) regular sets (N, +, e2) resource-bounded classes none recursively enumerable sets positively in R arithmetic hierarchy (N, +, ·)

  • rdinal number arithmetic

(On, +, ·)

slide-32
SLIDE 32

logo History Unification by Logic Applications Summary Enumerability for First-Order Logic

Elementary Enumerability is a Generalisation of Elementary Definability

R x f(x) f Definition A function f is elementarily m-enumerable in a structure S if

1

its graph is contained in an elementarily definable relation R,

2

which is m-bounded, i.e., for each x there are at most m different y with (x, y) ∈ R.

slide-33
SLIDE 33

logo History Unification by Logic Applications Summary Enumerability for First-Order Logic

The Original Notions of Enumerability are Instantiations

Theorem A function is m-enumerable by a finite automaton iff it is elementarily m-enumerable in (N, +, e2). Theorem A function is m-enumerable by a Turing machine iff it is positively elementarily m-enumerable in R.

slide-34
SLIDE 34

logo History Unification by Logic Applications Summary Weak Cardinality Theorems for First-Order Logic

The First Weak Cardinality Theorem

Theorem Let S be a logical structure with universe U and let A ⊆ U. If

1

S is well-orderable and

2

χn

A is elementarily n-enumerable in S,

then A is elementarily definable in S.

slide-35
SLIDE 35

logo History Unification by Logic Applications Summary Weak Cardinality Theorems for First-Order Logic

The First Weak Cardinality Theorem

Theorem Let S be a logical structure with universe U and let A ⊆ U. If

1

S is well-orderable and

2

χn

A is elementarily n-enumerable in S,

then A is elementarily definable in S. Corollary If χn

A is n-enumerable by a finite automaton, then A is regular.

slide-36
SLIDE 36

logo History Unification by Logic Applications Summary Weak Cardinality Theorems for First-Order Logic

The First Weak Cardinality Theorem

Theorem Let S be a logical structure with universe U and let A ⊆ U. If

1

S is well-orderable and

2

χn

A is elementarily n-enumerable in S,

then A is elementarily definable in S. Corollary (with more effort) If χn

A is n-enumerable by a Turing machine, then A is recursive.

slide-37
SLIDE 37

logo History Unification by Logic Applications Summary Weak Cardinality Theorems for First-Order Logic

The Second Weak Cardinality Theorem

Theorem Let S be a logical structure with universe U and let A ⊆ U. If

1

S is well-orderable,

2

every finite relation on U is elementarily definable in S, and

3

#2

A is elementarily 2-enumerable in S,

then A is elementarily definable in S.

slide-38
SLIDE 38

logo History Unification by Logic Applications Summary Weak Cardinality Theorems for First-Order Logic

The Third Weak Cardinality Theorem

Theorem Let S be a logical structure with universe U and let A ⊆ U. If

1

S is well-orderable,

2

every finite relation on U is elementarily definable in S, and

3

#n

A is elementarily n-enumerable in S via a relation that

never ‘enumerates’ both 0 and n, then A is elementarily definable in S.

slide-39
SLIDE 39

logo History Unification by Logic Applications Summary Weak Cardinality Theorems for First-Order Logic

Relationships Between Cardinality Theorems (CT)

1st Weak CT 2nd Weak CT 3rd Weak CT 1st Weak CT 2nd Weak CT 3rd Weak CT CT 1st Weak CT 2nd Weak CT 3rd Weak CT automata theory first-order logic recursion theory

slide-40
SLIDE 40

logo History Unification by Logic Applications Summary Weak Cardinality Theorems for First-Order Logic

Relationships Between Cardinality Theorems (CT)

CT 1st Weak CT 2nd Weak CT 3rd Weak CT CT 1st Weak CT 2nd Weak CT 3rd Weak CT CT 1st Weak CT 2nd Weak CT 3rd Weak CT automata theory first-order logic recursion theory

slide-41
SLIDE 41

logo History Unification by Logic Applications Summary

Outline

1

History Enumerability in Recursion and Automata Theory Known Weak Cardinality Theorem Why Do Cardinality Theorems Hold Only for Certain Models?

2

Unification by First-Order Logic Elementary Definitions Enumerability for First-Order Logic Weak Cardinality Theorems for First-Order Logic

3

Applications A Separability Result for First-Order Logic

slide-42
SLIDE 42

logo History Unification by Logic Applications Summary A Separability Result for First-Order Logic

A × ¯ A A × A ¯ A × ¯ A Theorem Let S be a well-orderable logical structure in which all finite relations are elementarily definable. If there exist elementarily definable supersets of A × A, A × ¯ A, and ¯ A × ¯ A whose intersection is empty, then A is elementarily definable in S. Note The theorem is no longer true if we add ¯ A × A to the list.

slide-43
SLIDE 43

logo History Unification by Logic Applications Summary A Separability Result for First-Order Logic

A × ¯ A A × A ¯ A × ¯ A Theorem Let S be a well-orderable logical structure in which all finite relations are elementarily definable. If there exist elementarily definable supersets of A × A, A × ¯ A, and ¯ A × ¯ A whose intersection is empty, then A is elementarily definable in S. Note The theorem is no longer true if we add ¯ A × A to the list.

slide-44
SLIDE 44

logo History Unification by Logic Applications Summary A Separability Result for First-Order Logic

A × ¯ A A × A ¯ A × ¯ A Theorem Let S be a well-orderable logical structure in which all finite relations are elementarily definable. If there exist elementarily definable supersets of A × A, A × ¯ A, and ¯ A × ¯ A whose intersection is empty, then A is elementarily definable in S. Note The theorem is no longer true if we add ¯ A × A to the list.

slide-45
SLIDE 45

logo History Unification by Logic Applications Summary

Summary

Summary The weak cardinality theorems for first-order logic unify the weak cardinality theorems of automata and recursion theory. The logical approach yields weak cardinality theorems for

  • ther computational models.

Cardinality theorems are separability theorems in disguise. Open Problems Does a cardinality theorem for first-order logic hold? What about non-well-orderable structures like (R, +, ·)?