MCPcopy Create free account

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

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

↓ 3 callersFunctionlean_ptr_tag
(self, o)
lean_py/_runtime.py:343
↓ 3 callersFunctionmk_eq
(lhs, rhs)
examples/05_knuckledragger/python/main.py:53
↓ 3 callersFunctionmk_eq
(lhs, rhs)
examples/04_sympy_tactic/python/main.py:58
↓ 3 callersMethodmodel
(self)
lean_py/z3/solver.py:596
↓ 3 callersFunctionname_to_str
Walk a ``Lean.Name`` ADT (anonymous / str / num) to a dot-separated string.
examples/04_sympy_tactic/python/lean_to_sympy.py:32
↓ 3 callersMethodnumerator
(self)
lean_py/z3/core.py:582
↓ 3 callersMethodparams
Return parameters of this expression (e.g. bit-width for Extract).
lean_py/z3/core.py:361
↓ 3 callersMethodreset
(self)
lean_py/z3/solver.py:637
↓ 3 callersMethodresolve_expr
Convert an S-expression to an ExprRef.
lean_py/z3/smt2.py:188
↓ 3 callersMethodsexpr
S-expression representation of this sort.
lean_py/z3/core.py:169
↓ 3 callersFunctionshared_lib_extension
()
lean_py/utils.py:58
↓ 3 callersFunctionsympy_eq_check
Check if ``simplify(lhs - rhs) == 0``.
examples/04_sympy_tactic/python/lean_to_sympy.py:192
↓ 3 callersMethodvar_name
Return the name of the i-th bound variable.
lean_py/z3/core.py:839
↓ 3 callersFunctionverify
(fn)
examples/06_effectful_verifier/python/main.py:31
↓ 2 callersFunctionAllChar
Regex matching any single character.
lean_py/z3/core.py:2444
↓ 2 callersFunctionAt
Character at index i as a single-char string.
lean_py/z3/core.py:4256
↓ 2 callersFunctionAtLeast
At least k of the boolean args are true.
lean_py/z3/core.py:2107
↓ 2 callersFunctionBVMulNoOverflow
Check that a * b does not overflow.
lean_py/z3/core.py:2037
↓ 2 callersFunctionBVSubNoUnderflow
Check that a - b does not underflow.
lean_py/z3/core.py:2021
↓ 2 callersFunctionEmpty
Empty sequence / set.
lean_py/z3/core.py:3923
↓ 2 callersFunctionFreshReal
Create a fresh real constant.
lean_py/z3/core.py:2172
↓ 2 callersFunctionInRe
String membership in regex.
lean_py/z3/core.py:2439
↓ 2 callersFunctionIsSubset
Check if a is a subset of b.
lean_py/z3/core.py:3686
↓ 2 callersFunctionLoop
Bounded repetition.
lean_py/z3/core.py:2434
↓ 2 callersFunctionMultiPattern
Quantifier multi-pattern.
lean_py/z3/core.py:4072
↓ 2 callersFunctionOption
Zero or one.
lean_py/z3/core.py:2399
↓ 2 callersFunctionOrElse
Try first, fall back to subsequent tactics on failure.
lean_py/z3/tactic.py:185
↓ 2 callersFunctionParOr
Parallel-or — try all tactics in parallel, return first success. Since we run sequentially, this is equivalent to OrElse.
lean_py/z3/tactic.py:209
↓ 2 callersFunctionParThen
Parallel-then — apply t1, then t2 to each subgoal in parallel. Since we run sequentially, this is equivalent to Then.
lean_py/z3/tactic.py:217
↓ 2 callersFunctionRealVector
Create a vector of ``sz`` real variables.
lean_py/z3/core.py:1737
↓ 2 callersFunctionRecFunction
Declare a recursive function.
lean_py/z3/core.py:4035
↓ 2 callersFunctionRepeat
Apply tactic repeatedly until fixed point.
lean_py/z3/tactic.py:190
↓ 2 callersFunctionRoundNearestTiesToAway
(ctx: Context | None = None)
lean_py/z3/core.py:3309
↓ 2 callersFunctionRoundTowardNegative
(ctx: Context | None = None)
lean_py/z3/core.py:3325
↓ 2 callersFunctionRoundTowardPositive
(ctx: Context | None = None)
lean_py/z3/core.py:3317
↓ 2 callersFunctionRoundTowardZero
(ctx: Context | None = None)
lean_py/z3/core.py:3333
↓ 2 callersFunctionSetDifference
Set difference: a \\ b.
lean_py/z3/core.py:3681
↓ 2 callersFunctionSetUnion
Set union via lambda.
lean_py/z3/core.py:3638
↓ 2 callersFunctionSqrt
Square root (represented as a^(1/2)).
lean_py/z3/core.py:1908
↓ 2 callersFunctionThen
Sequential composition — apply each tactic in order.
lean_py/z3/tactic.py:180
↓ 2 callersFunctionVar
Create a de Bruijn indexed variable. Since lean.py uses named variables, this creates a variable named ``__db_<idx>`` with the given sort.
lean_py/z3/core.py:4050
↓ 2 callersMethod__add__
(self, other: Any)
lean_py/z3/core.py:3161
↓ 2 callersMethod__mul__
(self, other: Any)
lean_py/z3/core.py:3170
↓ 2 callersMethod_abstract
Wrap *expr* in ForAll over declared vars that appear in it.
lean_py/z3/solver.py:896
↓ 2 callersMethod_build_io_exception
Decode an `IO.Error` ctor pointer into a typed exception. For `userError` — the most common, used by every `LeanPy.Python.*` bridge f
lean_py/marshal.py:1142
↓ 2 callersMethod_call_string_export
(self, name: str)
lean_py/library.py:525
↓ 2 callersFunction_child_expr
Wrap a child AST node as an ExprRef with best-effort sort inference.
lean_py/z3/core.py:2848
↓ 2 callersMethod_ctor_field_layout
Compute the ABI memory layout for a constructor's fields. Uses each field wrapper's ``ctor_scalar_size`` to classify fields as pointe
lean_py/marshal.py:479
↓ 2 callersFunction_ctype_for_call
(ct)
lean_py/library.py:217
↓ 2 callersMethod_decode_inductive
(self, ti: TypeInfo, ptr: Any)
lean_py/marshal.py:525
↓ 2 callersFunction_extract_func_params
(func_decl: c_ast.FuncDecl)
lean_py/_parse.py:235
↓ 2 callersFunction_is_literal
True for ground literal AST nodes (no variables/operations).
lean_py/z3/core.py:108
↓ 2 callersMethod_lean_string_to_py
Decode a Lean string object pointer into a Python str.
lean_py/marshal.py:442
↓ 2 callersFunction_leanpy_git_rev
Git rev for the LeanPy Lake dependency when pip-installed. Resolution order: LEANPY_GIT_REV env var, then the commit hash from direct_url.jso
lean_py/project.py:78
↓ 2 callersFunction_make_expr_handler
Build an effectful handler that maps Term ops → Lean.Expr builders. *depth* is the number of forallE binders above the expression scope. Vari
examples/06_effectful_verifier/python/refine.py:123
↓ 2 callersFunction_make_struct
Create a ctypes Structure subclass dynamically.
lean_py/_runtime.py:180
↓ 2 callersFunction_marshal_expr
Convert a Python ASTNode to a Lean Z3Expr value.
lean_py/z3/solver.py:223
↓ 2 callersMethod_opaque_wrapper
A wrapper for any Lean type that we can't introspect (Py, kernel `GoalState`, anything not in the `derive_python` registry). Python s
lean_py/marshal.py:1071
↓ 2 callersFunction_unop
(op)
examples/05_knuckledragger/python/lean_to_z3.py:94
↓ 2 callersFunction_unop
Return a builder for a unary operation (last 1 arg).
examples/04_sympy_tactic/python/lean_to_sympy.py:89
↓ 2 callersFunction_unwrap_toreal
Unwrap a ToRealNode wrapper, if present.
lean_py/z3/core.py:2571
↓ 2 callersFunction_wrap_free_vars
Wrap the expression AST in ForAll nodes for its free variables. Sorts free vars: Type vars first, arrows (functions) second, values last.
lean_py/z3/solver.py:461
↓ 2 callersMethodaccessor
(self, i: int, j: int)
lean_py/z3/core.py:211
↓ 2 callersMethodadd
(self, *args: BoolRef)
lean_py/z3/solver.py:813
↓ 2 callersMethodbody
Return the body of the quantifier.
lean_py/z3/core.py:825
↓ 2 callersMethodchildren
Return list of all children of this expression.
lean_py/z3/core.py:348
↓ 2 callersMethodcollect_sorrys
Extract all `sorry` placeholders in ``source`` as a draftable :class:`GoalState`. Returns ``(state, message)`` — state is ``None`` if
lean_py/kernel.py:388
↓ 2 callersMethodconstructor
(self, i: int)
lean_py/z3/core.py:205
↓ 2 callersMethoddecide
Returns ``"true"`` / ``"false"`` / ``"<undecided>"`` / ``"<elab: ...>"`` etc.
lean_py/kernel.py:334
↓ 2 callersMethoddecode_lean_obj
Decode a ``LeanObj`` (raw ``lean_object*``) as a registered inductive. This is the entry point for Path B (tactic): Lean wraps an ``Expr``
lean_py/marshal.py:621
↓ 2 callersMethodfind_type
(self, name: str)
lean_py/registry.py:224
↓ 2 callersFunctionfpIsNegative
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3449
↓ 2 callersFunctionfpIsPositive
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3453
↓ 2 callersFunctionfpMax
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3403
↓ 2 callersFunctionfpMin
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3399
↓ 2 callersFunctionfpUnsignedToFP
(rm: FPRMRef, a: ExprRef, sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3510
↓ 2 callersFunctionget_ctx
Return ctx if not None, else main context.
lean_py/z3/core.py:3035
↓ 2 callersFunctionget_ffi_class
Get the dynamically created LeanFFI class.
lean_py/_runtime.py:757
↓ 2 callersFunctionget_main_globals
LeanPy/native/python_bridge.c:733
↓ 2 callersFunctionget_var_index
Get de Bruijn index of a bound variable.
lean_py/z3/core.py:4059
↓ 2 callersFunctionget_version_string
Return version string.
lean_py/z3/core.py:4350
↓ 2 callersMethodgoal_create_expr
Create a new goal state from a ``Lean.Expr`` object. Raises ``LeanError`` on type-check failure.
lean_py/kernel.py:347
↓ 2 callersMethodinstantiate_all
(self, src: str)
lean_py/kernel.py:403
↓ 2 callersMethodisInf
(self)
lean_py/z3/core.py:3211
↓ 2 callersMethodisNaN
(self)
lean_py/z3/core.py:3206
↓ 2 callersFunctionis_add
(a: ExprRef)
lean_py/z3/core.py:2522
↓ 2 callersFunctionis_bv_value
True if a is a concrete bitvector literal.
lean_py/z3/core.py:2592
↓ 2 callersFunctionis_div
(a: ExprRef)
lean_py/z3/core.py:2534
↓ 2 callersMethodis_exists
(self)
lean_py/z3/core.py:832
↓ 2 callersMethodis_forall
(self)
lean_py/z3/core.py:829
↓ 2 callersFunctionis_fp
(a: object)
lean_py/z3/core.py:4102
↓ 2 callersFunctionis_fp_value
(a: object)
lean_py/z3/core.py:4110
↓ 2 callersFunctionis_fprm
(a: object)
lean_py/z3/core.py:4106
↓ 2 callersFunctionis_func_decl
True if a is a function declaration.
lean_py/z3/core.py:2561
↓ 2 callersFunctionis_idiv
True for integer division.
lean_py/z3/core.py:2617
↓ 2 callersMethodis_int
(self)
lean_py/z3/core.py:512
↓ 2 callersFunctionis_le
(a: ExprRef)
lean_py/z3/core.py:2597
↓ 2 callersFunctionis_mod
(a: ExprRef)
lean_py/z3/core.py:2613
↓ 2 callersFunctionis_mul
(a: ExprRef)
lean_py/z3/core.py:2526
↓ 2 callersMethodis_ok
Check if result is Ok.
lean_py/lean_types.py:92
← previousnext →301–400 of 2,559, ranked by callers