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

Method test_is_subset

tests/test_z3_compat.py:2030–2037  ·  view source on GitHub ↗

IsSubset creates a BoolRef.

(self)

Source from the content-addressed store, hash-verified

2028 assert isinstance(d, ExprRef)
2029
2030 def test_is_subset(self):
2031 """IsSubset creates a BoolRef."""
2032 from lean_py.z3 import BoolRef
2033
2034 a = EmptySet(IntSort())
2035 b = SetAdd(EmptySet(IntSort()), IntVal(1))
2036 s = IsSubset(a, b)
2037 assert isinstance(s, BoolRef)
2038
2039
2040# ------------------------------------------------------------------

Callers

nothing calls this directly

Calls 5

EmptySetFunction · 0.90
IntSortFunction · 0.90
SetAddFunction · 0.90
IntValFunction · 0.90
IsSubsetFunction · 0.90

Tested by

no test coverage detected