Skip to main content
QUICK REVIEW

[Paper Review] Syntax and Semantics of Cedille

Aaron Stump, Jenkins, Christopher|arXiv (Cornell University)|Jun 12, 2018
Logic, programming, and type systemsComputer Science12 references4 citations
TL;DR

This paper presents Cedille, a minimal, Curry-style type theory (CDLE) that enables dependently typed programming using pure lambda encodings for all data, without requiring built-in inductive types. It introduces novel constructs—such as ι for dependent pairs, ρ for rewriting, and δ for deriving contradictions from false equalities—to derive induction principles and support full dependent elimination, achieving a small core theory suitable for formal verification and implementation in a verified proof assistant.

ABSTRACT

This document presents the syntax, classification rules, realizability semantics, and soundness theorem for Cedille, an extrinsic (i.e., Curry-style) type theory extending the Calculus of Constructions, and designed for deriving of inductive datatypes, with their induction principles.

Motivation & Objective

  • To design a minimal, Curry-style type theory (CDLE) that supports full dependent typing without built-in inductive types.
  • To enable derivation of induction principles for lambda-encoded datatypes using only core constructs.
  • To eliminate the need for lifting or large eliminations by introducing the δ and ρ constructs.
  • To provide a foundation for a formally verified proof assistant with a small, tractable core theory.
  • To support practical dependently typed programming with reduced redundancy through convenient syntactic sugar that compiles to the core.

Proposed method

  • Uses a bidirectional type system with synthesis (⇒) and checking (⇐) for efficient type inference.
  • Employs call-by-name normalization to expose type constructors in weak head normal form.
  • Introduces the ι construct for dependent pairs and Π for dependent functions, with explicit type annotations via χ.
  • Incorporates ρ for rewriting, allowing type-safe pattern matching on lambda-encoded data via explicit subterm inference.
  • Uses δ to derive contradictions from the equality of lambda-encoded true and false, compensating for lack of lifting.
  • Applies erasure to terms to define βη-equivalence for type and kind conversion, enabling type safety.

Experimental results

Research questions

  • RQ1How can induction principles be derived for lambda-encoded datatypes without built-in inductive types or lifting?
  • RQ2Can a minimal type theory support full dependent elimination and practical dependent programming?
  • RQ3How can contradiction be derived from false equalities in a pure lambda-encoding setting?
  • RQ4What is the role of the ρ rewriting construct in enabling safe, type-safe pattern matching?
  • RQ5How does the absence of lifting affect expressivity, and can it be compensated via alternative constructs?

Key findings

  • CDLE supports full dependent typing and induction for lambda-encoded datatypes using only a small set of core constructs.
  • The δ construct enables contradiction derivation from lambda-encoded true = false, replacing the need for lifting in some cases.
  • The ρ construct allows safe rewriting on lambda-encoded data by inferring subterms, enabling pattern matching without explicit case analysis.
  • The system achieves type safety via erasure-based βη-equality and call-by-name normalization.
  • All syntactic sugar in Cedille compiles to Cedille Core, a simplified version of CDLE, ensuring a small, formally verifiable core.
  • The theory is proven to be type-safe, with subject reduction and kind safety established via formal lemmas and corollaries.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.