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

Method find_source_path

lean_py/kernel.py:374–379  ·  view source on GitHub ↗

Locate the ``.lean`` source file for ``module_name``.

(self, module_name: str)

Source from the content-addressed store, hash-verified

372 # -- frontend --------------------------------------------------------
373
374 def find_source_path(self, module_name: str) -> str:
375 """Locate the ``.lean`` source file for ``module_name``."""
376 s = self._lib.leanpy_kernel_frontend_find_source_path(module_name)
377 if s.startswith("<error:"):
378 raise RuntimeError(s)
379 return s
380
381 def process(self, source: str) -> str:
382 """Process Lean source code against the current environment.

Calls

no outgoing calls