CVC3::QuantTheoremProducer Class Reference

#include <quant_theorem_producer.h>

Inheritance diagram for CVC3::QuantTheoremProducer:

Inheritance graph
[legend]
Collaboration diagram for CVC3::QuantTheoremProducer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

Private Member Functions

Private Attributes


Detailed Description

Definition at line 29 of file quant_theorem_producer.h.


Constructor & Destructor Documentation

CVC3::QuantTheoremProducer::QuantTheoremProducer ( TheoremManager tm,
TheoryQuant theoryQuant 
) [inline]

Constructor.

Definition at line 39 of file quant_theorem_producer.h.

References d_typeFound.


Member Function Documentation

void QuantTheoremProducer::recFindBoundVars ( const Expr e,
ExprMap< bool > &  boundVars,
ExprMap< bool > &  visited 
) [private]

find all bound variables in e and maps them to true in boundVars

Definition at line 480 of file quant_theorem_producer.cpp.

References CVC3::Expr::begin(), CVC3::BOUND_VAR, CVC3::ExprMap< Data >::count(), CVC3::Expr::end(), CVC3::EXISTS, CVC3::FORALL, CVC3::Expr::getBody(), and CVC3::Expr::getKind().

Referenced by boundVarElim().

Theorem QuantTheoremProducer::addNewConst ( const Expr e  )  [virtual]

Theorem QuantTheoremProducer::newRWThm ( const Expr e,
const Expr newE 
) [virtual]

Theorem QuantTheoremProducer::normalizeQuant ( const Expr e  )  [virtual]

Theorem QuantTheoremProducer::rewriteNotExists ( const Expr e  )  [virtual]

Theorem QuantTheoremProducer::rewriteNotForall ( const Expr e  )  [virtual]

Theorem QuantTheoremProducer::universalInst ( const Theorem t1,
const std::vector< Expr > &  terms,
int  quantLevel,
Expr  gterm 
) [virtual]

Instantiate a universally quantified formula.

From T|-FORALL(var): e generate T|-e' where e' is obtained from e by instantiating bound variables with terms in vector<Expr>& terms. The vector of terms should be the same size as the vector of bound variables in e. Also elements in each position i need to have matching types.

Parameters:
t1 is the quantifier (a Theorem)
terms are the terms to instantiate.
quantLevel the quantification level for the theorem.

Implements CVC3::QuantProofRules.

Definition at line 154 of file quant_theorem_producer.cpp.

References CVC3::Expr::andExpr(), CHECK_PROOFS, CHECK_SOUND, d_theoryQuant, CVC3::Theorem::getAssumptionsRef(), CVC3::Theory::getBaseType(), CVC3::Expr::getBody(), CVC3::Theory::getEM(), CVC3::Expr::getEM(), CVC3::Theorem::getExpr(), CVC3::Theorem::getProof(), CVC3::Theorem::getQuantLevel(), CVC3::Theory::getTypePred(), CVC3::Expr::getVars(), CVC3::Expr::impExpr(), CVC3::Expr::isForall(), CVC3::Expr::isNull(), CVC3::TheoremProducer::newPf(), CVC3::ExprManager::newRatExpr(), CVC3::TheoremProducer::newTheorem(), CVC3::RAW_LIST, CVC3::Theorem::setQuantLevel(), CVC3::Expr::substExpr(), CVC3::Expr::toString(), CVC3::ExprManager::trueExpr(), and CVC3::TheoremProducer::withProof().

Theorem QuantTheoremProducer::universalInst ( const Theorem t1,
const std::vector< Expr > &  terms,
int  quantLevel 
) [virtual]

Instantiate a universally quantified formula.

From T|-FORALL(var): e generate T|-psi => e' where e' is obtained from e by instantiating bound variables with terms in vector<Expr>& terms. The vector of terms should be the same size as the vector of bound variables in e. Also elements in each position i need to have matching base types. psi is the conjunction of subtype predicates for the bound variables of the quanitfied expression.

Parameters:
t1 is the quantifier (a Theorem)
terms are the terms to instantiate.

Implements CVC3::QuantProofRules.

Definition at line 245 of file quant_theorem_producer.cpp.

References CVC3::Expr::andExpr(), CHECK_PROOFS, CHECK_SOUND, d_theoryQuant, CVC3::Theorem::getAssumptionsRef(), CVC3::Theory::getBaseType(), CVC3::Expr::getBody(), CVC3::Expr::getEM(), CVC3::Theorem::getExpr(), CVC3::Theorem::getProof(), CVC3::Theorem::getQuantLevel(), CVC3::Theory::getTypePred(), CVC3::Expr::getVars(), CVC3::Expr::impExpr(), CVC3::Expr::isForall(), CVC3::TheoremProducer::newPf(), CVC3::TheoremProducer::newTheorem(), CVC3::RAW_LIST, CVC3::Theorem::setQuantLevel(), CVC3::Expr::substExpr(), CVC3::Expr::toString(), CVC3::ExprManager::trueExpr(), and CVC3::TheoremProducer::withProof().

Theorem QuantTheoremProducer::universalInst ( const Theorem t1,
const std::vector< Expr > &  terms 
) [virtual]

Theorem QuantTheoremProducer::partialUniversalInst ( const Theorem t1,
const std::vector< Expr > &  terms,
int  quantLevel 
) [virtual]

Theorem QuantTheoremProducer::boundVarElim ( const Theorem t1  )  [virtual]

Theorem QuantTheoremProducer::adjustVarUniv ( const Theorem t1,
const std::vector< Expr > &  newBvs 
) [virtual]

Theorem QuantTheoremProducer::packVar ( const Theorem t1  )  [virtual]

Theorem QuantTheoremProducer::pullVarOut ( const Theorem t1  )  [virtual]


Member Data Documentation

Definition at line 31 of file quant_theorem_producer.h.

Referenced by normalizeQuant(), and QuantTheoremProducer().


The documentation for this class was generated from the following files:

Generated on Thu Oct 15 22:26:52 2009 for CVC3 by  doxygen 1.5.8