Proof
This class encapsulates a cvc5 proof object, which can be retrieved via
function cvc5::Solver::getProof()
after a
cvc5::Solver::checkSat()
query returns an unsat result.
-
class Proof
A cvc5 proof. Proofs are trees and every proof object corresponds to the root step of a proof. The branches of the root step are the premises of the step.
Public Functions
-
Proof()
Nullary constructor. Needed for the Cython API.
-
~Proof()
-
bool isNull() const
Determine if this is the null proof (Proof::Proof()).
- Returns:
True if this grammar is the null proof.
-
ProofRule getRule() const
Get the proof rule used by the root step of the proof.
- Returns:
The proof rule.
-
ProofRewriteRule getRewriteRule() const
Get the proof rewrite rule used by the root step of the proof.
Requires that
getRule()
does not return #DSL_REWRITE or #THEORY_REWRITE.- Returns:
The proof rewrite rule.
-
const std::vector<Term> getArguments() const
- Returns:
The arguments of the root step of the proof as a vector of terms. Some of those terms might be strings.
Friends
- friend struct std::hash< Proof >
-
Proof()