Skip to main content
QUICK REVIEW

[Paper Review] The Exp-Log Normal Form of Types and Canonical Terms for Lambda Calculus with Sums.

Danko Ilik, Zakaria Chihani|arXiv (Cornell University)|Feb 16, 2015
Logic, programming, and type systemsComputer Science15 references1 citations
TL;DR

This paper resolves the long-standing canonicity problem in lambda calculus with sum types by introducing an Exp-Log Normal Form (ENF), a generalized disjunctive normal form that handles exponentials. By coercing terms to isomorphic ENF types and using evaluation contexts to express the eta rule for sums, the eta-long beta-normal form becomes canonical, eliminating the need for complex program analysis procedures.

ABSTRACT

In the presence of sum types, the eta-long beta-normal form of terms of lambda calculus is not canonical. Natural deduction systems for intuitionistic logic (with disjunction) suffer the same defect, thanks to the Curry-Howard correspondence. This canonicity problem has been open in Proof Theory since the 1960s, while it has been addressed in Computer Science, since the 1990s, by a number of authors using de- cision procedures: instead of deriving a notion of syntactic canonical normal form, one gives a procedure based on program analysis to de- cide when any two terms of the lambda calculus with sum types are essentially the same one. In this paper, we show the canonicity problem is difficult because it is too specialized: rather then picking a canonical representative out of a class of beta-eta-equal terms of a given type, one should do so for the enlarged class of terms that are of a type isomorphic to the given one. We isolate a type normal form, ENF, generalizing the usual disjunctive normal form to handle exponentials, and we show that the eta-long beta-normal form of terms at ENF type is canonical, when the eta axiom for sums is expressed via evaluation contexts. By coercing terms from a given type to its isomorphic ENF type, our technique gives unique canonical representatives for examples that had previously been handled using program analysis.

Motivation & Objective

  • To address the open problem in Proof Theory since the 1960s concerning the lack of a canonical normal form for lambda calculus with sum types.
  • To overcome the limitation of eta-long beta-normal forms not being canonical in the presence of sum types due to non-unique representations.
  • To generalize disjunctive normal forms to handle exponential types, creating a new type normal form (ENF) that captures isomorphic types.
  • To show that the eta-long beta-normal form becomes canonical when terms are coerced into isomorphic ENF types.
  • To eliminate reliance on complex program analysis by providing a syntactic, type-based canonicalization method.

Proposed method

  • Introduce the Exp-Log Normal Form (ENF), a generalization of disjunctive normal form to include exponential types.
  • Define a type isomorphism relation that allows terms of a given type to be mapped to an isomorphic ENF type.
  • Use evaluation contexts to express the eta rule for sum types, ensuring proper handling of sum elimination.
  • Coerce terms from their original type to an isomorphic ENF type to obtain a unique, canonical representative.
  • Apply the eta-long beta-normal form to the coerced term in ENF type, which now yields a canonical form.
  • Demonstrate that this process yields unique representatives for terms that previously required program analysis to equate.

Experimental results

Research questions

  • RQ1Can a canonical normal form be defined for lambda calculus with sum types when the standard eta-long beta-normal form fails to be canonical?
  • RQ2How can type isomorphisms be leveraged to construct a canonical representative for a term beyond its original type?
  • RQ3What role does the evaluation context formulation of the eta rule for sums play in achieving canonicity?
  • RQ4Can the Exp-Log Normal Form (ENF) serve as a universal normal form that generalizes disjunctive normal forms to include exponential types?
  • RQ5Is it possible to eliminate the need for program analysis in type equality checking by using type isomorphisms and ENF coercion?

Key findings

  • The eta-long beta-normal form becomes canonical when terms are coerced into their isomorphic ENF types, resolving the long-standing canonicity problem.
  • The Exp-Log Normal Form (ENF) generalizes disjunctive normal forms to include exponential types, enabling systematic handling of function types.
  • Using evaluation contexts to express the eta rule for sums ensures correct and consistent normalization under isomorphism.
  • Terms that previously required complex program analysis to determine equality now have unique canonical representatives via ENF coercion.
  • The technique provides a purely syntactic, type-based method for canonicalization, avoiding the need for semantic or algorithmic decision procedures.

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.