Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 583ffa4ba069126c3ba0bc565dc0485a > files > 821

cvc3-doc-2.4.1-1.fc15.noarch.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>CVC3: core_proof_rules.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CVC3&#160;<span id="projectnumber">2.4.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">core_proof_rules.h</div>  </div>
</div>
<div class="contents">
<a href="core__proof__rules_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************/</span><span class="comment"></span>
<a name="l00002"></a>00002 <span class="comment">/*!</span>
<a name="l00003"></a>00003 <span class="comment"> *\file core_proof_rules.h</span>
<a name="l00004"></a>00004 <span class="comment"> *\brief Proof rules used by theory_core</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * Author: Clark Barrett</span>
<a name="l00007"></a>00007 <span class="comment"> *</span>
<a name="l00008"></a>00008 <span class="comment"> * Created: Wed Jan 11 15:48:35 2006</span>
<a name="l00009"></a>00009 <span class="comment"> *</span>
<a name="l00010"></a>00010 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00011"></a>00011 <span class="comment"> *</span>
<a name="l00012"></a>00012 <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span>
<a name="l00013"></a>00013 <span class="comment"> * and its documentation for any purpose is hereby granted without</span>
<a name="l00014"></a>00014 <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span>
<a name="l00015"></a>00015 <span class="comment"> * LICENSE file provided with this distribution.</span>
<a name="l00016"></a>00016 <span class="comment"> * </span>
<a name="l00017"></a>00017 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00018"></a>00018 <span class="comment"> * </span>
<a name="l00019"></a>00019 <span class="comment"> */</span>
<a name="l00020"></a>00020 <span class="comment">/*****************************************************************************/</span>
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 <span class="preprocessor">#ifndef _cvc3__core_proof_rules_h_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__core_proof_rules_h_</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00026"></a>00026 
<a name="l00027"></a>00027 <span class="keyword">namespace </span>CVC3 {
<a name="l00028"></a>00028 
<a name="l00029"></a>00029   <span class="keyword">class </span>Theorem;
<a name="l00030"></a>00030   <span class="keyword">class </span>Theorem3;
<a name="l00031"></a>00031   <span class="keyword">class </span>Expr;
<a name="l00032"></a>00032   <span class="keyword">class </span>Op;
<a name="l00033"></a>00033 
<a name="l00034"></a><a class="code" href="classCVC3_1_1CoreProofRules.html">00034</a>   <span class="keyword">class </span><a class="code" href="classCVC3_1_1CoreProofRules.html">CoreProofRules</a> {
<a name="l00035"></a>00035   <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00036"></a>00036 <span class="comment">    //! Destructor</span>
<a name="l00037"></a><a class="code" href="classCVC3_1_1CoreProofRules.html#a04af291caa087f8dc1c2c8d346e4dffe">00037</a> <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1CoreProofRules.html#a04af291caa087f8dc1c2c8d346e4dffe" title="Destructor.">~CoreProofRules</a>() { }
<a name="l00038"></a>00038 <span class="comment"></span>
<a name="l00039"></a>00039 <span class="comment">    //! e: T ==&gt; |- typePred_T(e)  [deriving the type predicate of e]</span>
<a name="l00040"></a>00040 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ae4fcd08f795189bb93d76144f77a3862" title="e: T ==&gt; |- typePred_T(e) [deriving the type predicate of e]">typePred</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;
<a name="l00041"></a>00041 <span class="comment"></span>
<a name="l00042"></a>00042 <span class="comment">    ////////////////////////////////////////////////////////////////////////</span>
<a name="l00043"></a>00043 <span class="comment"></span>    <span class="comment">// Core rewrite rules</span><span class="comment"></span>
<a name="l00044"></a>00044 <span class="comment">    ////////////////////////////////////////////////////////////////////////</span>
<a name="l00045"></a>00045 <span class="comment"></span><span class="comment"></span>
<a name="l00046"></a>00046 <span class="comment">    //! Replace LETDECL with its definition</span>
<a name="l00047"></a>00047 <span class="comment"></span><span class="comment">    /*! Used only in TheoryCore */</span> 
<a name="l00048"></a>00048     <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#acad687c3e6faa5709961210637c260da" title="Replace LETDECL with its definition.">rewriteLetDecl</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment">    //! ==&gt; NOT (AND e1 ... en) IFF (OR !e1 ... !en), takes (AND ...)</span>
<a name="l00050"></a>00050 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ade3007866410b6565ee0ea1ff4c49a99" title="==&gt; NOT (AND e1 ... en) IFF (OR !e1 ... !en), takes (AND ...)">rewriteNotAnd</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00051"></a>00051 <span class="comment">    //! ==&gt; NOT (OR e1 ... en) IFF (AND !e1 ... !en), takes (OR ...)</span>
<a name="l00052"></a>00052 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#aea875ee7355ae6aab01b84c176dbccf6" title="==&gt; NOT (OR e1 ... en) IFF (AND !e1 ... !en), takes (OR ...)">rewriteNotOr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00053"></a>00053 <span class="comment">    //! ==&gt; NOT IFF(e1,e2) IFF IFF(e1,NOT e2)</span>
<a name="l00054"></a>00054 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ae480ca62cb7a8656f01ea3f938fb97d8" title="==&gt; NOT IFF(e1,e2) IFF IFF(e1,NOT e2)">rewriteNotIff</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00055"></a>00055 <span class="comment">    //! ==&gt; NOT ITE(a,b,c) IFF ITE(a,NOT b,NOT c)</span>
<a name="l00056"></a>00056 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ac68942cf0c21011f9429042e279b4a54" title="==&gt; NOT ITE(a,b,c) IFF ITE(a,NOT b,NOT c)">rewriteNotIte</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00057"></a>00057 <span class="comment">    //! a |- b == d ==&gt; ITE(a, b, c) == ITE(a, d, c)</span>
<a name="l00058"></a>00058 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a8117a95eed02c35936f988d1c9c2bdab" title="a |- b == d ==&gt; ITE(a, b, c) == ITE(a, d, c)">rewriteIteThen</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; thenThm) = 0;<span class="comment"></span>
<a name="l00059"></a>00059 <span class="comment">    //! !a |- c == d ==&gt; ITE(a, b, c) == ITE(a, b, d)</span>
<a name="l00060"></a>00060 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a7912f66f5be7e05b0c85f15596747be4" title="!a |- c == d ==&gt; ITE(a, b, c) == ITE(a, b, d)">rewriteIteElse</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a>&amp; elseThm) = 0;<span class="comment"></span>
<a name="l00061"></a>00061 <span class="comment">    //! ==&gt; ITE(c, e1, e2) &lt;=&gt; (c =&gt; e1) AND (!c =&gt; e2)</span>
<a name="l00062"></a>00062 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#aa66c668de7d5a026297a6bc901a1f7c3" title="==&gt; ITE(c, e1, e2) &lt;=&gt; (c =&gt; e1) AND (!c =&gt; e2)">rewriteIteBool</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; c,
<a name="l00063"></a>00063            <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e1, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e2) = 0;
<a name="l00064"></a>00064 <span class="comment"></span>
<a name="l00065"></a>00065 <span class="comment">    //! |= (A &amp; B1) | (A &amp; B2) | ... | (A &amp; bn) &lt;=&gt; A &amp; (B1 | B2 | ...| Bn)</span>
<a name="l00066"></a>00066 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ac86206cae475f12c9512e436c64656f0" title="|= (A &amp; B1) | (A &amp; B2) | ... | (A &amp; bn) &lt;=&gt; A &amp; (B1 | B2 | ...| Bn)">orDistributivityRule</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00067"></a>00067 <span class="comment">    //! |= (A | B1) &amp; (A | B2) &amp; ... &amp; (A | bn) &lt;=&gt; A | (B1 &amp; B2 &amp; ...&amp; Bn)</span>
<a name="l00068"></a>00068 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#aa3091e00758d1cb9e91f1cd3fca1e696" title="|= (A | B1) &amp; (A | B2) &amp; ... &amp; (A | bn) &lt;=&gt; A | (B1 &amp; B2 &amp; ...&amp; Bn)">andDistributivityRule</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="comment"></span>
<a name="l00071"></a>00071 <span class="comment">    //! ==&gt; IMPLIES(e1,e2) IFF OR(!e1, e2)</span>
<a name="l00072"></a>00072 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a3389cd795acc4cee4b591c1488293963" title="==&gt; IMPLIES(e1,e2) IFF OR(!e1, e2)">rewriteImplies</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;
<a name="l00073"></a>00073 <span class="comment"></span>
<a name="l00074"></a>00074 <span class="comment">    //! ==&gt; DISTINCT(e1,...,en) IFF AND 1 &lt;= i &lt; j &lt;= n (e[i] /= e[j])</span>
<a name="l00075"></a>00075 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ae429bb5ede0ce74b02cb85f8d0a372dd" title="==&gt; DISTINCT(e1,...,en) IFF AND 1 &lt;= i &lt; j &lt;= n (e[i] /= e[j])">rewriteDistinct</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;
<a name="l00076"></a>00076 <span class="comment"></span>
<a name="l00077"></a>00077 <span class="comment">    //! ==&gt; NOT(e) == ITE(e, FALSE, TRUE)</span>
<a name="l00078"></a>00078 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#aa801f2fa243080def2ef1bff48fba3a9" title="==&gt; NOT(e) == ITE(e, FALSE, TRUE)">NotToIte</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; not_e) = 0;<span class="comment"></span>
<a name="l00079"></a>00079 <span class="comment">    //! ==&gt; Or(e) == ITE(e[1], TRUE, e[0])</span>
<a name="l00080"></a>00080 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a07be24cd846d62320aca4fb69645a1db" title="==&gt; Or(e) == ITE(e[1], TRUE, e[0])">OrToIte</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00081"></a>00081 <span class="comment">    //! ==&gt; And(e) == ITE(e[1], e[0], FALSE)</span>
<a name="l00082"></a>00082 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a332e730ff085f109382a680847189a0d" title="==&gt; And(e) == ITE(e[1], e[0], FALSE)">AndToIte</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00083"></a>00083 <span class="comment">    //! ==&gt; IFF(a,b) == ITE(a, b, !b)</span>
<a name="l00084"></a>00084 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ac0bd85a42727e1f5d41c7f4fb5366acf" title="==&gt; IFF(a,b) == ITE(a, b, !b)">IffToIte</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00085"></a>00085 <span class="comment">    //! ==&gt; IMPLIES(a,b) == ITE(a, b, TRUE)</span>
<a name="l00086"></a>00086 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a6639598cf87b9c51bc097bad578b0ac4" title="==&gt; IMPLIES(a,b) == ITE(a, b, TRUE)">ImpToIte</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;
<a name="l00087"></a>00087 <span class="comment"></span>
<a name="l00088"></a>00088 <span class="comment">    //! ==&gt; ITE(e, FALSE, TRUE) IFF NOT(e)</span>
<a name="l00089"></a>00089 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a71c2aa506efd447f6c411159f44d5af0" title="==&gt; ITE(e, FALSE, TRUE) IFF NOT(e)">rewriteIteToNot</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00090"></a>00090 <span class="comment">    //! ==&gt; ITE(a, TRUE, b) IFF OR(a, b)</span>
<a name="l00091"></a>00091 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#ab23828c9cc70a3805a0be7632e03163b" title="==&gt; ITE(a, TRUE, b) IFF OR(a, b)">rewriteIteToOr</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00092"></a>00092 <span class="comment">    //! ==&gt; ITE(a, b, FALSE) IFF AND(a, b)</span>
<a name="l00093"></a>00093 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a3eb08bdf90ac80d5c372e4791120d894" title="==&gt; ITE(a, b, FALSE) IFF AND(a, b)">rewriteIteToAnd</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00094"></a>00094 <span class="comment">    //! ==&gt; ITE(a, b, !b) IFF IFF(a, b)</span>
<a name="l00095"></a>00095 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a8a98457f410ab11e4b66adad150e1b67" title="==&gt; ITE(a, b, !b) IFF IFF(a, b)">rewriteIteToIff</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00096"></a>00096 <span class="comment">    //! ==&gt; ITE(a, b, TRUE) IFF IMPLIES(a, b)</span>
<a name="l00097"></a>00097 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a1d30881c6f1a902575da033dbbeb2aa9" title="==&gt; ITE(a, b, TRUE) IFF IMPLIES(a, b)">rewriteIteToImp</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00098"></a>00098 <span class="comment">    //! ==&gt; ITE(a, b(a), c(a)) IFF ITE(a, b(TRUE), c(FALSE))</span>
<a name="l00099"></a>00099 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a03f8a74b8b1b6d90ff23a0a6150c49d6" title="==&gt; ITE(a, b(a), c(a)) IFF ITE(a, b(TRUE), c(FALSE))">rewriteIteCond</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;
<a name="l00100"></a>00100 <span class="comment"></span>
<a name="l00101"></a>00101 <span class="comment">    //! |- op(ITE(cond,a,b)) =/&lt;=&gt; ITE(cond,op(a),op(b))</span>
<a name="l00102"></a>00102 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#abbf1d27a8dba7669aac602a4a95f0b3f" title="|- op(ITE(cond,a,b)) =/&lt;=&gt; ITE(cond,op(a),op(b))">ifLiftUnaryRule</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;<span class="comment"></span>
<a name="l00103"></a>00103 <span class="comment">    //! ((a|b)&lt;=&gt;(a|c))&lt;=&gt;(a|(b&lt;=&gt;c)); takes ((a|b)&lt;=&gt;(a|c)) as &#39;iff&#39;</span>
<a name="l00104"></a>00104 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a8fc33a9fbd44abba98547acf63322fc8" title="((a|b)&lt;=&gt;(a|c))&lt;=&gt;(a|(b&lt;=&gt;c)); takes ((a|b)&lt;=&gt;(a|c)) as &#39;iff&#39;">iffOrDistrib</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; iff) = 0;<span class="comment"></span>
<a name="l00105"></a>00105 <span class="comment">    //! ((a&amp;b)&lt;=&gt;(a&amp;c))&lt;=&gt;(!a|(b&lt;=&gt;c)); takes ((a&amp;b)&lt;=&gt;(a&amp;c)) as &#39;iff&#39;</span>
<a name="l00106"></a>00106 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a0648f60b8e9b11dee35544c83512fa30" title="((a&amp;b)&lt;=&gt;(a&amp;c))&lt;=&gt;(!a|(b&lt;=&gt;c)); takes ((a&amp;b)&lt;=&gt;(a&amp;c)) as &#39;iff&#39;">iffAndDistrib</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; iff) = 0;
<a name="l00107"></a>00107 
<a name="l00108"></a>00108     <span class="comment">// Advanced Boolean transformations</span>
<a name="l00109"></a>00109 <span class="comment"></span>
<a name="l00110"></a>00110 <span class="comment">    //! (a &amp; b) &lt;=&gt; a &amp; b[a/true]; takes the index of a</span>
<a name="l00111"></a>00111 <span class="comment"></span><span class="comment">    /*! and rewrites all the other conjuncts. */</span>
<a name="l00112"></a>00112     <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a07d66271324bda72a66505bb427df156" title="(a &amp; b) &lt;=&gt; a &amp; b[a/true]; takes the index of a">rewriteAndSubterms</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, <span class="keywordtype">int</span> idx) = 0;<span class="comment"></span>
<a name="l00113"></a>00113 <span class="comment">    //! (a | b) &lt;=&gt; a | b[a/false]; takes the index of a</span>
<a name="l00114"></a>00114 <span class="comment"></span><span class="comment">    /*! and rewrites all the other disjuncts. */</span>
<a name="l00115"></a>00115     <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a0d589028239025d0e43c92c04b5d586a" title="(a | b) &lt;=&gt; a | b[a/false]; takes the index of a">rewriteOrSubterms</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e, <span class="keywordtype">int</span> idx) = 0;
<a name="l00116"></a>00116 <span class="comment"></span>
<a name="l00117"></a>00117 <span class="comment">    //! Temporary cheat for building theorems</span>
<a name="l00118"></a>00118 <span class="comment"></span>    <span class="keyword">virtual</span> <a class="code" href="classCVC3_1_1Theorem.html">Theorem</a> <a class="code" href="classCVC3_1_1CoreProofRules.html#a9592705bbf82393b7f6500fa33ead252" title="Temporary cheat for building theorems.">dummyTheorem</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1Expr.html" title="Data structure of expressions in CVC3.">Expr</a>&amp; e) = 0;
<a name="l00119"></a>00119 
<a name="l00120"></a>00120   }; <span class="comment">// end of class CoreProofRules</span>
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 } <span class="comment">// end of namespace CVC3</span>
<a name="l00123"></a>00123 
<a name="l00124"></a>00124 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Sep 7 2011 for CVC3 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>