Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ SetAdd
Function
SetAdd
lean_py/z3/core.py:3628–3630 ·
view source on GitHub ↗
Add element to set.
(s: ArrayRef, e: ExprRef)
Source
from the content-addressed store, hash-verified
3626
3627
3628
def
SetAdd(s: ArrayRef, e: ExprRef) -> ArrayRef:
3629
""
"Add element to set."
""
3630
return
Store(s, e, BoolVal(True))
3631
3632
3633
def
SetDel(s: ArrayRef, e: ExprRef) -> ArrayRef:
Callers
9
test_set_add
Method · 0.90
test_set_add
Method · 0.90
test_is_member
Method · 0.90
test_is_member_semantic
Method · 0.90
test_set_union
Method · 0.90
test_set_intersect
Method · 0.90
test_set_difference
Method · 0.90
test_is_subset
Method · 0.90
Singleton
Function · 0.85
Calls
2
Store
Function · 0.85
BoolVal
Function · 0.85
Tested by
8
test_set_add
Method · 0.72
test_set_add
Method · 0.72
test_is_member
Method · 0.72
test_is_member_semantic
Method · 0.72
test_set_union
Method · 0.72
test_set_intersect
Method · 0.72
test_set_difference
Method · 0.72
test_is_subset
Method · 0.72