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

Method test_bv_and_self

tests/test_z3_ported.py:679–683  ·  view source on GitHub ↗

x & x == x.

(self, kernel)

Source from the content-addressed store, hash-verified

677 assert prove(claim)
678
679 def test_bv_and_self(self, kernel):
680 """x & x == x."""
681 x = BitVec("x", 8)
682 claim = ForAll([x], (x & x) == x)
683 assert prove(claim)
684
685 def test_bv_or_self(self, kernel):
686 """x | x == x."""

Callers

nothing calls this directly

Calls 3

BitVecFunction · 0.90
ForAllFunction · 0.90
proveFunction · 0.90

Tested by

no test coverage detected