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

Method test_ratval_construction

tests/test_z3_ported.py:578–583  ·  view source on GitHub ↗

Guide: Q(1, 3) creates 1/3.

(self)

Source from the content-addressed store, hash-verified

576 assert prove(claim)
577
578 def test_ratval_construction(self):
579 """Guide: Q(1, 3) creates 1/3."""
580 r = Q(1, 3)
581 assert is_real(r)
582 assert isinstance(r._ast, BinOpNode)
583 assert r._ast.op == BinOp.DIV
584
585 def test_ratval_structure(self):
586 """Q(a, b) creates a/b as division."""

Callers

nothing calls this directly

Calls 1

is_realFunction · 0.90

Tested by

no test coverage detected