MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / kernel

Function kernel

tests/test_z3_compat.py:219–235  ·  view source on GitHub ↗
(example_lib)

Source from the content-addressed store, hash-verified

217
218@pytest.fixture(scope="module")
219def kernel(example_lib) -> Kernel:
220 k = Kernel(example_lib)
221 import subprocess
222 from pathlib import Path
223
224 sp = (
225 subprocess.check_output(
226 ["lake", "env", "printenv", "LEAN_PATH"],
227 cwd=str(Path(__file__).parent / "lean"),
228 )
229 .decode()
230 .strip()
231 )
232 k.init_search(sp)
233 k.load(["Init", "LeanPy.Z3"])
234 set_kernel(k)
235 return k
236
237
238# ------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

init_searchMethod · 0.95
loadMethod · 0.95
KernelClass · 0.90
set_kernelFunction · 0.90

Tested by

no test coverage detected