Mechanisation of Fitch-style Intuitionistic K in Agda
Fitch-style modal lambda calculi provide an elegant approach to programming necessity (or box) modalities by extending typed-lambda calculi with a delimiting context operator (or lock). The addition of locks simplifies the formulation of typing rules for different modalities, but obscures syntactic lemmas involving the context, and makes it difficult to formalise and prove meta-theoretic properties about these calculi.
This repo contains a mechanisation of an intrinsically typed formalisation of the Fitch-style Intuitionistic K (IK) calculus in Agda. The trick here is to identify a suitable inductive notion of weakening and parallel substitution that is amenable to implementation and proofs. These are then used to guide the development of a normalisation-by-evaluation procedure for IK.
Implements an executable normalisation function for IK, and a "tracing" function that prints out a sequence of reduction steps that explain the result of the normalisation function. The latter yields a proof of completness for normalisation, i.e., norm t = norm t' => t ~ t'.
I'd like to prove confluence and decidability for IK (which demand soundness of normalisation), and illustrate applications of normalisation in modal logic, and possibly in partial evaluation. If all this goes well, then I'll probably turn to S4 next.
Thoughts?
- Ranald Clouston. 2018. Fitch-Style Modal Lambda Calculi.
- V.A.J. Borghuis. 1994. Coming to terms with modal logic: on the interpretation of modalities in typed lambda-calculus.