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

Function is_app

lean_py/z3/core.py:2556–2558  ·  view source on GitHub ↗

True if a is a function application.

(a: object)

Source from the content-addressed store, hash-verified

2554
2555
2556def is_app(a: object) -> bool:
2557 """True if a is a function application."""
2558 return isinstance(a, ExprRef) and isinstance(a._ast, AppNode)
2559
2560
2561def is_func_decl(a: object) -> bool:

Callers 2

test_is_appMethod · 0.90
test_app_childrenMethod · 0.90

Calls

no outgoing calls

Tested by 2

test_is_appMethod · 0.72
test_app_childrenMethod · 0.72