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

Method __mod__

lean_py/z3/core.py:477–480  ·  view source on GitHub ↗
(self, other: ArithRef | int | float)

Source from the content-addressed store, hash-verified

475 return self._binop(op, other)
476
477 def __mod__(self, other: ArithRef | int | float) -> ArithRef:
478 # Int uses Euclidean mod (SMT-LIB), Real uses normal mod
479 op = BinOp.EMOD if isinstance(self._sort._ast_sort, IntASTSort) else BinOp.MOD
480 return self._binop(op, other)
481
482 def __rtruediv__(self, other: int | float) -> ArithRef:
483 op = BinOp.EDIV if isinstance(self._sort._ast_sort, IntASTSort) else BinOp.DIV

Callers

nothing calls this directly

Calls 1

_binopMethod · 0.95

Tested by

no test coverage detected