Skip to content

[anneal] Reuse pre-built Lean artifacts in generated workspaces#3255

Open
joshlf wants to merge 1 commit intomainfrom
G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb
Open

[anneal] Reuse pre-built Lean artifacts in generated workspaces#3255
joshlf wants to merge 1 commit intomainfrom
G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb

Conversation

@joshlf
Copy link
Copy Markdown
Member

@joshlf joshlf commented Apr 13, 2026

Modify src/aeneas.rs to read lake-manifest.json from the Aeneas
directory and generate pinned require statements in lakefile.lean
pointing to the toolchain's .lake/packages directory.

This prevents Lake from re-downloading Mathlib and rebuilding Aeneas
in the generated workspace, significantly speeding up verification.
If a dependency listed in the manifest is missing from the toolchain,
we fail with a hard error asking the user to run setup again.


Latest Update: v2 — Compare vs v1

📚 Full Patch History

Links show the diff between the row version and the column version.

Version v1 Base
v2 vs v1 vs Base
v1 vs Base
⬇️ Download this PR

Branch

git fetch origin refs/heads/G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb && git checkout -b pr-G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb FETCH_HEAD

Checkout

git fetch origin refs/heads/G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb && git checkout FETCH_HEAD

Cherry Pick

git fetch origin refs/heads/G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb && git cherry-pick FETCH_HEAD

Pull

git pull origin refs/heads/G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb

Stacked PRs enabled by GHerrit.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Optimistically Approved: Changes appear scoped. Final strict verification will occur in the Merge Queue.

@joshlf joshlf enabled auto-merge April 13, 2026 13:09
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.88%. Comparing base (3b5a819) to head (234131c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3255   +/-   ##
=======================================
  Coverage   91.88%   91.88%           
=======================================
  Files          20       20           
  Lines        6076     6076           
=======================================
  Hits         5583     5583           
  Misses        493      493           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Modify `src/aeneas.rs` to read `lake-manifest.json` from the Aeneas
directory and generate pinned `require` statements in `lakefile.lean`
pointing to the toolchain's `.lake/packages` directory.

This prevents Lake from re-downloading Mathlib and rebuilding Aeneas
in the generated workspace, significantly speeding up verification.
If a dependency listed in the manifest is missing from the toolchain,
we fail with a hard error asking the user to run setup again.

gherrit-pr-id: G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb
@joshlf joshlf force-pushed the G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb branch from 0319d2f to 234131c Compare April 13, 2026 15:59
@joshlf joshlf disabled auto-merge April 13, 2026 15:59
Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 Optimistically Approved: Changes appear scoped. Final strict verification will occur in the Merge Queue.

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.

2 participants