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

Function mk_nat

examples/05_knuckledragger/python/main.py:38–45  ·  view source on GitHub ↗
(n: int)

Source from the content-addressed store, hash-verified

36 return Expr.const(mk_name(s), [])
37
38 def mk_nat(n: int):
39 return Expr.app(
40 Expr.app(
41 Expr.app(mk_const("OfNat.ofNat"), mk_const("Nat")),
42 Expr.lit(Literal.natVal(n)),
43 ),
44 mk_const("inst"),
45 )
46
47 def mk_binop(op_name: str, a, b):
48 op = mk_const(op_name)

Callers 1

mainFunction · 0.70

Calls 1

mk_constFunction · 0.70

Tested by

no test coverage detected