Skip to content

Add missing Regex static lib to managed project#5

Merged
kiranandcode merged 1 commit into
mainfrom
fix-regex-link
May 22, 2026
Merged

Add missing Regex static lib to managed project#5
kiranandcode merged 1 commit into
mainfrom
fix-regex-link

Conversation

@kiranandcode
Copy link
Copy Markdown
Collaborator

Summary

  • Pantograph depends on lean-regex, which exports symbols the managed shared library needs at dlopen time. The managed lakefile was missing Regex/Regex:static from moreLinkObjs, causing symbol not found in flat namespace on load. Matches tests/lean/lakefile.toml.

Test plan

  • rm -rf ~/.lean_py/managed/*
  • uv pip install "lean_py @ git+https://github.com/BasisResearch/lean.py"
  • python -c "from lean_py.z3 import *; x, y = Ints('x y'); prove(Implies(And(x > 0, y > 0), x + y > 0))"

Pantograph depends on lean-regex, which exports symbols that the
managed shared library needs at dlopen time. Without it, the dylib
loads fail with undefined symbol errors. Matches tests/lean/lakefile.toml.
@kiranandcode kiranandcode merged commit 5b09227 into main May 22, 2026
2 checks passed
@kiranandcode kiranandcode deleted the fix-regex-link branch May 22, 2026 16:12
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.

1 participant