|
At least some of the confusion probably derives from the nonstandard level of abstraction in the presentation of the problem. Prolog is usually understood in terms of data that can be the fully instantiated values of variables. These are terms that contain no variables themselves. Logicians often call them ground terms. Prolog computation states involve associations of nonground terms to variables, but these are not usually thought of as real values. Rather, they are usually thought of as purely internal data structures used in a search for the real values. Even when Prolog outputs a term with variables, e.g. For a rough analogy, notice that conventional procedural programming languages use a stack to control recursion. But the value of that stack is not usually thought of as a value for the programmer to manipulate explicitly. Rather, it is thought of as an internal mechanism for controlling the generation of the values that the programmer describes. But, in order to ferret out information about the inherent power of a programming language (which may be different from the power that people normally associate with it), it is sometimes good to take a deviant view of its values and other components. So, in problem 3 I'm conceiving of Prolog as a language for manipulating associations of nonground terms to variables. In this particular problem, all of the nonground terms are pure variables themselves. So the information content of such an association is just the equivalence relation on variables induced by that association. Although I'm using a nonstandard view of Prolog computation states, I'm sticking to the standard view of backtracking search as a way of searching for values, rather than thinking of the data structure that keeps track of backtracking as a value in its own right. So, I'm only applying my strange view to individual derivations generated by the Prolog implementation, not to the whole derivation tree as a structure. In the standard view of Prolog, I'm not sure that I can make a useful response to the second paragraph. Perhaps we can assimilate this message, and then restate any remaining confusion. This is inherently a confusing problem, so don't be intimidated. Mike O'D. |
to: