Serialise the goal state to disk via Lean's ``saveModuleData``. Round-trips with :meth:`Kernel.goal_unpickle`. Raises on error.
(self, path: str)
| 178 | # ---- pickling ---------------------------------------------------------- |
| 179 | |
| 180 | def pickle(self, path: str) -> None: |
| 181 | """Serialise the goal state to disk via Lean's ``saveModuleData``. |
| 182 | Round-trips with :meth:`Kernel.goal_unpickle`. Raises on error.""" |
| 183 | err = self._kernel._lib.leanpy_kernel_goal_pickle(self._handle, str(path)) |
| 184 | if err: |
| 185 | raise RuntimeError(f"goal pickle failed: {err}") |
| 186 | |
| 187 | # ---- resume / continue / replay / subsume ------------------------------ |
| 188 |
no outgoing calls