Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: size on disk for teaching #4630

Open
PatrickMassot opened this issue Jul 2, 2024 · 0 comments
Open

RFC: size on disk for teaching #4630

PatrickMassot opened this issue Jul 2, 2024 · 0 comments
Labels
RFC Request for comments

Comments

@PatrickMassot
Copy link
Contributor

Proposal

This is somehow a meta-RFC that aims to track some general issue that probably involves several different technical questions. It is created in the context of providing the FRO with high priority issues. The general issue is the size of Lean and its libraries on disk.

This is especially relevant in teaching contexts. Two situations are common when teaching:

  • Students have personal computers with limited space.
  • Students use shared computers provided by their university with disk quotas.

In the second situation, one can sometimes work around the issue by using a shared copy of Mathlib, but this requires admin access for teachers. Teachers don’t have direct admin access and the official procedure to install things can take several months.

When using Lean 3, my students were able to follow my course with a Lean+mathlib folder weighting about 120Mb, and a copy of VSCode weighting 410Mb. Currently I have no idea how I will handle this in Lean 4. The naive idea of getting a Lean toolchain and a copy of Mathlib with olean files costs more than 5Gb (1 Gb for the Lean toolchain and 4Gb for Mathlib).

I don’t expect a single action to solve the issue. Some components may be:

  • Tools allowing to prune dependencies. Maybe this is partly a documentation issue and lake can already help with that. Basically I would like to easily say my teaching library only depends on a subset of Mathlib so that only this subset would take up space on disk for students.
  • Options allowing to store less information into olean files, as described in [RFC] optional smaller olean files #2328
  • Allowing to keep compressed oleans on disk, uncompressing them during import.

Impact

Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.

@PatrickMassot PatrickMassot added the RFC Request for comments label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request for comments
Projects
None yet
Development

No branches or pull requests

1 participant