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

Method goal_create_expr

lean_py/kernel.py:347–351  ·  view source on GitHub ↗

Create a new goal state from a ``Lean.Expr`` object. Raises ``LeanError`` on type-check failure.

(self, expr: Any)

Source from the content-addressed store, hash-verified

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
349 ``LeanError`` on type-check failure."""
350 handle = self._lib.z3_goal_create_expr(expr)
351 return GoalState(self, handle)
352
353 def goal_unpickle(self, path: str) -> GoalState:
354 """Load a goal state previously serialised with :meth:`GoalState.pickle`."""

Callers 2

_try_proveFunction · 0.80
applyMethod · 0.80

Calls 1

GoalStateClass · 0.85

Tested by

no test coverage detected