Commit 2026-07-29 12:40 d160677f
View on Github →chore(Archive): convert to the module system (#42010) This is just a general good practice these days. Two specific reasons are:
- the module system makes thing faster, for example by reducing how much stuff has to be imported.
- In the long run, we want to only support the module system, and not any non-module system uses of mathlib. #41950 signals this. That way, we can use no_expose, without needing to worry about uses without the module system where the definition will be exposed anyways.
The migration is mostly mechanical, akin to what
modulize.leanwould do: make all importspublic, and add@[expose] public sectionat the beginning of each file. (In a few cases of files without definitions, omit the expose attribute.) Inspired by #36236; re-done by hand. All files omitted there are actually fine to hand-convert.