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

Function BoolVector

lean_py/z3/core.py:1732–1734  ·  view source on GitHub ↗

Create a vector of ``sz`` boolean variables.

(prefix: str, sz: int)

Source from the content-addressed store, hash-verified

1730
1731
1732def BoolVector(prefix: str, sz: int) -> list[BoolRef]:
1733 """Create a vector of ``sz`` boolean variables."""
1734 return [Bool(f"{prefix}__{i}") for i in range(sz)]
1735
1736
1737def RealVector(prefix: str, sz: int) -> list[ArithRef]:

Callers 4

test_bool_vectorMethod · 0.90
test_vector_zeroMethod · 0.90
test_atmostMethod · 0.90
test_atleastMethod · 0.90

Calls 1

BoolFunction · 0.85

Tested by 4

test_bool_vectorMethod · 0.72
test_vector_zeroMethod · 0.72
test_atmostMethod · 0.72
test_atleastMethod · 0.72