# Lean makes formal proofs verifiable for model training

Markdown copy of https://realalpha.app/s/lean-makes-formal-proofs-verifiable-for-model-training/ on Real Alpha, the best minutes from long interviews with the people building AI. Cite and link the page, not this copy.

- Speaker: [Guillaume Lample](https://realalpha.app/builders/guillaume-lample/) · Chief Scientist, Mistral · Co-founded Mistral AI and leads its science teams; previously contributed to Meta's open-source LLaMA model.
- Host: [Shawn Wang (swyx)](https://realalpha.app/people/swyx/) · Co-founder, AI Engineer · Wrote “The Rise of the AI Engineer” and founded Smol AI, maker of AI News.
- Host: [Alessio Fanelli](https://realalpha.app/people/alessio-fanelli/) · Founder, Kernel Labs · Partner at Decibel, backing technical founders who build developer tools.
- Show: Latent Space
- Episode: [Mistral: Voxtral TTS, Forge, Leanstral, & Mistral 4 — w/ Pavan Kumar Reddy & Guillaume Lample](https://realalpha.app/v/SUjA25ijcNs/), Mar 30, 2026
- Moment: 35:47 to 40:04 of the episode (4 min), playing on https://realalpha.app/s/lean-makes-formal-proofs-verifiable-for-model-training/; the episode from there: https://realalpha.app/v/SUjA25ijcNs/?t=2147

## Quote

> “What's nice with Lean and with formal proving is that you **don't have to worry about this** whatsoever.”
> — [Guillaume Lample](https://realalpha.app/builders/guillaume-lample/) at [37:16](https://realalpha.app/v/SUjA25ijcNs/?t=2236) · Latent Space

## Takeaways

1. Lean provides a checkable signal: a proof either compiles or it doesn’t.
2. Formal verification could expand as coding agents make it easier to use.
3. Models can split a theorem into lemmas and work on them in parallel.

## About this segment

Guillaume Lample explains why formal proof systems offer a reliable way to check model outputs, unlike open-ended math proofs. He also describes how theorem proving can involve agents working on lemmas in parallel.

From “Mistral: Voxtral TTS, Forge, Leanstral, & Mistral 4 — w/ Pavan Kumar Reddy & Guillaume Lample”, Mar 30, 2026. [Watch the full episode](https://realalpha.app/v/SUjA25ijcNs/)

## Transcript

From the transcript Latent Space publishes with the episode.

[35:51](https://realalpha.app/v/SUjA25ijcNs/?t=2151) On the, yeah, LeanStral, I think is also one step into this direction. So it's, yeah, a bit different than what we are usually releasing. But we have a small team internally working on a formal proving, formal math. So I think a subject we care about in general, and we were working on reasoning. I think we started too early before LLMs. Doing reasoning without LLM is very hard, especially when you work with formal systems, because the amount of data you have is negligible. It's a very small community of people writing like formal proofs.

[36:17](https://realalpha.app/v/SUjA25ijcNs/?t=2177) But the reason why we like it is because I think there is-- If you look at what people are doing with reasoning, these are-- the problems that you can use are usually going to be problems where you can verify the output. So for instance, all this AIME problem, where the solution is a number between one and like a thousand, so you can verify, you compare this with a reference, or it's an expression, you can actually compare the output expression, generate your model with a reference.

[36:38](https://realalpha.app/v/SUjA25ijcNs/?t=2198) But there are many, most of the math problem and most of the reasoning problems, there is no like way to easily verify the solution. If the question is, show that F is continuous, you cannot compare any reference, right? If it's like prove that this is true or prove this property, there is no way to-- You cannot like simply verify the correctness of your proof, so it's hard to apply the... There is no verifiable reward here.

[36:59](https://realalpha.app/v/SUjA25ijcNs/?t=2219) So what you could provide is, of course, like a judge, an judge that will look at your proof, but it's very hard and it's very-- you could also have some water hacking happening there, so it's difficult. You could provide like a reference proof, but then there are also many ways to prove the same thing. So if the model is given a negative reward because it's a different proof, but maybe it was still a legit proof, just different, so, so it's not going to work well.

[37:19](https://realalpha.app/v/SUjA25ijcNs/?t=2239) What's nice with Lean and with formal proving is that you don't have to worry about this whatsoever. We just- They all function... As long as it compiles in Lean, it's functionally the same. Exactly. It's like a program. If it compiles- Yeah... in Lean, it's correct. Yeah. It's very easy, and you can apply this on any kind of- It's just way too small, so no human will actually go and do it. [chuckles] Yeah. Exa- that's exactly.

[37:38](https://realalpha.app/v/SUjA25ijcNs/?t=2258) So only people can do it, it's like a very small community of people doing a PhD on that, so it's super small. On this side because it's actually very useful on not just math, but also in software verification. So for instance, software verification today, it's a tiny market. Very few industries work on this, and we need that. It's usually going to be like companies like building airplanes, robotics, like things where they absolutely want to be sure life depend on this.

[38:02](https://realalpha.app/v/SUjA25ijcNs/?t=2282) But it's very rare that people formally verify the correctness of their software. But I think one reason for this is simply that it's just super hard to do. Are you thinking of TLA+? It's the language that some people do for software verification. No, I am- Hard... most familiar with that with Coq that people use in, uh, in France, but... But yeah, it's the reason I think why people don't use it more and why this industry is not as big as it could be is because it's very hard.

[38:23](https://realalpha.app/v/SUjA25ijcNs/?t=2303) But now with coding agents that are there, it's going to be very different, and we're going to see much more of this. So I think yes, industry there is going to be much larger in the future of those that we have these models. So yeah, here also anticipating just a little bit, we wanted to work on that because it's proving like a math theory and proving like a function essentially is the same tools. Yeah, yeah.

[38:40](https://realalpha.app/v/SUjA25ijcNs/?t=2320) One of my theories is that because the proofs take so long, it's actually just a proxy for long-horizon reasoning and coherence and planning maybe. A lot of people will say, "Okay, it's for people who like math. It's for Lean. Okay, it's like a niche math language. Who cares?" But actually, and you use this as part of your data mixture for post-training and reasoning, actually it might spike everywhere else. Yeah.

[39:03](https://realalpha.app/v/SUjA25ijcNs/?t=2343) And I think that's un- underexplored, or no one's like really put out a definitive paper on how this generalizes. Yeah, absolutely. And I think even that's what we are seeing already. For instance, if you do some reasoning on math, then the model can also do reason and code very well even- Yeah... if you just code that in the, in the earlier stage. So indeed there is some transfer, uh, some sort of an emergence that happens. And I think some-- It's also interesting. It's not just, I think, the topic in general, but it's...

[39:25](https://realalpha.app/v/SUjA25ijcNs/?t=2365) There is a lot of connection with this on encoding agents because sometimes the model can see like a theorem that it has to prove. It's very complex, but then it can take the initiative to say, "I'm going to prove this three lemma. I'm going to suggest three lemmas, and I'm going to in parallel prove each lemma, so three of them in parallel with sub-agents, but I'm also going to prove them in theorem as three, the three lemmas are true."

[39:47](https://realalpha.app/v/SUjA25ijcNs/?t=2387) So you can do this sub-agent approach. So pretty interesting. You can even if you fail to prove one of the lemma, you can actually maybe you'd succeed to prove the other lemma too, so you get some, possibly one here. So it's a bit less sparse than if you just get to zero one for the entire thing. So it's pretty interesting. I think we can actually unpack stuff here. Yeah.
