MCPcopy Create free account

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

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

Methoddecl_axioms
(self, name: str)
lean_py/kernel.py:309
Methoddecl_value
(self, name: str)
lean_py/kernel.py:300
Methoddeclare_var
(self, *args: Any)
lean_py/z3/solver.py:886
Functiondecode_and_check_prop
Decode a ``LeanObjHandle`` wrapping a ``Lean.Expr`` and check if Knuckledragger / Z3 can discharge the proposition. Called from the Lean tact
examples/05_knuckledragger/python/lean_to_z3.py:210
Functiondecode_and_check_prop
Decode a ``LeanObjHandle`` wrapping a ``Lean.Expr`` and check if the proposition it represents is identically true according to SymPy. Called
examples/04_sympy_tactic/python/lean_to_sympy.py:210
Functiondescribe_probes
Print descriptions of all available probes.
lean_py/z3/tactic.py:386
Functiondescribe_tactics
Print descriptions of all available tactics.
lean_py/z3/tactic.py:370
Functiondeserialize
Deserialize an expression from string.
lean_py/z3/core.py:4440
Methoddiag
Diagnostic dump of the GoalState's internal mvar table.
lean_py/kernel.py:168
Methoddomain
(self)
lean_py/z3/core.py:266
Methodebits
(self)
lean_py/z3/core.py:3129
Methodentry
(self, i: int)
lean_py/z3/solver.py:1024
Functionexample_lib
()
tests/conftest.py:23
Methodexpr_echo
(self, src: str)
lean_py/kernel.py:324
Methodfact
(self, head: Any, name: str | None = None)
lean_py/z3/solver.py:930
Functionfailing
(x: Annotated[int, Gt(0)])
examples/06_effectful_verifier/python/main.py:66
Methodfind_func
(self, export_name: str)
lean_py/registry.py:230
FunctionfpFP
Construct FP from sign/exponent/significand BitVecs.
lean_py/z3/core.py:3552
FunctionfpInfinity
Generalized infinity constructor.
lean_py/z3/core.py:3538
FunctionfpNEQ
FP not-equal: Not(fpEQ(a, b)).
lean_py/z3/core.py:3518
FunctionfpRoundToIntegral
Round FP value to integral.
lean_py/z3/core.py:3523
FunctionfpToFPUnsigned
Alias for fpUnsignedToFP.
lean_py/z3/core.py:3563
FunctionfpToIEEEBV
Convert FP to IEEE BV representation.
lean_py/z3/core.py:3528
FunctionfpZero
Generalized zero constructor.
lean_py/z3/core.py:3545
Methodfragment_exit
(self)
lean_py/kernel.py:115
Methodfrom_json
(cls, data: dict[str, Any])
lean_py/registry.py:114
Methodfrom_json
(cls, data: dict[str, Any])
lean_py/registry.py:139
Methodfrom_json
(cls, data: dict[str, Any])
lean_py/registry.py:165
Methodfrom_string
Parse SMT-LIB2 string (not supported).
lean_py/z3/solver.py:1145
Methodget_answer
(self)
lean_py/z3/solver.py:957
Functionget_as_array_func
Get FuncDeclRef from as-array expression.
lean_py/z3/solver.py:1086
Methodget_assertions
(self)
lean_py/z3/solver.py:969
Functionget_default_fp_sort
Return the current default FP sort.
lean_py/z3/core.py:3591
Functionget_default_rounding_mode
Return the current default rounding mode.
lean_py/z3/core.py:3580
Methodget_ground_sat_answer
(self)
lean_py/z3/solver.py:960
Methodget_key_value
(self, key: str)
lean_py/z3/solver.py:1059
Functionget_map_func
Get FuncDeclRef from mapped array expression.
lean_py/z3/solver.py:1091
Methodget_name
(self, i: int)
lean_py/z3/core.py:4600
Methodget_or_raise
Get the value if Ok, or raise an exception if Error. Raises: RuntimeError: If the result is an Error
lean_py/lean_types.py:100
Methodget_param
Get solver parameter value (always None).
lean_py/z3/solver.py:716
Methodget_rules
(self)
lean_py/z3/solver.py:963
Methodget_rules_along_trace
(self)
lean_py/z3/solver.py:966
Methodgoal_names
(self)
lean_py/kernel.py:159
Methodhandle
(self)
lean_py/kernel.py:81
Functionhelp_simplify
Return simplify help string.
lean_py/z3/core.py:4550
Methodimport_model_converter
Import model converter from another solver (no-op).
lean_py/z3/solver.py:720
Functionin_html_mode
Check if HTML output mode is enabled.
lean_py/z3/core.py:4535
Functioninc_ref
Increment reference counter.
lean_py/_runtime.py:702
Functionio_result_is_ok
Check if an IO result is Ok (tag == 0).
lean_py/_runtime.py:716
Functionio_result_show_error
Display an IO error result.
lean_py/_runtime.py:720
MethodisZero
(self)
lean_py/z3/core.py:3216
Functionis_algebraic_value
True if a is an algebraic value. Always False for lean.py.
lean_py/z3/core.py:4193
Functionis_arith_sort
True if s is an arithmetic sort.
lean_py/z3/core.py:4161
Functionis_array_sort
True if s is an array sort.
lean_py/z3/core.py:4171
Functionis_as_array
Check if expression is an as-array.
lean_py/z3/solver.py:1081
Functionis_bv_sort
True if s is a bit-vector sort.
lean_py/z3/core.py:4166
Functionis_default
True if expression is a Default application.
lean_py/z3/core.py:4198
Methodis_digit
Check if char is a digit.
lean_py/z3/core.py:3809
Methodis_error
Check if result is Error.
lean_py/lean_types.py:96
Functionis_finite_domain
True if expression's sort is a finite domain.
lean_py/z3/core.py:4208
Functionis_finite_domain_sort
True if s is a finite domain sort.
lean_py/z3/core.py:4213
Functionis_finite_domain_value
True if a is a finite domain value.
lean_py/z3/core.py:4218
Functionis_finite_set
True if a is a finite set (array with Bool range).
lean_py/z3/core.py:3765
Functionis_finite_set_sort
True if s is a finite set sort (array sort with Bool range).
lean_py/z3/core.py:3773
Functionis_fp_sort
True if s is a floating-point sort.
lean_py/z3/core.py:4176
Functionis_fprm_sort
True if s is a rounding mode sort.
lean_py/z3/core.py:4181
Functionis_fprm_value
True if a is a rounding mode value.
lean_py/z3/core.py:4188
Methodis_internal_name
(self, name: str)
lean_py/kernel.py:306
Functionis_is_int
Check if expression is IsInt (ToInt(a) == a).
lean_py/z3/core.py:4150
Functionis_kernel_full
(item)
tests/conftest.py:40
Functionis_map
(a: object)
lean_py/z3/core.py:4130
Methodis_string
True if this is Seq(Char), i.e. String.
lean_py/z3/core.py:3868
Methodis_string
(self)
lean_py/z3/core.py:3911
Functionkernel
Initialize the kernel and load the Init env.
tests/test_transport_unification.py:22
Functionkernel
Initialise Lean's search path and load a baseline `Init` env.
tests/test_kernel.py:15
Functionkernel
(example_lib)
tests/test_kernel_extra.py:23
Functionkernel
(example_lib)
tests/test_z3_ported.py:412
Functionkernel
(example_lib)
tests/test_z3_compat.py:219
Functionkernel
Initialize the kernel and load the `Init` env.
tests/test_kernel_full.py:16
Functionkernel
(example_lib)
tests/test_z3_semantic.py:116
Methodkind
(self)
lean_py/z3/core.py:214
Functionlean_ctor_get_uint16
(self, o, byte_offset)
lean_py/_runtime.py:501
Functionlean_ctor_get_uint32
(self, o, byte_offset)
lean_py/_runtime.py:509
Functionlean_ctor_get_uint64
(self, o, byte_offset)
lean_py/_runtime.py:517
Functionlean_ctor_get_uint8
(self, o, byte_offset)
lean_py/_runtime.py:493
Functionlean_ctor_num_objs
(self, o)
lean_py/_runtime.py:464
Functionlean_ctor_scalar_addr
Base address + byte_offset into the m_objs region of a ctor.
lean_py/_runtime.py:487
Functionlean_ctor_set_uint16
(self, o, byte_offset, val)
lean_py/_runtime.py:505
Functionlean_ctor_set_uint32
(self, o, byte_offset, val)
lean_py/_runtime.py:513
Functionlean_ctor_set_uint64
(self, o, byte_offset, val)
lean_py/_runtime.py:521
Functionlean_ctor_set_uint8
(self, o, byte_offset, val)
lean_py/_runtime.py:497
Functionlean_has_rc
(self, o)
lean_py/_runtime.py:358
Functionlean_inc_n
(self, o, n)
lean_py/_runtime.py:406
Functionlean_include_dir
Directory containing `lean/lean.h`.
lean_py/utils.py:52
Functionlean_is_array
(self, o)
lean_py/_runtime.py:420
Functionlean_is_closure
(self, o)
lean_py/_runtime.py:417
Functionlean_is_ctor
(self, o)
lean_py/_runtime.py:414
Functionlean_is_exclusive
(self, o)
lean_py/_runtime.py:452
Functionlean_is_mpz
(self, o)
lean_py/_runtime.py:429
Functionlean_is_mt
(self, o)
lean_py/_runtime.py:349
← previousnext →1,001–1,100 of 2,559, ranked by callers