
Terence Tao is widely considered to be one of the greatest mathematicians in history. He won the Fields Medal and the Breakthrough Prize in Mathematics, and has contributed to a wide range of fields from fluid dynamics with Navier-Stokes equations to m...
Loading summary
Lex Fridman
The following is a conversation with Terence Tao, widely considered to be one of the greatest mathematicians in history. Often referred to as the Mozart of Math, he won the Fields Medal and the Breakthrough Prize in Mathematics and has contributed groundbreaking work to a truly astonishing range of fields in mathematics and physics. This was a huge honor for me for many reasons, including the humility and kindness that Terry showed to me throughout all our interactions. It means the world and now a quick few second mention of a sponsor. Check them out in the description or@lexfriedman.com Sponsors it's the best way to support this podcast. We got Notion for teamwork, Shopify for selling stuff online, NetSuite for your business, Element for electrolytes and AG1 for your health. Choose Wise and my friends. And now onto the full ad reads. They're all here in one place. I do try to make them interesting by talking about some random things I'm reading or thinking about. But if you skip, please still check out the sponsors. I enjoy their stuff. Maybe you will too. To get in touch with me for whatever reason, go to lexfreamman.com contact all right, let's go. This episode is brought to you by Notion, a note taking and team collaboration tool. I use Notion for everything, for personal notes, for planning these podcasts, for collaborating with other folks, and for super boosting all of those things with AI. Because Notion does a great job of integrating AI into the whole thing. You know what's fascinating is the mechanisms of human memory. Before we had widely adopted technologies and tools for writing and recording stuff, certainly before the computer. So you can look at medieval monks for example, that would use the now well studied memory techniques like the memory palace, the spatial memory techniques to memorize entire books. That is certainly the effect of technology started by Google search and moving to all the other things like Notion, that we're offloading more and more and more of the task of memorization to the computers, which I think is probably a positive thing because it frees more of our brain to do deep reasoning, whether that's deep dive focused specialization or the journalist type of thinking versus memorizing facts. Although I do think that there's a kind of Brad Cross model that's formed when you memorize a lot of things and from there from inspiration arises discovery. So I don't know, there could be a great cost to offloading most of our memorization to the machines, but it is the way of the world. Try Notion AI for free when you go to notion.comLex that's all lowercase notion.com Lex to try the power of Notion AI today. This episode is also brought to you by Shopify, a platform designed for anyone to sell anywhere. With a great looking online store, our future friends has a lot of robots in it looking into that distant future. You have Amazon warehouses with millions of robots that move packages around. You have Tesla bots everywhere in the factories and in the home and on the streets and the baristas, all of that. That's our future. Right now you have something like Shopify that connects a lot of humans in the digital space. But more and more there will be a automated, digitized AI fueled connection between humans in the physical space. Like a lot of futures, there's going to be negative things and there's going to be positive things. And like a lot of possible futures, there's little we could do about stopping it. All we can do is steer it in the direction that enables human flourishing. Instead of hiding in fear or fear mongering, be part of the group of people that are building the best possible trajectory of human civilization. Anyway, sign up for a $1 per month trial period at shopify.com lex that's all lowercase. Go to shopify.com lex to take your business to the next level today. This episode is also brought to you by netsuite, an all in one cloud business management system. There's a lot of messy components to running a business and I must ask and I must wonder at which point there's going to be an AI AGI, like CFO of a company, an AI agent that handles most, if not all of the financial responsibilities or all of the things that NetSuite is doing. At which point will NetSuite increasingly leverage AI for those types of tasks? I think probably it will integrate AI into its tooling, but I think there's a lot of edge cases that we need. The the human wisdom, the human intuition grounded in years of experience in order to make the tricky decision around the edge cases. I suspect that running a company is a lot more difficult than people realize. But there's a lot of sort of paperwork type stuff that could be automated, could be digitized, could be summarized, integrated and used as a foundation for the said humans to make decisions. Anyway, that's our Future. Download the CFO's Guide to AI and Machine Learning at netsuite.com lex that's netsuite.com lex this episode is also brought to you by Element, my daily zero sugar and delicious electrolyte mix. I run along the river often and get to meet some really interesting people. One of the people I met was preparing for his first ultra marathon, I believe he said it was 100 miles. And that of course sparked in me the thought that I need for sure to do one myself. Some time ago now, I was planning to do something with David Goggins, and I think that's still on the sort of to do list between the two of us to do some crazy physical feat. Of course, the thing that is crazy for me is daily activity for Goggins, but nevertheless, I think it's important in the physical domain, the mental domain, and all domains of life to challenge yourself. And athletic endeavors is one of the most sort of crisp, clear, well structured way of challenging yourself. But there's all kinds of things. Writing a book, to be honest, having kids and marriage and relationships and friendships, all of those. If you take it seriously, if you go all in and do it right, I think that's a serious challenge because most of us are not prepared for it. And you learn along the way. And if you have the rigorous feedback loop of improving, constantly growing as a person and really doing a great job of the thing, I think that might as well be an ultra marathon. Anyway. Get a sample pack for free with any purchase. Try it@drinkelement.com lex and finally, this episode is also brought to you by AG1, an all in one daily drink to support better health and peak performance. I drink it every day. I'm preparing for a conversation on drugs in the Third Reich. And funny enough, it's a kind of way to analyze Hitler's biography is to look at what he consumed throughout. And Norman Oehler does a great job of analyzing all of that and tells the story of Hitler and the Third Reich in a way that hasn't really been touched by historians before. It's always nice to look at key moments in history through a perspective that's not often taken. Anyway, I mentioned that because I think Hitler had a lot of stomach problems. And so that was the motivation for getting a doctor, the doctor that eventually would fill him up with all kinds of drugs. But the doctor earned Hitler's trust by giving him probiotics, which is a kind of revolutionary thing at the time. And so that really helped deal with whatever stomach issues that Hitler was having. All of that is a reminder that war is waged by humans, and humans are biological systems, and biological systems require fuel and supplements and all of that kind of stuff. And depending on what you put in your body will affect your performance in the short term and the long term. With meth, that's true with Hitler to his last days in the bunker in Berlin, all the cocktail of drugs that he was taking.
Terence Tao
So.
Lex Fridman
So I think I got myself somewhere deep and I'm not sure how to get out of this. It deserves a multi hour conversation versus a few seconds of mention. But yeah, all of that was sparked by my thinking of AG1 and how much I love it. I appreciate that you're listening to this and coming along for the wild journey that these ad reads are. Anyway, AG1 will give you a one month supply of fish oil when you sign up@drinkag1.com Lex this is the Lex Friedman Podcast. To support it. Please check out our sponsors in the description or@lexfreedman.com sponsors and now dear friends, here's Terence Tao. What was the first really difficult research level math problem that you encountered? One that gave you pause? Maybe?
Terence Tao
Well, I mean in your undergraduate education you learn about the really hard, impossible problems like the Riemann hypothesis, the true primes conjecture. You can make problems arbitrarily difficult. That's not really a problem. In fact, there's even problems that we know to be unsolvable. What's really interesting are the problems just on the boundary between what we can do relatively easily and what are hopeless. But what are problems where existing techniques can do like 90% of the job and then you just need that remaining 10%? I think as a PhD student, the Kakeya problem certainly caught my eye and it just got solved. Actually, it's a problem I've worked on a lot in my early research. Historically it came from a little puzzle by the Japanese mathematician soji kakeya, like 1918 or so. So the puzzle is that you have a needle on the plane, or think like driving on a road, something, and you wanted to execute a U turn. You want to turn the needle around, but you want to do it in as little space as possible. So you want to use as little area in order to turn it around. But the needle is infinitely maneuverable, so you could imagine just spinning it around as a unit needle. You can spin it around its center and I think that gives you a disk of area, I think PI over four. Or you can do a three point U turn, which is what we teach people in their driving schools to do. And that actually takes area PI over eight. So it's a little bit more efficient than a rotation. And so for a while people thought that was the most efficient way to turn things around. But Berzukovich showed that in fact you could actually turn turn the needle around using as little area as you wanted. So 0.001, there was some really fancy multi back and forth u turn thing that you could do, that you could turn a needle around and in so doing it would pass through every intermediate direction.
Lex Fridman
Is this in the two dimensional plane?
Terence Tao
This is in the two dimensional plane, yeah. So we understand everything in two dimensions. So the next question is what happens in three dimensions? So suppose like the Hubble Space Telescope is tube in space. And you want to observe every single star in the universe, so you want to rotate the telescope to reach every single direct direction. And here's the unrealistic part. Suppose that space is at a premium, which it totally is not. You want to occupy as little volume as possible in order to rotate your needle around in order to see every single star in the sky. How small a volume do you need to do that? And so you can modify Bezakovich's construction. And so if your telescope has zero thickness, then you can use as little volume as you need. That's a simple modification of the two dimensional construction. But the question is that if your telescope is not zero thickness, but just very, very thin, some thickness delta, what is the minimum volume needed to be able to see every single direction as a function of delta? So as delta gets smaller, as your needle gets thinner, the volume should go down. But how fast does it go down? And the conjecture was that it goes down very, very slowly, like logarithically, roughly speaking. And that was proved after a lot of work. So this seems like a puzzle. Why is it interesting? So it turns out to be surprisingly connected to a lot of problems in partial differential equations, in number theory, in geometry, combinatorics. For example, in wave propagation, if you splash some water around, you create water waves and they travel in various directions. But waves exhibit both particle and wave type behavior. So you can have what's called a wave packet, which is like a very localized wave that is localized in space and moving a certain direction in time. And so if you plot it in both space and time, it occupies a region which looks like a tube. And so what can happen is that you can have a wave which initially is very dispersed, but it all focuses at a single point later in time. Like you can imagine dropping a pebble into a pond and ripples spread out. But then if you time reverse that scenario, and the equations of wave motion are time reversible, you can imagine ripples that are converging to a single point, and then a big splash occurs, maybe even a singularity. And so it's possible to do that. And geometrically, what's going on is that there's all these sort of light rays. So like if this wave represents light, for example, you can imagine this wave as the superposition of photons all traveling at the speed of light. They all travel on these light rays and they're all focusing at this one point. So you can have a very dispersed wave focus into a very concentrated wave at one point in space and time, but then it defocuses again and it separates. But potentially, if the conjecture had a negative solution, so what that meant is that there's a very efficient way to pack tubes pointing in different directions into a very, very narrow region of very narrow volume. Then you would also be able to create waves that start out. There'll be some arrangement of waves that start out very, very dispersed, but they would concentrate not just at a single point, but there'll be a large. There'll be a lot of concentrations in space and time, and you could create what's called a blow up, where these waves, their amplitude becomes so great that the laws of physics that they're governed by are no longer wave equations, but something more complicated and nonlinear. And so in mathematical physics, we care a lot about whether certain equations in wave equations are stable or not, whether they can create these singularities. There's a famous unsolved problem called the Navier Stokes regularity problem. So the Navier Stokes equations, equations like govern the fluid flow or incompressible fluids like water. The question asks, if you start with a smooth velocity field of water, can it ever concentrate so much that the velocity becomes infinite at some point? That's called a singularity. We don't see that in real life. If you splash around water in the bathtub, it won't explode on you or have water leaving at the speed of light, but potentially it is possible. And in fact, in recent years, the consensus has drifted towards the belief that, in fact, for certain very special initial configurations of, say, water, that singularities can form. But people have not yet been able to actually establish this. The Clay foundation has these seven Millennium Prize problems, has a million dollar prize for solving one of these problems. This is one of them. Of these seven, only one of them has been solved, the POI conjecture. So the Kakei Conjecture is not directly, directly related to the Navier Stokes problem, but understanding it would help us understand some aspects of things like wave concentration, which would indirectly probably help us understand the Navier Stokes problem better.
Lex Fridman
Can you speak to the Navier Stokes? So the existence and smoothness, like you said, Millennial price problem. You've made a lot of progress on this one. In 2016, you published a paper, finite time blow up for an averaged three dimensional Navier Stokes equation.
Terence Tao
Right.
Lex Fridman
So we're trying to figure out if this thing usually doesn't blow up.
Terence Tao
Right.
Lex Fridman
But can we say for sure it never blows up?
Terence Tao
Right. Yeah. So, yeah, that is literally the million dollar question. So this is what distinguishes mathematicians from pretty much everybody else. Like, if something holds 99.99% of the time, that's good enough for most things. But mathematicians are one of the few people who really care about whether really 100% of all situations are covered by. Yeah. So most of the time, water does not blow up. But could you design a very special initial state that does this?
Lex Fridman
And maybe we should say that this is a set of equations that govern, in the field of fluid dynamics, trying to understand how fluid behaves and it actually turns out to be a really complicated fluid is.
Terence Tao
Yeah.
Lex Fridman
Extremely complicated thing to try to model.
Terence Tao
Yeah. So it has practical importance. So this clay price problem concerns what's called the incompressible Navier Stokes, which governs things like water. There's something called the compressible Navier Stokes, which governs things like air. And that's particularly important for weather prediction. Weather prediction does a lot of computational fluid dynamics. A lot of it is actually just trying to solve the Navier Stokes equations as best they can, also gathering a lot of data so that they can initialize the equation. There's a lot of moving parts. So it's a very important problem, practically.
Lex Fridman
Why is it difficult to prove general things about the set of equations like it not blowing up?
Terence Tao
Short answer is Maxwell's demon. So Maxwell's demon is a concept in thermodynamics, like if you have a box of two gases in oxygen and nitrogen, and maybe you started with all the oxygen on one side and nitrogen on the other side, but there's no barrier between them. Then they will mix and they should stay mixed. There's no reason why they should unmix. But in principle, because of all the collisions between them, there could be some sort of weird conspiracy. Maybe there's a microscopic demon called Maxwell's demon that will. Every time an oxygen and nitrogen atom collide, they will bounce off in such a way that the oxygen sort of drifts onto one side and then nitrogen goes to the other, and you could have an extremely improbable configuration emerge, which we never see. And statistically, it's extremely unlikely. But mathematically, it's possible. That this can happen and we can't rule it out. And this is a situation that shows up a lot in mathematics. A basic example is the digits of PI. 3.14159 and so forth. The digits look like they have no pattern, and we believe they have no pattern on the long term. You should see as many ones and twos and threes as fours and fives and sixes. There should be no preference in the digits of PI to favor, let's say seven over eight. But maybe there's some demon in the digits of PI that every time you compute more and more digits, it sort of biases one digit to another. And this is a conspiracy that should not happen. There's no reason it should happen, but there's no way to prove it with our current technology. Okay, so getting back to Navier Stokes, A fluid has a certain amount of energy. And because if fluid is in motion, the energy gets transported around. And water is also viscous. So if the energy is spread out over many different locations, the natural viscosity of the fluid will just damp out the energy and it will go to zero. And this is what happens when we actually experiment with water. You splash around, there's some turbulence and waves and so forth, but eventually it settles down. And the lower the amplitude, the smaller the velocity, the more calm it gets. But potentially there is some sort of demon that keeps pushing the energy of the fluid into a smaller and smaller scale. And it will move faster and faster, and at faster speeds, the effective viscosity is relatively less. And so it could happen that it creates some sort of, what's called a self similar blob scenario, where the energy of the fluid starts off at some large scale, and then it all sort of transfers its energy into a smaller blob region of the fluid, which then at a much faster rate, moves into an even smaller region and so forth. And each time it does this, it takes maybe half as long as the previous one. And then you could actually converge to all the energy concentrating in one point in a finite amount of time. And that scenario is called Vanaheim blow up. So in practice, this doesn't happen. So water is what's called turbulent. So it is true that if you have a big eddy of water, it will tend to break up into smaller eddies, but it won't transfer all the energy from one big eddy into one smaller eddy. It will transfer into maybe three or four, and then those must split up into maybe three or four small eddies of their own. And so the energy gets Dispersed to the point where the viscosity can then keep everything under control. But if it can somehow concentrate all the energy, keep it all together, and do it fast enough that the viscous effects don't have enough time to calm everything down, then this blob can occur. So there are papers who had claimed that, oh, you just need to take into account conservation of energy and just carefully use the viscosity and you can keep everything under control for not just the Navier Stokes, but for many, many types of equations like this. And so in the past, there have been many attempts to try to obtain what's called global regularity for Navier Stokes, which is the opposite of finite time. Blow up, that velocity stays smooth, and it all failed. There was always some sign error or some subtle mistake and it couldn't be salvaged. So what I was interested in doing was trying to explain why we were not able to disprove paratime. Blow up. I couldn't do it for the actual equations of fluids, which were too complicated. But if I could average the equations of motion of Navier Stokes, basically, if I could turn off certain types of ways in which water interacts and only keep the ones that I want. So in particular, if there's a fluid and it could transfer its energy from a large eddy into this small eddy or this other small eddy, I would turn off the energy channel that would transfer energy to this one and direct it only into this smaller eddy, while still preserving the law of concentration of energy.
Lex Fridman
So you're trying to make it blow up?
Terence Tao
Yeah. So I basically engineer, by changing laws of physics, which is one thing that mathematicians are allowed to do, we can change the equation.
Lex Fridman
How does that help you get closer to the proof of something?
Terence Tao
Right. So it provides what's called an obstruction in mathematics. So what I did was that basically if I turned off certain parts of the equation, which usually when you turn off certain interactions, make it less nonlinear, it makes it more regular and less likely to blow up. But I found that by turning off a very well designed set of interactions, I could force all the energy to blow in finite time. So what that means is that if you wanted to prove global regularity for Navier Stokes for the actual equation, you must use some feature of the true equation, which my artificial equation does not satisfy. So it rules out certain approaches. So the thing about math is it's not just about finding, taking a technique that is going to work and applying it, but you need to not take the techniques that don't work. And for the problems that are really hard. Often there are dozens of ways that you might think might apply to solve the problem. But it's only after a lot of experience that you realize there's no way that these methods are going to work. So having these counter examples for nearby problems kind of rules out. It saves you a lot of time because you're not wasting energy on things that you now know cannot possibly ever work.
Lex Fridman
How deeply connected is it to that specific problem of fluid dynamics? Or just some more general intuition you build up about mathematics?
Terence Tao
Right, yeah. So the key phenomenon that my technique exploits is what's called supercriticality. So in partial differential equations, often these equations are like a tug of war between different forces. So in Navier Stokes, there's the dissipation force coming from viscosity. And it's very well understood. It's linear, it calms things down. If viscosity was all there was, then nothing bad would ever happen. But there's also transport that energy from in one location of space can get transported because the fluid is in motion to other locations. And that's a nonlinear effect and that causes all the problems. So there are these two competing terms in the naviershokes equation, the dissipation term and the transport terminal. If the dissipation term dominates, if it's large, then basically you get regularity. And if the transport term dominates, then we don't know what's going on. It's a very nonlinear situation. It's unpredictable, it's turbulent. So sometimes these forces are unbalanced at small scales, but not imbalanced at large scales, or vice versa. So Navier Stokes is what's called supercritical. So at smaller and smaller scales, the transport terms are much stronger than the viscosity terms. So the viscosity of the things that calm things down. And so this is why the problem is hard in two dimensions. So the Soviet mathematician Ladyshinskaya, she in the 60s showed in two dimensions there was no blow up. And in two dimensions the Navier Stokes equations is what's called critical, the effect of transport and the effect of viscosity about the same strength even at very, very small scales. And we have a lot of technology to handle critical and also subcritical equations and prove regularity. But for supercritical equations it was not clear what was going on. And I did a lot of work and then there's been a lot of follow up showing that for many other types of supercritical equations you can create all kinds of blow up examples. Once the nonlinear effects dominate the linear effects at small scales, you can have all kinds of bad things happen. So this is sort of one of the main insights of this line of work is that supercriticality versus criticality and subcriticality, this makes a big difference. I mean, that's a key qualitative feature that distinguishes some equations for being sort of nice and predictable. And like planetary motion, I mean, there are certain equations that you can predict for millions of years or thousands at least. Again, it's not really a problem. But there's a reason why we can't predict the weather past two weeks into the future. Because it's a super critical equation. Lots of really strange things are going on at very fine scales.
Lex Fridman
Someone over there is some huge source of non linearity that can create a huge problem for predicting what's going to happen.
Terence Tao
Yeah. And if the nonlinearity is somehow more and more featured and interesting at small scales, I mean, there's many equations that are nonlinear, but in many equations you can approximate things by bulk. So for example, planetary motion. If you want to understand the orbit of the moon or Mars or something, you don't really need the microstructure of the seismology of the moon or exactly how the mass is distributed. You just basically you can almost approximate these planets by point masses. And just the aggregate behavior is important. But if you want to model a fluid like the weather, you can't just say in Los Angeles, the temperature is this, the wind speed is this. For supercritical equations to find scale, information is really important.
Lex Fridman
If we can just linger on the Navier Stokes equations a little bit. So you've suggested maybe you can describe it, that one of the ways to solve it or to negatively resolve it would be to sort of to construct a liquid, a kind of liquid computer.
Terence Tao
Right.
Lex Fridman
And then show that the halting problem from computation theory has consequences for fluid dynamics. So show it in that way. Can you describe this idea?
Terence Tao
Right, yeah. So this came out of this work of constructing this average equation that blew up. So as part of how I had to do this, so there's sort of this naive way to do it. You just keep pushing. Every time you get energy at one scale, you push it immediately to the next scale as fast as possible. This is sort of the naive way to force blow up in terms of. In five and higher dimensions this works. But in three dimensions there was this funny phenomenon that I discovered that if you change laws of physics, you just always keep trying to push the energy into smaller, smaller scales. What happens is that the energy starts Getting spread out into many scales at once. So you have energy at one scale. You're pushing it into the next scale. And then as soon as it enters that scale, you also push it to the next scale. But there's still some energy left over from the previous scale. You're trying to do everything at once. And this spreads out the energy too much. And then it turns out that it makes it vulnerable for viscosity to come in and actually just damp out everything. So it turns out this directed portion doesn't actually work. There was a separate paper by some other authors that actually showed this in three dimensions. So what I needed was to program a delay, so kind of like airlocks. So I needed an equation which would start with a fluid doing something at one scale. It would push its energy into the next scale, but it would stay there until all the energy from the larger scale got transferred. And only after you pushed all the energy in, then you sort of open the next gate, and then you push that in as well. So by doing that, the energy inches forward, scale by scale, in such a way that it's always localized at one scale at a time. And then it can resist the effects of viscosity because it's not dispersed. So in order to make that happen, yeah, I had to construct a rather complicated nonlinearity. And it was basically like. It was constructing, like an electronic circuit. So I actually thanked my wife for this because she was trained as an electrical engineer, and she talked about she had to design circuits and so forth. And if you want a circuit that does a certain thing, like maybe have a light that flashes on and then turns off and then on and then off, you can build it from more primitive components, capacitors and resistors and so forth. And you have to build a diagram and these diagrams you can sort of follow with your eyeballs and say, oh, yeah, the current will build up here, and then it will stop, and then it will do that. So I knew how to build the analog of basic electronic components like resistors and capacitors and so forth. And I would stack them together in such a way that I would create something that would open one gate, and then there'd be a clock. And then once the clock hits a certain threshold, it would close it. It would come a Rube Goldberg type machine, but described mathematically, and this ended up working. So what I realized is that if you could pull the same thing off for the actual equations, so if the equations of water supported computation. So you can imagine kind of a steampunk, but it's really water punk type of thing where so modern computers are electronic. They're powered by electrons passing through very tiny wires and interacting with other electrons and so forth. But instead of electrons, you can imagine these pulses of water moving at a certain velocity and maybe there are two different configurations corresponding to a bit being up or down. Probably if you had two of these moving bodies of water collide, they would come out with some new configuration which would be something like an and gate or, or gate. The output would depend in a very predictable way on the inputs. And like you could chain these together and maybe create a Turing machine. And then you could. You have computers which are made completely out of water. And if you have computers, then maybe you can do robotics, hydraulics and so forth. And so you could create some machine which is basically a fluid analog, what's called a Vonorman machine. So Von Neumann proposed if you want to colonize Mars, the sheer cost of transporting people on machines to Mars is just ridiculous. But if you could transport one machine to Mars and this machine had the ability to mine the planet, create some more materials, smelt them, and build more copies of the same machine, then you could colonize the whole planet over time. So if you could build a fluid machine, which. Yeah, so it's a fluid robot. And what it would do, its purpose in life, it's programmed so that it would create a smaller version of itself in some sort of cold state. It wouldn't start just yet. Once it's ready, the big robot can water. So it would transfer all its energy into the smaller configuration and then power down and then clean itself up. And then what's left is this newer state which would then turn on and do the same thing, but smaller and faster. And then the equation has a certain scaling symmetry. Once you do that, it can just keep iterating. So this in principle would create a blur for the actual Navier Stokes. And this is what I managed to accomplish for this average Navier Stokes. So it provided this sort of roadmap to solve the problem. Now, this is a pipe dream because there are so many things that are missing for this to actually be a reality. So I can't create these basic logic gates. I don't have these special configurations of water. I mean, there's candidates. These include vortex rings that might possibly work. But also analog computing is really nasty compared to digital computing because there's always errors. You have to do a lot of error correction along the way. I don't know how to completely power down the big machine so that it doesn't interfere with the running of the smaller machine. But everything in principle can happen. It doesn't contradict any of the laws of physics. So it's sort of evidence that this thing is possible. There are other groups who are now pursuing ways to make NavisWorks blow up, which are nowhere near as ridiculously complicated as this. They actually are pursuing much closer to the direct self similar model which can. It doesn't quite work as is, but there could be some simpler scheme than what I just described to make this work.
Lex Fridman
There is a real leap of genius here to go from Navier Stokes to this Turing machine. So it goes from what the self similar blob scenario that you're trying to get the smaller and smaller blob to now having a liquid torrent machine gets smaller and smaller and smaller. And somehow seeing how that could be used to say something about a blow up, I mean, that's a big leap.
Terence Tao
So there's precedent. I mean, so the thing about mathematics is that it's really good at spotting connections between what you might think of as completely different problems. But if the mathematical form is the same, you can draw a connection. So there's a lot of work. Previously on what are called cellular automata, the most famous of which is Conway's Game of Life. There's this infinite discrete grid, and at any given time the grid is either occupied by a cell or it's empty. And there's a very simple rule that tells you how these cells evolve. So sometimes cells live and sometimes they die. And this, when I was a a student, was a very popular screensaver to actually just have these animations going. And they look very chaotic. In fact, they look a little bit like turbulent flow sometimes. But at some point, people discovered more and more interesting structures within this Game of Life. So for example, they discovered this thing called a glider. So a glider is a very tiny configuration of like four or five selves which evolves and it just moves at a certain direction. And that's like these vortex rings. So this is an analogy. The Game of Life is kind of like a discrete equation, and the Navier Stokes is a continuous equation. But mathematically they have some similar features. And so over time, people discovered more and more interesting things that you could build within the Game of Life. The Game of Life is a very simple system. It only has like three or four rules to do it, but you can design all kinds of interesting configurations inside it. There's something called a glider gun that does nothing of spit out gliders. One and a half, one at A time. And then after a lot of effort, people managed to create and gates and, or gates for gliders. Like there's this massive ridiculous structure which if you have a stream of gliders coming in here and a stream of gliders coming in here, then you may produce a stream of gliders coming out. Maybe if both of the streams have gliders, then there'll be an output stream. But if only one of them does, then nothing comes out. So they could build something like that. And once you could build these basic gates, then just from software engineering, you can build almost anything. You can build a Turing machine. I mean, it's enormous steampunk type things, they look ridiculous. But then people also generated self replicating objects in the game of life. A massive machine, a polynomial machine, which over a huge period of time and always look like glider guns inside doing these very steampunk calculations. It would create another version of itself which could replicate.
Lex Fridman
That's so incredible.
Terence Tao
A lot of this was like community crowdsourced by amateur mathematicians, actually. So I knew about that work. And so that is part of what inspired me to propose the same thing with Navier Stokes, which is a. Much as I said, analog is much worse than digital. You can't just directly take the constructions in the game of life and plunk them in. But again, it shows it's possible.
Lex Fridman
You know, there's a kind of emergence that happens with these cellular automata, local rules. Maybe it's similar to fluids, I don't know. But local rules operating at scale can create these incredibly complex dynamic structures. Do you think any of that is amenable to mathematical analysis? Do we have the tools to say something profound about that?
Terence Tao
The thing is, you can get these emergent, very complicated structures, but only with very carefully prepared initial conditions. So these glider guns and gates and software machines, if you just plunk on randomly some cells and you will not see any of these. And that's the analogous situation with Navier Stokes. Again, with typical initial conditions, you will not have any of this weird computation going on. But basically through engineering, by specially designing things in a very special way, you can make clever constructions.
Lex Fridman
I wonder if it's possible to prove the sort of the negative of basically prove that only through engineering can you ever create something interesting.
Terence Tao
This is a recurring challenge in mathematics that I call it the dichotomy between structure and randomness, that most objects that you can generate in mathematics are random. They look like the digits of PI. Well, we believe is a good example, but there's a very small number of things that have patterns. But now you can prove something as a pattern by just constructing. If something has a simple pattern and you have a proof that it does something like repeat itself every so often, you can do that and you can prove that. For example, you can prove that most sequences of digits have no pattern. So if you just pick digits randomly, there's something called low large numbers that tells you you're going to get as many ones as twos in the long run. But we have a lot fewer tools. If I give you a specific pattern, like the digits of PI, how can I show that this doesn't have some weird pattern to it? Some other work that I spend a lot of time on is to prove what I call structure theorems or inverse theorems that give tests for when something is very structured. So some functions are what's called additive. Like if you have a function that must say natural numbers, the natural numbers. So maybe two maps to four, three maps to six, and so forth. Some functions also additive, which means that if you add two inputs together, the output gets added as well. For example, multiplying by a constant, if you multiply a number by 10, if you multiply a plus b by 10, that's the same as multiplying a by 10 and b by 10 and then adding them together. So some functions are additive, some functions are kind of additive, but not completely additive. So for example, if I take a number and I multiply by the square root of 2 and I take the integer part of that. So 10 by square root of 2 is like 14 point something. So 10 up to 14, 21 up to 28. So in that case additively is true then. So 10 plus 10 is 20 and 14 plus 14 is 28. But because of this rounding, sometimes there's round off errors, and sometimes when you add a plus B, this function doesn't quite give you the sum of the two individual outputs, but the sum plus minus one. So it's almost additive, but not quite additive. So there's a lot of useful results in mathematics, and I've worked a lot on developing things like this to the effect that if a function exhibits some structure like this, then it's basically there's a reason for why it's true. And the reason is because there's some other nearby function which is actually completely structured, which is explaining this sort of partial pattern that you have. And so if you have these inverse theorems, it creates this sort of dichotomy that either the objects that you study either have no structure at all, or they are somehow Related to something that is structured. And in either case, you can make progress. A good example of this is that there's this old theorem in mathematics called Simretti's theorem, proven in the 1970s. It concerns trying to find a certain type of pattern in a set of numbers. The pattern is asmatic progression, things like 3, 5 and 7, or 10, 15 and 20. And Zimmerti, Andre Zimmeredi proved that any set of numbers that are sufficiently big, what's called positive density, has arithmetic progressions in it of any length you wish. So, for example, the odd numbers have a set of density 1/2, and they contain arithmetic progressions of any length. So in that case, it's obvious, because the odd numbers are really, really structured. I can just take 11, 13, 15, 17. I can easily find athletic progr expressions in that set. But generalism also applies to random sets. If I take the set of odd numbers and I flip a coin for each number, and I only keep the numbers for which I got a heads, so I just flip coins. I just randomly take out half the numbers, I keep one half. So that's a set that has no patterns at all, but just from random fluctuations, you will still get a lot of ethnic progressions in that set.
Lex Fridman
Can you prove that there's arithmetic progressions of arbitrary length within a random.
Terence Tao
Yes. Have you heard of the infinite monkey theorem? Usually mathematicians give boring names to theorems, but occasionally they give colorful names. The popular version of the infinite monkey theorem is that if you have an infinite number of monkeys in a room with each with a typewriter, they type out text randomly. Almost surely one of them is going to generate the entire school of hamlet or any other finite string of text. It will just take some time, quite a lot of time, actually. But if you have an infinite number, then it happens. So basically, the theorem says that if you take an infinite string of digits or whatever, eventually any finite pattern you wish will emerge. It may take a long time, but it will eventually happen. In particular, athletic progressions of any length will eventually happen, but you need an extremely long random sequence for this to happen.
Lex Fridman
I suppose that's intuitive. It's just infinity.
Terence Tao
Yeah, Infinity absorbs a lot of sins.
Lex Fridman
Yeah. How are we humans supposed to deal with infinity?
Terence Tao
Well, you can think of infinity as an abstraction of a finite number of which you do not have a bound for that, you know, I mean, so nothing in real life is truly infinite. But, you know, you can. You can ask yourself questions like, what if I had as much money as I wanted? Or what if I could go as fast as I wanted. And a way in which mathematicians formalize, I.e. mathematics has found a formalism to idealize, instead of something being extremely large or extremely small, to actually be exactly infinite or zero. And often the mathematics becomes a lot cleaner when you do that. I mean, in physics, we joke about assuming spherical cows. Real world problems have got all kinds of real world effects. But you can idealize, send certain things to infinity, send certain things to zero, and the mathematics becomes a lot simpler to work with there.
Lex Fridman
I wonder how often using infinity forces us to deviate from the physics of reality.
Terence Tao
Yeah, so there's a lot of pitfalls. So we spend a lot of time, undergraduate math classes teaching analysis. And analysis is often about how to take limits and, and whether you. So for example, A plus B is always B plus A. So when you have a finite number of terms and you add them, you can swap them and there's no problem. But when you have an infinite number of terms, there are these sort of shell games you can play where you can have a series which converges to one value, but you rearrange it and it suddenly converges to another value. And so you can make mistakes. You have to know what you're doing. When you allow infinity, you have to introduce these epsilons and deltas. And there's a certain type of way of reasoning that helps you avoid mistakes. In more recent years, people have started taking results that are true in infinite limits and what's called finitizing them. So you know that something's true eventually, but you don't know when. Now give me a rate. Okay, so such that if I don't have an infinite number of monkeys, but a large finite number of monkeys, how long do I have to wait for Hamlet to come out? And that's a more quantitative question. And this is something that you can attack by purely finite methods, and you can use your finite intuition, and in this case, it turns out to be exponential in the length of the text that you're trying to generate. And so this is why you never see the monkeys create Hamlet. You can maybe see them create a four letter word, but nothing that big. And so I personally find once you finatize an infinite statement, it does become much more intuitive and it's no longer so, so weird.
Lex Fridman
So even if you're working with infinity, it's good to finitize so that you can have some intuition.
Terence Tao
Yeah. The downside is that the finitized proofs are just much, much messier. So the infinite ones are found first. Usually like decades earlier, and then later on people finalize them.
Lex Fridman
So since we mentioned a lot of math and a lot of physics, what to use the difference between mathematics and physics as disciplines, as ways of understanding, of seeing the world, maybe we can throw an engineering in there. You mentioned your wife as an engineer, give a new perspective on circuits. So this different way of looking at the world, given that you've done mathematical physics, so you've worn all the hats, right?
Terence Tao
So I think science in general is interaction between three things. There's the real world, there's what we observe of the real world, our observations, and then our mental models as to how we think the world works. So we can't directly access reality. All we have are the observations, which are incomplete and they have errors. And there are many, many cases where we want to know, for example, what is the weather like tomorrow? And we don't yet have the observation and we'd like to predict. And then we have these simplified models, sometimes making unrealistic assumptions, spherical Coca type things. Those are the mathematical models. Mathematics is concerned with the models. Science collects the observations and it proposes the models that might explain these observations. What mathematics does is we stay within the model and ask, what are the consequences of that model? What predictions would the model make of future observations or past observations? Does it fit observed data? So there's definitely a symbiosis, I guess. Mathematics is unusual among other disciplines, is that we start from hypotheses, like the axioms of a model, and ask what conclusions come up from that model. In almost any other discipline, you start with the conclusions. I want to do this, I want to build a bridge, I want to make money, I want to do this. And then you find the paths to get there. There's a lot less sort of speculation about, suppose I did this, what would happen? You know, planning and modeling, speculative fiction maybe is one other place, but that's about it. Actually. Most of the things we do in life is conclusions driven, including physics and science. I mean, they want to know, where is this asteroid going to go? What is the weather going to be tomorrow? But mathematics also has this other direction of going from the axioms.
Lex Fridman
What do you think? There is this tension in physics between theory and experiment. What do you think is a more powerful way of discovering truly novel ideas about reality?
Terence Tao
Well, you need both top down and bottom up. Yeah, it's a really interaction between all these things. So over time, the observations and the theory and the modeling should both get closer to reality. But initially, this is always the case. They're Always far apart to begin with, but you need one to figure out where to push the other. So if your model is predicting anomalies that are not predicted by experiment, that tells experimenters where to look to find more data to refine the models. So it goes back and forth. Within mathematics itself, there's also a theory and experimental component. It's just that until very recently, theory has dominated almost completely. Like 99% of mathematics is theoretical mathematics. And there's a very tiny amount of experimental mathematics. I mean, people do do it if they want to study prime numbers or whatever. They can just generate large data sets. So once we had a computers, we began to do it a little bit. Although even before, well, like Gauss, for example, he discovered he conjectured the most basic theorem in number theory, which is called the prime number theorem, which predicts how many primes that up to a million, up to a trillion. It's not an obvious question. And basically what he did was that he computed, I mean, mostly by himself, but also hired human computers, people whose professional job it was to do arithmetic, to compute the first 100,000 frams or something, and made tables and made a prediction. That was an early example of experimental mathematics, but until very recently it was not. I mean, theoretical mathematics was just much more successful because doing complicated mathematical computations was just not feasible until very recently. And even nowadays, even though we have powerful computers, only some mathematical things can be explored numerically. There's something called the combinatorial explosion. If you want us to study, for example, Zamori's theorem, you want to study all possible subsets of the numbers one to a thousand. There's only 1,000 numbers. How bad could it be? It turns out the number of different subsets of one to a thousand is two to the power one thousand, which is way bigger than any computer currently can enumerate, any computer ever will ever enumerate. So there are certain math problems that very quickly become just intractable to attack by direct brute force computation. Chess is another famous example. The number of chess positions we can't get a computer to fully explore. But now we have AI, we have tools to explore this space, not with 100% guarantees of success, but with experiment. So we can empirically solve chess. Now, for example, we have very, very good AIs that can. They don't explore every single position in the game tree, but they have found some very good approximation. And people are using actually these chess engines to do experimental chess, that they're revisiting old chess theories about, oh, this type of opening A good type of move. This is not. And they can use these chess engines to actually refine, in some cases overturn, conventional wisdom about chess. And I do hope that mathematics will have a larger experimental component in the future, perhaps powered by AI.
Lex Fridman
We'll of course talk about that. But in the case of chess, and there's a similar thing in mathematics, I don't believe it's providing a kind of formal explanation of the different positions. It's just saying which position is better or not. And you can intuit as a human being, and then from that, we humans can construct a theory of the matter. You've mentioned the Plato's cave allegory. So in case people don't know, it's where people are observing shadows of reality, not reality itself. And they believe what they're observing to be reality. Is that in some sense what mathematicians and maybe all humans are doing is looking at shadows of reality. Is it possible for us to truly access reality?
Terence Tao
Well, there are these three ontological things. There's actual reality, there's our observations and our models. And technically they are distinct, and I think they will always be distinct. But they can get closer over time. And the process of getting closer often means that you have to discard your initial intuitions. So astronomy provides great examples. An initial model of the world is flat because it looks flat and it's big. And the rest of the universe, the skies, is not like the sun, for example, looks really tiny. And so you start off with a model which is actually really far from reality, but it fits kind of the observations that you have, so things look good. But over time, as you make more and more observations bring it closer to reality, the model gets dragged along with it. And so over time, we had to realize that the Earth was round, that it spins, it goes around the solar system, solar system goes around the galaxy, and so on and so forth. And the universe is expanding, the expansion is itself expanding, accelerating. And in fact, very recently, this year or so, even the acceleration of the universe itself is this evidence that is non constant.
Lex Fridman
And the explanation behind why that is, it's catching up. It's catching up. I mean, it's still the dark matter, dark energy, this kind of thing.
Terence Tao
We have a model that sort of explains, that fits the data really well. It just has a few parameters that you have to specify. So people say, oh, that's fudge factors. With enough fudge factors, you can explain anything. But the mathematical point of the model is that you want to have fewer parameters in your model than data points in your Observational set. So if you have a model with 10 parameters that explains 10 observations, that is a completely useless model. It's what's called overfitted. But if you have a model with two parameters and it explains a trillion observations, which is basically so. Yeah, the dark matter model, I think has like 14 parameters and it explains petabytes of data that the astronomers have. You can think of a theory, like one way to think about physical mathematical theory. A theory is it's a compression of the universe and data compression. So you have these petabytes of observations. You like to compress it to a model which you can describe in five pages and specify a certain number of parameters. And if it can fit to reasonable accuracy, almost all of your observations. I mean, the more compression that you make, the better your theory.
Lex Fridman
In fact, one of the great surprises of our universe and of everything in it is that it's compressible at all. That's the unreasonable effectiveness of mathematics.
Terence Tao
Yeah, Einstein had a quote like that. The most incomprehensible thing about the universe is that it is comprehensible.
Lex Fridman
Right. And not just comprehensible. You can do an equation like E equals MC squared.
Terence Tao
There is actually a some mathematical possible explanation for that. So there's this phenomenon in mathematics called universality. So many complex systems at the macro scale are coming out of lots of tiny interactions at the macro scale. And normally because of the common form of explosion, you would think that the macro scale equations must be infinitely exponentially more complicated than the microscale ones. And they are if you want to solve them completely. Exactly. Like if you want to model all the atoms in a box of air. That's like Avogadro's number is humongous. There's a huge number of particles. If you actually have to track each one, it'll be ridiculous. But certain laws emerge at the microscopic scale that almost don't depend on what's going on at the macro scale or only depend on a very small number of parameters. So if you want to model a gas of quintillion particles in a box, you just need to know its temperature and pressure and volume and a few parameters like five or six, and it models almost everything you need to know about these 10 to 23 or whatever particles. So we don't understand universality anywhere near as we would like mathematically. But there are much simpler toy models where we do have a good understanding of why universality occurs. Most basic one is the central limit theorem that explains why the Bell curve shows up everywhere in nature. That so many things are distributed by what's called a Gaussian distribution. Famous Bell curve. There's now even a meme with this curve.
Lex Fridman
And even the meme applies broadly. There's universality to the meme.
Terence Tao
Yes, you can call Meta if you like, but there are many, many processes. For example, you can take lots and lots of independent random variables and average them together in various ways. You can take a simple average or more complicated average. And we can prove in various cases that these Bell curves, these Gaussians emerge. And it is a satisfying, satisfying explanation. Sometimes they don't. So if you have many different inputs and they're all correlated in some systemic way, then you can get something very far from a Bell curve show up. And this is also important to know when the fails. So universality is not a 100% reliable thing to rely on. The global financial crisis was a famous example of this. People thought that mortgage defaults had this sort of Gaussian type behavior that if you ask if you have a population of 100,000Americans with mortgages, ask what proportion of them would default on their mortgages if everything was decorrelated, There'll be an Asbel curve and you can manage risk with options and derivatives and so forth. And it is a very beautiful theory. But if there are systemic shocks in the economy that can push everybody to default at the same time, that's very non Gaussian behavior. And this wasn't fully accounted for in 2008. Now I think there's some more awareness that this is a systemic risk. As you a much bigger issue. And just because the model is pretty and nice, it may not match reality. The mathematics of working out what models do is really important, but also the science of validating when the models fit reality and when they don't. You need both. But mathematics can help because, for example, these central limit theorems, it told you that if you have certain axioms like non correlation, that if all the inputs were not correlated to each other, then you have these Gaussian behaviors that things are fine. It tells you where to look for weaknesses in the model. So if you have a mathematical understanding of central limit theorem, and someone proposes to use these Gaussian copulas or whatever to model default risk, if you're mathematically trained, you would say, okay, but what are the systemic correlation between all your inputs? And so then you can ask the economists, how much of a risk is that? And then you can go look for that. So there's always this synergy between science and mathematics.
Lex Fridman
A little Bit on the topic of universality, you're known and celebrated for working across an incredible breadth of mathematics reminiscent of Hilbert a century ago. In fact, the great Fields medal winning mathematician Tim Gowers has said that you are the closest thing we get to Hilbert. He's a colleague of yours?
Terence Tao
Oh yeah, good friend.
Lex Fridman
But anyway, so you are known for this ability to go both deep and broad in mathematics. So you're the perfect person to ask. Do you think there are threads that connect all the disparate areas of mathematics? Is there a kind of deep underlying structure to all of mathematics?
Terence Tao
There's certainly a lot of connecting threads and that a lot of the progress of mathematics can be represented by taking by stories of two fields of mathematics that were previously not connected and finding connections. An ancient example is geometry and number theory. So in the times of the ancient Greeks these were considered different subjects. I mean mathematicians worked on both. Euclid worked both on geometry most famously, but also on numbers. But they were not really considered related. I mean a little bit like you could say that this length was 5 times this length because you could take 5 copies of this length and so forth. But it wasn't until Descartes who really realized that develop what we now call analytic geometry. You can parameterize the plane, a geometric object, by two real numbers. Every point can be. And so geometric problems can be turned into problems about numbers. And today this feels almost trivial. There's no content to list. Of course a plane is XX and y because that's what we teach and it's internalized. But it was an important development that these two fields were unified and this process has just gone on throughout mathematics over and over again. Algebra and geometry were separated and now we have a split archer geometry that connects them and over and over again. And that's certainly the type of mathematics that I enjoy the most. So I think there's sort of different styles to being a mathematician. I think hedgehogs and fox. A fox knows many things a little bit, but a hedgehog knows one thing very, very well. And in mathematics there's definitely both hedgehogs and foxes and then there's people who are kind of, who can play both roles. And I think ideal collaboration between mathematicians involves you need some diversity, like a fox working with many hedgehogs or vice versa. But I identify mostly as a fox, certainly I like arbitrage, somehow learning how one field works, learning the tricks of that field and then going to another field which people don't think is related. But I can adapt the tricks.
Lex Fridman
So see the connections between the fields.
Terence Tao
So there are other mathematicians who are far deeper than I am. They're really hedgehogs. They know everything about one field and they're much faster and more effective in that field. But I can give them these extra tools.
Lex Fridman
I mean, you've said that you can be both the hedgehog and the fox, depending on the context, depending on the collaboration. So can you, if it's at all possible, speak to the difference between those two ways of thinking about a problem? Say you're encountering a new problem, searching for the connections versus very singular focus.
Terence Tao
I'm much more comfortable with the fox paradigm. I like looking for analogies, narratives. I spend a lot of time. If there's a result, I see it in one field and I like the result, It's a cool result. But I don't like the proof. It uses types of mathematics that I'm not super familiar with. I often try to reprove it myself using the tools that I favor. Often my proof is worse, but by the exercise of doing so, I can say, oh, now I can see what the other proof was trying to do. And from that I can get some understanding of the tools that are used in that field. So it's very exploratory, doing crazy things in crazy fields and reinventing the wheel a lot. Whereas the hedgehog style is, I think, much more scholarly. You're very knowledge based. You stay up to speed on all the developments in this field, you know, all the history. You have a very good understanding of exactly the strengths and weaknesses of each particular technique. Yeah, I think you'd rely a lot more on sort of calculation than sort of trying to find narratives. So, yeah, I mean, I could do that too. But there are other people who are extremely good at that.
Lex Fridman
Step back and maybe look at a bit of a romanticized version of mathematics. So I think you've said that early on in your life, math was more like a puzzle solving activity. When you were young, when did you first encounter a problem or proof where you realized math can have a kind of elegance and beauty to it?
Terence Tao
That's a good question. When I came to graduate school in Princeton. So John Conway was there at the time. He passed away a few years ago. But I remember one of the very first research talks I went to was a talk by Conway on what he called extreme proof. So Conway just had this amazing way of thinking about all kinds of things in a way that you wouldn't normally think of. So he thought of proofs themselves as occupying some sort of space. So if you want to, to prove something. Let's say that there's infinitely many primes. Okay. You have all different proofs, but you could rank them in different axes. Like some proofs are elegant, proofs are long, some proofs are elementary and so forth. And so there's this cloud. So the space of all proofs itself has some sort of shape. And so he was interested in extreme points of this shape. Like out of all these proofs, what is the one that is the shortest at the expense of everything else or the most elementary or, or whatever. And so he gave some examples of well known theorems and then he would give what he thought was the extreme proof in these different aspects. I just found that really eye opening. It's not just getting a proof for a result was interesting, but once you have that proof, trying to optimize it in various ways. That proofing itself had some craftsmanship to certainly informed my writing style that when you do your math assignments and undergraduate your homework and so forth, you're sort of encouraged to just write down any proof that works and hand it in. As long as it gets a tick mark, you move on. But if you want your results to actually be influential and be read by people, it can't just be correct. It should also be a pleasure to read, motivated, be adaptable, to generalize to other things. It's the same in many other disciplines like coding. There's a lot of analogies between math and coding. I like analogies, if you haven't noticed. You can code something spaghetti code that works for a certain task and it's quick and dirty and it works. But there's lots of good principles for writing code well so that other people can use it, build upon it and so then has fewer bugs and whatever. And there's similar things with mathematics.
Lex Fridman
So yeah, first of all, there's so many beautiful things there. And Kamala is one of the great minds in mathematics ever and computer science. Just even considering the space of proofs and saying okay, what does this space look like and what are the extremes? Like you mentioned, coding is an analogy. Is interesting because there's also this activity called Code Golf.
Terence Tao
Oh yeah, yeah, yeah.
Lex Fridman
Which I also find beautiful and fun where people use different programming languages to try to write the shortest possible program that accomplishes a particular task. And I believe there's even competitions on this. And it's also a nice way to stress test not just the sort of the programs or in this case the proofs, but also the different languages. Maybe that's a different notation or Whatever to use to accomplish a different task.
Terence Tao
Yeah, you learn a lot. I mean, it may seem like a frivolous exercise, but it can generate all these insights which if you didn't have this artificial objective to pursue, you might.
Lex Fridman
Not see what to use the most beautiful or elegant equation in mathematics. I mean, one of the things that people often look to in beauty is the simplicity. So if you look at E equals MC squared. So when a few concepts come together, that's why the Euler identity is often considered the most beautifully equation in mathematics. Do you find beauty in that one in the oil identity?
Terence Tao
Yeah, well, as I said, I mean, what I find most appealing is connections between different things that you. So if E to the PI I equals minus one. So yeah, people always use all the fundamental constants. Okay, that's cute, but to me. So the exponential function was introduced by Euler to measure exponential growth. So compound interest or decay. Anything which is continuously growing, continuously decreasing growth and decay or dilation or contraction is modeled by the exponential function. Whereas PI comes around from circles and rotation. If you want to rotate a needle, for example, 180 degrees, you need to rotate by PI, radians and I. Complex numbers represents the swapping between rule and imaginary axes of a 90 degree rotation. So a change in direction. So the exponential function represents growth and decay in the direction that you really are when you stick an I in the exponential. Now, instead of motion in the same direction as your current position, it's motion right angles to your current position. So rotation and then so e to the PI equals minus one tells you that if you rotate for time PI, you end up at the other direction. So it unifies geometry through dilation and exponential growth or dynamics through this act of complexification rotation by I. So it connects together all these tools in mathematics, dynamics, geometry and complex and complex. And the complex numbers, they're all considered almost. They're all next door neighbors in mathematics because of this identity.
Lex Fridman
Do you think the thing you mentioned is Q? The collision of notations from these disparate fields is just a frivolous side effect, or do you think there is legitimate value in one notation? All our old friends come together at night.
Terence Tao
Well, it's confirmation that you have the right concepts. So when you first study anything, you have to measure things and give them names. And initially sometimes because your model is again too far off from reality, you give the wrong things the best names and you only find out later what's really important.
Lex Fridman
Physicists can do this sometimes, but it turns out okay.
Terence Tao
So actually with physics So E equals MC squared, okay? So one of the big things was the E. So when Aristotle first came up with his laws of motion, and then Galileo and Newton and so forth, they saw the things they could measure. They could measure mass and acceleration and force and so forth. And so Newtonian mechanics, for example, I think it was ma, was the famous Newton's second law of motion. So those were the primary objects. So they gave them the central billing in the the theory. It was only later, after people started analyzing these equations, that there always seemed to be these quantities that were conserved. So in particular momentum and energy. And it's not obvious that things happen. Energy, it's not something you can directly measure the same way you can measure mass and velocity and so forth. But over time, people realized that this was actually a really fundamental concept. Hamilton eventually, in the 19th century, reformulated Newton's laws of physics into what's called Hamiltonian mechanics, where the energy, which is now called the Hamiltonian, was the dominant object. Once you know how to measure the Hamiltonian of any system, you can describe completely the dynamics, like what happens to all the states. It really was a central actor which was not obvious initially. And this helped. Actually, this change of perspective really helped when quantum mechanics came along. Because the early physicists who studied quantum mechanics, they had a lot of trouble trying to adapt their Newtonian thinking because everything was a particle and so forth, to quantum mechanics, because now everything, because it was a wave, it just looks really, really weird. You ask, what is the quantum version of F equals ma? And it's really, really hard to give an answer to that. But it turns out that the Hamiltonian, which was so secretly behind the scenes in classical mechanics, also is the key object in quantum mechanics, that there's also an object called the Hamiltonian. It's a different type of object. It's what's called an operator rather than a. But again, once you specify it, you specify the entire dynamics. So there's one called Schroinger's equation that tells you exactly how quantum systems evolve. Once you have the Hamiltonian so side by side, they look completely different objects. One involves particles, one involves waves, and so forth. But with this centrality, you could start actually transferring a lot of intuition and facts from classical mechanics to quantum mechanics. So, for example, in classical mechanics, there's this thing called Noether's theorem. Every time there's a symmetry in a physical system, there is a conservation law. So the laws of physics are translation invariant. Like If I move 10 steps to the left, I experience the same Laws of physics, as if I was here. And that corresponds to conservation momentum. If I turn around by some angle, again I experience the same laws of physics. This corresponds to the conservation of angular momentum. If I wait for 10 minutes, I still have the same laws, laws of physics. So this time transition invariance, this corresponds to the law of conservation of energy. So there's this fundamental connection between symmetry and conservation. And that's also true in quantum mechanics. Even though the equations are completely different, but because they're both coming from the Hamiltonian, the Hamiltonian controls everything. Every time the Hamiltonian has a symmetry, the equations will have a conservation law. So once you have the right language, it actually makes things a lot cleaner. One of the problems why we can't unify quantum mechanics and general relativity yet we haven't figured out what the fundamental objects are like. For example, we have to give up the notion of space and time being these almost Euclidean type spaces. We kind of know that at very tiny scales there's going to be quantum fluctuations, there's spacetime foam, and trying to use Cartesian coordinates. Xyz, it's a non starter, but we don't know how to what to replace it with. We don't actually have the mathematical concepts, the analog or the Hamiltonian that sort of organized everything.
Lex Fridman
Does your gut say that there is a theory of everything, so this is even possible to unify, to find this language that unifies general relativity and quantum mechanics?
Terence Tao
I believe so. I mean, the history of physics has been out of unification, much like mathematics over the years, electricity and magnetism were separate theories and then Maxwell unified them. Newton unified the motions of heavens with the motions of objects on the Earth and so forth. So it should happen. It's just that. Again, to go back to this model for observations and theory, part of our problem is that physics is a victim of its own success, that our two big theories of physics, general relativity and quantum mechanics, are so good now. Together they cover 99.9% of sort of all the observations we can make. And you have to either go to extremely insane particle accelerations or the early universe or things that are really hard to measure in order to get any deviation from either of these two theories to the point where you can actually figure out how to combine them together. But I have faith that we've been doing this for centuries and we've made progress before. There's no reason why we should stop.
Lex Fridman
Do you think you will be a mathematician that develops a theory of everything?
Terence Tao
What often happens is that when the physicists need Some theory of mathematics, there's often some precursor that the mathematicians worked out earlier. So when Einstein started realizing that space was curbed, he went to some mathematician and asked, is there some theory of curved space that the mathematicians already came up with that could be useful? And he said, oh, yeah, I think Riemann came up with something. And so, yeah, Riemann had developed Riemannian geometry, which is precisely a physical. A theory of spaces that are curved in various general ways, which turned out to be almost exactly what was needed for Einstein's theory. This is going back to Wigner's unreasonable effectiveness of mathematics. I think the theories that work well for explaining the universe tend to also involve the same mathematical objects that work well to solve mathematical problems. Ultimately, they're just sort of both ways of organizing data in useful ways.
Lex Fridman
It just feels like you might need to go to some weird land that's very hard to, to, to intuit. Like. Yeah, you have like, string theory.
Terence Tao
Yeah, that, that's, that was, that was a leading candidate for many decades. It's, I think it's slowly falling out of fashion because it's, it's not matching experiment.
Lex Fridman
So one of the big challenges, of course, like you said, is experiment is very tough.
Terence Tao
Yes.
Lex Fridman
Because of the, how effective both theories are. But the other is like, just, you know, you're talking about, you're not just deviating from space time. You're going into like some crazy number of dimensions. You're doing all kinds of weird stuff that to us, we've gone so far from this flat earth that we started at, like you mentioned.
Terence Tao
Yeah, yeah.
Lex Fridman
Now we're just, it's, it's very hard to use our limited ape descendants of a cognition to intuit what that reality really is. Like.
Terence Tao
This is why analogies are so important, you know, I mean, so, yeah, the round Earth is not intuitive because we're stuck on it. But round objects in general, we have pretty good intuition. And we have intuition about light works and so forth. And it's actually a good exercise to actually work out how eclipses and phases of the sun and the moon and so forth can be really easily explained by round Earth and round moon models. And you can just take a basketball and a golf ball and a light source and actually do these things yourself. So the intuition is there, but you have to transfer it.
Lex Fridman
That is a big leap intellectually for us to go from flat to round Earth because, you know, our life is mostly lived in flatland.
Terence Tao
Yeah.
Lex Fridman
To load that information and we're all like, take it for granted. We take so many things for granted because science has established a lot of evidence for this kind of thing. But, you know, we're on a round rock, flying through space.
Terence Tao
Yeah, yeah.
Lex Fridman
That's a big leap. And you have to take a chain of those leaps the more and more and more we progress.
Terence Tao
Right, yeah. So modern science is maybe again, a victim of its own success, is that in order to be more accurate, it has to move further and further away from your initial intuition. And so for someone who hasn't gone through the whole process of science education, it looks more and more suspicious because of that. So we need more grounding. There are scientists who do excellent outreach, but there's lots of science things that you can do at home. There's lots of YouTube videos. I did a YouTube video recently of Grant Sanderson, who we talked about this earlier, how the ancient Greeks were able to measure things like the distance of the moon, distance of the Earth, and using techniques that you could also replicate yourself. It doesn't all have to be fancy space telescopes and really intimidating mathematics.
Lex Fridman
Yeah, I highly recommend that. I believe you gave a lecture and you also did an incredible video with Grant. It's a beautiful experience to try to put yourself in the mind of a person from that time, shrouded in mystery. You're like, on this planet, you don't know the shape of it, the size of it. You see some stars, you see some things, and you try to localize yourself in this world and try to make some kind of general statements about distance to places.
Terence Tao
Change of perspective is really important. You say travel broadens the mind. This is intellectual travel. Put yourself in the mind of the ancient Greeks or, or some other person, some other time period, make hypotheses, spherical cows, whatever, speculate. And this is what mathematicians do and some artists do, actually.
Lex Fridman
It's just incredible that given the extreme constraints, you could still say very powerful things. That's why it's inspiring, looking back in history, how much can be figured out when you don't have much figure out stuff.
Terence Tao
If you propose axioms, then the mathematics lets you follow those axioms to their conclusions. And sometimes you can get quite a long way from, from initial hypotheses.
Lex Fridman
If we stay in the land of the weird. You mentioned general relativity. You've contributed to the mathematical understanding of Einstein's field equations. Can you explain this work? And from a sort of mathematical standpoint, what aspects of general relativity are intriguing to you, challenging to you?
Terence Tao
I have worked on some equations. There's something called the wave maps equation or the sigma field Model, which is not quite the equation of spacetime gravity itself, but of certain fields that might exist on top of spacetime. So Einstein's equations of relativity just describe space and time itself, but then there's other fields that live on top of that. There's the electromagnetic field, there's things called Yang mills fields, and there's this whole hierarchy of different equations, of which Einstein is considered one of the most nonlinear and difficult. But relatively low on the hierarchy was this thing called the wave maps equation. So it's a wave which at any given point is fixed to be like on a sphere. So I can think of a bunch of arrows in space and time. So it's pointing in different directions, but they propagate like waves. If you wiggle an arrow, it will propagate and make all the arrows move, kind of like sheaves of wheat in the wheat field. And I was interested in the global regularity problem again for this question. Is it possible for all the energy here to collect at a point? So the equation I considered was actually what's called a critical equation, where the behavior at all scales is roughly the same. And I was able, barely to show that you couldn't actually force a scenario where all the energy concentrated at one point, that the energy had to disperse a little bit, and the moment it dispersed a little bit, it would stay regular. Yeah, this was back in 2000. That was part of why I got interested in Navier Stokes afterwards, actually. Yeah. So I developed some techniques to solve that problem. So part of it is this problem is really nonlinear. Because of the curvature of the sphere, there was a certain nonlinear effect, which was a non perturbative effect. When you sort of looked at it normally, it looked larger than the linear effects of the wave equation. And so it was hard to keep things under control even when the energy was small. But I developed what's called a gauge transformation. So the equation is kind of like an evolution of heaves of wheat, and they're all bending back and forth, and so there's a lot of motion. But if you imagine stabilizing the flow by attaching little cameras at different points in space, which are trying to move in a way that captures most of the motion. And under this sort of stabilized flow, the flow becomes a lot more linear. I discovered a way to transform the equation to reduce the amount of nonlinear effects. And then I was able to solve the equation. I found this transformation while visiting my aunt in Australia. And I was trying to understand the dynamics of all these fields. And I couldn't do it with pen and paper. And I had not enough facility of computers to do any computer simulations. So I ended up closing my eyes, being on the floor, and just imagining myself to actually be this vector field and rolling around to try to see how to change coordinates in such a way that somehow things in all directions would behave in a reasonably linear fashion. And yeah, my aunt walked in on me while I was doing that and she was asking, what am I doing doing this?
Lex Fridman
It's complicated, is the answer.
Terence Tao
Yeah, yeah. And okay, fine. You're a young man. I don't ask questions.
Lex Fridman
I have to ask about the. You know, how do you approach solving difficult problems? What if it's possible to go inside your mind when you're thinking, are you visualizing in your mind the mathematical objects, symbols, maybe? What are you visualizing in your mind.
Terence Tao
Usually when you're thinking a lot of pen and paper? One thing you pick up as a mathematician is sort of, I call it cheating strategically. So the beauty of mathematics is that you get to change the problem, change the rules as you wish. You don't get to do this for any other field. If you're an engineer and someone says, build a bridge over this river, you can't say, I want to build this bridge over here instead, or I want to put it out of paper instead of steel. But a mathematician, you can do whatever you want. It's like trying to solve a computer game where there's unlimited cheat codes available. So you can set there's a dimension that's large, I'll set it to one. I'd solve the one dimensional problem first. So there's a main term and an error term. I'm going to make a spherical cow assumption, assuming the error term is zero. And so the way you should solve these problems is not in sort of this ironman mode where you make things maximally difficult, but actually the way you should approach any reasonable math problem is that if there are 10 things that are making your life difficult, find a version of the problem that turns off nine of the difficulties but only keeps one of them and solve that. So you install nine cheats. Okay, if you solve 10 cheats, then the game is trivial, but you install nine cheats. You solve one problem that, that teaches you how to deal with that particular difficulty, and then you turn that one off and you turn something else on, and then you solve that one. And after you know how to solve the 10 problems, 10 difficulties separately, then you have to start merging them a few at a time. As a kid, I watched a lot of These Hong Kong action movies from a culture. And one thing is, every time it's a fight scene, maybe the hero gets swarmed by 100 bad guy goons or whatever, but it'll always be choreographed so that he'd always be only fighting one person at a time. And it would defeat that person and move on. And because of that, he could defeat all of them. But whereas if they had fought a bit more intelligently and just swarmed the guy at once, it would make for much worse cinema, but they would win.
Lex Fridman
Are you usually pen and paper? Are you working with computer and latex?
Terence Tao
I'm mostly pen and paper, actually. So in my office I have four giant blackboards and sometimes I just have to write everything I know about the problem on the four blackboards and then sit on my couch and just sort of see the whole thing.
Lex Fridman
Is it all symbols like notation, or is there some drawings?
Terence Tao
Oh, there's a lot of drawing and a lot of bespoke doodles that only make sense to me. And the beauty of a blackboard is erase. And it's very organic things. I'm beginning to use more and more computers, partly because AI makes it much easier to do simple coding things. If I wanted to plot a function before, which is moderately complicated, has some iteration or something, I'd have to remember how to set up a Python program and how does A for loop work and debug it. And it would take two hours and so forth. And now I can do it in 10, 15 minutes. I'm using more and more computers to do simple explorations.
Lex Fridman
Let's talk about AI a little bit, if we could. So maybe a good entry point is just talking about computer assisted proofs in general. Can you describe the Lean formal proof programming language and how it can help as a proof assistant, and maybe how you started using it and how it has helped you.
Terence Tao
So Lean is a computer language much like sort of standard languages like Python and C and so forth, except that in most languages, the focus is on producing executable code. Lines of code do things, they flip bits or they make a robot move, or they deliver you text on the Internet or something. So Lean is a language that can also do that. It can also be run as a standard traditional language, but it can also produce certificates. So a software language like Python might do a computation and give you that the answer is seven. It does. The sum of three plus four is equal to seven. But Lean can produce not just the answer, but a proof that how it got the answer of seven as three plus four and all the steps involved. So it creates these more complicated objects, not just statements, but statements with proofs attached to them. And every line of code is just a way of piecing together previous statements to create new ones. So the idea is not new. These things are called proof assistants, and so they provide languages for which you can create quite complicated, intricate mathematical proofs. And they produce these certificates that give a 100% guarantee that your arguments are correct if you trust the compiler of Lean. But they made the compiler really small, and there are several different compilers available for the same level.
Lex Fridman
Can you give people some intuition about the difference between writing on pen and paper versus using Lean programming language? How hard is it to formalize statement so Lean?
Terence Tao
A lot of mathematicians were involved in the design of Lean. So it's designed so that that individual lines of code resemble individual lines in a mathematical argument. Like you might want to introduce a variable, you want to prove our contradiction. There are various standard things that you can do and it's written. So ideally it should be like a one to one correspondence. In practice it isn't, because Lean is like explaining a proof to an extremely pedantic colleague who will point out, okay, did you really mean this? What happens if this is zero? Okay, how do you justify this? So Lean has a lot of automation in it to try to be less annoying. So, for example, every mathematical object has to come of a type. Like if I talk about X, is X a real number or a natural number or a function or something? If you write things informally, it's often in terms of context. You say, clearly X is equal to. Let X be the sum of Y and Z, and Y and Z were already real numbers, so X should also be a real number. So Lean can do a lot of that. But every so often it says, wait a minute, can you tell me more about what this object is, what type of object it is? You have to think more at a philosophical level, not just sort of computations that you're doing, but sort of what each object actually is in some sense.
Lex Fridman
Is he using something like LLMs to do the type inference or you mention.
Terence Tao
With the realms, it's using much more traditional, what's called good old fashioned AI. You can represent all these things as trees and there's always algorithms to match one tree to another tree.
Lex Fridman
So it's actually doable to figure out if something is a real number or a natural number.
Terence Tao
Every object stuff comes with a history of where it came from and you can kind of trace, oh, I see, yeah. So it's Designed for reliability. So modern AIs are not used in. It's a disjoint technology. People are beginning to use AIs on top of Lean. So when a mathematician tries to program proof in Lean, often there's a step. Okay, now I want to use the fundamental calculus to do the next step. So the Lean developers have built this massive project called mathalib, a collection of tens of thousands of useful facts about mathematical objects. And somewhere in there is the fundamental theme of calculus, but you need to find it. So a lot, the bottom neck now is actually Lemma Search. There's a tool that you know is in there somewhere and you need to find it. And so there are various search engines specialized for mathlib that you can do, but there's now these large language models that you can say, I need the fundamental calculus at this point. And it was like, okay, for example, when I code, I have GitHub Copilot installed as a plugin to my IDE and it scans my text and it sees what I need, says, I might even type. Now I need to use the fundamental calculus. And then it might suggest, okay, try this. And maybe 25% of the time it works. Exactly. And then another 10, 15% of the time it doesn't quite work, but it's close enough that I can say, oh yeah, if I just change it here and here, it'll work. And then half the time it gives me complete rubbish. But people are beginning to use AIs a little bit on top, mostly on the level of basically fancy autocomplete, that you can type half of one line of a proof and it will find. It will tell you.
Lex Fridman
Yeah, but a fancy, especially fancy with the sort of capital letter F is remove some of the friction Mathematician might feel when they move from pen and paper to formalizing.
Terence Tao
Yes, yeah. So right now I estimate that the effort, time and effort taken to formalize a proof is about 10 times the amount taken to write it out. Yeah, so it's doable, but it's annoying.
Lex Fridman
But doesn't it kill the whole vibe of being a mathematician, having a pedantic coworker?
Terence Tao
Right, yeah, if that was the only aspect of it, okay, but, okay, there are some cases where it's actually more pleasant to do things formally. So there was a theorem I formalized and there was a certain constant 12 that came out in the final statement. And so this 12 had to be carried all through the proof and everything had to be checked. That all these other numbers had to be consistent with this final number 12. And then so we wrote a paper through this theorem with this number 12. And then a few weeks later, someone said, oh, we can actually improve this 12 to an 11 by reworking some of these steps. And when this happens with pen and paper, every time you change a parameter, you have to check line by line that every single line of your proof still works. And there can be subtle things that you didn't quite realize, some properties on a matrol that you didn't even realize that you were taking advantage of. So a proof can break down at a subtle place. So we had formalized the proof with this constant 12. And then when this new paper came out, we said, okay, so that took like three weeks to formalize and like 20 people to formalize this original proof. I said, oh, but now let's update the 12 to 11. And what you can do with Lean is that you just, in your headline theorem, you change your 12 to 11. You run the compiler, and of the thousands of lines of code you have, 90% of them still work. And there's a couple that are lined in red. Now, I can't justify these steps, but it immediately isolates which steps you need to change. But you can skip over everything, which works just fine. And if you program things correctly with good programming practices, most of your lines will not be read. And there'll just be a few places where you. I mean, if you don't hard code your constants, but you sort of use smart tactics and so forth, you can localize the things you need to change to a very small period of time. So within a day or two, we had updated our proof because this is a very quick process. You make a change. There are 10 things now that don't work. For each one, you make a change. And now there's five more things that don't work. But the process converges much more smoothly than with pen and paper.
Lex Fridman
So that's for writing. Are you able to read it? Like, if somebody else sends a proof, are you able to. Like, what's the versus Paper?
Terence Tao
Yeah, so the proofs are longer, but each individual piece is easier to read. So if you take a math paper and you jump to page 27 and you look at paragraph six and you have a line of text of math, I often can't read it immediately because it assumes various definitions which I have to go back, and maybe 10 pages earlier this was defined and the proof is scattered all over the place, and you basically are forced to read fairly sequentially. It's not like, say, a novel where in theory you could open up a novel halfway through and start reading. There's a lot of context. But when a proven Lean, if you put your cursor on a line of code, every single object there, you can hover over it and it will, it will say what it is, where it came from, where stuff is justified. You can trace things back much easier than sort of flipping through a math paper. So one thing that Lean really enables is actually collaborating on proofs at a really atomic scale that you really couldn't do in the past. So traditionally with pen and paper, when you want to collaborate with another mathematician, either you do it at a blackboard where you can really interact, but if you're doing it sort of by email or something, basically you have to segment it. I'm going to finish section three, you do section four, but you can't really sort of work on the same thing collaboratively at the same time. But with Lean, you can be trying to formalize some portion of the proof and say, I got stuck at line 67 here, I need to prove this thing. But it doesn't quite work. Here's the three lines of code I'm having trouble with. But because all the context is there, someone else can say, oh, okay, I recognize what you need to do. You need to apply this trick or this tool and you can do extremely atomic level conversations. So because of Lean, I can collaborate, you know, with dozens of people across the world, most of whom I don't have never met in person. And I may not know actually even whether how reliable they are in the proofs they give me. But Lean gives me a certificate of trust, so I can do trustless mathematics.
Lex Fridman
So there's so many interesting questions. There's so one, you're known for being a great collaborator. So what, what is the right way to approach solving a difficult problem in mathematics? When you're collaborating, are you doing a divide and conquer type of thing or are you focusing on a particular part and you're brainstorming?
Terence Tao
There's always a brainstorming process first. Yeah. So math research projects, by their nature, when you start, you don't really know how to do the problem. It's not like an engineering project where some other theory has been established for decades and its implementation is the main difficulty. You have to figure out even what is the right path. So this is what I said about cheating first. It's like to go back to the bridge building analogy. First, assume you have infinite budget and unlimited amounts of workforce and so forth. Now can you build this bridge? Okay, now have an infinite budget, but only finite workforce. Now can you do that and so forth. Of course, no engineer can actually do this. They have. Have fixed requirements. Yes, there's this sort of jam sessions always at the beginning where you try all kinds of crazy things and you make all these assumptions that are unrealistic but you plan to fix later. And you try to see if there's even some skeleton of an approach that might work. And then hopefully that breaks up the problem into smaller subproblems, which you don't know how to do. But then you focus on the sub ones and sometimes different collaborators are better at working on certain things. So. So one of my theorems I'm known for is a theorem, Ben Green, which is now called the Green Tau theorem. It's a statement that the primes contain arithmetic progressions of any length. So it's a modification of this theorem. Was already. And the way we collaborated was that Ben had already proven a similar result for progressions of length three. He showed that sets like the primes contain lots and lots of progressions of length 3 and even subsets of the primes. Certain subsets do, but his techniques only worked for length three progressions. They didn't work for longer progressions. But I had these techniques coming from ergodic theory, which is something that I had been playing with. And I knew better than Ben at the time. And so if I could justify certain randomness properties of some set relating to the primes, like there's a certain technical condition, which if I could have it, if Ben could supply me to this fact, I could conclude the theorem. But what I asked was a really difficult question in number theory, which he said, there's no way we can prove this. So he said, can you prove your part of the theorem using a weaker hypothesis that I have a chance to prove it. And he proposed something which he could prove, but it was too weak for me. I can't use this. So there was this conversation going back and forth.
Lex Fridman
Different cheats too.
Terence Tao
Yeah, I want to cheat more, he wants to cheat less. But eventually we found a property which A he could prove, and B I could use, and then we could prove our view. There are all kinds of dynamics. I mean, every collaboration has some story. No two are the same.
Lex Fridman
And then on the flip side of that, like you mentioned with Lean programming, now that's almost like a different story because you can create, I think you've mentioned a kind of a blueprint for a problem, and then you can really do a divide and conquer with Lean, where You're working on separate parts and they're using the computer system proof checker, essentially to make sure that everything is correct along the way.
Terence Tao
Yeah. So it makes everything compatible and trustable. Currently, only a few mathematical projects can be cut up in this way. At the current state of the art, most of the Lean activity is on formalizing proofs that have already been proven by humans. A math paper basically is a blueprint in a sense. It is taking a difficult statement like Big Theorem and breaking up into maybe 100 little lemmas, but often not all written with enough detail that each one can be sort of directly formalized. A blueprint is like a really pedantically written version of a paper where every step is explained to as much detail as possible and to try to make each step kind of self contained, or depending on only a very specific number of previous statements that have been proven, so that each node of this blueprint graph that gets generated can be tackled independently of the others. And you don't even need to know how the whole thing works. So it's like a modern supply chain. If you want to create an iPhone or some other complicated object, no one person can build a single object, but you can have specialists who just, if they're given some widgets from some other company, they can combine them together to form a slightly bigger widget.
Lex Fridman
I think that's a really exciting possibility because you can have, if you can find problems that could be broken down this way, then you could have thousands of contributors. Right.
Terence Tao
So I told you before about this split between theoretical and experimental mathematics. And right now most mathematics is theoretical and only a tiny bit is experimental. I think the platform that Lean and other software tools, so GitHub and things like that, will allow experimental mathematics to scale up to a much greater degree than we can do now. So right now, if you want to do any mathematical exploration of some mathematical pattern or something, you need some code to write out the pattern. Sometimes there are some computer algebra packages that can help, but often it's just one mathematician coding lots and lots of Python or whatever. And because coding is such an error prone activity, it's not practical to allow other people to collaborate with you on writing modules for your code, because if one of the modules has a bug in it, the whole thing is unreliable. So, so you get these bespoke spaghetti code written by not professional programmers, but mathematicians, and they're clunky and slow. And so because of that, it's hard to really mass produce experimental results. But I think with Lean, I'm Already starting some projects where we are not just experimenting with data, but experimenting with proofs. So I have this project called the Equational theories project. Basically we generated about 22 million little problems in abstract algebra. Maybe I should back up and tell you what the project is. Okay, so abstract algebra studies operations like multiplication and addition and their abstract properties. So multiplication, for example, is commutative. X times Y is always Y times X, at least for numbers. And it's also associative. X times Y times Z is the same as X times Y times z. So these operations obey some laws that, that don't obey others. For example, X times X is not always equal to X, so that law is not always true. So given any operation, it obeys some laws and not others. And so we generated about 4,000 of these possible laws of algebra that certain operations can satisfy. And our question is, which laws imply which are the ones? So, for example, does commutativity imply associativity? And the answer is no, because it turns out you can describe an operation which obeys the commutative law, but doesn't obey the associative law law. So by producing an example, you can show that commutativity does not imply associativity, but some other laws do imply other laws by substitution and so forth. And you can write down some algebraic proof. So we look at all the pairs between these 4,000 laws, and there's about 22 million of these pairs. And for each pair we ask, does this law imply this law? If so, give a proof. If not, give a counterexample. So 22 million problems, each one of which you could give to a, like an undergraduate algebra student, and they had a decent chance of solving the problem. Although there are a few, at least 22 million. There are like 100 or so that are really quite hard, but a lot are easy. And the project was just to work out to determine the entire graph, like which ones imply which other ones.
Lex Fridman
That's an incredible project, by the way. Such a good idea, Such a good test of the very thing we've been talking about at a scale. That's remarkable.
Terence Tao
Yeah, so it would not have been feasible. I mean, the state of the art in the literature was like 15 equations and sort of how they applied. That's sort of at the limit of what a human repentant paper can do. So you need to scale it up. So you need to crowdsource, but you also need to trust all the. I mean, no one person can check 22 million of these proofs you needed to be computerized. And so it only became possible with Lean. We were hoping to use a lot of AI as well. So the project is almost complete. So at least 22 million. All but two have been settled.
Lex Fridman
Wow.
Terence Tao
And. Well, actually, and of those two, we have a pen and paper proof of the two and we're formalizing it. In fact, this morning I was working on finishing it. So we're almost done on this.
Lex Fridman
It's incredible.
Terence Tao
Yeah. Fantastic.
Lex Fridman
How many people were able to get.
Terence Tao
About 50, which in mathematics is considered a huge number.
Lex Fridman
It's a huge number. That's crazy.
Terence Tao
Yeah. So we're going to have a paper of 50 authors and a big appendix of food contributor. What?
Lex Fridman
Here's an interesting question. Not to maybe speak even more generally about it, when you have this pool of people, is there a way to organize the contributions by level of expertise of the people of the contributors now? Okay, I'm asking a lot of pothead questions here, but I'm imagining a bunch of humans and maybe in the future some AIs. Can there be like an ELO rating type of situation where like a gamification of this.
Terence Tao
The beauty of these Lean projects is that automatically you get all this data. So everything's been uploaded for GitHub and GitHub tracks who contributed what so you could generate statistics at any later point in time. You could say, oh, this person contributed this many lines of code or whatever. These are very crude metrics. I would definitely not want this to become part of your tenure review or something. But I mean, I think already in enterprise computing, right, people do use some of these metrics as part of the assessment of performance of an employee. Again, this is a direction which is a bit scary for academics to go down. We don't like metrics so much and.
Lex Fridman
Yet academics use metrics. They just use old ones. Number of papers.
Terence Tao
Yeah, yeah, it's true that. Yeah. I mean, it feels like this is.
Lex Fridman
A metric, while flawed is going in the more in the right direction. Right. Yeah, it's an interesting. At least it's a very interesting metric.
Terence Tao
Yeah, I think it's interesting to study. I mean, I think you can do studies of whether these are better predictors. There's this problem called Goodhart's Law. If a statistic is actually used to incentivize performance, it becomes gamed and then it is no longer a useful measure.
Lex Fridman
Oh, humans, always.
Terence Tao
Yeah, yeah. No, I mean it's gaming these rational. So what we've done for this project is self reporting. So there are actually Standard categories from the sciences of what types of contributions people give. So there's this concept and validation and resources and coding and so forth. So there's a Standard list of 12 or so categories, and we just ask each contributor to. There's a big matrix of all the authors in all the categories just to tick the boxes where they think that they contributed and just give a rough idea. So you did some coding and you provided some compute, but you didn't do any of the pen and paper verification or whatever. And I think that works out. Traditionally, mathematicians just order alphabetically by surname. So we don't have this tradition, as in the sciences, of lead author and second author and so forth, which we're proud of. We make all the authors equal status, but it doesn't quite scale to this size. So a decade ago, I was involved in these things called polymath projects. It was the crowdsourcing mathematics, but without the lean component. So it was limited by. You needed a human moderator to actually check that all the contributions coming in were actually validated. And this was a huge bottleneck, actually. But still we had projects that were 10 authors or so, but we had decided at the time not to try to decide who did what, but to have a single pseudonym. So we created this fictional character called dhj Polymath. In the spirit of Borbaki, Warbaki is the pseudonym for a famous group of mathematicians in the 20th century. And so the paper was authored on the pseudonymous, so none of us got the author credit. This actually turned out to be not so great for a couple of reasons. So one is that if you actually wanted to be considered for tenure or whatever, you could not use this paper as you submitted as one of your publications, because you didn't have the formal author credit. But the other thing that we've recognized until much later is that when people referred to these projects, they naturally refer to the most famous person who was involved in the project. Oh, so this was Tim Gower's primary project. This was Terrence Tao's 0.5 project, and not mention the other 19 or whatever people that were involved. So we're trying something different this time around, where everyone's an author, but we will have an appendix with this matrix and we'll see how that works.
Lex Fridman
So both projects are incredible, just the fact that you're involved in such huge collaborations. But I think I saw a talk from Kevin Buzzard about the lean programming language just a few years ago, and you're saying that this might be the future of mathematics, and so it's also exciting that you're embracing one of the greatest mathematicians in the world, embracing this, what seems like the paving of the future of mathematics. So I have to ask you here about the integration of AI into this whole process. So DeepMind's alpha proof was trained using reinforcement learning on both failed and successful formal lean proofs of IMO prior problems. So this is sort of high level high school.
Terence Tao
Oh, very high level, yes, very high.
Lex Fridman
Level, high school level mathematics problems. What do you think about the system and maybe what is the gap between this system that is able to prove the high school level problems versus gradual level problems?
Terence Tao
Yeah, the difficulty increases exponentially with the the number of steps involved in the proof. It's a combinatorial explosion. Right. So the thing with large language models is that they make mistakes. And so if a proof has got 20 steps and your large language model has a 10% failure rate at each step of going in the wrong direction, it's just extremely unlikely to actually reach the end.
Lex Fridman
Actually, just to take a small tangent here, how hard is the problem of mapping from natural language to the formal program?
Terence Tao
Oh yeah, it's extremely hard actually. Natural language, it's very fault tolerant. You can make a few minor grammatical errors and a speaker in the second language can get some idea of what you're saying. But formal language, if you get one little thing wrong, I think the whole thing is nonsense. Even formal to formal is very hard. There are different incompatible proof assistant languages. There's Lean, but also Koch and Isabel and so forth. And actually even converting from a formal language to formal language, it's an unsolved, basically unsolved problem.
Lex Fridman
That is fascinating. Okay. But once you have an informal language, they're using their RL trained model. So something akin to alpha zero that they use to go to then try to come up with proofs. They also have a model, I believe it's a separate model for geometric problems. So what impresses you about this system and what do you think is the gap?
Terence Tao
Yeah, we talked earlier about things that are amazing over time become kind of normalized. So now somehow it's. Of course geometry is a solvable problem, right?
Lex Fridman
That's true, that's true. I mean it's still beautiful to work the job.
Terence Tao
These are great work. It shows what's possible. The approach doesn't scale. Currently three days of Google's server time. So one high school math problem A, this is not a scalable prospect, especially with the exponential increase as the complexity increases.
Lex Fridman
We should mention that they got a silver medal performance the equivalent of.
Terence Tao
I mean, yeah, equivalent of a silver medal performance. So first of all, they took way more time than was allotted and they had this assistance where the humans helped by formalizing, but also they're giving us those full marks for the solution, which I guess is formally verified. So I guess that's fair. Yeah. There are efforts, there will be a proposal at some point to actually have an AI Math Olympiad, where at the same time as the human contestants get the actual Olympiad problems, AIs will also be given the same problems with the same time period, and the outputs will have to be graded by the same judges, which means that it will have to be written in natural language rather than formal language.
Lex Fridman
Oh, I hope that happens. I hope that this IMO happens.
Terence Tao
It won't happen. This imo, the performance is not good enough in the time period. But there are smaller competitions. There are competitions where the answer is a number rather than a long form proof. And AIs are actually a lot better at problems where there's a specific numerical answer because it's easy to. To reinforcement learning on it. Yeah, you got the right answer, you got the wrong answer, It's a very clear signal. But a long form proof either has to be formal and then the lean can give it a thumbs up, thumbs down, or it's informal. But then you need a human to grade it. And if you're trying to do billions of reinforcement learning runs, you can't hire enough humans to grade those. It's already hard enough for the last language models to do reinforcement learning on just the regular text that people get. But now if you actually hire people and not just give thumbs up, thumbs down, but actually check the output, mathematically, that's too expensive.
Lex Fridman
So if we just explore this possible future, what is the thing that humans do that's most special in mathematics? So that you could see AI not cracking for a while. So inventing new theories, so coming up with new conjectures versus proving the conjectures, building new abstractions, new representations, maybe an AI Terrence style with seeing new connections between disparate fields.
Terence Tao
That's a good question. I think the nature of what mathematicians do over time has changed a lot, you know, So a thousand years ago, mathematicians had to compute the date of Eastern and those really complicated calculations. But it's all automated, been automated for centuries. We don't need that anymore. They used to navigate, to do spherical trigonometry, to navigate how to get from the old world to the new. Very complicated calculations. Again, being automated even a lot of undergraduate mathematics, even before AI like Wolfram Alpha, for example, it's not a language model, but it can solve a lot of undergraduate level math tasks. So on the computational side, verifying routine things like having a problem and say, here's a problem in partial differential equations, could you solve it using any of the 20 standard techniques? And the AI will say, yes, I've tried all 20, and here are the 100 different permutations and here's my results. And that type of thing, I think it will work very well. Type of scaling, once you solve one problem to make The AI attack 100 adjacent problems. The things that, that humans do still. So where the AI really struggles right now is knowing when it's made a wrong turn. It can say, oh, I'm going to solve this problem, I'm going to split up this problem into these two cases, I'm going to try this technique. And sometimes, if you're lucky and it's a simple problem, it's the right technique and you solve the problem and sometimes it will have a problem. It would propose an approach which is just complete nonsense, but it looks like a proof. So this is one annoying thing about LLM generated mathematics. So we've had human generate mathematics that's very low quality, like submissions people who don't have the formal training and so forth. But if a human proof is bad, you can tell it's bad pretty quickly. It makes really basic mistakes. But the AI generator proofs, they can look for superficially flawless. And that's partly because that's what the reinforcement learning has actually trained them to do, to produce text that looks like what is correct, which for many applications is good enough. So the errors are often really subtle and then when you spot them, they're really stupid. No human would have actually made that mistake.
Lex Fridman
Yeah, it's actually really frustrating in the programming context because I program a lot and yeah, when a human makes low quality code, there's something called code smell. Right. You can tell, you can tell immediately like there's signs. But with AI generate code and then you're right, eventually you find an obvious dumb thing that just looks like good code.
Terence Tao
Yeah.
Lex Fridman
So it's very tricky too, and frustrating for some reason to work.
Terence Tao
Yeah. So the sense of smell. Okay, there you go. This is one thing that humans have, and there's a metaphorical mathematical smell that it's not clear how to get the AIs to duplicate that eventually. I mean, so the way alphazero and so forth make progress on go and chess and so forth is in some sense they have Developed a sense of smell for go and test positions, that this position is good for white, it's good for black. They can't enunciate why, but just having that, that sense of smell lets them strategize. So if AIs gain that ability to sort of a sense of viability of certain proof strategies, so you can say, I'm going to try to break up this problem into two small subtasks and they can say, oh, this looks good. Two tasks look like they're simpler tasks than your main task and they still got a good chance of being true. So this is good to try. Or. No, you made the problem worse because each of the two subproblems is actually harder than your original problem, which is actually what normally happens if you try a random thing to try. Normally you actually. It's very easy to transform a problem into an even harder problem. Very rarely do you transform to a simpler problem. So if they can pick up a sense of smell, then they could maybe start competing with human level mathematicians.
Lex Fridman
So this is a hard question, but not competing, but collaborating. If, okay, hypothetical. If I gave you an oracle that was able to do some aspect of what you do and you could just collaborate with it.
Terence Tao
Yeah, yeah, yeah.
Lex Fridman
What would that oracle, what would you like that oracle to be able to do? Would you like it to maybe be a verifier, like check. Do the code smell like you're. Yes, Professor Tao, this is the correct. This is a good. This is a promising, fruitful direction.
Terence Tao
Yeah, yeah, yeah.
Lex Fridman
Or, or would you like it to generate possible proofs and then you see which one is the right one? Or would you like it to maybe generate different representation? Different, different. Totally different ways of seeing this problem?
Terence Tao
I think all of the above, a lot of it is we don't know how to use these tools because it's a paradigm that we have not had in the past. Assistants that are competent enough to understand complex instructions that can work at massive scale, but are also unreliable. It's an interesting. Unreliable in subtle ways whilst we was providing sufficiently good output. It's an interesting combination. I mean, you have graduate students that you work with who are kind of like this, but not at scale. And we had previous software tools that can work at scale but very narrow. So we have to figure out how to use. I mean, so Tim Carlos actually mentioned, he actually foresaw, like in 2000, he was envisioning what mathematics would look like in actually two and a half decades.
Lex Fridman
That's funny.
Terence Tao
Yeah. He wrote in his article, like a Hypothetical conversation between a mathematical assistant of the future and himself. He's trying to solve a problem. And they would have a conversation. Sometimes the human would propose an idea and the AI would evaluate it, and sometimes the AI would propose an idea and sometimes a computation was required and the AI would just go and say, okay, I've checked the 100 cases needed here or the first year. You said this is true for all N. I've checked to put n up to 100 and it looks good so far. Or hang on, there's a problem at n equals 46. So just a free form conversation where you don't know in advance where things are going to go. But just based on, I think ideas get proposed on both sides, calculations get proposed on both sides. I've had conversations with AI where I say, okay, we're going to collaborate to solve this math problem. And it's a problem that I already know the solution to, so I try to prompt it. Okay, so here's the problem. I suggest using this tool and it'll find this lovely argument using a completely different tool which eventually goes into the weeds and say, no, no, no, try using this, okay? And it might start using this. And then it'll go back to the tool that it wanted to do before and you have to keep railroading it onto the path you want. And I could eventually force it to give the proof I wanted, but it was like herding cats. And the amount of personal effort I had to take to not just sort of prompt it, but also check its output because a lot of what it looked like is going to work. I know there's a problem on line 17 and, and basically arguing with was more exhausting than doing it unassisted, but that's the current state of the art.
Lex Fridman
I wonder if there's a phase shift that happens to where it's no longer feels like herding cats. And maybe you'll surprise us how quickly that comes.
Terence Tao
I believe so. In formalization, I mentioned before that it takes 10 times longer to formalize a proof than to write it by hand. With these modern AI tools and also just better tooling, the Lean developers are doing a great job adding more and more features and making it user friendly. It's going from nine to eight to seven. Okay, no big deal. But one day it will drop a little one, and that's a phase shift, because suddenly it makes sense when you write a paper to write it in lean first or through a conversational AI, which is generating lean on the fly with you, and it becomes natural for Journals to accept. Maybe they'll offer an expedite refereeing. If a paper has already been formalized in lean, they'll just ask the referee to comment on the significance of the results and how it connects to literature and not worry so much about the correctness because that's been certified. Papers are getting longer and longer in mathematics and it's harder and harder to get good refereeing for the really long ones unless they're really important. It is actually an issue which the formalization is coming in at just the right time for this to be and.
Lex Fridman
The easier and easier to guess because of the tooling and all the other factors, then you're going to see much more like math lib will grow potentially exponentially. It's a virtuous cycle. Okay.
Terence Tao
I mean one face shift of this type that happened in the past was the adoption of latex. So latex is this typesetting language that all mathematicians use now. So in the past people used all kinds of word processors and typewriters and, and whatever. But at some point Latex became easier to use than all other competitors and people switched, you know, within a few years, like it was just a dramatic phase shift.
Lex Fridman
It's a wild out there question, but what year, how far away are we from a AI system being a collaborator on a proof that wins the Fields medal? So that level.
Terence Tao
Okay, well, it depends on the level of collaboration.
Lex Fridman
No, like it deserves to be to get the Fields model.
Terence Tao
So half and half already. I can imagine a Fields metal winning paper having some AI systems in writing it. The autocomplete alone is a really. I use it, it speeds up my own writing. You can have a theorem, you have a proof, and the proof has three cases. And I write down the proof of the first case and the autocomplete just suggests now, now here's how the proof of second case could work. And he was exactly correct. I was great. Saved me like 5, 10 minutes of typing.
Lex Fridman
But in that case, the AI system doesn't get the Fields metal.
Terence Tao
No.
Lex Fridman
Are we talking 20 years, 50 years, 100 years? What do you think?
Terence Tao
Okay, so I gave a prediction in print. So by 2026, which is now next year, there will be math collaborations with AI. So not Fields metal winning, but actual research level published ideas that are in.
Lex Fridman
Part generated by AI.
Terence Tao
Maybe not the ideas, but at least some of the computations, verifications.
Lex Fridman
Has that already happened?
Terence Tao
Has already happened, yeah. There are problems that were solved by a complicated process conversing with AI to propose things. And the human goes and tries it and the contract doesn't work, but it might pose a different idea. It's hard to disentangle. Exactly. There are certainly math results which could only have been accomplished because there was a human mathematician and an AI involved. But it's hard to sort of disentangle credit. I mean these tools, they do not replicate all the skills needed to do mathematics, but they can replicate sort of some non trivial percentage of them, you know, 30, 40% so they can fill in gaps, you know, so coding is a good example, you know, so it's annoying for me to code in Python, I'm not a native, I'm not a professional programmer. But with AI the friction cost of doing it is much reduced. So it fills in that gap for me. AI is getting quite good at literature review view. I mean there's still a problem with hallucinating references that don't exist, but this I think is a solvable problem. If you train in the right way and so forth and verify using the Internet. You should in a few years get the point where you have a lemma that you need and say has anyone proven this lemma before? And it will do basically a fancy web search, AI assisted and say yeah, there are these six papers where something similar has happen. You can ask it right now and it'll give you six papers of which maybe one is legitimate and relevant, one exists but is not relevant and four are hallucinated. It has a non zero success rate right now, but there's so much garbage, the signal to noise ratio is so poor that it's most helpful when you already somewhat know the literature and you just need to be prompted to be reminded of a paper that was very subconsciously in your memory versus helping you.
Lex Fridman
Discover new you were not even aware of. But is the correct citation.
Terence Tao
Yeah, that's. Yeah, that it can sometimes do but. But when it does it's. It's buried in, in a list of options for which the other bad.
Lex Fridman
Yeah, I mean being able to automatically generate a related work section that is correct. Yeah, that's actually a beautiful thing. That might be another phase shift because it assigns credit correctly. Yeah, it breaks you out of the silos of thought.
Terence Tao
Yeah, there's a big hump to overcome right now. I mean it's like self driving cars. The safety margin has to be really high for it to be feasible. So yeah, so there's the last mile problem with a lot of AI applications that they can develop tools that work 20%, 80% of the time, but it's still not good enough. Tough and in fact, even worse than good in some ways.
Lex Fridman
I mean, another way of asking the Fields metal question is what year do you think you'll wake up and be like, real surprised? You read the headline. The news of something happened that AI did, like, you know, real breakthrough, something it doesn't, you know, like feels metal, even hypothesis. It could be like really just this alpha zero moment would go, that kind of thing, right?
Terence Tao
Yeah. This decade, I can see it. Making a conjecture between two things that people thought was unrelated.
Lex Fridman
Oh, interesting. Generating a conjecture that's a beautiful conjecture.
Terence Tao
Yeah. And actually has a real chance of being correct and meaningful because that's actually.
Lex Fridman
Kind of doable, I suppose. But where the data is. Yeah, no, that would be truly amazing.
Terence Tao
The current models struggle a lot. I mean, so a version of this is the physicists have a dream of getting the AIs to discover new laws of physics. The dream is you just feed it all this data and here's a new patent that we didn't see before, but it actually even struggles, the current state of the art even struggles to discover old laws of physics from the data. Or if it does, there's a big concern of contamination, that it did it only because somewhere in this training it already somehow knew Boyle's Law or whatever law that you're trying to reconstruct. Part of it is that we don't have the right type of training data for this. So for laws of physics, we don't have a million different universes with a million different laws of nature. A lot of what we're missing in math is actually the negative space. So we have published things of things that people have been able to prove and conjectures that end up being verified or maybe counterexamples produced. But we don't have data on things that were proposed and they're kind of a good thing to try. But then people quickly realized that it was the wrong conjecture and then they said, oh, but we should actually change our claim to modify it in this way to actually make it more plausible. There's a trial and error process which is a real integral part of human mathematical discovery, which we don't record because it's embarrassing. We make mistakes and we only like to publish our wins. And the AI has no access to this data to train on. I sometimes joke that basically AI has to go through grad school and actually go to grad courses, do the assignments, go to office hours, make mistakes, get advice on how to correct the mistakes and learn from that.
Lex Fridman
Let me ask you, if I may, about grigori problem. You mentioned that you try to be careful in your work and not let a problem completely consume you. Just you've really fallen in love with the problem and really cannot rest until you solve it. But you also hasted to add that sometimes this approach actually can be very successful. An example you gave is Gregory Perlman, who proved the point care conjecture and did so by working alone for seven years with basically little contact with the outside world. Can you explain this one, one millennial prize problem that's been solved? Poincat conjecture, and maybe speak to the journey that Grigora Perelman's been on.
Terence Tao
All right, so it's a question about curved spaces. Earth is a good example. So Earth you can think of as a 2D surface in just moving around. The earth could maybe be a torus with a hole in it, or it could have many holes and there are many different topologies a priori that a surface could have, even if you assume that it's bounded and smooth and so forth. So we have figured out how to classify surfaces. As a first approximation, everything's determined by genus how many holes it has. So a sphere has genus zero, a donut has genus one, and so forth. And one way you can tell these surfaces apart, probably the sphere has which is called simply connected. If you take any closed loop on the sphere, like a big closed loop rope, you can contract it to a point and while staying on the surface. And the sphere has this property, but a torus doesn't. If you're on a torus and you take a rope that goes around say the outer diameter torus, there's no way it can't get through the hole. There's no way to contract it to a point. So it turns out that the sphere is the only surface with this property of contractibility, up to like continuous deformations of the sphere. So things that are what are called topologically equivalent of the sphere. So Poincare asks the same question higher dimensions. So this it becomes hard to visualize, because surface you can think of as embedded in three dimensions, but a curved free space, we don't have good intuition of 4D space to live in. And there are also 3D space that can't even fit into four dimensions. You need five or six or higher. But anyway, mathematically you can still pose this question that if you have a bounded three dimensional space now, which also has this simply connected property, that every loop can be contracted, can you turn it into a three dimensional version of a sphere? And so this is the Poincare conjecture. Weirdly, in higher dimensions, 4 and 5 was actually easier, so it was solved first. In higher dimensions, there's somehow more room to do the deformation. It's easier to move things around. Sphere. But three was really hard. So people tried many approaches. There's sort of combinatorial approaches where you chop up the surface into little triangles or tetrahedra, and you just try to argue based on how the faces interact each other. There are algebraic approaches. There's various algebraic objects, like things called the fundamental group, that you can attach to these homology and cobology and all these very fancy tools. They also didn't quite work. But Richard Hamilton proposed a partial differential equations approach. The problem is that you have this object which is secretly a sphere, but it's given to you in a weird way. So think of a ball that's been kind of crumpled up and twisted, and it's not obvious that it's the ball, but if you have some sort of surface, which is a deformed formed sphere, you could, for example, think of it as the surface of a balloon. You could try to inflate it. You blow it up and naturally, as you fill the air, the wrinkles will sort of smooth out and it will turn into a nice round sphere. Unless, of course, it was a torus or something, in which case it would get stuck at some point, like if you inflated a torus, there'll be a point in the middle when the inner ring shrinks to zero. You get a singularity and you can't blow up anything further. You can't flow any further. So he created this flow, which is now called Ricci flow, which is a way of taking an arbitrary surface or space and smoothing it out to make it rounder and rounder, to make it look like a sphere. And he wanted to show that either this process would give you a sphere or it would create a singularity. Very much like how PDEs, either they have global regularity or finite time, blow up. Basically, it's almost exactly the same thing. It's all connected. And he showed that for two dimensions, two dimensional surfaces, if you started something like no singularity is ever formed, you never ran into trouble and you could flow and it would give you a sphere. And so he got a new proof of the two dimensional result.
Lex Fridman
But by the way, that's a beautiful explanation of Ricci flow and its application in this context. How difficult is the mathematics here for the 2D case?
Terence Tao
Yeah, these are quite sophisticated equations, on par with the Einstein equations. Slightly simpler, but. Yeah, but they were considered hard nonlinear equations to solve. And there's lots of special tricks in 2D that helped. But in 3D, the problem was that this equation was actually super critical. It has the same problems as Navier Stokes. As you blow up, maybe the curvature could get concentrated in finer, smaller, smaller regions. And it looked more and more nonlinear and things just looked worse and worse. And there could be all kinds of singularities at the short it up. Some singularities, there's these things called neck pinchers where the surface sort of behaves like a barbell and it pinches at a point. Some singularities are simple enough that you can sort of see what to do next. You just make a snip and then you can turn one surface into two and evil them separately. But there was the prospect that there's some really nasty knotted singularities showed up that you couldn't see how to, to resolve in any way, that you couldn't do any surgery to. So you need to classify all the singularities. Like what are all the possible ways that things can go wrong? So what Perelman did was first of all, he turned the problem from a supercritical problem to a critical problem. I said before about how the invention of energy, the Hamiltonian, really clarified Newtonian mechanics. So he introduced something which is now called Perelman's reduced volume and permanent entropy. He introduced new quantities, kind of like energy, that looked the same at every single scale and turned the problem into a critical one where the nonlinearities actually suddenly looked a lot less scary than they did before. And then he still had to analyze the singularities of this critical problem. And that itself was a problem similar to this wavefax thing I worked on, actually. So on the level of difficulty of that. So he managed to classify all the singularities of this problem and show how to apply surgery to each of these.
Lex Fridman
And.
Terence Tao
And through that was able to resolve the point Grey conjecture. So a lot of really ambitious steps and nothing that a large language model today, for example, could. I mean, at best I could imagine proposing this idea as one of hundreds of different things to try, but the other 99 would be complete dead ends. But you'd only find out after months of work. He must have had some sense that this was the right track to pursue, because I. It takes years to get them from A to B.
Lex Fridman
So you've done, like you said, actually, you see, even strictly mathematically, but more broadly, in terms of the process, you've done similarly difficult things. What, what can you infer from the process he was going through? Because he was doing it alone. What are some low points in a process like that? When you start to, like you've mentioned hardship, like AI doesn't know. Know when it's failing, what happens to you. You're sitting in your office when you realize the thing you did for the last few days, maybe weeks.
Terence Tao
Yeah.
Lex Fridman
Is a failure.
Terence Tao
Well, for me I switched different problem. So as I said, I'm a fox, I'm not a hedgehog.
Lex Fridman
But you legitimately, that is a break that you can take is to step away and look at a different problem.
Terence Tao
Yeah, you can modify the problem too. I mean, yeah, you can add some cheat. Like if there's a specific thing that's blocking you that some bad case keeps showing up for which your tool doesn't work. You can just assume by fear this bad case doesn't occur. So you do some magical thinking. But strategically, okay. To see if the rest of the argument goes through. If there's multiple problems with your approach, then maybe you just give up. But if this is the only problem, then everything else checks out, then it's still worth fighting. Fighting. So yeah, you have to do some sort of forward reconnaissance sometimes.
Lex Fridman
And that is sometimes productive to assume like, okay, we'll figure it out eventually.
Terence Tao
Sometimes actually it's even productive to make mistakes. So one of the, I mean there was a project which actually we won some prizes for actually before other people we worked on this PDE problem again actually this blow off regularity type problem and it was considered very high part Jean Bourguin who was another fields Methodist who worked on a special case of this but he could not solve the general case. And we worked on this problem for two months and we thought we solved it. We had this cute argument that if anything fit and we were excited. We were planning celebrationary to all get together and have champagne or something and we started writing it up and one of us, not me actually, but another co author said, oh, in this lemma here we have to estimate these 13 terms that show up in this expansion and we estimate 12 of them. But in our notes I can't find the estimation of the 13th. Can you, can someone supply that? And I said sure, I'll look at this. And yeah, we didn't cover. We completely omitted this term and this term turned out to be worse than the other 12 terms put together. In fact, we could not estimate this term. And we tried for a few more months and all different permutations and there was always this one term that we could not control. And so this was very frustrating. But because we had already invested months and months of effort in this already. We stuck at this. We tried increasingly desperate things and crazy things. And after two years we found that approach was actually somewhat different quite a bit from our initial strategy, which didn't generate these problematic terms and actually solve the problem. So we solved the problem after two years. But if we hadn't had that initial full stop on of nearly solving the problem, we would have given up by month two or something and worked on an easier problem. If we had known it would take two years, not sure we would have started the project. Sometimes actually having the incorrect. It's like Columbus traveling in the New World. They had an incorrect version of measurement of the size of the Earth. He thought he was going to find a new trade route to India, or at least that was how he sold it in his prospectus. I mean, it could be that he actually secretly knew, but just on the.
Lex Fridman
Psychological element moment, do you have like emotional or like self doubt that just overwhelms you most like that? You know, because this stuff, it feels like math is so engrossing that like it can break you. When you like invest so much yourself in the problem and then it turns out wrong, you could start to similar way chess has broken some people.
Terence Tao
Yeah, I, I think different mathematicians have different levels of emotional investment in what they do. I mean, I think for some people it's just a job. You have a problem and if it doesn't work out, you work on the next one. Yeah. So the fact that you can always move on to another problem, it reduces the emotional connection. I mean there are cases, so there are certain problems that are what are called mathematical diseases where just latch onto that one problem and they spend years and years thinking about nothing but that one problem and maybe their career suffers and so forth. They say okay, but okay, this big win once I finish this problem, that will make up for all the years of lost opportunity. Occasionally it works, but I really don't recommend for people without the right fortitude. Yeah, so I've never been super invested in any one problem. One thing that helps is that we don't need to call our problems in advance. Well, when we do grant proposals, we say we will study this set of problems, but even though we don't promise definitely by five years I will supply a proof of all these things. You promise to make some progress or discover some interesting phenomena and maybe you don't solve the problem, but you find some related problem that you can say something new about and that's, that's a Much more feasible task.
Lex Fridman
But I'm sure for you, there's problems like this. You have.
Terence Tao
You have.
Lex Fridman
Made so much progress towards the hardest problems in the history of mathematics. So is there. Is there a problem that just haunts you? It sits there in the dark corners, you know, twin prime conjecture, Riemann hypothesis, Goba conjecture, twin prime again.
Terence Tao
So, I mean, the problem is like, agreement about this is those are so far out of reach.
Lex Fridman
You think so?
Terence Tao
Yeah. There's no even viable strategy. Even if I activate all the cheats that I know of in this problem, there's just still no way to get me A to B. I think it needs a breakthrough in another area of mathematics to happen first and for someone to recognize that that would be a useful thing to transport into this problem.
Lex Fridman
So we should maybe step back for a little bit and just talk about prime numbers.
Terence Tao
Okay.
Lex Fridman
So they're often referred to as the atoms of mathematics. Can you just speak to the structure that these atoms provide?
Terence Tao
So the natural numbers have two basic operations attached to them, addition and multiplication. So if you want to generate the natural numbers, you can do one of two things. You can just start with one and add one to itself over and over again, and that generates you the natural numbers. So additively, they're very easy to generate. 1, 2, 3, 4. Or you can take the prime number if you want to generate multiplicatively, you can take all the prime numbers, 2, 3, 5, 7, and multiply them all together. And together that gives you all the natural numbers, except maybe for one. So there are these two separate ways of thinking about the natural numbers from an additive point of view and a multiplicative point of view. And separately, they're not so bad. So any question about the natural number that only involves addition is relatively easy to solve. And any question that only involves multiplication is perfectly easy to solve. But what has been frustrating is that you combine the two together and suddenly you get this extremely rich. I mean, we know that there are statements in number theory that are actually as undecidable. There are certain polynomials and some number of variables. Is there a solution in the natural numbers? And the answer depends on an undecidable statement like whether the axioms of mathematics are consistent or not. But even the simplest problems that combine something multiplicative, such as the primes, with something additive, such as shifting by 2 separately, we understand both of them well. But if you ask, when you shift the prime by two, how often can you get another prime? It's been amazingly hard to relate the.
Lex Fridman
Two, and we should say that the twin prime conjecture is just that it posits that there are infinitely many pairs of prime numbers that differ by two. Now the interesting thing is that you have been very successful at pushing forward the field in answering these complicated questions of this variety. Like you mentioned, the green tile theorem, it proves that prime numbers contain arithmetic progressions of any length. Which is mind blowing that you could prove something like that.
Terence Tao
Right? Yeah. So what we've realized because of this type of research is that there's is different patterns have different levels of indestructibility. So what makes the twin prime problem hard is that if you take all the primes in the world, 3, 5, 7, 11, so forth, there are some twins in there, 11 and 13 is a twin prime, pair of twin primes and so forth. But you could easily, if you wanted to, redact the primes to get rid of these twins. The twins, they show up and there are infinitely many of them, but they actually reasonably spike fast. Initially there's quite a few, but once you got to the millions, the trillions, they become rarer and rarer. And you could actually just. If someone was given access to the database of primes and just edit out a few primes here and there, they could make the trim conjecture false by just removing like 0.01% of the primes or something just well chosen to do this. And so you could present a sentence answered database of the primes which passes all of the statistical tests of the primes. It obeys things like the prime number theorem and other things about the primes, but doesn't contain any trimmed primes anymore. And this is a real obstacle for the Trin prime conjecture. It means that any proof strategy to actually find trim primes in the actual primes must fail when applied to these slightly edited primes. And so it must use some very, very subtle, delicate feature of the primes that you can't just get from aggregate statistical analysis.
Lex Fridman
Okay, so that's all.
Terence Tao
Yeah. On the other hand, athletic progression has turned out to be much more robust. You can take the primes and you can eliminate 99% of the primes actually. And you can take any 90% you want. And it turns out, and another thing we proved is that you still get asthmatic progressions. Asmatic progressions are much. They're like cockroaches of arbitrary length. Yes, yes.
Lex Fridman
That's crazy. For people who don't know, arithmetic progressions is a sequence of numbers that differ by some fixed amount.
Terence Tao
Yeah. But it's again like it's an infinite Monkey type phenomenon. For any fixed length of your set, you don't get arbitrary length progressions. You only get quite short progressions.
Lex Fridman
But you're saying twin prime is not an infinite monkey phenomena. I mean, it's a very subtle. It's still an infinite monkey phenomenon.
Terence Tao
Yeah. If the primes were really genuinely random, if the primes were generated by monkeys, then yes. In fact, the infinite monkey theorem would.
Lex Fridman
Oh, but you're saying that twin prime, you can't use the same tools. It doesn't appear random. Almost.
Terence Tao
Well, we don't know. Yeah, we believe the primes behave like a random set. So the reason why we care about the twin prime conjecture is that it's a test case for whether we. We can genuinely, confidently say with 0% chance of error that the primes behave like a random set. Okay. Random versions of the primes we know contain twins, at least with 100% probability or probably tending to 100% as you go out further and further. Yeah. So the primes, we believe that they're random. The reason why arithmetic progressions are indestructible is that regardless of whether it looks random or looks. Looks structured like periodic, in both cases arithmetic regressions appear, but for different reasons. And this is basically all the ways in which the thing. There are many proofs of these sort of arithmetic progression type theorems, and they're all proven by some sort of dichotomy where your set is either structured or random. And in both cases you can say something and then you put the two together. But in trin primes, if the primes are random, then you're happy, you win. But if your primes are structured, they can be structured in a specific way, way that eliminates the twins. And we can't rule out that one conspiracy.
Lex Fridman
And yet you were able to make, as I understand, progress on the K Tuple version, Right?
Terence Tao
Yeah. So the one funny thing about conspiracies is that any one conspiracy theory is really hard to disprove. That if you believe the water is run by lizards, you say, here's some evidence that it's not run by lizards. Well, that evidence was planted by the lizards.
Lex Fridman
Yeah.
Terence Tao
You may have encountered this kind of phenomenon, like a pure. Like there's almost no way to definitively rule out a conspiracy. And the same is true in mathematics, that a conspiracy is solely devoted to eliminating twin primes. You have to also infiltrate other areas of mathematics. But it could be made consistent, at least as far as we know. But there's a weird phenomenon that you can make one Conspiracy rule out other conspiracies. So if the world is run by lizards, it can't also be run by aliens. Right. So one unreasonable thing is hard to disprove. But more than one, there are tools. So, yeah, so for example, we know there's infinitely many primes that are no two of which are. So there are infinitely pairs of primes which differ by at most 246actually is the code.
Lex Fridman
So there's like a bound on the right.
Terence Tao
So there's twin primes, thing called cousin primes that differ by four. This thing called sexy primes that differ by six.
Lex Fridman
What are sexy primes?
Terence Tao
Primes that differ by six. The name is much less. The concept is much less exciting than the name suggests.
Lex Fridman
Got it.
Terence Tao
So you can make a conspiracy rule out one of these, but once you have 50 of them, it turns out that you can't rule out all of them at once. It requires too much energy somehow. In this conspiracy space, how do you.
Lex Fridman
Do the bound part? How do you develop a bound for the difference between the prize there's an infinite number of.
Terence Tao
So it's ultimately based on what's called the pigeonhole principle. So the pigeonhole principle is a statement that if you have a number of pigeons and they all have to go into pigeonholes, and you have more pigeons than pigeonholes, then one of the pigeonholes has to have at least two pigeons in it. So there has to be two pigeons that are close together. So for instance, if you have 100 numbers and they all range from 1 to 1000, two of them have to be at most 10 apart, because you can divide up the numbers from 1 to 100 into 100 pigeon holes. Let's say if you have 101 numbers, 101 numbers, then two of them have to be distance less than 10 apart because two of them have to belong to the same pigeonhole. So it's a basic feature of a basic principle in mathematics. So it doesn't quite work with the primes directly because the primes get sparser and sparser as you go out that fewer and fewer numbers are prime. But it turns out that there's a way to assign weights to numbers. So there are numbers that of are kind. Kind of almost prime, but they don't have no factors at all other than themselves in one, but they have very few factors. And it turns out that we understand almost primes a lot better than other than primes. And so, for example, it was known for a long time that there were true almost primes. This has been Worked out. So almost primes are something we kind of understand. So you can actually restrict attention to a suitable set of Omos primes. And whereas the primes are very sparse overall relative to the almost primes, they actually are much less sparse. You can set up a set of almost primes where the primes of density like say 1%. And that gives you a shot at proving by applying some sort of original principle that there's pairs of primes that are just only 100 apart. But in order to prove the Trinpan conjecture, you need to get the density of primes inside the almost primes up to a threshold of 50%. Once you get up to 50%, you will get trim primes. But unfortunately there are barriers. We know that no matter what kind of good set of almost primes you pick, the density primes can never get above 50%. It's called the parity barrier. And I would love to find. So one of my long term dreams is to find a way to breach that barrier because it would open up not only to trimpipe conjecture, but the Gobach conjecture and many other problems in number theory are commonly blocked because our current techniques would require going beyond this theoretical parity barrier. It's like going past the speed of light.
Lex Fridman
Yeah. So we should say a twin prime conjecture, one of the biggest problems in the history of mathematics, Goldbach conjecture. Also, they feel like next door neighbors. Has there been days when you felt you saw the path?
Terence Tao
Oh yeah. Sometimes you try something and it works super well. You again, the sense of mathematical smell we talked about earlier. You learn from experience when things are going too well because there are certain difficulties that you sort of have to encounter. I think the way a colleague of mine put it is that if you are on the streets of New York and you put in a blindfold and you put in a car and after some hours the blindfold is often. And you're in Beijing. I mean, that was too easy somehow. There was no ocean being crossed. Even if you don't know exactly what was done, you're suspecting that something wasn't right.
Lex Fridman
But is that still in the back of your head? Do you return to the prime numbers every once in a while to see?
Terence Tao
Yeah, when I have nothing better to do, which is less and less, which is. I get busy with so many things these days. But yeah, when I have free time and I'm. And I'm too frustrated to work on my sort of real research projects and I also don't want to do my administrative stuff or I don't want to do some errands for my family. I can play with these things for fun. And usually you get nowhere. You have to learn to just say, okay, fine, once again, nothing happened. I will move on. Very occasionally, one of these problems I actually solved, or sometimes as you say, you think you solved it and then you Forward for maybe 15 minutes and then you think I should check this because this is too easy. Too could be true and it usually is.
Lex Fridman
What's your gut say about when these problems would be solved? Between prime and GoBot Prime, I think.
Terence Tao
We'Ll keep getting more partial results. It does need at least one. This parity barrier is the biggest remaining obstacle. There are simpler versions of the conjecture where we are getting really close, close. So I think in 10 years we will have many more much closer results. We may not have the whole thing. So Trin prime is somewhat close. Riemann Hypothesis. I have no clue. I mean, it has happened by accident, I think.
Lex Fridman
So the Riemann Hypothesis is a kind of more general conjecture about the distribution of prime numbers.
Terence Tao
Right? Right. Yeah, it's safe. That's sort of viewed multiplicatively. For questions only involving multiplication, no addition. The primes really do behave as randomly as you could hope. So there's a phenomenon in probability called square root cancellation that if you want to poll, say, America on some issue and you ask one or two voters, you may have sampled a bad sample and you get a really imprecise measurement of the full average. But if you sample more and more people, the accuracy gets better and better and the accuracy actually improves the square root of the number of people you sample. So yeah, if you sample 1,000 people, you can get like a 2 or 3% margin of error. So in the same sense, if you measure the primes in a certain multiplicative sense, there's a certain type of statistic you can measure. It's called the Riemann's zeta function and it fluctuates up and down. But in some sense, as you keep averaging more and more, if you sample and more and more, the fluctuation should go down as if they were random. And there's a very precise way to quantify that. And the Riemann Hypothesis is a very elegant way that captures this. But as with many other ways in mathematics, we have very few tools to show that something really genuinely behaves really random. And this is actually not just a little bit random, but it's asking that it behaves as random, as an actually random set, this square root cancellation. And we know because of things related to Parity, problematicity. Most of us usual techniques cannot hold hope to settle this question. The proof has to come out of left field. Yeah, but what that is, no one has any serious proposal. And there's various ways, as I said, you can modify the primes a little bit and you can destroy the Riemann hypothesis. So it has to be very delicate. You can't apply something that has huge margins of error. It has to just barely work work. And there's all these pitfalls that you have to dodge very adeptly.
Lex Fridman
The prime numbers are just fascinating. What to you is most mysterious about the prime numbers?
Terence Tao
That's a good question. So conjecturally we have a good model of them. As I said, they have certain patterns. The primes are usually odd, for instance, but apart from these obvious patterns, they behave very randomly. And just assuming that, that they behave. So there's something called the Kramer random model of the primes that after a certain point primes just behave like a random set. And there's various slight modifications to this model, but this has been a very good model. It matches the numerics, it tells us what to predict. Like I can tell you with complete certainty that trim prime conjecture is true. The random model gives overwhelming odds that it's true. I just can't prove it. Most of our mathematics is optimized for solving things with patterns in them. And the primes have this anti pattern, as do almost everything really. But we can't prove that. I guess it's not mysterious that the primes being kind of random because there's sort of no reason for them to have any kind of secret pattern. But what is mysterious is what is the mechanism that really forces the randomness to happen. And this is just absolutely absent.
Lex Fridman
Another incredibly surprisingly difficult problem is the Collatz conjecture.
Terence Tao
Oh yes.
Lex Fridman
Simple to state, beautiful to visualize in its simplicity, and yet extremely difficult to solve. And yet you have been able to make progress. Paul Ridar said about the Coloss conjecture that mathematics may not be ready for such problems. Others have stated that it is an extraordinarily difficult problem, completely out of reach. This is in 2010, out of reach of present in mathematics. And yet you have made some progress. Why is it so difficult to make? Can you actually even explain what it is?
Terence Tao
So it's a problem that you can explain. It helps with some visual aids, but yeah. So you take any natural number, like say 13 and you apply the following procedure to it. So if it's even, you divide it by two and if it's odd, you multiply it by three and add one. So even numbers get smaller, odd numbers get bigger. So 13 would become 14, 40, because 13 times three is 39. Add one, you get 40. So it's a simple process for odd numbers and even numbers, they're both very easy operations. And then you put them together, it's still reasonably simple. But then you ask what happens when you iterate it? You take the output that you just got and feed it back in. So 13 becomes 40, 40 is now even. Divided by 2 is 20, 20 is still even. Divided by 2, 10, 5, and then 5 times 3 plus 116, and then 8, 4, 2, and then from 1 it goes 1, 4, 2, 1, 4, 2, 1. It cycles forever. So this sequence I just described, 13, 40, 20, 10 and so forth, these are also called hailstone sequences, because there's an oversimplified model of hailstone formation which is not actually quite correct, but it's still somehow taught to high school students as a first approximation, is that a little nugget of ice gets a nice crystal, forms in a cloud, and it goes up and down because of the wind. And sometimes when it's cold, it requires a bit more mass, maybe it melts a little bit. And this process of going up and down creates this partially melted ice, which eventually creates this hailstone, and eventually it falls out to the Earth. So the conjecture is that no matter how high you start up, like you take a number which is in the millions or billions, you have this process that goes up if you're odd, and down if you're even, eventually goes down.
Lex Fridman
To Earth all the time, no matter where you start. With this very simple algorithm, you end up at 1, and you might climb for a while, right?
Terence Tao
Yeah. If you plotted these sequences, they look like Brownian motion, they look like the stock market. They just go up and down in a seemingly random pattern. And in fact, usually that's what happens. If you plug in a random number, you can actually prove, at least initially, that it would look like random walk. And that's actually a random walk with a downward drift. It's like if you're always gambling on a roulette at the casino with odds slightly weighted against you. So sometimes you win, sometimes you lose, but over in the long run, you lose a bit more than you win. And so normally your wallet will go to zero if you just keep playing over and over again.
Lex Fridman
So statistically it makes sense.
Terence Tao
Yes. So the result that I proved, roughly speaking, asserts that statistically, like 99% of all inputs would drift down to maybe not all the way to one, but to be much, much smaller, smaller than what you started. So it's like if I told you that if you go to a casino, most of the time, if you keep playing for long enough, you end up with a smaller amount in your wallet than when you started. That's kind of like the result that I proved.
Lex Fridman
So why is that result? Can you continue down that thread to prove the full conjecture?
Terence Tao
Well, the problem is that I used arguments from probability theory and there's always this exception of event. So in probability we have this law of large numbers, which tells you things like if you play a casino over a game, at a casino with a losing expectation over time, you are guaranteed, almost surely with probability, as close to 100% as you wish, you're guaranteed to lose money. But there's always this exceptional outlier. It is mathematically possible that even in the game is the odds are not in your favor. You could just keep winning slightly more often than you lose. Very much like how in Navier Stokes there could be most of the time your waves can disperse. There could be just one outlier choice of initial conditions that would lead you to blow up. And there could be one outlier choice of special number that you stick in that shoots off to infinity while all other numbers crash to one. In fact, there's some mathematicians, Alex Kantorovich for instance, who've proposed that actually these collatz iterations are like these cellular automata. Actually if you look at what they happen in binary, they do actually look a little bit like these Game of Life type patterns. And in an analogy to how the Game of life can create these massive self replicating objects and so forth, possibly you could create some sort of heavier than air flying machine, a number which is actually encoding this machine, which is just whose job it is to encode, is to create a version of itself which is large, larger, heavier than air.
Lex Fridman
Machine encoded in a number that flies forever.
Terence Tao
Yeah. So Conway in fact worked on this problem as well. Oh wow. So similar. In fact, that was one of my inspirations for the Navy Stokes Project. Conway studied generalizations of the collatz problem, where instead of multiplying by three and adding one or dividing by two, you have more complicated branching rules. But instead of having two cases, maybe you have 17 cases and then you go up and down. And he showed that once you your iteration gets complicated enough, you can actually encode Turing machines and you can actually make these problems undecidable and do things like this. In fact, he invented a programming language for These kind of fractional linear transformations. He wrote a facttrad as a play on Fulltran and he showed that you can program it was too incomplete. You could make a program that if your number you insert in was encoded as a prime it would sync to zero, it would go down, otherwise it would go up and things like that. So the general class of problems is really as complicated as all the mathematics.
Lex Fridman
Some of the mystery of the cellular automata that we talked about having a mathematical framework to say anything about cellular automata may be the same kind of framework is required for collapse conjecture.
Terence Tao
Yeah, if you want to do it not statistically, but you really want 100% of all inputs for the earth. So what might be feasible is statistically 99% go to 1. But like everything that looks hard, what.
Lex Fridman
Would you say is out of these within reach famous problems Is the hardest problem we have today is the Riemann hypothesis.
Terence Tao
Riemann is up there. PMP is a good one because that's a meta problem. If you solve that in the in the positive sense that you can find a P n P algorithm, then potentially this solves a lot of other problems as well.
Lex Fridman
And we should mention some of the conjectures we've been talking about. A lot of stuff is built on top of them now there's ripple effects. P equals on P has more ripple effects than basically any other.
Terence Tao
Right. If the Riemann hypothesis is disproven, that'd be a big mental shock to the number theorists. But it would have follow on effects for cryptography because a lot of cryptography uses number theory, uses number theory constructions involving primes and so forth. And it relies very much on the intuition that number theories have built over many many years of what operations involving primes behave randomly and what ones don't. And in particular our encryption methods are designed to turn text written information on it into text which is indistinguishable measurable from random noise. And hence we believe to be almost impossible to crack, at least mathematically. But if something as core to our beliefs as the human hypothesis is wrong, it means that there are actual patterns of the primes that we're not aware of. And if there's one, there's probably going to be more. And suddenly a lot of our crypto systems are in depth out.
Lex Fridman
Yeah, but then how do you then say stuff about the primes? Yeah, that you're going towards the collects conjecture again because you want it to be random, right? You want it to be random.
Terence Tao
So more broadly I'm just looking for more tools More ways to show that things are random. How do you prove a conspiracy doesn't happen?
Lex Fridman
Right. Is there any chance to you that P equals np? Is there some. Can you imagine a possible universe?
Terence Tao
It is possible. I mean, there's various scenarios. I mean, there's one where it is technically possible, but in fact it's never actually implementable. The evidence is sort of slightly pushing in favor of no, that probably P is not equal to np.
Lex Fridman
I mean, it seems like it's one of those cases similar to Riemann Hypothesis. I think the evidence is leaning pretty heavily on the no.
Terence Tao
Certainly more on the no than on the yes. The funny thing about PCOS MP is that we have also a lot more obstructions than we do for almost any other problem. So while there's evidence, we also have a lot of results ruling out many, many types of approaches to the problem. This is the one thing that the computer scientists have actually been very good at. It's actually saying that certain approaches cannot work. No go theorems. It could be undecidable. Yeah, we don't know.
Lex Fridman
There's a funny story. I read that when you won the Fields Medal, somebody from the Internet wrote you and asked, you know, what are you going to do now that you've won this prestigious award? And then you just quickly, very humbly said that, you know, this shiny metal is not going to solve any of the problems I'm currently working on. So I'm just.
Terence Tao
I'm going to keep.
Lex Fridman
I'm going to keep working on them. It's just, first of all, it's funny to me that you would answer an email in that context. And second of all, just shows your humility. But anyway, maybe you could speak to the Fields Medal. But it's another way for me to ask about Gregory Perlman. What do you think about him famously declining the Fields Medal and the Millennial Prize, which came with a $1 million of prize money? He stated that I'm not interested in money or fame. The prize is completely irrelevant for me. If the proof is correct and no other recognition is needed, it.
Terence Tao
Yeah, no. He's somewhat of an outlier, even among mathematicians who tend to have somewhat idealistic views. I've never met him. I think I'd be interested to meet him one day, but I never had the chance. I know people who've met him, but he's always had strong views about certain things. It's not like he was completely isolated from the math community. I mean, he would give talks and write papers and so forth, but at some point he just decided not to engage with the rest of the community. He was, he was disillusioned or something, I don't know. And he decided to peace out and collect mushrooms in St. Petersburg or something. And that's fine, you can do that. That's another sort of flip side. I mean, a lot of our problems that we solve, some of them do have practical application and that's great. But if you stop thinking about a problem. So he hasn't published since in this field, but that's fine. There's many, many other people who've done so as well. Yeah. So I guess one thing I didn't realize initially with the Fields Medal is that it sort of makes you part of the establishment. So most mathematicians, career mathematicians, you just focus on publishing the next paper, maybe getting one promoted one rank and starting a few projects may have taken some students or something. But then suddenly people want your opinion on things and you have to think a little bit about things that you might just have foolishly say because you know no one's going to listen to you. It's more important now.
Lex Fridman
Is it constraining to you? Are you able to still have fun and be a rebel and try crazy stuff and play with ideas?
Terence Tao
Well, I have a lot less free time than I had previously. I mean, mostly by choice. I mean, obviously I have the option to sort of of decline. So I decline a lot of things. I could decline even more or I could acquire a reputation of being so unreliable that people don't even ask anymore.
Lex Fridman
I love the different algorithms here.
Terence Tao
It's always an option. But there are things that are like, I don't spend as much time as I do as a postdoc just working on one POG at a time or fooling around. I still do that a little bit. But yeah, as you advance in your career, some of the more soft skills, so math somehow front loads all the technical skills to the early stages of a career as a postdoc publisher or perish. You're incentivized to basically focus on proving very technical theorems to prove yourself as well as prove the theorems. But then as you get more senior, you have to start mentoring and giving interviews and trying to shape direction of the field, both research wise and sometimes you have to do various administrative things. And it's kind of the right social contract because you need to work in the trenches to see what can help mathematicians.
Lex Fridman
The other side of the establishment, sort of the really positive thing is that you get to be a light that's an inspiration to A lot of young mathematicians or young people that are just interested in mathematics. And so like, yeah, it's just how the human mind works. This is where I would probably say that I like the Fields metal, that it does inspire a lot of young people. Somehow I don't. This is just how human brains work.
Terence Tao
Yeah.
Lex Fridman
At the same time, I also want to give sort of respect to somebody like Gregory Perlman, who is critical of awards in his mind. Those are his principles. And any human that's able for. For their principles to do the thing that most humans would not be able to do.
Terence Tao
It's beautiful to see some recognition is necessary and important. But yeah, it's also important to not let these things take over your life and only be concerned about getting the next big award or whatever. Again, you see these people try to only solve really big math problems and not work on things that are less sexy if you wish, but actually still interesting and instructive, as you say, the way the human mind works. We understand things better when they're attached to humans and also if they're attached to a small number of humans. The way our human mind is wired, we can comprehend the relationships between 10 or 20 people, but once they get beyond 100 people, there's a limit. I think there's a name for it, beyond which it just becomes the Other. And so you have to simplify. The whole mass of 99.9% of humanity becomes the Other. And often these models are incorrect and this causes all kinds of problems. So to humanize a subject, if you identify a small number of people and say these are representative people of a subject, role models, for example, that has some role models, but it can also be. Too much of it can be harmful. Because I'll be the first to say that my own career path is not that of a typical mathematician. I had a very accelerated education. I skipped a lot of classes. I think I had very fortunate mentoring opportunities. And I think I was at the right place at the right time. Just because someone doesn't have my trajectory doesn't mean that they can't be good mathematicians. They in a very different style, and we need people with a different style. And sometimes too much focus is given on the person who does the last step to complete a project in mathematics or elsewhere. That's really taken centuries or decades with lots and lots of building and lots of previous work. But that's a story that's difficult to tell if you're not an expert, because it's easier to just say one person did this one thing you know, it makes for a much simpler history.
Lex Fridman
I think on the whole it is a hugely positive thing to talk about Steve Jobs as a representative of Apple when I personally know. And of course everybody knows the incredible design, the incredible engineering teams, just the individual humans on those teams. They're not a team, they're individual humans on a team. And there's a lot of brilliance there, but it's just a nice shorthand, like a very like popular PI. Yeah, Steve Jobs.
Terence Tao
Yeah, yeah. As a starting point, as a first approximation.
Lex Fridman
And then read some biographies and then look into much deeper first approximation. Yeah, that's right. So you mentioned you were a person to Andrew Wiles at that time.
Terence Tao
Oh, yeah, professor there.
Lex Fridman
It's a funny moment how history is just all interconnected. And at that time he announced that he proved the Fermat's last theorem. What did you think? Maybe looking back now, now more context about that moment in math history.
Terence Tao
Yeah. So I was a graduate student at the time. I vaguely remember there was press attention and we all had the same. We had pigeonholes in the same mail room. So we all got mail. Suddenly Andrew Wiles's mailbox exploded to be overflowing.
Lex Fridman
That's a good metric.
Terence Tao
Yeah. So yeah, we all talked about it at T and so forth. I mean, we didn't actually understand. Most of us sort of understand the proof. We understand sort of high level details. In fact, there's an ongoing project to formalize it in Lean. Right. Kevin Buzzard is actually.
Lex Fridman
Yeah. Can we take that small tangent? How difficult is that? Because as I understand from the proof from mas last theorem has like super complicated objects really difficult to formalize.
Terence Tao
No, yeah, I guess, yeah, you're right. The objects that they use, you can define them. So they've been defined in Lean. Okay. So just defining what they are can be done. That's really not trivial, but there's a lot of really basic facts about these objects that have taken decades to prove and that they're in all these different math papers. And so lots of these have to be formalized as well. Kevin Buzzard's goal, actually he has a five year graft to formalize Fermislast theorem. And his aim is that he doesn't think he will be able to get all the way down to. Down to the basic axioms, but he wants to formalize it to the point where the only things that he needs to rely on as black boxes are things that were known by 1980 to number theorists at the time. And then some other person, some other work would have to be done to get from there. So it's a different area of mathematics than the type of mathematics I'm used to in analysis, which is kind of my area. The objects we study are kind of much closer to the ground. I study things like prime numbers and. And functions and things that are within scope of a high school math education to at least define. Yeah, but then there's this very advanced algebraic side of number theory where people have been building structures upon structures for quite a while and it's a very sturdy structure at the base at least. It's extremely well developed in the textbooks and so forth. But it does get to the point where if you haven't taken these years of study and you want to ask about what is going on at level six of this tower, you have to spend quite a bit of time before they can even get to the point where you see something, you recognize what inspires you.
Lex Fridman
About his journey, that was similar as we talked about seven years, mostly working in secret.
Terence Tao
Yeah. That is a romantic. So it kind of fits with sort of the. The romantic image I think people have of mathematicians to the extent that they can think of at all as these kind of eccentric wizards or something. So that certainly kind of accentuated that perspective. I mean, it is a great achievement. His style of solving problems is so different from my own, which is great. I mean, we need people like that.
Lex Fridman
Speak to it in terms of you like the collaborative of.
Terence Tao
I like moving on from a problem if it's giving too much difficulty. But you need the people who have the tenacity and the fearlessness. I've collaborated with people like that where I want to give up because the first approach that we tried didn't work and the second one didn't approach. They're convinced and they have third, fourth and the fifth approach works. And I'd have to eat my words. Okay. I didn't think this was going to work, but yes, you were right over.
Lex Fridman
And we should say for people who don't know, not only are you known for the brilliance of your work, but the incredible productivity, just the number of papers which are all very high quality. So there's something to be said about being able to jump from topic to topic.
Terence Tao
Yeah, it works for me. Yeah. I mean, there are also people who are very productive and they focus very deeply on. Yeah, I think everyone has to find their own workflow. One thing which is a shame in mathematics is that we have. Have mathematics. There's sort of a one size fits all approach to teaching mathematics. So we Have a certain curriculum and so forth. I mean, maybe if you do math competitions or something, you get a slightly different experience. But I think many people, they don't find their native math language until very late or usually too late. So they stop doing mathematics and they have a bad experience with a teacher who's trying to teach them one way to do mathematics. They only like it. My theory is that humans don't come. Evolution has not given us a math center of a brain directly. We have a vision center and a language center and some other centers which have evolution has honed, but we don't have innate sense of mathematics. But our other centers are sophisticated enough that different people, we can repurpose our other areas of our brain to do mathematics. So some people have figured out how to use the visual center to do mathematics. And so they think very visually when they do mathematics. Some people have repurposed their language center and they think very symbolically. Some people, if they are very competitive and if they like gaming. There's this part of your brain that's very good at solving puzzles and games and that can be repurposed. But. But when I talk about the mathematicians, they don't quite think. I can tell that they're using somehow different styles of thinking than I am. I mean, not disjoint, but they may prefer visual. I don't actually prefer visual so much. I need lots of visual aids myself. Mathematics provides a common language, so we can still talk to each other even if we are thinking in different ways.
Lex Fridman
But you can tell there's a difference set of subsystems being used in the thinking process.
Terence Tao
They take different paths, they're very quick at things that I struggle with and vice versa. And yet they still get to the same goal.
Lex Fridman
That's beautiful.
Terence Tao
But I mean the way we educate, unless you have a personalized tutor or something, I mean, education sort of just by nature of scale has to be mass produced. You have to teach the 30 kids. If they have 30 different styles, you can't teach 30 different ways ways.
Lex Fridman
On that topic, what advice would you give to students, young students who are struggling with math but are interested in it and would like to get better? Is there something in this complicated educational context? What would you.
Terence Tao
Yeah, it's a tricky problem. One nice thing is that there are now lots of sources for mathematical enrichment outside the classroom. So in my day, there are already there are math competitions and there are also popular math books in the library. But now you have YouTube. There are forums just devoted to solving math puzzles. And math shows up in Other places, for example, there are hobbyists who play poker for fun and they, for very specific reasons, are interested in very specific probability questions. And there's a community of amateur probabilists in poker, in chess, in baseball. I mean, there's math all over the place. And I'm hoping actually with these new sort of tools for Lean and so forth, that actually we can incorporate the broader public into math research projects. This almost doesn't happen at all currently. So in the sciences there is some scope for citizen science, like astronomers looking at the amateurs who would discover comets. And there's biologists, they're being people who could identify butterflies and so forth. There are a small number of activities where amateur mathematicians can discover new primes and so forth. But previously, because we had to verify every single contribution, most mathematical research projects, it would not help to have input from the general public. In fact, it would just be time consuming because just error checking and everything. But one thing about these formalization projects is that they are bringing in more people. So I'm sure there are high school students who've already contributed to some of these formalizing projects, who contributed to Mathlib. You don't need to be a PhD holder to just work on one atomic thing.
Lex Fridman
There's something about the formalization here that also, as a very first step, opens it up to the programming community too, the people who are already comfortable with programming. It seems like programming is somewhere, somehow, maybe just the feeling, but it feels more accessible to folks than math. Math is seen as this, like, extreme, especially modern mathematics seen as this extremely difficult to enter area. And programming is not. So that could be just an entry point.
Terence Tao
You can execute code and you can get results. You can print out the world pretty quickly. If programming was taught as an almost entirely theoretical subject, where you just taught the computer science, the theory of functions and routines and so forth, and outside of some very specialized homework assignments, you would not actually program on the weekend for fun. They would be considered as hard as math. So as I said, there are communities of non mathematicians where they're deploying math for some very specific purpose, like optimizing their poker game. And for them, then math becomes fun for them.
Lex Fridman
What advice would you give in general to young people? How to pick a career, how to find themselves, like they could be good at.
Terence Tao
That's a tough, tough, tough question. Yeah, so there's a lot of certainty now in the world. I mean, there was this period after the war where at least in the west, if you came from a good demographic, there was a very stable path to a good career. You go to college, you get an education and you pick one profession and you stick to it. It's becoming much more a thing of the past. So I think you just have to be adaptable and flexible. I think people have to get skills that are transferable, like learning one specific programming language or one specific subject of mathematics or something that itself is not a super transferable skill. But knowing how to reason with abstract concepts or how to problem solve when things go wrong. These are things which I think we will still need even as our tools get better. You'll be working with AI more and so forth.
Lex Fridman
But actually you're an interesting case study. You're one of the great living mathematicians and then you had a way of doing things and then all of a sudden you start learning. First of all, you kept learning new fields, but you learn Lean. That's a non trivial thing to learn. Like that's a. Yeah, that's a. For a lot of people that's an extremely uncomfortable leap to take. Right? Yeah, a lot of mathematicians.
Terence Tao
First of all, I've always been interested in new ways to do mathematics. I feel like a lot of the ways we do things right now are inefficient. Me and my colleagues who spend a lot of time doing very routine computations or doing things that other mathematicians would instantly know how to do and we don't know to how to do them and why can't we search and get a quick response and so forth. So that's why I've always been interested in exploring new workflows. About four or five years ago I was on a committee where we had to ask for ideas for interesting workshops to run at a math institute. And at the time Peter Schulzer had just formalized one of his new theorems and there were some other developments in computer assisted proof that were quite interesting and, and I said, oh, we should run a workshop on this, this would be a good idea. And then I was a bit too enthusiastic about this idea so I got Voluntold to actually run it. So I did with a bunch of other people, Kevin Biser and Jordan Ellenberg and a bunch of other people. And it was a nice success. We brought together a bunch of mathematicians and computer scientists and other people and we got up speedlessly. We are. And it was really interesting developments that most mathematicians didn't know was going on. Lots of nice proofs of concept, just so hints of what was going to happen. This was just before ChatGPT, but even then there was one talk about language models and the potential capability of those in the future. So that got me excited about the subject. So I started giving talks about. This is something more of us should start looking at now that I run this conference. And then ChatGPT came out and suddenly AI was everywhere. And so I got interviewed a lot about this topic and in particular the interaction between AI and formal proof assistants. And I said, yeah, they should be combined. This is a perfect synergy to happen here. And at some point I realized that I have to actually do not just talk the talk, but walk the walk. I don't work in machine learning and I don't work in truth formalization. And there's a limit to how much I can just rely on authority and saying, I'm a well known mathematician. Just trust me when I say that this is going to change mathematics and I'm not doing it when I don't do any of it myself. So I felt like I had to actually justify it. A lot of what I get into actually I don't quite see in advance as how much time I'm going to spend on it. And it's only after I'm sort of waist deep in a project that I, I realized by that point I'm committed.
Lex Fridman
Well, that's deeply admirable that you're willing to go into the fray, be in some small way a beginner. Right. Or have some of the sort of challenges that a beginner would. Right, yeah. New concepts, new ways of thinking, also, you know, sucking at a thing that others. I think in that talk you could be a field medal winning mathematician and undergrad. Knows something but better.
Terence Tao
Yeah, I think mathematics inherently, I mean mathematics is so huge these days that nobody knows all of modern mathematics and inevitably we make mistakes. And you can't cover up your mistakes with just sort of bravado because people will ask for your proofs and if you don't have the proofs, you don't have the proofs.
Lex Fridman
God, I love math.
Terence Tao
Yeah, so it does keep us honest. I mean you keep still, it's not a perfect panacea, but I think we do have more of a culture of admitting error than because we're forced to all the time.
Lex Fridman
Big ridiculous question. I'm sorry for it once again. Who is the greatest mathematician of all time? Maybe one who's no longer with us. Who are the candidates? Euler, Gauss, Newton, Ramanujan, Hilbert.
Terence Tao
So first of all, as mentioned before, there's some time depends on attendance on the day. Yeah. If you plot cumulatively over time, for example, Euclid is one of the lead contenders. And then maybe some unnamed anonymous mathematicians before that, whoever came up with the concept of numbers.
Lex Fridman
Do mathematicians today still feel the impact of Hilbert just directly of everything that's happened in the 20th century?
Terence Tao
Yeah, Hilbert spaces. We have lots of things that are negative named after him, of course. Just the arrangement of mathematics and just the introduction of certain concepts. I mean, 23 problems have been extremely influential.
Lex Fridman
There's some strange power to the declaring which problems are hard to solve. The statement of the open problems.
Terence Tao
Yeah, I mean this is bystander effect everywhere. If no one says you should do X, everyone just mills around waiting for somebody else to do something and nothing gets done. So one thing that actually you have to teach undergraduates in mathematics is that you should always try something. So you see a lot of paralysis in an undergraduate trying a math problem. If they recognize that there's a certain technique that can be applied, they will try it. But there are problems for which they see none of their standard techniques obviously applies. And the common reaction is then just paralysis. Analysis. I don't know what to do. I think there's a quote from the Simpsons. I've tried nothing and I'm all out of ideas. So the next step then is to try anything, no matter how stupid. And in fact, almost the stupider the better. Which. A technique which is almost guaranteed to fail. But the way it fails is going to be instructive. It fails because you're not at all taking into account this hypothesis. Oh, this hypothesis must be useful. That's a clue.
Lex Fridman
I, I think you also suggested somewhere this, this fascinating approach which really stuck with me as they're using it. It really works. I think you said it's called structured procrastination.
Terence Tao
No. Yes.
Lex Fridman
It's when you really don't want to do a thing that you imagine a thing you don't want to do more. Yes, that's worse than that. And then in that way you procrastinate by not doing the thing that's worse. Yeah, yeah, that's a nice, it's a nice hack. It actually works.
Terence Tao
Yeah, yeah. I mean with anything, psychology is really important. You talk to athletes like marathon runners and so forth, and they talk about what's the most important thing. Is it their training regimen or the diet and so forth. So much of it is like psychology just tricking yourself to think that the form is feasible so that you're motivated to do it.
Lex Fridman
Is there something our human mind will never be able to comprehend?
Terence Tao
Well, I sort of, I guess a Mathematician, I mean, by duction, there must be some large number that you can't understand. That was the first thing that came to mind.
Lex Fridman
So that. But even broadly, is there. Are we lim. Is there something about our mind that we're going to be limited even with the help of mathematics?
Terence Tao
Well, okay, I mean, like how much augmentation are you willing? Like for example, if I didn't even have pen and, and paper, like if I had no technology whatsoever. Okay, so I'm not allowed blackboard, pen and paper.
Lex Fridman
You're already much more limited than you.
Terence Tao
Would be incredibly limited. Even language, the English language is a technology. It's one that's been very internalized.
Lex Fridman
So you're right, the formulation of the problem is incorrect because there really is no longer a just a solo human. We're already augmented in extremely complicated, intricate ways.
Terence Tao
Right, yeah.
Lex Fridman
We're already like a collective intelligence.
Terence Tao
Yes. Yeah. Yes. So humanity, plural, has much more intelligence in principle on his good days, than the individual humans put together. It can all have less. Okay, but yeah, so yeah, the mathematical community, plural, is incredibly super intelligent, intelligent entity that no single human mathematician can come close to replicating. You see it a little bit on these question analysis sites. So this math overflow, which is the math version of Stack overflow, and sometimes you get these very quick responses to very difficult questions from the community. And it's a pleasure to watch. Actually, as an expert, I'm a fan.
Lex Fridman
Spectator of that site. Just seeing the brilliance of the different people, the depth of knowledge some people have and the willingness to engage in the rigor and the nuance of the particular question is pretty cool to watch. It's almost like just fun to watch. What gives you hope about this whole thing we have going on?
Terence Tao
Human civilization, I think the younger generation is always really creative and enthusiastic and inventive. It's a pleasure working with, with young students. The progress of science tells us that the problems that used to be really difficult can become trivial to solve. It was navigation. Just knowing where you were on the planet was this horrendous problem. People died or lost fortunes because they couldn't navigate. And we have devices in our pockets that do this automatically for us. Completely self problem. So things that seem unfeasible for us now could be maybe just sort of homework exercises for things.
Lex Fridman
Yeah. One of the things I find really sad about the finiteness of life is that I won't get to see all the cool things we create as a civilization, you know, because in the next hundred years, 200 years, just imagine showing up in 200 years.
Terence Tao
Yeah, well, already plenty has happened, you know, like if you could go back in time and talk to your teenage self or something. You know what I mean? Just the Internet and our AI, they're beginning to be internalized and say, yeah, of course an AI can understand our voice and give reasonable, slightly incorrect answers to any question. But yeah, this was mind blowing even two years ago.
Lex Fridman
And in the moment, it's hilarious to watch on the Internet and so on. The drama, people take everything for granted very quickly and then. And they, we humans seem to entertain ourselves with drama out of anything that's created. Somebody needs to take one opinion, another person needs to take an opposite opinion, argue with each other about it. But when you look at the arc of things, I mean, it's just even in progress of robotics, just to take a step back and be like, wow, this is beautiful that we humans are able to create this.
Terence Tao
Yeah. When the infrastructure and the culture is healthy, the community of humans can be so much more intelligent and mature and rational than the individuals within it.
Lex Fridman
Well, one place I can always count on rationality is the comment section of your blog, which I'm a big fan of. There's a lot of really smart people there. And thank you, of course, for putting those ideas out on the blog. And I can't tell you how honored I am that you would spend your time with me today. I was looking forward this for a long time. Terry, I'm a huge of fan fan. You inspire me. You inspire millions of people. Thank you so much for talking.
Terence Tao
Thank you. It was a pleasure.
Lex Fridman
Thanks for listening to this conversation with Terence Tao to support this podcast. Please check out our sponsors in the description or@lexfriedman.com sponsors and now let me leave you with some words from Galileo Galilei. Mathematics is a language with which God has written the universe. Thank you for listening and hope to see you next time.
Lex Fridman Podcast Episode #472 – Terence Tao: Hardest Problems in Mathematics, Physics & the Future of AI
Release Date: June 15, 2025
In this illuminating episode of the Lex Fridman Podcast, Lex engages in a deep and comprehensive conversation with Terence Tao, one of the most celebrated mathematicians of our time. Widely regarded as the “Mozart of Math,” Tao shares his insights on some of the most challenging problems in mathematics and physics, the evolving role of artificial intelligence (AI) in mathematical research, and his perspectives on collaboration and creativity in the mathematical community.
[09:57] Terence Tao: "What are problems where existing techniques can do like 90% of the job and then you just need that remaining 10%?"
Tao recounts his experience as a PhD student grappling with the Kakeya problem, a puzzle originally posed by the Japanese mathematician Soji Kakeya in 1918. The problem investigates the minimal area required to rotate a needle (infinitely maneuverable) by 180 degrees on a plane. His work on this problem elucidated connections between geometry, partial differential equations, number theory, and combinatorics, highlighting the intricate interplay of mathematical disciplines.
[16:32] Lex Fridman: "Can you speak to the Navier-Stokes? So the existence and smoothness, like you said, Millennial Prize Problem."
The conversation delves into the Navier-Stokes existence and smoothness problem, one of the seven Millennium Prize Problems. Tao explains the delicate balance between dissipation (viscosity) and transport (fluid movement) forces within these equations. He discusses his groundbreaking work in 2016, where he demonstrated finite-time blow-up for an averaged version of the three-dimensional Navier-Stokes equations. This work provided valuable insights and ruled out certain approaches, guiding mathematicians towards more promising strategies.
[24:37] Terence Tao: "The key phenomenon that my technique exploits is what's called supercriticality."
Tao introduces the concept of supercriticality in partial differential equations (PDEs), where nonlinear transport terms dominate dissipation at increasingly small scales, leading to unpredictable and turbulent behaviors. He contrasts this with criticality and subcriticality, where the balance between forces allows for more predictable and controllable outcomes. Understanding supercriticality is pivotal in both fluid dynamics and wave propagation, influencing the stability and potential singularities within these systems.
[49:32] Lex Fridman: "What do you think is a more powerful way of discovering truly novel ideas about reality?"
Tao explores the symbiotic relationship between mathematics and physics, emphasizing the necessity of both top-down (theoretical) and bottom-up (experimental) approaches. He highlights how advancements in mathematical modeling and theoretical frameworks have historically propelled physical theories forward, such as how Riemannian geometry became essential for Einstein’s general relativity. Tao expresses optimism about the potential for unifying existing physical theories through mathematical innovation.
[56:32] Lex Fridman: "What's the difference between infinity and the finite world? How do we use infinity in mathematics?"
Tao discusses universality in mathematics, the phenomenon where complex systems exhibit consistent behaviors across different scales and conditions. He uses the Central Limit Theorem as a prime example, explaining how it accounts for the ubiquitous appearance of Gaussian distributions in nature. Tao acknowledges the limitations of universality, such as systemic correlations that deviate from expected random behaviors, as seen in the 2008 financial crisis where hidden systemic risks led to catastrophic outcomes despite reliance on Gaussian models.
[89:25] Terence Tao: "Lean is a computer language much like sort of standard languages like Python and C and so forth, except that in most languages, the focus is on producing executable code."
The conversation shifts to computer-assisted proofs and the use of the Lean formal proof programming language. Tao explains how Lean differs from traditional programming languages by allowing users to create certified proofs that ensure mathematical arguments are error-free. He highlights the Equational Theories Project, which formalized 22 million algebraic problems, showcasing the immense potential for scalability and collaboration in modern mathematics through tools like Lean and AI integration.
[104:30] Terence Tao: "We've had human generate mathematics that's very low quality, like submissions people who don't have the formal training and so forth. But if a human proof is bad, you can tell it's bad pretty quickly."
Tao assesses the current state of AI in mathematical research, noting that while AI can assist in tasks like autocomplete in Lean, it struggles with verifying complex proofs due to a high rate of subtle errors. He envisions a future where AI tools become more reliable collaborators, capable of generating viable proof strategies and assisting in literature reviews. However, substantial advancements are needed for AI to autonomously contribute to high-level mathematical breakthroughs akin to those recognized by the Fields Medal.
[145:00] Terence Tao: "The primes behave like a random set...what is mysterious is the mechanism that really forces the randomness to happen."
Tao delves into the enigmatic nature of prime numbers, often referred to as the "atoms of mathematics." He discusses their seemingly random distribution and the challenge of proving conjectures like the Twin Prime Conjecture and the Riemann Hypothesis. Tao explains the parity barrier, a significant obstacle that prevents current mathematical techniques from advancing these conjectures, emphasizing the need for novel mathematical tools and insights.
[163:09] Terence Tao: "It's like trying to solve a computer game where there's unlimited cheat codes available."
Tao touches upon his work on the Collatz Conjecture, a deceptively simple yet profoundly difficult problem. He outlines his probabilistic approach, demonstrating that statistically, most starting numbers in the Collatz sequence tend to decrease over time. However, proving that all sequences eventually reach 1 remains elusive due to potential "conspiracies" or outlier cases that defy statistical trends.
[175:11] Lex Fridman: "But you were able to make, as I understand, actually, you've done, you've made so much progress towards the hardest problems in the history of mathematics."
Tao reflects on Grigori Perelman, the mathematician who famously declined the Fields Medal and the Millennium Prize for solving the Poincaré Conjecture. He discusses the personal and professional challenges faced by mathematicians who choose to distance themselves from traditional recognition, highlighting the diverse motivations and ethical considerations within the mathematical community.
[190:18] Terence Tao: "So I think people have to get skills that are transferable, like learning one specific programming language or one specific subject of mathematics or something that itself is not a super transferable skill. But knowing how to reason with abstract concepts or how to problem solve when things go wrong. These are things which I think we will still need even as our tools get better."
Tao offers pragmatic advice to young students interested in mathematics, emphasizing the importance of transferable skills such as abstract reasoning and problem-solving. He advocates for leveraging modern tools like proof assistants and AI to enhance mathematical research and education. Tao envisions a future where experimental mathematics becomes more accessible and collaborative, encouraging broader participation from enthusiasts and professionals alike.
[198:55] Terence Tao: "Mathematics is so good at spotting connections between what you might think of as completely different problems."
In concluding the conversation, Tao shares his optimistic view of the future interplay between human mathematicians and AI. He believes that while AI can significantly aid in formalizing and verifying proofs, the creative and intuitive aspects of mathematical discovery remain distinctly human domains. Tao underscores the potential for meaningful collaboration, where AI tools amplify human capabilities without supplanting the irreplaceable aspects of human creativity and ingenuity in mathematics.
Notable Quotes:
[09:57] Terence Tao: "What are problems where existing techniques can do like 90% of the job and then you just need that remaining 10%?"
[24:37] Terence Tao: "The key phenomenon that my technique exploits is what's called supercriticality."
[49:32] Terence Tao: "Every time there's a symmetry in a physical system, there is a conservation law."
[89:25] Terence Tao: "Lean is a computer language much like sort of standard languages like Python and C and so forth, except that in most languages, the focus is on producing executable code."
[176:25] Terence Tao: "Human civilization, I think the younger generation is always really creative and enthusiastic and inventive."
Terence Tao's discussion provides a profound glimpse into the complexities of modern mathematical research, the transformative potential of AI in this field, and the enduring human spirit of inquiry and collaboration. His insights not only shed light on some of the most formidable challenges in mathematics and physics but also inspire a forward-thinking approach to integrating technology with human creativity.