|
This article is cited in 1 scientific paper (total in 1 paper)
Theory of computing
A recursive inclusion checker for recursively defined subtypes
H. de Nivelle Nazarbayev University
Abstract:
We present a tableaux procedure that checks logical relations between recursively defined subtypes of recursively defined types and apply this procedure to the problem of resolving ambiguous names in a programming language. This work is part of a project to design a new programming language suitable for efficient implementation of logic. Logical formulas are tree-like structures with many constructors having different arities and argument types. Algorithms that use these structures must perform case analysis on the constructors, and access subtrees whose type and existence depend on the constructor used. In many programming languages, case analysis is handled by matching, but we want to take a different approach, based on recursively defined subtypes. Instead of matching a tree against different constructors, we will classify it by using a set of disjoint subtypes. Subtypes are more general than structural forms based on constructors, we expect that they can be implemented more efficiently, and in addition can be used in static type checking. This makes it possible to use recursively defined subtypes as preconditions or postconditions of functions. We define the types and the subtypes (which we will call adjectives), define their semantics, and give a tableaux-based inclusion checker for adjectives. We show how to use this inclusion checker for resolving ambiguous field references in declarations of adjectives. The same procedure can be used for resolving ambiguous function calls.
Keywords:
programming language design, type systems, theorem proving, compiler construction.
Received: 15.12.2021 Revised: 01.12.2021 Accepted: 08.12.2021
Citation:
H. de Nivelle, “A recursive inclusion checker for recursively defined subtypes”, Model. Anal. Inform. Sist., 28:4 (2021), 414–433
Linking options:
https://www.mathnet.ru/eng/mais760 https://www.mathnet.ru/eng/mais/v28/i4/p414
|
Statistics & downloads: |
Abstract page: | 65 | Full-text PDF : | 33 | References: | 27 |
|