Lex Fridman PodcastScott Aaronson: Computational Complexity and Consciousness | Lex Fridman Podcast #130
EVERY SPOKEN WORD
150 min read · 30,099 words- 0:00 – 3:31
Introduction
- LFLex Fridman
The following is a conversation with Scott Aaronson, his second time on the podcast. He is a professor at UT Austin, director of the Quantum Information Center, and previously a professor at MIT. Last time, we talked about quantum computing. This time, we talk about computation complexity, consciousness, and theories of everything. I'm recording this intro, as you may be able to tell, in a very strange room in the middle of the night. I'm not really sure how I got here or how I'm going to get out, but Hunter S. Thompson saying, I think applies to today and the last few days, and actually the last couple of weeks. "Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming, 'Wow, what a ride!'" So I figured whatever I'm up to here, and yes, lots of wine is involved, I'm gonna have to improvise, hence this recording. Okay, quick mention of each sponsor, followed by some thoughts related to the episode. First sponsor is SimpliSafe, a home security company I use to monitor and protect my apartment, though, of course, I'm always prepared with a fallback plan as a man in this world must always be. Second sponsor is Eight Sleep, a, uh, mattress that cools itself, measures heart rate variability, has an app, and has given me yet another reason to look forward to sleep, including the all-important power nap. Third sponsor is ExpressVPN, the VPN I've used for many years to protect my privacy on the internet. Finally, the fourth sponsor is BetterHelp, online therapy when you want to face your demons with a licensed professional, not just by doing David Goggins-like physical challenges like I seem to do on occasion. Please check out these sponsors in the description to get a discount and to support the podcast. As a side note, let me say that this is the second time I recorded a conversation outdoors. The first one was with Stephen Wolfram when it was actually sunny out. In this case, it was raining, which is why I found a covered outdoor patio, but I learned a valuable lesson, which is that raindrops can be quite loud on the hard metal surface of a patio cover. I did my best with the audio. I hope it still sounds okay to you. I'm learning, always improving. In fact, as Scott says, "If you always win, then you're probably doing something wrong." To be honest, I get pretty upset with myself when I fail, small or big, but I've learned that this feeling is priceless. It can be fuel when channeled into concrete plans of how to improve. So if you enjoy this thing, subscribe on, uh, YouTube, review it with five stars on Apple Podcast, follow on Spotify, support on Patreon, or connect with me on Twitter @lexfriedman. And now, here's my conversation with Scott Aaronson.
- 3:31 – 8:22
Simulation
- LFLex Fridman
Let's start with the most absurd question, but I've read you write some fascinating stuff about it, so, uh, let's go there. Are we living in a simulation?
- SAScott Aaronson
What difference does it make, Lex?
- LFLex Fridman
(laughs)
- SAScott Aaronson
I mean, I'm serious. What difference?
- LFLex Fridman
Because if we are living in a simulation, it raises the question, how real does something have to be in simulation for it n- it to be sufficiently immersive for us humans?
- SAScott Aaronson
Mm-hmm. But, I mean, even in principle, how could we ever know if we were in one, right? A perfect simulation by definition is something that's indistinguishable from the real thing.
- LFLex Fridman
But we didn't say anything about perfect. It could be imperfect.
- SAScott Aaronson
No, no. That's, that's right. Well, if, if it was an imperfect simulation, if we could hack it, you know, find a bug in it, then that would be one thing, right? If, if this was like The Matrix and there was a way for me to, you know, do flying kung fu moves or something by hacking the simulation, well then, you know, we would have to cross that bridge when we came to it, wouldn't we, right? (laughs)
- LFLex Fridman
(laughs)
- SAScott Aaronson
I mean, at that point, you know, i- i- it's, it's, uh, hard to see the difference between that and just, uh, uh, what people would ordinarily refer to as a world with miracles, you know? Uh...
- LFLex Fridman
What about from a different perspective, thinking about the universe as a computation, like a-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... program running on a computer.
- SAScott Aaronson
Uh-huh.
- LFLex Fridman
Is- That's kind of a neighboring concept. Do you, do-
- SAScott Aaronson
I- It is. It is an interesting and reasonably well-defined question to ask, "Is the world computable?"
- LFLex Fridman
Yeah.
- SAScott Aaronson
You know, you know, does the world satisfy what we would call in CS, the, uh, the Church-Turing thesis?
- LFLex Fridman
Yeah.
- SAScott Aaronson
That is, you know, uh, could we take any physical system and simulate it to, uh, you know, uh, any desired precision by a Turing machine, you know, given the appropriate input data, right? And so far, I think the indications are pretty strong that our world does seem to satisfy the Church-Turing thesis. Uh, uh, at least if it doesn't, then we haven't yet discovered why not. Uh, but, now does that mean that our universe is a simulation? Well, you know, that w- word seems to suggest that there is some other larger universe in which it is running, right?
- LFLex Fridman
Right.
- SAScott Aaronson
And the problem there is that if the simulation is perfect, then we're never going to be able to get any direct evidence about that other universe. You know, we will only be able to see, uh, the effects of the computation that is running in this universe.
- LFLex Fridman
Well, let's imagine an analogy.
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
Let's i- imagine a, a PC, a personal computer, a computer. Is it possible with the advent of artificial intelligence for the computer-... to look outside of itself to see, to understand its creator.
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
I mean, that's a sim-
- SAScott Aaronson
(chuckles)
- LFLex Fridman
Is that, is that a ridiculous connect analogy?
- SAScott Aaronson
Well, wi- well, w- well- well, I mean, with the computers that we actually have, I mean, first of all, uh, w- w- we all know that, uh, humans have done an imperfect job of, you know, in- enforcing the abstraction boundaries of computers, right?
- 8:22 – 14:02
Theories of everything
- SAScott Aaronson
be wrong.
- LFLex Fridman
But do you think, uh, on the physics side of things-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... you know, there's been, uh, recently a few folks, Eric Weinstein and, uh, Stephen Wolfram that came out with a theory of everything. I think there's a history of physicists dreaming and working on the unification of all the laws of physics.
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
Do you think it's possible that once we understand, uh, more physics, not necessarily the unification of the laws-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... but just understand physics more deeply at the fundamental level-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... we'll be able to start, you know, uh... (laughs) I mean, part of this is humorous, but, uh, looking to see if there's any bugs in the universe that could be exploited for, uh, you know, traveling a- at, uh, at not just the speed of light, but just traveling faster than our current, uh, spaceships can travel, all that kind of stuff?
- SAScott Aaronson
Well, I mean, to, to travel faster than our current spaceships could travel, you wouldn't need to find any bug in the universe, right? The known laws of physics, you know, let us go much faster up to the speed of light, right? And, you know, when people wanna go faster than the speed of light, well, we actually know something about what that would entail. Namely that, you know, according to relativity, that seems to entail communication backwards in time, okay? So then you have to worry about, uh, closed timelike curves and all of that stuff. So, you know, in some sense, we, we sort of know the price that you have to pay for these things, right? Uh, you know, we can't-
- LFLex Fridman
But under, under the current understanding of physics, yeah.
- SAScott Aaronson
That's right, that's right. We can't, you know, say that they're impossible, but we, you know, we know that sort of a lot else in physics breaks.
- LFLex Fridman
Yeah.
- SAScott Aaronson
Right? So, uh, now regarding, uh, Eric Weinstein and, and Stephen Wolfram, like, I wouldn't say that either of them has a theory of everything. I would say that they have ideas that they hope, you know, could someday lead to a theory of everything.
- LFLex Fridman
Is that a worthy pursuit?
- SAScott Aaronson
Well, I mean, certainly. Let's say by theory of everything, you know, we don't literally mean a theory of cats and of baseball and... you know, but we just me- mean it in the... in the more limited sense of everything. A fun- a, a fundamental theory of physics, right? Of all of the fundamental interactions of physics. Of course, such a theory, even after we had it, uh, you know, would leave the entire question of all the emergent behavior, right?
- LFLex Fridman
Yes.
- SAScott Aaronson
You know, to, uh, uh, to be explored. Uh, so it's... so it's only everything for a specific definition of everything. Okay, but in that sense, I would say, of course that's worth pursuing. I mean, that is the entire program of fundamental physics, right? All of my friends who do quantum gravity, who do string theory, who do anything like that, that is what's motivating them.
- LFLex Fridman
Yeah, it's, it's funny, though, but... and Eric Weinstein talks about this.
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
It is... I don't know much about the physics world-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... but I know about the AI world, and-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... it is a little... it- it is a little bit taboo, uh, to talk about AGI, for example-
- SAScott Aaronson
Hm.
- LFLex Fridman
... on the AI side.
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
So really, to talk about, uh, the d- the big dream of the community, I would say-
- 14:02 – 36:16
Consciousness
- SAScott Aaronson
nature."
- LFLex Fridman
Let me bring up the next topic that people-
- SAScott Aaronson
Mm.
- LFLex Fridman
... don't wanna mention, although they're getting more comfortable with it, is consciousness.
- SAScott Aaronson
Mm.
- LFLex Fridman
You mentioned that you have a talk on consciousness that I watched five minutes of, but the internet connection-
- SAScott Aaronson
Was, was thi-
- LFLex Fridman
... was really bad.
- SAScott Aaronson
... was thi- was this my talk about, you know, uh, uh, uh, refuting the integrated information theory?
- LFLex Fridman
Yes, it might have been.
- SAScott Aaronson
Which was this particular account of consciousness-
- LFLex Fridman
Yeah.
- SAScott Aaronson
... that, yeah, I think one can just show it doesn't work.
- LFLex Fridman
(laughs) But, so let me, uh-
- SAScott Aaronson
Much harder to say what does work. (laughs)
- LFLex Fridman
What does work, yeah.
- SAScott Aaronson
Yeah, yeah, yeah.
- LFLex Fridman
So let me ask, uh, maybe it'd be nice to, uh, comment on... You, you talk about also, like, the, the semi-hard g- problem of consciousness, or like-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... almost hard problem or kinda hard p-
- SAScott Aaronson
Yeah, pre- pretty hard problem-
- LFLex Fridman
Pretty hard.
- SAScott Aaronson
... I think I call it.
- LFLex Fridman
Great. So maybe can you, uh, talk about that, uh, their idea of, um, of, uh, the approach to modeling consciousness and why you don't find it convincing?
- SAScott Aaronson
Yeah.
- LFLex Fridman
What is it, first of all? What, how, what-
- SAScott Aaronson
O- okay. Well, so, so what, what, what I call the pretty hard problem of consciousness, this is my term, although many other people have said something equivalent to this, okay? Uh, but, uh, it, it's just, you know, the, the, the p- problem of, you know, giving an account of just which physical systems are conscious and which are not. Or, you know, if there were degrees of consciousness, then quantifying how conscious a given system is. Right?
- LFLex Fridman
Oh, awesome. So that's the pretty hard problem.
- SAScott Aaronson
Yeah, tha- that's what I mean by it. That-
- LFLex Fridman
That's it, I'm adopting it. Tha- I love it. It has a good-
- 36:16 – 46:28
Roger Penrose on consciousness
- SAScott Aaronson
you?
- LFLex Fridman
What are your thoughts... I'd be curious. You're-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... a good person to ask, which is, uh, Penrose's, Roger Penrose's work on consciousness saying that there, you know, there is some, uh, with axons and so on, there might be some biological places where quantum mechanics can come into play, and through that create consciousness somehow.
- SAScott Aaronson
Yeah. Okay, well, um, uh-
- LFLex Fridman
Are you familiar with his work at all?
- SAScott Aaronson
Of course. You know, I read Penrose's books as a teenager. They had a huge impact on me. Uh, uh, five or six years ago, I had the privilege to actually talk these things over with Penrose, you know, at some length, at a conference in, in Minnesota. And, uh, you know, he is a, a, you know, an amazing, uh, personality. I admire the fact that he was even raising such, uh, audacious questions at all. Uh, but, you know, to, to, to answer your question, I think the first thing we need to, uh, get clear on is that he is not merely saying that quantum mechanics is relevant to consciousness-
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
... right? That would be like a m-... you know, that would be tame compared to what he is saying, right? He is saying that, you know, even quantum mechanics is not good enough, right? If, because if, if supposing, for example, that the brain were a quantum computer, right? That's still a computer.
- LFLex Fridman
Yeah.
- SAScott Aaronson
You know, in fact, a quantum computer can be simulated by an ordinary computer.
- LFLex Fridman
That's right.
- SAScott Aaronson
It might merely need exponentially more time in order to do so, right? So that's simply not good enough for him. Okay. So what he wants is for the brain to be a quantum gravitational computer, or, or, uh, uh, uh, he wants the brain to be exploiting as yet unknown laws of quantum gravity, okay, which would, which would be uncomputable-
- LFLex Fridman
Uncomputable.
- SAScott Aaronson
... according to this.
- LFLex Fridman
That's the key point.
- SAScott Aaronson
Okay. Yes, yes. They would be literally uncomputable, and I've asked him, you know, to clarify this, but uncomputable even if you had an oracle for the halting problem, or in, you know, in, in ... or, you know, as high up as you want to go in the sort of high-
- LFLex Fridman
(laughs)
- SAScott Aaronson
... the usual hierarchy of uncomputability.
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
He wants to go beyond all of that. Okay. So, so, you know, just, just to be clear, like, you know, if, if we're keeping count of how many speculations-
- LFLex Fridman
(laughs)
- SAScott Aaronson
... you know, there's probably like at least five or six of them, right?
- LFLex Fridman
Yeah.
- SAScott Aaronson
There is first of all that there is some quantum gravity theory that would involve this kind of uncomputability, right? Most people who study quantum gravity would not agree with that. They would say that what we've learned, uh, you know, what little we know about quantum gravity from the, this AdS-CFT correspondence, for example, has been very much consistent with the broad idea of nature being computable, right? Um, but, uh, but all right.
- LFLex Fridman
So-
- SAScott Aaronson
But, but sup- supposing that he's right about that, then, you know, mo- what most physicists would say is that whatever new phenomena there are in quantum gravity, you know, they might be relevant at the singularities of black holes. They might be relevant at the Big Bang. Uh, they are plainly not relevant to something like the brain, you know, that is operating at ordinary temperatures-
- LFLex Fridman
Right.
- SAScott Aaronson
... you know, with, uh, ordinary chemistry. And, you know, the, the, the physics underlying the brain, they, they would say that we have, you know, the fundamental physics of the brain, they would say that we've pretty much completely known for, for generations now, right? Uh, because, you know, quantum field theory lets us sort of parameterize our ignorance, right? I mean, S- Sean Carroll has made this case in, you know, in great detail, right, that sort of whatever new effects are coming from quantum gravity, you know, they are sort of screened off by quantum field theory, right? And this is, this bring, you know, brings us to the whole idea of effective theories, right? But the ... Like we have, you know, the, in like the standard model of elementary particles, right, we have a quantum field theory that seems totally adequate for all of the terrestrial phenomena, right? The only things that it doesn't, you know, explain are, well, first of all, you know, the details of gravity, if you were to probe it, like at, at, uh, uh, you know, extremes of, you know, curvature, or at like incredibly small distances. It doesn't explain dark matter. It doesn't explain black hole singularities, right? But these are all very exotic things, very, you know, far removed from our life on Earth.
- LFLex Fridman
Yeah.
- 46:28 – 50:16
Turing test
- SAScott Aaronson
- LFLex Fridman
So on Alan Turing, you took part in the Loebner Prize? Uh-
- SAScott Aaronson
Uh, not really, no.
- LFLex Fridman
Or was it-
- SAScott Aaronson
I didn't. I mean, there was this, uh, uh-
- LFLex Fridman
Oh, so-
- SAScott Aaronson
... kind of ridiculous claim that was made, uh, some, almost a decade ago about an, a chatbot called Eugene Goostman.
- LFLex Fridman
Yeah, apologize. I guess you didn't participate as a judge in the Loebner Prize-
- SAScott Aaronson
I didn't, no.
- LFLex Fridman
... but you participated as a judge in that, I guess it was an ex- exhibition event or something like that, or with Eugene, uh-
- SAScott Aaronson
Yeah, no, Eugene Goostman, that was just me writing a blog post because some journalist-
- LFLex Fridman
Oh.
- SAScott Aaronson
... called me to ask about it.
- LFLex Fridman
Did you ever chat with him? I thought there was-
- SAScott Aaronson
I did chat with Eugene Goostman.
- LFLex Fridman
Okay.
- SAScott Aaronson
I mean, a bit, it was available on the web, the chapter.
- LFLex Fridman
Oh, interesting, I didn't know.
- SAScott Aaronson
So yeah. So all, all, all that happened (laughs) was that, uh, so, you know, a bunch of journalists started writing breathless articles about, you know, when, uh, you know, first, uh, chatbot that passes the Turing test, right? And it was this thing called Eugene Goostman that was supposed to simulate a 13-year-old boy-
- LFLex Fridman
Yeah.
- SAScott Aaronson
... and, um, you know, and apparently someone had done some test where, you know, people couldn't, you know, you know, were, were less than perfect, let's say, at distinguishing it from a human. And they said, "Well, if you look at Turing's paper and you look at, you know, the percentages that he, that he talked about, then, you know, it seemed like we're past that threshold," right? And, you know, I had a sort of, you know, different way to look at it instead of the legalistic way, like, "Let's just try the actual thing out and let's see what it can do with questions like, you know, is Mount Everest bigger than a shoebox?"
- LFLex Fridman
Right.
- SAScott Aaronson
Okay? Or just, you know, like the most obvious questions, right? And then, and, you know, and the answer is, well, it just kind of parries you because it doesn't know what you're talking about, right? Yeah.
- LFLex Fridman
So, so just to clarify exactly in which way they're obvious. They're obvious-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... in the sense that you convert the sentences into the meaning of the objects they represent and then do some basic... Obvious would mean they, you're-
- SAScott Aaronson
Well-
- LFLex Fridman
... common sense reasoning, uh, with the objects that the sentences represent.
- SAScott Aaronson
Uh, right, right. It was not able to answer, you know, or, or even intelligently respond to basic common sense questions. But let me say something stronger than that. There was a famous chatbot in the '60s called ELIZA, right? That, you know, that managed to actually fool, you know, a lot of people, right? Or people would pour their hearts out into this ELIZA 'cause it, it simulated a therapist, right? And most of what it would do is it would just throw back at you whatever you said, right? And this turned out to be incredibly effective, right? Uh, may- maybe, you know, therapists, uh, know this. This is, you know, one of their tricks. But, uh, it, um, um, you know, it, it, it really had some people convinced. Uh, but, you know, this, this thing was just like... I think it was literally just a few hundred lines of Lisp code, right? It was... Not only was it not intelligent, it wasn't e- especially sophisticated.
- LFLex Fridman
(laughs)
- 50:16 – 58:46
GPT-3
- LFLex Fridman
Yeah, I'd love to hear your thoughts about GPT-3-
- SAScott Aaronson
Yeah, yeah, in the- yeah-
- LFLex Fridman
... and advancements -
- SAScott Aaronson
... in the last, in the last few months, we've had, you know, we've, we've, the world has now seen a, uh, chat engine, or a text engine, I should say, called GPT-3, um, that, you know, I think it, it still, you know, it does not pass a touring test. You know, there were no real claims that it passes the touring test, right? You know, this is, comes out of the group at OpenAI, and you know, they're, you know, they've been relatively careful in what they've claimed about this system. But I think this, this, this, uh, uh, a- as clearly as Eugene Goostman was not an advance over ELIZA, it is equally clear that this is a major advance-
- LFLex Fridman
It is.
- SAScott Aaronson
... over, over, over ELIZA, or really over anything that the world has seen before. Uh, this is a text engine that can come up with kind of on-topic, you know, reasonable-sounding completions to just about anything that you ask. You can ask it to write a poem about topic X in the style of poet Y-
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
... and it will have a go at that.
- LFLex Fridman
Yeah.
- SAScott Aaronson
And it will do, you know, not a perf- not a great job, not an amazing job, but you know, a passable job. You know, definitely, you know, as, as good as, you know, you know, in, in many cases I would say better than I would've done, right? Uh, you know, you can ask it to write, you know, an essay, like a student essay about pretty much any topic, and it will get something that I am pretty sure would get at least a B-, you know, in most, you know, high school or even college classes, right? And, you know, in some sense, you know, the way that it did this, the way that it achieves this, um, you know, Scott Alexander of the, you know, the much, uh, mourned blog, uh, Slate Star Codex, uh, had a wonderful way of putting it. He said that they basically just ground up the entire internet into a slurry.
- LFLex Fridman
(laughs)
- SAScott Aaronson
Okay?
- LFLex Fridman
Yeah.
- SAScott Aaronson
And you know, and I, to tell you the truth, I had wondered for a while why nobody had tried that, right? Like, why not write a chatbot by just doing deep learning over a corpus consisting of the entire web, right?
- LFLex Fridman
Right.
- SAScott Aaronson
And, and so, so the, so, uh, now they finally have done that, right? And, you know, the results are, are very impressive. You know, it's not clear that, you know, people can argue about whether this is truly a step toward general AI or not, but this is an amazing capability, uh, that, you know, uh, uh, we didn't have a few years ago. That, you know, if- a few years ago, if you had told me that we would have it now, that would've surprised me.
- LFLex Fridman
Yeah.
- SAScott Aaronson
And I think that anyone who denies that is just not engaging with, with what's there.
- LFLex Fridman
So their model takes a large part of the internet-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... and compresses it in a small number of parameters-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... relative to the size of the internet.
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
And is able to, without fine-tuning, uh, do a basic kind of a querying mechanism, just like you described, where you specify a kind of poet, and then you wanna write a poem, and somehow is able to do basically a lookup on the internet-
- SAScott Aaronson
Well-
- LFLex Fridman
... of relevant things. I mean, that's what it...
- SAScott Aaronson
I mean, I mean, I mean, the- the-
- LFLex Fridman
How else do you explain it?
- SAScott Aaronson
Well, okay, I mean, I mean, I mean, the, the training involved, you know, massive amounts of data from the internet, and actually took lots and lots of computer power, lots of electricity, right? You know, there, there are some, some very prosaic reasons why this wasn't done earlier, right?
- 58:46 – 1:05:17
Universality of computation
- SAScott Aaronson
- LFLex Fridman
Let me go on another topic-
- SAScott Aaronson
Yeah. Sure.
- LFLex Fridman
... that is amazing, uh, which is complexity.
- SAScott Aaronson
Hm.
- LFLex Fridman
Uh, what, uh... (laughs) and then start with the most absurdly romantic question of what's the most beautiful idea in the computer science or theoretical computer science to you? Like, what just-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... earl- early on in your life, or in general-
- SAScott Aaronson
Mm-hmm.
- LFLex Fridman
... have captivated you-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... and just grabbed you?
- SAScott Aaronson
I think I'm gonna have to go with the idea of universality. Uh, you know, if you're really asking for the most beautiful. (laughs) I mean, uh, so universality, uh, is the idea that, you know, you put together a few simple operations, like, in the case of Boolean logic, that might be the AND gate, the OR gate, the NOT gate, right? And then your first guess is, "Okay. This is a good start, but obviously, as I wanna do more complicated things, I'm gonna need more complicated building blocks to express that," right? And, and that was actually my guess when I first learned what programming was. I mean, when I was, you know, an adolescent, and I... someone showed me, uh, uh, Apple BASIC, and then, you know, uh-
- LFLex Fridman
(laughs)
- SAScott Aaronson
... GW-BASIC, if, uh-
- LFLex Fridman
Oh, wow.
- SAScott Aaronson
... any, any, anyone listening remembers that. Okay. But, uh, you know, I thought, "Okay. Well, now..." You know, I mean, I mean, I, I thought, I felt like, um, this is a revelation. You know, it's like finding out where babies come from.
- LFLex Fridman
Yeah. (laughs)
- SAScott Aaronson
It's like that level of, you know, "Why didn't anyone tell me this before?"
- LFLex Fridman
Yeah. (laughs)
- SAScott Aaronson
Right? But I thought, "Okay. This is just the beginning. Now I know how to write a basic program." But to, you know, really write a, an interesting program, like a, you know, a video game, which had always been my, my dream as a kid to, you know, create my own Nintendo games, right?
- LFLex Fridman
(laughs)
- SAScott Aaronson
That, you know, but I'm... You know, obviously, I'm gonna w- need to learn some way more complicated form of programming than that. Okay? But, you know, eventually, I learned this incredible idea of universality, and that says that, no, you throw in a few rules, and then you can... you already have enough to express everything. Okay? So for example, the AND, the OR, and the NOT gate, uh, can all... or in fact, even just the AND and the NOT gate-
- LFLex Fridman
Right. Exactly.
- SAScott Aaronson
... or e- even just, even just the NAND gate, for example, uh, is already enough to express any Boolean function on any number of bits. You just have to string together enough of them, right?
- LFLex Fridman
You can build a universe with NAND gates.
- SAScott Aaronson
You can build a universe out of NAND gates, yeah. Uh, you know, the, the simple instructions of BASIC are already enough d- at least in principle, you know? If we ignore details like how much memory can be accessed-
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
... and stuff like that, that is enough to express what could be expressed by any programming language whatsoever. And the way to prove that is very simple. We simply need to show that in BASIC or whatever, we could write a, an interpreter or a compiler for whatever is... other programming language we care about, like C or, or Java or whatever. And as soon as we had done that, then ipso facto, anything that's expressible in C or Java is also expressible in BASIC. Okay? And-So this idea of universality, you know, goes back, uh, at least to Alan Turing in the 1930s, when, you know, he, uh, uh, um, wrote down this incredibly simple pared down model of a computer, the Turing machine, right, which, uh, you know, he pared down the instruction set to just read a symbol, you know, go, mo-, write a symbol, move to the left, move to the right, uh, halt, change your internal state, (laughs) right? That's it.
- LFLex Fridman
Simple.
- 1:05:17 – 1:11:23
Complexity
- SAScott Aaronson
- LFLex Fridman
Exactly, so-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... you- you've, uh, I don't know if you created complexity zoo, or, uh-
- SAScott Aaronson
I did create the complexity zoo.
- NANarrator
Definitely-
- LFLex Fridman
What is it? What's complexity?
- SAScott Aaronson
Oh, okay. Oh, all right, all right, all right, all right. Complexity theory is the study of sort of the inherent resources needed to solve, uh, computational problems.
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
Okay, so, uh, uh, it- it's easiest to give an example. Uh, like, uh, let's say we want to, um, um, add two- two numbers, right? If I wanna add them, uh, um, you know, if- if the numbers are twice as long, then it only... it will take me twice as long to add them, but only twice as long, right? It's no worse than that. Multi-
- LFLex Fridman
For a computer.
- SAScott Aaronson
For a computer-
- LFLex Fridman
(laughs)
- SAScott Aaronson
... or- or- or for a person. We're using pencil and paper, for that matter.
- LFLex Fridman
If you have a good algorithm.
- SAScott Aaronson
Yeah, that's right. I mean, even-
- LFLex Fridman
You- you could have an inefficient algorithm.
- SAScott Aaronson
... if you just, if you just use the elementary school algorithm-
- LFLex Fridman
Right.
- SAScott Aaronson
... of just carrying, you know, then it- it takes time that is linear in the length-
- LFLex Fridman
The-
- SAScott Aaronson
... of the numbers, right? Now, multiplication, if you use the elementary school algorithm, is harder, because you have to multiply each digit of the first number by each digit of the second one.
- LFLex Fridman
That's right, yeah. Yeah.
- SAScott Aaronson
You know, and then deal with all the carries. So that's what we call a quadratic time algorithm, right? If, um, the numbers become twice as long, now you need four times as much time, okay? So, uh, now, as it turns out, we, uh, uh, uh, people discovered much faster ways to multiply numbers using computers.
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
And today, we know how to multiply two numbers that are n-digits long using a number of steps that's nearly linear in n. These are questions you can ask, but now let's think about a different thing that people, uh, you know, they've encountered in elementary school, uh, factoring a number.
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
Okay, take a number and find its prime factors.
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
Right? And here, you know, if I give you a number with 10 digits and I ask you for its prime factors, well, maybe it's even, so you know that two is a factor. You know, maybe it ends in zero, so you know that 10 is a factor, right? But, you know, other than a few obvious things like that, you know, if the prime factors are all very large, then it's not clear how you even get started, right? You know, you- it seems like you have to do an exhaustive search among an enormous number of factors. Now, um, and- and, uh, as many people might know, uh, the, uh, for- for- for better or worse, the, uh, security, you know, of most of the encryption that we currently use to protect the internet is based on the belief, and this is not a theorem, it's a belief-
- 1:11:23 – 1:23:41
P vs NP
- SAScott Aaronson
- LFLex Fridman
So what kind of interesting classes are there?
- SAScott Aaronson
Yeah.
- LFLex Fridman
I mean, y- you could have just, maybe say what are the, if you take any kinda computer science class, what are the classes you learn?
- SAScott Aaronson
Good. Let me, let me tell you sort of the, the, the biggest ones, the ones that you would learn first. So, you know, first of all, there is P, that's what it's called, okay? It stands for polynomial-time. And this is just the class of all of the problems that you could solve with a conventional computer, like your iPhone or your laptop, uh, you know, by a completely deterministic algorithm, right? Using a number of steps that grows only like the size of the input raised to some fixed power.
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
Okay? So, uh, if your algorithm is linear-time, like, you know, for adding numbers, okay, that, that problem is in P. If you have an algorithm that's quadratic-time, like the, uh, elementary school algorithm for multiplying two numbers, that's also in P. Even if it was the size of the input to the 10th power or to the 50th power, well, that wouldn't be very, uh, good in practice, but, you know, formally, we would still count that. That would still be in P. Okay? But if your algorithm takes exponential time, meaning, like, if every time I add one more, uh, data point to your input, if the time that needed by the algorithm doubles-
- LFLex Fridman
Mm-hmm.
- SAScott Aaronson
... if you need time like two to the power of the amount of input data, then, uh, that is a, that we call an exponential-time algorithm, okay? And th- that is not polynomial, okay? So P is all of the problems that have some polynomial-time algorithm. Okay? So that includes most of what we do with our computers on a day-to-day basis, you know, all the, you know, sort- sorting, basic arithmetic, you know, whatever is going on in your email reader or in Angry Birds, okay? It's al- it's all in P.
- LFLex Fridman
Okay.
- SAScott Aaronson
Then the next, uh, super important class is called NP. Uh, that stands for non-deterministic polynomial, okay? Does not stand for not polynomial-
- LFLex Fridman
Yeah.
- SAScott Aaronson
... which is a, a-
- LFLex Fridman
(laughs)
- SAScott Aaronson
... common confusion. Um, but, but NP is basically all of the problems where if there is a solution, then it is easy to check the solution if someone shows it to you.Okay? So actually, a perfect example of a problem in NP is, uh, factoring, the one I told you about before. Like, if I gave you a number with thousands of digits and I told you that it ha- you know, I- I- I asked you, "Does this, uh, does this have at least, um, three non-trivial divisors?" Right? That might be a super hard problem to solve, right? It might take you millions of years-
- LFLex Fridman
Yeah.
- SAScott Aaronson
... using any algorithm that's known, at least running on, on our existing computers. Okay? But if I simply showed you the divisors, I said, "Here are three divisors of this number," then it would be very easy for you to ask your computer to just check each one and see if it works, just divide it in, see if there's any remainder, right? And if they all go in, then you've checked, "Well, I guess there were," (laughs) right? So, um, so any problem where, you know, whe- wherever there's a solution, there is a short witness that can be easily like, a polynomial size witness, that can be checked in polynomial time, that, we call an NP problem. Okay?
- LFLex Fridman
Beautiful.
- SAScott Aaronson
And, uh, yeah. So, so every problem that's in P is also in NP, right? Because, you know, you could always just ignore the witness and just, you know, if a problem is in P, you can just solve it yourself.
- LFLex Fridman
Right.
- SAScott Aaronson
Okay? But now the, in some sense, the central, you know, mystery of theoretical computer science is, is every NP problem in P. So, if you can easily check the answer to a, a, a, a computational problem, does that mean that you can also easily find the answer?
- LFLex Fridman
Even though there's all these problems that appear to be very difficult to find the answer, it's still an open question whether a-
- SAScott Aaronson
Yeah.
- LFLex Fridman
... good answer exists. So what's your-
- SAScott Aaronson
Because no one has proven that there's no way to do it, right?
- LFLex Fridman
It's arguably the most, uh, I don't know, the most famous, the most maybe interesting, maybe you disagree with that-
- SAScott Aaronson
Well-
- LFLex Fridman
... problem in theoretical computer science. So what's your-
- SAScott Aaronson
The most famous, for sure. (laughs)
- LFLex Fridman
P equals NP.
Episode duration: 1:52:36
Install uListen for AI-powered chat & search across the full episode — Get Full Transcript
Transcript of episode nAMjv0NAESM
Get more out of YouTube videos.
High quality summaries for YouTube videos. Accurate transcripts to search & find moments. Powered by ChatGPT & Claude AI.
Add to Chrome