Create a new goal state from a type expression string. Raises ``LeanError`` on parse / elaboration failure.
(self, type_str: str)
| 339 | # -- goal state ------------------------------------------------------ |
| 340 | |
| 341 | def goal_create(self, type_str: str) -> GoalState: |
| 342 | """Create a new goal state from a type expression string. Raises |
| 343 | ``LeanError`` on parse / elaboration failure.""" |
| 344 | handle = self._lib.leanpy_kernel_goal_create(type_str) |
| 345 | return GoalState(self, handle) |
| 346 | |
| 347 | def goal_create_expr(self, expr: Any) -> GoalState: |
| 348 | """Create a new goal state from a ``Lean.Expr`` object. Raises |