RUS  ENG
Full version
JOURNALS // Modelirovanie i Analiz Informatsionnykh Sistem // Archive

Model. Anal. Inform. Sist., 2021 Volume 28, Number 4, Pages 414–433 (Mi mais760)

This article is cited 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.

UDC: 510.57

MSC: 68Q99,03B70

Received: 15.12.2021
Revised: 01.12.2021
Accepted: 08.12.2021

Language: English

DOI: 10.18255/1818-1015-2021-4-414-433



© Steklov Math. Inst. of RAS, 2024