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

Function FreshInt

lean_py/z3/core.py:2158–2162  ·  view source on GitHub ↗

Create a fresh integer constant.

(prefix: str = "x")

Source from the content-addressed store, hash-verified

2156
2157
2158def FreshInt(prefix: str = "x") -> ArithRef:
2159 """Create a fresh integer constant."""
2160 r = FreshConst(IntSort(), prefix)
2161 assert isinstance(r, ArithRef)
2162 return r
2163
2164
2165def FreshBool(prefix: str = "b") -> BoolRef:

Callers 4

test_fresh_int_uniqueMethod · 0.90
test_fresh_in_loopMethod · 0.90
test_fresh_intMethod · 0.90

Calls 2

FreshConstFunction · 0.85
IntSortFunction · 0.85

Tested by 4

test_fresh_int_uniqueMethod · 0.72
test_fresh_in_loopMethod · 0.72
test_fresh_intMethod · 0.72