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)
| 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 |
no outgoing calls