Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ is_const
Function
is_const
lean_py/z3/core.py:2486–2487 ·
view source on GitHub ↗
(a: ExprRef)
Source
from the content-addressed store, hash-verified
2484
2485
2486
def
is_const(a: ExprRef) -> bool:
2487
return
isinstance(a._ast, _AstVar)
2488
2489
2490
def
is_var(a: ExprRef) -> bool:
Callers
3
test_is_const_var
Method · 0.90
test_is_const_var
Method · 0.90
test_fresh_const_is_var
Method · 0.90
Calls
no outgoing calls
Tested by
3
test_is_const_var
Method · 0.72
test_is_const_var
Method · 0.72
test_fresh_const_is_var
Method · 0.72