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

Function kernel

tests/test_z3_semantic.py:116–131  ·  view source on GitHub ↗
(example_lib)

Source from the content-addressed store, hash-verified

114
115@pytest.fixture(scope="module")
116def kernel(example_lib) -> Kernel:
117 k = Kernel(example_lib)
118 import subprocess
119
120 sp = (
121 subprocess.check_output(
122 ["lake", "env", "printenv", "LEAN_PATH"],
123 cwd=str(Path(__file__).parent / "lean"),
124 )
125 .decode()
126 .strip()
127 )
128 k.init_search(sp)
129 k.load(["Init", "LeanPy.Z3"])
130 set_kernel(k)
131 return k
132
133
134# ===================================================================

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