MCPcopy Create free account

hub / github.com/BasisResearch/lean.py / functions

Functions2,559 in github.com/BasisResearch/lean.py

↓ 318 callersFunctionIntVal
(n: int)
lean_py/z3/core.py:1135
↓ 300 callersFunction_try_prove
Compile AST to Lean.Expr, create goal, try tactics. Returns True if proved.
lean_py/z3/solver.py:473
↓ 231 callersFunctionIntSort
()
lean_py/z3/core.py:222
↓ 230 callersFunctionInt
(name: str)
lean_py/z3/core.py:1053
↓ 171 callersFunctionBitVecVal
(val: int, width: int)
lean_py/z3/core.py:1160
↓ 137 callersFunctionStringVal
Create a string literal.
lean_py/z3/core.py:2282
↓ 106 callersFunctionInts
(names: str)
lean_py/z3/core.py:1058
↓ 101 callersFunctionForAll
( vars: ExprRef | Sequence[ExprRef], body: BoolRef, )
lean_py/z3/core.py:1378
↓ 96 callersFunctionBoolVal
(b: bool)
lean_py/z3/core.py:1156
↓ 93 callersFunctionBitVec
(name: str, width: int)
lean_py/z3/core.py:1084
↓ 91 callersFunctionImplies
(a: BoolRef, b: BoolRef)
lean_py/z3/core.py:1341
↓ 85 callersFunctionprove
Prove a claim directly (no double-negation). Returns ``True`` if proved, ``False`` otherwise. Prints "proved" or "failed to prove" to match k
lean_py/z3/solver.py:730
↓ 80 callersFunctionBool
(name: str)
lean_py/z3/core.py:1076
↓ 79 callersMethodadd
(self, *args: BoolRef)
lean_py/z3/solver.py:556
↓ 77 callersFunctionAnd
(*args: BoolRef)
lean_py/z3/core.py:1308
↓ 77 callersFunctionFPVal
( val: float | int | str, sort: FPSortRef | None = None, ctx: Context | None = None, )
lean_py/z3/core.py:3263
↓ 61 callersMethodcheck
(self, *assumptions: BoolRef)
lean_py/z3/solver.py:581
↓ 59 callersFunctionNot
(a: BoolRef)
lean_py/z3/core.py:1337
↓ 58 callersMethodget
Get element at index.
lean_py/lean_types.py:68
↓ 52 callersFunction_merge
( a: frozenset[tuple[str, ASTSort]], b: frozenset[tuple[str, ASTSort]], )
lean_py/z3/core.py:1399
↓ 45 callersFunctionFunction
Declare an uninterpreted function. ``Function('f', IntSort(), IntSort(), BoolSort())`` declares ``f : Int -> Int -> Prop``.
lean_py/z3/core.py:1037
↓ 41 callersFunctionConst
(name: str, sort: SortRef)
lean_py/z3/core.py:1098
↓ 39 callersFunctionBoolSort
()
lean_py/z3/core.py:218
↓ 39 callersFunctionOr
(*args: BoolRef)
lean_py/z3/core.py:1323
↓ 37 callersMethoddeclare
(self, ctor_name: str, *fields: tuple[str, SortRef | _DatatypeBuilder])
lean_py/z3/core.py:1223
↓ 37 callersFunctionunwrap_pyobject
LeanPy/native/python_bridge.c:239
↓ 34 callersFunctionSelect
Read from array or apply lambda. Maps to function application in Lean.
lean_py/z3/core.py:1171
↓ 33 callersFunctionBitVecs
(names: str, width: int)
lean_py/z3/core.py:1089
↓ 32 callersFunctionString
Create a string variable.
lean_py/z3/core.py:2273
↓ 31 callersFunctionFloat32
(ctx: Context | None = None)
lean_py/z3/core.py:3243
↓ 31 callersFunctionRNE
(ctx: Context | None = None)
lean_py/z3/core.py:3305
↓ 28 callersFunctionFloat64
(ctx: Context | None = None)
lean_py/z3/core.py:3247
↓ 28 callersFunctionRe
Regex matching exactly the string s.
lean_py/z3/core.py:2383
↓ 28 callersMethod_binop
(self, op: str, other: ArithRef | int | float)
lean_py/z3/core.py:446
↓ 27 callersFunctionArray
(name: str, domain: SortRef, range_sort: SortRef)
lean_py/z3/core.py:1093
↓ 27 callersMethodname
Return sort name as string (z3py compat).
lean_py/z3/core.py:138
↓ 27 callersMethodsize
(self)
lean_py/z3/core.py:715
↓ 25 callersFunctionBools
(names: str)
lean_py/z3/core.py:1080
↓ 25 callersFunctionEmptySet
Empty set — constant array of False.
lean_py/z3/core.py:3612
↓ 24 callersFunctionStore
Write to array.
lean_py/z3/core.py:1188
↓ 24 callersFunctionraise_py_error
If a Python exception is set, fetch a string for it, clear, and return * a Lean IO error result. Caller transfers ownership. */
LeanPy/native/python_bridge.c:271
↓ 23 callersFunctionBitVecSort
(n: int)
lean_py/z3/core.py:252
↓ 23 callersFunctionDeclareSort
(name: str)
lean_py/z3/core.py:234
↓ 23 callersFunctionRealSort
()
lean_py/z3/core.py:230
↓ 23 callersFunctionfpEQ
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3424
↓ 22 callersFunctionis_int
(a: ExprRef)
lean_py/z3/core.py:2466
↓ 21 callersFunctionexpr_to_sympy
Convert a ``Lean.Expr`` (as ``LeanInductiveValue``) to a SymPy expression. Handles the elaborated forms that Lean's kernel produces (with type an
examples/04_sympy_tactic/python/lean_to_sympy.py:122
↓ 20 callersFunctionIf
(c: BoolRef, t: ExprRef, e: ExprRef)
lean_py/z3/core.py:1349
↓ 20 callersFunctionReal
(name: str)
lean_py/z3/core.py:1067
↓ 20 callersMethod__init__
( self, ast: ASTNode, vars: frozenset[tuple[str, ASTSort]] = frozenset(), )
lean_py/z3/core.py:2375
↓ 20 callersMethodcreate
(self)
lean_py/z3/core.py:1226
↓ 19 callersFunctionDistinct
(*args: ExprRef)
lean_py/z3/core.py:1363
↓ 19 callersMethodadd
(self, *args: BoolRef)
lean_py/z3/tactic.py:24
↓ 19 callersFunctionlean_box
(self, n)
lean_py/_runtime.py:333
↓ 18 callersFunctionDatatype
(name: str)
lean_py/z3/core.py:1266
↓ 18 callersMethoddomain
Return the sort of the i-th argument.
lean_py/z3/core.py:944
↓ 17 callersFunctionLambda
Build a lambda expression (maps to Lean lambda).
lean_py/z3/core.py:2184
↓ 17 callersFunctionSignExt
Sign-extend a bit-vector by n bits.
lean_py/z3/core.py:1588
↓ 17 callersFunction_coerce_bv
(v: BitVecRef | int, sort: SortRef)
lean_py/z3/core.py:1424
↓ 16 callersFunctionToReal
Convert Int to Real.
lean_py/z3/core.py:1659
↓ 16 callersFunctionis_real
(a: ExprRef)
lean_py/z3/core.py:2470
↓ 16 callersMethodsort
(self)
lean_py/z3/core.py:3149
↓ 15 callersFunctionFP
(name: str, fpsort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3255
↓ 15 callersFunctionRatVal
Rational value a/b as Real division.
lean_py/z3/core.py:1714
↓ 15 callersFunctionSum
Left-fold sum.
lean_py/z3/core.py:1677
↓ 15 callersFunction_sym
(name)
lean_py/marshal.py:322
↓ 15 callersMethodebits
(self)
lean_py/z3/core.py:3155
↓ 15 callersFunctionexpr_to_z3
Convert a ``Lean.Expr`` (as ``LeanInductiveValue``) to a Z3 expression.
examples/05_knuckledragger/python/lean_to_z3.py:123
↓ 15 callersFunctionmk_nat
(n: int)
examples/04_sympy_tactic/python/main.py:41
↓ 14 callersFunction_wrap
(x)
examples/06_effectful_verifier/python/refine.py:89
↓ 14 callersMethodas_long
(self)
lean_py/z3/core.py:4474
↓ 14 callersFunctioncoerce
(x)
examples/06_effectful_verifier/python/refine.py:136
↓ 14 callersMethoddecl
Return the function declaration for this expression.
lean_py/z3/core.py:352
↓ 14 callersMethodnum_args
Number of arguments (children) of this expression.
lean_py/z3/core.py:337
↓ 14 callersFunctionparse_smt2_string
Parse a string in SMT-LIB2 format. The arguments ``sorts`` and ``decls`` are Python dictionaries used to initialize the symbol table for the
lean_py/z3/smt2.py:550
↓ 14 callersMethodsbits
(self)
lean_py/z3/core.py:3158
↓ 14 callersMethodwrapper_for
(self, t: TypeRepr)
lean_py/marshal.py:636
↓ 13 callersFunctionAbs
Absolute value via ITE.
lean_py/z3/core.py:1654
↓ 13 callersFunctionLength
String or sequence length.
lean_py/z3/core.py:2287
↓ 13 callersFunctionNat
(name: str)
lean_py/z3/core.py:1062
↓ 13 callersFunctionNatVal
(n: int)
lean_py/z3/core.py:1139
↓ 13 callersFunctionStrConcat
Concatenate strings.
lean_py/z3/core.py:2349
↓ 13 callersFunction_coerce_arith
(v: ArithRef | int | float, sort: SortRef)
lean_py/z3/core.py:1406
↓ 13 callersMethodapply
Apply this tactic to a goal via Pantograph.
lean_py/z3/tactic.py:85
↓ 13 callersFunctionok_owned_or_err
Wrap an owned PyObject as IO Py; if NULL, propagate any pending Py error. */
LeanPy/native/python_bridge.c:306
↓ 12 callersFunctionExists
( vars: ExprRef | Sequence[ExprRef], body: BoolRef, )
lean_py/z3/core.py:1386
↓ 12 callersFunctionExtract
Extract bits [hi:lo] from a bit-vector.
lean_py/z3/core.py:1546
↓ 12 callersFunctionUnit
Single-element sequence.
lean_py/z3/core.py:3941
↓ 12 callersFunction_fp_op
(name: str, *args: ExprRef)
lean_py/z3/core.py:3341
↓ 12 callersFunction_fp_pred
(name: str, *args: ExprRef)
lean_py/z3/core.py:3353
↓ 11 callersFunctionBV2Int
Convert a bit-vector to an integer. If is_signed is False (default, matching z3), uses unsigned (toNat). If is_signed is True, uses signed (t
lean_py/z3/core.py:1601
↓ 11 callersFunctionFPs
(names: str, fpsort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3259
↓ 11 callersFunctionK
Constant array (all indices map to ``val``).
lean_py/z3/core.py:1201
↓ 11 callersFunctionSetAdd
Add element to set.
lean_py/z3/core.py:3628
↓ 11 callersFunctionZeroExt
Zero-extend a bit-vector by n bits.
lean_py/z3/core.py:1575
↓ 11 callersMethodarg
Return the i-th argument of this expression.
lean_py/z3/core.py:341
↓ 11 callersFunctionis_bool
(a: ExprRef)
lean_py/z3/core.py:2474
↓ 11 callersMethodpush
(self)
lean_py/z3/solver.py:568
↓ 11 callersFunctionwrap_pyobject
LeanPy/native/python_bridge.c:235
↓ 10 callersFunctionCharVal
(ch: str | int, ctx: Context | None = None)
lean_py/z3/core.py:3828
next →1–100 of 2,559, ranked by callers