fix: keep `findOLean`'s root cache valid across `withImportModules` This PR fixes a segfault when `withImportModules` is called a second time in one process and the imported module imports another package root, a regression from #15291. `findOLean` cached package roots keyed by `Name`s that may live in an imported `.olean` region, which `withImportModules` frees after use. The cache now stores `Runtime.deepCopy`s of these names. Fixes #16267 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.