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

Method test_is_const_var

tests/test_z3_compat.py:1045–1049  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1043 assert not is_array(Int("x"))
1044
1045 def test_is_const_var(self):
1046 assert is_const(Int("x"))
1047 assert is_var(Int("x"))
1048 x, y = Ints("x y")
1049 assert not is_const(x + y)
1050
1051 def test_is_quantifier(self):
1052 x = Int("x")

Callers

nothing calls this directly

Calls 4

is_constFunction · 0.90
IntFunction · 0.90
is_varFunction · 0.90
IntsFunction · 0.90

Tested by

no test coverage detected