OPE-2: Lean 4.10.0 user-local install on macOS + Mathlib cache relink workaround - #2
Open
agentforce314 wants to merge 1 commit into
Open
agentforce314 wants to merge 1 commit into
agentforce314 wants to merge 1 commit into
Conversation
…relink workaround - elan 4.2.4 / lean 4.10.0 / lake installed under ~/.elan (no PATH edits, no sudo) - lake exe cache get crashed (dyld SG_READ_ONLY, old bundled lld); added docs/ci/relink-mathlib-cache-macos.sh which re-links `cache` with Apple ld - verify: export PATH="$HOME/.elan/bin:$PATH"; cd proofs/lean-project; lake build ProofLab.NQueens (exit 0)
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.
Summary
Board asked on OPE-2: "can you install lean and other tools?" — done, user-local only.
elan4.2.4 →lean4.10.0 /lake5.0.0 under~/.elan(nosudo, no shell-rc edits;export PATH="$HOME/.elan/bin:$PATH"per shell).oleanfrom cache (100%)lake exe cache getaborted withdyld: __DATA_CONST segment missing SG_READ_ONLY flag(Lean 4.10.0's bundledld64.lldvs macOS 26 dyld). Addeddocs/ci/relink-mathlib-cache-macos.sh, which re-linkscachewith Apple'sld. Documented indocs/LEAN_INSTALL_LOG.md(new macOS section).How to verify
#print axiomson the three Level A theorems:[propext, Classical.choice, Quot.sound].Risks
lean_exetargets (e.g.proof-labfromMain.lean) linked on this machine will hit the same dyld issue; libraries (.olean) are unaffected. Uselake build ProofLab.<Module>as the gate.🤖 Generated with Claude Code