-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
112 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/****************************************************************************** | ||
* Top contributors (to current version): | ||
* Andrew Reynolds | ||
* | ||
* This file is part of the cvc5 project. | ||
* | ||
* Copyright (c) 2009-2024 by the authors listed in the file AUTHORS | ||
* in the top-level source directory and their institutional affiliations. | ||
* All rights reserved. See the file COPYING in the top-level source | ||
* directory for licensing information. | ||
* **************************************************************************** | ||
* | ||
* Valid witness proof generator utility. | ||
*/ | ||
|
||
#include "proof/diamonds_proof_generator.h" | ||
|
||
#include "proof/proof.h" | ||
|
||
namespace cvc5::internal { | ||
|
||
DiamondsProofGenerator::DiamondsProofGenerator(Env& env) : EnvObj(env) | ||
{ | ||
} | ||
|
||
DiamondsProofGenerator::~DiamondsProofGenerator() {} | ||
|
||
std::shared_ptr<ProofNode> DiamondsProofGenerator::getProofFor(Node fact) | ||
{ | ||
Trace("valid-witness") << "Prove " << fact << std::endl; | ||
// proofs not yet supported | ||
CDProof cdp(d_env); | ||
cdp.addTrustedStep(fact, TrustId::DIAMONDS, {}, {}); | ||
return cdp.getProofFor(fact); | ||
} | ||
|
||
std::string DiamondsProofGenerator::identify() const | ||
{ | ||
return "DiamondsProofGenerator"; | ||
} | ||
|
||
} // namespace cvc5::internal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/****************************************************************************** | ||
* Top contributors (to current version): | ||
* Andrew Reynolds | ||
* | ||
* This file is part of the cvc5 project. | ||
* | ||
* Copyright (c) 2009-2024 by the authors listed in the file AUTHORS | ||
* in the top-level source directory and their institutional affiliations. | ||
* All rights reserved. See the file COPYING in the top-level source | ||
* directory for licensing information. | ||
* **************************************************************************** | ||
* | ||
* Diamonds proof generator utility. | ||
*/ | ||
|
||
#include "cvc5_private.h" | ||
|
||
#ifndef CVC5__PROOF__DIAMONDS_PROOF_GENERATOR_H | ||
#define CVC5__PROOF__DIAMONDS_PROOF_GENERATOR_H | ||
|
||
#include "proof/method_id.h" | ||
#include "proof/proof_generator.h" | ||
#include "smt/env_obj.h" | ||
|
||
namespace cvc5::internal { | ||
|
||
class ProofNode; | ||
class ProofNodeManager; | ||
|
||
/** | ||
* Proof generator expected to prove (exists x. P) for all witness terms | ||
* (witness x. P) introduced. | ||
*/ | ||
class DiamondsProofGenerator : protected EnvObj, public ProofGenerator | ||
{ | ||
public: | ||
/** | ||
* @param env Reference to the environment | ||
*/ | ||
DiamondsProofGenerator(Env& env); | ||
virtual ~DiamondsProofGenerator(); | ||
/** | ||
* Get proof for fact. | ||
*/ | ||
std::shared_ptr<ProofNode> getProofFor(Node fact) override; | ||
/** identify */ | ||
std::string identify() const override; | ||
}; | ||
|
||
} // namespace cvc5::internal | ||
|
||
#endif /* CVC5__PROOF__DIAMONDS_PROOF_GENERATOR_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters