Normalization by Evaluation for Call-by-Push-Value and Polarized Lambda-Calculus

Andreas Abel, Christian Sattler
2/16/2019
cs.PLcs.LOmath.LO

Official code: andreasabel/ipl (23 stars, TeX, Unlicense, last commit 2026-10-22).

Abstract

We observe that normalization by evaluation for simply-typed lambda-calculus with weak coproducts can be carried out in a weak bi-cartesian closed category of presheaves equipped with a monad that allows us to perform case distinction on neutral terms of sum type. The placement of the monad influences the normal forms we obtain: for instance, placing the monad on coproducts gives us eta-long beta-pi normal forms where pi refers to permutation of case distinctions out of elimination positions.

Show full abstract

We further observe that placing the monad on every coproduct is rather wasteful, and an optimal placement of the monad can be determined by considering polarized simple types inspired by focalization. Polarization classifies types into positive and negative, and it is sufficient to place the monad at the embedding of positive types into negative ones. We consider two calculi based on polarized types: pure call-by-push-value (CBPV) and polarized lambda-calculus, the natural deduction calculus corresponding to focalized sequent calculus. For these two calculi, we present algorithms for normalization by evaluation. We further discuss different implementations of the monad and their relation to existing normalization proofs for lambda-calculus with sums. Our developments have been partially formalized in the Agda proof assistant.

View on arXivView PDF

Code Implementations(1)

andreasabel/iplOfficial100%
Unlicense

Agda formalization of Intuitionistic Propositional Logic

232TeX, AgdaMay 16, 20181 months agoUnlicense

Similar Papers

Cite this paper

@article{abel2019normalization,
  title  = {Normalization by Evaluation for Call-by-Push-Value and Polarized Lambda-Calculus},
  author = {Andreas Abel and Christian Sattler},
  year   = {2019},
  eprint = {1902.06097},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.06097}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1902.06097.svg)](https://codeofpaper.com/paper/1902.06097)

Discussion