-
Notifications
You must be signed in to change notification settings - Fork 432
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
feat: importModules
without loading environment extensions
#6325
base: master
Are you sure you want to change the base?
Conversation
Mathlib CI status (docs):
|
570f669
to
81447dd
Compare
@Kha Also, what is the reason for privatizing EDIT: Personally, I would suggest splitting |
But we're not loading any non-builtin extensions when initializers are disabled, as discussed before.
So |
Agreed, this would be really annoying. I am calling that function in lean4lean, this will need me to copy paste a lot of code. |
81447dd
to
0c4532f
Compare
I didn't reply to that part because I was already reverting it :) |
True, so it is currently safe. It does mean that we have to continually be careful to not introduce any opportunity for arbitrary I/O in a
Sorry, I should have been more specific. Only loading plugins in Lean code (via |
@digama0 Actually could you explain what |
0c4532f
to
542c80d
Compare
cb6d977
to
8e6f0cc
Compare
8e6f0cc
to
e5b8ce6
Compare
I forget all the details, but looking at it now it seems to be a one-step unrolling of |
This PR ensures that environments can be loaded, repeatedly, without executing arbitrary code