Latest / Strachey Lectures / Will Computers prove theorems?
Transcript
- 0:01[Auto-generated transcript. Edits may have been applied for clarity.] So if you haven't.
- 0:15Okay. Um, so now it's my great pleasure to introduce Kevin Hart.
- 0:20So Kevin did his PhD in Cambridge in 1995 and algebraic number theory, and he had, uh, positions at Princeton and Berkeley.
- 0:28Uh, but since 2004, he has been a professor of pure maths at Imperial.
- 0:33He's had some very distinguished prizes. Um, Kevin got the white House Prize, BLM Sydney 2002, for distinguished work in number theory.
- 0:42And in 2008 he got the senior price of the LMS, which is for a really outstanding piece of mathematical work.
- 0:50In 2017, he kind of turned his attention partly from number theory to formalisation at a midlife crisis.
- 1:00Um, for this work, actually, he's given a plenary lecture at the international, um, Congress of Mathematicians in, uh, 2022.
- 1:09And in 2024, he started this kind of super exciting project to formalise the proof of Fermat's Last Theorem, which, um, was anticipated here.
- 1:16And we're now going to hear about. So, um, he's going to be telling us about whether computers are going to prove theorems.
- 1:22Great to have you here. Thank you. So.
- 1:31So many thanks for the, uh, for the invitation.
- 1:35Uh, and, yeah, I'll do the same joke as Leo. Uh, it's an absolute honour to be giving these lectures, especially, uh, with this,
- 1:43this guy who basically has changed my life, uh, not least by writing, you know, forget Nintendo.
- 1:50Uh, uh, my my favourite computer game. This is, uh.
- 1:55This is summer. I've always loved computer games, but the fact that I can do, you know,
- 2:00sort of interesting algebraic number theory in this completely novel way, uh, is something that still blows me away.
- 2:08Uh, so I kind of want to think big.
- 2:12So, you know, the questions after I finished.
- 2:15You know the questions maybe you want to consider, uh, you know, what conformal methods do for me?
- 2:21Your your. Yeah. Many of you probably experts in something.
- 2:24Uh, well, what can formal methods do in that thing that you're an expert in?
- 2:30Uh, and then more generally, you know, what can formal methods do for mathematics?
- 2:34Because that's not really formal.
- 2:36Methods have existed for decades, but that is not something that mathematicians were asking themselves, uh, ten years ago.
- 2:44So these are, I think, two interesting questions. Uh, so that was the title I had to give a title.
- 2:50So I wrote Will Computers Prove Theorems? And I mentioned this on social media.
- 2:54And immediately some wag says that, you know, any any time you see a title with a question mark, the answer is always no.
- 3:00Because if if it wasn't no, you wouldn't put the question mark.
- 3:04Uh, so in fact, the answer isn't no. The answer is yes.
- 3:07Like, already computers are proving theorems. Uh, and so yes, you get this example, this thing that Leo already mentioned, uh,
- 3:17a computer program autonomously solved four out of the six problems on the 2024 International Maths Olympiad.
- 3:24Uh, and and of those four, uh, three of them, uh, it gave formal lane solutions.
- 3:30So, you know, uh, formally verified, uh, solutions to three of these questions.
- 3:35And the other one was the Euclidean geometry question, uh, where the system didn't use Lane,
- 3:40it just wrote down, uh, an easily human readable and human checkable proof.
- 3:45Um, and so of course, if you're a research mathematician, you would say, well, these aren't theorems, right?
- 3:50These are, you know, high school, you know, level problems.
- 3:54Uh, they're not really what a mathematician would call it. You know, maybe a push their lemmas, right?
- 4:00They're not really theorems. But of course, if you think that it's going to stop there, then I think you're very naive.
- 4:06Uh, and so really, what I'm talking about, uh, is how we can, you know,
- 4:11how mathematicians and computer scientists can collaborate to take these things further?
- 4:15Because this is one thing that really, really shocked me, uh, when I moved into this area, was that even though,
- 4:21you know, my background and Leo's background couldn't be more different, I can't write a line of computer code.
- 4:26Really. I know very little about, uh, programming languages, and I'm not expecting Leo to know anything about, uh, you know, advanced mathematics.
- 4:34And yet mathematicians and computer scientists are finding that they have a common language.
- 4:40You know, we we we stuck with the maths problem. We run into something.
- 4:43We can't get the system to do it, but we can ask questions which computer scientists can understand and they can give us answers.
- 4:51Well, I find this quite, quite striking, uh, and that we can actually communicate with each other,
- 4:57uh, and, and, uh, and make progress, even though our backgrounds are very different.
- 5:04Uh, this is something that, you know, constantly the fact that I can talk to computer scientists and they can solve my problems,
- 5:11uh, even though they don't understand the maths behind it, I understand.
- 5:15Yeah, it's a straight is, you know, it's a strange synergy and one that I was very surprised by.
- 5:22So yeah, we've got this. Will computers proof theory. It's a very valid question.
- 5:26Let's ask a more precise question.
- 5:28And you know, the kind of question I'm interested in is how can you technology, uh, your theorem prove as early as talked about.
- 5:35But language models you can't really ignore in 2025.
- 5:39Uh, can these things actually give mathematicians new general purpose tools?
- 5:44Mathematics is a very conservative area.
- 5:48Uh, it's really striking when you look at the kind of things that we're teaching the undergraduates in 2025,
- 5:55the courses which are offering final year undergraduates in 2025,
- 5:59they are essentially exactly the same as the courses that I was being offered, uh, when I was an undergraduate, you know, 30 plus years ago.
- 6:08Uh, so mathematicians are very slow to change and adapt, and yet there's all this stuff happening.
- 6:15Uh, and the question is, can we actually, you know, can we actually use it to make new tools to use to mathematicians?
- 6:23You know, can we accelerate mathematics for me?
- 6:26Yeah. For me. You know, I used to think that prove new theorems was the important thing.
- 6:30But I think that this some this question really dwarfs that, you know, that that traditional idea of let's accelerate maths by proving new theorems.
- 6:39I think there might be other ways of doing things. So what kind of tools am I thinking of?
- 6:45What kind of yeah, how are we going to change mathematics?
- 6:48How are we going to, uh, how are we going to disrupt mathematics?
- 6:51I like the idea of disrupting, uh, so yeah.
- 6:55Well, yeah, he's a tool.
- 6:57But wouldn't it be great if we had a tool where you just press a button and we can solve, you know, all the great unsolved problems in mathematics?
- 7:03That'd be good. That'd be a useful. That's accelerating mathematics.
- 7:07So the big problem with that tool is that tool is just, you know, doesn't exist.
- 7:12Uh, and it's not just that it doesn't exist. I can't see a path to that tool yet.
- 7:17Right. It's it's not just that it doesn't exist, but given what we know.
- 7:22So we don't really see how to make that tool exist. There's not really even a route to making that tool exist.
- 7:30That's a shame. Uh, so what about. What about another tool?
- 7:33Wouldn't it be great? Now? Is this. This is some mathematician's nightmare, right?
- 7:39Is this a dream, or is this a nightmare? Wouldn't it be great?
- 7:42Wouldn't it be great if we had a tool? You press a button and you got 10 million lines of incomprehensible code that you said.
- 7:47Let F1 be this function, F2 be this function.
- 7:50Let F3 be this. You know, theorem 398 is that this, this, you know, function 28 and function 374 are related in this way.
- 8:00And it just goes on and on and on and on and on. You have no idea what's going on.
- 8:03And then at the end, it's the Riemann hypothesis. And you run it through Lane.
- 8:06And Lane says, yes, this is correct. You know that.
- 8:10You know, that's terrifying for some. Because my what's nice about is it about proving all the theorems or is it about getting understanding,
- 8:18you know, different mathematicians have different opinions about that.
- 8:21You know, do we just want to get the job done or do we want to understand what's happening?
- 8:26So again, that's science fiction, right? There's no route to that yet.
- 8:31And so, you know, this that's this is you know, I can't see you know, there's lots of new tools and it's very exciting.
- 8:38But these lofty goals here are kind of out of reach at the minute, you know.
- 8:44But of course, five years ago getting a point on the IMO was also considered completely out, right?
- 8:50Five years ago there were no language models. Five years ago we had Lane.
- 8:55We could do Lane. Uh, yeah we could, we could start proving, you know, research level theorems,
- 9:02but we couldn't get a point on the IMO, on the International Maths Olympiad.
- 9:07So things do move and they're moving pretty fast. Uh, so we don't really know where we'll be in five years time.
- 9:14Uh, but, you know, I don't want to just speculate. Let's talk about what's not science fiction now.
- 9:21So where are we? What about here we go. What about a tool that can find interesting patterns?
- 9:25What about a tool that can spot patterns in data that humans can't spot?
- 9:29Uh, that would be. That would be an interesting tool. Uh, but actually we have that tool, right?
- 9:34That's exactly what the neural network does, right? We we learn a high school.
- 9:39We like given a 2D plot, given a, you know, given X and y variables, we can plot some dots, and then we learn how to draw the best fit line.
- 9:47Right. And I watched the neural network. Neural network.
- 9:50It can find best fit shapes. There are lines.
- 9:53It can find best fit shapes and extremely high dimensional data.
- 9:56That's what the neural network does. Uh, and so that's great.
- 10:00So we can give it, you know, mathematical tables that we have already.
- 10:04And we can say, you know, can you spot stuff that we can't see. So there's a theorem.
- 10:08Uh, I just thought I mentioned this theorem because, uh, you have some that can be these are low dimensional topologies here in Oxford.
- 10:16Uh, and they collaborated with computer scientists at Google DeepMind, and they proved a theorem about hyperbolic knots.
- 10:22Uh, and the way this theorem was discovered, uh, was that they generated a big table of, uh, you know, invariants of knots.
- 10:31Uh, and then they asked the neural network to see if it could find any patterns in this table.
- 10:36And, uh, the neural networks spotted that this Siggraph case, this is the signature of the knot.
- 10:42The neural network could accurately predict the signature of a not given other invariants.
- 10:47And this was surprising because the other invariants have a slope, the volume in the activity radius.
- 10:52These are. These are embeddings coming from the three manifolds. You know topology, the three manifolds associated to them.
- 10:57These are these if you like. These are continuous invariance. These are real numbers whereas the signature is an integer.
- 11:03So this is some some theorem relating the discrete and the continuous.
- 11:08So it must you know you know it must be profound.
- 11:11Uh, but the fact that these things were the fact that these things were related at all, this is what the neural network told them.
- 11:17And once the neural network said there is some pattern, then the mathematicians took over and found the pattern and proved the theorem.
- 11:23So the machine didn't prove the theorem, but the machine told them where to look for the theorem.
- 11:28So that's kind of a surprising application. Uh, but it's really old.
- 11:33It's from 2021, so this ain't nothing else.
- 11:36And all the other things I cite in this talk will all be from 2024 or 2025.
- 11:42Um, because the air is just moving very, very fast.
- 11:46Uh, so really, I want to. Jordan Ellenberg, uh, is thinking a lot about this, uh, this kind of thing.
- 11:55How do we use neural networks? These things can find patterns in data.
- 11:59How can we use neural networks, uh, to, you know, find new interesting structures, examples, counterexamples, this kind of thing.
- 12:08So again, uh, this pattern boost paper. Ellenberg is a mathematician, prestigious mathematician from Wisconsin.
- 12:14This is Jodie Williamson, another very, uh, FRS and a very famous mathematician.
- 12:20Adam Vargas, a young researcher. And uh, funds were shot on the works of meta.
- 12:25So again, very surprising collaboration. So, you know, five years ago, you might not have expected, uh, and they,
- 12:32they made a very simple architecture, uh, that can search for examples of counterexamples.
- 12:38Uh, so in sort of finite combinatorial objects, uh, and what they're doing, basically,
- 12:43they write a naive human algorithm to try and solve a problem, to try and find extreme examples.
- 12:49And then they write a and then they, you know, use neural networks to say, you know,
- 12:53they generate lots of extreme examples, uh, and then they encode them as strings.
- 12:57And then they say to a neural network, here's a list of strings that we really like.
- 13:01And now could you give us more examples of strings that we're going to like. And then the neural network say sure, I'll do that.
- 13:07You don't explain the question. You you encode your finite graph, which is extremely in some way, you encode your finite graph as a string.
- 13:16You give it the neural network. Say, I love these strings. Give me more strings is a show.
- 13:20I'll give you strings. And then you try and decode the strings back to graphs.
- 13:23And half of them just don't decode that, you know, they garbage. And then the other half do decode into graphs.
- 13:28And then you look at these graphs and they're not a great example, but they're not extreme.
- 13:32But you get a you can keep adding edge, you can do more.
- 13:35You know, the computer and the human are just thinking about the question in really different ways.
- 13:39And they find, you know, they they can find counterexamples to, uh, to theorems.
- 13:45This way is very weird. Some extremely simple to read paper.
- 13:50Uh, I quite like this work of Ellenberg. You should look at recent work of Jordan.
- 13:54He's also collaborated with the physicists, uh, from Oxford. Uh, getting getting machines to write Python programs, which are solving maths questions.
- 14:03It's a very surprising, very surprising and innovative new use of technology.
- 14:09Uh, but the big problem with using neural networks to do this kind of thing is that they have limited application.
- 14:14You know, you can't if you're if you're interested in an area of mathematics where there are lots of tables or where,
- 14:21you know, the fundamental objects can be described by finite amounts of data.
- 14:26And the interesting problems is finding, you know, finding new data, then that's great.
- 14:31But if you, you know, if you are doing research in Sobolev spaces or, you know, whatever Banach manifolds, so, you know, infinite,
- 14:38intrinsically infinite dimensional objects where there aren't any tables, um, then you just might not be able to use these tools at all.
- 14:47So we've got limited applicability. And that's just to say we've seen that happen before, right.
- 14:51And then the 1960s and the 1970s computers became available to mathematicians.
- 14:56And they were just very, very fast fancy new calculators.
- 14:59And all of a sudden we could do you can multiply two, 100 digit numbers together really quickly, right.
- 15:05And if you're doing research into, into Banach manifolds is no used to at all.
- 15:10But if you're doing research in sort of, you know, computational number theory, then suddenly you've got a great new tool.
- 15:18So we've seen, you know, computers come along and they might affect some bits of maths.
- 15:23They might make some, some, some areas that suddenly, you know, an exciting new thing.
- 15:29You know, I mean, I'm interested in, uh. I'm interested in general purpose tools.
- 15:35Yeah. This is this is this is the kind of question. Can we can we really give mathematic.
- 15:40You know, give mathematicians a general purpose tool.
- 15:44Uh, so now we have to talk about, you know, I'll talk about there in previous in a bit, but we've got to talk about language models, uh,
- 15:51because you know, that any, any mathematician who's use them will know that they right now they are not perfect by any means,
- 15:59uh, for doing mathematics. So I idea, uh, the mathematicians in there,
- 16:03are there any mathematicians in the room can actually use the language model and it's told them something useful.
- 16:08Are there any can anyone put their hand up to. Yeah.
- 16:11Go. So some you see. There you go. Great. There's like ten hands.
- 16:17You see. But you know, the AI people are really, really excited about language models, but that they're in their current form.
- 16:25Uh, they're not perfect. Uh, so actually, I, I, I used ChatGPT last week.
- 16:33Uh, uh, because I so I as it's been, as it's been, uh, mentioned several times.
- 16:42Uh, I'm currently involved in some strange project related to Fermat's Last Theorem.
- 16:46Uh, and I dare I, I if I click this, then all manner of things that happen.
- 16:52Right? I'm gonna try clicking this.
- 16:56Uh. Let me.
- 17:15Was. So anyway, as I was saying.
- 17:22There's some website on the internet that contains a whole bunch of maths, uh, involving some kind of, uh, that.
- 17:32It's a very beautiful website. Looks really nice, but rendered in rendered in beautiful latex on the web.
- 17:39Uh, but I'm just in the middle of writing, uh, a very long, you know, explanation of a lot of mathematics behind Fermat's Last Theorem.
- 17:48And I needed the fact that if a was a dedicated domain with field of fractions K, and if L was a finite separable extension of k,
- 17:56and B was the integral closure of A in L, uh, then I claim that for an arbitrary k module uh,
- 18:04string over k with L is the same as ten string over I would be. So there's some random statement in graduate level algebra.
- 18:12Uh, and that's the kind of thing that I thought that I should be able to prove.
- 18:15Uh, but the problem is, I just got a bit stuck because it ring advantages of a number filled ring of integers with finite extension.
- 18:24The new thing might not be free over. The whole thing is going to be projective, but it might not be free.
- 18:29Locally free, but maybe not free. So there was an at that.
- 18:31[INAUDIBLE], there was some technical issue, so I thought I should be able to do this right.
- 18:37And I spent like two minutes on it and I was just like, this is stupid.
- 18:40It's like, this is graduate level algebra, right? This, this, you know, okay, so I, uh, I.
- 18:47So well about 20 years ago. Uh, I would have just, like, knocked on another number.
- 18:52Theory stories that had you do this. Uh, ten years ago.
- 18:56There's a new option I could ask for. Math overflow. Right?
- 19:00Or math dot stack exchange.
- 19:01Two years ago, I could just kind of cheat and ask on the lean chat, uh, because there's a bunch of mathematicians hanging out there.
- 19:08Uh, uh, and it's likely that somebody will give me an answer quickly.
- 19:11But now, of course, you can actually ask ChatGPT for I don't pay for these things, right?
- 19:18Because I'm super sceptical that they're useful. But you just go to chatgpt.com and I type in my graduate level question.
- 19:25It gives you a list of algebra and the, uh, the answer is illuminating, right.
- 19:30Because I asked this explicit question about ten tearing up finite extensions of, uh, the rings of integers, of number fields.
- 19:38And the first thing it does is it says, oh, suffices to prove this simpler problem.
- 19:42And that was something I'd spotted when I was thinking about it for two minutes, and I thought, this looks like progress.
- 19:47And then I decided, actually, is it progress? It seemed the reduction seems just as difficult as the original question.
- 19:54So I tried that, and then I gave up on that. And then I asked ChatGPT, and the first thing ChatGPT does is finds the same reduction.
- 20:01Uh, and then actually, you know, it gives the idea which I'd missed.
- 20:05It gave the idea about, uh, how to, you know, how to prove the reduction.
- 20:11Uh, and then it justified its argument with rubbish.
- 20:14This is this, you know, is very, very wishy washy on exactly how this proof worked.
- 20:22But the thing is, it gave me enough clues, uh, that I could actually put everything together.
- 20:29And so. So there we go. So the language model was good in the sense that it pushed me in the right direction,
- 20:36but it wasn't perfect because when it actually when it came to the details, it was, it was, it was, um.
- 20:42Not at all. Yeah. As I say, this is not an inaccurate summary, right.
- 20:46The details were vague or meaningless. Uh.
- 20:51And why is that happening? It's because, of course, they know all the facts on the internet, right?
- 20:55That's, you know, that's how they're trained on the internet. But the thing is, they're not very good at logical reasoning, right?
- 21:01They're not very good at actually. They don't have understanding in the same way that we have understanding.
- 21:07Right. Can these things think it's just not even a meaningful question.
- 21:12It's like asking if a submarine can swim. You said humans think these things are not thinking they're doing something else right?
- 21:20As Ken, I know this is a quote from Ken Ono, right?
- 21:23That is not cognition. They're doing recognition, right.
- 21:26I they've seen lots and lots of things before. And so they kind of think, oh yeah, I've seen this thing before.
- 21:32That's to that's what humans do in this situation.
- 21:35I'll do that.
- 21:36Uh, and actually it's interesting, like what a mathematician actually doing this is a lot of what mathematicians are we just doing pattern matching.
- 21:44Occasionally we have ideas, but how often are we having ideas and how often are we just, you know, just going through the motions and.
- 21:53Yeah. Oh, I know, you know, just applying stuff that. Yeah, we just.
- 21:59It's not immediately clear how many times we're having brilliant new ideas,
- 22:03and how many times we're just applying facts and techniques that we just know work because we've seen them in other situations.
- 22:11So we're we're maybe doing similar things to the machines.
- 22:14But the thing is, we can back it up with this logical reason.
- 22:17We take an idea from a related area, but then we could rigorously prove that that idea works in our situation, right?
- 22:24The machine takes an idea from another area, attempts to apply it, and then and then,
- 22:27you know, it's really fluff when you ask them, does it actually work?
- 22:32Hey, this is the thing they never give. They never say, I don't know.
- 22:35The common failure mode if you ask a human a question.
- 22:39Yeah. A common failure mode is I don't know. Whereas you ask a machine a question, the common failure mode is [INAUDIBLE].
- 22:46This is the if they they would rather make something up and say they don't know.
- 22:53So this is the big question, right? If we want to use these things, how do we teach language models to reason accurately?
- 22:58And uh, and the way, the way that we're going to do that compared to scientists, they like, you know, they like challenges.
- 23:05They want they want a challenge, and then they want to be state of the art in that challenge.
- 23:09Right. And if you can get state of the art, you can get a paper.
- 23:13That's how computer science seems to work. You you you you make some challenge and then you say and compute.
- 23:21Yeah, I can try this challenge. And at the end they get a grade.
- 23:25Yeah, they get a grade. They, they try this challenge and they get 15%.
- 23:29And if that's better than any other AI then the then they've got state of the art.
- 23:34And if you get state of the art then what you win is a paper. That seems to be how computer science works as far as I'm concerned.
- 23:42Anyway. So how do we make challenges? The way you make a math challenge is a data set, right?
- 23:47So a quest, you know, a big collection of mathematical questions.
- 23:51That's what a challenge looks like. Uh, and the idea is you get the machine to answer the questions correctly, you get a point for each word you get.
- 23:59Right. And, uh, and so now the question is what a mathematical data sets look like is that when you're a mathematician,
- 24:06you, you know, these things are being generated by computer scientists.
- 24:09And as mathematicians, we tend not to look at them at all. So what a mathematical data sets look like.
- 24:14Uh, they come in several forms. Uh, they're mathematical questions.
- 24:18But what level? Right. They can be. They can be sort of GCSE level.
- 24:22Right. The way up to research level. That's what it.
- 24:26Yeah, that's the range of, uh, it's, uh, the range of the mathematics is really, really extreme.
- 24:33Uh, they might be a natural language, or they might be in a formal language, like languages.
- 24:39There are other formal languages as well. Uh, so.
- 24:43But of course, Leon seems to be winning.
- 24:46There's. And in many cases, uh, the formal language chosen is Latin for mathematics at least, uh, the problems might have shorter.
- 24:55This is a big difference. The answers to the questions my either be expressible in about eight characters.
- 25:04Yeah, they might be a multiple choice question. Uh, or they might be.
- 25:07What is this number? Uh, or they might have really long answers, you know, prove this theorem.
- 25:13And the answer is like two pages long. So you get different data sets.
- 25:17Uh, you know, ranging. Yeah. The kind of answers you get can be very different.
- 25:23And finally, they can be either public or private. Uh, that the private ones, the way it works is you have 100 secret questions,
- 25:30and they say we've got 100 secret questions, and here's here's five of them.
- 25:34Yeah, we'll make five of them public. And the other 95 is secret.
- 25:37Uh, so you get some kind of feeling as to what the data set looks like.
- 25:41Uh, but you can't see. Yeah, you can't see the question if you want to have a go.
- 25:46Uh, you have to send your I. Yeah. To the company or the organisation that's holding the secret questions.
- 25:52And they run, you know, they run it, and then they give you the reports about how many you got, right?
- 25:57So let me just give you a couple of examples of data sets. This is the artificial intelligence math Olympiad.
- 26:03Uh, this is again this is Jurco. Uh, he was mentioned in the last, uh, you know, he's a guy who's funding more and more mathematics.
- 26:11Uh, the, uh, you know, X markets.
- 26:14So there's a, uh, he's really pushing the idea of open source AI.
- 26:19He's very worried. The, you know, the the sort of closed source.
- 26:24Yeah. I was talking about wouldn't it be great if we had a general tool that help mathematicians?
- 26:28But one thing that perhaps would be a bit less great if that tool was owned by a private company.
- 26:33And I was like, just for $1,000 a month, you can have that.
- 26:36Your university can have that tool. Uh, yeah.
- 26:39He would like he wants to see open source tools. Uh, so that I should say I mentioned this first item on the advisory board.
- 26:48Uh, for this for this project. So right now we've had two progress prizes.
- 26:53So we've had two competitions. Uh, and both of the competitions have involved private data sets.
- 26:59So secret questions. Uh, and the questions are written in English.
- 27:04Um, and there are an error that so challenging high school type questions.
- 27:09Uh, not as hard as International Math Olympiad, but yeah. So there are other Olympiads.
- 27:14An easier level, right? Uh, and the key thing is the answers are short.
- 27:19Answers are always whole numbers between 0 and 9, nine, nine.
- 27:23And this is this is the kind of question that you see.
- 27:26So it's not the kind of thing you can do immediately.
- 27:29Uh, so each of the three digit numbers from 111 to 999, you colour it blue or yellow and there's some rule.
- 27:36And then the question is what's the maximum number of yellow. So it's so sufficiently big you can't solve it by brute force.
- 27:42You can't do all two to the 889 possibilities.
- 27:46You have to you know, those a sort of a combination. There's some calculation involved and some reasoning involved as well.
- 27:53Uh, and we're at the stage now where you can type that kind of question into a language model, and the language model can get it right.
- 28:02Uh. So, as I say, the questions are kept.
- 28:05Secrets. And if you want to play, then you have to give us your model.
- 28:09So you can't, uh. Yeah.
- 28:12We won't send the questions to, uh, to the to the private, to the private models.
- 28:18You have to upload your models of hugging. Yeah, it's a Kaggle and then Kaggle.
- 28:21Run it and tell you what you got out of 50. Uh, and there's prize money, right?
- 28:26The models compete to win six figure prizes. Uh, and there's been two competitions so far.
- 28:31And the second one just finished, uh, and top, top of the leaderboard, uh, was a, you know, a gang of 3 or 4 people.
- 28:38And they scored 34 out of 50.
- 28:40So, so for high school Olympia, there's state of the art for these kind of high school Olympiad questions as far as open source models are concerned.
- 28:50Uh, if you asked OpenAI AI to do this, they would probably get a much higher score because the closed source models are always ahead.
- 28:58Uh, so what advantage of, uh, of me being on this, uh, maybe on the organisation committee for this thing is that you get to see secret data.
- 29:08That's, uh. Uh, so this is a table.
- 29:11These are the 50 questions. Uh, is this is this competition's just finished.
- 29:15Uh, and then these orange bars indicate sort of the ten most popular answers that.
- 29:20So these are the top 500, uh, eyes that took part in this game.
- 29:26And, uh, the light orange is the most popular answer. And then the dark purple is the least popular answer.
- 29:31And, uh, so you grade it from, uh, light to dark orange, uh, and then the grey is all the other answers.
- 29:37And then you take the most popular colour in green so that, you know, of these 50 questions, the top questions there, the easiest question.
- 29:43You can see like 90% of the models, uh, were guessing the right answer first time.
- 29:49Uh, so and uh, then by the time it halfway down, you can see it's still the case that the most popular answer was equal to the, uh.
- 29:59I was equal, uh, to the correct answer. For the first 50% so that you see things are going wrong.
- 30:05Right? These things where there's very small green dots.
- 30:08So the, you know, like the green, the green stripes there indicate like the eighth most popular answer turned out to be the correct answer.
- 30:16So that, you know, there's some data. Uh, but basically 500 language models are getting, you know, getting half of these questions correct.
- 30:25So there's some kind of idea as to where open source AI is now.
- 30:31Uh, but we don't care about these stupid undergraduate questions, right?
- 30:35We care about hard questions. So what about this frontier math data set?
- 30:38Here's a here's a proper question. Uh, here's a question about moduli spaces of conics.
- 30:45So, you know, here's some intuitive geometry question. Well, it looks like an intuitive geometry question.
- 30:50It's actually a combinatorics question which is heavily in disguise.
- 30:54Uh, but you've got moduli space of conics tangent to a given set of five conics in the plane.
- 31:00Uh, and the question is and now you look at this, you look at these moduli space mod p and you ask how many how many connected components this got.
- 31:08Uh and as p varies this answer changes. This is not over FP bar over FP.
- 31:14So this is an arithmetic question not a geometric question.
- 31:17Uh, and then the answer is give the answer to two decimal places. So again the answer's very short.
- 31:22Uh, but now this is research level mathematics.
- 31:26Uh, and one of OpenAI's closed source models got 25%, uh, on this dataset.
- 31:32So we've got questions of that nature. You know, that looks.
- 31:35That's technical and complicated. But the AI is getting 25% of that, including a correct solution to the question.
- 31:44The. So that's where closed source is right now.
- 31:47And. And um, but when you actually ask, this is the problem.
- 31:51You know, it's great the you know, the model can solve that.
- 31:55The model get that number right. But then when you ask it to explain why that number's correct, it's wishy washy.
- 32:02Is it because it makes them get it has to like if you've got some Galois group and has to guess what the Galois group it is,
- 32:08it just guesses the gavel group is the full symmetric group. And it's right.
- 32:11And then you ask it why is it the full symmetric group. And it's vague.
- 32:15It doesn't actually know why. But it's just you know it's just this is the problem with these number questions is they don't correctly test reasoning.
- 32:24They test how good you are at guessing the answer. And these models have got very good at guessing the answer.
- 32:30Uh, so the close source, the close source models are around two years ahead,
- 32:35and the close source models are trying to pull ahead because the tech companies have stopped publishing.
- 32:40This is this is what's happened because they want to stay ahead and the open source models are trying to catch up.
- 32:47Say, why are these datasets private? That's kind of obvious, because if they weren't private, if you just put them all on the internet,
- 32:52that people would start asking them on Math Overflow and people would start answering them,
- 32:56and then the answers would be on the internet, and then the models would learn the answers,
- 32:59and then the models would just all get 100%, so it would break the system.
- 33:04And now what are the RSS numbers? That's a much more pertinent question.
- 33:08What are their numbers? Just because we want to be able to market really easily.
- 33:13Right. If you ask a question and if you ask the how do you prove this theorem?
- 33:19If the answer is a two page long proof. Who's going to mark that right.
- 33:23You can't have I marking its own homework.
- 33:27This is the problem right? If if you if you get if the question is prove this theorem and the questions in English and the answer is in English,
- 33:36you see where this is going, right. If the questions in English and the answers in English and the answer is two pages of LaTeX,
- 33:43and we have to decide how many points out of ten this answer, a human has to read it right.
- 33:48And that's really expensive. Right.
- 33:53So the computer scientists want to get state of the art.
- 33:57But the problem is marking a proof. Right.
- 34:00That's what we do. We don't. We don't ask, what is this number?
- 34:04We ask how to prove this theorem. But it it's too expensive to mark that in natural language.
- 34:11So the natural language data sets are all what is this number. Questions.
- 34:15Right. That's not what we do. Okay.
- 34:19So formal data sets right. And these are data sets now.
- 34:23Now it's different. Now the questions are not written in English. They're written in lead.
- 34:27Uh, all these other languages. But yeah, the vast majority of them are written in lean.
- 34:32And now, of course, you can ask the interesting question is I prove this theorem right?
- 34:38And now the idea is this time. Now the model writes a model writes a solution.
- 34:42And now we just throw it into lean and see if it compiles.
- 34:47Yeah, because now a machine can grade the answer, right?
- 34:51If it's wishy washy, it's just not going to compile, right.
- 34:54That's what we do. And now, of course, the big problem, uh, unfortunately, uh, is that right now the level is terrible.
- 35:04The level is terrible. The data sets are mathematically trivial, right?
- 35:09So we have these formal data sets where the questions are in line, but they're GCSE.
- 35:14They're really very, very easy stuff. So the hardest one I'm aware of currently for these formal data sets is Putnam Bench,
- 35:22uh, which is formalised statements of 640 uh Putnam's uh Putnam questions.
- 35:28So the Putnam is an undergraduate level, uh, undergraduate level problems.
- 35:34Uh, so hard undergraduate level problems and state of the art is abysmal, right?
- 35:39State of the art is ten out of 640.
- 35:43Uh, so that's good when you see state of the art like that, because it means there's plenty of room for improvement.
- 35:48Well, by the time that the by the time the state of the art is 60%, then you really you've lost interest like people like, oh, great, I've got 65%.
- 35:56But like if you're solving half the problems, then you know won't be.
- 36:00Give us a year and you'll have solved all the problems.
- 36:02But right now this is undergraduate level material formalise and lead and people can't do it right.
- 36:10Apparently OpenAI's most recent. Oh, no.
- 36:13No, this is this Chinese model, deep sea prover A claiming they've got they've got more than ten, but it's yet to be.
- 36:20And you know, the the Putnam people have to officially check this, but apparently, uh, there's been a big jump this week, so we'll wait and see.
- 36:28But what do we really want? Like, what am I trying to sell here?
- 36:32I want to. I want these systems to do the kind of mathematics that I want them to do.
- 36:37The periodic Langlands program. Right. That's what we want.
- 36:42And, uh, because, you know, that's what's happening in places like this.
- 36:47And so data sets are private. That's a bit rubbish. Like data sets are too easy.
- 36:52That's a bit rubbish. Uh, so there's a very good paper by, uh, by Simon Fraser again, uh, talking about, you know,
- 37:00the general problem of mathematical data sets and just flagging all the things which are somehow insufficient currently.
- 37:09Uh, but I do believe that when we get it right and we start making data sets that are
- 37:14actually correctly modelling the kind of mathematics that researchers are doing,
- 37:19you will get computer scientists, you know, trying to get state of the art on these data sets.
- 37:25Right. So where are we? Like, language models are rubbish.
- 37:28Language models make stuff up. Uh, current data sets aren't asking the right questions.
- 37:33Uh. And so now let me finish this talk with a vision.
- 37:39Uh, this isn't science fiction. Uh, and is maybe a route to some kind of tool that mathematicians can use.
- 37:49Uh, so let me go all the way back to 2023, uh, where language models that first appeared and they couldn't compute.
- 37:56Right. And it was really funny you asked them, you asked ChatGPT to multiply 210 digit numbers together.
- 38:03You give it two explicit two digit numbers together, and it confidently gives you a 20 digit answer.
- 38:07And it begins in the right number, and it ends in the right number.
- 38:11And in the middle, all the numbers are just made up. That was like that was what it looked like in 2023, right?
- 38:17But in 2024, when you ask it to multiply 210 digit numbers together, it just follows a python.
- 38:24You know, it fires up Python to ask Python what the answer is, and then it reports the answer because these systems learned how to write Python code.
- 38:34And how did they learn how to write Python code? Well, they just train them on Python.
- 38:38There's billions of lines of Python code on the internet.
- 38:42So the language models just train on that Python code. And then I got really good at writing Python.
- 38:46And now when you ask some computation questions the python's good at it.
- 38:51Just, you know, it just gets Python to do it. But right now, as I've said several times, they can't reason at a high level.
- 38:59Right. And the the harder the mathematics gets, the worst, I guess, at reasoning.
- 39:05Okay, so maybe we should just teach them to write lean code.
- 39:09That would be good because then, you know, that stops them [INAUDIBLE], right?
- 39:15It's you know, you ask them to write, you say prove this theorem.
- 39:19And then internally it proves it in lean and that it translates it back into human.
- 39:24You know, it's going to get it right. But the problem is we can't train it only in code because there's only millions of lines of leading code.
- 39:34And that's and a lot of that is undergraduate level, right?
- 39:37This is the problem we want to break through on. We want to get them to do research.
- 39:42We want to break through undergraduate level. And most of it is undergraduate level.
- 39:47So undergraduate level. That's great. Are you? DeepMind has shown us that you can train on what's already there and you can get heart.
- 39:55You know, you can solve half 50% of the 2024 IMO, given given only what we have.
- 40:04But as I say, that's lemmas, right? That's not theorems. So how are we going to get this further?
- 40:10And we just lied. This is a big problem.
- 40:14We need to think seriously about getting a lot more modern mathematics.
- 40:19Formalised. It seems to me this is this is the bottom.
- 40:22This is the problem. We need to get a lot more modern mathematics formalised.
- 40:27And because that does not this is not science fiction, right?
- 40:33Maybe, maybe we can get machines to do that.
- 40:36Maybe because it's one thing coming up with your own ideas,
- 40:41but actually translating from a human proof into a computer proof that really does not sound.
- 40:48Yeah, that's much easier than coming up with your own proof.
- 40:51Just doing that. Like we can translate between English and Chinese.
- 40:55So I Gobbi translate between English and lean. Right.
- 40:59That that doesn't sound crazy to me. And of course, you know, people are thinking about this.
- 41:05And so finally, whether this is one of the reasons why I'm currently teaching Lena proof of Fermat's Last Theorem.
- 41:12So this was proved in the 1990s by Andrew Wiles and, uh, ably assisted by my advisor, Richard Taylor.
- 41:20Uh, the proof is huge. Uh, I mean, the Wiles paper is album pages, but it's got 80 references.
- 41:27Uh, like I said, the proof is over 200 pages either if you want to write down the proof.
- 41:32Yeah. From the axioms of mathematics, it would be more like 2000 pages.
- 41:36I think it would be a more reasonable estimate of how long this proof is.
- 41:39Uh, and and the weird thing about the proof is that the Fermat's Last Theorem was a question about positive whole numbers.
- 41:47But the proof goes through all manner of really complex structures.
- 41:52Right. All these modern buzzwords. Uh, elliptic curves and modular forms and Galois representations of finite flat group schemes.
- 42:00And we've got them. All right. There's you know, there's an example.
- 42:04Yeah. Those are examples of things that over the last couple of years, we've now carefully formalised these things in lean.
- 42:11So that in I mean, you know, it's in my Fermat's Last Theorem repository and uh,
- 42:15it's slowly moves in, in my repository as a feed, a repository for math lib.
- 42:21Uh, so elliptic curves are modular forms are math lib, uh, and the other two things, Galois representations and group schemes.
- 42:27They're not in Matlab yet, but in a year's time they will be. That's, uh, that's how the project is going.
- 42:33You know, I'm I'm building stuff. But, you know, when we make a new definition, we make sure it works.
- 42:39You know, we make sure it's usable. And then when we're convinced we've got it right, uh, we push it.
- 42:45But but it's. No, it can't just be me. Right?
- 42:49It can't just be me doing that. There's more to mass than Fermat's Last theorem.
- 42:54It turns out. Uh, there's other there's other areas of mathematics.
- 42:58And here are just some dumb examples of stuff that are like undergraduate or beginning graduate level mathematics that are not formalised.
- 43:07Yeah, that are not formalised. And as far as I know, any theorem prover.
- 43:11And I just need someone to sit down. You know, it's not difficult to sit down and teach the machine.
- 43:17It's not just the definition. The definition and basic facts about the definition.
- 43:22Right. But the thing is, we can't get machines. We can get machines to prove theorems.
- 43:26But it's really difficult to get machines to write down definitions because formalising definitions is an art.
- 43:33Right. Is it system specific? Right.
- 43:36Well, the best way to to teach lean, uh, what are not is, isn't necessarily the best way to teach Isabel or to teach math and math.
- 43:44Right. It's system specific. Uh, and also, you've got the problem.
- 43:49The machine isn't holding your hand at this point, right?
- 43:53The machine will check that your definition is syntactically correct, but the machine won't check.
- 43:59It's semantically correct. The machine won't check that you've written down the right definition.
- 44:03The machine will just check. You've written down a definition that makes sense.
- 44:08So you've got to be super, super careful here. So this is something.
- 44:15This is something that human experts need to do.
- 44:18Right to theorems. We can let the software do it itself.
- 44:22Right. In two years time, maybe the systems will be translating from human maths.
- 44:28Translate a human proof into a living proof. That is absolutely not out of the question.
- 44:34But for me, formalising definitions you absolutely need to take anything in machine says with a very big pinch of salt, right?
- 44:43So who is going to do? Who is going to formalise all these definitions in all the graduate courses that are being run in Oxford?
- 44:51Right. It's not going to be computer scientists. Okay.
- 44:56Whose job is it? I mean, I claim. I claim that it's the mathematics research community's job, right?
- 45:03We've got we've got to do. We are the people who are qualified. But the problem is, we're not going to be rewarded for that, right?
- 45:10The reward system in maths is that you get points, you get money.
- 45:15If you get points in the research assessment exercise and you get points in the research assessment exercise by papers.
- 45:23Do you get papers by proving therapies? New theorems builds upon old theorems which builds upon old theorems, not all of which are correct.
- 45:31As I found out when I was trying to teach the computer proof of Fermat's Last Theorem.
- 45:35We're not as smart as we think we are. So we've got this idea that everything in the lecture is fine and we just need to build more.
- 45:42Right. But it's is is this really is this really how we're going to change mathematics?
- 45:48Right. I think that this whole, this AI and theorem prove is that together they are giving a completely new way of thinking about mathematics.
- 45:59But but the system isn't, you know, the system.
- 46:02There's something wrong. Right? That that's the problem.
- 46:07You know, and actually actually. Yeah.
- 46:10What can full moon message do for mathematics? Okay.
- 46:14Can they really turn it on its head? I mean, that's it.
- 46:19Thank you.