This is the root file in Mathlib: it is imported by virtually all Mathlib files. For this reason, the imports of this files are carefully curated. Any modification involving a change in the imports of this file should be discussed beforehand.
Here are some general guidelines:
- no bucket imports (e.g.
Batteries
/Lean
/etc); - every import needs to have a comment explaining why the import is there;
- strong preference for avoiding files that themselves have imports beyond
Lean
, and any exception to this rule should by accompanied by a comment explaining the transitive imports.
Linters #
All syntax linters defined in Mathlib which are active by default are imported here. Syntax linters need to be imported to take effect, hence we would like them to be imported as early as possible.
All linters imported here have no bulk imports; Not imported in this file are
- the text-based linters in
Linters/TextBased.lean
, as they can be imported later - the
minImports
linter, as that is still disabled by default. - the
haveLet
linter, as it is currently disabled by default