ICFP 2023
Mon 4 - Sat 9 September 2023 Seattle, Washington, United States
Tue 5 Sep 2023 11:30 - 12:00 at B - Fifth Avenue - Dependent types Chair(s): James Chapman

<p>We present a graded modal type theory, a dependent type theory with
<em>grades</em> that can be used to enforce various properties of the
code.
The theory has &Pi;-types, weak and strong &Sigma;-types, natural numbers, an
empty type, and a universe, and we also extend the theory with a unit
type and graded &Sigma;-types.
The theory is parameterized by a modality, a kind of partially ordered
semiring, whose elements (grades) are used to track the usage of
variables in terms and types.
Different modalities are possible.
We focus mainly on quantitative properties, in particular erasure:
with the erasure modality one can mark function arguments as erasable.</p>
<p>The theory is fully formalized in Agda.
The formalization, which uses a syntactic Kripke logical relation at
its core and is based on earlier work, establishes major
meta-theoretic properties such as subject reduction, consistency,
normalization, and decidability of definitional equality.
We also prove a substitution theorem for grade assignment, and
preservation of grades under reduction.
Furthermore we study an extraction function that translates terms to
an untyped &lambda;-calculus and removes erasable content, in
particular function arguments with the &ldquo;erasable&rdquo; grade.
For a certain class of modalities we prove that extraction is sound,
in the sense that programs of natural number type have the same value
before and after extraction.
Soundness of extraction holds also for <em>open</em> programs, as
long as all variables in the context are erasable, the context is
consistent, and <em>erased matches</em> are not allowed for weak
&Sigma;-types.</p>

Tue 5 Sep

Displayed time zone: Pacific Time (US & Canada) change

10:30 - 12:00
Dependent typesICFP Papers and Events at B - Fifth Avenue
Chair(s): James Chapman Input Output
10:30
30m
Talk
Is Sized Typing for Coq Practical?JFP Presentation
ICFP Papers and Events
Jonathan Chan University of Pennsylvania, Yufeng Li University of Waterloo, William J. Bowman University of British Columbia
Link to publication DOI Media Attached
11:00
30m
Talk
Dependently-Typed Programming with Logical Equality Reflection
ICFP Papers and Events
Yiyun Liu University of Pennsylvania, Stephanie Weirich University of Pennsylvania
DOI
11:30
30m
Talk
A Graded Modal Dependent Type Theory with a Universe and Erasure, Formalized
ICFP Papers and Events
Andreas Abel Gothenburg University, Nils Anders Danielsson Chalmers and Gothenburg University, Oskar Eriksson Chalmers and Gothenburg University
DOI