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

Method test_bv_add_zero

tests/test_z3_ported.py:697–701  ·  view source on GitHub ↗

x + 0 == x.

(self, kernel)

Source from the content-addressed store, hash-verified

695 assert prove(claim)
696
697 def test_bv_add_zero(self, kernel):
698 """x + 0 == x."""
699 x = BitVec("x", 8)
700 claim = ForAll([x], x + BitVecVal(0, 8) == x)
701 assert prove(claim)
702
703 def test_bv_sub_self(self, kernel):
704 """x - x == 0."""

Callers

nothing calls this directly

Calls 4

BitVecFunction · 0.90
ForAllFunction · 0.90
BitVecValFunction · 0.90
proveFunction · 0.90

Tested by

no test coverage detected