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

Method test_nat_nonneg

tests/test_z3_semantic.py:417–419  ·  view source on GitHub ↗
(self, kernel)

Source from the content-addressed store, hash-verified

415 assert _try_prove(Implies(And(x <= y, y <= x), x == y))
416
417 def test_nat_nonneg(self, kernel):
418 n = Nat("n")
419 assert _try_prove(n >= NatVal(0))
420
421 def test_nat_succ_pos(self, kernel):
422 n = Nat("n")

Callers

nothing calls this directly

Calls 3

NatFunction · 0.90
_try_proveFunction · 0.90
NatValFunction · 0.90

Tested by

no test coverage detected