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

Method test_set_union

tests/test_z3_compat.py:2000–2006  ·  view source on GitHub ↗

SetUnion creates an array expression.

(self)

Source from the content-addressed store, hash-verified

1998 assert _try_prove(claim)
1999
2000 def test_set_union(self):
2001 """SetUnion creates an array expression."""
2002
2003 a = SetAdd(EmptySet(IntSort()), IntVal(1))
2004 b = SetAdd(EmptySet(IntSort()), IntVal(2))
2005 u = SetUnion(a, b)
2006 assert isinstance(u, ExprRef)
2007
2008 def test_set_intersect(self):
2009 """SetIntersect creates an array expression."""

Callers

nothing calls this directly

Calls 5

SetAddFunction · 0.90
EmptySetFunction · 0.90
IntSortFunction · 0.90
IntValFunction · 0.90
SetUnionFunction · 0.90

Tested by

no test coverage detected