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

Method goal_create

lean_py/kernel.py:341–345  ·  view source on GitHub ↗

Create a new goal state from a type expression string. Raises ``LeanError`` on parse / elaboration failure.

(self, type_str: str)

Source from the content-addressed store, hash-verified

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

Calls 1

GoalStateClass · 0.85