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

Method test_bool_biimplication

tests/test_z3_ported.py:525–529  ·  view source on GitHub ↗

(p == q) == And(Implies(p,q), Implies(q,p))

(self, kernel)

Source from the content-addressed store, hash-verified

523 assert prove(claim)
524
525 def test_bool_biimplication(self, kernel):
526 """(p == q) == And(Implies(p,q), Implies(q,p))"""
527 p, q = Bools("p q")
528 claim = ForAll([p, q], (p == q) == And(Implies(p, q), Implies(q, p)))
529 assert prove(claim)
530
531 def test_modus_ponens(self, kernel):
532 """If p and p => q, then q."""

Callers

nothing calls this directly

Calls 5

BoolsFunction · 0.90
ForAllFunction · 0.90
AndFunction · 0.90
ImpliesFunction · 0.90
proveFunction · 0.90

Tested by

no test coverage detected