Branch data Line data Source code
1 : : /****************************************************************************** 2 : : * This file is part of the cvc5 project. 3 : : * 4 : : * Copyright (c) 2009-2026 by the authors listed in the file AUTHORS 5 : : * in the top-level source directory and their institutional affiliations. 6 : : * All rights reserved. See the file COPYING in the top-level source 7 : : * directory for licensing information. 8 : : * **************************************************************************** 9 : : * 10 : : * Equality proof checker utility. 11 : : */ 12 : : 13 : : #include "cvc5_private.h" 14 : : 15 : : #ifndef CVC5__THEORY__UF__PROOF_CHECKER_H 16 : : #define CVC5__THEORY__UF__PROOF_CHECKER_H 17 : : 18 : : #include "expr/node.h" 19 : : #include "proof/proof_checker.h" 20 : : #include "proof/proof_node.h" 21 : : 22 : : namespace cvc5::internal { 23 : : namespace theory { 24 : : namespace uf { 25 : : 26 : : /** A checker for builtin proofs */ 27 : : class UfProofRuleChecker : public ProofRuleChecker 28 : : { 29 : : public: 30 : 51007 : UfProofRuleChecker(NodeManager* nm) : ProofRuleChecker(nm) {} 31 : 50659 : ~UfProofRuleChecker() {} 32 : : 33 : : /** Register all rules owned by this rule checker into pc. */ 34 : : void registerTo(ProofChecker* pc) override; 35 : : 36 : : protected: 37 : : /** Return the conclusion of the given proof step, or null if it is invalid */ 38 : : Node checkInternal(ProofRule id, 39 : : const std::vector<Node>& children, 40 : : const std::vector<Node>& args) override; 41 : : }; 42 : : 43 : : } // namespace uf 44 : : } // namespace theory 45 : : } // namespace cvc5::internal 46 : : 47 : : #endif /* CVC5__THEORY__UF__PROOF_CHECKER_H */