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

Method test_ite_true_branch

tests/test_z3_semantic.py:278–281  ·  view source on GitHub ↗

If(True, a, b) = a

(self, kernel)

Source from the content-addressed store, hash-verified

276 assert _try_prove(Implies(Implies(Implies(p, q), p), p))
277
278 def test_ite_true_branch(self, kernel):
279 """If(True, a, b) = a"""
280 a, b = Bool("a"), Bool("b")
281 assert _try_prove(If(BoolVal(True), a, b) == a)
282
283 def test_ite_false_branch(self, kernel):
284 """If(False, a, b) = b"""

Callers

nothing calls this directly

Calls 4

BoolFunction · 0.90
_try_proveFunction · 0.90
IfFunction · 0.90
BoolValFunction · 0.90

Tested by

no test coverage detected