Saved in:
Bibliographic Details
Main Author: Felicissimo, Thiago
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2307.08523
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917644263751680
author Felicissimo, Thiago
author_facet Felicissimo, Thiago
contents Bidirectional typing is a discipline in which the typing judgment is decomposed explicitly into inference and checking modes, allowing to control the flow of type information in typing rules and to specify algorithmically how they should be used. Bidirectional typing has been fruitfully studied and bidirectional systems have been developed for many type theories. However, the formal development of bidirectional typing has until now been kept confined to specific theories, with general guidelines remaining informal. In this work, we give a generic account of bidirectional typing for a general class of dependent type theories. This is done by first giving a general definition of type theories (or equivalently, a logical framework), for which we define declarative and bidirectional type systems. We then show, in a theory-independent fashion, that the two systems are equivalent. Finally, we establish the decidability of bidirectional typing for normalizing theories, yielding a generic type-checking algorithm that has been implemented in a prototype and used in practice with many theories.
format Preprint
id arxiv_https___arxiv_org_abs_2307_08523
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Generic bidirectional typing for dependent type theories
Felicissimo, Thiago
Logic in Computer Science
Bidirectional typing is a discipline in which the typing judgment is decomposed explicitly into inference and checking modes, allowing to control the flow of type information in typing rules and to specify algorithmically how they should be used. Bidirectional typing has been fruitfully studied and bidirectional systems have been developed for many type theories. However, the formal development of bidirectional typing has until now been kept confined to specific theories, with general guidelines remaining informal. In this work, we give a generic account of bidirectional typing for a general class of dependent type theories. This is done by first giving a general definition of type theories (or equivalently, a logical framework), for which we define declarative and bidirectional type systems. We then show, in a theory-independent fashion, that the two systems are equivalent. Finally, we establish the decidability of bidirectional typing for normalizing theories, yielding a generic type-checking algorithm that has been implemented in a prototype and used in practice with many theories.
title Generic bidirectional typing for dependent type theories
topic Logic in Computer Science
url https://arxiv.org/abs/2307.08523