

Leavens, Gary T. and Pigozzi, Don (2002) Equational Reasoning with Subtypes. Technical Report TR0207, Computer Science, Iowa State University.
Abstract
Using equational logic as a specification language, we investigate the proof theory of behavioral subtyping for objectoriented abstract data types with immutable objects and deterministic methods that can use multiple dispatch. In particular, we investigate a proof technique for correct behavioral subtyping in which each subtype's specification includes terms that can be used to coerce its objects to objects of each of its supertypes. We show that this technique is sound, using our previous work on the model theory of such abstract data types. We also give an example to show that the technique is not complete, even if the methods do not use multiple dispatch, and even if types specified are termgenerated. In preparation for the results on equational subtyping we develop the proof theory of a richer form of equational logic that is suitable for dealing with subtyping and behavioral equivalence. This gives some insight into question of when our proof techniques can be make effectively computable, but in general behavioral consequence is not effectively computable.
Contact site administrator at: ssg@cs.iastate.edu
