Proofs, Upside Down - A Functional Correspondence between Natural Deduction and the Sequent Calculus

It is well known in proof theory that sequent-calculus proofs differ from natural deduction proofs by "reversing" elimination rules upside down into left introduction rules. It is also well known that to each recursive, functional program corresponds an equivalent iterative, accumulator-passing program, where the accumulator stores the continuation of the iteration, in "reversed" order. Here, we compose these remarks and show that a restriction of the intuitionistic sequent calculus, LJT, is exactly an accumulator-passing version of intuitionistic natural deduction NJ. More precisely, we obtain this correspondence by applying a series of off-the-shelf program transformations la Danvy et al. on a type checker for the bidirectional λ-calculus, and get a type checker for the ${\bar{\lambda }}$ -calculus, the proof term assignment of LJT. This functional correspondence revisits the relationship between natural deduction and the sequent calculus by systematically deriving the rules of the latter from the former, and allows us to derive new sequent calculus rules from the introduction and elimination rules of new logical connectives.

[1]  Anindya Banerjee,et al.  Design and Correctness of Program Transformations Based on Control-Flow Analysis , 2001, TACS.

[2]  José Espírito Santo,et al.  Completing Herbelin's Programme , 2007, TLCA.

[3]  Hugo Herbelin,et al.  A Lambda-Calculus Structure Isomorphic to Gentzen-Style Sequent Calculus Structure , 1994, CSL.

[4]  Gordon D. Plotkin,et al.  Call-by-Name, Call-by-Value and the lambda-Calculus , 1975, Theor. Comput. Sci..

[5]  José Espírito Santo,et al.  Towards a canonical classical natural deduction system , 2010, Ann. Pure Appl. Log..

[6]  Olivier Danvy,et al.  A functional correspondence between evaluators and abstract machines , 2003, PPDP '03.

[7]  Olivier Danvy,et al.  On the equivalence between small-step and big-step abstract machines: a simple application of lightweight fusion , 2007, Inf. Process. Lett..

[8]  Conor McBride,et al.  A Tutorial Implementation of a Dependently Typed Lambda Calculus , 2010, Fundam. Informaticae.

[9]  Frank Pfenning,et al.  A judgmental reconstruction of modal logic , 2001, Mathematical Structures in Computer Science.

[10]  Eugenio Moggi,et al.  Notions of Computation and Monads , 1991, Inf. Comput..

[11]  Frank Pfenning,et al.  A Linear Spine Calculus , 2003, J. Log. Comput..

[12]  Hugo Herbelin Séquents qu'on calcule: de l'interprétation du calcul des séquents comme calcul de lambda-termes et comme calcul de stratégies gagnantes. (Computing with sequents: on the interpretation of sequent calculus as a calculus of lambda-terms and as a calculus of winning strategies) , 1995 .

[13]  Dieter Hutter,et al.  Mechanizing Mathematical Reasoning , 2008 .

[14]  Frank Wolter,et al.  Monodic fragments of first-order temporal logics: 2000-2001 A.D , 2001, LPAR.

[15]  G. Gentzen Untersuchungen über das logische Schließen. I , 1935 .

[16]  Benjamin C. Pierce,et al.  Theoretical Aspects of Computer Software , 2001, Lecture Notes in Computer Science.

[17]  Gérard P. Huet,et al.  The Zipper , 1997, Journal of Functional Programming.

[18]  Chuck Liang,et al.  Focusing and polarization in linear, intuitionistic, and classical logics , 2009, Theor. Comput. Sci..

[19]  Dave Clarke,et al.  A correspondence between type checking via reduction and type checking via evaluation , 2012, Inf. Process. Lett..

[20]  José Espírito Santo,et al.  An Isomorphism between a Fragment of Sequent Calculus and an Extension of Natural Deduction , 2002, LPAR.

[21]  Sam Lindley,et al.  Extensional Rewriting with Sums , 2007, TLCA.

[22]  Saverio Cittadini,et al.  Normal Natural Deduction Proofs (in Non-classical Logics) , 2005, Mechanizing Mathematical Reasoning.

[23]  Philip Wadler,et al.  Deforestation: Transforming Programs to Eliminate Trees , 1988, Theoretical Computer Science.

[24]  Benjamin C. Pierce,et al.  Local type inference , 1998, POPL '98.

[25]  Alex K. Simpson,et al.  Computational Adequacy in an Elementary Topos , 1998, CSL.

[26]  Olivier Danvy,et al.  Defunctionalization at work , 2001, PPDP '01.