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

Method add

lean_py/z3/solver.py:813–815  ·  view source on GitHub ↗
(self, *args: BoolRef)

Source from the content-addressed store, hash-verified

811 self._objectives: list[tuple[str, ExprRef]] = []
812
813 def add(self, *args: BoolRef) -> None:
814 for a in args:
815 self._assertions.append(a)
816
817 def maximize(self, expr: ExprRef) -> int:
818 """Add maximization objective (returns handle index)."""

Callers 2

test_addMethod · 0.95
test_reprMethod · 0.95

Calls

no outgoing calls

Tested by 2

test_addMethod · 0.76
test_reprMethod · 0.76