We present a graded modal type theory with recursion over natural numbers and prove formally in Agda that it handles resources correctly, in the sense that an abstract machine accesses resources the “correct” number of times. The theory is parametrized, and can for instance be instantiated with modalities for erasure, linear types, or affine types among others. Compared to previous work, our eliminator for natural numbers is more flexible in the sense that it enables different resource-usage patterns. The correctness proof shows that our usage counting is sound and we also argue that it is accurate in the sense that it does not over approximate uses. We expect that the principles underlying the usage counting can be applied to eliminators of other inductive data types. The eliminator is demonstrated to be practical in the sense that it can be used both to define functions over natural numbers with expected usage counts of its arguments and that it can be used to encode other data types. Finally, we adapt our resource correctness proof to show correctness also for information flow instances in the form of a non-interference property.
Thu 27 AugDisplayed time zone: Eastern Time (US & Canada) change
10:48 - 12:00 | |||
10:48 18mTalk | Machine-Generated, Machine-Checked Proofs for a Verified Compiler (Experience Report) ICFP Papers Zoe Paraskevopoulou National Technical University of Athens DOI | ||
11:06 18mTalk | Proofs Promptly: Proof-Oriented Programming with AI Agents (Experience Report)Remote ICFP Papers Eleftherios Ioannidis Microsoft Research, Nikhil Swamy Microsoft Research, Gabriel Ebner Microsoft Research, Matthai Philipose Microsoft Research, Tahina Ramananandro Microsoft Research DOI | ||
11:24 18mTalk | Programming Backpropagation with Reverse Handlers for Arrows ICFP Papers Takahiro Sanada Fukui Prefectural University, Keisuke Hoshino Research Institute for Mathematical Sciences, Kyoto University, Kenshin Hirai Research Institute for Mathematical Sciences, Kyoto University, Shin-ya Katsumata Kyoto Sangyo University DOI | ||
11:42 18mTalk | On Recursion in Graded Modal Type Theory ICFP Papers Oskar Eriksson Department of Computer Science and Engineering, University of Gothenburg and Chalmers University of Technology, Gothenburg, Sweden, Andreas Abel Gothenburg University, Nils Anders Danielsson University of Gothenburg DOI | ||