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

Function positive_increment

examples/06_effectful_verifier/python/main.py:47–51  ·  view source on GitHub ↗
(x: Annotated[int, Gt(0)])

Source from the content-addressed store, hash-verified

45
46
47def positive_increment(x: Annotated[int, Gt(0)]):
48 y = x + 3
49 assert_refined(y, Gt(3)) # x > 0 → x + 3 > 3 ✓
50 z = x + 10
51 assert_refined(z, Gt(10)) # x > 0 → x + 10 > 10 ✓
52
53
54assert verify(positive_increment)

Callers

nothing calls this directly

Calls 2

GtClass · 0.90
assert_refinedFunction · 0.90

Tested by

no test coverage detected