Gradual Guarantee via Step-Indexed Logical Relations in Agda

Fuente: arXiv
Saved in:
Bibliographic Details
Main Author: Siek, Jeremy G.
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917856512311296
author Siek, Jeremy G.
author_facet Siek, Jeremy G.
contents The gradual guarantee is an important litmus test for gradually typed languages, that is, languages that enable a mixture of static and dynamic typing. The gradual guarantee states that changing the precision of a type annotation does not change the behavior of the program, except perhaps to trigger an error if the type annotation is incorrect. Siek et al. (2015) proved that the Gradually Typed Lambda Calculus (GTLC) satisfies the gradual guarantee using a simulation-based proof and mechanized their proof in Isabelle. In the following decade, researchers have proved the gradual guarantee for more sophisticated calculi, using step-indexed logical relations. However, given the complexity of that style of proof, there has not yet been a mechanized proof of the gradual guarantee using step-indexed logical relations. This paper reports on a mechanized proof of the gradual guarantee for the GTLC carried out in the Agda proof assistant.
format Preprint
id arxiv_https___arxiv_org_abs_2412_03125
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Gradual Guarantee via Step-Indexed Logical Relations in Agda
Siek, Jeremy G.
Programming Languages
F.3.2; F.3.1; D.3.1; D.3.2
The gradual guarantee is an important litmus test for gradually typed languages, that is, languages that enable a mixture of static and dynamic typing. The gradual guarantee states that changing the precision of a type annotation does not change the behavior of the program, except perhaps to trigger an error if the type annotation is incorrect. Siek et al. (2015) proved that the Gradually Typed Lambda Calculus (GTLC) satisfies the gradual guarantee using a simulation-based proof and mechanized their proof in Isabelle. In the following decade, researchers have proved the gradual guarantee for more sophisticated calculi, using step-indexed logical relations. However, given the complexity of that style of proof, there has not yet been a mechanized proof of the gradual guarantee using step-indexed logical relations. This paper reports on a mechanized proof of the gradual guarantee for the GTLC carried out in the Agda proof assistant.
title Gradual Guarantee via Step-Indexed Logical Relations in Agda
topic Programming Languages
F.3.2; F.3.1; D.3.1; D.3.2
url https://arxiv.org/abs/2412.03125