Answer set programming: Difference between revisions

Content deleted Content added
Pkoch (talk | contribs)
m Add inline code styling.
Pkoch (talk | contribs)
m Make whitespace usage more consistent
Line 84:
<syntaxhighlight lang="prolog">
p(a). p(b). p(c).
{q(a), q(b), q(c)}2.
</syntaxhighlight>
 
Line 111:
</syntaxhighlight>
 
If the extension of <code>q</code> is <code>{q(a1), q(a2), ... , q(aN)}</code>, the above condition is semantically equivalent to writing <code>{p(a1), p(a2), ... , p(aN)}</code> in the place of the condition. For example,
 
<syntaxhighlight lang="prolog">