FLOC 2018: FEDERATED LOGIC CONFERENCE 2018
Efficient Mendler-Style Lambda-Encodings in Cedille

Authors: Denis Firsov, Richard Blair and Aaron Stump

Paper Information

Title:Efficient Mendler-Style Lambda-Encodings in Cedille
Authors:Denis Firsov, Richard Blair and Aaron Stump
Proceedings:ITP Papers
Editors: Jeremy Avigad and Assia Mahboubi
Keywords:type theory, lambda-encodings, Cedille, induction principle, predecessor function, inductive datatypes
Abstract:

ABSTRACT. It is common to model inductive datatypes as least fixed points of functors. We show that within the Cedille type theory we can relax functoriality constraints and generically derive an induction principle for Mendler-style lambda-encoded inductive datatypes, which arise as least fixed points of covariant schemes where the morphism lifting is defined only on identities. Additionally, we implement a destructor for these lambda-encodings that runs in constant-time. As a result, we can define lambda-encoded natural numbers with an induction principle and a constant-time predecessor function so that the normal form of a numeral requires only linear space. The paper also includes several more advanced examples.

Pages:18
Talk:Jul 09 12:00 (Session 48)
Paper: