Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ RatVal
Function
RatVal
lean_py/z3/core.py:1714–1716 ·
view source on GitHub ↗
Rational value a/b as Real division.
(a: int, b: int)
Source
from the content-addressed store, hash-verified
1712
1713
1714
def
RatVal(a: int, b: int) -> RatNumRef:
1715
""
"Rational value a/b as Real division."
""
1716
return
RatNumRef(a, b)
1717
1718
1719
Q = RatVal
Callers
15
test_ratval_is_real
Method · 0.90
test_ratval_structure
Method · 0.90
test_ratval_returns_ratnumref
Method · 0.90
test_numerator
Method · 0.90
test_denominator
Method · 0.90
test_numerator_as_long
Method · 0.90
test_denominator_as_long
Method · 0.90
test_as_fraction
Method · 0.90
test_as_string
Method · 0.90
test_as_long
Method · 0.90
test_ratval_creates_division
Method · 0.90
test_ratval_sort
Method · 0.90
Calls
1
RatNumRef
Class · 0.85
Tested by
13
test_ratval_is_real
Method · 0.72
test_ratval_structure
Method · 0.72
test_ratval_returns_ratnumref
Method · 0.72
test_numerator
Method · 0.72
test_denominator
Method · 0.72
test_numerator_as_long
Method · 0.72
test_denominator_as_long
Method · 0.72
test_as_fraction
Method · 0.72
test_as_string
Method · 0.72
test_as_long
Method · 0.72
test_ratval_creates_division
Method · 0.72
test_ratval_sort
Method · 0.72