MCPcopy Create free account

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

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

↓ 1 callersMethodminimize
Add minimization objective (returns handle index).
lean_py/z3/solver.py:822
↓ 1 callersMethodmk_bvar
(self, idx: int)
examples/06_effectful_verifier/python/expr_builder.py:49
↓ 1 callersMethodmk_int
(self, n: int)
examples/06_effectful_verifier/python/expr_builder.py:68
↓ 1 callersMethodmk_int_add
(self, a, b)
examples/06_effectful_verifier/python/expr_builder.py:84
↓ 1 callersMethodmk_int_ge
(self, a, b)
examples/06_effectful_verifier/python/expr_builder.py:96
↓ 1 callersMethodmk_int_gt
(self, a, b)
examples/06_effectful_verifier/python/expr_builder.py:93
↓ 1 callersMethodmk_int_le
(self, a, b)
examples/06_effectful_verifier/python/expr_builder.py:102
↓ 1 callersMethodmk_int_lt
(self, a, b)
examples/06_effectful_verifier/python/expr_builder.py:99
↓ 1 callersMethodmk_int_mul
(self, a, b)
examples/06_effectful_verifier/python/expr_builder.py:90
↓ 1 callersMethodmk_int_sub
(self, a, b)
examples/06_effectful_verifier/python/expr_builder.py:87
↓ 1 callersFunctionmk_name
(s: str)
examples/05_knuckledragger/python/main.py:28
↓ 1 callersFunctionmk_name
(s: str)
examples/04_sympy_tactic/python/main.py:29
↓ 1 callersMethodmodel
(self)
lean_py/z3/solver.py:831
↓ 1 callersMethodmodule_of
(self, name: str)
lean_py/kernel.py:303
↓ 1 callersFunctionnat_arithmetic
Nat-specific reasoning.
examples/07_z3py_drop_in/prove_with_lean.py:106
↓ 1 callersMethodno_pattern
Return the i-th no-pattern.
lean_py/z3/core.py:874
↓ 1 callersMethodnum_args
(self)
lean_py/z3/solver.py:993
↓ 1 callersMethodnum_entries
(self)
lean_py/z3/solver.py:1021
↓ 1 callersMethodnum_no_patterns
Return number of no-patterns (0).
lean_py/z3/core.py:870
↓ 1 callersMethodnum_patterns
Return number of patterns (0 — patterns not supported).
lean_py/z3/core.py:862
↓ 1 callersFunctionopen_log
Open Z3 log file (no-op).
lean_py/z3/core.py:4340
↓ 1 callersMethodparam_descrs
Return parameter descriptions.
lean_py/z3/solver.py:684
↓ 1 callersFunctionparse_io_error_message
Parse a Lean `IO.userError` string produced by `raise_py_error`. The C bridge formats Python errors as `"<TypeName>: <message>"`. If `raw` ma
lean_py/exceptions.py:80
↓ 1 callersMethodparse_string
(self, s: str)
lean_py/z3/solver.py:972
↓ 1 callersMethodparse_type
(self, src: str)
lean_py/kernel.py:331
↓ 1 callersMethodpattern
Return the i-th pattern.
lean_py/z3/core.py:866
↓ 1 callersMethodpickle
Serialise the goal state to disk via Lean's ``saveModuleData``. Round-trips with :meth:`Kernel.goal_unpickle`. Raises on error.
lean_py/kernel.py:180
↓ 1 callersMethodpop
(self)
lean_py/z3/solver.py:839
↓ 1 callersMethodpretty
(self)
lean_py/kernel.py:96
↓ 1 callersFunctionprobe_description
Return description of a probe.
lean_py/z3/tactic.py:381
↓ 1 callersMethodprocess_command
Process a single SMT-LIB2 command.
lean_py/z3/smt2.py:474
↓ 1 callersMethodproof
Return proof (not supported).
lean_py/z3/solver.py:704
↓ 1 callersFunctionpropositional_logic
Simple tautologies — the bread and butter of knuckledragger.
examples/07_z3py_drop_in/prove_with_lean.py:70
↓ 1 callersMethodpush
(self)
lean_py/z3/solver.py:836
↓ 1 callersFunctionpush_pop
Solver backtracking — incremental reasoning.
examples/07_z3py_drop_in/prove_with_lean.py:182
↓ 1 callersMethodqid
Return quantifier identifier (empty string).
lean_py/z3/core.py:854
↓ 1 callersFunctionquantifiers_and_uninterpreted
Uninterpreted sorts + functions — the group theory / syllogism pattern. This is a core knuckledragger idiom: G = smt.DeclareSort("G")
examples/07_z3py_drop_in/prove_with_lean.py:118
↓ 1 callersMethodquery
(self, *query: Any)
lean_py/z3/solver.py:935
↓ 1 callersMethodreason_unknown
Return reason for unknown result.
lean_py/z3/solver.py:614
↓ 1 callersMethodregister_relation
(self, *decls: Any)
lean_py/z3/solver.py:881
↓ 1 callersMethodreset
(self)
lean_py/z3/core.py:3105
↓ 1 callersMethodset
Set solver options (no-op — Lean solver has no tunable parameters).
lean_py/z3/solver.py:564
↓ 1 callersFunctionset_param
Set global Z3 parameters (no-op — Lean has no tunable Z3 parameters).
lean_py/z3/solver.py:756
↓ 1 callersFunctionsetup_kernel
(managed: bool = False)
examples/07_z3py_drop_in/prove_with_lean.py:24
↓ 1 callersMethodsexpr
(self)
lean_py/z3/solver.py:537
↓ 1 callersMethodskolem_id
Return Skolem identifier (empty string).
lean_py/z3/core.py:858
↓ 1 callersFunctionsolve_using
Solve using a specific solver instance.
lean_py/z3/solver.py:774
↓ 1 callersMethodsolver
Create a Solver that uses this tactic.
lean_py/z3/tactic.py:102
↓ 1 callersFunctionsolver_unsat
Using the Solver to detect contradictions (unsat). In knuckledragger, you'd use z3.Solver() directly. Here the solver drives grind under the
examples/07_z3py_drop_in/prove_with_lean.py:152
↓ 1 callersMethodstatistics
Return solver statistics.
lean_py/z3/solver.py:618
↓ 1 callersFunctiontactic_description
Return description of a tactic.
lean_py/z3/tactic.py:365
↓ 1 callersFunctiontextwrap_indent
(s: str, prefix: str)
examples/02_pantograph_kernel/python/main.py:80
↓ 1 callersMethodto_smt2
Return SMT-LIB2 representation (approximate).
lean_py/z3/solver.py:629
↓ 1 callersMethodtranslate
Translate solver to another context (no-op).
lean_py/z3/solver.py:708
↓ 1 callersMethodtranslate
Translate expression to another context (no-op — single context).
lean_py/z3/core.py:376
↓ 1 callersMethodtranslate
(self, ctx: Context)
lean_py/z3/core.py:3074
↓ 1 callersMethodtry_define
Equivalent to ``let <binder_name> := <expr_str>``.
lean_py/kernel.py:139
↓ 1 callersMethodtry_draft
Substitute the goal with an expression that may contain sorrys, leaving the sorrys as fresh subgoals.
lean_py/kernel.py:148
↓ 1 callersMethodtry_have
Equivalent to ``have <binder_name> : <type_str> := ?``.
lean_py/kernel.py:121
↓ 1 callersMethodtry_let
Equivalent to ``let <binder_name> : <type_str> := ?``.
lean_py/kernel.py:130
↓ 1 callersFunctiontry_load_python
LeanPy/native/python_bridge.c:363
↓ 1 callersFunctionuncurry_app
Flatten nested ``Expr.app(f, x)`` into ``(head, [arg0, arg1, ...])``.
examples/05_knuckledragger/python/lean_to_z3.py:58
↓ 1 callersFunctionuncurry_app
Flatten nested ``Expr.app(f, x)`` into ``(head, [arg0, arg1, ...])``.
examples/04_sympy_tactic/python/lean_to_sympy.py:58
↓ 1 callersMethodunsat_core
Return unsat core (not supported).
lean_py/z3/solver.py:608
↓ 1 callersMethodvalue
(self)
lean_py/z3/solver.py:1001
↓ 1 callersMethodvar_sort
Return the sort of the i-th bound variable.
lean_py/z3/core.py:846
↓ 1 callersFunctionverify_function
Verify all ``assert_refined`` calls in *fn* hold given its refinements. 1. Inspect *fn*'s type annotations → create ``defop(int)`` per param +
examples/06_effectful_verifier/python/refine.py:183
↓ 1 callersMethodweight
Return quantifier weight (default 0).
lean_py/z3/core.py:850
↓ 1 callersMethodwhnf
(self, src: str)
lean_py/kernel.py:321
FunctionBVSNegNoOverflow
Check that signed negation does not overflow (i.e. a != MIN_INT).
lean_py/z3/core.py:2082
FunctionCbrt
Cube root (represented as application).
lean_py/z3/core.py:4316
FunctionCond
Conditional tactic: apply t1 if probe p is true, else t2.
lean_py/z3/tactic.py:355
FunctionCreatePolymorphicDatatype
Create a polymorphic datatype builder. Returns a Datatype builder.
lean_py/z3/core.py:4403
FunctionDatatypeSort
Create a datatype sort (alias for DeclareSort).
lean_py/z3/core.py:4398
FunctionDefault
Get the default value of a constant array. Otherwise build an AppNode.
lean_py/z3/core.py:4292
FunctionE
Mathematical constant e (Euler's number).
lean_py/z3/core.py:4648
FunctionExt
Array extensionality: return an index where a and b differ.
lean_py/z3/core.py:4303
FunctionFiniteSetFilter
Filter finite set s with predicate f.
lean_py/z3/core.py:3745
FunctionFiniteSetMap
Map function f over finite set s.
lean_py/z3/core.py:3726
FunctionFiniteSetRange
Finite set range (not supported).
lean_py/z3/core.py:3760
FunctionFiniteSetSize
Set cardinality (not supported).
lean_py/z3/core.py:3721
FunctionFull
Full sequence.
lean_py/z3/core.py:3934
MethodINT
(self)
examples/06_effectful_verifier/python/expr_builder.py:65
FunctionLinearOrder
Declare a linear (total) order relation.
lean_py/z3/core.py:4370
FunctionMkInfinitesimal
Create an infinitesimal value.
lean_py/z3/core.py:4653
FunctionMkRoots
Return roots of polynomial (not supported).
lean_py/z3/core.py:4658
FunctionModel
Create a new (empty) model.
lean_py/z3/solver.py:1071
FunctionPartialOrder
Declare a partial order relation.
lean_py/z3/core.py:4364
FunctionPi
Mathematical constant pi.
lean_py/z3/core.py:4643
FunctionPiecewiseLinearOrder
Declare a piecewise linear order relation.
lean_py/z3/core.py:4382
FunctionPropagateFunction
Create a propagation function.
lean_py/z3/core.py:4737
FunctionSeqFoldLeft
Left fold over sequence.
lean_py/z3/core.py:3973
FunctionSeqFoldLeftI
Indexed left fold over sequence.
lean_py/z3/core.py:3983
FunctionSeqMap
Map function over sequence.
lean_py/z3/core.py:3955
FunctionSeqMapI
Map indexed function over sequence.
lean_py/z3/core.py:3964
FunctionSingleton
Create a singleton set containing e.
lean_py/z3/core.py:3714
FunctionSubSeq
Extract subsequence (alias for SubString).
lean_py/z3/core.py:3950
FunctionTransitiveClosure
Compute the transitive closure of a binary relation.
lean_py/z3/core.py:4388
FunctionTreeOrder
Declare a tree order relation.
lean_py/z3/core.py:4376
FunctionWhen
Conditional tactic: apply t when probe p is true.
lean_py/z3/tactic.py:350
← previousnext →601–700 of 2,559, ranked by callers