Terence Tao: Hardest Problems in Mathematics, Physics & the Future of AI | Lex Fridman Podcast #472

0:00

- 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.

0:12

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.

0:23

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.

0:36

This is the Lex Fridman podcast.

0:38

To support it, please check out our sponsors in the description or at lexfreedman. com/sponsors.

0:44

And now, dear friends, here's Terence Tao.

0:49

What was the first really difficult research level math problem that you encountered?

0:55

One that gives you pause, maybe?

0:57

- Well, I mean, in your undergraduate education you learn about the really hard, impossible problems like the Riemann Hypothesis, the Twin-Primes Conjecture.

1:06

You can make problems arbitrarily difficult.

1:08

That's not really a problem.

1:09

In fact, there's even problems that we know to be unsolvable.

1:11

What's really interesting are the problems just on the boundary between what we can do relatively easily and what are hopeless.

1:18

But what are problems where existing techniques can do like 90% of the job, and then you just need that remaining 10%?

1:27

I think as a PhD student, the Kakeya problem certainly caught my eye and it just got solved, actually.

1:32

It's a problem I've worked on a lot in my early research.

1:35

Historically, it came from a little puzzle by the Japanese mathematician Soichi Kakeya in 1918 or so.

1:42

So the puzzle is that you have a needle on the plane, or think like driving on a road or something, and you wanted to execute a U-turn.

1:55

You want to turn the needle around, but you want to do it in as little space as possible.

2:00

So you want to use this little area in order to turn it around, but the needle is infinitely maneuverable.

2:07

So you can imagine just spinning it around as a unit needle.

2:11

You can spin it around its center and I think that gives you a disk of area, I think pi over four.

2:17

Or you can do a three-point U-turn, which is what we teach people in their driving schools to do.

2:22

And that actually takes area pi over eight.

2:24

So it's a little bit more efficient than a rotation.

2:27

And so for a while, people thought that was the most efficient way to turn things around.

2:31

But Besicovitch showed that in fact you could actually turn the needle around using as little area as you wanted. So 0. 001.

2:39

There was some really fancy multi back and forth U-turn thing that you could do that you could turn a needle around.

2:47

And in so doing it would pass through every intermediate direction.

2:50

- Is this in the two-dimensional plane?

2:52

- This is in the two-dimensional plane.

2:53

And yeah, so we understand everything in two dimensions.

2:56

So the next question is, what happens in three dimensions?

2:58

So suppose like the Hubble Space Telescope is a 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 direction.

3:08

And here's the unrealistic part.

3:09

Suppose that space is at a premium, which it totally is not.

3:13

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.

3:20

How small a volume do you need to do that?

3:23

And so you can modify Besicovitch's construction.

3:26

And so if your telescope has zero thickness, then you can use as little volume as you need.

3:30

That's a simple modification of the two dimensional construction.

3:33

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?

3:45

So as delta gets smaller, as your needle gets thinner, the volume should go down.

3:50

But how fast does it go down?

3:53

And the conjecture was that it goes down very, very slowly, like logarithmically, roughly speaking.

3:59

And that was proved after a lot of work.

4:02

So this seems like a puzzle. Why is it interesting?

4:05

So it turns out to be surprisingly connected to a lot of problems in partial differential equations, in number theory, in geometry, combinatorics.

4:12

For example, in wave propagation, you splash some water around, you create water waves and they travel in various directions.

4:19

But waves exhibit both particle and wave-type behavior.

4:23

So you can have what's called a wave packet, which is like a very localized wave that is localized in space and moving at a certain direction in time.

4:30

And so if you plot it in both space and time, it occupies a region which looks like a tube.

4:35

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.

4:43

Like you can imagine dropping a pebble into a pond and ripples spread out.

4:47

But then if you time reverse that scenario and the equations of wave motion are time reversible.

4:53

You can imagine ripples that are converging to a single point, and then a big splash occurs, maybe even a singularity.

5:02

And so it's possible to do that.

5:04

And geometrically what's going on is that there's always sort of light rays.

5:08

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.

5:15

They all travel on these light rays and they're all focusing at this one point.

5:19

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.

5:28

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,

5:40

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 blowup,

5:58

And you could create what's called a blowup, 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.

6:08

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.

6:16

There's a famous unsolved problem called the Navier-Stokes regularity problem.

6:19

So the Navier-Stokes equations that govern a fluid flow or incompressible fluids like water.

6:25

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?

6:33

That's called a singularity.

6:34

We don't see that in real life.

6:38

If you splash around water in the bathtub, it won't explode on you, or have water leaving at the speed of light.

6:45

But potentially it is possible.

6:49

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.

7:06

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.

7:12

Of these seven, only one of them has been solved.

7:15

The Poincare conjecture by Perelman.

7:18

So the Kakeya 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.

7:32

- Can you speak to the Navier-Stokes?

7:34

So the existence and smoothness, like you said, Millennium Prize problem.

7:38

You've made a lot of progress on this one.

7:40

In 2016, you published a paper, "Finite Time Blowup for an Averaged Three-Dimensional Navier-Stokes Equation." - [Terence] Right.

7:48

- So we're trying to figure out if this thing usually doesn't blow up. - [Terence] Right.

7:53

- But can we say for sure it never blows up? - Right, yeah.

7:57

So, yeah, that is literally the million-dollar question.

7:59

So this is what distinguishes mathematicians from pretty much everybody else.

8:03

Like, if something holds 99.

8:03

99% of the time, that's good enough for most things.

8:11

But mathematicians are one of the few people who really care about whether really 100% of all situations are covered by. Yeah.

8:20

So most of the time, water does not blow up.

8:25

But could you design a very special initial state that does this?

8:29

- And maybe we should say that this is a set of equations that govern in the field of fluid dynamics.

8:35

Trying to understand how fluid behaves and it actually turns out to be a really complicated fluid is extremely complicated thing to try to model.

8:43

- Yeah, so it has practical importance.

8:44

So this Clay prize problem concerns what's called the Incompressible Navier-Stokes, which governs things like water.

8:48

There's something called the Compressible Navier-Stokes, which governs things like air.

8:52

And that's particularly important for weather prediction.

8:54

Weather prediction does a lot of computational fluid dynamics.

8:56

A lot of it is actually just trying to solve the Navier-Stokes equations as best they can.

9:02

Also gathering a lot of data so that they can initialize the equation.

9:05

There's a lot of moving parts.

9:07

So it's a very important problem, practically.

9:09

- Why is it difficult to prove general things about the set of equations like it not blowing up?

9:17

- The short answer is Maxwell's demon.

9:19

So Maxwell's demon is a concept in thermodynamics, like if you have a box of two gases, 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.

9:33

There's no reason why they should unmix.

9:35

But in principle, because of all the collisions between them, there could be some sort of weird conspiracy.

9:41

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.

9:58

And statistically, it's extremely unlikely.

10:01

But mathematically, it's possible that this can happen and we can't rule that out.

10:06

And this is a situation that shows up a lot in mathematics.

10:09

A basic example is the digits of pi. 3. 14159 and so forth.

10:14

The digits look like they have no pattern, and we believe they have no pattern.

10:18

On the long term, you should see as many ones and twos and threes as fours and fives and sixes.

10:22

There should be no preference in the digits of pi to favor let's say seven over eight.

10:28

But maybe there's some demon in the digits of pi that every time you compute more and more digits, it's a biases one digit to another.

10:36

And this is a conspiracy that should not happen.

10:39

There's no reason it should happen, but there's no way to prove it with our current technology.

10:46

Okay, so getting back to Navier-Stokes, a fluid has a certain amount of energy, and because the fluid is in motion, the energy gets transported around.

10:53

And water is also viscous.

10:55

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.

11:03

And this is what happens when we actually experiment with water.

11:09

You splash around, there's some turbulence and waves and so forth, but eventually it settles down.

11:14

And the lower the amplitude, the smaller the velocity, the more calm it gets.

11:20

But potentially there is some sort of demon that keeps pushing the energy of the fluid into a smaller and smaller scale.

11:26

And it will move faster and faster, and at faster speeds, the effective viscosity is relatively less.

11:31

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 region of the fluid, which then at a much faster rate moves into an even smaller region and so forth.

11:55

And each time it does this, it takes maybe half as long as the previous one.

12:00

And then you could actually converge to all the energy concentrating in one point in a finite amount of time.

12:09

And that scenario is called finite time blow up.

12:13

So in practice, this doesn't happen.

12:16

So water is what's called turbulent.

12:18

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.

12:27

It will transfer into maybe three or four, and then those must split up into maybe three or four small eddies of their own.

12:32

And so the energy gets dispersed to the point where the viscosity can then keep everything under control.

12:38

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.

12:51

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.

13:03

And so in the past, there have been many attempts to try to obtain what's called global regularity for Navier-Stokes, which is opposite of finite-time blowup, that velocity stays smooth. And it all failed.

13:12

There was always some sign error or some subtle mistake and it couldn't be salvaged.

13:18

So what I was interested in doing was trying to explain why we were not able to disprove finite-time blowup.

13:25

I couldn't do it for the actual equations of fluids, which were too complicated.

13:29

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.

13:40

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.

13:58

- So you're trying to make it blow up. - Yeah.

14:00

So I basically engineer a blowup by changing laws of physics, which is one thing that mathematicians are allowed to do, we can change the equation.

14:08

- How does that help you get closer to the proof of something?

14:11

So it provides what's called an obstruction in mathematics.

14:15

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.

14:27

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.

14:36

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.

14:52

So it rules out certain approaches.

14:55

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.

15:06

And for the problems that are really hard, often there are dozens of ways that you might think might apply to solve the problem.

15:13

But it's only after a lot of experience that you realize there's no way that these methods are going to work.

15:18

So having these counter-examples for nearby problems kind of rules out.

15:24

It saves you a lot of time, because you're not wasting energy on things that you now know cannot possibly ever work.

15:30

- How deeply connected is it to that specific problem of fluid dynamics?

15:34

Or just some more general intuition you build up about mathematics? - Right, yeah.

15:38

So the key phenomenon that my technique exploits is what's called supercriticality.

15:44

So in partial differential equations, often these equations are like a tug of war between different forces.

15:49

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.

15:57

If viscosity was all there was, then nothing bad would ever happen.

16:02

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.

16:10

And that's a nonlinear effect, and that causes all the problems.

16:15

So there are these two competing terms in the Navier-Stokes equation, the dissipation term and the transport term.

16:20

If the dissipation term dominates, if it's large, then basically you get regularity.

16:24

And if the transport term dominates, then we don't know what's going on.

16:29

It's a very nonlinear situation.

16:30

It's unpredictable, it's turbulent.

16:32

So sometimes these forces are unbalanced at small scales, but not in balance at large scales, or vice versa.

16:39

So Navier-Stokes is what's called supercritical.

16:41

So at smaller and smaller scales, the transport terms are much stronger than the viscosity terms.

16:47

So the viscosity of the things that calm things down.

16:50

And so this is why the problem is hard.

16:54

In two dimensions, so the Soviet mathematician Ladyzhenskaya, she in the 60s showed in two dimensions there was no blowup.

17:01

And in two dimensions, the Navier-Stokes equations is what's called critical.

17:04

The effect of transport and the effect of viscosity are about the same strength even at very, very small scales.

17:09

And we have a lot of technology to handle critical and also subcritical equations and prove regularity.

17:14

But for supercritical equations, it was not clear what was going on. And I did a lot of work.

17:21

And then there's been a lot of followup showing that for many other types of supercritical equations, you can create all kinds of blow-up examples.

17:27

Once the nonlinear effects dominate the linear effects at small scales, you can have all kinds of bad things happen.

17:32

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.

17:41

I mean, that's a key qualitative feature that distinguishes some equations for being sort of nice and predictable.

17:46

And like planetary motion.

17:48

I mean, there are certain equations that you can predict for millions of years or thousands at least.

17:54

Again, it's not really a problem.

17:55

But there's a reason why we can't predict the weather past two weeks into the future.

17:59

Because it's a super critical equation.

18:01

Lots of really strange things are going on at very fine scales.

18:04

- So whenever there is some huge source of non-linearity that can create a huge problem for predicting what's going to happen. - Yeah.

18:13

And if the nonlinearity is somehow more and more featured and interesting at small scales.

18:18

I mean, there's many equations that are nonlinear, but in many equations you can approximate things by bulk.

18:24

So for example, planetary motion.

18:26

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.

18:37

You just basically you can almost approximate these planets by point masses.

18:40

And just the aggregate behavior is important.

18:44

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.

18:51

For supercritical equations, the fine-scale information is really important.

18:54

- If we can just linger on the Navier-Stokes equations a little bit.

18:58

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. - Right.

19:13

- And then show that the halting problem from computation theory has consequences for fluid dynamics. So show it in that way.

19:20

Can you describe this idea? - Right, yeah.

19:23

So this came out of this work of constructing this average equation that blew up.

19:28

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.

19:36

Every time you get energy at one scale, you push it immediately to the next scale as fast as possible.

19:41

This is sort of the naive way to force blowup.

19:45

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 scales, what happens is that the energy starts getting spread out into many scales at once.

20:05

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.

20:13

But there's still some energy left over from the previous scale.

20:16

You're trying to do everything at once, and this spreads out the energy too much.

20:20

And then it turns out that it makes it vulnerable for viscosity to come in and actually just damp out everything.

20:28

So it turns out this directive portion doesn't actually work.

20:31

There was a separate paper by some other authors that actually showed this in three dimensions.

20:36

So what I needed was to program a delay, so kind of like airlocks.

20:41

So I needed an equation which would start with a fluid doing something at one scale.

20:47

It would push its energy into the next scale, but it would stay there until all the energy from the larger scale got transferred.

20:54

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.

21:01

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.

21:08

And then it can resist the effects of viscosity because it's not dispersed.

21:13

So in order to make that happen, yeah, I had to construct a rather complicated nonlinearity.

21:19

And it was basically like it was constructing, like an electronic circuit.

21:25

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.

21:35

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.

21:45

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."

21:56

So I knew how to build the analog of basic electronic components like resistors and capacitors and so forth.

22:01

And I would stack them together in such a way that I would create something that would open one gate, and then there'll be a clock.

22:08

And then once the clock hits the certain threshold, it would close it.

22:11

It was kind of a Rube Goldberg type machine, but described mathematically, and this ended up working.

22:16

So what I realized is that if you could pull the same thing off for the actual equations.

22:20

So if the equations of water supported computation.

22:24

So you can imagine kind of a steampunk, but it's really water punk type of thing where so modern computers are electronic.

22:32

They're powered by electrons passing through very tiny wires and interacting with other electrons and so forth.

22:39

But instead of electrons, you can imagine these pulses of water moving a certain velocity and maybe there are two different configurations corresponding to a bit being up or down, probably that if you had two of these moving bodies of water collide, it would come out with some new configuration which would be something like an AND gate or OR gate.

23:00

The output would depend in a very predictable way on the inputs.

23:04

And like you could chain these together and maybe create a Turing machine.

23:08

And then you have computers which are made completely out of water.

23:13

And if you have computers, then maybe you can do robotics, hydraulics and so forth.

23:18

And so you could create some machine which is basically a fluid analog, what's called a von Neumann machine.

23:26

So von Neumann proposed if you want to colonize Mars, the sheer cost of transporting people on machines to Mars is just ridiculous.

23:33

But if you could transport one machine to Mars and this machine had the ability to mine the planet, create some raw materials, smelt them, and build more copies of the same machine, then you could colonize the whole planet over time.

23:49

So if you could build a fluid machine, which, yeah, so it's a fluid robot.

23:56

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.

24:03

It wouldn't start just yet.

24:05

Once it's ready, the big robot configured of water would transfer all its energy into the smaller configuration and then power down and then clean itself up.

24:13

And then what's left is this newer state which would then turn on and do the same thing, but smaller and faster.

24:19

And then the equation has a certain scaling symmetry.

24:21

Once you do that, it can just keep iterating.

24:23

So this in principle would create a blowup for the actual Navier-Stokes.

24:27

And this is what I managed to accomplish for this average Navier-Stokes.

24:30

So it provided this sort of roadmap to solve the problem.

24:33

Now this is a pipe dream, because there are so many things that are missing for this to actually be a reality.

24:41

So I can't create these basic logic gates.

24:45

I don't have these special configurations of water.

24:48

I mean, there's candidates, things like vortex rings that might possibly work.

24:54

But also analog computing is really nasty compared to digital computing because there's always errors.

25:02

You have to do a lot of error correction along the way.

25:05

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.

25:10

But everything in principle can happen.

25:12

It doesn't contradict any of the laws of physics.

25:16

So it's sort of evidence that this thing is possible.

25:19

There are other groups who are now pursuing ways to make Navier-Stokes blowup, which are nowhere near as ridiculously complicated as this.

25:29

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.

25:40

- There is a real leap of genius here to go from Navier-Stokes to this Turing machine.

25:46

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 Turing machine gets smaller and smaller and smaller.

25:58

And somehow seeing how that could be used to say something about a blowup.

26:06

I mean, that's a big leap. - So there's precedent.

26:09

I mean, so the thing about mathematics is that it's really good at spotting connections between what you think of, what you might think of as completely different problems.

26:19

But if the mathematical form is the same, you can draw a connection.

26:25

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.

26:32

There's this infinite discrete grid, and at any given time the grid is either occupied by a cell or it's empty.

26:37

And there's a very simple rule that tells you how these cells evolve.

26:40

So sometimes cells live and sometimes they die.

26:43

And this is when I was a student, it was a very popular screensaver to actually just have these animations going, and they look very chaotic.

26:52

In fact they look a little bit like turbulent flow sometimes.

26:54

But at some point people discovered more and more interesting structures within this Game of Life.

26:58

So for example, they discovered this thing called a glider.

27:00

So a glider is a very tiny configuration of like four or five cells which evolves and it just moves at a certain direction and that's like these vortex rings. So this is an analogy.

27:10

The Game of Life is kind of like a discrete equation.

27:14

And the fluid Navier-Stokes is a continuous equation.

27:17

But mathematically they have some similar features.

27:21

And so over time, people discovered more and more interesting things that you could build within the Game of Life.

27:27

The Game of Life is a very simple system.

27:28

It only has like three or four rules to do it, but you can design all kinds of interesting configurations inside it.

27:34

There's something called a glider gun that does nothing of spit out gliders one and one at a time.

27:40

And then after a lot of effort, people managed to create AND gates and OR gates for gliders.

27:48

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.

27:59

Maybe if both of the streams have gliders, then there'll be an output stream.

28:05

But if only one of them does, then nothing comes out.

28:07

So they could build something like that.

28:10

And once you could build these basic gates, then just from software engineering, you can build almost anything.

28:19

You can build a Turing machine.

28:20

I mean, it's again, enormous steampunk type things, they look ridiculous.

28:24

But then people also generated self-replicating objects in the Game of Life.

28:29

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.

28:37

It would create another version of itself which could replicate. - That's so incredible.

28:42

- A lot of this was community crowdsourced by amateur mathematicians, actually.

28:46

So I knew about that work.

28:48

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.

28:59

You can't just directly take the constructions in the Game of Life and plunk them in.

29:03

But again, it just, it shows it's possible.

29:05

- You know, there's a kind of emergence that happens with these cellular automata, local rules.

29:13

Maybe it's similar to fluids, I don't know.

29:16

But local rules operating at scale can create these incredibly complex dynamic structures.

29:25

Do you think any of that is amenable to mathematical analysis?

29:30

Do we have the tools to say something profound about that?

29:33

- The thing is, you can get this emergent very complicated structures, but only with very carefully prepared initial conditions.

29:40

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.

29:49

And that's the analogous situation with Navier-Stokes.

29:52

Again, with typical initial conditions, you will not have any of this weird computation going on.

29:59

But basically through engineering, by specially designing things in a very special way, you can pick clever constructions.

30:07

- 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.

30:16

- This is a recurring challenge in mathematics that I call it the dichotomy between structure and randomness.

30:22

That most objects that you can generate in mathematics are random. They look like random.

30:26

The digits of pi, well, we believe is a good example, but there's a very small number of things that have patterns.

30:33

But now you can prove something as a pattern by just constructing.

30:36

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.

30:49

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.

30:57

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?

31:07

Some other work that I spend a lot of time on is to prove what are called structure theorems or inverse theorems that give tests for when something is very structured.

31:15

So some functions are what's called additive, like if you have a function that must say natural numbers, the natural numbers.

31:20

So maybe two maps to four, three maps to six, and so forth.

31:25

Some functions also additive, which means that if you add two inputs together, the output gets added as well.

31:31

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.

31:41

So some functions are additive.

31:44

Some functions are kind of additive, but not completely additive.

31:47

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.

31:54

So 10 by square root of 2 is like 14 point something. So 10 up to 14. 21 up to 28.

32:01

So in that case additively is true then.

32:03

So 10 plus 10 is 20, and 14 plus 14 is 28.

32:06

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.

32:17

So it's almost additive, but not quite additive.

32:21

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.

32:33

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.

32:44

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.

32:55

And in either case you can make progress.

33:00

A good example of this is that there's this old theorem in mathematics called Szemeredi's Theorem proven in the 1970s.

33:06

It concerns trying to find a certain type of pattern in a set of numbers.

33:09

The pattern is arithmetic progression, things like 3, 5, and 7, or 10, 15, and 20.

33:15

And Szemeredi, Endre Szemeredi, proved that any set of numbers that is sufficiently big, what's called positive density, has arithmetic progressions in it of any length you wish.

33:27

So, for example, the odd numbers have a set of density one half, and they contain arithmetic progressions of any length.

33:34

So in that case, it's obvious because the odd numbers are really, really structured.

33:38

I can just take 11, 13, 15, 17.

33:41

I can easily find arithmetic expressions in that set.

33:45

But Szemeredi also applies to random sets.

33:48

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.

33:58

I just randomly take out half the numbers, I keep one half.

34:01

So that's a set that has no patterns at all, but just from random fluctuations, you will still get a lot of arithmetic progressions in that set.

34:10

- Can you prove that there's arithmetic progressions of arbitrary length within a random? - Yes.

34:18

Have you heard of the infinite monkey theorem?

34:20

Usually mathematicians give boring names to theories, but occasionally they give colorful names.

34:24

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 script of Hamlet or any other finite string of text.

34:38

It will just take some time, quite a lot of time, actually.

34:40

But if you have an infinite number, then it happens.

34:44

So basically, the theorem says that if you take an infinite string of digits or whatever, eventually any finite pattern you wish will emerge.

34:54

It may take a long time, but it will eventually happen.

34:57

In particular, arithmetic progressions of any length will eventually happen.

35:01

But you need an extremely long random sequence for this to happen.

35:04

- I suppose that's intuitive. It's just infinity.

35:08

- Yeah, infinity absorbs a lot of sins. - Yeah.

35:11

How are we humans supposed to deal with infinity?

35:14

- Well, you can think of infinity as just an abstraction of a finite number for which you do not have a bound for.

35:24

I mean, so nothing in real life is truly infinite.

35:27

But you can ask yourself questions like, what if I had as much money as I wanted?

35:33

Or what if I could go as fast as I wanted?

35:35

And a way in which mathematicians formalize that is mathematics has found a formalism to idealize.

35:41

Instead of something being extremely large or extremely small, to actually be exactly infinite or zero.

35:46

And often the mathematics becomes a lot cleaner when you do that.

35:50

I mean, in physics we joke about assuming spherical cows.

35:56

Real world problems have got all kinds of real world effects, but you can idealize, send things to infinity, send something to zero, and the mathematics becomes a lot simpler to work with there.

36:06

- I wonder how often using infinity forces us to deviate from the physics of reality.

36:16

- Yeah, so there's a lot of pitfalls.

36:19

So we spend a lot of time in undergraduate math classes teaching analysis.

36:23

And analysis is often about how to take limits and whether you, so for example, A plus B is always B plus A.

36:31

So when you have a finite number of terms and you add them, you can swap them and there's no problem.

36:35

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.

36:44

And so you can make mistakes.

36:46

You have to know what you're doing when you allow infinity.

36:49

You have to introduce these epsilons and deltas.

36:51

And there's a certain type of way of reasoning that helps you avoid mistakes.

36:58

In more recent years, people have started taking results that are true in infinite limits and what's called finitizing them.

37:07

So you know that something's true eventually, but you don't know when. Now give me a rate.

37:11

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?

37:19

And that's a more quantitative question.

37:23

And this is something that you can attack by purely finite methods.

37:26

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.

37:36

And so this is why you never see the monkeys create Hamlet.

37:39

You can maybe see them create a four-letter word, but nothing that big.

37:41

And so I personally find once you finitize an infinite statement, it does become much more intuitive and it's no longer so weird.

37:51

- So even if you're working with infinity, it's good to finitize so that you can have some intuition. - Yeah.

37:57

The downside is that the finitized proofs are just much, much messier.

38:02

So the infinite ones are found first, usually, like decades earlier, and then later on people finalize them.

38:07

- 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?

38:17

Maybe we can throw in engineering in there.

38:19

You mentioned your wife is an engineer.

38:20

Give it new perspective on circuits.

38:23

So this different way of looking at the world, given that you've done mathematical physics, you've worn all the hats.

38:29

- Right, so I think science in general is interaction between three things.

38:34

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.

38:45

So we can't directly access reality. Okay.

38:49

All we have are the observations, which are incomplete and they have errors.

38:54

And there are many cases where we want to know, for example, what is the weather like tomorrow?

38:59

And we don't yet have the observation and we'd like to predict.

39:03

And then we have these simplified models, sometimes making unrealistic assumptions, spherical cow type things.

39:09

Those are the mathematical models.

39:11

Mathematics is concerned with the models.

39:13

Science collects the observations and it proposes the models that might explain these observations.

39:20

What mathematics does, we stay within the model, and we ask, what are the consequences of that model?

39:27

What predictions would the model make of future observations or past observations?

39:32

Does it fit observed data?

39:34

So there's definitely a symbiosis.

39:39

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.

39:50

In almost any other discipline, you start with the conclusions. I want to do this.

39:54

I want to build a bridge, I want to make money, I want to do this.

39:58

And then you find the paths to get there.

40:04

There's a lot less sort of speculation about, suppose I did this, what would happen? Planning and modeling.

40:12

Speculative fiction maybe is one other place, but that's about it, actually.

40:17

Most of the things we do in life is conclusions driven, including physics and science.

40:20

I mean, they want to know, where is this asteroid going to go?

40:23

What is the weather going to be tomorrow?

40:26

But mathematics also has this other direction of going from the axioms. - What do you think?

40:33

There is this tension in physics between theory and experiment.

40:37

What do you think is a more powerful way of discovering truly novel ideas about reality?

40:42

- Well, you need both top-down and bottom-up.

40:44

Yeah, it's a really interaction between all these things.

40:47

So over time, the observations and the theory and the modeling should both get closer to reality.

40:53

But initially, this is always the case, they're always far apart to begin with.

41:01

But you need one to figure out where to push the other.

41:04

So if your model is predicting anomalies that are not picked up by experiment, that tells experimenters where to look to find more data, to refine the models.

41:17

So it goes back and forth.

41:20

Within mathematics itself, there's also a theory and experimental component.

41:24

It's just that until very recently, theory has dominated almost completely.

41:29

Like 99% of mathematics is theoretical mathematics.

41:31

And there's a very tiny amount of experimental mathematics.

41:35

I mean, people do do it if they want to study prime numbers or whatever, they can just generate large data sets.

41:41

So once we had a computers, we began to do it a little bit.

41:45

Although even before, well, like Gauss, for example, he discovered, he conjectured the most basic theorem in number theory to call the prime number theorem, which predicts how many primes that up to a million, up to a trillion.

41:56

It's not an obvious question.

41:58

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 hundred thousand primes or something and made tables and made a prediction.

42:14

That was an early example of experimental mathematics, but until very recently it was not, I mean, theoretical mathematics was just much more successful.

42:24

I mean, of course, doing complicated mathematical computations was just not feasible until very recently.

42:31

And even nowadays, even though we have powerful computers, only some mathematical things can be explored numerically.

42:37

There's something called the combinatorial explosion.

42:39

If you want to study, for example, Zsigmondy's theorem, you want to study all possible subsets of the numbers 1 to 1000.

42:44

There's only 1000 numbers. How bad could it be?

42:46

It turns out the number of different subsets of 1 to 1000 is 2 to the power 1000, which is way bigger than any computer can currently, in fact, any computer ever will ever enumerate.

42:59

So there are certain math problems that very quickly become just intractable to attack by direct brute force computation.

43:07

Chess is another famous example.

43:10

The number of chess positions, we can't get a computer to fully explore.

43:16

But now we have AI, we have tools to explore this space, not with 100% guarantees of success, but with experiment.

43:25

So we can empirically solve chess now, for example.

43:30

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.

43:38

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, this is a good type of move, this is not.

43:50

And they can use these chess engines to actually refine, in some cases overturn, conventional wisdom about chess.

43:58

And I do hope that mathematics will have a larger experimental component in the future, perhaps powered by AI.

44:05

- We'll of course talk about that.

44:06

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.

44:17

It's just saying which position is better or not.

44:19

And you can intuit as a human being, and then from that we humans can construct a theory of the matter.

44:27

You've mentioned the Plato's cave allegory.

44:30

So in case people don't know, it's where people are observing shadows of reality, not reality itself.

44:38

And they believe what they're observing to be reality.

44:41

Is that in some sense what mathematicians and maybe all humans are doing is looking at shadows of reality?

44:51

Is it possible for us to truly access reality?

44:55

- Well, there are these three ontological things.

44:58

There's actual reality, there's our observations, and our models.

45:04

And technically they are distinct, and I think they will always be distinct.

45:08

But they can get closer over time.

45:15

And the process of getting closer often means that you have to discard your initial intuitions.

45:21

So astronomy provides great examples.

45:27

An initial model of the world is flat because it looks flat, and it's big.

45:33

And the rest of the universe, the sky is not, like the sun, for example, looks really tiny.

45:38

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.

45:46

But over time, as you make more and more observations bring it closer to reality, the model gets dragged along with it.

45:52

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.

46:00

And the galaxy universe is expanding.

46:03

The expansion is itself expanding, accelerating.

46:05

And in fact, very recently this year or so, even the acceleration of the universe itself, there's evidence that it's non-constant.

46:12

- And the explanation behind why that is.

46:16

- [Terence] It's catching up. - It's catching up.

46:18

I mean, it's still the dark matter, dark energy, this kind of thing.

46:22

- We have a model that sort of explains, that fits the data really well.

46:25

It just has a few parameters that you have to specify.

46:30

So people say, oh, that's fudge factors.

46:32

With enough fudge factors, you can explain anything.

46:35

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.

46:43

So if you have a model with 10 parameters that explains 10 observations, that is a completely useless model.

46:48

It's what's called overfitted.

46:50

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.

47:06

You can think of a theory.

47:07

Like one way to think about physical mathematical theory is it's a compression of the universe and a data compression.

47:15

So you have these petabytes of observations.

47:18

You like to compress it to a model which you can describe in five pages and specify a certain number of parameters.

47:24

And if it can fit to reasonable accuracy, almost all of your observations.

47:29

I mean, the more compression that you make, the better your theory.

47:32

- In fact, one of the great surprises of our universe and of everything in it is that it's compressible at all.

47:38

It's the unreasonable effectiveness of mathematics.

47:40

- Yeah, Einstein had a quote like that.

47:41

The most incomprehensible thing about the universe is that it is comprehensible.

47:45

- [Lex] And not just comprehensible.

47:47

You can do an equation like E equals MC squared.

47:49

- There is actually some mathematical possible explanation for that.

47:54

So there's this phenomenon in mathematics called universality.

47:57

So many complex systems at the macro scale are coming out of lots of tiny interactions at the micro scale.

48:02

And normally, because of the common form of explosion, you would think that the macroscale equations must be infinitely exponentially more complicated than the microscale ones.

48:12

And they are if you want to solve them completely exactly.

48:15

Like if you want to model all the atoms in a box of air.

48:20

That's like Avogadro's number is humongous.

48:22

There's a huge number of particles.

48:24

If you actually have to track each one, it'll be ridiculous.

48:27

But certain laws emerge at the microscopic scale that almost don't depend on what's going on at the macroscale, or only depend on a very small number of parameters.

48:35

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.

48:45

And it models almost everything you need to know about these 10 to the 23 or whatever particles.

48:53

So we don't understand universality anywhere near as we would like mathematically.

48:59

But there are much simpler toy models where we do have a good understanding of why universality occurs.

49:06

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.

49:16

There's now even a meme but wit this curve.

49:19

- [Lex] And even the meme applies broadly, there's universality to the meme.

49:22

- Yes, you can call it meta if you like, but there are many, many processes.

49:27

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.

49:36

And we can prove in various cases that these bell curves, these Gaussians emerge.

49:40

And it is a satisfying explanation. Sometimes they don't.

49:45

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.

49:52

And this is also important to know when a system fails.

49:55

So universality is not a 100% reliable thing to rely on.

50:01

The global financial crisis was a famous example of this.

50:04

People thought that mortgage defaults had this sort of Gaussian type behavior that if you ask if you have a population of 100,000 Americans with mortgages, they ask what proportion of them will default on their mortgages.

50:21

If everything was decorrelated, there would be a nice bell curve, and you can manage risk with options and derivatives and so forth.

50:27

And it is a very beautiful theory.

50:30

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.

50:39

And this wasn't fully accounted for in 2008.

50:44

Now I think there's some more awareness that this is a systemic risk is actually a much bigger issue.

50:48

And just because the model is pretty and nice, it may not match reality.

50:55

The mathematics of working out what models do is really important.

50:59

But also the science of validating when the models fit reality and when they don't, you need both.

51:09

But mathematics can help because, for example, these central limit theorems, it tells you that if you have certain axioms like type non-correlation, that if all the inputs were not correlated to each other, then you have these Gaussian behaviors that things are fine.

51:22

It tells you where to look for weaknesses in the model.

51:25

So if you have a mathematical understanding of the 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?"

51:41

And so then you can ask the economists, "How much of a risk is that?"

51:46

And then you can go look for that.

51:48

So there's always this synergy between science and mathematics.

51:52

- A little bit on the topic of universality, you're known and celebrated for working across an incredible breadth of mathematics.

52:01

Reminiscent of Hilbert a century ago.

52:03

In fact, the great Fields Medal winning mathematician Tim Gowers has said that you are the closest thing we get to Hilbert. - Ha!

52:12

(Lex chuckles) - [Lex] He's a colleague of yours?

52:15

- [Terence] Oh yeah, good friend.

52:16

- But anyway, so you are known for this ability to go both deep and broad in mathematics.

52:22

So you're the perfect person to ask.

52:24

Do you think there are threads that connect all the disparate areas of mathematics?

52:30

Is there a kind of deep underlying structure to all of mathematics?

52:35

- There's certainly a lot of connecting threads, and 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.

52:50

An ancient example is geometry and number theory.

52:54

So in the times of the ancient Greeks, these were considered different subjects.

52:58

I mean mathematicians worked on both.

53:00

Euclid worked both on geometry most famously, but also on numbers.

53:06

But they were not really considered related.

53:09

I mean a little bit like you could say that this length was five times this length because you could take five copies of this length and so forth.

53:16

But it wasn't until Descartes who really realized that develop analytic geometry, you can parameterize the plane, a geometric object, by two real numbers. Every point can be.

53:27

And so geometric problems can be turned into problems about numbers.

53:33

And today this feels almost trivial.

53:38

There's no content to list.

53:39

Of course a plane is X and Y, because that's what we teach and it's internalized.

53:46

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.

53:56

Algebra and geometry were separated and now we have a split algebraic geometry that connects them and over and over again.

54:01

And that's certainly the type of mathematics that I enjoy the most.

54:05

So I think there's sort of different styles to being a mathematician.

54:08

I think hedgehogs and fox.

54:10

A fox knows many things a little bit, but a hedgehog knows one thing very, very well.

54:14

And in mathematics there's definitely both hedgehogs and foxes, and then there's people who are kind of, who can play both roles.

54:22

And I think ideal collaboration between mathematicians involves, you need some diversity, like a fox working with many hedgehogs or vice versa.

54:33

But I identify mostly as a fox.

54:35

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.

54:49

- So see the connections between the fields. - Yeah.

54:52

So there are other mathematicians who are far deeper than I am, they're really hedgehogs.

54:58

They know everything about one field, and they're much faster and more effective in that field.

55:03

But I can give them these extra tools.

55:05

- I mean, you've said that you can be both the hedgehog and the fox, depending on the context, depending on the collaboration.

55:11

So what can you, if it's at all possible, speak to the difference between those two ways of thinking about a problem?

55:18

Say you're encountering a new problem, searching for the connections versus like very singular focus.

55:26

- I'm much more comfortable with the fox paradigm.

55:33

I like looking for analogies, narratives.

55:37

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.

55:42

But I don't like the proof.

55:43

It uses types of mathematics that I'm not super familiar with.

55:48

I often try to reprove it myself using the tools that I favor.

55:53

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."

56:02

And from that I can get some understanding of the tools that are used in that field.

56:07

So it's very exploratory, doing crazy things and crazy builds and reinventing the wheel a lot.

56:14

Whereas the hedgehog style is, I think, much more scholarly.

56:18

You're very knowledge-based.

56:20

You stay up to speed on all the developments in this field.

56:23

You know all the history.

56:25

You have a very good understanding of exactly the strengths and weaknesses of each particular technique.

56:32

Yeah, I think you'd rely a lot more on sort of calculation than sort of trying to find narratives.

56:39

So, yeah, I mean, I could do that too, but there are other people who are extremely good at that.

56:44

- Let's step back and maybe look at a bit of a romanticized version of mathematics.

56:53

So I think you've said that early on in your life, math was more like a puzzle solving activity when you were young.

57:03

When did you first encounter a problem or proof where you realized math can have a kind of elegance and beauty to it?

57:14

- That's a good question.

57:16

When I came to graduate school in Princeton.

57:19

So John Conway was there at the time.

57:20

He passed away a few years ago.

57:22

But I remember one of the very first research talks I went to was a talk by Conway on what he called extreme proof.

57:28

So Conway just had this amazing way of thinking about all kinds of things in a way that you would normally think of.

57:33

So he thought of proofs themselves as occupying some sort of space.

57:38

So if you want put 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.

57:46

Like some proofs are elegant, some proofs are long, some proofs are elementary and so forth. And so this is cloud.

57:52

So the space of all proofs itself has some sort of shape.

57:57

And so he was interested in extreme points of this shape.

58:01

Like out of all these proofs, what is one that is the shortest at the expense of everything else or the most elementary or whatever.

58:09

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.

58:19

I just found that really eye-opening that 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, but proofing itself had some craftsmanship to it.

58:40

It 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.

58:52

As long as it gets a tick mark, you move on.

58:55

But if you want your results to actually be influential and be read by people, it can't just be correct.

59:01

It should also be a pleasure to read, motivated, be adaptable, to generalize to other things.

59:10

It's the same in many other disciplines like coding.

59:13

There's a lot of analogies between math and coding.

59:15

I like analogies if you haven't noticed.

59:17

(Lex laughs) But you can code something spaghetti code that works for a certain task, and it's quick and dirty, and it works.

59:24

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.

59:34

And there's similar things with mathematics.

59:38

- Yeah, first of all there's so many beautiful things there.

59:41

And Conway is one of the great minds in mathematics ever and computer science.

59:47

Just even considering the space of proofs, and saying, "Okay, what does this space look like and what are the extremes?"

59:56

Like you mentioned, coding is an analogy is interesting because there's also this activity called Code Golf.

1:00:02

- [Terence] Oh, yeah, yeah, yeah.

1:00:02

- 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. - [Terence] Yeah.

1:00:12

- Then I believe there's even competitions on this.

1:00:15

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.

1:00:26

Maybe that's a different notation or whatever to use to accomplish a different task. - Yeah, you learn a lot.

1:00:32

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 not see.

1:00:43

- What to use the most beautiful or elegant equation in mathematics?

1:00:48

I mean, one of the things that people often look to in beauty is the simplicity.

1:00:53

So if you look at E equals MC squared.

1:00:56

So when a few concepts come together, that's why the Euler identity is often considered the most beautiful equation in mathematics.

1:01:05

Do you find beauty in that one in the Euler identity?

1:01:08

- Yeah, well, as I said, I mean, what I find most appealing is connections between different things that, so E to the pi I equals minus one.

1:01:17

So yeah, people always use all the fundamental constants.

1:01:20

Okay, that's cute, but to me.

1:01:23

(Lex laughing) So the exponential function was introduced by Euler to measure exponential growth.

1:01:28

So compound interest or decay.

1:01:30

Anything which is continuously growing, continuously decreasing growth and decay, or dilation or contraction is modeled by the exponential function.

1:01:39

Whereas pi comes around from circles and rotation.

1:01:42

If you want to rotate a needle, for example, 180 degrees, you need to rotate by pi radians.

1:01:47

And i, complex numbers, represents this whole imaginary axes of a 90-degree rotation.

1:01:52

So a change in direction.

1:01:53

So the X metric function represents growth and decay in the direction that you really are.

1:02:00

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.

1:02:11

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.

1:02:17

So it unifies geometry through dilation and exponential growth or dynamics through this act of complexification, rotation by i.

1:02:25

So it connects together all these tools in mathematics, dynamics, geometry, and the complex numbers, they're all considered almost, they're all next door neighbors in mathematics because of this identity.

1:02:37

- Do you think the thing you mentioned is cute, the collision of notations from these disparate fields is just a frivolous side effect?

1:02:46

Or do you think there is legitimate value in one notation?

1:02:50

All our old friends come together at night.

1:02:54

- Well, it's confirmation that you have the right concepts.

1:02:58

So when you first study anything, you have to measure things and give them names.

1:03:04

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.

1:03:14

- Physicists can do this sometimes, but it turns out okay.

1:03:17

- So actually with physics, so E equals MC squared.

1:03:20

Okay, so one of the big things was the E.

1:03:23

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.

1:03:32

They could measure mass and acceleration and force and so forth.

1:03:35

And so Newtonian mechanics, for example, F = ma was the famous Newton's second law of motion.

1:03:40

So those were the primary objects.

1:03:41

So they gave them the central billing in the theory.

1:03:44

It was only later, after people started analyzing these equations that there always seemed to be these quantities that were conserved.

1:03:51

So in particular momentum and energy.

1:03:54

And it's not obvious that things have an energy.

1:03:57

It's not something you can directly measure the same way you can measure mass and velocity and so forth.

1:04:02

But over time people realized that this was actually a really fundamental concept.

1:04:05

Hamilton eventually in 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.

1:04:15

Once you know how to measure the Hamiltonian of any system, you can describe completely the dynamics, like what happens to all the states.

1:04:22

It really was a central actor which was not obvious initially. And this helped.

1:04:30

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 was a wave.

1:04:48

It just looks really, really weird.

1:04:51

You ask what is the quantum version of F = ma?

1:04:53

And it's really, really hard to give an answer to that.

1:04:56

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.

1:05:09

It's a different type of object.

1:05:10

It's what's called an operator rather than a function.

1:05:14

But again, once you specify it, you specify the entire dynamics.

1:05:17

So there's something called Schrodinger's equation that tells you exactly how quantum systems evolve once you have a Hamiltonian.

1:05:23

So side by side, they look completely different objects.

1:05:26

One involves particles, one involves waves, and so forth.

1:05:30

But with this centrality, you could start actually transferring a lot of intuition and facts from classical mechanics to quantum mechanics.

1:05:36

So for example, in classical mechanics there's this thing called Noether's theorem.

1:05:40

Every time there's a symmetry in a physical system, there is a conservation law.

1:05:44

So the laws of physics are translation invariant.

1:05:46

Like if I move 10 steps to the left, I experience the same laws of physics as if I was here.

1:05:50

And that corresponds to conservation momentum.

1:05:54

If I turn around by some angle, again I experience the same laws of physics.

1:05:57

This corresponds to the conservation of angular momentum.

1:06:00

If I wait for 10 minutes, I still have the same laws of physics.

1:06:03

So this time transition invariance, this corresponds to the law of concentration of energy.

1:06:08

So there's this fundamental connection between symmetry and conservation.

1:06:12

And that's also true in quantum mechanics, even though the equations are completely different.

1:06:16

But because they're both coming from the Hamiltonian, the Hamiltonian controls everything.

1:06:20

Every time the Hamiltonian has a symmetry, the equations will have a conservation law.

1:06:25

So once you have the right language, it actually makes things a lot cleaner.

1:06:32

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.

1:06:38

For example, we have to give up the notion of space and time being these almost Euclidean type spaces.

1:06:43

And 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.

1:07:02

We don't actually have the mathematical concepts.

1:07:06

The analog got a Hamiltonian that sort of organized everything.

1:07:09

- 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? - I believe so.

1:07:20

I mean, the history of physics has been that of unification, much like mathematics.

1:07:24

Over the years, electricity and magnetism were separate theories and then Maxwell unified them.

1:07:29

Newton unified the motions of heavens with the motions of objects on the earth and so forth. So it should happen.

1:07:35

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.

1:07:51

9% of sort of all the observations we can make.

1:07:56

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.

1:08:11

But I have faith that we've been doing this for centuries and we've made progress before.

1:08:17

There's no reason why we should stop.

1:08:18

- Do you think you'll be a mathematician that develops theory of everything?

1:08:24

- What often happens is that when the physicists need some theory of mathematics, there's often some precursor that the mathematicians worked out earlier.

1:08:35

So when Einstein started realizing that space was curved, he went to some mathematician and asked, "Is there some theory of curved space that mathematicians already came up with that could be useful?"

1:08:45

And he said, "Oh, yeah," I think Riemann came up with something.

1:08:49

And so, yeah, Riemann had developed Riemannian geometry, which is precisely 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.

1:09:01

This is going back to Wigner's unreasonable effectiveness of mathematics.

1:09:04

I think the theories that work well to explain the universe tend to also involve the same mathematical objects that work well to solve mathematical problems.

1:09:12

Ultimately, they're just sort of both ways of organizing data in useful ways.

1:09:17

- It just feels like you might need to go some weird land that's very hard to intuit.

1:09:23

Like you have like string theory.

1:09:25

- Yeah, that was a leading candidate for many decades.

1:09:27

I think it's slowly falling out of fashion, because it's not matching experiment.

1:09:33

- So one of the big challenges, of course, like you said, is experiment is very tough. - [Terence] Yes.

1:09:38

- Because of how effective both theories are.

1:09:42

But the other is like just you're talking about, you're not just deviating from space time, you're going into like some crazy number of dimensions.

1:09:52

You're doing all kinds of weird stuff.

1:09:54

That to us, we've gone so far from this flat Earth that we started at, like you mentioned.

1:09:59

- [Terence] Yeah, yeah, yeah.

1:10:00

- Now we're just, it's very hard to use our limited ape descendants of a cognition to intuit what that reality really is like.

1:10:10

- This is why analogies are so important.

1:10:12

I mean, so, yeah, the round Earth is not intuitive, because we're stuck on it.

1:10:18

But round objects in general, we have pretty good intuition a little bit.

1:10:21

And we have intuition about light works and so forth.

1:10:23

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.

1:10:37

And you can just take a basketball and a golf ball and a light source and actually do these things yourself.

1:10:43

So the intuition is there, but you have to transfer it.

1:10:47

- That is a big leap intellectually for us to go from flat to round Earth, because our life is mostly lived in flatland, to load that information.

1:10:56

And we're all like, take it for granted.

1:10:58

We take so many things for granted because science has established a lot of evidence for this kind of thing.

1:11:03

But we're around rock flying through space.

1:11:10

That's a big leap, and you have to take a chain of those leaps the more and more and more we progress. - Right, yeah.

1:11:16

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.

1:11:24

And so for someone who hasn't gone through the whole process of science education, it looks more and more suspicious because of that.

1:11:31

So we need more grounding, I think.

1:11:35

I mean, there are scientists who do excellent outreach, but there's lots of science things that you can do at home.

1:11:41

There's lots of YouTube videos.

1:11:43

I did a YouTube video recently with Grant Sanderson.

1:11:45

We talked about this earlier, how the ancient Greeks were able to measure things like the distance of the moon, distance to the Earth, and using techniques that you could also replicate yourself.

1:11:56

It doesn't all have to be fancy space telescopes and really intimidating mathematics.

1:12:01

- Yeah, I highly recommend that.

1:12:03

I believe you gave a lecture and you also did an incredible video with Grant.

1:12:07

It's a beautiful experience to try to put yourself in the mind of a person from that time, shrouded in mystery.

1:12:16

You're on this planet, you don't know the shape of it, the size of it.

1:12:20

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.

1:12:29

- Change of perspective is really important.

1:12:30

You say travel broadens the mind.

1:12:32

This is intellectual travel.

1:12:33

You know, put yourself in the mind of the ancient Greeks or some other person, some other time period, make hypotheses, spherical cows, whatever, speculate.

1:12:43

And this is what mathematicians do and some artists do, actually.

1:12:48

- It's just incredible that given the extreme constraints, you could still say very powerful things.

1:12:53

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 work.

1:13:01

- If you propose axioms, then the mathematics lets you follow those axioms to their conclusions.

1:13:05

And sometimes you can get quite a long way from initial hypotheses.

1:13:10

- If we can stay in the land of the weird.

1:13:11

You mentioned general relativity.

1:13:14

You've contributed to the mathematical understanding of Einstein's field equations.

1:13:18

Can you explain this work?

1:13:20

And from a sort of mathematical standpoint, what aspects of general relativity are intriguing to you, challenging to you?

1:13:31

- I have worked on some equations.

1:13:33

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.

1:13:45

So Einstein's equations of relativity just describe space and time itself.

1:13:50

But then there's other fields that live on top of that.

1:13:52

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.

1:14:02

But relatively low on the hierarchy was this thing called the wave maps equation.

1:14:06

So it's a wave which at any given point is fixed to be like on a sphere.

1:14:12

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.

1:14:20

If you wiggle an arrow, it will propagate and make all the arrows move, kind of like sheaves of wheat in the wheat field.

1:14:27

And I was interested in the global regularity problem again for this question.

1:14:31

Is it possible for all the energy here to collect at a point?

1:14:35

So the equation I considered was actually what's called a critical equation, where the behavior at all scales is roughly the same.

1:14:42

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.

1:14:54

Yeah, this was back in 2000.

1:14:56

That was part of why I got interested in Navier-Stokes afterwards, actually.

1:14:59

Yeah, so I developed some techniques to solve that problem.

1:15:02

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.

1:15:13

When you sort of looked at it normally, it looked larger than the linear effects of the wave equation.

1:15:18

And so it was hard to keep things under control, even when your energy was small.

1:15:23

But I developed what's called a gauge transformation.

1:15:25

So the equation is kind of like an evolution of sheaves of wheat and they're all bending back and forth.

1:15:31

And so there's a lot of motion.

1:15:33

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 stabilized flow, the flow becomes a lot more linear.

1:15:46

I discovered a way to transform the equation to reduce the amount of nonlinear effects.

1:15:52

And then I was able to solve the equation.

1:15:56

I found this transformation while visiting my aunt in Australia.

1:15:59

And I was trying to understand the dynamics of all these fields.

1:16:02

And I couldn't do it with pen and paper.

1:16:04

And I had not enough facility of computers to do any computer simulations.

1:16:08

So I ended up closing my eyes, being on the floor, and just imagining myself to actually be this vector field and rolling around and 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.

1:16:22

And yeah, my aunt walked in on me while I was doing that and she was asking, what am I doing doing this?

1:16:27

- It's complicated, is the answer. - Yeah, yeah.

1:16:30

And she goes, "Okay, fine you're a young man. I don't ask questions."

1:16:34

- I have to ask about the, how do you approach solving difficult problems?

1:16:41

If it's possible to go inside your mind when you're thinking, are you visualizing in your mind the mathematical objects, symbols, maybe?

1:16:53

What are you visualizing in your mind usually when you're thinking?

1:16:57

- A lot of pen and paper.

1:16:58

One thing you pick up as a mathematician is sort of, I call it cheating strategically.

1:17:04

So the beauty of mathematics is that you get to change the problem, change the rules as you wish.

1:17:11

You don't get to do this for any other field.

1:17:13

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."

1:17:22

But a mathematician, you can do whatever you want.

1:17:27

It's like trying to solve a computer game where there's unlimited cheat codes available.

1:17:32

And so you can set this dimension that's large, I'll set it to one.

1:17:38

I'd solve the one dimensional problem first.

1:17:40

There's a main term and an error term.

1:17:42

I'm going to make a spherical cow assumption.

1:17:43

I assume the error term is zero.

1:17:45

And so the way you should solve these problems is not in sort of this Iron Man 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.

1:18:07

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 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.

1:18:21

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.

1:18:29

As a kid, I watched a lot of these Hong Kong action movies from my culture.

1:18:34

And one thing is, every time it's a fight scene, some, 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.

1:18:45

And then it would defeat that person and move on.

1:18:47

And because of that, he could defeat all of them.

1:18:51

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.

1:19:01

- Are you usually pen and paper?

1:19:04

Are you working with computer and LaTeX?

1:19:08

- I'm mostly pen and paper, actually.

1:19:09

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.

1:19:20

- Is it all symbols like notation, or is there some drawings?

1:19:23

- Oh, there's a lot of drawing and a lot of bespoke doodles that only make sense to me.

1:19:29

And that's the beauty of a blackboard. You erase.

1:19:31

And it's a very organic thing.

1:19:34

I'm beginning to use more and more computers, partly because AI makes it much easier to do simple coding things.

1:19:41

If I wanted to plot a function before, which is moderately complicated as 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.

1:19:51

And it would take two hours and so forth.

1:19:54

And now I can do it in 10, 15 minutes.

1:19:57

I'm using more and more computers to do simple explorations.

1:20:01

- Let's talk about AI a little bit, if we could.

1:20:04

So maybe a good entry point is just talking about computer-assisted proofs in general.

1:20:10

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?

1:20:25

- 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 using executable code.

1:20:37

Lines of code do things, they flip bits or they make a robot move, or they deliver you text on the Internet or something.

1:20:44

So Lean is a language that can also do that.

1:20:47

It can also be run as a standard traditional language, but it can also produce certificates.

1:20:52

So a software language like Python might do a computation and give you that the answer is seven.

1:20:57

Does the sum of three plus four is equal to seven?

1:20:59

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.

1:21:11

It creates these more complicated objects, not just statements, but statements with proofs attached to them.

1:21:16

And every line of code is just a way of piecing together previous statements to create new ones. So the idea is not new.

1:21:23

These things are called proof assistants, and so they provide languages for which you can create quite complicated, intricate mathematical proofs.

1:21:31

And they produce these certificates that give it 100% guarantee that your arguments are correct, if you trust the compiler, obviously.

1:21:40

But they made the compiler really small and there are several different compilers available for the same level.

1:21:45

- Can you give people some intuition about the difference between writing on pen and paper versus using Lean programming language?

1:21:53

How hard is it to formalize statement?

1:21:56

- So Lean, a lot of mathematicians were involved in the design of Lean, so it's designed so that individual lines of code resemble individual lines in a mathematical argument.

1:22:06

You might want to introduce a variable, you might want to prove our contradiction.

1:22:11

There are various standard things that you can do, and it's written so ideally it should be like a one-to-one correspondence.

1:22:16

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?

1:22:25

What happens if this is zero?

1:22:26

Okay, how do you justify this?"

1:22:30

So Lean has a lot of automation in it to try to be less annoying.

1:22:36

So, for example, every mathematical object has to come of a type.

1:22:39

Like if I talk about X, is X a real number or a natural number or a function or something?

1:22:47

If you write things informally, it's often in terms of context.

1:22:51

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.

1:22:59

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?

1:23:06

What type of object it is?"

1:23:07

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.

1:23:17

- Is it using something like LLMs to do the type inference?

1:23:21

Or like you mentioned, with the LLMs?

1:23:23

- It's using much more traditional, what's called good old-fashioned AI.

1:23:26

You can represent all these things as trees and there's always algorithms to match one tree to another tree.

1:23:30

- So it's actually doable to figure out if something is a real number or a natural number?

1:23:36

- Every object stuff comes with a history of where it came from and you can kind of trace. - Oh, I see.

1:23:41

- Yeah, so it's designed for reliability.

1:23:43

So modern AIs are not used in, it's a disjoint technology.

1:23:48

People are beginning to use AIs on top of Lean.

1:23:50

So when a mathematician tries to program proof in Lean, often there's a step.

1:23:55

Okay, now I want to use the fundamental calculus to do the next step.

1:24:00

So the Lean developers have built this massive project called Mathlib, a collection of tens of thousands of useful facts about mathematical objects.

1:24:09

And somewhere in there is the fundamental theme of calculus, but you need to find it.

1:24:13

So a lot, the bottle neck now is actually Lemma Search.

1:24:16

There's a tool that you know is in there somewhere and you need to find it.

1:24:21

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."

1:24:30

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 theorem of calculus.

1:24:44

And then it might suggest, "Okay, try this," and maybe 25% of the time it works exactly.

1:24:49

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."

1:24:56

And then like half the time it gives me complete rubbish.

1:24:59

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.

1:25:11

- 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. - Yes, yeah.

1:25:24

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.

1:25:30

Yeah, so it's doable, but it's annoying.

1:25:35

- But doesn't it kill the whole vibe of being a mathematician having a pedantic coworker?

1:25:42

- 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.

1:25:49

So there was a theorem I formalized and there was a certain constant 12 that came out in the final statement.

1:25:56

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.

1:26:05

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."

1:26:13

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.

1:26:20

And there can be subtle things that you didn't quite realize, some properties on number 12 that you didn't even realize that you were taking advantage of.

1:26:26

So a proof can break down at a subtle place.

1:26:29

So we had formalized the proof with this constant 12.

1:26:32

And then when this new paper came out, we said, "Oh, so that took like three weeks to formalize and like 20 people to formalize this original proof."

1:26:40

I said, "Oh, but now let's update the 12 to 11."

1:26:45

And what you can do with Lean is that in your headline theorem, you change a 12 to 11.

1:26:50

You run the compiler, and of the thousands of lines of code you have, 90% of them still work.

1:26:55

And there's a couple that are lined in red.

1:26:57

Now, I can't justify these steps, but it immediately isolates which steps you need to change.

1:27:01

But you can skip over everything, which works just fine.

1:27:04

And if you program things correctly with good programming practices, most of your lines will not be red.

1:27:10

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.

1:27:24

So it's like within a day or two, we had updated our proof because this is a very quick process. You make a change.

1:27:31

There are 10 things now that don't work.

1:27:33

For each one, you make a change.

1:27:34

And now there's five more things that don't work.

1:27:35

But the process converges much more smoothly than with pen and paper. - So that's for writing. Are you able to read it?

1:27:42

Like, if somebody else sends a proof, are you able to, what's the, versus paper?

1:27:48

- Yeah, so the proofs are longer, but each individual piece is easier to read.

1:27:53

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.

1:28:15

It's not like, say, a novel, where in theory you could open up a novel halfway through and start reading.

1:28:21

There's a lot of context.

1:28:22

But with a proof in Lean, if you put your cursor on a line of code, every single object there, you can hover over it and it will say what it is, where it came from, where the stuff is justified.

1:28:31

You can trace things back much easier than of flipping through a math paper.

1:28:34

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.

1:28:41

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.

1:28:55

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.

1:29:02

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.

1:29:10

Here's the three lines of code I'm having trouble with."

1:29:13

But because all the context is there, someone else can say, "Oh, okay, I recognize what you need to do.

1:29:17

You need to apply this trick or this tool," and you can do extremely atomic-level conversations.

1:29:22

So because of Lean, I can collaborate 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.

1:29:43

- So there's so many interesting questions.

1:29:45

So one, you're known for being a great collaborator.

1:29:50

So what is the right way to approach solving a difficult problem in mathematics when you're collaborating?

1:29:58

Are you doing a divide and conquer type of thing, or are you focusing on a particular part and you're brainstorming?

1:30:05

- There's always a brainstorming process first. Yeah.

1:30:08

So math research projects, by their nature, when you start, you don't really know how to do the problem.

1:30:14

It's not like an engineering project where somehow the theory has been established for decades and its implementation is the main difficulty body.

1:30:21

You have to figure out even what is the right path.

1:30:23

So this is what I said about cheating first.

1:30:26

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.

1:30:34

Now can you build this bridge?

1:30:36

Okay, now have an infinite budget but only finite workforce.

1:30:39

Now can you do that, and so forth.

1:30:43

Of course, no engineer can actually do this.

1:30:46

They have fixed requirements.

1:30:47

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.

1:30:57

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 sub-problems, 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.

1:31:15

So one of my theorems I'm known for is a theorem of Ben Green, which is now called the Green-Tao theorem.

1:31:20

It's a statement that the primes contain arithmetic progressions of any length.

1:31:23

So it's a modification of this theorem of Szemeredi.

1:31:26

And the way we collaborated was that Ben had already proven a similar result for progressions of length three.

1:31:32

He showed that sets like the primes contain lots and lots of progressions of length three.

1:31:37

And even subsets of the primes, certain subsets do.

1:31:40

But his techniques only worked for length three progressions.

1:31:44

They didn't work for longer progressions.

1:31:46

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.

1:31:53

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.

1:32:07

But what I asked was a really difficult question in number theory, which he said, "There's no way we can prove this."

1:32:14

So he said, "Can you prove your part of the theorem using a weaker hypothesis, that I have a chance to prove?"

1:32:19

And he proposed something which he could prove, but it was too weak for me. I can't use this.

1:32:24

So there was this conversation going back and forth. - Different cheats too.

1:32:29

- Yeah, I want to cheat more, he wants to cheat less.

1:32:32

But eventually we found a property which, A, he could prove, and B, I could use, and then we could prove our view.

1:32:43

There are all kinds of dynamics.

1:32:44

I mean, every collaboration has some story. No two are the same.

1:32:51

- 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. - Yeah.

1:33:17

So it makes everything compatible and trustable.

1:33:21

So currently only a few mathematical projects can be cut up in this way.

1:33:25

At the current state of the art, most of the Lean activity is on formalizing proofs that have already been proven by humans.

1:33:31

A math paper basically is a blueprint in a sense.

1:33:35

It is taking a difficult statement like big theorem and breaking it up into 100 little numbers is, but often not all written with enough detail that each one can be sort of directly formalized.

1:33:46

A blueprint is like a really pedantically written version of a paper where every step is explained to as much detail as possible and trying 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.

1:34:12

So it's like a modern supply chain.

1:34:13

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.

1:34:27

- I think that's a really exciting possibility because if you can find problems that could be broken down this way, then you could have thousands of contributors, right? Completely distributed. - Yes, yes, yes.

1:34:39

So I told you before about the split between theoretical and experimental mathematics.

1:34:42

And right now most mathematics is theoretical and only a tiny bit is experimental.

1:34:46

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.

1:34:58

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.

1:35:07

And I mean, sometimes there are some computer algebra packages that help, but often it's just one mathematician coding lots and lots of Python or whatever.

1:35:14

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.

1:35:27

So you get these bespoke spaghetti code written by not professional programmers, but mathematicians, and they're clunky and slow.

1:35:39

And so because of that, it's hard to really mass produce experimental results.

1:35:47

But I think with Lean, I mean, I'm already starting some projects where we are not just experimenting with data, but experimenting with proofs.

1:35:54

So I have this project called the Equational Theories Project.

1:35:57

Basically, we generated about 22 million little problems in abstract algebra.

1:36:00

Maybe I should back up and tell you what the project is.

1:36:03

Okay, so abstract algebra studies operations like multiplication and addition and their abstract properties.

1:36:08

So multiplication, for example, is commutative.

1:36:10

X times Y is always Y times X, at least for numbers.

1:36:13

And it's also associative.

1:36:15

X times Y times Z is the same as X times Y times Z.

1:36:19

So these operations obey some laws that don't obey others.

1:36:23

For example, X times X is not always equal to X, so that law is not always true.

1:36:27

So given any operation, it obeys some laws and not others.

1:36:32

And so we generated about 4,000 of these possible laws of algebra that certain operations can satisfy.

1:36:37

And our question is, which laws imply which other ones?

1:36:40

So, for example, does commutativity imply associativity?

1:36:44

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 of law.

1:36:49

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.

1:36:58

And you can write down some algebraic proof.

1:37:00

So we look at all the pairs between these 4,000 laws, and there's about 22 million of these pairs.

1:37:05

And for each pair we ask, "Does this law imply this law? If so, give a proof.

1:37:10

If not, give a counterexample."

1:37:13

So 22 million problems, each one of which you could give to like an undergraduate algebra student, and they had a decent chance of solving the problem.

1:37:20

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.

1:37:26

And the project was just to work out to determine the entire graph, like which ones imply which other ones.

1:37:31

- That's an incredible project, by the way.

1:37:33

Such a good idea, such a good test of the very thing we've been talking about at a scale. That's remarkable.

1:37:37

- Yeah, so it would not have been feasible.

1:37:39

I mean, the state of the art in the literature was like 15 equations and sort of how they applied.

1:37:44

That's sort of at the limit of what a human repentant paper can do.

1:37:47

So you need to scale that up.

1:37:49

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.

1:37:58

You needed to be computerized.

1:38:00

And so it only became possible with Lean.

1:38:03

We Were hoping to use a lot of AI as well.

1:38:06

So the project is almost complete.

1:38:07

So of these 22 million, all but two have been settled. - Wow.

1:38:13

- Actually, and of those two, we have a pen and paper proof for two, and we're formalizing it.

1:38:17

In fact, this morning I was working on finishing it.

1:38:21

So we're almost done on this. - [Lex] It's incredible. - Yeah, fantastic.

1:38:25

- How many people were you able to get?

1:38:26

- About 50, which in mathematics is considered a huge number. - It's a huge number. That's crazy. - Yeah.

1:38:33

So we're going to have a paper of 50 authors and a big appendix of who contributor what.

1:38:38

- Here's an interesting question.

1:38:39

Not to maybe speak even more generally about it.

1:38:43

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?

1:38:51

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?

1:39:07

- The beauty of these Lean projects is that automatically you get all this data.

1:39:11

So everything's been uploaded to this GitHub and GitHub tracks who contributed what, so you could generate statistics at any later point in time.

1:39:20

You could say, "Oh, this person contributed this many lines of code or whatever."

1:39:24

These are very crude metrics.

1:39:26

I would definitely not want this to become part of your tenure review or something.

1:39:31

But I think already in enterprise computing, people do use some of these metrics as part of the assessment of performance of an employee.

1:39:42

Again, this is a direction which is a bit scary for academics to go down.

1:39:46

We don't like metrics so much.

1:39:49

- And yet academics use metrics. They just use old ones. Number of papers. - Yeah, yeah, it's true.

1:39:57

It's true that, yeah, I mean.

1:39:59

- It feels like this is a metric, while flawed, is going more in the right direction, right? - [Terence] Yeah. - It's interesting.

1:40:07

At least it's a very interesting metric.

1:40:08

- Yeah, I think it's interesting to study.

1:40:10

I think you can do studies of whether these are better predictors.

1:40:14

There's this problem called Goodhart's Law.

1:40:16

If a statistic is actually used to incentivize performance, it becomes gamed, and then it is no longer a useful measure.

1:40:22

- Oh, humans always game. - Yeah, yeah. No, it's rational.

1:40:26

So what we've done for this project is self-report.

1:40:29

So there are actually standard categories from the sciences of what types of contributions people give.

1:40:34

So there's this concept and validation and resources and coding and so forth.

1:40:41

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 and all the categories just to tick the boxes where they think that they contributed, and just give a rough idea.

1:40:55

So you did some coding and you provided some compute, but you didn't do any of the pen and paper verification or whatever.

1:41:02

And I think that works out.

1:41:04

Traditionally, mathematicians just order alphabetically by certain name.

1:41:07

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.

1:41:13

We make all the authors equal status, but it doesn't quite scale to this size.

1:41:18

So a decade ago I was involved in these things called Polymath Projects.

1:41:22

It was the crowdsourcing mathematics, but without the Lean component.

1:41:25

So it was limited by you needed a human moderator to actually check that all the contributions coming in were actually valid.

1:41:30

And this was a huge bottleneck, actually.

1:41:34

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.

1:41:45

So we created this fictional character called DHJ Polymath.

1:41:49

In the spirit of Bourbaki.

1:41:50

Bourbaki is the pseudonym for a famous group of mathematicians in the 20th century.

1:41:56

And so the paper was authored under pseudonym, so none of us got the author credit.

1:42:00

This actually turned out to be not so great for a couple of reasons.

1:42:04

So one is that if you actually wanted to be considered for tenure or whatever, you could not use this paper as you submitted on your publications because you didn't have the formal author credit.

1:42:18

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.

1:42:28

Oh, so this was Tim Gowers' Polymath Project, this was Terence Tao's Polymath Project, and not mention the other 19 or whatever people that were involved.

1:42:37

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.

1:42:45

- So both projects are incredible.

1:42:47

Just the fact that you're involved in such huge collaborations.

1:42:50

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.

1:43:00

And so it's also exciting that you're embracing, one of the greatest mathematicians in world, embracing this what seems like the paving of the future of mathematics.

1:43:12

So I have to ask you here about the integration of AI into this whole process.

1:43:19

So DeepMind's AlphaProof was trained using reinforcement learning on both failed and successful formal Lean proofs of IMO problems.

1:43:28

So this is sort of high-level high school. - Oh, very high level.

1:43:32

- Yes, very high-level high school level mathematics problems.

1:43:35

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 graduate level problems?

1:43:46

- Yeah, the difficulty increases exponentially with the number of steps involved in the proof.

1:43:52

It's a combinatorial explosion.

1:43:54

So the thing of large language models is that they make mistakes.

1:43:58

And so if a proof has got 20 steps and your has a 10% failure rate at each step of going in the wrong direction, it's extremely unlikely to actually reach the end.

1:44:09

- Actually, just to take a small tangent here, how hard is the problem of mapping from natural language to the formal program?

1:44:19

- Oh yeah, it's extremely hard actually.

1:44:21

Natural language, it's very fault tolerant.

1:44:24

Like you can make a few minor grammatical errors and a speaker in the second language can get some idea of what you're saying.

1:44:30

But formal language, if you get one little thing wrong, the whole thing is nonsense.

1:44:37

Even formal to formal is very hard.

1:44:39

There are different incompatible prefaces in languages.

1:44:43

There's Lean, but also Coq and Isabelle and so forth.

1:44:46

Even converting from a formal language to formal language is an unsolved, basically unsolved problem. - That is fascinating.

1:44:53

Okay, so but once you have an informal language, they're using their RL-trained model.

1:45:02

So something akin to AlphaZero that they used to go to then try to come up with proofs. They also have a model.

1:45:09

I believe it's a separate model for geometric problems.

1:45:12

So what impresses you about this system, and what do you think is the gap?

1:45:18

- Yeah, yeah, we talked earlier about things that are amazing over time become kind of normalized.

1:45:23

So now somehow, of course geometry is a solvable problem.

1:45:26

- Right, that's true, that's true.

1:45:28

I mean it's still beautiful.

1:45:29

- Yeah, yeah, no, these are great work that shows what's possible.

1:45:34

The approach doesn't scale currently.

1:45:36

There are three days of Google server time to solve one high school math problem there.

1:45:41

This is not a scalable prospect, especially with the exponential increase as the complexity increases.

1:45:49

- We should mention that they got a silver medal performance. - The equivalent of.

1:45:53

- [Lex] Equivalent of a silver medal performance.

1:45:55

- 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.

1:46:13

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.

1:46:29

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.

1:46:37

- Oh, I hope that happens.

1:46:38

I hope that this IMO it happens. I hope the next one.

1:46:41

- It won't happen this IMO.

1:46:43

The performance is not good enough in the time period.

1:46:48

But there are smaller competitions.

1:46:50

There are competitions where the answer is a number rather than a long form proof.

1:46:55

And AIs are actually a lot better at problems where there's a specific numerical answer, because it's easy to do reinforcement learning on it.

1:47:07

You got the right answer, you got the wrong answer, it's a very clear signal.

1:47:10

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.

1:47:17

But then you need a human to grade it.

1:47:20

And if you're trying to do billions of reinforcement learning runs, you can't hire enough humans to grade those.

1:47:30

It's already hard enough for the last language models to do reinforcement learning on just the regular text that people get.

1:47:37

But now if you actually hire people, not just give thumbs up, thumbs down, but actually check the output mathematically, yeah, that's too expensive.

1:47:45

- 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?

1:48:00

So inventing new theories, so coming up with new conjectures versus proving the conjectures, building new abstractions, new representations, maybe an AI Terence style with seeing new connections between disparate fields?

1:48:17

- That's a good question.

1:48:18

I think the nature of what mathematicians do over time has changed a lot.

1:48:23

So 1,000 years ago, mathematicians had to compute the date of Easter.

1:48:27

And there's really complicated calculations, but it's all automated, been automated for centuries.

1:48:33

We don't need that anymore.

1:48:35

They used to navigate, to do spherical navigation, spherical trigonometry, to navigate how to get from the old world to the new.

1:48:41

So I think a very complicated calculation, again, being automated.

1:48:45

Even a lot of undergraduate mathematics, even before AI, like Wolfram Alpha, for example, is not a language model, but it can solve a lot of undergraduate level math tasks.

1:48:55

So on the computational side, verifying routine things like having a problem, and I say, "Here's a problem in partial differential equations, could you solve it using any of the 20 standard techniques?"

1:49:05

And the AI will say, "Yes, I've tried all 20 and here are the 100 different permutations, and here's my results."

1:49:12

And that type of thing, I think it will work very well.

1:49:14

Type of scaling to once you solve one problem, to make the AI attack 100 adjacent problems.

1:49:22

The things that humans do still.

1:49:26

So where the AI really struggles right now is knowing when it's made a wrong turn that it can say, "Oh, I'm going to solve this problem.

1:49:34

I'm going to split up this problem into these two cases.

1:49:37

I'm going to try this technique."

1:49:39

And sometimes if you're lucky and it's a simple problem, it's the right technique and you solve the problem.

1:49:44

And sometimes it will have a problem.

1:49:47

It would propose an approach which is just complete nonsense, but it looks like a proof.

1:49:53

So this is one annoying thing about LLM-generated mathematics.

1:49:59

We've had human generated mathematics that's very low-quality.

1:50:03

Like submissions from people who don't have the formal training and so forth.

1:50:06

But if a human proof is bad, you can tell there's bad proof pretty quickly.

1:50:10

It makes really basic mistakes.

1:50:12

But the AI-generated proofs, they can look superficially flawless.

1:50:17

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.

1:50:28

So the errors are often really subtle, and then when you spot them, they're really stupid.

1:50:34

No human would have actually made that mistake.

1:50:36

- Yeah, it's actually really frustrating in the programming context because I program a lot.

1:50:39

And yeah, when a human makes when a low-quality code, there's something called code smell. You can tell.

1:50:47

You can tell immediately, like, okay, there's signs, but with AI generate code. - Odorless.

1:50:53

- And then you're right, eventually you find an obvious dumb thing that just looks like good code. - [Terence] Yeah.

1:51:00

- It's very tricky too, and frustrating for some reason to work. - Yeah. So the sense of smell. There you go.

1:51:08

This is one thing that humans have and there's a metaphorical mathematical smell.

1:51:16

It's not clear how to get the AIs to duplicate that.

1:51:18

Eventually, I mean, so the way AlphaZero and so forth, they make progress on go and chess and so forth, is in some sense they have developed a sense of smell for go and chess positions, that this position is good for white, that's good for black.

1:51:33

They can't enunciate why, but just having that sense of smell lets them strategize.

1:51:40

So if AIs gain that ability to sort of assess the viability of certain proof strategies.

1:51:45

So you can say, I'm going to try to break up this problem into two smaller sub-tasks, and they can say, "Oh, this looks good."

1:51:53

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.

1:51:59

Or, no, you made the problem worse because each of the two sub-problems is actually harder than your original problem, which is actually what normally happens if you try a random thing to try.

1:52:08

Normally it's very easy to transform a problem into an even harder problem.

1:52:12

Very rarely do you transform to a simpler problem.

1:52:17

So if they can pick up a sense of smell, then they could maybe start competing with human level mathematicians.

1:52:24

- So this is a hard question, but not competing, but collaborating. Okay, hypothetical.

1:52:30

If I gave you an oracle that was able to do some aspect of what you do and you could just collaborate with it.

1:52:36

- [Terence] Yeah, yeah, yeah.

1:52:37

- What would that oracle, what would you like that oracle to be able to do?

1:52:41

Would you like it to maybe be a verifier, like, check.

1:52:46

Do the code smell, like you're, yes, Professor Tao, this is the correct, this is a promising, fruitful direction.

1:52:54

- [Terence] Yeah, yeah, yeah.

1:52:55

- Or would you like it to generate possible proofs and then you see which one is the right one?

1:53:04

Or would you like it to maybe generate different representation, totally different ways of seeing this problem?

1:53:10

- Yeah, I think all of the above.

1:53:12

A lot of it is we don't know how to use these tools because it's a paradigm, that it's not, 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.

1:53:31

It's interesting, unreliable in subtle ways whilst providing sufficiently good output.

1:53:38

It's an interesting combination.

1:53:42

You have graduate students that you work with who kind of like this, but not at scale.

1:53:48

And we had previous software tools that can work at scale, but very narrow.

1:53:54

So we have to figure out how to use them.

1:53:56

I mean, so Tim Gowers actually, he actually foresaw in 2000 he was envisioning what mathematics would look like in actually two and a half decades.

1:54:07

(Lex and Terence laughing) - That's funny. - Yeah.

1:54:10

He wrote in his article, like a hypothetical conversation between a mathematical assistant of the future and himself.

1:54:17

He's trying to solve a problem and they would have a conversation.

1:54:21

Sometimes the human would propose an idea and the AI would evaluate it, and sometimes the AI would pose an idea and sometimes a computation was required and AI would just go and say, "Okay, I've checked the 100 cases needed here."

1:54:33

Or, "You said this is true for all N.

1:54:37

I've checked to put N up to 100 and it looks good so far."

1:54:40

Or, "Hang on, there's a problem at N equals 46."

1:54:43

So just a free form conversation where you don't know in advance where things are going to go.

1:54:48

But just based on, I think ideas are good proposed on both sides.

1:54:51

Calculations get proposed on both sides.

1:54:53

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.

1:55:01

Okay, so here's the problem.

1:55:02

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," 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.

1:55:18

And I could eventually force it to give the proof I wanted, but it was like herding cats.

1:55:25

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.

1:55:32

And I know there's a problem on line 17 and basically arguing with was more exhausting than doing it unassisted, but that's the current state the of the art.

1:55:43

- I wonder if there's a phase shift that happens to where it no longer feels like herding cats, and maybe it'll surprise us how quickly that comes. - I believe so.

1:55:56

In formalization, I mentioned before that it takes 10 times longer to formalize a proof than to write it by hand.

1:56:01

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.

1:56:12

It's going from nine to eight to seven. Okay, no big deal.

1:56:15

But one day it will drop below one, and that's the phase shift, because suddenly it makes sense when you write a paper to write it in Lean first or through a conversational AI who is generating Lean on the fly with you, and it becomes natural for journals to accept.

1:56:34

Maybe they'll offer expedite refereeing.

1:56:37

If a paper has already been formalized in Lean, they would 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.

1:56:50

Papers are getting longer and longer in mathematics and actually it's harder and harder to get good refereeing for the really long ones unless they're really important.

1:56:58

It is actually an issue which the formalization is coming in at just the right time for this to be.

1:57:04

- The easier and easier it gets because of the tooling and all the other factors, then you're going to see much more, like Mathlib will grow potentially exponentially.

1:57:13

It's a virtuous cycle, okay.

1:57:16

- I mean one face shift of this type that happened in the past was the adoption of LaTeX.

1:57:20

So LaTeX is this typesetting language that all mathematicians use now.

1:57:23

So in the past people used all kinds of word processors and typewriters and whatever, but at some point LaTeX became easier to use than all other competitors and people would switch within a few years.

1:57:35

It was just a dramatic phase shift.

1:57:37

- It's a wild out-there question, but what year?

1:57:42

How far away are we from a AI system being a collaborator on a proof that wins the Fields Medal, so that level? - Okay.

1:57:56

Well it depends on the level of collaboration.

1:57:58

- No, like it deserves to be to get the Fields Medal, so half and half.

1:58:03

- Already, I could imagine if it was medal-winning paper having some AI assistance in writing it.

1:58:10

The autocomplete alone, I use it.

1:58:13

It speeds up my own writing.

1:58:16

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 here's how the proof of the second case could work.

1:58:25

And it was exactly correct. That was great.

1:58:27

Saved me like 5, 10 minutes of typing.

1:58:30

- But in that case the AI system doesn't get the Fields Medal.

1:58:32

(chuckles) - [Terence] No.

1:58:37

- Are we talking 20 years, 50 years, 100 years? What do you think?

1:58:41

- Okay, so I gave a prediction in print.

1:58:44

So by 2026, which is now next year there will be math collaborations with AI.

1:58:51

So not Fields Medal winning, but actual research level papers.

1:58:54

- Like published ideas that are in part generated by AI.

1:58:58

- Maybe not the ideas, but at least some of the computations, verifications.

1:59:04

- Has that already happened?

1:59:05

- That's already happened, yeah.

1:59:06

There are problems that were solved by a complicated process conversing with AI to propose things.

1:59:14

And the human goes and tries it, and comes back, doesn't work.

1:59:17

But it might propose a different idea.

1:59:21

It's hard to disentangle exactly.

1:59:24

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.

1:59:38

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, 30, 40% so they can fill in gaps.

1:59:51

So coding is a good example.

1:59:56

It's annoying for me to code in Python.

1:59:58

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.

2:00:12

AI is getting quite good at literature review.

2:00:15

I mean there's still a problem with hallucinating references that don't exist, but this I think is a solvable problem.

2:00:23

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?"

2:00:38

And it will do basically a fancy web search AI assistant and say, "Yeah, there are these six papers where something similar has happened."

2:00:45

And I mean you can ask it right now and it will give you six papers of which maybe one is legitimate and relevant, one exists but is not relevant and four are hallucinated.

2:00:55

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 really subconsciously in your memory.

2:01:14

- Versus helping you discover new you were not even aware of but is the correct citation.

2:01:19

- Yeah, that's, yeah, that it can sometimes do, but when it does, it's buried in a list of options for which the other. - They're bad. - [Terence] Yeah.

2:01:27

- I mean being able to automatically generate a related work section that is correct, that's actually a beautiful thing that might be another phase shift, because it assigns credit correctly. - [Terence] Yeah.

2:01:38

- It breaks you out of the silos of thought.

2:01:42

- Yeah, no, there's a big hump to overcome right now.

2:01:45

I mean it's like self-driving cars.

2:01:48

The safety margin has to be really high for it to be feasible.

2:01:53

So yeah, so there's a 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.

2:02:05

And in fact even worse than good in some ways.

2:02:07

- I mean another way of asking the Fields Medal 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 a real breakthrough, something.

2:02:23

It doesn't like Fields Medal, Riemann hypothesis, it could be like really just this AlphaZero moment would go, that kind of thing. - Yeah.

2:02:34

This decade I can see it making a conjecture between two things that people thought was unrelated. - Oh, interesting.

2:02:43

Generating a conjecture that's a beautiful conjecture. - Yeah.

2:02:46

And actually has a real chance of being correct and meaningful.

2:02:50

- Because that's actually kind of doable, I suppose. But where the data is.

2:02:55

Yeah, no, that would be truly amazing.

2:02:59

- The current models struggle a lot.

2:03:00

I mean, so a version of this is, the physicists have a dream of getting the AIs to discover new laws of physics.

2:03:09

The dream is you just feed it all this data, and here is a new pattern that we didn't see before.

2:03:15

But it actually even struggles, the current state of the art even struggles to discover old laws of physics from the data.

2:03:22

Or if it does, there's a big concern of contamination.

2:03:25

That it did it only because somewhere in this training did it somehow knew Boyle's Law or whatever law that you're trying to reconstruct.

2:03:35

Part of it is that we don't have the right type of training data for this.

2:03:39

So for laws of physics, we don't have a million different universes with a million different laws of nature.

2:03:48

A lot of what we're missing in math is actually the negative space of, so we have published things of things that people have been able to prove and conjectures that ended up being verified or maybe counterexamples produced.

2:03:59

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."

2:04:15

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.

2:04:24

We make mistakes and we only like to publish our wins.

2:04:28

And the AI has no access to this data to train on.

2:04:32

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.

2:04:47

- Let me ask you, if I may, about Grigori Perelman.

2:04:53

You mentioned that you try to be careful in your work and not let a problem completely consume you.

2:04:59

Just you've really fallen in love with the problem and really cannot rest until you solve it.

2:05:03

But you also hasted to add that sometimes this approach actually can be very successful.

2:05:08

An example you gave is Grigori Perelman, who proved the Poincare conjecture and did so by working alone for seven years with basically little contact with the outside world.

2:05:20

Can you explain this one Millennium Prize Problem that's been solved, Poincare conjecture, and maybe speak to the journey that Grigori Perelman's been on?

2:05:31

- All right, so it's a question about curved spaces. Earth is a good example.

2:05:35

So Earth you can think of as a 2D surface.

2:05:37

And just moving around the Earth, it could maybe be a torus with a hole in it, or it could have many holes.

2:05:41

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.

2:05:50

So we have figured out how to classify surfaces.

2:05:52

As a first approximation, everything's determined by something called the genus, how many holes it has.

2:05:56

So a sphere has genus zero, a donut has genus one, and so forth.

2:06:00

And one way you can tell these surfaces apart property the sphere has, which is called simply connected.

2:06:04

If you take any closed loop on the sphere, like a big closed sort of rope, you can contract it to a point while staying on the surface.

2:06:12

And the sphere has this property, but a torus doesn't.

2:06:15

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.

2:06:22

There is no way to contract it to a point.

2:06:25

So it turns out that the sphere is the only surface with this property of contractibility up to like continuous deformations of the sphere.

2:06:32

So things that are what are called topologically equivalent of the sphere.

2:06:36

So Poincare asks the same question in higher dimensions.

2:06:39

So this it becomes hard to visualize, because surface you can think of as embedded in three dimensions.

2:06:44

But a curved free space, we don't have good intuition of 4D space to live it.

2:06:49

And there are also 3D space spaces that can't even fit into four dimensions.

2:06:53

You need five or six or higher.

2:06:55

But anyway, mathematically you can still pose this question that if you have a bounded three dimensional space now, which also has this simply connective property that every loop can be contracted, can you turn it into a three dimensional version of a sphere?

2:07:07

And so this is the point where conjecture, weirdly in higher dimensions, 4 and 5 was actually easier, so it was solved first in higher dimensions.

2:07:14

There's somehow more room to do the deformation, it's easier to move things around a sphere.

2:07:20

But three was really hard.

2:07:22

So people tried many approaches.

2:07:24

There's sort of commentary approaches where you chop up the surface into little triangles or tetrahedron, and you just try to argue based on how the faces interact each other.

2:07:33

There were algebraic approaches.

2:07:36

There's various algebraic objects, like things called the fundamental group that you can attach to these homology and cohomology and all these very fancy tools.

2:07:44

They also didn't quite work.

2:07:47

But Richard Hamilton proposed a partial differential equations approach.

2:07:54

So the problem is that you have this object which is sort of secretly the sphere, but it's given to you in a weird way.

2:08:03

So think of a ball that's being kind of crumpled up and twisted, and it's not obvious that it's a ball, but if you have some sort of surface, which is a deformed sphere, you could, for example, think of it as the surface of a balloon.

2:08:18

You could try to inflate it.

2:08:19

You blow it up and naturally, as you fill it with air, the wrinkles will sort of smooth out and it will turn into a nice, round sphere.

2:08:29

Unless of course, it was a torus or something, in which case it would get stuck at some point.

2:08:32

Like if you inflate a torus, there'll be a point in the middle when the inner ring shrinks to zero.

2:08:37

You get a singularity, and you can't blow up a any further, you can't flow any further.

2:08:41

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.

2:08:51

And he wanted to show that either this process would give you a sphere or it would create a singularity.

2:08:58

Very much like how PDEs, either they have global regularity or finite time blowup.

2:09:01

Basically, it's almost exactly the same thing. It's all connected.

2:09:07

And he showed that for two dimensions, two-dimensional surfaces, if you started something like no singularities ever form, you never ran into trouble, and you could flow, and it will give you a sphere.

2:09:18

So he got a new proof of the two dimensional result.

2:09:20

- But by the way, that's a beautiful explanation of Ricci flow and its application in this context.

2:09:24

How difficult is the mathematics here for the 2D case?

2:09:27

- Yeah, these are quite sophisticated equations, on par with the Einstein equations.

2:09:32

Slightly simpler, but yeah, but they were considered hard nonlinear equations to solve.

2:09:39

And there's lots of special tricks in 2D that helped.

2:09:42

But in 3D, the problem was that this equation was actually supercritical.

2:09:47

The same problems as Navier-Stokes, as you blow up, maybe the curvature would get concentrated in finer, smaller regions.

2:09:53

And it looked more and more nonlinear and things just looked worse and worse.

2:09:58

And there could be all kinds of singularities that showed up.

2:10:02

Some singularities, there's these things called neck pinchers, where the surface sort of behaves like a barbell and it pinches at a point.

2:10:12

Some singularities are simple enough that you can sort of see what to do next.

2:10:14

You just make a snip and then you can turn one surface into two and evolve them separately.

2:10:18

But there was the prospect that there's some really nasty knotted singularities showed up that you couldn't see how to resolve in any way that you couldn't do any surgery to.

2:10:31

So you need to classify all the singularities, like what are all the possible ways that things can go wrong?

2:10:36

So what Perelman did was, first of all, he turned the problem from a supercritical problem to a critical problem.

2:10:43

I said before about how the invention of energy, the Hamiltonian really clarified Newtonian mechanics.

2:10:52

So he introduced something which is now called Perelman's reduced volume and Perelman's entropy.

2:10:56

And 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.

2:11:08

And then he had to solve.

2:11:09

He still had to analyze the singularities of this critical problem.

2:11:12

And that itself was a problem similar to this wave maps thing I worked on, actually.

2:11:16

So on the level of difficulty of that.

2:11:18

So he managed to classify all the singularities of this problem and show how to apply surgery to each of these.

2:11:23

And through that was able to resolve the Poincare conjecture.

2:11:26

So quite like a lot of really ambitious steps and nothing that a large language model today, for example, could.

2:11:34

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.

2:11:47

He must have had some sense that this was the right track to pursue, because it takes years to get from A to B.

2:11:54

- 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.

2:12:06

What can you infer from the process he was going through, because he was doing it alone.

2:12:10

What are some low points in a process like that?

2:12:13

When you start to, like you've mentioned hardship, like AI doesn't know when it's failing.

2:12:19

What happens to you, you're sitting in your office, when you realize the thing you do did for the last few days, maybe weeks, is a failure?

2:12:27

- Well, for me, I switch to a different problem.

2:12:29

(Lex laughing) So as I said, I'm a fox, I'm not a hedgehog.

2:12:33

- But you legitimately, that is a break that you can take is to step away and look at a different problem?

2:12:38

- Yeah, you can modify the problem too.

2:12:40

I mean, you can ask some cheat if there's a specific thing that's blocking you that some bad case keeps showing up for which your tool doesn't work.

2:12:50

You can just assume by fiat this bad case doesn't occur.

2:12:53

So you do some magical thinking, but strategically, okay, to see if the rest of the argument goes through.

2:13:01

If there's multiple problems with your approach, then maybe you just give up.

2:13:05

But if this is the only problem, then everything else checks out, then it's still worth fighting.

2:13:12

So yeah, you have to do some forward reconnaissance sometimes.

2:13:16

(Lex laughs) - And that is sometimes productive.

2:13:19

To assume like, okay, we'll figure it out eventually. - Oh, yeah.

2:13:23

Sometimes actually it's even productive to make mistakes.

2:13:25

So one of the, I mean there was a project which actually we won some prizes for, with four other people.

2:13:34

We worked on this PDE problem again, actually this blowup regularity type problem.

2:13:38

And it was considered very hard.

2:13:41

Jean Bourgain, who was another Fields Medalist who worked on a special case of this, but he could not solve the general case.

2:13:48

And we worked on this problem for two months and we thought we solved it.

2:13:51

We had this cute argument that if everything fit and we were excited, we were planning celebration 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.

2:14:13

And we estimated 12 of them.

2:14:14

But in our notes I can't find the estimation of the 13th. Can someone apply that?"

2:14:18

And I said, "Sure, I'll look at this."

2:14:19

And actually yeah, we didn't cover that.

2:14:21

We completely omitted this term.

2:14:23

And this term turned out to be worse than the other 12 terms put together.

2:14:26

In fact, we could not estimate this term.

2:14:28

And we tried for a few more months and all different permutations and there was always this one thing, one term that we could not control.

2:14:35

And so this was very frustrating.

2:14:39

But because we had already invested months and months of effort in this already, we stuck at this.

2:14:45

We tried increasingly desperate things and crazy things.

2:14:48

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 solved the problem.

2:14:59

So we solved the problem after two years.

2:15:01

But if we hadn't had that initial first dawn of nearly solving the problem, we would have given up by month two or something and worked on an easier problem.

2:15:10

If we had known it would take two years, not sure we would have started the project.

2:15:15

Sometimes actually having the incorrect, it's like Columbus traveling in the New World.

2:15:19

It's a incorrect version of measurement of the size of the Earth.

2:15:23

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.

2:15:29

I mean, it could be that he actually secretly knew.

2:15:31

- Just on the psychological element, do you have emotional or self-doubt that just overwhelms you most like that?

2:15:42

Because this stuff, it feels like math is so engrossing that it can break you.

2:15:50

When you invest so much yourself in the problem and then it turns out wrong, you could start to, similar way chess has broken some people.

2:15:59

- Yeah, I think different mathematicians have different levels of emotional investment in what they do.

2:16:05

I mean, I think for some people it's just a job.

2:16:08

You have a problem and if it doesn't work out, you go on the next one.

2:16:13

Yeah, so the fact that you can always move on to another problem, it reduces the emotional connection. I mean there are cases.

2:16:22

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.

2:16:35

They say, "Okay, but this big win, once I finish this problem, that will make up for all the years of lost opportunity."

2:16:47

Occasionally it works, but I really don't recommend it for people without the right fortitude.

2:16:54

Yeah, so I've never been super invested in any one problem.

2:16:59

One thing that helps is that we don't need to call our problems in advance.

2:17:03

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.

2:17:15

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 a much more feasible task.

2:17:26

- But I'm sure for you there's problems like this.

2:17:30

You have made so much progress towards the hardest problems in the history of mathematics.

2:17:38

So is there a problem that just haunts you, it sits there in the dark corners?

2:17:44

Twin prime conjecture, Riemann hypothesis, Goldbach conjecture?

2:17:48

- Twin prime, that sounds, (Lex laughing) again, so, I mean, the problem is like the Riemann hypothesis, those are so far out of reach. - [Lex] You think so? - Yeah.

2:17:56

There's no even viable strategy.

2:17:57

Like, even if I activate all the cheats that I know of in this problem, like, there's just still no way to get from A to B.

2:18:08

I think it needs a breakthrough in another area of mathematics to happen first and for someone to recognize that it would be a useful thing to transport into this problem.

2:18:18

- So we should maybe step back for a little bit and just talk about prime numbers.

2:18:23

So they're often referred to as the atoms of mathematics.

2:18:26

Can you just speak to the structure that these atoms provide?

2:18:31

- So the natural numbers have two basic operations attached to them, addition and multiplication.

2:18:35

So if you want to generate the natural numbers, you can do one of two things.

2:18:38

You can just start with one and add one to itself over and over again, and that generates you the natural numbers.

2:18:42

So additively, they're very easy to generate. 1, 2, 3, 4, 5.

2:18:46

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.

2:18:52

And together, that gives you all the natural numbers, except maybe for one.

2:18:57

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.

2:19:03

And separately, they're not so bad.

2:19:06

So any question that only involves addition is relatively easy to solve.

2:19:11

And any question that only involves multiplication is relatively easy to solve.

2:19:15

But what has been frustrating is that you combine the two together and suddenly you get this extremely rich.

2:19:21

I mean, we know that there are statements in number theory that are actually as undecidable.

2:19:25

There are certain polynomials in some number of variables.

2:19:28

Is there a solution in the natural numbers?

2:19:29

And the answer depends on and undecidable statement like whether the axioms of mathematics are consistent or not.

2:19:40

But even the simplest problems that combine something multiplicative, such as the primes, with something additive, such as shifting by two, separately, we understand both of them well.

2:19:49

But if you ask, when you shift the prime by two, how often can you get another prime?

2:19:56

It's been amazingly hard to relate the two.

2:19:59

- And we should say that the twin-prime conjecture is just that.

2:20:03

It posits that there are infinitely many pairs of prime numbers that differ by two.

2:20:07

Now, the interesting thing is that you have been very successful at pushing forward the field in answering these complicated questions of this variety.

2:20:18

Like you mentioned, the Green-Tao theorem, it proves that prime numbers contain arithmetic progressions of any length. - [Terence] Right.

2:20:25

- [Lex] Which is mind-blowing that you could prove something like that. - Right, yeah.

2:20:28

So what we've realized because of this type of research is that different patterns have different levels of indestructibility.

2:20:38

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.

2:20:46

11 and 13 is a twin prime, pair of twin primes and so forth.

2:20:49

But you could easily, if you wanted to, redact the primes to get rid of these twins.

2:20:58

The twins, they show up and there are infinitely many of them, but they're actually reasonably sparse.

2:21:03

Initially there's quite a few, but once you got to the millions, the trillions, they become rarer and rarer.

2:21:08

And you could actually just.

2:21:10

If someone was given access to the database of primes, you just edit out a few primes here and there.

2:21:15

They could make the twin-prime conjecture false by just removing like 0.

2:21:17

01% of the primes or something.

2:21:20

Just well chosen to do this.

2:21:24

And so you could present a censored database of the primes which passes all of the statistical tests of the primes.

2:21:32

It obeys things like the prime number theorem and other facts about the primes, but doesn't contain any twin primes anymore.

2:21:38

And this is a real obstacle for the twin-prime conjecture.

2:21:41

It means that any proof structure strategy to actually find twin prime in the actual primes must fail when applied to these slightly edited primes.

2:21:51

And so it must be some very subtle, delicate feature of the primes that you can't just get from aggregate statistical analysis. - Okay, so that's out.

2:22:01

(laughs) - Yeah, on the other hand, arithmetic progressions has turned out to be much more robust.

2:22:07

You can take the primes and you can eliminate 99% of the prime primes actually, and you can take any 90 participants you want.

2:22:13

And it turns out, and another thing we proved is that you still get asthmatic progressions.

2:22:18

Asthmatic progressions are much, they're like cockroaches. - Of arbitrary length. - Yes, yes. - That's crazy.

2:22:27

For people who don't know, arithmetic progressions is a sequence of numbers that differ by some fixed amount.

2:22:32

- Yeah, but it's again like, it's an infinite monkey type phenomenon.

2:22:35

For any fixed length of your set, you don't get arbitrary length progressions, you only get quite short progressions.

2:22:40

- But you're saying twin prime is not an infinite monkey phenomena.

2:22:44

I mean, it's a very subtle monkey.

2:22:46

It's still an infinite monkey phenomenon.

2:22:48

- Right, yeah, if the primes were really genuinely random, if the primes were generated by monkeys, then yes, in fact, the infinite monkey theorem would.

2:22:56

- Oh, but you're saying that twin prime is, it doesn't.

2:23:00

You can't use the same tools.

2:23:03

It doesn't appear random almost. - Well, we don't know.

2:23:06

Yeah, we believe the primes behave like a random set.

2:23:10

So the reason why we care about the twin-prime conjecture is it's a test case for whether we can genuinely, confidently, say with 0% chance of error, that the primes behave like a random set.

2:23:22

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.

2:23:32

So the primes, we believe that they're random.

2:23:35

The reason why arithmetic progressions are indestructible is that regardless of whether it looks random or looks structured like periodic, in both cases, arithmetic regressions appear, but for different reasons.

2:23:48

And this is basically all the ways in which the theorem, there are many proofs of these sort of arithmetic progression 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 that something, and then you put the two together.

2:24:02

But in twin-primes, if the primes are random, then you're happy, you win.

2:24:06

But if the primes are structured, they could be structured in a specific way that eliminates the twins.

2:24:13

And we can't rule out that one conspiracy.

2:24:15

- And yet you were able to make, as I understand, progress on the k-tuple version. - Right, yeah.

2:24:22

So the one funny thing about conspiracies is that any one conspiracy theory is really hard to disprove.

2:24:27

That if you believe the world is run by lizards, you say, "Here's some evidence that it's not run by lizards."

2:24:32

Well, but that evidence was planted by the lizards.

2:24:36

You may have encountered this kind of phenomenon.

2:24:41

There's almost no way to definitively rule out a conspiracy.

2:24:45

And the same is true in mathematics, that a conspiracy is solely devoted to eliminating twin primes.

2:24:51

You would have to also infiltrate other areas of mathematics.

2:24:54

But it could be made consistent, at least as far as we know.

2:24:57

But there's a weird phenomenon that you can make one conspiracy rule out other conspiracies.

2:25:04

So if the world is run by lizards, it can't also be run by aliens. - (chuckles) Right.

2:25:09

- So one unreasonable thing is hard to disprove.

2:25:12

But more than one, there are tools.

2:25:15

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 246 actually is the current.

2:25:26

- So there's like a bound.

2:25:27

- Yes, so there's twin primes.

2:25:31

There's things called cousin primes that differ by four.

2:25:34

There's called sexy primes that differ by six. - What are sexy primes?

2:25:38

- Primes that differ by six.

2:25:39

The name is much less, the concept is much less exciting than the name suggests. - Got it.

2:25:45

- So you can make a conspiracy rule out one of them these, but once you have 50 of them, it turns out that you can't rule out all of them at once.

2:25:51

It requires too much energy somehow in this conspiracy space.

2:25:55

- How do you do the bound part?

2:25:57

How do you develop a bound for the difference between the primes that there's an infinite number of?

2:26:03

- So it's ultimately based on what's called the pigeonhole principle.

2:26:07

So the pigeonhole principle is the 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 there.

2:26:16

So there has to be two pigeons that are close together.

2:26:19

So, for instance, if you have 100 numbers and they all range from one to a thousand, 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.

2:26:30

Let's say if you have 101 numbers, 101 numbers, then two of them have to be distance less than 10 part because two of them have to belong to the same pigeonhole.

2:26:38

So it's a basic feature of a basic principle in mathematics.

2:26:45

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.

2:26:52

But it turns out that there's a way to assign weights to numbers.

2:26:57

So there are numbers that are kind of almost prime, but they don't have no factors at all other than themselves in one, but they have very few factors.

2:27:06

And it turns out that we understand almost primes a lot better than understand primes.

2:27:11

And so, for example, it was known for a long time that there were twin almost-primes.

2:27:15

This has been worked out.

2:27:16

So almost primes are something we kind of understand.

2:27:18

So you can actually restrict attention to a suitable set of almost primes.

2:27:24

And whereas the primes are very sparse overall relative to the almost primes, they actually are much less sparse.

2:27:32

You can set up a set of almost primes where the primes have density like say one percent.

2:27:37

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 about.

2:27:44

But in order to prove the twin-prime conjecture, you need to get the density of primes inside the almost primes up to a threshold of 50%.

2:27:51

Once you get up to 50%, you will get twin primes.

2:27:53

But unfortunately there are barriers.

2:27:56

We know that no matter what kind of good set of almost primes you pick, the density primes can never get above 50%.

2:28:02

It's called the parity barrier.

2:28:04

And I would love to find.

2:28:05

Yeah, so one of my long-term dreams is to find a way to breach that barrier, because it would open up not only to twin-prime conjecture, but the Goldbach conjecture and many other problems in number theory are currently blocked because our current techniques would require going beyond this theoretical parity barrier.

2:28:21

It's like going faster than the speed of light. - Yeah.

2:28:24

So we should say a twin-prime conjecture, one of the biggest problems in the history of mathematics.

2:28:28

Goldbach conjecture also.

2:28:30

They feel like next door neighbors.

2:28:33

Has there been days when you felt you saw the path? - Oh yeah.

2:28:40

Sometimes you try something and it works super well.

2:28:43

You again, the sense of mathematical smell we talked about earlier.

2:28:47

You learn from experience when things are going too well because there are certain difficulties that you sort of have to encounter.

2:28:57

I think the way a colleague of mine put it is that if you are on the streets of New York and you put on a blindfold, and you're put in a car, and after some hours the blindfold is off and you're in Beijing. That was too easy.

2:29:12

Somehow there was no ocean being crossed.

2:29:15

Even if you don't know exactly what was done, you're suspecting that something wasn't right.

2:29:21

- But is that still in the back of your head to do you return to these.

2:29:26

Do you return to the prime numbers every once in a while to see?

2:29:29

- Yeah, when I have nothing better to do, which is less and less now.

2:29:33

I get busy with so many things these days.

2:29:34

But yeah, when I have free time, 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 errand for my family.

2:29:46

I can play these things for fun.

2:29:49

And usually you get nowhere.

2:29:50

Yeah, you have to learn to just say, "Okay, fine, once again, nothing happened. I will move on."

2:29:57

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 good to be true. And it usually is.

2:30:11

- What's your gut say about when these problems would be solved, twin-prime and Goldbach?

2:30:17

- Prime I think we will keep getting more partial results.

2:30:22

It does need at least one.

2:30:24

This parity barrier is the biggest remaining obstacle.

2:30:28

There are simpler versions of the conjecture where we are getting really close.

2:30:33

So I think we will, in 10 years we will have many more much closer results.

2:30:38

We may not have the whole thing, so twin-primes is somewhat close.

2:30:43

Riemann hypothesis, I have no clue.

2:30:45

I mean, it has happened by accident, I think.

2:30:47

- So the Riemann hypothesis is a kind of more general conjecture about the distribution of prime numbers. - Right, yeah.

2:30:53

It states that are sort of viewed multiplicatively for questions only involving multiplication, no addition, the primes really do behave as randomly as you could hope.

2:31:02

So there's a phenomenon in probability called square root cancellation that if you want to poll, say America upon some issue and you ask one of the two voters, you may have sampled a bad sample and then you get a really imprecise measurement of the full average.

2:31:19

But if you sample more and more people, the accuracy gets better and better, and it actually improves like the square root of the number of people you sampled.

2:31:28

So yeah, if you sample 1,000 people, you can get like a 2 or 3% margin of error.

2:31:33

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.

2:31:39

It's called the Riemann zeta function, and it fluctuates up and down.

2:31:42

But in some sense, as you keep averaging more and more, if you sample more and more, the fluctuation should go down as if they were random.

2:31:49

And there's a very precise way to quantify that.

2:31:50

And the Riemann hypothesis is a very elegant way that captures this.

2:31:55

But as with many other ways in mathematics, we have very few tools to show that something really genuinely behaves really random.

2:32:03

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.

2:32:11

And we know because of things related to the parity problem, actually that most of the usual techniques cannot hope to settle this question.

2:32:20

The proof has to come out of left field.

2:32:24

Yeah, but what that is, no one has any serious proposal.

2:32:30

And there's various ways to sort of, as I said, you can modify the primes a little bit and you can destroy the Riemann hypothesis.

2:32:37

So it has to be very delicate.

2:32:39

You can't apply something that has huge margins of error.

2:32:41

It has to be would just barely work.

2:32:44

And there's all these pitfalls that you have to dodge very adeptly to it.

2:32:50

- The prime numbers are just fascinating. - [Terence] Yeah.

2:32:53

- What to you is most mysterious about the prime numbers?

2:32:59

- That's a good question.

2:33:01

So conjecturally we have a good model of them.

2:33:03

As I said, they have certain patterns like the primes are usually odd for instance.

2:33:08

But apart from these obvious patterns, they behave very randomly.

2:33:11

And just assuming that they behave.

2:33:12

So there's something called the Cramer random model of the primes, that after a certain point primes just behave like a random set.

2:33:19

And there's various slight modifications to this model, but this has been a very good model. It matches the numerics.

2:33:25

It tells us what to predict.

2:33:26

Like I can tell you with complete certainty the twin-prime conjecture is true.

2:33:29

The random model gives overwhelming odds that it's true. I just can't prove it.

2:33:33

Most of our mathematics is optimized for solving things with patterns in them.

2:33:39

And the primes have this anti-pattern, as do almost everything really. But we can't prove that.

2:33:47

I guess it's not mysterious that the primes, it's kind of random, because there's no reason for them to have any kind of secret pattern.

2:33:57

But what is mysterious is what is the mechanism that really forces the randomness to happen. And this is just absent.

2:34:04

- Another incredibly surprisingly difficult problem is the Collatz conjecture. - Oh, yes.

2:34:10

- Simple to state, beautiful to visualize in its simplicity, and yet extremely difficult to solve.

2:34:18

And yet you have been able to make progress.

2:34:21

Paul Erdos said about the Collatz conjecture that mathematics may not be ready for such problems.

2:34:28

Others have stated that it is an extraordinarily difficult problem, completely out of reach.

2:34:33

This is in 2010, out of reach of present-day mathematics.

2:34:36

And yet you have made some progress.

2:34:38

Why is it so difficult to make?

2:34:39

Can you actually even explain what it is if it's easy to?

2:34:42

- Yeah, so it's a problem that you can explain.

2:34:46

It helps with some visual aids, but yeah.

2:34:49

So you take any natural number, like say 13, and you apply the following procedure to it.

2:34:54

So if it's even you divide it by two, and if it's odd, you multiply it by three and add one.

2:34:59

So even numbers get smaller, odd numbers get bigger.

2:35:02

So 13 would become 40, because 13 times three is 39. Add one, you get 40.

2:35:06

So it's a simple process for odd numbers and even numbers, they're both very easy operations.

2:35:11

And then you put them together, it's still reasonably simple.

2:35:14

But then you ask what happens when you iterate it?

2:35:17

You take the output that you just got and feed it back in. So 13 becomes 40.

2:35:21

40 is now even, divided by 2, 20.

2:35:23

20 still even, divided by 2, 10, 5.

2:35:26

And then 5 times 3 plus 1 is 16, and then 8, 4, 2, 1.

2:35:30

And then from 1 it goes 1, 4, 2, 1, 4, 2. It cycles forever.

2:35:34

So this sequence I just described, 13, 40, 20, 10.

2:35:38

So 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 the first approximation, is that a little nugget of ice gets, an ice crystal forms in a cloud, and it goes up and down because of the wind.

2:35:58

And sometimes when it's cold, it acquires a bit more mass, and maybe it melts a little bit.

2:36:03

And this process of going up and down creates this partially melted ice, which eventually creates this hailstone, and eventually it falls out the earth.

2:36:10

So the conjecture is that no matter how high you start up, you take a number which is in the millions or billions, this process that goes up if you're odd, and down if you're even, it eventually goes down to earth all the time.

2:36:23

- No matter where you start, with this very simple algorithm, you end up at one. - [Terence] Right.

2:36:27

- And you might climb for a while. - [Terence] Right, yeah. - [Lex] Up and down.

2:36:30

- Yeah, if you plot it, these sequences, they look like Brownian motion, they look like the stock market.

2:36:35

They just go up and down in a seemingly random pattern.

2:36:39

And in fact, usually that's what happens, that if you plug in a random number, you can actually prove, at least initially, that it would look like random walk.

2:36:47

And that's actually a random walk with a downward drift.

2:36:50

It's like if you're always gambling on a roulette at the casino with odds slightly weighted against you.

2:36:56

So sometimes you win, sometimes you lose, but over in the long run, you lose a bit more than you win.

2:37:01

And so normally your wallet will go to zero if you just keep playing over and over again.

2:37:07

- So statistically it makes sense. - Yes.

2:37:10

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 than what you started.

2:37:23

So it's like if I told you that if you go to a casino, most of the time you end up, if you keep playing for long enough, you end up with a smaller amount in your wallet than when you started.

2:37:32

That's kind of like the result that I proved.

2:37:35

- So why is that result like can you continue down that thread to prove the full conjecture?

2:37:42

- Well, the problem is that I used arguments from probability theory, and there's always this exceptional event.

2:37:49

So in probability we have this law of large numbers which tells you things like if you play a casino with 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.

2:38:06

But there's always this exceptional outlier.

2:38:09

It is mathematically possible that even when the game is, the odds are not in your favor, you could just keep winning slightly more often than you lose.

2:38:17

Very much like how in Navier-Stokes there could be most of the time your waves can disperse.

2:38:22

There could be just one outlier choice of initial conditions that would lead you to blow up.

2:38:28

And there could be one outlier choice of special number that you stick in that shoots off to infinity or other numbers crash to earth, crash to one.

2:38:39

In fact, there's some mathematicians, Alex Kontorovich for instance, who've proposed that actually these Collatz iterations are like these cellular automata.

2:38:53

Actually if you look at what they happen in binary, they do actually look a little bit like these Game of Life type patterns.

2:38:59

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, whose job it is to encode is to create a version of itself which is larger.

2:39:17

- Heavier than air machine encoded in a number that flies forever.

2:39:22

- Yeah, so Conway in fact worked on this problem as well. - [Lex] Oh, wow.

2:39:26

- Conway, similar, in fact, that was more inspirations for the Navier-Stokes project that 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.

2:39:40

But instead of having two cases, maybe you have 17 cases and you go up and down.

2:39:44

And he showed that once your iteration gets complicated enough, you can actually encode Turing machines, and you can actually make these problems undecidable and do things like this.

2:39:53

In fact, he invented a programming language for these kind of fractional linear transformations.

2:39:58

He called it Fractran as a play on Fortran, and he showed that you can program, it was Turing complete.

2:40:09

You could make a program that if the number you inserted in was encoded as a prime it would sync to zero, it would go down, otherwise it would go up, and things like that.

2:40:17

So the general class of problems is really as complicated as all the mathematics.

2:40:23

- Some of the mystery of the cellular automata that we talked about having a mathematical framework to say anything about cellular automata, maybe the same kind of framework is required for the Collatz conjecture.

2:40:35

- Yeah, if you want to do it, not statistically, but you really want 100% of all inputs for the earth.

2:40:42

So what might be feasible is statistically 99%, go to 1.

2:40:46

But like everything, that looks hard.

2:40:50

- What would you say is out of these within reach famous problems is the hardest problem we have today?

2:40:57

Is it the Riemann Hypothesis? - Riemann is up there.

2:41:02

P = NP is a good one because that's a meta problem.

2:41:05

If you solve that in the positive sense that you can find a P = NP algorithm, then potentially this solves a lot of other problems as well.

2:41:13

- And we should mention some of the conjectures we've been talking about.

2:41:17

A lot of stuff is built on top of them now. There's ripple effects.

2:41:20

P = NP has more ripple effects than basically any other.

2:41:24

- 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.

2:41:37

Because a lot of cryptography uses number theory, uses number theory constructions involving primes and so forth.

2:41:43

And it relies very much on the intuition that number theory has built over many, many years of what operations involving primes behave randomly and what ones don't.

2:41:52

And in particular our encryption methods are designed to turn text written information on it into text which is indistinguishable from random noise.

2:42:04

And hence we believe to be almost impossible to crack, at least mathematically.

2:42:10

But if something as core to our beliefs as the Riemann hypothesis is wrong, it means that there are actual patterns of the primes that we're not aware of.

2:42:21

And if there's one, there's probably going to be more.

2:42:24

And suddenly a lot of our crypto systems are in doubt.

2:42:27

- Yeah, but then how do you then say stuff about the primes? - [Terence] Yeah.

2:42:34

- Like you're going towards the Collatz conjecture again, because you want it to be random, right?

2:42:41

You want it to be random.

2:42:43

- Yeah, so more broadly, I'm just looking for more tools, more ways to show that things are random.

2:42:47

How do you prove a conspiracy doesn't happen?

2:42:50

- Is there any chance to you that P = NP?

2:42:55

Can you imagine a possible universe? - It is possible.

2:42:58

I mean, there's various scenarios.

2:43:00

I mean, there's one where it is technically possible, but in fact it's never actually implementable.

2:43:06

The evidence is sort of slightly pushing in favor of no, that probably P is not equal to NP.

2:43:11

- I mean, it seems like it's one of those cases similar to Riemann hypothesis.

2:43:15

I think the evidence is leaning pretty heavily on the no.

2:43:19

- Certainly more on the no than on the yes.

2:43:21

The funny thing about P = NP is that we have also a lot more obstructions than we do for almost any other problem.

2:43:27

So while there's evidence, we also have a lot of results ruling out many, many types of approaches to the problem.

2:43:34

This is the one thing that the computer science has actually been very good at.

2:43:37

It's actually saying that certain approaches cannot work, no-go theorems. It could be undecidable. We don't know.

2:43:43

- There's a funny story I read that when you won the Fields Medal, somebody from the Internet wrote you and asked, what are you going to do now that you've won this prestigious award?

2:43:55

And then you just quickly, very humbly said that this shiny metal is not going to solve any of the problems I'm currently working on.

2:44:03

I'm going to keep working on them.

2:44:05

It's just, first of all, it's funny to me that you would answer an email in that context.

2:44:08

And second of all, it just shows your humility.

2:44:12

But anyway, maybe you could speak to the Fields Medal.

2:44:15

But it's another way for me to ask about Grigori Perelman.

2:44:21

What do you think about him famously declining the Fields Medal and the Millennium Prize, which came with a one million dollar of prize money?

2:44:30

He stated that I'm not interested in money or fame.

2:44:33

The prize is completely irrelevant for me.

2:44:36

If the proof is correct, then no other recognition is needed. - Yeah, no.

2:44:41

He's somewhat of an outlier, even among mathematicians who tend to have somewhat idealistic views. I've never met him.

2:44:49

I think I'd be interested to meet him one day, but I never had the chance.

2:44:51

I know people who've met him, but he's always had strong views about certain things.

2:44:56

I mean, it's not like he was completely isolated from the math community.

2:44:58

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.

2:45:05

He was disillusioned or something, I don't know.

2:45:10

And he decided to peace out and collect mushrooms in St. Petersburg or something.

2:45:16

And that's fine, you can do that.

2:45:20

I mean that's another sort of flip side to, I mean, a lot of our problems that we solve, some of them do have practical application and that's great.

2:45:28

But if you stop thinking about a problem, so he hasn't published since in this field, but that's fine.

2:45:35

There's many, many other people who've done so as well.

2:45:39

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.

2:45:46

So most mathematicians, just career mathematicians, you just focus on publishing the next paper, maybe getting one promotion, one rank, and starting a few projects, maybe taking some students or something.

2:46:00

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.

2:46:11

- Is it constraining to you?

2:46:12

Are you able to still have fun and be a rebel and try crazy stuff and play with ideas?

2:46:19

- I have a lot less free time than I had previously. I mean mostly by choice.

2:46:24

I mean obviously I have the option to sort of decline.

2:46:28

So I decline a lot of things.

2:46:30

I could decline even more, or I could acquire a reputation being so unreliable that people don't even ask anymore.

2:46:37

- I love the different algorithms here. This is great. - It's always an option.

2:46:43

But you know, there are things that are like, I mean I don't spend as much time as I do as a postdoc just working on one problem at a time or fooling around.

2:46:54

I still do that a little bit.

2:46:56

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.

2:47:05

So as a post office publish or perish, your incentive to advised to basically focus on proving very technical theorems, to sort of prove yourself as well as prove the theorems.

2:47:17

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.

2:47:40

- 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.

2:47:51

It's like, it's just how the human mind works.

2:47:54

This is where I would probably say that I like the Fields Medal, that it does inspire a lot of young people somehow.

2:48:03

This is just how human brains work. - [Terence] Yeah.

2:48:06

- At the same time, I also want to give sort of respect to somebody like Grigori Perelman, who is critical of awards in his mind.

2:48:14

Those are his principles.

2:48:16

And any human that's able for their principles to do the thing that most humans would not be able to do. It's beautiful to see.

2:48:25

- Some recognition is necessary and important.

2:48:27

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.

2:48:37

I mean, yeah, so 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.

2:48:51

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.

2:49:02

The way our human mind is wired, we can comprehend and the relationships between 10 or 20 people.

2:49:09

But once you get beyond 100 people, there's a limit.

2:49:12

I think there's a name for it, beyond which it just becomes the other.

2:49:18

And so you have to simplify the whole mass of 99.

2:49:20

9% of humanity becomes the other.

2:49:25

And often these models are incorrect and this causes all kinds of problems.

2:49:30

So to humanize a subject, like 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, but it can also be, too much of it can be harmful.

2:49:47

Because I'll be the first to say that my own career path is not that of a typical mathematician.

2:49:53

I had a very accelerated education.

2:49:55

I skipped a lot of classes.

2:49:57

I think I had very fortunate mentoring opportunities, and I think I was at the right place at the right time.

2:50:03

Just because someone doesn't have my trajectory doesn't mean that they can't be good mathematicians.

2:50:09

I mean, they may be good mathematicians in a very different style.

2:50:12

And we need people with a different style.

2:50:18

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.

2:50:31

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."

2:50:38

It makes for a much simpler history.

2:50:40

- 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.

2:51:00

They're individual humans on a team.

2:51:02

And there's a lot of brilliance there, but it's just a nice shorthand, like pi. - [Terence] Yeah. - Steve Jobs, pi. - Yeah, yeah.

2:51:09

As a starting point, as a first approximation.

2:51:13

- And then read some biographies and then look into much deeper first approximation. - [Terence] Yeah. - That's right.

2:51:18

So you mentioned you were at Princeton to Andrew Wiles at that time. - [Terence] Oh, yeah.

2:51:23

- He was a professor there.

2:51:23

- It's a funny moment how history is just all interconnected.

2:51:26

And at that time he announced that he proved the Fermat's Last Theorem.

2:51:30

What did you think, maybe looking back now with more context about that moment in math history?

2:51:37

- Yeah, so I was a graduate student at the time.

2:51:39

I vaguely remember there was press attention, and we all had the same.

2:51:44

We had pigeonholes in the same mail room.

2:51:47

So we all pitched our mail, and suddenly Andrew Wiles' mailbox exploded to be overflowing.

2:51:52

- (laughs) That's a good metric. - Yeah.

2:51:56

So we all talked about it at tea and so forth.

2:51:58

I mean, we didn't understand, most of us sort of didn't understand the proof.

2:52:02

We understand sort of high-level details.

2:52:05

In fact, there's an ongoing project to formalize it in Lean.

2:52:07

Kevin Buzzard is actually. - Yeah.

2:52:09

Can we take that small tangent?

2:52:12

How difficult does that, because as I understand, the proof for Fermat's Last Theorem has like super complicated objects. - [Terence] Yeah.

2:52:21

- Really difficult to formalize, no?

2:52:22

- Yeah, I guess, yeah, you're right.

2:52:23

The objects that they use, you can define them.

2:52:27

So they've been defined in Lean.

2:52:29

So just defining what they are can be done.

2:52:32

That's really not trivial, but it's been done.

2:52:34

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.

2:52:42

And so lots of these have to be formalized as well.

2:52:46

Kevin Buzzard's goal, actually, he has a five-year grant to formalize Fermat's Last Theorem.

2:52:52

And his aim is that he doesn't think he will be able to get all the way down to the basic axioms.

2:52:57

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.

2:53:07

And then some other person, some other work would have to be done, to get from there.

2:53:13

So it's a different area of mathematics than the type of mathematics I'm used to.

2:53:19

In analysis, which is kind of my area, the objects we study are kind of much closer to the ground.

2:53:24

I study things like prime numbers and functions and things that are within scope of a high school math education to at least define.

2:53:36

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.

2:53:42

And it's a very sturdy structure at the base at least, it's extremely well developed in the textbooks and so forth.

2:53:51

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.

2:54:06

- What inspires you about his journey, that was similar as we talked about seven years, mostly working in secret? - Yeah.

2:54:16

That is a romantic, so it kind of fits with sort of the romantic image I think people have of mathematicians to the extent that they think of them at all, as these kind of eccentric wizards or something.

2:54:29

So that certainly kind of accentuated that perspective.

2:54:35

I mean, it is a great achievement.

2:54:38

His style of solving problems is so different from my own, which is great.

2:54:43

I mean, we need people like that.

2:54:44

- Can you speak to it, in terms of you like the collaborative?

2:54:49

- I like moving on from a problem if it's giving too much difficulty.

2:54:54

But you need the people who have the tenacity and the fearlessness.

2:54:59

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 work, but they're convinced and they have third, fourth, and the fifth approach works.

2:55:11

And I have to eat my words.

2:55:12

Okay, I didn't think this was going to work, but yes, you were right.

2:55:16

- 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 of very high quality.

2:55:26

So there's something to be said about being able to jump from topic to topic. - Yeah, it works for me. Yeah.

2:55:33

I mean, there are also people who are very productive and they focus very deeply on, yeah.

2:55:37

I think everyone has to find their own workflow.

2:55:39

One thing which is a shame in mathematics is that we have, mathematics, there's sort of a one size fits all approach to teaching mathematics.

2:55:49

So we have a certain curriculum and so forth.

2:55:50

I mean, maybe if you do math competitions or something, you get a slightly different experience.

2:55:55

But I think many people, they don't find their native math language until very late or usually too late.

2:56:04

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 don't like it.

2:56:12

My theory is that humans don't come, evolution has not given us a math center of a brain directly.

2:56:19

We have a vision center and a language center and some other centers which evolution has honed, but we don't have innate sense of mathematics.

2:56:28

But our other centers are sophisticated enough that different people, we can repurpose our other areas of our brain to do mathematics.

2:56:38

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.

2:56:44

Some people have repurposed their language center and they think very symbolically.

2:56:50

Some people, if they are very competitive and they like gaming, there's a part of your brain that's very good at solving puzzles and games, and that can be repurposed.

2:57:02

But when I talk to other mathematicians, they don't quite think, I can tell that they're using somehow different styles of thinking than I am.

2:57:11

I mean, not disjoint, but they may prefer visual.

2:57:16

I don't actually prefer visual so much.

2:57:17

I need lots of visual aids myself.

2:57:21

Mathematics provides a common language, so we can still talk to each other even if we are thinking in different ways.

2:57:26

- But you can tell there's a difference set of subsystems being used in the thinking process.

2:57:32

- Yes, 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. - That's beautiful.

2:57:41

- 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.

2:57:48

You have to teach the 30 kids.

2:57:51

If they have 30 different styles, you can't teach 30 different ways.

2:57:55

- 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?

2:58:05

Is there something in this complicated educational context, what would you?

2:58:10

- Yeah, it's a tricky problem.

2:58:11

One nice thing is that there are now lots of sources for mathematical enrichment outside the classroom.

2:58:17

So in my day already there are math competitions and there are also popular math books in the library.

2:58:23

But now you have YouTube.

2:58:25

There are forums just devoted to solving math puzzles.

2:58:30

And math shows up in other places.

2:58:33

For example, there are hobbyists who play poker for fun, and they, for very specific reasons, are interested in very specific probability questions.

2:58:45

And there's a community of amateur probabilists in poker, in chess, in baseball.

2:58:53

I mean, there's math all over the place.

2:58:59

And I'm hoping actually with these new tools for Lean and so forth, that actually we can incorporate the broader public into math research projects.

2:59:09

This almost doesn't happen at all currently.

2:59:13

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 that people who could identify butterflies and so forth.

2:59:24

There are a small number of activities where amateur mathematicians can discover new primes and so forth.

2:59:31

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.

2:59:41

In fact, it would just be time-consuming, because just error checking and everything.

2:59:46

But one thing about these formalization projects is that they are bringing in more people.

2:59:53

So I'm sure there are high school students who've already contributed to some of these formalizing projects, who contributed to Mathlib.

2:59:59

You don't need to be a PhD holder to just work on one atomic thing.

3:00:03

- 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.

3:00:14

It seems like programming is somehow, maybe just the feeling, but it feels more accessible to folks than math.

3:00:21

Math is seen as this, like extreme, especially modern mathematics seen as this extremely difficult to enter area. And programming is not.

3:00:29

So that could be just an entry point.

3:00:31

- You can execute code and you can get results, you can print out "Hello world" pretty quickly.

3:00:38

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.

3:00:55

They would be considered as hard as math.

3:00:59

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, and then math becomes fun for them.

3:01:13

- What advice would you give in general to young people how to pick a career, how to find themselves?

3:01:18

- That's a tough, tough question.

3:01:20

Yeah, so there's a lot of certainty now in the world.

3:01:24

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.

3:01:35

You go to college, you get an education, you pick one profession, and you stick to it.

3:01:41

It's becoming much more a thing of the past.

3:01:43

So I think you just have to be adaptable and flexible.

3:01:46

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, sports, so forth.

3:02:13

- But actually you're an interesting case study.

3:02:15

I mean you're like a, one of the great living mathematicians, right?

3:02:22

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.

3:02:31

That's a non-trivial thing to learn. - [Terence] Yeah.

3:02:36

- For a lot of people, that's an extremely uncomfortable leap to take, right? A lot of mathematicians.

3:02:42

- First of all, I've always been interested in new ways to do mathematics.

3:02:46

I feel like a lot of the ways we do things right now are inefficient.

3:02:52

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 how to do them, and why can't we search and get a quick response and so forth.

3:03:03

So that's why I've always been interested in exploring new workflows.

3:03:08

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.

3:03:15

And at the time Peter Scholze had just formalized one of his new theorems, and there were some other developments in computer-assisted proof that looked quite interesting.

3:03:25

And I said, "Oh, we should run a workshop on this.

3:03:29

This would be a good idea."

3:03:31

And then I was a bit too enthusiastic about this idea.

3:03:33

So I got voluntold to actually run it.

3:03:37

So I did with a bunch of other people, Kevin Buzzard and Jordan Ellenberg and a bunch of other people, and it was a nice success.

3:03:46

We brought together a bunch of mathematicians and computer scientists and other people, and we got up to speed on the state of the art, and it was really interesting developments that most mathematicians didn't know was going on that lots of nice proofs of concept just saw hints of what was going to happen.

3:04:03

This was just before ChatGPT, but there was, even then there was one talk about language models and the potential capability of those in the future.

3:04:11

So that got me excited about the subject.

3:04:13

So I started giving talks about, this is something more of us should start looking at, now that I run this conference.

3:04:21

And then ChatGPT came out, and suddenly AI was everywhere.

3:04:24

And so I got interviewed a lot about this topic, and in particular the interaction between AI and formal proof assistants.

3:04:33

And I said, "Yeah, they should be combined.

3:04:35

This is perfect synergy to happen here."

3:04:39

And at some point I realized that I have to actually not just talk the talk, but walk the walk.

3:04:43

I don't work in machine learning, and I don't work in proof formalization, and there's a limit to how much I can just rely on authority and saying, "I'm a well-known mathematician.

3:04:52

Just trust me when I say that this is going to change mathematics," and I'm not doing it any, when I don't do any of it myself.

3:04:57

So I felt like I had to actually justify it.

3:05:03

A lot of what I get into actually I don't quite see in advance just how much time I'm going to spend on it.

3:05:09

And it's only after I'm sort of waist deep in a project that I realized by that point I'm committed.

3:05:15

- Well, that's deeply admirable that you're willing to go into the fray, be in some small way a beginner.

3:05:22

Or have some of the sort of challenges that a beginner would.

3:05:27

So new concepts, new ways of thinking, also you know, sucking at a thing that others.

3:05:34

I think in that talk, you could be a Fields Medal winning mathematician and an undergrad knows something better than you. - Yeah.

3:05:43

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] I love math. - Yeah.

3:06:04

(Lex laughs) So it does keep us honest.

3:06:08

It's not a perfect panacea, but I think we do have more of a culture of admitting error because we're forced to all the time.

3:06:17

- Big ridiculous question.

3:06:18

I'm sorry for it once again.

3:06:21

Who is the greatest mathematician of all time?

3:06:24

(Terence laughing) Maybe one who's no longer with us. Who are the candidates?

3:06:28

Euler, Gauss, Newton, Ramanujan, Hilbert.

3:06:32

- So first of all, as mentioned before, there's some time dependence. - On the day. - Yeah.

3:06:39

If you cumulatively over time, for example, Euclid, sort of is one of the leading contenders.

3:06:45

And then maybe some unnamed anonymous mathematicians before that, whoever came up with the concept of numbers.

3:06:53

- Do mathematicians today still feel the impact of Hilbert? - Oh yeah.

3:06:58

- Directly of everything that's happened in the 20th century?

3:07:00

- [Terence] Yeah, Hilbert spaces.

3:07:01

We have lots of things that are named after him, of course.

3:07:04

Just the arrangement of mathematics and just the introduction of certain concepts.

3:07:08

I mean, 23 problems have been extremely influential.

3:07:12

- There's some strange power to the declaring which problems are hard to solve.

3:07:17

The statement of the open problems.

3:07:19

- Yeah, I mean this is bystander effect everywhere.

3:07:23

If no one says, "You should do X," everyone just will move around waiting for somebody else to do something and nothing gets done.

3:07:34

One thing that actually you have to teach undergraduates in mathematics is that you should always try something.

3:07:40

So you see a lot of paralysis in an undergraduate trying a math problem.

3:07:46

If they recognize that there's a certain technique that can be applied, they will try it.

3:07:50

But there are problems for which they see none of their standard techniques obviously applies.

3:07:54

And the common reaction is then just paralysis. I don't know what to do.

3:08:01

I think there's a quote from the Simpsons.

3:08:02

"I've tried nothing, and I'm all out of ideas."

3:08:04

(Lex laughing) So the next step then is to try anything, no matter how stupid.

3:08:11

And in fact, almost the stupider the better.

3:08:14

A technique which is almost guaranteed to fail.

3:08:17

But the way it fails is going to be instructive.

3:08:20

It fails because you're not at all taking into account this hypothesis.

3:08:23

Oh, this hypothesis must be useful. That's a clue.

3:08:26

- I think you also suggested somewhere this fascinating approach which really stuck with me as they're using it and it really works.

3:08:33

I think you said it's called structured procrastination. - [Terence] No, yes.

3:08:37

- It's when you really don't want to do a thing, then you imagine a thing you don't want to do more. - Yes.

3:08:43

- That's worse than that.

3:08:44

And then in that way you procrastinate by not doing the thing that's worse. - [Terence] Yeah, yeah. - It's a nice hack. It actually works.

3:08:50

(chuckles) - Yeah, yeah, it is.

3:08:53

I mean, with anything, I mean, like psychology is really important.

3:08:58

Like 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 their diet and so forth?

3:09:07

So much of it is actually psychology, just tricking yourself to think that the form is feasible so that you're motivated to do it.

3:09:15

- Is there something our human mind will never be able to comprehend?

3:09:20

- Well, as a mathematician, I mean, by induction, there must be some sufficient large number that you can't understand.

3:09:29

(Lex laughing) That was the first thing that came to mind.

3:09:31

- So that, but even broadly, is there, is there something about our mind that we're going to be limited even with the help of mathematics?

3:09:41

- Well, okay, I mean, how much augmentation are you willing, for example, if I didn't even have pen and paper, if I had no technology whatsoever, so I'm not allowed blackboard, pen and paper.

3:09:52

- You're already much more limited than you would be. - Incredibly limited.

3:09:56

Even language, the English language is a technology.

3:10:01

It's one that's been very internalized.

3:10:03

- So you're right, the formulation of the problem is incorrect because there really is no longer just a solo human.

3:10:11

We're already augmented in extremely complicated, intricate ways, right. - Yeah.

3:10:17

- So we're already like a collective intelligence. - Yes, yeah, yes.

3:10:22

So humanity, plural, has much more intelligence in principle on his good days, than the individual humans put together. It can all have less.

3:10:30

Okay, but yeah, so yeah, the mathematical community, plural, is an incredibly super intelligent entity that no single human mathematician can come close to replicating.

3:10:45

You see it a little bit on these question analysis sites.

3:10:48

So there's Math Overflow, which is the math version of Stack Overflow.

3:10:51

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.

3:11:01

- I'm a fan spectator of that site.

3:11:05

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.

3:11:16

It's pretty cool to watch.

3:11:17

It's almost like just fun to watch.

3:11:20

What gives you hope about this whole thing we have going on, human civilization?

3:11:25

- I think the younger generation is always really creative and enthusiastic and inventive.

3:11:32

It's a pleasure working with young students.

3:11:40

The progress of science tells us that the problems that used to be really difficult can become trivial to solve.

3:11:49

I mean it was like navigation.

3:11:52

Just knowing where you were on the planet was this horrendous problem.

3:11:56

People died or lost fortunes because they couldn't navigate.

3:12:01

And we have devices in our pockets that do this automatically for us.

3:12:04

It's a completely solved problem.

3:12:06

So things that seem unfeasible for us now could be maybe just homework exercise sort of thing.

3:12:10

(laughs) - 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're to going create as a civilization, you know?

3:12:20

That because in the next 100 years, 200 years, just imagine showing up in 200 years.

3:12:26

- Yeah, well, already plenty has happened.

3:12:28

You know, like if you could go back in time and talk to your teenage self or something. You know what I mean?

3:12:33

Just the Internet and now AI, I mean, again, 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."

3:12:47

But yeah, this was mind-blowing even two years ago.

3:12:50

- And in the moment, it's hilarious to watch on the Internet and so on, the drama, people take everything for granted very quickly.

3:12:57

And then we humans seem to entertain ourselves with drama.

3:13:02

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.

3:13:09

But when you look at the arc of things, I mean, just even in progress of robotics.

3:13:14

Just to take a step back and be like, wow, this is beautiful the way humans are able to create this.

3:13:19

- 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.

3:13:30

- Well, one place I can always count on rationality is the comments section of your blog, which I'm a big fan of.

3:13:36

There's a lot of really smart people there.

3:13:38

And thank you, of course, for putting those ideas out on the blog.

3:13:44

And I can't tell you how honored I am that you would spend your time with me today.

3:13:50

I was looking forward to this for a long time. Terry, I'm a huge fan. You inspire me.

3:13:56

You inspire millions of people.

3:13:57

Thank you so much for talking.

3:13:58

- Thank you, it was a pleasure.

3:14:00

- Thanks for listening to this conversation with Terence Tao.

3:14:03

To support this podcast, please check out our sponsors in the description or at lexfridman. com/sponsors.

3:14:10

And now let me leave you with some words from Galileo Galilei.

3:14:15

Mathematics is the language with which God has written the universe.

3:14:21

Thank you for listening, and I hope to see you next time.