1 |
|
/****************************************************************************** |
2 |
|
* Top contributors (to current version): |
3 |
|
* Gereon Kremer |
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 |
|
* CAD proof checker utility. |
14 |
|
*/ |
15 |
|
|
16 |
|
#include "cvc5_private.h" |
17 |
|
|
18 |
|
#ifndef CVC5__THEORY__ARITH__NL__CAD__PROOF_CHECKER_H |
19 |
|
#define CVC5__THEORY__ARITH__NL__CAD__PROOF_CHECKER_H |
20 |
|
|
21 |
|
#include "expr/node.h" |
22 |
|
#include "proof/proof_checker.h" |
23 |
|
|
24 |
|
namespace cvc5 { |
25 |
|
namespace theory { |
26 |
|
namespace arith { |
27 |
|
namespace nl { |
28 |
|
namespace cad { |
29 |
|
|
30 |
|
/** |
31 |
|
* A checker for CAD proofs |
32 |
|
* |
33 |
|
* This proof checker takes care of the two CAD proof rules ARITH_NL_CAD_DIRECT |
34 |
|
* and ARITH_NL_CAD_RECURSIVE. It does not do any actual proof checking yet, but |
35 |
|
* considers them to be trusted rules. |
36 |
|
*/ |
37 |
|
class CADProofRuleChecker : public ProofRuleChecker |
38 |
|
{ |
39 |
|
public: |
40 |
5134 |
CADProofRuleChecker() {} |
41 |
5134 |
~CADProofRuleChecker() {} |
42 |
|
|
43 |
|
/** Register all rules owned by this rule checker in pc. */ |
44 |
|
void registerTo(ProofChecker* pc) override; |
45 |
|
|
46 |
|
protected: |
47 |
|
/** Return the conclusion of the given proof step, or null if it is invalid */ |
48 |
|
Node checkInternal(PfRule id, |
49 |
|
const std::vector<Node>& children, |
50 |
|
const std::vector<Node>& args) override; |
51 |
|
}; |
52 |
|
|
53 |
|
} // namespace cad |
54 |
|
} // namespace nl |
55 |
|
} // namespace arith |
56 |
|
} // namespace theory |
57 |
|
} // namespace cvc5 |
58 |
|
|
59 |
|
#endif /* CVC5__THEORY__STRINGS__PROOF_CHECKER_H */ |