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

Function test_goal_try_define_with_value

tests/test_kernel_extra.py:159–162  ·  view source on GitHub ↗
(kernel)

Source from the content-addressed store, hash-verified

157
158
159def test_goal_try_define_with_value(kernel):
160 state = kernel.goal_create("∀ n : Nat, n + 0 = n")
161 res = state.try_define("h", "(0 : Nat)")
162 assert res.status in {"success", "invalidAction", "failure", "parseError"}
163
164
165def test_goal_try_draft_with_sorry(kernel):

Callers

nothing calls this directly

Calls 2

goal_createMethod · 0.80
try_defineMethod · 0.80

Tested by

no test coverage detected