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

Method __neg__

lean_py/z3/core.py:518–523  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

516 return isinstance(self._sort._ast_sort, RealASTSort)
517
518 def __neg__(self) -> ArithRef:
519 return ArithRef(
520 UnOpNode(UnOp.NEG, self._ast),
521 self._sort, # type: ignore[arg-type]
522 self._vars,
523 )
524
525 def __lt__(self, other: ArithRef | int | float) -> BoolRef:
526 other = _coerce_arith(other, self._sort)

Callers

nothing calls this directly

Calls 2

UnOpNodeClass · 0.90
ArithRefClass · 0.85

Tested by

no test coverage detected