Common parameters and settings¶
This page collects the keyword parameters and environment variables that recur across the public API, with their defaults and their meaning. Each table names the functions that accept the parameter; the linked how-to page shows it in use, and the API reference documents every function in full. All defaults on this page are read from the source of the current version.
Objects and the registry¶
Parameter |
Accepted by |
Default |
Meaning |
See |
|---|---|---|---|---|
|
|
|
the |
|
|
|
|
the form or multivector degree; an integer or a symbolic degree |
|
|
|
|
the bundle the object lives on, for example |
|
|
|
|
a fixed rank, needed only where a dimension enters a formula |
|
|
|
as shown |
the printed symbol |
|
|
|
|
when true, declarations with |
|
|
context manager on |
every declaration made inside the block is rolled back at the end |
||
|
context manager on |
inside the block only the listed property types are visible |
||
|
|
|
the axioms the structure satisfies, as atomic names ( |
|
|
|
|
the printed name of the anchor |
Engines¶
Parameter |
Accepted by |
Default |
Meaning |
See |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
frames whose vectors commute, \([e_a,e_b]=0\) |
|
|
|
|
projector rules made from |
|
|
|
|
|
|
|
engine builders and theorem builders of |
|
switch on the fundamental identity of a Nambu structure, or the Poisson condition \([\pi,\pi]=0\); with |
|
|
|
|
the structures whose rules are assembled, the fundamental identity, extra rules |
Proving¶
Parameter |
Accepted by |
Default |
Meaning |
See |
|---|---|---|---|---|
|
|
|
the rules a proof may use |
|
|
|
|
the strategy object that orders the rules |
|
|
|
|
|
|
|
|
|
the largest number of moves in a proof |
|
|
as above |
|
distinct expressions explored before the beam fallback takes over |
as above |
|
as above |
|
candidates kept per level by the beam fallback |
as above |
|
as above |
|
proofs collected before the best is returned |
as above |
|
|
|
the strategy used on each generator |
|
|
|
|
rule applications per expansion pass; exhaustion raises |
|
|
|
|
rule applications for both sides together; exhaustion gives the status |
|
|
|
|
rule applications per expansion; |
|
|
theorem builders of |
builder-specific, for example |
the budget of the expansion inside the builder; raise it only if a builder stops on its budget |
|
|
|
|
outer rounds, the passes run after each expansion, an optional inner fixed point, whether to keep the steps, an early-stop predicate |
|
|
|
|
one of |
|
|
|
|
run the simplifier on each side’s normal form before comparing |
Two cases are easy to miss. jacopy.prove without prefer runs ExpandAndSimplify and
ignores every other keyword, including the search options and oracle=. With prefer it
passes the extra keywords to SearchStrategy, which rejects oracle= with TypeError. Use
jacopy.show_equal(..., oracle=...) or the oracle_mode context manager instead.
Theorems and citation¶
Parameter |
Accepted by |
Default |
Meaning |
See |
|---|---|---|---|---|
|
|
the theorems to add to the engine as rules |
||
|
|
|
add the theorem as the rule rhs \(\to\) lhs instead of lhs \(\to\) rhs |
|
|
|
|
allow citing a record whose chain is not replayed; the citing result carries the “unverified citation” marker |
|
|
|
|
store the theorem as an explicit unverified assumption |
Display, LaTeX and citations¶
Parameter |
Accepted by |
Default |
Meaning |
See |
|---|---|---|---|---|
|
|
|
|
|
|
text, terminal and Jupyter renderers; LaTeX renderers |
|
levels of sub-steps shown |
as above |
|
|
|
show only the first steps, then a “more steps” row |
as above |
|
|
|
print a heading line above the tree |
as above |
|
|
|
the |
|
|
|
|
the approximate line width, in visible units, at which long formulas are broken between summands |
as above |
|
|
|
|
as above |
|
|
|
append the reference list of the cited works |
as above |
|
|
|
|
as above |
|
|
|
include the proof transcript |
as above |
|
the document builders |
|
document metadata and extra preamble lines |
as above |
|
|
|
the spacing of the TikZ nodes |
as above |
|
|
|
|
as above |
|
|
|
the part of the work cited, for example |
as above |
The model oracle¶
Setting |
Where |
Default |
Meaning |
See |
|---|---|---|---|---|
|
|
|
|
|
|
|
the mode for a block of code |
as above |
|
|
|
|
models per check, base seed, seconds allowed |
as above |
|
pytest, in the JacoPy test suite |
|
run the oracle on every closed equation |
|
|
pytest, in the JacoPy test suite |
|
models per closure, base seed, JSON report path |
as above |
Environment variables¶
Variable |
Default |
Meaning |
|---|---|---|
|
|
default oracle mode: |
|
|
models per closed equation; a value that is not a positive integer warns once and leaves the oracle off |
|
|
base seed for the models; an invalid value is replaced by |
JacoPy reads no other environment variables. The oracle needs the optional oracle extra
(SymPy); with the oracle off, SymPy is not imported.