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

Method test_realval_integer

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

Source from the content-addressed store, hash-verified

453 assert _try_prove(-Q(1, 3) + Q(1, 3) == Q(0, 1))
454
455 def test_realval_integer(self, kernel):
456 assert _try_prove(RealVal(5) == ToReal(IntVal(5)))
457
458 def test_realval_float_half(self, kernel):
459 """0.5 as a Real should equal 1/2."""

Callers

nothing calls this directly

Calls 4

_try_proveFunction · 0.90
RealValFunction · 0.90
ToRealFunction · 0.90
IntValFunction · 0.90

Tested by

no test coverage detected