Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ functions
Functions
2,559 in github.com/BasisResearch/lean.py
⨍
Functions
2,559
◇
Types & classes
336
↓ 4 callers
Function
Replace
Replace first occurrence of old with new in s.
lean_py/z3/core.py:2315
↓ 4 callers
Function
StrToInt
Convert string to integer.
lean_py/z3/core.py:2339
↓ 4 callers
Function
ToInt
Convert Real to Int (floor).
lean_py/z3/core.py:1668
↓ 4 callers
Function
UDiv
Unsigned division.
lean_py/z3/core.py:1536
↓ 4 callers
Function
UGT
Unsigned greater-than.
lean_py/z3/core.py:1527
↓ 4 callers
Function
_coerce_arith_any
Coerce int/float/BoolRef/ArithRef to ArithRef.
lean_py/z3/core.py:1452
↓ 4 callers
Function
_make_typed_expr
Create appropriately-typed ExprRef subclass for a sort.
lean_py/z3/core.py:2803
↓ 4 callers
Method
_mk_int_rel
(self, cls_name, inst_name, a, b)
examples/06_effectful_verifier/python/expr_builder.py:80
↓ 4 callers
Function
_sort_repr
Human-readable string for an ASTSort.
lean_py/z3/core.py:1463
↓ 4 callers
Function
add_lean_lib_to_dyld_path
Add Lean's `lib/lean` to the OS-level dynamic-loader search path for the current process. Useful before constructing a `LeanLibrary` when the
lean_py/utils.py:106
↓ 4 callers
Method
as_expr
Conjunction of all constraints.
lean_py/z3/tactic.py:34
↓ 4 callers
Method
clear
(self)
lean_py/kernel.py:274
↓ 4 callers
Method
denominator_as_long
(self)
lean_py/z3/core.py:591
↓ 4 callers
Function
eq
Structural equality between AST nodes (not SMT equality).
lean_py/z3/core.py:4273
↓ 4 callers
Function
fpAbs
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3383
↓ 4 callers
Function
fpGT
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3420
↓ 4 callers
Function
fpIsZero
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3437
↓ 4 callers
Function
fpLEQ
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3408
↓ 4 callers
Function
fpMinusZero
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3295
↓ 4 callers
Function
fpPlusZero
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3290
↓ 4 callers
Method
from_lean
(p)
lean_py/marshal.py:651
↓ 4 callers
Method
get
Return a cached managed project, creating it if necessary.
lean_py/project.py:115
↓ 4 callers
Function
is_bv
(a: ExprRef)
lean_py/z3/core.py:2478
↓ 4 callers
Method
is_loaded
(self)
lean_py/kernel.py:271
↓ 4 callers
Function
is_or
(a: ExprRef)
lean_py/z3/core.py:2510
↓ 4 callers
Function
is_var
(a: ExprRef)
lean_py/z3/core.py:2490
↓ 4 callers
Function
lean_ctor_set
(self, o, i, v)
lean_py/_runtime.py:479
↓ 4 callers
Function
lean_inc
(self, o)
lean_py/_runtime.py:402
↓ 4 callers
Method
lower
(self)
lean_py/z3/solver.py:1109
↓ 4 callers
Function
main_ctx
Return the main context.
lean_py/z3/core.py:3027
↓ 4 callers
Method
n_goals
(self)
lean_py/kernel.py:87
↓ 4 callers
Function
name_to_str
Walk a ``Lean.Name`` ADT (anonymous / str / num) to a dot-separated string.
examples/05_knuckledragger/python/lean_to_z3.py:32
↓ 4 callers
Method
num_scopes
Return number of push scopes.
lean_py/z3/solver.py:577
↓ 4 callers
Method
numerator_as_long
(self)
lean_py/z3/core.py:588
↓ 4 callers
Method
pop
(self, num_scopes: int)
lean_py/z3/core.py:4702
↓ 4 callers
Function
py_obj_to_lean_string
LeanPy/native/python_bridge.c:588
↓ 4 callers
Method
short
A compact pseudo-Lean rendering for diagnostics.
lean_py/registry.py:65
↓ 4 callers
Function
sympy_prop_check
Check if a SymPy proposition is identically true.
examples/04_sympy_tactic/python/lean_to_sympy.py:186
↓ 4 callers
Method
to_lean
(_)
lean_py/marshal.py:654
↓ 4 callers
Method
try_tactic
(self, tactic: str)
lean_py/kernel.py:99
↓ 3 callers
Function
AsArray
Convert a function declaration to an array.
lean_py/z3/core.py:2224
↓ 3 callers
Function
AtMost
At most k of the boolean args are true.
lean_py/z3/core.py:2097
↓ 3 callers
Function
BVAddNoOverflow
Check that a + b does not overflow.
lean_py/z3/core.py:1974
↓ 3 callers
Function
CharIsDigit
(ch: ExprRef, ctx: Context | None = None)
lean_py/z3/core.py:3846
↓ 3 callers
Function
CharToBv
(ch: ExprRef, ctx: Context | None = None)
lean_py/z3/core.py:3838
↓ 3 callers
Function
Complement
Complement of regex.
lean_py/z3/core.py:2424
↓ 3 callers
Function
Consts
(names: str, sort: SortRef)
lean_py/z3/core.py:1126
↓ 3 callers
Function
FiniteDomainSort
(name: str, sz: int, ctx: Context | None = None)
lean_py/z3/core.py:4011
↓ 3 callers
Function
FreshBool
Create a fresh boolean constant.
lean_py/z3/core.py:2165
↓ 3 callers
Function
Intersect
Intersection of regexes.
lean_py/z3/core.py:2414
↓ 3 callers
Function
IsMember
Set membership test.
lean_py/z3/core.py:3622
↓ 3 callers
Function
Plus
One or more repetitions.
lean_py/z3/core.py:2394
↓ 3 callers
Function
Range
Character range [lo..hi].
lean_py/z3/core.py:2429
↓ 3 callers
Function
RoundNearestTiesToEven
(ctx: Context | None = None)
lean_py/z3/core.py:3301
↓ 3 callers
Function
SRem
Signed remainder.
lean_py/z3/core.py:1639
↓ 3 callers
Function
SetComplement
Set complement via lambda.
lean_py/z3/core.py:3668
↓ 3 callers
Function
SetIntersect
Set intersection via lambda.
lean_py/z3/core.py:3653
↓ 3 callers
Function
SetSort
Set sort — implemented as Array(s, Bool).
lean_py/z3/core.py:3607
↓ 3 callers
Function
Strings
(names: str)
lean_py/z3/core.py:2278
↓ 3 callers
Function
UGE
Unsigned greater-than-or-equal.
lean_py/z3/core.py:1518
↓ 3 callers
Function
URem
Unsigned remainder.
lean_py/z3/core.py:1541
↓ 3 callers
Function
Union
Union of regexes.
lean_py/z3/core.py:2404
↓ 3 callers
Method
__init__
(self)
lean_py/z3/tactic.py:21
↓ 3 callers
Function
_ast_children
Return child AST nodes of an AST node.
lean_py/z3/core.py:2627
↓ 3 callers
Function
_call
Call *fn* with ``c_void_p`` args, cast result to *ObjPtr*.
lean_py/marshal.py:328
↓ 3 callers
Function
_coerce_val
(v: int | float, sort: SortRef)
lean_py/z3/core.py:1435
↓ 3 callers
Function
_ensure_built
Ensure the runtime types are built (lazy init).
lean_py/_runtime.py:741
↓ 3 callers
Function
_get_kernel
()
lean_py/z3/solver.py:160
↓ 3 callers
Method
_mk_int_binop
(self, cls_name, h_inst_name, base_inst_name, a, b)
examples/06_effectful_verifier/python/expr_builder.py:74
↓ 3 callers
Function
_ptr_int
(o)
lean_py/_runtime.py:325
↓ 3 callers
Function
_resolve_type
Resolve a C type string to a ctypes type, given known struct types.
lean_py/_runtime.py:94
↓ 3 callers
Function
_substitute_ast
Walk and replace variables in an AST tree.
lean_py/z3/core.py:1747
↓ 3 callers
Function
_type_to_str
(node)
lean_py/_parse.py:190
↓ 3 callers
Method
add_rule
(self, head: Any, body: Any = None, name: str | None = None)
lean_py/z3/solver.py:908
↓ 3 callers
Method
as_signed_long
Return the signed integer value.
lean_py/z3/core.py:762
↓ 3 callers
Method
as_string
(self)
lean_py/z3/core.py:3203
↓ 3 callers
Method
denominator
(self)
lean_py/z3/core.py:585
↓ 3 callers
Method
find_source_path
Locate the ``.lean`` source file for ``module_name``.
lean_py/kernel.py:374
↓ 3 callers
Function
fpDiv
(rm: FPRMRef, a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3375
↓ 3 callers
Function
fpGEQ
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3416
↓ 3 callers
Function
fpIsInf
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3433
↓ 3 callers
Function
fpIsNaN
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3429
↓ 3 callers
Function
fpMinusInfinity
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3285
↓ 3 callers
Function
fpSub
(rm: FPRMRef, a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3367
↓ 3 callers
Method
get_id
Return a unique integer identifier for this expression.
lean_py/z3/core.py:380
↓ 3 callers
Function
get_lean_obj_handle_type
LeanPy/native/python_bridge.c:1160
↓ 3 callers
Function
get_structs
Get the dynamically created struct types.
lean_py/_runtime.py:751
↓ 3 callers
Function
is_app
True if a is a function application.
lean_py/z3/core.py:2556
↓ 3 callers
Function
is_ast
(a: object)
lean_py/z3/core.py:4098
↓ 3 callers
Function
is_const_array
(a: object)
lean_py/z3/core.py:4122
↓ 3 callers
Function
is_distinct
(a: ExprRef)
lean_py/z3/core.py:2502
↓ 3 callers
Function
is_implies
(a: ExprRef)
lean_py/z3/core.py:2518
↓ 3 callers
Function
is_int_value
True if a is a concrete integer literal.
lean_py/z3/core.py:2566
↓ 3 callers
Function
is_not
(a: ExprRef)
lean_py/z3/core.py:2514
↓ 3 callers
Function
is_rational_value
True if a is a rational value (division of two integer literals on Real sort).
lean_py/z3/core.py:2576
↓ 3 callers
Function
lean_alloc_array
(self, size, capacity)
lean_py/_runtime.py:564
↓ 3 callers
Function
lean_alloc_ctor
(self, tag, num_objs, scalar_sz)
lean_py/_runtime.py:556
↓ 3 callers
Function
lean_array_set_core
(self, o, i, v)
lean_py/_runtime.py:572
↓ 3 callers
Function
lean_int64_to_int
(self, n)
lean_py/_runtime.py:650
↓ 3 callers
Function
lean_is_external
(self, o)
lean_py/_runtime.py:441
← previous
next →
201–300 of 2,559, ranked by callers