Silly question (I also asked another commenter), how do we guarantee that both versions of lean aren't vulnerable to something analogous to a buffer overflow?
If my proof was 100 trillion pages long, what would happen when that proof could no longer be stored within 1 or even 100 computers memory during computation?
well lean is not written in C, so simple buffer overflows will not work. It also has some resource limits, like maxHeartbeats for CPU, although I'm not sure about memory (you can limit recursion depths though). But I personally cannot think of any situation where lean would indicate proof as valid in case of resource exhaustion. In practice it's been verified by different people in different environments. We have machines with terabytes of memory and petabytes of NVME (that you can in principle use as swap) so I don't think we will hit hard limits any time soon.