Understanding programs as devices
Year: 1990
Type: article
Abstract: Humans are able to perform many complicated cognitive tasks involving devices; they are able to find faults, if any, in a device given a description of its behavior, or predict what a device will do under particular circumstances. They can explain the workings of a device to other humans. Although it is conceivable, if necessary, to accomplish these tasks by considering all possible states of the device, one seldom does this when performing such a task. Rather, one deliberately considers an appropriate subset of the states of the device, or an abstraction that aggregates various subsets of the states, as is appropriate to the task at hand.
Similar comments are true of humans who understand computer programs. In this work, I determine the requirements for a representation of program understanding to support reasoning of this nature. This dissertation describes extensions to the Functional Representation language (first described by Sembugamoorthy and Chandrasekaran), which satisfies many of these requirements, to include connecting the representation of program understanding not only to program code, but also to axiomatic proofs of program correctness.
This approach contributes to machine understanding of programs by resolving the tensions between plan-based and theorem-based approaches to automatic debugging. A strategy reminiscent of plan-matching approaches is used to reduce the part of a proof that must be constructed by an automatic theorem prover. This approach also contributes to machine understanding of devices by connecting the Functional Representation to a domain which has a formal definition for its semantics.
The properties of the representation are demonstrated with a program that runs in Interlisp-D on a Xerox 1108 that uses a functional representation of a computer program to verify program code, and, if the code is incorrect, to give an understandable report of the error. Dudu is able to recognize the correctness of many programs that do not correspond to the representation in an obvious way by completing a correctness proof of the program, with guidance from the functional representation.
Author: Dean Allemang
Institution: The Ohio State University
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W1555438985
