Proof format: LFSC
Using the flag proof-format-mode=lfsc, cvc5 outputs proofs in the LFSC proof format.
The LFSC proof format is based on the LF logical framework extended with computational side conditions, as described in []. A high performance C++ proof checker for LFSC is available here.
For a quick start, the cvc5 repository contains a script which will download and install the LFSC proof checker, and create scripts for generating proofs with cvc5 and checking them with the LFSC proof checker.
LFSC is a meta-framework, meaning that the proof rules used by cvc5 are defined in signature files, also contained within the cvc5 repository in this directory. Based on these signatures, cvc5 provides basic support for LFSC proofs over all theories that it supports.
Note that several proof rules in the internal calculus are not yet supported in LFSC signatures, and are instead printed as trust steps in the LFSC proof. A trust step proves an arbitrary formula with no provided justification. The LFSC proof contains warnings for which proof rules from the internal calculus were recorded as trust steps in the LFSC proof.
For more fine-grained proofs, the additional option proof-granularity=theory-rewrite should be passed to cvc5. This often will result in LFSC proofs with more detail, and whose trust steps correspond only to equalities corresponding to theory rewrites.
A simple example of cvc5 producing a proof in LFSC proof format:
$ bin/cvc5 --dump-proofs --proof-format-mode=lfsc --proof-granularity=theory-rewrite ../test/regress/cli/regress0/proofs/qgu-fuzz-1-bool-sat.smt2
(error "Fatal error in option parsing: expert option proof-format-mode cannot be set in safe mode.")