/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q28P Rice’s theorem. Let P  be any... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Rice’s theorem. Let P be any nontrivial property of the language of a Turing machine. Prove that the problem of determining whether a given Turing machine’s language has property P is undecidable. In more formal terms, let P be a language consisting of Turing machine descriptions where P fulfils two conditions. First, P is nontrivial—it contains some, but not all, TM descriptions. Second, P is a property of the TM’s language—whenever LM1=LM2, we haveM1∈P if and only iffM2∈P . Here, M1 and M2 are any TMs. Prove that P is an undecidable language.

Short Answer

Expert verified

It is proved P is undecidable.

Step by step solution

01

Undecidability

A problem is undecidable if no Turing Machine exist which will halt in finite amount of time.

02

Proving   as undecidable

Let us assume P is a decidable language and let Turing Machine RP that decides P

.

We will design Turing Machine s that will decide ATMby the use ofRP. First, let T' be a Turing Machine that always rejects for any input.

This means: LT'=∅.

For clarity we will assume that T'∉Pso that we not proceed with P¯ instead of P if T'∈P. Because P is not trivial, so there exists a Turing Machine T withT∈P.

Now we will design Turing Machine S using RP because RP

s= on inputM,w

  • Use M and w to construct the following TM MW.

Mw=on input x Mw=oninputxMw=oninputx

Run M on w .

If it halts and rejects, reject.

If it accepts, proceed to stage 2.

Run T on x . If it accepts, accept.

  • Use TMRPto determine whether Mw∈P.

If YES, accept

Else

If NO, reject.

Turing Machine Mw runs T if M accepts w .

Hence

  • LMW=LTif M accepts w
  • If reject then LM=∅.

Therefore, MW∈Pif and only if M accepts w.

But ATM is undecidable, so s which is made similar to RP cannot decide P .

Thus, P is undecidable.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Study anywhere. Anytime. Across all devices.