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

Function mk_binop

examples/05_knuckledragger/python/main.py:47–51  ·  view source on GitHub ↗
(op_name: str, a, b)

Source from the content-addressed store, hash-verified

45 )
46
47 def mk_binop(op_name: str, a, b):
48 op = mk_const(op_name)
49 for _ in range(4):
50 op = Expr.app(op, mk_const("inst"))
51 return Expr.app(Expr.app(op, a), b)
52
53 def mk_eq(lhs, rhs):
54 return Expr.app(

Callers 1

mainFunction · 0.70

Calls 1

mk_constFunction · 0.70

Tested by

no test coverage detected