1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Haniel Barbosa |
4 |
|
* |
5 |
|
* This file is part of the cvc5 project. |
6 |
|
* |
7 |
|
* Copyright (c) 2009-2021 by the authors listed in the file AUTHORS |
8 |
|
* in the top-level source directory and their institutional affiliations. |
9 |
|
* All rights reserved. See the file COPYING in the top-level source |
10 |
|
* directory for licensing information. |
11 |
|
* **************************************************************************** |
12 |
|
* |
13 |
|
* Boolean proof checker utility. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "cvc5_private.h" |
17 |
|
|
18 |
|
#ifndef CVC5__THEORY__BOOLEANS__PROOF_CHECKER_H |
19 |
|
#define CVC5__THEORY__BOOLEANS__PROOF_CHECKER_H |
20 |
|
|
21 |
|
#include "expr/node.h" |
22 |
|
#include "expr/proof_checker.h" |
23 |
|
|
24 |
|
namespace cvc5 { |
25 |
|
namespace theory { |
26 |
|
namespace booleans { |
27 |
|
|
28 |
|
/** A checker for boolean reasoning in proofs */ |
29 |
|
class BoolProofRuleChecker : public ProofRuleChecker |
30 |
|
{ |
31 |
|
public: |
32 |
8954 |
BoolProofRuleChecker() {} |
33 |
8954 |
~BoolProofRuleChecker() {} |
34 |
|
|
35 |
|
/** Register all rules owned by this rule checker into pc. */ |
36 |
|
void registerTo(ProofChecker* pc) override; |
37 |
|
|
38 |
|
protected: |
39 |
|
/** Return the conclusion of the given proof step, or null if it is invalid */ |
40 |
|
Node checkInternal(PfRule id, |
41 |
|
const std::vector<Node>& children, |
42 |
|
const std::vector<Node>& args) override; |
43 |
|
}; |
44 |
|
|
45 |
|
} // namespace booleans |
46 |
|
} // namespace theory |
47 |
|
} // namespace cvc5 |
48 |
|
|
49 |
|
#endif /* CVC5__THEORY__BOOLEANS__PROOF_CHECKER_H */ |