Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ Nat
Function
Nat
lean_py/z3/core.py:1062–1064 ·
view source on GitHub ↗
(name: str)
Source
from the content-addressed store, hash-verified
1060
1061
1062
def
Nat(name: str) -> ArithRef:
1063
s = NatSort()
1064
return
ArithRef(_AstVar(name), s, frozenset([(name, s._ast_sort)]))
1065
1066
1067
def
Real(name: str) -> ArithRef:
Callers
12
test_forall_nat_succ
Method · 0.90
test_prove_nat_nonneg
Method · 0.90
test_is_arith
Method · 0.90
test_nat_var
Method · 0.90
test_nat_identity
Method · 0.90
test_nat_arith
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
nat_arithmetic
Function · 0.85
Calls
2
NatSort
Function · 0.85
ArithRef
Class · 0.85
Tested by
11
test_forall_nat_succ
Method · 0.72
test_prove_nat_nonneg
Method · 0.72
test_is_arith
Method · 0.72
test_nat_var
Method · 0.72
test_nat_identity
Method · 0.72
test_nat_arith
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