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

Function Singleton

lean_py/z3/core.py:3714–3718  ·  view source on GitHub ↗

Create a singleton set containing e.

(e: ExprRef, sort: SortRef | None = None)

Source from the content-addressed store, hash-verified

3712
3713
3714def Singleton(e: ExprRef, sort: SortRef | None = None) -> ArrayRef:
3715 """Create a singleton set containing e."""
3716 if sort is None:
3717 sort = e._sort
3718 return SetAdd(EmptySet(sort), e)
3719
3720
3721def FiniteSetSize(s: ArrayRef) -> ArithRef:

Callers

nothing calls this directly

Calls 2

SetAddFunction · 0.85
EmptySetFunction · 0.85

Tested by

no test coverage detected