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.

Highlights

  • Our goal is to develop a programming language for implementation of logic that is convenient to use on one hand, and efficient on the other hand

  • Our goal is to develop and implement an efficient programming language in which it is convenient to implement algorithms on trees whose forms are very different

  • The adjectives are intended as a replacement for matching in functional languages

Read more

Summary

A Recursive Inclusion Checker for Recursively De ned Subtypes

We present a tableaux procedure that checks logical relations between recursively de ned subtypes of recursively de ned types and apply this procedure to the problem of resolving ambiguous names in a programming language. is work is part of a project to design a new programming language suitable for e cient implementation of logic. We present a tableaux procedure that checks logical relations between recursively de ned subtypes of recursively de ned types and apply this procedure to the problem of resolving ambiguous names in a programming language. Logical formulas are tree-like structures with many constructors having di erent arities and argument types. Case analysis is handled by matching, but we want to take a di erent approach, based on recursively de ned subtypes. For citation: H. de Nivelle, “A Recursive Inclusion Checker for Recursively De ned Subtypes”, Modeling and analysis of information systems, vol 28, no. Как использовать эту проверку включения для разрешения неоднозначных ссылок на поля в объявлениях прилагательных. Для цитирования: H. de Nivelle, “A Recursive Inclusion Checker for Recursively Defined Subtypes”, Modeling and analysis of information systems, vol 28, no.

Introduction
Semantics of Types and Adjectives
A Tableaux Calculus
Procedure
Resolving Overloads in Types and Adjectives
If for example the use of
Conclusions
Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.