MCPcopy Create free account

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

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

↓ 4 callersFunctionReplace
Replace first occurrence of old with new in s.
lean_py/z3/core.py:2315
↓ 4 callersFunctionStrToInt
Convert string to integer.
lean_py/z3/core.py:2339
↓ 4 callersFunctionToInt
Convert Real to Int (floor).
lean_py/z3/core.py:1668
↓ 4 callersFunctionUDiv
Unsigned division.
lean_py/z3/core.py:1536
↓ 4 callersFunctionUGT
Unsigned greater-than.
lean_py/z3/core.py:1527
↓ 4 callersFunction_coerce_arith_any
Coerce int/float/BoolRef/ArithRef to ArithRef.
lean_py/z3/core.py:1452
↓ 4 callersFunction_make_typed_expr
Create appropriately-typed ExprRef subclass for a sort.
lean_py/z3/core.py:2803
↓ 4 callersMethod_mk_int_rel
(self, cls_name, inst_name, a, b)
examples/06_effectful_verifier/python/expr_builder.py:80
↓ 4 callersFunction_sort_repr
Human-readable string for an ASTSort.
lean_py/z3/core.py:1463
↓ 4 callersFunctionadd_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 callersMethodas_expr
Conjunction of all constraints.
lean_py/z3/tactic.py:34
↓ 4 callersMethodclear
(self)
lean_py/kernel.py:274
↓ 4 callersMethoddenominator_as_long
(self)
lean_py/z3/core.py:591
↓ 4 callersFunctioneq
Structural equality between AST nodes (not SMT equality).
lean_py/z3/core.py:4273
↓ 4 callersFunctionfpAbs
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3383
↓ 4 callersFunctionfpGT
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3420
↓ 4 callersFunctionfpIsZero
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3437
↓ 4 callersFunctionfpLEQ
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3408
↓ 4 callersFunctionfpMinusZero
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3295
↓ 4 callersFunctionfpPlusZero
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3290
↓ 4 callersMethodfrom_lean
(p)
lean_py/marshal.py:651
↓ 4 callersMethodget
Return a cached managed project, creating it if necessary.
lean_py/project.py:115
↓ 4 callersFunctionis_bv
(a: ExprRef)
lean_py/z3/core.py:2478
↓ 4 callersMethodis_loaded
(self)
lean_py/kernel.py:271
↓ 4 callersFunctionis_or
(a: ExprRef)
lean_py/z3/core.py:2510
↓ 4 callersFunctionis_var
(a: ExprRef)
lean_py/z3/core.py:2490
↓ 4 callersFunctionlean_ctor_set
(self, o, i, v)
lean_py/_runtime.py:479
↓ 4 callersFunctionlean_inc
(self, o)
lean_py/_runtime.py:402
↓ 4 callersMethodlower
(self)
lean_py/z3/solver.py:1109
↓ 4 callersFunctionmain_ctx
Return the main context.
lean_py/z3/core.py:3027
↓ 4 callersMethodn_goals
(self)
lean_py/kernel.py:87
↓ 4 callersFunctionname_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 callersMethodnum_scopes
Return number of push scopes.
lean_py/z3/solver.py:577
↓ 4 callersMethodnumerator_as_long
(self)
lean_py/z3/core.py:588
↓ 4 callersMethodpop
(self, num_scopes: int)
lean_py/z3/core.py:4702
↓ 4 callersFunctionpy_obj_to_lean_string
LeanPy/native/python_bridge.c:588
↓ 4 callersMethodshort
A compact pseudo-Lean rendering for diagnostics.
lean_py/registry.py:65
↓ 4 callersFunctionsympy_prop_check
Check if a SymPy proposition is identically true.
examples/04_sympy_tactic/python/lean_to_sympy.py:186
↓ 4 callersMethodto_lean
(_)
lean_py/marshal.py:654
↓ 4 callersMethodtry_tactic
(self, tactic: str)
lean_py/kernel.py:99
↓ 3 callersFunctionAsArray
Convert a function declaration to an array.
lean_py/z3/core.py:2224
↓ 3 callersFunctionAtMost
At most k of the boolean args are true.
lean_py/z3/core.py:2097
↓ 3 callersFunctionBVAddNoOverflow
Check that a + b does not overflow.
lean_py/z3/core.py:1974
↓ 3 callersFunctionCharIsDigit
(ch: ExprRef, ctx: Context | None = None)
lean_py/z3/core.py:3846
↓ 3 callersFunctionCharToBv
(ch: ExprRef, ctx: Context | None = None)
lean_py/z3/core.py:3838
↓ 3 callersFunctionComplement
Complement of regex.
lean_py/z3/core.py:2424
↓ 3 callersFunctionConsts
(names: str, sort: SortRef)
lean_py/z3/core.py:1126
↓ 3 callersFunctionFiniteDomainSort
(name: str, sz: int, ctx: Context | None = None)
lean_py/z3/core.py:4011
↓ 3 callersFunctionFreshBool
Create a fresh boolean constant.
lean_py/z3/core.py:2165
↓ 3 callersFunctionIntersect
Intersection of regexes.
lean_py/z3/core.py:2414
↓ 3 callersFunctionIsMember
Set membership test.
lean_py/z3/core.py:3622
↓ 3 callersFunctionPlus
One or more repetitions.
lean_py/z3/core.py:2394
↓ 3 callersFunctionRange
Character range [lo..hi].
lean_py/z3/core.py:2429
↓ 3 callersFunctionRoundNearestTiesToEven
(ctx: Context | None = None)
lean_py/z3/core.py:3301
↓ 3 callersFunctionSRem
Signed remainder.
lean_py/z3/core.py:1639
↓ 3 callersFunctionSetComplement
Set complement via lambda.
lean_py/z3/core.py:3668
↓ 3 callersFunctionSetIntersect
Set intersection via lambda.
lean_py/z3/core.py:3653
↓ 3 callersFunctionSetSort
Set sort — implemented as Array(s, Bool).
lean_py/z3/core.py:3607
↓ 3 callersFunctionStrings
(names: str)
lean_py/z3/core.py:2278
↓ 3 callersFunctionUGE
Unsigned greater-than-or-equal.
lean_py/z3/core.py:1518
↓ 3 callersFunctionURem
Unsigned remainder.
lean_py/z3/core.py:1541
↓ 3 callersFunctionUnion
Union of regexes.
lean_py/z3/core.py:2404
↓ 3 callersMethod__init__
(self)
lean_py/z3/tactic.py:21
↓ 3 callersFunction_ast_children
Return child AST nodes of an AST node.
lean_py/z3/core.py:2627
↓ 3 callersFunction_call
Call *fn* with ``c_void_p`` args, cast result to *ObjPtr*.
lean_py/marshal.py:328
↓ 3 callersFunction_coerce_val
(v: int | float, sort: SortRef)
lean_py/z3/core.py:1435
↓ 3 callersFunction_ensure_built
Ensure the runtime types are built (lazy init).
lean_py/_runtime.py:741
↓ 3 callersFunction_get_kernel
()
lean_py/z3/solver.py:160
↓ 3 callersMethod_mk_int_binop
(self, cls_name, h_inst_name, base_inst_name, a, b)
examples/06_effectful_verifier/python/expr_builder.py:74
↓ 3 callersFunction_ptr_int
(o)
lean_py/_runtime.py:325
↓ 3 callersFunction_resolve_type
Resolve a C type string to a ctypes type, given known struct types.
lean_py/_runtime.py:94
↓ 3 callersFunction_substitute_ast
Walk and replace variables in an AST tree.
lean_py/z3/core.py:1747
↓ 3 callersFunction_type_to_str
(node)
lean_py/_parse.py:190
↓ 3 callersMethodadd_rule
(self, head: Any, body: Any = None, name: str | None = None)
lean_py/z3/solver.py:908
↓ 3 callersMethodas_signed_long
Return the signed integer value.
lean_py/z3/core.py:762
↓ 3 callersMethodas_string
(self)
lean_py/z3/core.py:3203
↓ 3 callersMethoddenominator
(self)
lean_py/z3/core.py:585
↓ 3 callersMethodfind_source_path
Locate the ``.lean`` source file for ``module_name``.
lean_py/kernel.py:374
↓ 3 callersFunctionfpDiv
(rm: FPRMRef, a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3375
↓ 3 callersFunctionfpGEQ
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3416
↓ 3 callersFunctionfpIsInf
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3433
↓ 3 callersFunctionfpIsNaN
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3429
↓ 3 callersFunctionfpMinusInfinity
(sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3285
↓ 3 callersFunctionfpSub
(rm: FPRMRef, a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3367
↓ 3 callersMethodget_id
Return a unique integer identifier for this expression.
lean_py/z3/core.py:380
↓ 3 callersFunctionget_lean_obj_handle_type
LeanPy/native/python_bridge.c:1160
↓ 3 callersFunctionget_structs
Get the dynamically created struct types.
lean_py/_runtime.py:751
↓ 3 callersFunctionis_app
True if a is a function application.
lean_py/z3/core.py:2556
↓ 3 callersFunctionis_ast
(a: object)
lean_py/z3/core.py:4098
↓ 3 callersFunctionis_const_array
(a: object)
lean_py/z3/core.py:4122
↓ 3 callersFunctionis_distinct
(a: ExprRef)
lean_py/z3/core.py:2502
↓ 3 callersFunctionis_implies
(a: ExprRef)
lean_py/z3/core.py:2518
↓ 3 callersFunctionis_int_value
True if a is a concrete integer literal.
lean_py/z3/core.py:2566
↓ 3 callersFunctionis_not
(a: ExprRef)
lean_py/z3/core.py:2514
↓ 3 callersFunctionis_rational_value
True if a is a rational value (division of two integer literals on Real sort).
lean_py/z3/core.py:2576
↓ 3 callersFunctionlean_alloc_array
(self, size, capacity)
lean_py/_runtime.py:564
↓ 3 callersFunctionlean_alloc_ctor
(self, tag, num_objs, scalar_sz)
lean_py/_runtime.py:556
↓ 3 callersFunctionlean_array_set_core
(self, o, i, v)
lean_py/_runtime.py:572
↓ 3 callersFunctionlean_int64_to_int
(self, n)
lean_py/_runtime.py:650
↓ 3 callersFunctionlean_is_external
(self, o)
lean_py/_runtime.py:441
← previousnext →201–300 of 2,559, ranked by callers