Feedback Equivalence problem uses a nonstandard level of abstraction 

Forum: Com Sci 221, U Chicago, Autumn 2001, Discuss Classwork
Re: News Optional assignment #9, due Thursday 6 December (Mike O'Donnell)
Re: Question problem 3: join the confusion (Terry (Sotiria) Lampoudi)
Date: 2001, Dec 05
From: Mike O'Donnell <odonnell@cs.uchicago.edu>

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. X = [Y, Z], we think of it as a shorthand for an infinite number of ground terms (in this case, all of the ground terms describing lists of exactly two elements).

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, join(X,Y) is just providing some further information about X and Y. But in my nonstandard view, it changes the equivalence relation on variables in a way that cannot be undone within the same derivation.

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: "Equivalence problem uses a nonstandard level of abstraction"