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

Method test_excluded_middle

tests/test_z3_ported.py:513–517  ·  view source on GitHub ↗

p ∨ ¬p is always true.

(self, kernel)

Source from the content-addressed store, hash-verified

511 assert prove(claim)
512
513 def test_excluded_middle(self, kernel):
514 """p ∨ ¬p is always true."""
515 p = Bool("p")
516 claim = ForAll([p], Or(p, Not(p)))
517 assert prove(claim)
518
519 def test_xor_definition(self, kernel):
520 """Xor(p,q) == And(Or(p,q), Not(And(p,q)))"""

Callers

nothing calls this directly

Calls 5

BoolFunction · 0.90
ForAllFunction · 0.90
OrFunction · 0.90
NotFunction · 0.90
proveFunction · 0.90

Tested by

no test coverage detected