Reconciling proofs and unsat cores (#6405)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Thu, 22 Apr 2021 14:33:38 +0000 (11:33 -0300)
committerGitHub <noreply@github.com>
Thu, 22 Apr 2021 14:33:38 +0000 (09:33 -0500)
commitbc928d24d7454d81f39006b4129a29286fcd10eb
tree7daf38a8285dc7aad89ae61666e61809cecd8912
parent3527400d2af35d96a47971db83891b31c47f57ef
Reconciling proofs and unsat cores (#6405)

This commit changes how defaults are set and how the SMT solver is initialized so that proofs can be used fully with (new) unsat cores. Three modes of unsat cores are established now:

the upcoming assumption-based cores, which are incompatible with producing proofs (but enable proofs for preprocessing)
cores based on the SAT proof, which are incompatible with producing proofs (but enable proofs for preprocessing and the SAT solver)
cores based on the full proof, which are unrestricted
All the modes activate proofs but lead to errors if the user requires proofs but is not in the full proofs mode for cores.
20 files changed:
src/api/cpp/cvc5.cpp
src/options/smt_options.toml
src/preprocessing/assertion_pipeline.cpp
src/preprocessing/passes/ite_removal.cpp
src/preprocessing/passes/ite_simp.cpp
src/preprocessing/passes/miplib_trick.cpp
src/preprocessing/passes/non_clausal_simp.cpp
src/preprocessing/passes/theory_preprocess.cpp
src/proof/proof_manager.cpp
src/prop/minisat/core/Solver.cc
src/prop/prop_engine.cpp
src/prop/theory_proxy.cpp
src/smt/assertions.cpp
src/smt/proof_manager.cpp
src/smt/proof_manager.h
src/smt/set_defaults.cpp
src/smt/smt_engine.cpp
src/smt/smt_solver.cpp
src/smt/smt_solver.h
test/regress/regress2/strings/issue3203.smt2