Тёмный

Acceptance for Turing Machines is Undecidable, but Recognizable 

Easy Theory
Подписаться 27 тыс.
Просмотров 35 тыс.
50% 1

Here we show that the A_TM problem is undecidable and recognizable, which is asking if there is a decider for whether an arbitrary Turing Machine accepts an arbitrary input. The proof is by contradiction and diagonalization.
What is a Turing Machine? It is a state machine that has a set of states, input, tape alphabet, a start state, exactly one accept state, and exactly one reject state. See • Turing Machines - what... for more details.
Easy Theory Website: www.easytheory...
Become a member: / @easytheory
Donation (appears on streams): streamlabs.com...
Paypal: paypal.me/easy...
Patreon: / easytheory
Discord: / discord
#easytheory
Merch:
Language Hierarchy Apparel: teespring.com/...
Pumping Lemma Apparel: teespring.com/...
If you like this content, please consider subscribing to my channel: / @easytheory
Gold Supporters: Micah Wood
Silver Supporters: Timmy Gy
▶SEND ME THEORY QUESTIONS◀
ryan.e.dougherty@icloud.com
▶ABOUT ME◀
I am a professor of Computer Science, and am passionate about CS theory. I have taught many courses at several different universities, including several sections of undergraduate and graduate theory-level classes.

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 61   
@EasyTheory
@EasyTheory 3 года назад
Thanks to my supporters Yuri, vinetor, Ali (RU-vid) and Bruno, Timmy, Micah (Patreon) for making this video possible! If you want to contribute, links are in the video description.
@paolacalle5737
@paolacalle5737 2 года назад
I learned this two weeks ago and could never grasp what exactly the contradiction was until I watched this video! Thank you so much truly appreciate you.
@alphadal99
@alphadal99 3 года назад
Thank you so much man you are the best on youtube you made everything complicated easy. Much love from Portugal
@EasyTheory
@EasyTheory 3 года назад
Thanks very much!
@oribenez
@oribenez Год назад
Finally, I understand it. Thank you for an excellent explanation.
@dn6824
@dn6824 3 месяца назад
what an elegant proof. i did not understand the contradiction before but it makes so much sense now. for context, i thought the contradiction was for all inputs to D. i see now that all it took was one input to D (namely D's encoding itself) to show why D cannot exist. thank you for the clear explanation
@AkashKumar-lr6hc
@AkashKumar-lr6hc Год назад
first time i understood the concept behind halting problem proof .. thanks a lot. 😄
@frazebean5117
@frazebean5117 11 дней назад
Thank you so much for this video man I had trouble understanding this topic in university but you make it seem easy.
@betul3341
@betul3341 Год назад
Thanks dude 👍🏻 I finally understood this part
@y.x3476
@y.x3476 Год назад
Much clearly than anyone! Thank you
@utkuceylan2309
@utkuceylan2309 10 месяцев назад
You are a life saver man! Thank you
@JamesBiser
@JamesBiser 8 дней назад
thank you for this mate.
@conradhansen-quartey5053
@conradhansen-quartey5053 Год назад
This ATM proof really helped me understand
@Zerpyderp
@Zerpyderp Год назад
beauty, was looking for this!
@momusic1427
@momusic1427 Год назад
Finally I understand the contradiction . thanks man !
@madhavvyas3715
@madhavvyas3715 2 года назад
THANK YOU SO MUCH FOR THIS .
@amitozjatana4175
@amitozjatana4175 4 месяца назад
really helpful 🙏
@pohloliq2122
@pohloliq2122 3 года назад
I finally understand it fully
@EasyTheory
@EasyTheory 3 года назад
Great!
@superdahoho
@superdahoho 3 года назад
but that's just the nature of D right? it always gives the opposite of its input. it just proves that a decider that does the opposite cannot exist, doesn't mean A_TM is undecidable. If you made D that accepts when accepts, and reject when rejects, doesn't that also prove it's a decider?
@KnakuanaRka
@KnakuanaRka 3 года назад
I don’t quite understand what you mean; if you can make a decider for ATM, what prevents you from making D with it? If D can’t exist, then there can’t be an H that you can make D from. And what does the last part mean?
@barsbarancicek4138
@barsbarancicek4138 9 месяцев назад
@@KnakuanaRka Well i am 2 years late to this conversation but hopefully i will get an answer because i am stuck at the same point. What @superdahoho means to say is D can not exist because it outputs the opposite. D not existing has nothing to do with it using H. So how can we say H cannot exist when H is not the reason for D not existing?
@KnakuanaRka
@KnakuanaRka 9 месяцев назад
@@barsbarancicek4138 The point of the argument is that if H (the decider for ATM) exists, then we can construct D, which results in contradictory behavior. Since we can’t have that, D cannot exist, which means H cannot exist either.
@kailanefelix2890
@kailanefelix2890 7 месяцев назад
@@KnakuanaRka it doesn't make any sense!!! I'm with @superdahoho. I can't understand this proof bc the problem is with D.
@KnakuanaRka
@KnakuanaRka 7 месяцев назад
@@kailanefelix2890 The basic process is a proof by contradiction. If a decider for ATM exists, we can use it to make D, so D exists. Applying D to itself causes contradictory behavior (if it accepts, then it rejects, and vice versa); we can’t have that, so D can’t exist, meaning the ATM decider doesn’t exist. It’s a similar form of contradiction to the proof of an infinite number of primes. If there is a finite list of primes (a, b, c…. z), then you could multiply all these together to get P, and add 1 to get P+1. Then we can get P+1’s prime factors (p, q…); these exhibit contradictory behavior, as they are both in the list of primes (as they are prime) and not in the list (P is a multiple of every entry in the list, so P+1 is not, and its factors cannot be in the list). Thus P+1 cannot exist, so the finite list of primes doesn’t either; the list of primes must be infinite to prevent this contradiction from happening.
@Elliot-7972
@Elliot-7972 Месяц назад
Thanks!!!
@Patrickblox
@Patrickblox 2 года назад
good shit mang thx so much luv u
@eatyourspinachtomperez8700
@eatyourspinachtomperez8700 2 года назад
Very cool! Thank you.
@blaze9558
@blaze9558 Год назад
Thank you so much❤
@storyofbo
@storyofbo 5 месяцев назад
For anyone still struggling with this here’s how I understand it. Assume you could know the number of ants in the world with 100% accuracy. You could definitely do that by getting all the ants and counting them. If you could get every ant that means you could definitely locate every ant. But it is impossible to locate every ant which means it’s impossible to count all the ants which means it’s impossible to know the entire ant population with 100% accuracy. The point is to assume the statement is true, find a smaller step that if done would guarantee the statement. Tweak that step in a way which would easily be allowed. Then see if it breaks everything.
@SunShine-xc6dh
@SunShine-xc6dh 3 месяца назад
Why is it impossible to locate every ant?
@storyofbo
@storyofbo 3 месяца назад
@@SunShine-xc6dh Looking at this now I don't think my explanation really applies to reductions since if I recall they actually work the other way around (Known undecidable reduces to possibly undecidable if true both are undecidable otherwise keep testing). But to answer your question It would be because how would you know when you counted the last ant? You would need to search the entire planet with 100% accuracy and even then how do you know ants didn't reproduce in that time, or maybe a spot you checked didn't have an ant and then later an ant you hadn't counted walked there would you infinitely check the entire planet with 100% accuracy at least with our current technology that is impossible. Therefore, the original original statement
@hammadmusakhel5102
@hammadmusakhel5102 2 года назад
u r a legend, no cap.
@mohammedshahab705
@mohammedshahab705 Год назад
no u r a legend, no cap
@shadowdragon2484
@shadowdragon2484 2 месяца назад
This argument is improperly defined. lets define D(f) = ~H(f, "f"), take a moment to convince yourself this is equivalent to what was said in the video. If we walk through the execution pipeline, first D is called with argument f. Then H is called with arguments f and "f". Finally f is called with argument "f" and if it accepts we reject and vice versa. Now lets evaluate the alleged contradiction case: D(D) = ~H(D, "D"). Once again convince yourself of the validity of this notation. Here we can see the issue, an argument mismatch. In the execution pipeline D is called first with argument D, then H is called with arguments D and "D". Which calls D with argument "D" and the result is the opposite of that. I hope you can convince yourself from there of the fact that D(D) = ~D("D") is not actually a contradiction at all, that is if D(D) accepts, all that means is D("D") rejects.
@joserichorachmat8191
@joserichorachmat8191 3 года назад
So, in this case, the property of TM D (always outputting the opposite of TM H) is one we derive just for the proof? As is the nature of any decider TM to freely do so?
@KnakuanaRka
@KnakuanaRka 9 месяцев назад
What’s wrong with defining a TM that does that?
@KnakuanaRka
@KnakuanaRka 7 месяцев назад
What's wrong with that? If there is an H, we can use it to make D, and D can cause contradictory behavior, so D can't exist, and thus neither does H. Standard proof by contradiction.
@keerthi1504
@keerthi1504 5 месяцев назад
We have *created* D to output the opposite..hence the contradiction arised. What if we create D such that the output is the same..it then does not create any contradiction. Please help..
@xufrank9945
@xufrank9945 5 месяцев назад
I got the same confusion
@dn6824
@dn6824 3 месяца назад
if you create a D s.t. the output is the same then that doesnt prove anything about L's decidability. you just found one specific case (out of an infinitude of cases) that shows it MIGHT be decidable. however, we want to find ONE concrete counterexample s.t. we create a decider whose output causes a contradiction on ONE concrete input. if we can find ONE specific case to contradict the claim (by assumption) that L is decidable, then our claim is wrong and therefore L must be undecidable
@rasikaraja1840
@rasikaraja1840 Год назад
Awesome 😎!!!
@otabekabduraimov5912
@otabekabduraimov5912 9 месяцев назад
thanks
@SunShine-xc6dh
@SunShine-xc6dh 3 месяца назад
Do the opposite is not part of h and is the part that breaks d. They aren't the same if h accepts h then h accepts h if it rejects it rejects the contradiction only exists in d Also running d on it code isn't the same as running it on its resulting output which can't exist without an initial input
@brendawilliams8062
@brendawilliams8062 3 месяца назад
Agreed. Next neighbor may cut you short
@vimalathithand917
@vimalathithand917 9 месяцев назад
Finally !!! I understand :)'
@MEWOVER9000
@MEWOVER9000 2 года назад
Hey there, just a quick question. I see that you proved Atm to be undecidable, but how is it recognizable?
@alexm.2960
@alexm.2960 2 года назад
If M accepts w, Step 1 "Run M on w" will finish in a finite amount of time.
@nargesghanbari2340
@nargesghanbari2340 2 года назад
Tu es brillant!!
@owen5106
@owen5106 2 года назад
If we run M on w and it runs forever the first time, but will accept the second w in the language, how do we know its Turing Recognizable, if we never get to the second input? This is what im confused about.
@KnakuanaRka
@KnakuanaRka 9 месяцев назад
The second w? What do you mean?
@KnakuanaRka
@KnakuanaRka 7 месяцев назад
I'm not sure what you mean; the point is that the recognized emulates running M on w, and accepts if the emulation does. If M accepts w after some number of steps, so does the recognizer. So what do you mean related to the second w?
@CLG111
@CLG111 Год назад
How do you just arbitrarily say that turing machine D gives the opposite result? Why is this? There's no explanation as to why that is the case. This needs to be explained better.
@jmm5765
@jmm5765 10 месяцев назад
If you run a decider (we assumed M) on an input, it will either accept OR reject, nothing else. And so when D runs M it gets a result back from it, either "accept" or "reject". You can then invert this result. The easiest way would be to use binary. Let's assume if M accepts, it outputs a 1, if it rejects, it outputs a 0. What we do is that after M has ran, we can have D look at the output and if it's a 1, D itself outputs a 0, and if it's 0, D itself outputs a 1. Does this make sense?
@gobwinning
@gobwinning 9 месяцев назад
@@jmm5765but isnt that kind of "forcing" a contradiction? How would it be different from using a decidable language i.e. the Acceptance DFA and outputting the opposite result of that/claiming it's a contradiction?
@jmm5765
@jmm5765 9 месяцев назад
@@gobwinning Well not quite, your scenario would be just inverting the input, which creates a machine (B) that inverts the input of another one (A). Each machine would still be consistent in its results, they would just contradict each other, which is fine. What happens here though is slightly different, by creating this machine D that inverts the result of M, you cause D to contradict *itself*, and that's where the logical contradiction arises. Does that help/make sense?
@kailanefelix2890
@kailanefelix2890 7 месяцев назад
@@jmm5765 I'm having the same questions as @7ow1nn1ng, that doesn't make any sense for me. How does D contradict itself? And how do D contradictions implies M impossibility of existence?
@KnakuanaRka
@KnakuanaRka 7 месяцев назад
@@kailanefelix2890 Basically, the cause of the contradiction is this: The D machine runs H on where M is a Turing machine (determining if the inputting the machine’s code into itself is accepted or not), and then returns the opposite (accept if H rejects, and vice versa). So what happens when you run H on ? This would basically determine whether or not D accepts D. However, internally, this would cause D to run H (the same thing), and then do the opposite. So if H accepts in the emulation, it rejects in the final output, and vice versa. This is a contradiction; you can’t assign a consistent value to the output because the internal emulation would require the same calculation to give the opposite response. It’s similar to Epimenides’ paradox of “This statement is false”; assigning a true/false value to it would imply the opposite, so you can’t evaluate it. So if this can’t happen due to contradictory behavior, what went wrong? If D existed, we could easily cause this by running D, so D can’t exist. And if we had an oracle H, the steps to make D from it are pretty simple; in order for D to not exist to avoid the contradiction, the oracle must not exist, either. The oracle is the only weak point or assumption in creating the contradiction, as if we had an oracle, we could easily do the rest, so by proof by contradiction, it’s where we went wrong. I also find it convenient to express the whole thing in terms of programming pseudocode with more clear names, like this: Oracle (TM, inp): #Return true if TM accepts on inp, false if it rejects or never halts Defier(TM): return NOT(Oracle(TM,TM)); #Does this give true or false? Print(Oracle(Defier, Defier));
Далее
Emptiness for Turing Machines is Undecidable
9:00
Просмотров 17 тыс.
КОТЯТА НАУЧИЛИСЬ ГОВОРИТЬ#cat
00:13
How Many Twins Can You Spot?
00:17
Просмотров 20 млн
The Boundary of Computation
12:59
Просмотров 1 млн
Understanding the Halting Problem
6:33
Просмотров 82 тыс.
Busy Beaver Turing Machines - Computerphile
17:56
Просмотров 414 тыс.
Turing & The Halting Problem - Computerphile
6:14
Просмотров 857 тыс.
5. CF Pumping Lemma, Turing Machines
1:13:59
Просмотров 55 тыс.