Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Variables

Variables always start with ?: ?Device, ?X, ?Revision. Without the prefix, a name is a class (after :) or an object (reserve). Quantification is implicit — there are no explicit for all / exists keywords.

// ?X is a variable; Mortal and Human are classes.
?X:Mortal <- ?X:Human.

// ?Revision is a variable the query fills in.
?- reserve[configurationRevision -> ?Revision].