After nine months of design, implementation, and orchestration, Lean's new module system I have been working on is now live in 4.26.0-rc1 and adopted throughout Mathlib. By introducing a system for checked and enforced API boundaries between files, it allows for changing proofs and other non-public information without any downstream rebuilds and drastically reduces the memory footprint of Mathlib imports to the lowest value ever since it was ported to Lean 4 two years ago.

leanprover.zulipchat.com/#narr

Graph of Mathlib build memory usage showing continuous growth to 5.8GB over the last two years followed by a fall to 3.2GB from switching to the module system.
0
0
0

If you have a fediverse account, you can quote this note from your own instance. Search https://functional.cafe/users/kha/statuses/115576636643482214 on your instance and quote it. (Note that quoting is not supported in Mastodon.)