The intensional content of Rices Theorem Andrea Asperti Department - - PowerPoint PPT Presentation

the intensional content of rice s theorem
SMART_READER_LITE
LIVE PREVIEW

The intensional content of Rices Theorem Andrea Asperti Department - - PowerPoint PPT Presentation

The intensional content of Rices Theorem The intensional content of Rices Theorem Andrea Asperti Department of Computer Science, University of Bologna Mura Anteo Zamboni 7, 40127, Bologna, ITALY asperti@cs.unibo.it The intensional


slide-1
SLIDE 1

The intensional content of Rice’s Theorem

The intensional content of Rice’s Theorem

Andrea Asperti

Department of Computer Science, University of Bologna Mura Anteo Zamboni 7, 40127, Bologna, ITALY asperti@cs.unibo.it

slide-2
SLIDE 2

The intensional content of Rice’s Theorem

Content

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-3
SLIDE 3

The intensional content of Rice’s Theorem

Content

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-4
SLIDE 4

The intensional content of Rice’s Theorem

Content

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-5
SLIDE 5

The intensional content of Rice’s Theorem

Content

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-6
SLIDE 6

The intensional content of Rice’s Theorem

Content

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-7
SLIDE 7

The intensional content of Rice’s Theorem

Content

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-8
SLIDE 8

The intensional content of Rice’s Theorem

Content

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-9
SLIDE 9

The intensional content of Rice’s Theorem Rice’s Theorem

Outline

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-10
SLIDE 10

The intensional content of Rice’s Theorem Rice’s Theorem

Rice’s Theorem

Rice 1953 An estensional property of programs is decidable if and only if it is trivial. estensional = closed w.r.t. estensional equivalence

slide-11
SLIDE 11

The intensional content of Rice’s Theorem Rice’s Theorem

Rice’s Yin Yang

∀x, φm(x) ↑

slide-12
SLIDE 12

The intensional content of Rice’s Theorem Rice’s Theorem

the function h

Let K = dom(φk), and define φh(x)(y) = φk(x); φa(y) Clearly, if φm is the everywhere divergent function, φh(x) ≈

  • φa

if x ∈ K φm if x ∈ K Does h preserve any other property, in addition to extensional equivalence? Yes, complexity! Next: investigates the complexity assumptions needed to formalize such result.

slide-13
SLIDE 13

The intensional content of Rice’s Theorem Rice’s Theorem

the function h

Let K = dom(φk), and define φh(x)(y) = φk(x); φa(y) Clearly, if φm is the everywhere divergent function, φh(x) ≈

  • φa

if x ∈ K φm if x ∈ K Does h preserve any other property, in addition to extensional equivalence? Yes, complexity! Next: investigates the complexity assumptions needed to formalize such result.

slide-14
SLIDE 14

The intensional content of Rice’s Theorem Rice’s Theorem

the function h

Let K = dom(φk), and define φh(x)(y) = φk(x); φa(y) Clearly, if φm is the everywhere divergent function, φh(x) ≈

  • φa

if x ∈ K φm if x ∈ K Does h preserve any other property, in addition to extensional equivalence? Yes, complexity! Next: investigates the complexity assumptions needed to formalize such result.

slide-15
SLIDE 15

The intensional content of Rice’s Theorem Rice’s Theorem

the function h

Let K = dom(φk), and define φh(x)(y) = φk(x); φa(y) Clearly, if φm is the everywhere divergent function, φh(x) ≈

  • φa

if x ∈ K φm if x ∈ K Does h preserve any other property, in addition to extensional equivalence? Yes, complexity! Next: investigates the complexity assumptions needed to formalize such result.

slide-16
SLIDE 16

The intensional content of Rice’s Theorem Rice’s Theorem

the function h

Let K = dom(φk), and define φh(x)(y) = φk(x); φa(y) Clearly, if φm is the everywhere divergent function, φh(x) ≈

  • φa

if x ∈ K φm if x ∈ K Does h preserve any other property, in addition to extensional equivalence? Yes, complexity! Next: investigates the complexity assumptions needed to formalize such result.

slide-17
SLIDE 17

The intensional content of Rice’s Theorem Blum’s Abstract Complexity

Outline

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-18
SLIDE 18

The intensional content of Rice’s Theorem Blum’s Abstract Complexity

Blum’s Abstract Complexity

A pair φ, Φ is a computational complexity measure if φ is a principal effective enumeration of partial recursive functions and Φ satisfies Blum’s axioms (Blum 1967): (a) φi( n) ↓↔ Φi( n) ↓ (b) the predicate Φi( n) = m is decidable

slide-19
SLIDE 19

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Outline

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-20
SLIDE 20

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Big O notation

Big O remind:

1 f ∈ O(g) if and only if there exist n and c such that for any

m ≥ n, if g(m) ↓ then f (m) ≤ cg(m);

2 f ∈ Θ(g) if and only if f ∈ O(g) and g ∈ O(f ).

slide-21
SLIDE 21

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Similarity and Complexity Clique

Definition Two programs i and j are similar (write i ≈ j) if and

  • nly if

φj ∼ = φi ∧ Φj ∈ Θ(Φi) Similarity is an equivalence relation. Definition Let φ, Φ be an abstract complexity measure. A set P

  • f natural numbers is a Complexity Clique, if and only if for all i

and j i ∈ P ∧ j ≈ i → j ∈ P

slide-22
SLIDE 22

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Examples of Complexity Cliques

1 ∅ and ω; 2 for any index i, [i]≈; 3 for any index i, {j|Φj ∈ O(Φi)}. 4 all programs with polynomial (exponential, . . . ) complexity.

Warning: not every Complexity Class is a Complexity Cliques. Complexity Cliques are closed w.r.t to union, intersection, and complementation.

slide-23
SLIDE 23

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Complexity Assumptions: s-m-n

Definition A pair φ, Φ has the s-m-n property if for all m and n there exists a recursive function sn

m such that, for any i and all

x1, . . . , xm (a) φsn

m(i,x1,...,xm) ∼

= λy1, . . . , yn.φi(x1, . . . , xm, y1, . . . , yn) (b) Φsn

m(i,x1,...,xm) ∈ Θ(λy1, . . . , yn.Φi(x1, . . . , xm, y1, . . . , yn))

slide-24
SLIDE 24

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Complexity Assumptions: s-m-n

Definition A pair φ, Φ has the s-m-n property if for all m and n there exists a recursive function sn

m such that, for any i and all

x1, . . . , xm (a) φsn

m(i,x1,...,xm) ∼

= λy1, . . . , yn.φi(x1, . . . , xm, y1, . . . , yn) (b) Φsn

m(i,x1,...,xm) ∈ Θ(λy1, . . . , yn.Φi(x1, . . . , xm, y1, . . . , yn))

slide-25
SLIDE 25

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Complexity Assumptions: composition

Definition A pair φ, Φ has the composition property if there exists a total computable function h such that (a) φh(i,j) ∼ = φi ◦ φj (b) Φh(i,j) ∈ Θ(max{Φi ◦ φj, Φj}) we only ask that there exists a way of composing functions with the above complexity.

slide-26
SLIDE 26

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Complexity Assumptions: composition

Definition A pair φ, Φ has the composition property if there exists a total computable function h such that (a) φh(i,j) ∼ = φi ◦ φj (b) Φh(i,j) ∈ Θ(max{Φi ◦ φj, Φj}) we only ask that there exists a way of composing functions with the above complexity.

slide-27
SLIDE 27

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Complexity Assumptions: composition

Definition A pair φ, Φ has the composition property if there exists a total computable function h such that (a) φh(i,j) ∼ = φi ◦ φj (b) Φh(i,j) ∈ Θ(max{Φi ◦ φj, Φj}) we only ask that there exists a way of composing functions with the above complexity.

slide-28
SLIDE 28

The intensional content of Rice’s Theorem Similarity and Complexity Cliques

Generalized Rice’s Theorem

Asperti 2008 Under the s-m-n and the composition assumptions, a Complexity Clique P is recursive if and only if it is trivial, i.e. P = ∅ ∨ P = ω.

slide-29
SLIDE 29

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem

Outline

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-30
SLIDE 30

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem

Rice-Shapiro’s Theorem

Shapiro 1956 If P is a r.e extensional property of programs then i ∈ P ⇔ ∃u ∈ P φu is finite ∧ φu ≤ φi ⇐ monotonicity ⇒ compactness

slide-31
SLIDE 31

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem Monotonicity

Rice-Shapiro’s Yin Yang (monotonicity)

φu ≤ φi φu is finite x ∈ K ⇔ h(x) ∈ P

slide-32
SLIDE 32

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem Monotonicity

the function h

φi(x)|φj(x) =

  • φi(x)

if Φi(x) ≤ Φj(x) φj(x)

  • therwise

Let K = dom(φk). Then φh(x)(y) = φu(y)|φk(x); φi(y) Clearly, φh(x) ≈

  • φu

if x ∈ K φi if x ∈ K

slide-33
SLIDE 33

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem Monotonicity

the function h

φi(x)|φj(x) =

  • φi(x)

if Φi(x) ≤ Φj(x) φj(x)

  • therwise

Let K = dom(φk). Then φh(x)(y) = φu(y)|φk(x); φi(y) Clearly, φh(x) ≈

  • φu

if x ∈ K φi if x ∈ K

slide-34
SLIDE 34

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem Monotonicity

the function h

φi(x)|φj(x) =

  • φi(x)

if Φi(x) ≤ Φj(x) φj(x)

  • therwise

Let K = dom(φk). Then φh(x)(y) = φu(y)|φk(x); φi(y) Clearly, φh(x) ≈

  • φu

if x ∈ K φi if x ∈ K

slide-35
SLIDE 35

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem Monotonicity

parallel computation property

Definition (Landweber and and Robertson, 1972) A pair φ, Φ has the parallel computation property if there exists a total computable function h such that (a) φh(i,j)(x) =

  • φi(x)

if Φi(x) ≤ Φj(x) φj(x)

  • therwise

(b) Φh(i,j) ∈ Θ(λx.min{Φi(x), Φj(x)}) Assuming the parallel computation property we may generalize monotonicity to r.e. Complexity Cliques.

slide-36
SLIDE 36

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem Monotonicity

parallel computation property

Definition (Landweber and and Robertson, 1972) A pair φ, Φ has the parallel computation property if there exists a total computable function h such that (a) φh(i,j)(x) =

  • φi(x)

if Φi(x) ≤ Φj(x) φj(x)

  • therwise

(b) Φh(i,j) ∈ Θ(λx.min{Φi(x), Φj(x)}) Assuming the parallel computation property we may generalize monotonicity to r.e. Complexity Cliques.

slide-37
SLIDE 37

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem compactness

Rice-Shapiro’s Yin Yang (compactness)

For some u φu ≤ φi φu is finite x ∈ K ⇔ h(x) ∈ P

slide-38
SLIDE 38

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem compactness

Let K = dom(φk). φh(x)(y) = match FST(φk(x))|SND(φi(y)) with |FST ⇒↑ |SND(a) ⇒ a If Φi ∈ O(1), and φk(x) ↓, Φi(y) > Φk(x) almost everywhere. Hence φh(x) ≈

  • φi

if x ∈ K some finite subfunction of φi if x ∈ K

slide-39
SLIDE 39

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem compactness

generalized parallel computation

Definition A pair φ, Φ has the generalized parallel computation property if there exists a total computable function p such that for all i, i′, j, j′ (a) φp(i,i′,j,j′)(x) =

  • φi′(φi(x))

if Φi(x) ≤ Φj(x) φj′(φj(x))

  • therwise

(b) Φp(i,i′,j,j′) ∈ Θ

  • λx.
  • Φh(i′,i)(x)

if Φi(x) ≤ Φj(x) Φh(j′,j)(x)

  • therwise
  • Assuming the parallel computation property we may prove

that for any r.e. Complexity Cliques P, if i ∈ P and Φi ∈ O(1) then there exists u ∈ P such that φu is finite and φu < φi.

slide-40
SLIDE 40

The intensional content of Rice’s Theorem Rice-Shapiro’s Theorem compactness

generalized parallel computation

Definition A pair φ, Φ has the generalized parallel computation property if there exists a total computable function p such that for all i, i′, j, j′ (a) φp(i,i′,j,j′)(x) =

  • φi′(φi(x))

if Φi(x) ≤ Φj(x) φj′(φj(x))

  • therwise

(b) Φp(i,i′,j,j′) ∈ Θ

  • λx.
  • Φh(i′,i)(x)

if Φi(x) ≤ Φj(x) Φh(j′,j)(x)

  • therwise
  • Assuming the parallel computation property we may prove

that for any r.e. Complexity Cliques P, if i ∈ P and Φi ∈ O(1) then there exists u ∈ P such that φu is finite and φu < φi.

slide-41
SLIDE 41

The intensional content of Rice’s Theorem Corollaries

Outline

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-42
SLIDE 42

The intensional content of Rice’s Theorem Corollaries

Corollaries

Corollary Let P be a r.e. Complexity Clique. If i ∈ P and Φi ∈ O(1) then for every j such that φj ∼ = φi we have j ∈ P. Proof By compactness, there exists a finite sub-function φr ≤ φi such that r ∈ P, and by monotonicity, any j such that φr ≤ φj, independently from its complexity Φj, must belong to P. Corollary No Complexity Clique of total functions and containing (indices of) programs with non constant complexity can be r.e. Proof By compactness.

slide-43
SLIDE 43

The intensional content of Rice’s Theorem Corollaries

Corollaries

Corollary Let P be a r.e. Complexity Clique. If i ∈ P and Φi ∈ O(1) then for every j such that φj ∼ = φi we have j ∈ P. Proof By compactness, there exists a finite sub-function φr ≤ φi such that r ∈ P, and by monotonicity, any j such that φr ≤ φj, independently from its complexity Φj, must belong to P. Corollary No Complexity Clique of total functions and containing (indices of) programs with non constant complexity can be r.e. Proof By compactness.

slide-44
SLIDE 44

The intensional content of Rice’s Theorem Corollaries

Corollaries

Corollary Let P be a r.e. Complexity Clique. If i ∈ P and Φi ∈ O(1) then for every j such that φj ∼ = φi we have j ∈ P. Proof By compactness, there exists a finite sub-function φr ≤ φi such that r ∈ P, and by monotonicity, any j such that φr ≤ φj, independently from its complexity Φj, must belong to P. Corollary No Complexity Clique of total functions and containing (indices of) programs with non constant complexity can be r.e. Proof By compactness.

slide-45
SLIDE 45

The intensional content of Rice’s Theorem Corollaries

Corollaries

Corollary Let P be a r.e. Complexity Clique. If i ∈ P and Φi ∈ O(1) then for every j such that φj ∼ = φi we have j ∈ P. Proof By compactness, there exists a finite sub-function φr ≤ φi such that r ∈ P, and by monotonicity, any j such that φr ≤ φj, independently from its complexity Φj, must belong to P. Corollary No Complexity Clique of total functions and containing (indices of) programs with non constant complexity can be r.e. Proof By compactness.

slide-46
SLIDE 46

The intensional content of Rice’s Theorem Kleene’s Fixed Point Theorem

Outline

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-47
SLIDE 47

The intensional content of Rice’s Theorem Kleene’s Fixed Point Theorem

Kleene’s Fixed Point Theorem

Kleene 1952 For any total recursive function f , there exists a such that φa ∼ = φf (a) Can we always choose a such that Φa ∈ Θ(Φf (a))?

slide-48
SLIDE 48

The intensional content of Rice’s Theorem Kleene’s Fixed Point Theorem

Kleene’s Fixed Point Theorem

Kleene 1952 For any total recursive function f , there exists a such that φa ∼ = φf (a) Can we always choose a such that Φa ∈ Θ(Φf (a))?

slide-49
SLIDE 49

The intensional content of Rice’s Theorem Kleene’s Fixed Point Theorem

Complexity Theoretic version of Kleene’s Theorem

Theorem Let φ, Φ be an abstract complexity measure with the s-m-n property, and let u be an index for the universal function. Then for any total recursive function φi there exists an index m such that, for any x, (1) φm ∼ = φφi(m) (2) Φm ∈ Θ(λy.Φu(φi(m), y) But what about the complexity of the interpreter u?

slide-50
SLIDE 50

The intensional content of Rice’s Theorem Kleene’s Fixed Point Theorem

Complexity Theoretic version of Kleene’s Theorem

Theorem Let φ, Φ be an abstract complexity measure with the s-m-n property, and let u be an index for the universal function. Then for any total recursive function φi there exists an index m such that, for any x, (1) φm ∼ = φφi(m) (2) Φm ∈ Θ(λy.Φu(φi(m), y) But what about the complexity of the interpreter u?

slide-51
SLIDE 51

The intensional content of Rice’s Theorem Kleene’s Fixed Point Theorem

Fair Interpreters

Definition We say that a universal function φu is fair if for any x λy.Φu(x, y) ∈ Θ(Φx) Corollary Let φ, Φ be an abstract complexity measure with the s-m-n property. If it admits a fair universal function u then for any total recursive function φi there exists an index m such that, for any x, (1) φm ∼ = φφi(m) (2) Φm ∈ Θ(Φφi(m))

slide-52
SLIDE 52

The intensional content of Rice’s Theorem Conclusions

Outline

1 Rice’s Theorem 2 Blum’s Abstract Complexity 3 Similarity and Complexity Cliques 4 Rice-Shapiro’s Theorem

Monotonicity compactness

5 Corollaries 6 Kleene’s Fixed Point Theorem 7 Conclusions

Main results Future works and applications

slide-53
SLIDE 53

The intensional content of Rice’s Theorem Conclusions Main results

Complexity Cliques generalize estensional sets Complexity Cliques in ∆0

1 are trivial

Complexity Cliques in Σ0

1 and Π0 1 have trivial complexities.

slide-54
SLIDE 54

The intensional content of Rice’s Theorem Conclusions Future works and applications

Complexity Cliques vs. Complexity Classes Complexity-theoretic revisitation of Recursion Theory Complexity-theoretic aspects of the metatheory of programming languages Old Quest for a Machine Independent Theory of Complexity