On the Theory of Structural Subtyping
Abstract
We show that the first-order theory of structural subtyping of non-recursive types is decidable. Let $\Sigma$ be a language consisting of function symbols (representing type constructors) and $C$ a decidable structure in the relational language $L$ containing a binary relation $\leq$. $C$ represents primitive types; $\leq$ represents a subtype ordering. We introduce the notion of $\Sigma$-term-power of $C$, which generalizes the structure arising in structural subtyping. The domain of the $\Sigma$-term-power of $C$ is the set of $\Sigma$-terms over the set of elements of $C$. We show that the decidability of the first-order theory of $C$ implies the decidability of the first-order theory of the $\Sigma$-term-power of $C$. Our decision procedure makes use of quantifier elimination for term algebras and Feferman-Vaught theorem. Our result implies the decidability of the first-order theory of structural subtyping of non-recursive types.
- Publication:
-
arXiv e-prints
- Pub Date:
- August 2004
- DOI:
- 10.48550/arXiv.cs/0408015
- arXiv:
- arXiv:cs/0408015
- Bibcode:
- 2004cs........8015K
- Keywords:
-
- Computer Science - Logic in Computer Science;
- Computer Science - Programming Languages;
- Computer Science - Software Engineering;
- D.2.4;
- D.3.1;
- D.3.3;
- F.3.1;
- F.3.2;
- F.4.1
- E-Print:
- 51 page. A version appeared in LICS 2003