[unsat-cores] [sat-proof] Fix open proofs due to theory lemmas (#8371)
authorHaniel Barbosa <hanielbbarbosa@gmail.com>
Thu, 24 Mar 2022 15:32:42 +0000 (12:32 -0300)
committerGitHub <noreply@github.com>
Thu, 24 Mar 2022 15:32:42 +0000 (15:32 +0000)
commit2044c5b87f2b7fde24c3a57a626e903663f34e15
tree455dd10ea411d5bd7bb557f53432f496de241132
parent4a84ee32687d84ff18835c23196086f1ef1ba3aa
[unsat-cores] [sat-proof] Fix open proofs due to theory lemmas (#8371)

Previously when producing sat proofs for unsat cores (no theory proofs) theory lemmas were becoming open leafs in the final proof, breaking the invariant that only inputs should be so. This commit guards against this by justifying these lemmas with a THEORY_LEMMA step.

Fixes cvc5/cvc5-projects#468
src/prop/proof_cnf_stream.cpp
src/prop/prop_engine.cpp
src/prop/prop_engine.h
test/regress/cli/CMakeLists.txt
test/regress/cli/regress0/proofs/proj-issue468-mkScope.smt2 [new file with mode: 0644]