In this page, p is assumed to be a ProofState() object, created either by p = ProofState() or by using one of the provided examples.
Prints the current proof state.
Prints the current proof.
Advance to the next unresolved goal (if any).
Move back to the previous unresolved goal (if any).
Move to the first unresolved goal (if any).
Move to the last unresolved goal (if any).
Go back a step in the proof (to a step that was already handled by some tactic).
Go forward to the nth branch in the proof immediately following the current step. (This assumes that the current step generated at least n new proof states.)
Go back a step in the proof and clear the tactic. (Cannot be reversed.)
Automatically finish a proof when all goals are completed. (This is the default.)
Do not automatically finish a proof when all goals are complete.
Exit Tactic mode and return to Assumption mode (but keep the current proof tree).
Exit Assumption mode and enter Tactic mode (assuming that a proof has been started).
Exit Tactic mode and return to Assumption mode, clearing the hypotheses and goal of the proof.
List how many goals are remaining.
List all the goals remaining.
Return the assumption or hypothesis named hyp (as a sympy Basic objects).
Return the variable named name (as a sympy Basic object).
Return the variables named in names (as a List of sympy Basic objects).
Return the variables in the hypotheses.
Introduce a variable name of type type. Only valid in assumption mode. Currently supported variable types:
"real"- real numbers"pos_real"- positive real numbers"nonneg_real"- nonnegative real numbers"nonzero_real"- nonzero real numbers
"int"- integers"pos_int"- positive integers (natural numbers, in some contexts)"nonneg_int"- nonnegative integers (natural numbers, in some other contexts)"nonzero_int"- nonzero integers
"rat"- rational numbers"pos_rat"- positive rationals"nonneg_rat"- nonnegative rationals"nonzero_rat"- nonzero rationals
"complex"- complex numbers"nonzero_complex"- nonzero complex numbers
"bool"- boolean objects (Propositions)"order"- an order of magnitude (necessarily positive)
The IsPositive(), IsNonnegative() and IsNonzero() tactics can upgrade the type of a variable.
Introduce multiple variables of type type. Only valid in assumption mode. Same list of supported variable types as p.var().
Introduce an assumption assumption named name. Only valid in assumption mode. assumption must be a proposition.
Enter tactic mode, with the aim of proving goal from previously given assumptions. goal must be a proposition.