More intensional versions of Rices Theorem Jean-Yves Moyen 1 Jakob - - PowerPoint PPT Presentation

more intensional versions of rice s theorem
SMART_READER_LITE
LIVE PREVIEW

More intensional versions of Rices Theorem Jean-Yves Moyen 1 Jakob - - PowerPoint PPT Presentation

Rices and Asperti-Rices Theorems First generalisation Second generalisation More intensional versions of Rices Theorem Jean-Yves Moyen 1 Jakob Grue Simonsen 1 Jean-Yves.Moyen@lipn.univ-paris13.fr 1 Datalogisk Institut University of


slide-1
SLIDE 1

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

More intensional versions of Rice’s Theorem

Jean-Yves Moyen1 Jakob Grue Simonsen1 Jean-Yves.Moyen@lipn.univ-paris13.fr

1Datalogisk Institut

University of Copenhagen

Supported by the Marie Curie action “Walgo” program H2020-MSCA-IF-2014, number 655222 and the Danish Council for Independent Research Sapere Aude grant “Complexity via Logic and Algebra” (COLA).

April 2-3 2016

Moyen, Simonsen Rice – intensional

slide-2
SLIDE 2

Rice’s and Asperti-Rice’s Theorems

slide-3
SLIDE 3

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Rice’s Theorem

A cornerstone of computability. Theorem (Rice, ’53) Any non-trivial and extensional set of programs is undecidable.

Moyen, Simonsen Rice – intensional

slide-4
SLIDE 4

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Rice’s Theorem

A cornerstone of computability. Theorem (Rice, ’53) Any non-trivial and extensional set of programs is undecidable. extensional: do not separate programs computing the same function: p ∈ P, q / ∈ P ⇒ p = q.

Moyen, Simonsen Rice – intensional

slide-5
SLIDE 5

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Rice’s Theorem

A cornerstone of computability. Theorem (Rice, ’53) Any non-trivial and extensional set of programs is undecidable. extensional: do not separate programs computing the same function: p ∈ P, q / ∈ P ⇒ p = q. Proof. p = infinite loop, p ∈ P, loop / ∈ P. q′(x) = q(0); p(x). q′ ∈ P ⇔ q(0) terminates.

Moyen, Simonsen Rice – intensional

slide-6
SLIDE 6

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The power of Rice

Rice’s Theorem allows to prove undecidability of a wide range

  • f sets of programs:

programs which (don’t) terminate on input 0; programs which return 42 on input 54; programs which return an even result on any prime input; programs computing a total function; programs computing a bijection; . . .

Moyen, Simonsen Rice – intensional

slide-7
SLIDE 7

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The power of Rice

Rice’s Theorem allows to prove undecidability of a wide range

  • f sets of programs:

programs which (don’t) terminate on input 0; programs which return 42 on input 54; programs which return an even result on any prime input; programs computing a total function; programs computing a bijection; . . . But it cannot be used for intensional sets that depend on program behaviour (complexity, . . . )

Moyen, Simonsen Rice – intensional

slide-8
SLIDE 8

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Extensional equivalence

“Extensionality” of sets defines an equivalence on programs, the extensional equivalence (or Rice’s equivalence): pRq ⇔ p = q.

Moyen, Simonsen Rice – intensional

slide-9
SLIDE 9

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Extensional equivalence

“Extensionality” of sets defines an equivalence on programs, the extensional equivalence (or Rice’s equivalence): pRq ⇔ p = q. Rice’s Theorem now state that: R is undecidable; any equivalence less precise than R is undecidable.

Moyen, Simonsen Rice – intensional

slide-10
SLIDE 10

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Extensional equivalence

“Extensionality” of sets defines an equivalence on programs, the extensional equivalence (or Rice’s equivalence): pRq ⇔ p = q. Rice’s Theorem now state that: R is undecidable; any equivalence less precise than R is undecidable. Theorem (Rice, again) Any non-trivial set of programs which is the union of classes of R is undecidable. What about equivalences more precise than R?

Moyen, Simonsen Rice – intensional

slide-11
SLIDE 11

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions

  • Moyen, Simonsen

Rice – intensional

slide-12
SLIDE 12

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions

  • Moyen, Simonsen

Rice – intensional

slide-13
SLIDE 13

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions

  • Moyen, Simonsen

Rice – intensional

slide-14
SLIDE 14

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions

  • Moyen, Simonsen

Rice – intensional

slide-15
SLIDE 15

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions R same f

  • Moyen, Simonsen

Rice – intensional

slide-16
SLIDE 16

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions R same f

  • same f(0)

Moyen, Simonsen Rice – intensional

slide-17
SLIDE 17

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions R same f

  • same f(0)

same f(3), . . . , f(9)

Moyen, Simonsen Rice – intensional

slide-18
SLIDE 18

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions R same f

  • same f(0)

same f(3), . . . , f(9)

Moyen, Simonsen Rice – intensional

slide-19
SLIDE 19

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions R same f

  • same f(0)

same f(3), . . . , f(9) Extensional: undecidable

Moyen, Simonsen Rice – intensional

slide-20
SLIDE 20

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (1)

Programs Functions R same f

  • same f(0)

same f(3), . . . , f(9) Extensional: undecidable When does it become decidable?

Moyen, Simonsen Rice – intensional

slide-21
SLIDE 21

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Asperti-Rice’s Theorem

A first intensional version of Rice’s Theorem. pAq ⇔ p = q and cplx(p) = Θ(cplx(q)) (“clique”)

Moyen, Simonsen Rice – intensional

slide-22
SLIDE 22

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Asperti-Rice’s Theorem

A first intensional version of Rice’s Theorem. pAq ⇔ p = q and cplx(p) = Θ(cplx(q)) (“clique”) Theorem (Asperti, ’08) Any non-trivial set of programs which is the union of classes of A is undecidable.

Moyen, Simonsen Rice – intensional

slide-23
SLIDE 23

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Asperti-Rice’s Theorem

A first intensional version of Rice’s Theorem. pAq ⇔ p = q and cplx(p) = Θ(cplx(q)) (“clique”) Theorem (Asperti, ’08) Any non-trivial set of programs which is the union of classes of A is undecidable. The set of programs computing the sorting function in polynomial time.

Moyen, Simonsen Rice – intensional

slide-24
SLIDE 24

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Asperti-Rice’s Theorem

A first intensional version of Rice’s Theorem. pAq ⇔ p = q and cplx(p) = Θ(cplx(q)) (“clique”) Theorem (Asperti, ’08) Any non-trivial set of programs which is the union of classes of A is undecidable. The set of programs computing the sorting function in polynomial time. Proof: Same as Rice! p not equivalent to infinite loop. q′(x) = q(0); p(x).

Moyen, Simonsen Rice – intensional

slide-25
SLIDE 25

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Asperti-Rice’s Theorem

A first intensional version of Rice’s Theorem. pAq ⇔ p = q and cplx(p) = Θ(cplx(q)) (“clique”) Theorem (Asperti, ’08) Any non-trivial set of programs which is the union of classes of A is undecidable. The set of programs computing the sorting function in polynomial time. Proof: Same as Rice! p not equivalent to infinite loop. q′(x) = q(0); p(x). If q(0) terminates, it does so with a fixed complexity so p and q′ have the same complexity up to an additive factor.

Moyen, Simonsen Rice – intensional

slide-26
SLIDE 26

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R Rice: undecidable Moyen, Simonsen Rice – intensional

slide-27
SLIDE 27

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R same f, same time A Rice: undecidable Moyen, Simonsen Rice – intensional

slide-28
SLIDE 28

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R same f, same time A Rice: undecidable Asperti: undecidable Moyen, Simonsen Rice – intensional

slide-29
SLIDE 29

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R A same f, same space Rice: undecidable Asperti: undecidable Moyen, Simonsen Rice – intensional

slide-30
SLIDE 30

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R A same f, same space Rice: undecidable Asperti: undecidable Moyen, Simonsen Rice – intensional

slide-31
SLIDE 31

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R A Rice: undecidable Asperti: undecidable When does it become decidable? Moyen, Simonsen Rice – intensional

slide-32
SLIDE 32

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R A Rice: undecidable Asperti: undecidable When does it become decidable? Moyen, Simonsen Rice – intensional

slide-33
SLIDE 33

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R A Rice: undecidable Asperti: undecidable When does it become decidable? Moyen, Simonsen Rice – intensional

slide-34
SLIDE 34

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The semantics tunnel (2)

R A Rice: undecidable Asperti: undecidable When does it become decidable? Moyen, Simonsen Rice – intensional

slide-35
SLIDE 35

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The equivalences lattice

Not the subject of today’s talk!

The set of all equivalences is a complete lattice. ⊥: equality, ⊤: one class with everything.

⊤ ⊥ Moyen, Simonsen Rice – intensional

slide-36
SLIDE 36

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The equivalences lattice

Not the subject of today’s talk!

The set of all equivalences is a complete lattice. ⊥: equality, ⊤: one class with everything. Rice: nothing in the principal filter at R is decidable.

⊤ ⊥ R Rice: not decidable Moyen, Simonsen Rice – intensional

slide-37
SLIDE 37

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The equivalences lattice

Not the subject of today’s talk!

The set of all equivalences is a complete lattice. ⊥: equality, ⊤: one class with everything. Rice: nothing in the principal filter at R is decidable. Asperti: nothing in the principal filter at A is decidable.

⊤ ⊥ A R Rice: not decidable Asperti: not decidable Moyen, Simonsen Rice – intensional

slide-38
SLIDE 38

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

The equivalences lattice

Not the subject of today’s talk!

The set of all equivalences is a complete lattice. ⊥: equality, ⊤: one class with everything. Rice: nothing in the principal filter at R is decidable. Asperti: nothing in the principal filter at A is decidable.

⊤ ⊥ A R Rice: not decidable Asperti: not decidable

Complicated and interesting structure. Ongoing works with J. G. Simonsen and J. Avery.

Moyen, Simonsen Rice – intensional

slide-39
SLIDE 39

First generalisation

slide-40
SLIDE 40

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Today’s talk

Two generalisations of Rice’s Theorem relaxing the extensionality condition.

1 Rather than searching equivalences more precises than R,

keep it but consider sets that are not just union of classes.

2 Try the same approach with a wide range of others

equivalences.

Moyen, Simonsen Rice – intensional

slide-41
SLIDE 41

Under- and over- approximations

Programs Programs computing a Ptime function

is not PPtime, the set of polytime programs. It is undecidable by Rice’s Theorem.

slide-42
SLIDE 42

Under- and over- approximations

Programs Programs computing a Ptime function Under-approximations, e.g. ICC criterions

is an ICC criterion if it captures one program for each Ptime function.

slide-43
SLIDE 43

Under- and over- approximations

Programs Programs computing a Ptime function Under-approximations, e.g. ICC criterions

is an ICC criterion if it captures one program for each Ptime function.

slide-44
SLIDE 44

Under- and over- approximations

Programs Programs computing a Ptime function Under-approximations, e.g. ICC criterions Over-approximation

Can be decidable and “small enough”?

slide-45
SLIDE 45

Under- and over- approximations

Programs Programs computing a Ptime function Under-approximations, e.g. ICC criterions Over-approximation

Can be decidable and “small enough”? Upper bound: p ∈ ⇒ p ∈ Ptime.

slide-46
SLIDE 46

Under- and over- approximations

Programs Programs computing a Ptime function Under-approximations, e.g. ICC criterions Over-approximation

Can be decidable and “small enough”? Upper bound: p ∈ ⇒ p ∈ Ptime. Lower bound: p / ∈ ⇒ p / ∈ Ptime.

slide-47
SLIDE 47

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Vocabulary

A set of programs is: non-trivial if it is neither empty, nor the set of all programs. extensional if it is the union of classes of R; partially extensional (for F) if it contains all the programs with p ∈ F (over approximation). extensionally complete (for F) if it contains one program for each f ∈ F. extensionally sound (for F) if it contains only programs with p ∈ F (under approximation). an ICC characterisation (of F) if it is both extensionally sound and complete for F. extensionally universal if it is extensionally complete for the set of computable partial functions.

Moyen, Simonsen Rice – intensional

slide-48
SLIDE 48

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal.

Moyen, Simonsen Rice – intensional

slide-49
SLIDE 49

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Definition Two sets A and B are recursively separable if there exists C decidable with A ⊂ C and B C = ∅.

Moyen, Simonsen Rice – intensional

slide-50
SLIDE 50

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

B A

Moyen, Simonsen Rice – intensional

slide-51
SLIDE 51

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

B A C

Moyen, Simonsen Rice – intensional

slide-52
SLIDE 52

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

B A

Moyen, Simonsen Rice – intensional

slide-53
SLIDE 53

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

B A C

Moyen, Simonsen Rice – intensional

slide-54
SLIDE 54

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Definition Two sets A and B are recursively separable if there exists C decidable with A ⊂ C and B C = ∅.

Moyen, Simonsen Rice – intensional

slide-55
SLIDE 55

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Definition Two sets A and B are recursively separable if there exists C decidable with A ⊂ C and B C = ∅. “Decidable over-approximation of A that does not intersect B.”

Moyen, Simonsen Rice – intensional

slide-56
SLIDE 56

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Definition Two sets A and B are recursively separable if there exists C decidable with A ⊂ C and B C = ∅. “Decidable over-approximation of A that does not intersect B.” Example A = { p : p (0) = 0 } B = { p : p (0) / ∈ {0, ⊥} }

  • recursively inseparable

Moyen, Simonsen Rice – intensional

slide-57
SLIDE 57

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example A = { p : p (0) = 0 } B = { p : p (0) / ∈ {0, ⊥} }

  • recursively inseparable

Moyen, Simonsen Rice – intensional

slide-58
SLIDE 58

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example A = { p : p (0) = 0 } B = { p : p (0) / ∈ {0, ⊥} }

  • recursively inseparable

Proof. P decidable, partially extensional for p, P contains no program for q. r’(x) = if r(0)=0 then p(x) else q(x)

Moyen, Simonsen Rice – intensional

slide-59
SLIDE 59

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example A = { p : p (0) = 0 } B = { p : p (0) / ∈ {0, ⊥} }

  • recursively inseparable

Proof. P decidable, partially extensional for p, P contains no program for q. r’(x) = if r(0)=0 then p(x) else q(x) r (0) = 0 ⇒ r’ ∈ P r (0) / ∈ {0, ⊥} ⇒ r’ / ∈ P

Moyen, Simonsen Rice – intensional

slide-60
SLIDE 60

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

First Result

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example A = { p : p (0) = 0 } B = { p : p (0) / ∈ {0, ⊥} }

  • recursively inseparable

Proof. P decidable, partially extensional for p, P contains no program for q. r’(x) = if r(0)=0 then p(x) else q(x) r (0) = 0 ⇒ r’ ∈ P r (0) / ∈ {0, ⊥} ⇒ r’ / ∈ P

  • recusively separated by P.

Moyen, Simonsen Rice – intensional

slide-61
SLIDE 61

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Examples

Theorem Any non-empty, partially extensional and decidable set is extensionally universal.

Moyen, Simonsen Rice – intensional

slide-62
SLIDE 62

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Examples

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example A decidable set containing all programs for the identity also contains programs for constant functions, the infinite loop, sorting, SAT, deciding correctness of MELL proof nets, . . .

Moyen, Simonsen Rice – intensional

slide-63
SLIDE 63

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Examples

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example A decidable set containing all programs for the identity also contains programs for constant functions, the infinite loop, sorting, SAT, deciding correctness of MELL proof nets, . . . Example (Rice) Any non-empty extensional set is partially extensional. Hence, if decidable, must be extensionally universal, and thus trivial.

Moyen, Simonsen Rice – intensional

slide-64
SLIDE 64

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Examples

Theorem Any non-empty, partially extensional and decidable set is extensionally universal.

Moyen, Simonsen Rice – intensional

slide-65
SLIDE 65

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Examples

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example Any computable function is computed by infinitely many programs: a finite set is decidable, hence if partially extensional would be extensionally universal.

Moyen, Simonsen Rice – intensional

slide-66
SLIDE 66

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Examples

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example Any computable function is computed by infinitely many programs: a finite set is decidable, hence if partially extensional would be extensionally universal. Example Any computable function is computed by programs of arbitrarily large size.

Moyen, Simonsen Rice – intensional

slide-67
SLIDE 67

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Theorem Any non-empty, partially extensional and decidable set is extensionally universal.

Moyen, Simonsen Rice – intensional

slide-68
SLIDE 68

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Theorem Any non-empty, partially extensional and decidable set is extensionally universal. Example Any decidable set containing all programs for Ptime functions contains programs for any computable function.

Moyen, Simonsen Rice – intensional

slide-69
SLIDE 69

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Programs Programs computing a Ptime function Over-approximation

Moyen, Simonsen Rice – intensional

slide-70
SLIDE 70

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Programs Programs computing a Ptime function Over-approximation “good” sort

Moyen, Simonsen Rice – intensional

slide-71
SLIDE 71

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Programs Programs computing a Ptime function Over-approximation “good” sort “bad” sort

Moyen, Simonsen Rice – intensional

slide-72
SLIDE 72

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Programs Programs computing a Ptime function Over-approximation “good” sort “bad” sort Ackermann ? Hercules vs Hydra ?

Moyen, Simonsen Rice – intensional

slide-73
SLIDE 73

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Programs Programs computing a Ptime function Over-approximation “good” sort “bad” sort Ackermann ? Hercules vs Hydra ? SAT

Moyen, Simonsen Rice – intensional

slide-74
SLIDE 74

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Programs Programs computing a Ptime function Over-approximation “good” sort “bad” sort Ackermann ? Hercules vs Hydra ? SAT ? ?

Moyen, Simonsen Rice – intensional

slide-75
SLIDE 75

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example

Programs Programs computing a Ptime function Over-approximation “good” sort “bad” sort Ackermann ? Hercules vs Hydra ? SAT ? ? ?

Moyen, Simonsen Rice – intensional

slide-76
SLIDE 76

Second generalisation

slide-77
SLIDE 77

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Switching families

Definition (S, ≈): a set and an equivalence. switching family compatible with ≈: a family I = (πs)s∈S of computable total functions πs : S × S → S

Moyen, Simonsen Rice – intensional

slide-78
SLIDE 78

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Switching families

Definition (S, ≈): a set and an equivalence. switching family compatible with ≈: a family I = (πs)s∈S of computable total functions πs : S × S → S πs(x, y) ≈    x y ???

Moyen, Simonsen Rice – intensional

slide-79
SLIDE 79

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Switching families

Definition (S, ≈): a set and an equivalence. switching family compatible with ≈: a family I = (πs)s∈S of computable total functions πs : S × S → S πs(x, y) ≈    x y ???   for all or some x, y.

Moyen, Simonsen Rice – intensional

slide-80
SLIDE 80

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Switching families

Definition (S, ≈): a set and an equivalence. switching family compatible with ≈: a family I = (πs)s∈S of computable total functions πs : S × S → S AI = { s ∈ S : ∀x, y.πs(x, y) ≈ x } BI = { s ∈ S : ∀x, y.πs(x, y) ≈ y } πs(x, y) ≈    x y ???   for all or some x, y.

Moyen, Simonsen Rice – intensional

slide-81
SLIDE 81

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Switching families

Definition (S, ≈): a set and an equivalence. switching family compatible with ≈: a family I = (πs)s∈S of computable total functions πs : S × S → S AI = { s ∈ S : ∀x, y.πs(x, y) ≈ x } BI = { s ∈ S : ∀x, y.πs(x, y) ≈ y }

  • recursively inseparable.

πs(x, y) ≈    x y ???   for all or some x, y.

Moyen, Simonsen Rice – intensional

slide-82
SLIDE 82

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Switching families

Definition (S, ≈): a set and an equivalence. switching family compatible with ≈: a family I = (πs)s∈S of computable total functions πs : S × S → S AI = { s ∈ S : ∀x, y.πs(x, y) ≈ x } BI = { s ∈ S : ∀x, y.πs(x, y) ≈ y }

  • recursively inseparable.

Example Projections can form a switching family.

Moyen, Simonsen Rice – intensional

slide-83
SLIDE 83

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Switching families

Definition (S, ≈): a set and an equivalence. switching family compatible with ≈: a family I = (πs)s∈S of computable total functions πs : S × S → S AI = { s ∈ S : ∀x, y.πs(x, y) ≈ x } BI = { s ∈ S : ∀x, y.πs(x, y) ≈ y }

  • recursively inseparable.

Example Projections can form a switching family. Example (Standard switching family) r′(x) = πr(p, q)(x) = if r(0)=0 then p(x) else q(x). Compatible with R (and many others).

Moyen, Simonsen Rice – intensional

slide-84
SLIDE 84

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Vocabulary

P: equivalence on programs. A set of programs is: extensional compatible if it is the union of blocks of P; partially extensional partially compatible if it contains one block of P; extensionally complete complete (for a set of blocks) if it intersects each of these; extensionally sound an ICC characterisation extensionally universal universal if it interesects each single block of P.

Moyen, Simonsen Rice – intensional

slide-85
SLIDE 85

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Second Result

Theorem Let P be a partition of a set S and I = (πs)s∈S be a switching family compatible with it. Any non-empty decidable partially compatible subset of S is universal.

Moyen, Simonsen Rice – intensional

slide-86
SLIDE 86

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Second Result

Theorem Let P be a partition of a set S and I = (πs)s∈S be a switching family compatible with it. Any non-empty decidable partially compatible subset of S is universal. Proof. [x] ⊂ S′, [y] S′ = ∅ s′ = πs(x, y) πs(x, y)Px ⇒ s′ ∈ S′ πs(x, y)Py ⇒ s′ / ∈ S′

  • recursively inseparable.

Moyen, Simonsen Rice – intensional

slide-87
SLIDE 87

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (1)

Theorem Any non-empty decidable partially compatible set of programs is universal.

Moyen, Simonsen Rice – intensional

slide-88
SLIDE 88

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (1)

Theorem Any non-empty decidable partially compatible set of programs is universal. Example (Complexity) Φ: complexity measure (Blum). p ≡Φ q iff Φp ∈ Θ(Φq). The standard switching family is compatible with ≡Φ. r′(x) = πr(p, q)(x) = if r(0)=0 then p(x) else q(x). when r(0) terminates it does so with a constant complexity. Any non-empty decidable set of programs partially compatible with ≡Φ is universal and must contain programs of arbitrarily high complexity.

Moyen, Simonsen Rice – intensional

slide-89
SLIDE 89

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (2)

Theorem Any non-empty decidable partially compatible set of programs is universal.

Moyen, Simonsen Rice – intensional

slide-90
SLIDE 90

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (2)

Theorem Any non-empty decidable partially compatible set of programs is universal. Example (Polynomial time) Φ: time complexity. PPtime: set of polytime programs (not all programs computing Ptime functions); it is undecidable and partially compatible with ≡Φ. Any decidable set of programs including all polytime programs also includes programs of arbitrarily high time complexity. Any attempt at finding a decidable over-approximation of PPtime is doomed to also contain many extremely “bad” programs.

Moyen, Simonsen Rice – intensional

slide-91
SLIDE 91

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (2)

Programs Polytime programs Over-approximation

Moyen, Simonsen Rice – intensional

slide-92
SLIDE 92

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (2)

Programs Polytime programs Over-approximation “good” sort “bad” sort

Moyen, Simonsen Rice – intensional

slide-93
SLIDE 93

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (2)

Programs Polytime programs Over-approximation “good” sort “bad” sort exponential not PR

Moyen, Simonsen Rice – intensional

slide-94
SLIDE 94

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (2)

Programs Polytime programs Over-approximation “good” sort “bad” sort ? exponential not PR

Moyen, Simonsen Rice – intensional

slide-95
SLIDE 95

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (3)

Theorem Any non-empty decidable partially compatible set of programs is universal.

Moyen, Simonsen Rice – intensional

slide-96
SLIDE 96

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (3)

Theorem Any non-empty decidable partially compatible set of programs is universal. Example (Linear space (not closed under composition)) Φ: space complexity. PLinSpace: set of programs computing in linear space; it is partially compatible with ≡Φ. Any decidable set of programs including all linear space programs also contains programs of arbitrarily high space complexity.

Moyen, Simonsen Rice – intensional

slide-97
SLIDE 97

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (Asperti-Rice)

Theorem Any non-empty decidable partially compatible set of programs is universal.

Moyen, Simonsen Rice – intensional

slide-98
SLIDE 98

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Example (Asperti-Rice)

Theorem Any non-empty decidable partially compatible set of programs is universal. Example (Asperti-Rice) The standard switching family is compatible with A = R ≡Φ. Any decidable non-empty set partially compatible with A is universal. Especially, the only decidable unions of blocks of A are the trivial ones.

Moyen, Simonsen Rice – intensional

slide-99
SLIDE 99

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Going further

Example (Spambot) p ≡ q if they send the same number of mails (not a Blum complexity measure). The standard switching family is compatible with it. Any decidable set containing all the programs that never send mail also contains spambots.

Moyen, Simonsen Rice – intensional

slide-100
SLIDE 100

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Going further

Example (Spambot) p ≡ q if they send the same number of mails (not a Blum complexity measure). The standard switching family is compatible with it. Any decidable set containing all the programs that never send mail also contains spambots. Other equivalences?

Moyen, Simonsen Rice – intensional

slide-101
SLIDE 101

Rice’s and Asperti-Rice’s Theorems First generalisation Second generalisation

Going further

Example (Spambot) p ≡ q if they send the same number of mails (not a Blum complexity measure). The standard switching family is compatible with it. Any decidable set containing all the programs that never send mail also contains spambots. Other equivalences? Other switching families?

Moyen, Simonsen Rice – intensional