<?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="Logic programming - Page 3 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=Logic_programming&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Logic_programming&amp;p=4">3.Next</a>
</p>
<p>called the body, and the <code>B<sub>i</sub></code> are called <a href="page.php?w=Literal_%28mathematical_logic%29">literals</a> or conditions. When n = 0, the rule is called a fact and is written in the simplified form:</p>

<p>
:<code>A.</code></p>

<p>Queries (or goals) have the same syntax as the bodies of rules and are commonly written in the form:</p>

<p>
:<code>?- B<sub>1</sub>, ..., B<sub>n</sub>.</code></p>

<p>In the simplest case of <a href="page.php?w=Horn_clause">Horn clause</a>s (or "definite" clauses), all of the A, B<sub>1</sub>,</p><p>
<a accesskey="1" href="page.php?w=Logic_programming&amp;p=2">1.Previous</a><br />
<a accesskey="3" href="page.php?w=Logic_programming&amp;p=4">3.Next</a>
</p>

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

</card>
</wml>
