MCPcopy Create free account

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

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

↓ 10 callersFunctionPrefixOf
Check if pre is a prefix of s.
lean_py/z3/core.py:2301
↓ 10 callersFunctionRealVal
(n: int | float | str)
lean_py/z3/core.py:1143
↓ 10 callersFunctionRotateLeft
Rotate left.
lean_py/z3/core.py:1624
↓ 10 callersMethod_binop
(self, op: str, other: BitVecRef | int)
lean_py/z3/core.py:634
↓ 10 callersFunction_bool_to_int
Convert BoolRef to ArithRef via If(b, coeff, 0).
lean_py/z3/core.py:1443
↓ 10 callersFunctionget_lean_ffi
Get a singleton LeanFFI instance.
lean_py/_runtime.py:770
↓ 10 callersFunctionlean_string_cstr
(self, o)
lean_py/_runtime.py:548
↓ 10 callersMethodparse
Parse the multi-line encoding produced by Lean's ``encodeTacticResult``.
lean_py/kernel.py:56
↓ 10 callersMethodpop
(self, n: int = 1)
lean_py/z3/solver.py:571
↓ 9 callersFunctionArraySort
(domain: SortRef, range_sort: SortRef)
lean_py/z3/core.py:273
↓ 9 callersFunctionContains
Check if s contains t.
lean_py/z3/core.py:2294
↓ 9 callersFunctionStringSort
()
lean_py/z3/core.py:2269
↓ 9 callersFunctionXor
(a: BoolRef, b: BoolRef)
lean_py/z3/core.py:1345
↓ 9 callersFunction_ctor_get
The i-th ctor field as a raw lean_object pointer.
lean_py/marshal.py:112
↓ 9 callersFunctionfpLT
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3412
↓ 9 callersMethodfrom_lake
Load a Lean library from a Lake project directory. Looks for `<lake_dir>/.lake/build/lib/lib<library_name>.<ext>` (or, when `library_
lean_py/library.py:281
↓ 9 callersFunctionlean_dec
(self, o)
lean_py/_runtime.py:410
↓ 9 callersMethodload
(self, modules: Iterable[str])
lean_py/kernel.py:268
↓ 8 callersFunctionConcat
Concatenate two or more bit-vectors (left-fold).
lean_py/z3/core.py:1556
↓ 8 callersFunctionLShR
Logical (unsigned) shift right.
lean_py/z3/core.py:1495
↓ 8 callersFunctionSuffixOf
Check if suf is a suffix of s.
lean_py/z3/core.py:2308
↓ 8 callersFunctionULE
Unsigned less-than-or-equal.
lean_py/z3/core.py:1500
↓ 8 callersMethodassertions
(self)
lean_py/z3/solver.py:601
↓ 8 callersFunctionfpMul
(rm: FPRMRef, a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3371
↓ 8 callersFunctionfpNaN
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3275
↓ 8 callersMethodgoal_create
Create a new goal state from a type expression string. Raises ``LeanError`` on parse / elaboration failure.
lean_py/kernel.py:341
↓ 8 callersMethodinit_search
(self, sp: str = "")
lean_py/kernel.py:265
↓ 8 callersFunctionis_array
(a: ExprRef)
lean_py/z3/core.py:2482
↓ 8 callersFunctionis_expr
(a: object)
lean_py/z3/core.py:2454
↓ 8 callersFunctionis_true
(a: ExprRef)
lean_py/z3/core.py:2458
↓ 8 callersMethodmk_const
(self, name: str, levels=None)
examples/06_effectful_verifier/python/expr_builder.py:37
↓ 8 callersMethodpush
(self, v: Any)
lean_py/z3/core.py:3053
↓ 7 callersFunctionFPSort
(ebits: int, sbits: int, ctx: Context | None = None)
lean_py/z3/core.py:3235
↓ 7 callersFunctionFreshConst
Create a fresh constant with a unique name.
lean_py/z3/core.py:2151
↓ 7 callersFunctionFullSet
Full set — constant array of True.
lean_py/z3/core.py:3617
↓ 7 callersFunctionProduct
Left-fold product.
lean_py/z3/core.py:1693
↓ 7 callersFunctionRotateRight
Rotate right.
lean_py/z3/core.py:1629
↓ 7 callersFunction_marshal_sort
Convert a Python ASTSort to a Lean Z3Sort value.
lean_py/z3/solver.py:174
↓ 7 callersFunction_var
(name: str)
examples/05_knuckledragger/python/lean_to_z3.py:76
↓ 7 callersMethodarity
Return the number of arguments.
lean_py/z3/core.py:940
↓ 7 callersFunctionis_quantifier
(a: ExprRef)
lean_py/z3/core.py:2494
↓ 7 callersMethodis_solved
(self)
lean_py/kernel.py:84
↓ 7 callersMethodkind
Return sort kind as integer (z3py compat). Values match z3 Z3_sort_kind: UNINTERPRETED=0, BOOL=1, INT=2, REAL=3, BV=4, ARRAY=5, DATAT
lean_py/z3/core.py:142
↓ 7 callersFunctionmk_const
(s: str)
examples/05_knuckledragger/python/main.py:35
↓ 7 callersFunctionmk_const
(s: str)
examples/04_sympy_tactic/python/main.py:37
↓ 7 callersFunctionraise_io_error
LeanPy/native/python_bridge.c:264
↓ 7 callersMethodrange
Return the range (return) sort.
lean_py/z3/core.py:948
↓ 7 callersMethodresolve_sort
Convert an S-expression to a SortRef.
lean_py/z3/smt2.py:161
↓ 7 callersFunctionrun_command
Run a command and return the trimmed stdout.
lean_py/utils.py:12
↓ 7 callersFunctionsimplify
Simplify an expression (placeholder — returns input unchanged).
lean_py/z3/solver.py:751
↓ 7 callersFunctionsubstitute
Substitute expressions: substitute(t, (old1, new1), (old2, new2), ...). Each pair (old, new) replaces occurrences of old with new in t. old m
lean_py/z3/core.py:1867
↓ 6 callersFunctionFreshInt
Create a fresh integer constant.
lean_py/z3/core.py:2158
↓ 6 callersFunctionULT
Unsigned less-than.
lean_py/z3/core.py:1509
↓ 6 callersFunction_ctor_tag
Tag of a Lean object — works for both scalar (enum) and pointer (ctor) forms.
lean_py/marshal.py:105
↓ 6 callersFunction_decl_type_to_str
(decl)
lean_py/_parse.py:210
↓ 6 callersFunction_ptr_as_int
Convert any ctypes pointer-like value to a raw integer. macOS ctypes has a long-standing quirk: passing a `POINTER(struct)` instance directly
lean_py/_runtime.py:40
↓ 6 callersFunctionfpAdd
(rm: FPRMRef, a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3363
↓ 6 callersFunctionfpNeg
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3379
↓ 6 callersMethodfrom_json
(cls, data: dict[str, Any])
lean_py/registry.py:45
↓ 6 callersFunctionlean_array_get_core
(self, o, i)
lean_py/_runtime.py:530
↓ 6 callersFunctionlean_array_size
(self, o)
lean_py/_runtime.py:525
↓ 6 callersFunctionlean_ctor_get
(self, o, i)
lean_py/_runtime.py:467
↓ 6 callersFunctionlean_is_scalar
(self, o)
lean_py/_runtime.py:330
↓ 6 callersFunctionmk_nat
(n: int)
examples/05_knuckledragger/python/main.py:38
↓ 5 callersFunctionCharSort
(ctx: Context | None = None)
lean_py/z3/core.py:3824
↓ 5 callersFunctionIndexOf
Find index of substr in s starting at offset.
lean_py/z3/core.py:2331
↓ 5 callersFunctionNatSort
()
lean_py/z3/core.py:226
↓ 5 callersFunctionSDiv
Signed division.
lean_py/z3/core.py:1634
↓ 5 callersFunctionSeqSort
General sequence sort. For Char, returns StringSort.
lean_py/z3/core.py:3916
↓ 5 callersFunctionStar
Kleene star.
lean_py/z3/core.py:2389
↓ 5 callersFunctionSubString
Extract substring.
lean_py/z3/core.py:2321
↓ 5 callersFunctionTupleSort
Create a tuple sort. Returns (sort, constructor, list_of_accessor_FuncDeclRefs). z3py compat: ctor name = sort name, accessors named project0
lean_py/z3/core.py:1290
↓ 5 callersFunction_ast_repr
Human-readable string for an ASTNode (for debugging).
lean_py/z3/core.py:2900
↓ 5 callersFunction_binop
(op)
examples/05_knuckledragger/python/lean_to_z3.py:87
↓ 5 callersFunction_binop
Return a builder for a binary operation (last 2 args).
examples/04_sympy_tactic/python/lean_to_sympy.py:78
↓ 5 callersFunctionassert_refined
Declare that *value* satisfies *refinement*. During symbolic execution, the handler intercepts this and collects the verification condition a
examples/06_effectful_verifier/python/refine.py:57
↓ 5 callersFunctionfpPlusInfinity
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3280
↓ 5 callersMethodget
(self, idx: int)
lean_py/z3/core.py:4733
↓ 5 callersFunctionis_and
(a: ExprRef)
lean_py/z3/core.py:2506
↓ 5 callersFunctionis_arith
True if a is an arithmetic expression (Int, Nat, or Real).
lean_py/z3/core.py:2546
↓ 5 callersFunctionis_const
(a: ExprRef)
lean_py/z3/core.py:2486
↓ 5 callersFunctionis_eq
(a: ExprRef)
lean_py/z3/core.py:2498
↓ 5 callersFunctionis_false
(a: ExprRef)
lean_py/z3/core.py:2462
↓ 5 callersFunctionis_sort
True if a is a sort reference.
lean_py/z3/core.py:2551
↓ 5 callersFunctionis_string
(a: ExprRef)
lean_py/z3/core.py:2538
↓ 5 callersFunctionis_string_value
(a: ExprRef)
lean_py/z3/core.py:2542
↓ 5 callersFunctionlean_lib_dir
Where Lean's own shared libraries live.
lean_py/utils.py:47
↓ 5 callersMethodmk_apps
(self, fn, *args)
examples/06_effectful_verifier/python/expr_builder.py:43
↓ 5 callersFunctionmk_binop
(op_name: str, a, b)
examples/04_sympy_tactic/python/main.py:51
↓ 5 callersFunctionset_kernel
Set the global kernel used by solvers and ``prove()``.
lean_py/z3/solver.py:154
↓ 4 callersFunctionAShr
Arithmetic shift right (sign-extending).
lean_py/z3/core.py:1644
↓ 4 callersFunctionBoolVector
Create a vector of ``sz`` boolean variables.
lean_py/z3/core.py:1732
↓ 4 callersFunctionCharToInt
(ch: ExprRef, ctx: Context | None = None)
lean_py/z3/core.py:3842
↓ 4 callersFunctionEnumSort
Create an enumeration sort. Returns (sort, list_of_enum_constants).
lean_py/z3/core.py:1277
↓ 4 callersFunctionInt2BV
Convert an integer to a bit-vector of width n.
lean_py/z3/core.py:1615
↓ 4 callersFunctionIntToStr
Convert integer to string.
lean_py/z3/core.py:2344
↓ 4 callersFunctionIntVector
Create a vector of ``sz`` integer variables named prefix__0, ..., prefix__sz-1.
lean_py/z3/core.py:1727
↓ 4 callersFunctionMap
Apply f element-wise over arrays, producing a new array.
lean_py/z3/core.py:2209
↓ 4 callersFunctionReals
(names: str)
lean_py/z3/core.py:1072
↓ 4 callersFunctionRepeatBitVec
Repeat a bit-vector n times by concatenation.
lean_py/z3/core.py:1919
← previousnext →101–200 of 2,559, ranked by callers