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

Method test_nat_induction_base

tests/test_z3_semantic.py:1409–1411  ·  view source on GitHub ↗

Base case of a simple property: 0 + 0 = 0.

(self, kernel)

Source from the content-addressed store, hash-verified

1407 assert _try_prove(And(enc >= IntVal(0), enc <= IntVal(1)))
1408
1409 def test_nat_induction_base(self, kernel):
1410 """Base case of a simple property: 0 + 0 = 0."""
1411 assert _try_prove(NatVal(0) + NatVal(0) == NatVal(0))
1412
1413 def test_power_of_two_bv(self, kernel):
1414 """2^4 = 16 in 8-bit bitvectors."""

Callers

nothing calls this directly

Calls 2

_try_proveFunction · 0.90
NatValFunction · 0.90

Tested by

no test coverage detected