pub struct Certificate {
pub vars: u32,
pub clauses: Vec<Vec<Lit>>,
pub proof: Vec<Step>,
pub exhaustion: Option<Exhaustion>,
}Expand description
Clauses and a DRUP proof that they are unsatisfiable, or, for a proof by complete
enumeration (Config::exhaustive_inputs), the circuit to enumerate.
Fields§
§vars: u32The number of variables.
clauses: Vec<Vec<Lit>>The clauses.
proof: Vec<Step>The proof.
exhaustion: Option<Exhaustion>The circuit of a proof by complete enumeration. Such a certificate has no clauses or
DRUP proof, so its dimacs and drat export nothing a
DRAT checker would accept.
Implementations§
Source§impl Certificate
impl Certificate
Sourcepub fn check(&self) -> Result<(), String>
pub fn check(&self) -> Result<(), String>
Checks the proof with the independent checker: the DRUP proof against the clauses, or
the circuit of an Exhaustion at every assignment of its inputs.
Sourcepub fn lrat(&self) -> Result<Vec<Step>, String>
pub fn lrat(&self) -> Result<Vec<Step>, String>
The proof as LRAT (lrat): every learned clause with the clauses it follows from,
found by checking the DRUP proof, for a checker that does no search (the text is
lrat::to_text, beside dimacs). An error when the proof does not
check, or is one by enumeration.