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

Function Empty

lean_py/z3/core.py:3923–3931  ·  view source on GitHub ↗

Empty sequence / set.

(s: SortRef)

Source from the content-addressed store, hash-verified

3921
3922
3923def Empty(s: SortRef) -> ExprRef:
3924 """Empty sequence / set."""
3925 if isinstance(s, StringSortRef):
3926 return StringVal("")
3927 if isinstance(s, ArraySortRef):
3928 return EmptySet(s.domain())
3929 if isinstance(s, SeqSortRef):
3930 return SeqRef(SeqEmptyNode(s._elem._ast_sort), s)
3931 return StringVal("")
3932
3933
3934def Full(s: SortRef) -> ExprRef:

Callers 2

test_empty_stringMethod · 0.90
test_empty_seqMethod · 0.90

Calls 5

SeqEmptyNodeClass · 0.90
StringValFunction · 0.85
EmptySetFunction · 0.85
SeqRefClass · 0.85
domainMethod · 0.45

Tested by 2

test_empty_stringMethod · 0.72
test_empty_seqMethod · 0.72