/usr/lib/swi-prolog/doc/Manual/glossary.html is in swi-prolog-nox 7.2.3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>SWI-Prolog 7.3.6 Reference Manual</title><link rel="home" href="index.html">
<link rel="contents" href="Contents.html">
<link rel="index" href="DocIndex.html">
<link rel="summary" href="summary.html">
<link rel="previous" href="portabilitystrategies.html">
<link rel="next" href="license.html">
<style type="text/css">
/* Style sheet for SWI-Prolog latex2html
*/
dd.defbody
{ margin-bottom: 1em;
}
dt.pubdef, dt.multidef
{ color: #fff;
padding: 2px 10px 0px 10px;
margin-bottom: 5px;
font-size: 18px;
vertical-align: middle;
overflow: hidden;
}
dt.pubdef { background-color: #0c3d6e; }
dt.multidef { background-color: #ef9439; }
.bib dd
{ margin-bottom: 1em;
}
.bib dt
{ float: left;
margin-right: 1.3ex;
}
pre.code
{ margin-left: 1.5em;
margin-right: 1.5em;
border: 1px dotted;
padding-top: 5px;
padding-left: 5px;
padding-bottom: 5px;
background-color: #f8f8f8;
}
div.navigate
{ text-align: center;
background-color: #f0f0f0;
border: 1px dotted;
padding: 5px;
}
div.title
{ text-align: center;
padding-bottom: 1em;
font-size: 200%;
font-weight: bold;
}
div.author
{ text-align: center;
font-style: italic;
}
div.abstract
{ margin-top: 2em;
background-color: #f0f0f0;
border: 1px dotted;
padding: 5px;
margin-left: 10%; margin-right:10%;
}
div.abstract-title
{ text-align: center;
padding: 5px;
font-size: 120%;
font-weight: bold;
}
div.toc-h1
{ font-size: 200%;
font-weight: bold;
}
div.toc-h2
{ font-size: 120%;
font-weight: bold;
margin-left: 2em;
}
div.toc-h3
{ font-size: 100%;
font-weight: bold;
margin-left: 4em;
}
div.toc-h4
{ font-size: 100%;
margin-left: 6em;
}
span.sec-nr
{
}
span.sec-title
{
}
span.pred-ext
{ font-weight: bold;
}
span.pred-tag
{ float: right;
padding-top: 0.2em;
font-size: 80%;
font-style: italic;
color: #fff;
}
div.caption
{ width: 80%;
margin: auto;
text-align:center;
}
/* Footnotes */
.fn {
color: red;
font-size: 70%;
}
.fn-text, .fnp {
position: absolute;
top: auto;
left: 10%;
border: 1px solid #000;
box-shadow: 5px 5px 5px #888;
display: none;
background: #fff;
color: #000;
margin-top: 25px;
padding: 8px 12px;
font-size: larger;
}
sup:hover span.fn-text
{ display: block;
}
/* Lists */
dl.latex
{ margin-top: 1ex;
margin-bottom: 0.5ex;
}
dl.latex dl.latex dd.defbody
{ margin-bottom: 0.5ex;
}
/* PlDoc Tags */
dl.tags
{ font-size: 90%;
margin-left: 5ex;
margin-top: 1ex;
margin-bottom: 0.5ex;
}
dl.tags dt
{ margin-left: 0pt;
font-weight: bold;
}
dl.tags dd
{ margin-left: 3ex;
}
td.param
{ font-style: italic;
font-weight: bold;
}
/* Index */
dt.index-sep
{ font-weight: bold;
font-size: +1;
margin-top: 1ex;
}
/* Tables */
table.center
{ margin: auto;
}
table.latex
{ border-collapse:collapse;
}
table.latex tr
{ vertical-align: text-top;
}
table.latex td,th
{ padding: 2px 1em;
}
table.latex tr.hline td,th
{ border-top: 1px solid black;
}
table.frame-box
{ border: 2px solid black;
}
</style>
</head>
<body style="background:white">
<div class="navigate"><a class="nav" href="index.html"><img src="home.gif" alt="Home"></a>
<a class="nav" href="Contents.html"><img src="index.gif" alt="Contents"></a>
<a class="nav" href="DocIndex.html"><img src="yellow_pages.gif" alt="Index"></a>
<a class="nav" href="summary.html"><img src="info.gif" alt="Summary"></a>
<a class="nav" href="portabilitystrategies.html"><img src="prev.gif" alt="Previous"></a>
<a class="nav" href="license.html"><img src="next.gif" alt="Next"></a>
</div>
<h1 id="sec:glossary"><a id="sec:D"><span class="sec-nr">D</span> <span class="sec-title">Glossary
of Terms</span></a></h1>
<a id="sec:glossary"></a>
<dl class="latex">
<dt><a id="gloss:anonymou"><strong>anonymous [variable]</strong></a></dt>
<dd class="defbody">
<a id="idx:anonymousvariable:2073"></a><a id="idx:variableanonymous:2074"></a>The
variable <code>_</code> is called the <a class="gloss" href="glossary.html#gloss:anonymou">anonymous</a>
variable. Multiple occurrences of <code>_</code> in a single <a class="gloss" href="glossary.html#gloss:term">term</a>
are not <a class="gloss" href="glossary.html#gloss:shared">shared</a>.</dd>
<dt><a id="gloss:argument"><strong>arguments</strong></a></dt>
<dd class="defbody">
Arguments are <a class="gloss" href="glossary.html#gloss:term">terms</a>
that appear in a <a class="gloss" href="glossary.html#gloss:compound">compound</a> <a class="gloss" href="glossary.html#gloss:term">term</a>. <var>A1</var>
and <var>a2</var> are the first and second argument of the term
<code>myterm(A1, a2)</code>.</dd>
<dt><a id="gloss:arity"><strong>arity</strong></a></dt>
<dd class="defbody">
<a id="idx:arity:2075"></a>Argument count (= number of arguments) of a <a class="gloss" href="glossary.html#gloss:compound">compound</a> <a class="gloss" href="glossary.html#gloss:term">term</a>.</dd>
<dt><a id="gloss:assert"><strong>assert</strong></a></dt>
<dd class="defbody">
<a id="idx:assert:2076"></a>Add a <a class="gloss" href="glossary.html#gloss:clause">clause</a>
to a <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>.
Clauses can be added at either end of the clause-list of a <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>.
See <a id="idx:asserta1:2077"></a><a class="pred" href="db.html#asserta/1">asserta/1</a>
and <a id="idx:assertz1:2078"></a><a class="pred" href="db.html#assertz/1">assertz/1</a>.</dd>
<dt><a id="gloss:atom"><strong>atom</strong></a></dt>
<dd class="defbody">
<a id="idx:atom:2079"></a>Textual constant. Used as name for <a class="gloss" href="glossary.html#gloss:compound">compound</a>
terms, to represent constants or text.</dd>
<dt><a id="gloss:backtracking"><strong>backtracking</strong></a></dt>
<dd class="defbody">
<a id="idx:backtracking:2080"></a>Search process used by Prolog. If a
predicate offers multiple
<a class="gloss" href="glossary.html#gloss:clause">clauses</a> to solve
a <a class="gloss" href="glossary.html#gloss:goal">goal</a>, they are
tried one-by-one until one <a class="gloss" href="glossary.html#gloss:succeed">succeeds</a>.
If a subsequent part of the proof is not satisfied with the resulting <a class="gloss" href="glossary.html#gloss:variable">variable</a> <a class="gloss" href="glossary.html#gloss:binding">binding</a>,
it may ask for an alternative <a class="gloss" href="glossary.html#gloss:solution">solution</a>
(= <a class="gloss" href="glossary.html#gloss:binding">binding</a> of
the <a class="gloss" href="glossary.html#gloss:variable">variables</a>),
causing Prolog to reject the previously chosen <a class="gloss" href="glossary.html#gloss:clause">clause</a>
and try the next one.</dd>
<dt><a id="gloss:binding"><strong>binding [of a variable]</strong></a></dt>
<dd class="defbody">
<a id="idx:binding:2081"></a>Current value of the <a class="gloss" href="glossary.html#gloss:variable">variable</a>.
See also <a class="gloss" href="glossary.html#gloss:backtracking">backtracking</a>
and
<a class="gloss" href="glossary.html#gloss:query">query</a>.</dd>
<dt><a id="gloss:built-in"><strong>built-in [predicate]</strong></a></dt>
<dd class="defbody">
<a id="idx:builtinpredicate:2082"></a>Predicate that is part of the
Prolog system. Built-in predicates cannot be redefined by the user,
unless this is overruled using
<a id="idx:redefinesystempredicate1:2083"></a><a class="pred" href="db.html#redefine_system_predicate/1">redefine_system_predicate/1</a>.</dd>
<dt><a id="gloss:body"><strong>body</strong></a></dt>
<dd class="defbody">
<a id="idx:body:2084"></a>Part of a <a class="gloss" href="glossary.html#gloss:clause">clause</a>
behind the <a class="gloss" href="glossary.html#gloss:neck">neck</a>
operator (<code><code>:-</code></code>).</dd>
<dt><a id="gloss:choice-point"><strong>choice point</strong></a></dt>
<dd class="defbody">
<a id="idx:choicepoint:2085"></a>A <a class="gloss" href="glossary.html#gloss:choice-point">choice point</a>
represents a choice in the search for a <a class="gloss" href="glossary.html#gloss:solution">solution</a>.
Choice points are created if multiple clauses match a <a class="gloss" href="glossary.html#gloss:query">query</a>
or using disjunction (<a class="pred" href="control.html#;/2">;/2</a>).
On <a class="gloss" href="glossary.html#gloss:backtracking">backtracking</a>,
the execution state of the most recent <a class="gloss" href="glossary.html#gloss:choice-point">choice point</a>
is restored and search continues with the next alternative (i.e., next
clause or second branch of
<a class="pred" href="control.html#;/2">;/2</a>).</dd>
<dt><a id="gloss:clause"><strong>clause</strong></a></dt>
<dd class="defbody">
<a id="idx:clause:2086"></a>`Sentence' of a Prolog program. A <a class="gloss" href="glossary.html#gloss:clause">clause</a>
consists of a <a class="gloss" href="glossary.html#gloss:head">head</a>
and
<a class="gloss" href="glossary.html#gloss:body">body</a> separated by
the <a class="gloss" href="glossary.html#gloss:neck">neck</a> operator (<code><code>:-</code></code>)
or it is a
<a class="gloss" href="glossary.html#gloss:fact">fact</a>. For example:
<pre class="code">
parent(X) :-
father(X, _).
</pre>
<p>Expressed as ``X is a parent if X is a father of someone''. See also
<a class="gloss" href="glossary.html#gloss:variable">variable</a> and <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>.</dd>
<dt><a id="gloss:compile"><strong>compile</strong></a></dt>
<dd class="defbody">
Process where a Prolog <a class="gloss" href="glossary.html#gloss:program">program</a>
is translated to a sequence of instructions. See also <a class="gloss" href="glossary.html#gloss:interpreted">interpreted</a>.
SWI-Prolog always compiles your program before executing it.</dd>
<dt><a id="gloss:compound"><strong>compound [term]</strong></a></dt>
<dd class="defbody">
<a id="idx:compound:2087"></a>Also called <a class="gloss" href="glossary.html#gloss:structure">structure</a>.
It consists of a name followed by <var>N</var>
<a class="gloss" href="glossary.html#gloss:argument">arguments</a>, each
of which are <a class="gloss" href="glossary.html#gloss:term">terms</a>. <var>N</var>
is called the
<a class="gloss" href="glossary.html#gloss:arity">arity</a> of the term.</dd>
<dt><a id="gloss:context-module"><strong>context module</strong></a></dt>
<dd class="defbody">
<a id="idx:contextmodule:2088"></a><a id="idx:modulecontex:2089"></a>If
a <a class="gloss" href="glossary.html#gloss:term">term</a> is referring
to a <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
in a <a class="gloss" href="glossary.html#gloss:module">module</a>, the
<a class="gloss" href="glossary.html#gloss:context-module">context module</a>
is used to find the target module. The context module of a <a class="gloss" href="glossary.html#gloss:goal">goal</a>
is the module in which the <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
is defined, unless this <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
is <a class="gloss" href="glossary.html#gloss:module-transparent">module transparent</a>,
in which case the <a class="gloss" href="glossary.html#gloss:context-module">context module</a>
is inherited from the parent
<a class="gloss" href="glossary.html#gloss:goal">goal</a>. See also <a id="idx:moduletransparent1:2090"></a><a class="pred" href="ctxmodule.html#module_transparent/1">module_transparent/1</a>
and <a class="gloss" href="glossary.html#gloss:meta-predicate">meta-predicate</a>.</dd>
<dt><a id="gloss:det"><strong>det [determinism]</strong></a></dt>
<dd class="defbody">
<a id="idx:det:2091"></a>Short for <a class="gloss" href="glossary.html#gloss:deterministic">deterministic</a>.</dd>
<dt><a id="gloss:determinism"><strong>determinism</strong></a></dt>
<dd class="defbody">
<a id="idx:determinism:2092"></a>How many solutions a <a class="gloss" href="glossary.html#gloss:goal">goal</a>
can provide. Values are `nondet' (zero to infinite), `multi' (one to
infinite), `det' (exactly one) and `semidet' (zero or one).</dd>
<dt><a id="gloss:deterministic"><strong>deterministic</strong></a></dt>
<dd class="defbody">
<a id="idx:deterministic:2093"></a>A <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
is <a class="gloss" href="glossary.html#gloss:deterministic">deterministic</a>
if it succeeds exactly one time without leaving a <a class="gloss" href="glossary.html#gloss:choice-point">choice point</a>.</dd>
<dt><a id="gloss:dynamic"><strong>dynamic [predicate]</strong></a></dt>
<dd class="defbody">
<a id="idx:dynamicpredicate:2094"></a><a id="idx:predicatedynamic:2095"></a>A <a class="gloss" href="glossary.html#gloss:dynamic">dynamic</a>
predicate is a predicate to which <a class="gloss" href="glossary.html#gloss:clause">clauses</a>
may be
<a class="gloss" href="glossary.html#gloss:assert">assert</a>ed and from
which <a class="gloss" href="glossary.html#gloss:clause">clauses</a> may
be <a class="gloss" href="glossary.html#gloss:retract">retract</a>ed
while the program is running. See also <a class="gloss" href="glossary.html#gloss:update-view">update view</a>.</dd>
<dt><a id="gloss:exported"><strong>exported [predicate]</strong></a></dt>
<dd class="defbody">
<a id="idx:exportedpredicate:2096"></a><a id="idx:predicateexported:2097"></a>A <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
is said to be <a class="gloss" href="glossary.html#gloss:exported">exported</a>
from a <a class="gloss" href="glossary.html#gloss:module">module</a> if
it appears in the <a class="gloss" href="glossary.html#gloss:public-list">public list</a>.
This implies that the predicate can be <a class="gloss" href="glossary.html#gloss:imported">imported</a>
into another module to make it visible there. See also <a id="idx:usemodule12:2098"></a><span class="pred-ext">use_module/[1,2]</span>.</dd>
<dt><a id="gloss:fact"><strong>fact</strong></a></dt>
<dd class="defbody">
<a id="idx:fact:2099"></a><a class="gloss" href="glossary.html#gloss:clause">Clause</a>
without a <a class="gloss" href="glossary.html#gloss:body">body</a>.
This is called a fact because, interpreted as logic, there is no
condition to be satisfied. The example below states <code>john</code> is
a person.
<pre class="code">
person(john).
</pre>
</dd>
<dt><a id="gloss:fail"><strong>fail</strong></a></dt>
<dd class="defbody">
A <a class="gloss" href="glossary.html#gloss:goal">goal</a> is said to
haved failed if it could not be <a class="gloss" href="glossary.html#gloss:prove">proven</a>.</dd>
<dt><a id="gloss:float"><strong>float</strong></a></dt>
<dd class="defbody">
Computer's crippled representation of a real number. Represented as
`IEEE double'.</dd>
<dt><a id="gloss:foreign"><strong>foreign</strong></a></dt>
<dd class="defbody">
Computer code expressed in languages other than Prolog. SWI-Prolog can
only cooperate directly with the C and C++ computer languages.</dd>
<dt><a id="gloss:functor"><strong>functor</strong></a></dt>
<dd class="defbody">
<a id="idx:functor:2100"></a>Combination of name and <a class="gloss" href="glossary.html#gloss:arity">arity</a>
of a <a class="gloss" href="glossary.html#gloss:compound">compound</a>
term. The term
<code>foo(a, b, c)</code> is said to be a term belonging to the functor
foo/3 . foo/0 is used to refer to the <a class="gloss" href="glossary.html#gloss:atom">atom</a>
<code>foo</code>.</dd>
<dt><a id="gloss:goal"><strong>goal</strong></a></dt>
<dd class="defbody">
<a id="idx:goal:2101"></a><a id="idx:query:2102"></a>Question stated to
the Prolog engine. A <a class="gloss" href="glossary.html#gloss:goal">goal</a>
is either an <a class="gloss" href="glossary.html#gloss:atom">atom</a>
or a <a class="gloss" href="glossary.html#gloss:compound">compound</a>
term. A <a class="gloss" href="glossary.html#gloss:goal">goal</a> either
succeeds, in which case the
<a class="gloss" href="glossary.html#gloss:variable">variables</a> in
the <a class="gloss" href="glossary.html#gloss:compound">compound</a>
terms have a <a class="gloss" href="glossary.html#gloss:binding">binding</a>,
or it <a class="gloss" href="glossary.html#gloss:fail">fails</a> if
Prolog fails to prove it.</dd>
<dt><a id="gloss:hashing"><strong>hashing</strong></a></dt>
<dd class="defbody">
<a id="idx:hashing:2103"></a><a class="gloss" href="glossary.html#gloss:indexing">Indexing</a>
technique used for quick lookup.</dd>
<dt><a id="gloss:head"><strong>head</strong></a></dt>
<dd class="defbody">
<a id="idx:head:2104"></a>Part of a <a class="gloss" href="glossary.html#gloss:clause">clause</a>
before the <a class="gloss" href="glossary.html#gloss:neck">neck</a>
operator (<code><code>:-</code></code>). This is an <a class="gloss" href="glossary.html#gloss:atom">atom</a>
or <a class="gloss" href="glossary.html#gloss:compound">compound</a>
term.</dd>
<dt><a id="gloss:imported"><strong>imported [predicate]</strong></a></dt>
<dd class="defbody">
<a id="idx:importedpredicate:2105"></a><a id="idx:predicateimported:2106"></a>A <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
is said to be <a class="gloss" href="glossary.html#gloss:imported">imported</a>
into a <a class="gloss" href="glossary.html#gloss:module">module</a> if
it is defined in another <a class="gloss" href="glossary.html#gloss:module">module</a>
and made available in this <a class="gloss" href="glossary.html#gloss:module">module</a>.
See also <a class="sec" href="modules.html">chapter 6</a>.</dd>
<dt><a id="gloss:indexing"><strong>indexing</strong></a></dt>
<dd class="defbody">
<a id="idx:indexing:2107"></a>Indexing is a technique used to quickly
select candidate <a class="gloss" href="glossary.html#gloss:clause">clauses</a>
of a <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
for a specific <a class="gloss" href="glossary.html#gloss:goal">goal</a>.
In most Prolog systems, indexing is done (only) on the first <a class="gloss" href="glossary.html#gloss:argument">argument</a>
of the <a class="gloss" href="glossary.html#gloss:head">head</a>. If
this argument is instantiated to an <a class="gloss" href="glossary.html#gloss:atom">atom</a>, <a class="gloss" href="glossary.html#gloss:integer">integer</a>, <a class="gloss" href="glossary.html#gloss:float">float</a>
or
<a class="gloss" href="glossary.html#gloss:compound">compound</a> term
with <a class="gloss" href="glossary.html#gloss:functor">functor</a>, <a class="gloss" href="glossary.html#gloss:hashing">hashing</a>
is used to quickly select all <a class="gloss" href="glossary.html#gloss:clause">clauses</a>
where the first argument may <a class="gloss" href="glossary.html#gloss:unify">unify</a>
with the first argument of the <a class="gloss" href="glossary.html#gloss:goal">goal</a>.
SWI-Prolog supports just-in-time and multi-argument indexing. See <a class="sec" href="jitindex.html">section
2.17</a>.</dd>
<dt><a id="gloss:integer"><strong>integer</strong></a></dt>
<dd class="defbody">
<a id="idx:integer:2108"></a>Whole number. On all implementations of
SWI-Prolog integers are at least 64-bit signed values. When linked to
the GNU GMP library, integer arithmetic is unbounded. See also <a id="idx:currentprologflag2:2109"></a><a class="pred" href="flags.html#current_prolog_flag/2">current_prolog_flag/2</a>,
flags <a class="flag" href="flags.html#flag:bounded">bounded</a>, <a class="flag" href="flags.html#flag:max_integer">max_integer</a>
and <a class="flag" href="flags.html#flag:min_integer">min_integer</a>.</dd>
<dt><a id="gloss:interpreted"><strong>interpreted</strong></a></dt>
<dd class="defbody">
<a id="idx:interpreted:2110"></a>As opposed to <a class="gloss" href="glossary.html#gloss:compile">compiled</a>,
interpreted means the Prolog system attempts to prove a <a class="gloss" href="glossary.html#gloss:goal">goal</a>
by directly reading the <a class="gloss" href="glossary.html#gloss:clause">clauses</a>
rather than executing instructions from an (abstract) instruction set
that is not or only indirectly related to Prolog.</dd>
<dt><a id="gloss:instantiation"><strong>instantiation [of an argument]</strong></a></dt>
<dd class="defbody">
<a id="idx:instantiation:2111"></a>To what extend a term is bound to a
value. Typical levels are `unbound' (a <a class="gloss" href="glossary.html#gloss:variable">variable</a>),
`ground' (term without variables) or `partially bound' (term with
embedded variables).</dd>
<dt><a id="gloss:meta-predicate"><strong>meta-predicate</strong></a></dt>
<dd class="defbody">
<a id="idx:metapredicate:2112"></a>A <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
that reasons about other <a class="gloss" href="glossary.html#gloss:predicate">predicates</a>,
either by calling them, (re)defining them or querying <a class="gloss" href="glossary.html#gloss:property">properties</a>.</dd>
<dt><a id="gloss:mode"><strong>mode [declaration]</strong></a></dt>
<dd class="defbody">
<a id="idx:mode:2113"></a>Declaration of an argument <a class="gloss" href="glossary.html#gloss:instantiation">instantiation</a>
pattern for a
<a class="gloss" href="glossary.html#gloss:predicate">predicate</a>,
often accompanied with a <a class="gloss" href="glossary.html#gloss:determinism">determinism</a>.</dd>
<dt><a id="gloss:module"><strong>module</strong></a></dt>
<dd class="defbody">
<a id="idx:module:2114"></a>Collection of predicates. Each module
defines a name-space for predicates. <a class="gloss" href="glossary.html#gloss:built-in">built-in</a>
predicates are accessible from all modules. Predicates can be published
(<a class="gloss" href="glossary.html#gloss:exported">exported</a>) and <a class="gloss" href="glossary.html#gloss:imported">imported</a>
to make their definition available to other modules.</dd>
<dt><a id="gloss:module-transparent"><strong>module transparent [predicate]</strong></a></dt>
<dd class="defbody">
<a id="idx:moduletransparent:2115"></a><a id="idx:transparent:2116"></a>A <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
that does not change the <a class="gloss" href="glossary.html#gloss:context-module">context module</a>.
Sometimes also called a <a class="gloss" href="glossary.html#gloss:meta-predicate">meta-predicate</a>.</dd>
<dt><a id="gloss:multi"><strong>multi [determinism]</strong></a></dt>
<dd class="defbody">
<a id="idx:multi:2117"></a>A <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
is said to have <a class="gloss" href="glossary.html#gloss:determinism">determinism</a>
multi if it generates at
<em>least</em> one answer.</dd>
<dt><a id="gloss:multifile"><strong>multifile [predicate]</strong></a></dt>
<dd class="defbody">
Predicate for which the definition is distributed over multiple source
files. See <a id="idx:multifile1:2118"></a><a class="pred" href="dynamic.html#multifile/1">multifile/1</a>.</dd>
<dt><a id="gloss:neck"><strong>neck</strong></a></dt>
<dd class="defbody">
<a id="idx:neck:2119"></a>Operator (<code><code>:-</code></code>)
separating <a class="gloss" href="glossary.html#gloss:head">head</a>
from <a class="gloss" href="glossary.html#gloss:body">body</a> in a <a class="gloss" href="glossary.html#gloss:clause">clause</a>.</dd>
<dt><a id="gloss:nondet"><strong>nondet</strong></a></dt>
<dd class="defbody">
<a id="idx:nondet:2120"></a>Short for <a class="gloss" href="glossary.html#gloss:non-deterministic">non deterministic</a>.</dd>
<dt><a id="gloss:non-deterministic"><strong>non deterministic</strong></a></dt>
<dd class="defbody">
<a id="idx:nondeterministic:2121"></a>A <a class="gloss" href="glossary.html#gloss:non-deterministic">non deterministic</a>
predicate is a predicate that mail fail or succeed any number of times.</dd>
<dt><a id="gloss:operator"><strong>operator</strong></a></dt>
<dd class="defbody">
<a id="idx:operator:2122"></a>Symbol (<a class="gloss" href="glossary.html#gloss:atom">atom</a>)
that may be placed before its <a class="gloss" href="glossary.html#gloss:operand">operand</a>
(prefix), after its <a class="gloss" href="glossary.html#gloss:operand">operand</a>
(postfix) or between its two <a class="gloss" href="glossary.html#gloss:operand">operands</a>
(infix).
<p>In Prolog, the expression <code>a+b</code> is exactly the same as the
canonical term <code>+(a,b)</code>.</dd>
<dt><a id="gloss:operand"><strong>operand</strong></a></dt>
<dd class="defbody">
<a id="idx:operand:2123"></a><a class="gloss" href="glossary.html#gloss:argument">Argument</a>
of an <a class="gloss" href="glossary.html#gloss:operator">operator</a>.</dd>
<dt><a id="gloss:precedence"><strong>precedence</strong></a></dt>
<dd class="defbody">
<a id="idx:precedence:2124"></a>The <a class="gloss" href="glossary.html#gloss:priority">priority</a>
of an <a class="gloss" href="glossary.html#gloss:operator">operator</a>.
Operator precedence is used to interpret <code>a+b*c</code> as <code>+(a, *(b,c))</code>.</dd>
<dt><a id="gloss:predicate"><strong>predicate</strong></a></dt>
<dd class="defbody">
<a id="idx:predicate:2125"></a>Collection of <a class="gloss" href="glossary.html#gloss:clause">clauses</a>
with the same <a class="gloss" href="glossary.html#gloss:functor">functor</a>
(name/<a class="gloss" href="glossary.html#gloss:arity">arity</a>). If a <a class="gloss" href="glossary.html#gloss:goal">goal</a>
is proved, the system looks for a <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
with the same functor, then uses <a class="gloss" href="glossary.html#gloss:indexing">indexing</a>
to select candidate <a class="gloss" href="glossary.html#gloss:clause">clauses</a>
and then tries these <a class="gloss" href="glossary.html#gloss:clause">clauses</a>
one-by-one. See also <a class="gloss" href="glossary.html#gloss:backtracking">backtracking</a>.</dd>
<dt><a id="gloss:predicate-indicator"><strong>predicate indicator</strong></a></dt>
<dd class="defbody">
<a id="idx:predicateindicator:2126"></a>Term of the form Name/Arity
(traditional) or Name//Arity (ISO DCG proposal), where Name is an atom
and Arity a non-negative integer. It acts as an <em>indicator</em> (or
reference) to a predicate or
<b>DCG</b> rule.</dd>
<dt><a id="gloss:priority"><strong>priority</strong></a></dt>
<dd class="defbody">
<a id="idx:priority:2127"></a>In the context of <a class="gloss" href="glossary.html#gloss:operator">operators</a>
a synonym for <a class="gloss" href="glossary.html#gloss:precedence">precedence</a>.</dd>
<dt><a id="gloss:program"><strong>program</strong></a></dt>
<dd class="defbody">
<a id="idx:program:2128"></a>Collection of <a class="gloss" href="glossary.html#gloss:predicate">predicates</a>.</dd>
<dt><a id="gloss:property"><strong>property</strong></a></dt>
<dd class="defbody">
<a id="idx:property:2129"></a>Attribute of an object. SWI-Prolog defines
various <em>*_property</em> predicates to query the status of
predicates, clauses. etc.</dd>
<dt><a id="gloss:prove"><strong>prove</strong></a></dt>
<dd class="defbody">
<a id="idx:prove:2130"></a>Process where Prolog attempts to prove a <a class="gloss" href="glossary.html#gloss:query">query</a>
using the available
<a class="gloss" href="glossary.html#gloss:predicate">predicates</a>.</dd>
<dt><a id="gloss:public-list"><strong>public list</strong></a></dt>
<dd class="defbody">
<a id="idx:publiclist:2131"></a>List of <a class="gloss" href="glossary.html#gloss:predicate">predicates</a>
exported from a <a class="gloss" href="glossary.html#gloss:module">module</a>.</dd>
<dt><a id="gloss:query"><strong>query</strong></a></dt>
<dd class="defbody">
See <a class="gloss" href="glossary.html#gloss:goal">goal</a>.</dd>
<dt><a id="gloss:retract"><strong>retract</strong></a></dt>
<dd class="defbody">
<a id="idx:retract:2132"></a>Remove a <a class="gloss" href="glossary.html#gloss:clause">clause</a>
from a <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>.
See also <a class="gloss" href="glossary.html#gloss:dynamic">dynamic</a>,
<a class="gloss" href="glossary.html#gloss:update-view">update view</a>
and <a class="gloss" href="glossary.html#gloss:assert">assert</a>.</dd>
<dt><a id="gloss:semidet"><strong>semidet</strong></a></dt>
<dd class="defbody">
<a id="idx:semidet:2133"></a>Shorthand for </dd>
<dt><a id="gloss:semi-deterministic"><strong>semi deterministic</strong></a></dt>
<dd class="defbody">
.</dd>
<dt><a id="gloss:semi-deterministic"><strong>semi deterministic</strong></a></dt>
<dd class="defbody">
<a id="idx:semideterministic:2134"></a>A <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
that is <a class="gloss" href="glossary.html#gloss:semi-deterministic">semi deterministic</a>
either fails or succeeds exactly once without a <a class="gloss" href="glossary.html#gloss:choice-point">choice point</a>.
See also
<a class="gloss" href="glossary.html#gloss:deterministic">deterministic</a>.</dd>
<dt><a id="gloss:shared"><strong>shared</strong></a></dt>
<dd class="defbody">
<a id="idx:shared:2135"></a>Two <a class="gloss" href="glossary.html#gloss:variable">variables</a>
are called <a class="gloss" href="glossary.html#gloss:shared">shared</a>
after they are <a class="gloss" href="glossary.html#gloss:unify">unified</a>.
This implies if either of them is <a class="gloss" href="glossary.html#gloss:binding">bound</a>,
the other is bound to the same value:
<pre class="code">
?- A = B, A = a.
A = B, B = a.
</pre>
</dd>
<dt><a id="gloss:singleton"><strong>singleton [variable]</strong></a></dt>
<dd class="defbody">
<a id="idx:singleton:2136"></a><a class="gloss" href="glossary.html#gloss:variable">Variable</a>
appearing only one time in a <a class="gloss" href="glossary.html#gloss:clause">clause</a>.
SWI-Prolog normally warns for this to avoid you making spelling
mistakes. If a variable appears on purpose only once in a clause, write
it as <code>_</code> (see <a class="gloss" href="glossary.html#gloss:anonymou">anonymous</a>).
Rules for naming a variable and avoiding a warning are given in <a class="sec" href="syntax.html">section
2.15.2.5</a>.</dd>
<dt><a id="gloss:solution"><strong>solution</strong></a></dt>
<dd class="defbody">
<a id="idx:solution:2137"></a><a class="gloss" href="glossary.html#gloss:binding">Bindings</a>
resulting from a successfully <a class="gloss" href="glossary.html#gloss:prove">prove</a>n <a class="gloss" href="glossary.html#gloss:goal">goal</a>.</dd>
<dt><a id="gloss:structure"><strong>structure</strong></a></dt>
<dd class="defbody">
<a id="idx:structure:2138"></a>Synonym for <a class="gloss" href="glossary.html#gloss:compound">compound</a>
term.</dd>
<dt><a id="gloss:string"><strong>string</strong></a></dt>
<dd class="defbody">
Used for the following representations of text: a packed array (see <a class="sec" href="strings.html">section
5.2</a>, SWI-Prolog specific), a list of character codes or a list of
one-character <a class="gloss" href="glossary.html#gloss:atom">atoms</a>.</dd>
<dt><a id="gloss:succeed"><strong>succeed</strong></a></dt>
<dd class="defbody">
<a id="idx:succeed:2139"></a>A <a class="gloss" href="glossary.html#gloss:goal">goal</a>
is said to have <a class="gloss" href="glossary.html#gloss:succeed">succeeded</a>
if it has been <a class="gloss" href="glossary.html#gloss:prove">proven</a>.</dd>
<dt><a id="gloss:term"><strong>term</strong></a></dt>
<dd class="defbody">
<a id="idx:term:2140"></a>Value in Prolog. A <a class="gloss" href="glossary.html#gloss:term">term</a>
is either a <a class="gloss" href="glossary.html#gloss:variable">variable</a>, <a class="gloss" href="glossary.html#gloss:atom">atom</a>, <a class="gloss" href="glossary.html#gloss:integer">integer</a>,
<a class="gloss" href="glossary.html#gloss:float">float</a> or <a class="gloss" href="glossary.html#gloss:compound">compound</a>
term. In addition, SWI-Prolog also defines the type <a class="gloss" href="glossary.html#gloss:string">string</a>.</dd>
<dt><a id="gloss:transparent"><strong>transparent</strong></a></dt>
<dd class="defbody">
See <a class="gloss" href="glossary.html#gloss:module-transparent">module transparent</a>.</dd>
<dt><a id="gloss:unify"><strong>unify</strong></a></dt>
<dd class="defbody">
<a id="idx:unify:2141"></a>Prolog process to make two terms equal by
assigning variables in one term to values at the corresponding location
of the other term. For example:
<pre class="code">
?- foo(a, B) = foo(A, b).
A = a,
B = b.
</pre>
<p>Unlike assignment (which does not exist in Prolog), unification is
not directed.</dd>
<dt><a id="gloss:update-view"><strong>update view</strong></a></dt>
<dd class="defbody">
<a id="idx:updateview:2142"></a><a id="idx:viewupdate:2143"></a>How
Prolog behaves when a <a class="gloss" href="glossary.html#gloss:dynamic">dynamic</a> <a class="gloss" href="glossary.html#gloss:predicate">predicate</a>
is changed while it is running. There are two models. In most older
Prolog systems the change becomes immediately visible to the <a class="gloss" href="glossary.html#gloss:goal">goal</a>,
in modern systems including SWI-Prolog, the running <a class="gloss" href="glossary.html#gloss:goal">goal</a>
is not affected. Only new <a class="gloss" href="glossary.html#gloss:goal">goals</a>
`see' the new definition.</dd>
<dt><a id="gloss:variable"><strong>variable</strong></a></dt>
<dd class="defbody">
<a id="idx:variable:2144"></a>A Prolog variable is a value that `is not
yet bound'. After <a class="gloss" href="glossary.html#gloss:binding">binding</a>
a variable, it cannot be modified. <a class="gloss" href="glossary.html#gloss:backtracking">Backtracking</a>
to a point in the execution before the variable was bound will turn it
back into a variable:
<pre class="code">
?- A = b, A = c.
false.
?- (A = b; true; A = c).
A = b ;
true ;
A = c .
</pre>
<p>See also <a class="gloss" href="glossary.html#gloss:unify">unify</a>.
<p></dd>
</dl>
</body></html>
|