Zulip Chat Archive
Stream: general
Topic: desktop processors for using lean and other proof assistants
Bulhwi Cha (Dec 22 2025 at 04:08):
Do you think the Intel Core i7-9700 processor will remain powerful enough for building and testing Lean projects? I've used it for five years, and I'm planning to upgrade it in two or three years.
Gavin Zhao (Dec 22 2025 at 16:41):
Your current CPU's 3.0GHz base frequency is good enough. If you often build super large projects (like mathlib) from scratch, you might need more cores/threads, but for most purposes 8 threads is enough.
Gavin Zhao (Dec 22 2025 at 16:41):
I've found that RAM size is much more important to me than my CPU. You're much more likely to be limited by Lean files that take up several GB of RAM each when opened. You should monitor your RAM usage to see the files that you typically open and check if you need to upgrade the RAM.
Gavin Zhao (Dec 22 2025 at 16:43):
(my usecase requires me to have multiple files opened side-by-side, and each file I open in Lean InfoView sits there in RAM even after I close the file in my editor unless, uh, I don't even know how to tell the Lean LSP to drop it)
Bulhwi Cha (Dec 23 2025 at 07:31):
One of my Lean files imports Mathlib.Data.Set.Basic and contains two theorems I wrote. It takes up 861 MiB of RAM. Can someone explain the reason for this? I'm just curious.
My Lean file
Michael Rothgang (Dec 23 2025 at 09:19):
Data point: in October, I learned that 8 GB of RAM were not enough to reliably do import Mathlib in a project depending on mathlib without making your computer run out of memory. The module system and other fixes have helped somewhat (resp. will, if your project also uses the module system) --- but I wouldn't base my RAM choices on this. Go for at least 16GB of RAM, and even better 32 if you easily can.
Gavin Zhao (Dec 23 2025 at 17:16):
Bulhwi Cha said:
One of my Lean files imports
Mathlib.Data.Set.Basicand contains two theorems I wrote. It takes up 861 MiB of RAM. Can someone explain the reason for this? I'm just curious.My Lean file
My guess is that Lean LSP has loaded Prelude + all the transitive imports of Mathlib.Data.Set.Basic into RAM...
Gavin Zhao (Dec 23 2025 at 17:17):
Go for at least 16GB of RAM, and even better 32 if you easily can.
An unfortunate time to buy new RAM :sweat_smile:
Bulhwi Cha (Dec 24 2025 at 03:15):
I have a pair of 16 GB DDR4 RAM, and I guess I'll have to use it for the next few years. I was only able to upgrade my graphics card. :smiling_face_with_tear:
Bulhwi Cha (Dec 24 2025 at 06:23):
Does Lean require more memory than other proof assistants like Rocq, Agda, Isabelle, and Metamath One?
Martin Dvořák (Dec 24 2025 at 18:29):
Gavin Zhao said:
I've found that RAM size is much more important to me than my CPU. You're much more likely to be limited by Lean files that take up several GB of RAM each when opened. You should monitor your RAM usage to see the files that you typically open and check if you need to upgrade the RAM.
Yes, but at a certain point, more RAM will not help, whereäs faster CPU will continuously help.
Last updated: Feb 28 2026 at 14:05 UTC