Conversation
Collaborator
|
Reference manual CI status:
|
|
Mathlib CI status (docs):
|
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Aug 29, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Aug 29, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Aug 29, 2026
tydeu
force-pushed
the
lake/ir-arts
branch
2 times, most recently
from
August 29, 2026 01:51
45e7ece to
14bc481
Compare
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Aug 29, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Aug 29, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Aug 29, 2026
tydeu
marked this pull request as ready for review
August 29, 2026 03:14
tydeu
commented
Aug 29, 2026
Comment on lines
+94
to
+96
| -- As the environment imports the module to compile, it does not inherit its package. | ||
| -- Take it from the setup. | ||
| let env := env.setModulePackage setup.package? |
Member
Author
There was a problem hiding this comment.
@Kha This changes non-Lake code and is thus probably the bit that most needs your review.
Member
There was a problem hiding this comment.
The comment confused me at first, it made it sound like an importModules edge case when processHeaderCore is the one otherwise setting this field. No comment needed I think, just like for setMainModule
tydeu
commented
Aug 29, 2026
Kha
approved these changes
Aug 31, 2026
Comment on lines
+94
to
+96
| -- As the environment imports the module to compile, it does not inherit its package. | ||
| -- Take it from the setup. | ||
| let env := env.setModulePackage setup.package? |
Member
There was a problem hiding this comment.
The comment confused me at first, it made it sound like an importModules edge case when processHeaderCore is the one otherwise setting this field. No comment needed I think, just like for setMainModule
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Aug 31, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Aug 31, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Aug 31, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Aug 31, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Aug 31, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Aug 31, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Sep 1, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Sep 1, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Sep 1, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Sep 5, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Sep 5, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Sep 5, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Sep 5, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Sep 5, 2026
leanprover-bot
added a commit
to leanprover/reference-manual
that referenced
this pull request
Sep 5, 2026
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR splits
leanircode generation into a separate Lake job and target . TheleanArtsfacet on modules and libraries id deprecated and replaced with two distinct facets:elabArtsandirArts. For backwards compatibility, uses ofleanArtsdelegate toirArts.When the Lean option
compiler.postponeCompileris enabled, only*.oleanfiles are produced by the initial Lean elaboration (elabArts). Code generation then occurs in the subsequentirArtsjob that callsleanirto emit.c,.ir, and.ir.sigfiles for the module. This job traces solely the.ir.sigfiles of the import graph (along with module's own elaboration results) and only needs to rehuild when they change.Because
#evalin the server needs IR, and Lake does not currently distinguish between server and CLI builds, module elaboration still waits for the IR of its imports to be built. However, this is now more clearly demarcated in the code byfetchExportInfoand could evolve in the future if a separateserverExportInfois developed.A test of postponed compilation is added as
moduleCodegen.Split from #13169.