<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Prolog - Page 37 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Prolog&amp;p=36">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Prolog&amp;p=38">3.Next</a>
</p>

<p>is evaluated as follows: Prolog attempts to prove <code>illegal(X)</code>. If a proof for that goal can be found, the original goal (i.e., <code>\+ illegal(X)</code>) fails. If no proof can be found, the original goal succeeds. Therefore, the <code>\+/1</code> prefix operator is called the "not provable" operator, since the query <code>?- \+ Goal.</code> succeeds if Goal is not provable. This kind of negation is <a href="page.php?w=Soundness">sound</a> if its argument is <a href="page.php?w=Ground_expression">"ground"</a> (i.e. contains no variables).</p><p>
<a accesskey="1" href="page.php?w=Prolog&amp;p=36">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Prolog&amp;p=38">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
