A Categorical Normalization Proof for the Modal Lambda-Calculus

11/22/2022
by   Jason Z. S. Hu, et al.
0

We investigate a simply typed modal λ-calculus, λ^→□, due to Pfenning, Wong and Davies, where we define a well-typed term with respect to a context stack that captures the possible world semantics in a syntactic way. It provides logical foundation for multi-staged meta-programming. Our main contribution in this paper is a normalization by evaluation (NbE) algorithm for λ^→□ which we prove sound and complete. The NbE algorithm is a moderate extension to the standard presheaf model of simply typed λ-calculus. However, central to the model construction and the NbE algorithm is the observation of Kripke-style substitutions on context stacks which brings together two previously separate concepts, structural modal transformations on context stacks and substitutions for individual assumptions. Moreover, Kripke-style substitutions allow us to give a formulation for contextual types, which can represent open code in a meta-programming setting. Our work lays the foundation for extending the logical foundation by Pfenning, Wong, and Davies towards building a practical, dependently typed foundation for meta-programming.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/26/2022

Normalization for Fitch-Style Modal Calculi

Fitch-style modal lambda calculi enable programming with necessity modal...
research
11/15/2021

Moebius: Metaprogramming using Contextual Types – The stage where System F can pattern match on itself (Long Version)

We describe the foundation of the metaprogramming language, Moebius, whi...
research
01/28/2018

Polymorphic Context for Contextual Modality

Through the Curry-Howard isomorphism between logics and calculi, necessi...
research
05/07/2019

A Type Theory for Defining Logics and Proofs

We describe a Martin-Löf-style dependent type theory, called Cocon, that...
research
01/10/2019

Cocon: Computation in Contextual Type Theory

We describe a Martin-Löf style dependent type theory, called Cocon, that...
research
09/26/2022

Focusing on Liquid Refinement Typing

We present a foundation systematizing, in a way that works for any evalu...
research
07/18/2022

Semantic Analysis of Normalisation by Evaluation for Typed Lambda Calculus

This paper studies normalisation by evaluation for typed lambda calculus...

Please sign up or login with your details

Forgot password? Click here to reset