MCPcopy Create free account

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

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

↓ 1 callersMethod_key
(self, t: TypeRepr)
lean_py/marshal.py:437
↓ 1 callersMethod_lean_array_to_py
(self, ptr: Any, elem_w: TypeWrapper)
lean_py/marshal.py:457
↓ 1 callersFunction_leanpy_version
Return the installed lean_py package version.
lean_py/project.py:73
↓ 1 callersFunction_list_init_symbols
Return all globally-exported `initialize_*` symbols in `dylib`. Used as a fallback when the canonical `initialize_<lib>` symbol isn't where w
lean_py/library.py:40
↓ 1 callersMethod_load_registry
(self)
lean_py/library.py:518
↓ 1 callersFunction_marshal_binop
Convert a BinOp string to a Lean Z3BinOp value.
lean_py/z3/solver.py:211
↓ 1 callersFunction_marshal_unop
Convert a UnOp string to a Lean Z3UnOp value.
lean_py/z3/solver.py:217
↓ 1 callersFunction_ofnat_build
Handle ``OfNat.ofNat`` — args[1] is the nat literal.
examples/05_knuckledragger/python/lean_to_z3.py:116
↓ 1 callersFunction_ofnat_build
Handle ``OfNat.ofNat`` — args[1] is the nat literal.
examples/04_sympy_tactic/python/lean_to_sympy.py:113
↓ 1 callersFunction_parse_all
Parse all top-level S-expressions from a string.
lean_py/z3/smt2.py:133
↓ 1 callersFunction_parse_sexpr
Parse one S-expression from tokens starting at pos.
lean_py/z3/smt2.py:112
↓ 1 callersFunction_preprocess
Run cc -E and clean output for pycparser.
lean_py/_parse.py:120
↓ 1 callersMethod_py_object_wrapper
Wrapper for the `pyobject` TypeRepr (Lean's `LeanPy.Python.Py`). When Lean returns a `Py`, the Lean side hands us a `lean_object*` wr
lean_py/marshal.py:998
↓ 1 callersMethod_py_to_lean_array
Build a Lean Array from a Python iterable. Returns owned ptr.
lean_py/marshal.py:468
↓ 1 callersMethod_py_to_lean_string
Build a Lean string object from a Python str. Returns owned ptr.
lean_py/marshal.py:451
↓ 1 callersFunction_register_inductive
Register a Lean inductive type in the kernel environment.
lean_py/z3/_inductive_reg.py:34
↓ 1 callersMethod_resolve_indexed_app
Handle ((_ op params...) args...).
lean_py/z3/smt2.py:292
↓ 1 callersMethod_resolve_init_symbol
Resolve the module-initializer symbol, allowing for the Lake-naming variations Lean has gone through. The canonical name is `initiali
lean_py/library.py:461
↓ 1 callersFunction_sort_from_ast_sort
Create a SortRef from an ASTSort.
lean_py/z3/core.py:2820
↓ 1 callersMethod_string_field
Decode field `idx` of `ptr` as a Lean string (best effort).
lean_py/marshal.py:1131
↓ 1 callersFunction_tokenize
Tokenize an SMT-LIB2 string into a flat list of tokens.
lean_py/z3/smt2.py:58
↓ 1 callersFunction_verify_expr
Create a goal from a ``Lean.Expr`` and close it. Uses ``simp [Int.ofNat]`` to normalise the fully-elaborated Int literals before ``omega`` de
examples/06_effectful_verifier/python/refine.py:242
↓ 1 callersFunction_wrap_expr
Wrap an AST node into the correct ExprRef subclass based on sort.
lean_py/z3/core.py:884
↓ 1 callersFunctionall_lean_runtime_libs
All shared libs in `lib/lean` that are likely needed at load time. Includes `libleanshared`, `libleanshared_*`, `libLake_shared`, and any oth
lean_py/utils.py:90
↓ 1 callersMethodas_expr
Disjunction of sub-goal conjunctions (any sub-goal suffices).
lean_py/z3/tactic.py:61
↓ 1 callersMethodas_fraction
(self)
lean_py/z3/core.py:4479
↓ 1 callersMethodas_list
(self)
lean_py/z3/solver.py:1006
↓ 1 callersMethodas_list
(self)
lean_py/z3/solver.py:1032
↓ 1 callersMethodas_long
Return the integer value as a Python int.
lean_py/z3/core.py:559
↓ 1 callersMethodas_long
Return the unsigned integer value.
lean_py/z3/core.py:756
↓ 1 callersMethodassert_and_track
Add assertion tracked by p (tracking ignored — no unsat core support).
lean_py/z3/solver.py:604
↓ 1 callersMethodassertions
(self)
lean_py/z3/solver.py:842
↓ 1 callersMethodcheck
Check satisfiability (always returns unknown for optimization).
lean_py/z3/solver.py:827
↓ 1 callersFunctioncheck_prop
Check a proposition via Knuckledragger (backed by Z3).
examples/05_knuckledragger/python/lean_to_z3.py:188
↓ 1 callersMethodconsequences
Compute consequences (not supported).
lean_py/z3/solver.py:676
↓ 1 callersMethodcube
Generate cubes (not supported).
lean_py/z3/solver.py:672
↓ 1 callersMethoddecl_count
(self)
lean_py/kernel.py:279
↓ 1 callersMethoddecl_exists
(self, name: str)
lean_py/kernel.py:294
↓ 1 callersMethoddecl_type
(self, name: str)
lean_py/kernel.py:297
↓ 1 callersMethoddecls
(self)
lean_py/z3/solver.py:525
↓ 1 callersFunctiondisable_trace
Disable Z3 tracing (no-op).
lean_py/z3/core.py:4335
↓ 1 callersMethodelse_value
(self)
lean_py/z3/solver.py:1016
↓ 1 callersFunctionenable_trace
Enable Z3 tracing (no-op — Lean has its own tracing).
lean_py/z3/core.py:4330
↓ 1 callersMethodenv_pickle
(self, path: str)
lean_py/kernel.py:362
↓ 1 callersMethodenv_unpickle
(self, path: str)
lean_py/kernel.py:367
↓ 1 callersMethoderase
(self, k: Any)
lean_py/z3/core.py:3102
↓ 1 callersMethodeval
(self, t: Any, model_completion: bool = False)
lean_py/z3/solver.py:518
↓ 1 callersMethodexpr_proj_to_app
(self, src: str)
lean_py/kernel.py:406
↓ 1 callersFunctionextract_defines
Extract integer #define constants from raw header.
lean_py/_parse.py:107
↓ 1 callersFunctionfind_lean_dynlib
Locate `libleanshared.<ext>` in the active toolchain's `lib/lean`. Set ``LEANPY_LIBLEAN`` to override — useful for pointing at an ASAN-instru
lean_py/utils.py:66
↓ 1 callersFunctionfind_lean_header
Locate lean.h via the active Lean toolchain. Strategy: 1. Ask `lean --print-prefix` for the toolchain sysroot, look for `<prefix>/
lean_py/_parse.py:68
↓ 1 callersFunctionformat_lean_io_error
Convert an `IO.Error` payload into a printable C string. The bridge's * own errors are `userError String`; for others we fall back to the * underlyi
LeanPy/native/python_bridge.c:844
↓ 1 callersFunctionfpBVToFP
(a: BitVecRef, sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3486
↓ 1 callersFunctionfpFMA
(rm: FPRMRef, a: FPRef, b: FPRef, c: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3391
↓ 1 callersFunctionfpFPToFP
(rm: FPRMRef, a: FPRef, sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3490
↓ 1 callersFunctionfpIsNormal
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3441
↓ 1 callersFunctionfpIsSubnormal
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3445
↓ 1 callersFunctionfpRealToFP
(rm: FPRMRef, a: ArithRef, sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3494
↓ 1 callersFunctionfpRem
(a: FPRef, b: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3395
↓ 1 callersFunctionfpSignedToFP
(rm: FPRMRef, a: ExprRef, sort: FPSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3502
↓ 1 callersFunctionfpSqrt
(rm: FPRMRef, a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3387
↓ 1 callersFunctionfpToFP
(rm: Any, a: Any, sort: FPSortRef | None = None, ctx: Context | None = None)
lean_py/z3/core.py:3474
↓ 1 callersFunctionfpToReal
(a: FPRef, ctx: Context | None = None)
lean_py/z3/core.py:3458
↓ 1 callersFunctionfpToSBV
(rm: FPRMRef, a: FPRef, sort: BitVecSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3462
↓ 1 callersFunctionfpToUBV
(rm: FPRMRef, a: FPRef, sort: BitVecSortRef, ctx: Context | None = None)
lean_py/z3/core.py:3468
↓ 1 callersMethodfrom_file
Load solver from file (not supported).
lean_py/z3/solver.py:661
↓ 1 callersMethodfrom_json_strings
(cls, funcs_json: str, types_json: str)
lean_py/registry.py:189
↓ 1 callersMethodfrom_string
Load solver from string (not supported).
lean_py/z3/solver.py:666
↓ 1 callersFunctionget_constants
Get the extracted constants.
lean_py/_runtime.py:763
↓ 1 callersFunctionget_full_version
()
lean_py/z3/core.py:4355
↓ 1 callersFunctionget_header_model
Parse lean.h and return the HeaderModel, using a disk cache for speed.
lean_py/_parse.py:338
↓ 1 callersFunctionget_lean_callable_type
LeanPy/native/python_bridge.c:896
↓ 1 callersFunctionget_py_class
LeanPy/native/python_bridge.c:228
↓ 1 callersFunctionget_version
Return version tuple.
lean_py/z3/core.py:4345
↓ 1 callersMethodgoal_unpickle
Load a goal state previously serialised with :meth:`GoalState.pickle`.
lean_py/kernel.py:353
↓ 1 callersMethodhelp
Return solver help string.
lean_py/z3/solver.py:680
↓ 1 callersMethodinfer_type
(self, src: str)
lean_py/kernel.py:315
↓ 1 callersFunctioninteger_arithmetic
Linear arithmetic — where omega shines.
examples/07_z3py_drop_in/prove_with_lean.py:88
↓ 1 callersFunctionis_K
(a: object)
lean_py/z3/core.py:4126
↓ 1 callersFunctionis_ge
(a: ExprRef)
lean_py/z3/core.py:2605
↓ 1 callersFunctionis_gt
(a: ExprRef)
lean_py/z3/core.py:2609
↓ 1 callersFunctionis_lt
(a: ExprRef)
lean_py/z3/core.py:2601
↓ 1 callersFunctionis_pattern
(a: object)
lean_py/z3/core.py:4157
↓ 1 callersMethodkeys
(self)
lean_py/z3/solver.py:1056
↓ 1 callersFunctionlean_box_uint64
(self, v)
lean_py/_runtime.py:581
↓ 1 callersFunctionlean_dec_ref
(self, o)
lean_py/_runtime.py:385
↓ 1 callersFunctionlean_inc_ref
(self, o)
lean_py/_runtime.py:361
↓ 1 callersFunctionlean_inc_ref_n
(self, o, n)
lean_py/_runtime.py:373
↓ 1 callersFunctionlean_int64_of_int
(self, p)
lean_py/_runtime.py:668
↓ 1 callersFunctionlean_string_size
(self, o)
lean_py/_runtime.py:538
↓ 1 callersFunctionlean_toolchain_version
Return the lean-toolchain string (e.g. ``leanprover/lean4:v4.29.1``). Reads from the repo-root ``lean-toolchain`` file if available, otherwis
lean_py/utils.py:22
↓ 1 callersFunctionlean_uint64_of_nat
(self, p)
lean_py/_runtime.py:639
↓ 1 callersFunctionlean_uint64_to_nat
(self, n)
lean_py/_runtime.py:626
↓ 1 callersFunctionlean_unbox_float
(self, o)
lean_py/_runtime.py:612
↓ 1 callersFunctionlean_unbox_uint64
(self, o)
lean_py/_runtime.py:592
↓ 1 callersMethodlibrary
Build and return a :class:`LeanLibrary` for this project.
lean_py/project.py:134
↓ 1 callersFunctionmain
()
examples/01_basic/python/main.py:8
↓ 1 callersFunctionmain
()
examples/05_knuckledragger/python/main.py:14
↓ 1 callersFunctionmain
()
examples/02_pantograph_kernel/python/main.py:15
↓ 1 callersFunctionmain
()
examples/04_sympy_tactic/python/main.py:14
← previousnext →501–600 of 2,559, ranked by callers