pub struct QueryCertificate {
pub certificate: Certificate,
pub query: QueryDag,
}Expand description
A certificate together with the query it certifies (issue #192 phase
4): the v1 pair (certificate.cnf, certificate.lrat) plus the lowered
QueryDag. QueryCertificate::recheck is the stronger re-check:
the trusted crate re-encodes the DAG itself and checks the proof
against the CNF it produced, so an accepted re-check proves the DAG
unsatisfiable — kernel.spec.check_query_sound.
Fields§
§certificate: CertificateThe v1 pair: the CNF the solver produced from the DAG, and the LRAT
proof the checker validated against it. certificate.recheck() is
the v1 (CNF-level) re-check, still available.
query: QueryDagThe lowered query the CNF was encoded from.
Implementations§
Source§impl QueryCertificate
impl QueryCertificate
Sourcepub fn recheck(&self) -> Result<(), QueryRecheckError>
pub fn recheck(&self) -> Result<(), QueryRecheckError>
Re-establish the verdict at the QUERY level, with zero trust in the
solver: ordeal_lrat::check_query checks the DAG well-formed
(dag_wf), re-runs the proven lowering over it, and checks the LRAT
proof against the CNF it produced. Ok(()) ⟹ no assignment to the
DAG’s variables makes every root true (check_query_sound). The
re-encoded CNF must also equal certificate.cnf, so the v1 pair a
bundle carries for older readers is the query’s CNF and not another.
Trait Implementations§
Source§impl Clone for QueryCertificate
impl Clone for QueryCertificate
Source§fn clone(&self) -> QueryCertificate
fn clone(&self) -> QueryCertificate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more