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

Method test_sdiv_by_one

tests/test_z3_ported.py:722–726  ·  view source on GitHub ↗

Signed division by 1: SDiv(x, 1) == x.

(self, kernel)

Source from the content-addressed store, hash-verified

720 assert prove(claim)
721
722 def test_sdiv_by_one(self, kernel):
723 """Signed division by 1: SDiv(x, 1) == x."""
724 x = BitVec("x", 8)
725 claim = ForAll([x], SDiv(x, 1) == x)
726 assert prove(claim)
727
728 def test_concat_extract_roundtrip(self, kernel):
729 """Extract(7,4, Concat(a,b)) == a for 4-bit a, b."""

Callers

nothing calls this directly

Calls 4

BitVecFunction · 0.90
ForAllFunction · 0.90
SDivFunction · 0.90
proveFunction · 0.90

Tested by

no test coverage detected