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

Method test_function_vars

tests/test_z3_ported.py:1891–1898  ·  view source on GitHub ↗

Function and its arguments are tracked.

(self)

Source from the content-addressed store, hash-verified

1889 assert "y" in names
1890
1891 def test_function_vars(self):
1892 """Function and its arguments are tracked."""
1893 f = Function("f", IntSort(), IntSort())
1894 x = Int("x")
1895 app = f(x)
1896 names = {n for n, _ in app._vars}
1897 assert "f" in names
1898 assert "x" in names
1899
1900 def test_uninterpreted_sort_vars(self):
1901 """DeclareSort introduces a type variable."""

Callers

nothing calls this directly

Calls 3

FunctionFunction · 0.90
IntSortFunction · 0.90
IntFunction · 0.90

Tested by

no test coverage detected