This is useful for example to remove inputs corresponding to definition of symbols, which may be unexpected for some users, like when using named to wrap assertions and generate unsat cores.
default = "false"
help = "add optional annotations to proofs, which enables statistics for inference ids for lemmas and conflicts appearing in final proof"
+[[option]]
+ name = "proofPruneInput"
+ category = "regular"
+ long = "proof-prune-input"
+ type = "bool"
+ default = "false"
+ help = "Prune unused input assumptions from final scope"
+
[[option]]
name = "proofAletheResPivots"
category = "regular"
Trace("smt-proof") << "SolverEngine::setFinalProof(): make scope...\n";
// Now make the final scope, which ensures that the only open leaves of the
- // proof are the assertions.
- d_finalProof = d_pnm->mkScope(pfn, assertions);
+ // proof are the assertions. If we are pruning the input, we will try to
+ // minimize the used assertions.
+ d_finalProof =
+ d_pnm->mkScope(pfn, assertions, true, options().proof.proofPruneInput);
Trace("smt-proof") << "SolverEngine::setFinalProof(): finished.\n";
}