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

Method process

lean_py/kernel.py:381–386  ·  view source on GitHub ↗

Process Lean source code against the current environment. Returns a multi-line string of new constants per command, separated by ``\\n---\\n``.

(self, source: str)

Source from the content-addressed store, hash-verified

379 return s
380
381 def process(self, source: str) -> str:
382 """Process Lean source code against the current environment.
383
384 Returns a multi-line string of new constants per command, separated by
385 ``\\n---\\n``."""
386 return self._lib.leanpy_kernel_frontend_process(source)
387
388 def collect_sorrys(self, source: str) -> tuple[GoalState | None, str]:
389 """Extract all `sorry` placeholders in ``source`` as a draftable

Callers 2

mainFunction · 0.95

Calls

no outgoing calls

Tested by 1