z-logo
open-access-imgOpen Access
Irrelevance, Polymorphism, and Erasure in Type Theory
Author(s) -
Richard Mishra-Linger
Publication year - 2000
Language(s) - English
Resource type - Reports
DOI - 10.15760/etd.2669
Subject(s) - correctness , computer science , mathematical proof , type theory , programming language , erasure , property (philosophy) , theoretical computer science , type (biology) , functional programming , relevance (law) , mathematics , ecology , philosophy , geometry , epistemology , biology , political science , law
Dependent type theory is a proven technology for verified functional programming in which programs and their correctness proofs may be developed using the same rules in a single formal system. In practice, large portions of programs developed in this way have no computational relevance to the ultimate result of the program and should therefore be removed prior to program execution. In previous work on identifying and removing irrelevant portions of programs, computational irrelevance is usually treated as an intrinsic property of program expressions. We find that such an approach forces programmers to maintain two copies of commonly used datatypes: a computationally relevant one and a computationally irrelevant one. We instead develop an extrinsic notion of computational irrelevance and find that it yields several benefits including (1) avoidance of the above mentioned code duplication problem; (2) an identification of computational irrelevance with a highly general form of parametric polymorphism; and (3) an elective (i.e., user-directed) notion of proof irrelevance. We also develop a program analysis for identifying irrelevant expressions and show how previously studied types embodying computational irrelevance (including subset types and squash types) are expressible in the extension of type theory developed herein.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom