Semantic cut elimination for the logic of bunched implications, formalized in Coq

The logic of bunched implications (BI) is a substructural logic that forms the backbone of separation logic, the much studied logic for reasoning about heap-manipulating programs. Although the proof theory and metatheory of BI are mathematically involved, the formalization of important metatheoretical results is still incipient. In this paper we present a self-contained formalized, in the Coq proof assistant, proof of a central metatheoretical property of BI: cut elimination for its sequent calculus. The presented proof is semantic, in the sense that is obtained by interpreting sequents in a particular “universal” model. This results in a more modular and elegant proof than a standard Gentzen-style cut elimination argument, which can be subtle and error-prone in manual proofs for BI. In particular, our semantic approach avoids unnecessary inversions on proof derivations, or the uses of cut reductions and the multi-cut rule. Besides modular, our approach is also robust: we demonstrate how our method scales, with minor modifications, to (i) an extension of BI with an arbitrary set of simple structural rules, and (ii) an extension with an S4-like □ modality.

[1]  C. J. Everett Closure operators and Galois theory in lattices , 1944 .

[2]  Hendrik Tews,et al.  Formalizing Cut Elimination of Coalgebraic Logics in Coq , 2013, TABLEAUX.

[3]  DreyerDerek,et al.  MoSeL: a general, extensible modal framework for interactive proofs in separation logic , 2018 .

[4]  Lutz Straßburger,et al.  Modular Sequent Systems for Modal Logic , 2009, TABLEAUX.

[5]  Rajeev Goré,et al.  Cut-Elimination for Provability Logic by Terminating Proof-Search: Formalised and Deconstructed Using Coq , 2021, TABLEAUX.

[6]  Natasha Alechina,et al.  Categorical and Kripke Semantics for Constructive S4 Modal Logic , 2001, CSL.

[7]  Peter Jipsen,et al.  Algebraic Aspects of Cut Elimination , 2004, Stud Logica.

[8]  Rajeev Goré,et al.  A Formally Verified Cut-Elimination Procedure for Linear Nested Sequents for Tense Logic , 2021, TABLEAUX.

[9]  Mitsuhiro Okada,et al.  A uniform semantic proof for cut-elimination and completeness of various first and higher order logics , 2002, Theor. Comput. Sci..

[10]  Valeria de Paiva,et al.  On an Intuitionistic Modal Logic , 2000, Stud Logica.

[11]  Rajeev Goré,et al.  VALENTINI’S CUT-ELIMINATION FOR PROVABILITY LOGIC RESOLVED , 2012, The Review of Symbolic Logic.

[12]  Kazushige Terui,et al.  From Axioms to Analytic Rules in Nonclassical Logics , 2008, 2008 23rd Annual IEEE Symposium on Logic in Computer Science.

[13]  Sonia Marin,et al.  Focused Proof-search in the Logic of Bunched Implications , 2021, FoSSaCS.

[14]  Silvio Valentini,et al.  The modal logic of provability. The sequential approach , 1982, Journal of Philosophical Logic.

[15]  Peter W. O'Hearn,et al.  The Logic of Bunched Implications , 1999, Bulletin of Symbolic Logic.

[16]  Vivek Nigam,et al.  Mechanizing Focused Linear Logic in Coq , 2017, LSFA.

[17]  Hugo Herbelin,et al.  Forcing-Based Cut-Elimination for Gentzen-Style Intuitionistic Sequent Calculus , 2009, WoLLIC.

[18]  Shengchao Qin,et al.  LBI Cut Elimination Proof with BI-MultiCut , 2012, 2012 Sixth International Symposium on Theoretical Aspects of Software Engineering.

[19]  Andrew W. Appel,et al.  Multimodal Separation Logic for Reasoning About Operational Semantics , 2008, MFPS.

[20]  Frank Pfenning Structural Cut Elimination: I. Intuitionistic and Classical Logic , 2000, Inf. Comput..

[21]  John C. Reynolds,et al.  Separation logic: a logic for shared mutable data structures , 2002, Proceedings 17th Annual IEEE Symposium on Logic in Computer Science.

[22]  Leonardo Lima,et al.  Formalized Meta-Theory of Sequent Calculi for Substructural Logics , 2016, LSFA.

[23]  Martin Hofmann,et al.  Categorical Reconstruction of a Reduction Free Normalization Proof , 1995, Category Theory and Computer Science.

[24]  Peter Jipsen,et al.  Distributive residuated frames and generalized bunched implication algebras , 2017 .

[25]  Lutz Straßburger,et al.  Label-free Modular Systems for Classical and Intuitionistic Modal Logics , 2014, Advances in Modal Logic.

[26]  Joseph Tassarotti,et al.  MoSeL: a general, extensible modal framework for interactive proofs in separation logic , 2018, Proc. ACM Program. Lang..

[27]  P. Jipsen,et al.  Residuated frames with applications to decidability , 2012 .

[28]  Mitsuhiro Okada Phase Semantic Cut-Elimination and Normalization Proofs of First- and Higher-Order Linear Logic , 1999, Theor. Comput. Sci..

[29]  Kosta Dosen,et al.  On permuting cut with contraction , 2000, Math. Struct. Comput. Sci..

[30]  David J. Pym,et al.  The semantics and proof theory of the logic of bunched implications , 2002, Applied logic series.

[31]  Rajeev Goré,et al.  Generic Methods for Formalising Sequent Calculi Applied to Provability Logic , 2010, LPAR.

[32]  Hiroakira Ono,et al.  Cut elimination and strong separation for substructural logics: An algebraic approach , 2010, Ann. Pure Appl. Log..

[33]  Frank Pfenning,et al.  Structural cut elimination , 1995, Proceedings of Tenth Annual IEEE Symposium on Logic in Computer Science.

[34]  Luís Pinto,et al.  Proof Search and Counter-Model Construction for Bi-intuitionistic Propositional Logic with Labelled Sequents , 2009, TABLEAUX.

[35]  Dominique Larchey-Wendling Constructive Decision via Redundancy-Free Proof-Search , 2020, Journal of Automated Reasoning.

[36]  James Brotherston,et al.  Bunched Logics Displayed , 2012, Studia Logica.

[37]  Valeria de Paiva,et al.  Cut-Elimination for Full Intuitionistic Linear Logic , 1996 .

[38]  Gavin M. Bierman,et al.  A Note on Full Intuitionistic Linear Logic , 1996, Ann. Pure Appl. Log..

[39]  Dirk Pattinson,et al.  Cut elimination in coalgebraic logics , 2010, Inf. Comput..

[40]  Tadeusz Litak,et al.  An Algebraic Glimpse at Bunched Implications and Separation Logic , 2017, Outstanding Contributions to Logic.

[41]  Nottingham Ng,et al.  Categorical and Kripke Semantics for Constructive S4 , 2001 .

[42]  Lars Birkedal,et al.  On Models of Higher-Order Separation Logic , 2018, MFPS.

[43]  Peter W. O'Hearn,et al.  Possible worlds and resources: the semantics of BI , 2004, Theor. Comput. Sci..

[44]  Peter W. O'Hearn,et al.  Separation logic , 2019, Commun. ACM.