Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ NatVal
Function
NatVal
lean_py/z3/core.py:1139–1140 ·
view source on GitHub ↗
(n: int)
Source
from the content-addressed store, hash-verified
1137
1138
1139
def
NatVal(n: int) -> IntNumRef:
1140
return
IntNumRef(NatLit(n), NatSort())
1141
1142
1143
def
RealVal(n: int | float | str) -> ArithRef:
Callers
9
test_natval
Method · 0.90
test_natval_returns_intnumref
Method · 0.90
test_val_constructors
Method · 0.90
test_nat_nonneg
Method · 0.90
test_nat_succ_pos
Method · 0.90
test_nat_nonneg
Method · 0.90
test_square_nonneg
Method · 0.90
test_nat_has_predecessor
Method · 0.90
test_nat_induction_base
Method · 0.90
Calls
3
NatLit
Class · 0.90
IntNumRef
Class · 0.85
NatSort
Function · 0.85
Tested by
9
test_natval
Method · 0.72
test_natval_returns_intnumref
Method · 0.72
test_val_constructors
Method · 0.72
test_nat_nonneg
Method · 0.72
test_nat_succ_pos
Method · 0.72
test_nat_nonneg
Method · 0.72
test_square_nonneg
Method · 0.72
test_nat_has_predecessor
Method · 0.72
test_nat_induction_base
Method · 0.72