Skip to content

chore: move to the module system - #406

Open
grunweg wants to merge 6 commits into
avigad:masterfrom
grunweg:modulize
Open

grunweg wants to merge 6 commits into
avigad:masterfrom
grunweg:modulize

Conversation

@grunweg

@grunweg grunweg commented Aug 3, 2026

Copy link
Copy Markdown

See Zulip discussion:
While MIL's files are independent (each file only imports a Common file, and mathlib), so hiding definitions made in this project is less relevant, the module system offers one clear advantage: the memory footprint to import (parts of) mathlib is much lower. Hopefully, this will allow users with not as much RAM to use MIL for a little while longer.

Most changes are very mechanical. A few files need public section added, as they make new definitions.
One file should use @[expose] (as it uses a proof by rfl, as explained in its commit message).
A third file needs to meta import two mathlib files to run #eval.

grunweg added 4 commits August 3, 2026 11:00
- Some results need to be public, so add public section (that seems innuous enough)
- one proof by `rfl` is only so when definitions are exposed
  (otherwise, `(rfl)` would suffice)
  I'll assume you don't want to teach the difference here, so just expose the
  definitions and move on.
Comment thread MIL/C06_Discrete_Mathematics/S01_Finsets_and_Fintypes.lean Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant