A Linear-Logical Reconstruction of Intuitionistic Modal Logic S4

Total Page:16

File Type:pdf, Size:1020Kb

A Linear-Logical Reconstruction of Intuitionistic Modal Logic S4 A Linear-logical Reconstruction of Intuitionistic Modal Logic S4 Yosuke Fukuda Graduate School of Informatics, Kyoto University, Japan http://www.fos.kuis.kyoto-u.ac.jp/~yfukuda [email protected] Akira Yoshimizu French Institute for Research in Computer Science and Automation (INRIA), France http://www.cs.unibo.it/~akira.yoshimizu [email protected] Abstract We propose a modal linear logic to reformulate intuitionistic modal logic S4 (IS4) in terms of linear logic, establishing an S4-version of Girard translation from IS4 to it. While the Girard translation from intuitionistic logic to linear logic is well-known, its extension to modal logic is non-trivial since a naive combination of the S4 modality and the exponential modality causes an undesirable interaction between the two modalities. To solve the problem, we introduce an extension of intuitionistic multiplicative exponential linear logic with a modality combining the S4 modality and the exponential modality, and show that it admits a sound translation from IS4. Through the Curry–Howard correspondence we further obtain a Geometry of Interaction Machine semantics of the modal λ-calculus by Pfenning and Davies for staged computation. 2012 ACM Subject Classification Theory of computation → Linear logic; Modal and temporal logics; Proof theory; Type theory Keywords and phrases Linear logic, Modal logic, Girard translation, Curry–Howard correspondence, Geometry of Interaction, Staged computation Acknowledgements The authors thank Kazushige Terui for his helpful comments on our work and pointing out related work on multicolored linear logic, and Atsushi Igarashi for his helpful comments on earlier drafts. Special thanks are also due to anonymous reviewers of FSCD 2019 for their fruitful comments. This work was supported by the Research Institute for Mathematical Sciences, an International Joint Usage/Research Center located in Kyoto University. 1 Introduction Linear logic discovered by Girard [7] is, as he wrote, not an alternative logic but should be regarded as an “extension” of usual logics. Whereas usual logics such as classical logic and intuitionistic logic admit the structural rules of weakening and contraction, linear logic does not allow to use the rules freely, but it reintroduces them in a controlled manner by using arXiv:1904.10605v1 [cs.LO] 24 Apr 2019 the exponential modality ‘!’ (and its dual ‘?’). Usual logics are then reconstructed in terms of linear logic with the power of the exponential modalities, via the Girard translation. In this paper, we aim to extend the framework of linear-logical reconstruction to the (, ⊃)-fragment of intuitionistic modal logic S4 (IS4) by establishing what we call “modal linear logic” and an S4-version of Girard translation from IS4 into it. However, the crux to give a faithful translation is that a naive combination of the -modality and the !-modality causes an undesirable interaction between the inference rules of the two modalities. To solve the problem, we define the modal linear logic as an extension of intuitionistic multiplicative exponential linear logic with a modality ‘! ’ (pronounced by “bangbox”) that integrates ‘’ and ‘!’, and show that it admits a faithful translation from IS4. 2 A Linear-logical Reconstruction of Intuitionistic Modal Logic S4 Syntactic category Inference rule 0 Γ ` A Γ , A ` B !Γ ` A Formulae A, B, C ::= p | A B | !A Ax Cut !R ( A ` A Γ, Γ0 ` B !Γ ` !A Γ, A ` B Γ ` A Γ0, B ` C Γ, A ` B Γ ` B Γ, !A, !A ` B !W (R 0 (L !L Γ, !A ` B !C Γ ` A ( B Γ, Γ , A ( B ` C Γ, !A ` B Γ, !A ` B Figure 1 Definition of IMELL. dAe def def dΓe def dpe = p, dA ⊃ Be = (!dAe) ( dBe dΓe = {dAe | A ∈ Γ} Figure 2 Definition of the Girard translation from intuitionistic logic. As an application, we consider a computational interpretation of the modal linear logic. A typed λ-calculus that we will define corresponds to a natural deduction for the modal linear logic through the Curry–Howard correspondence, and it can be seen as a reconstruction of the modal λ-calculus by Pfenning and Davies [18, 5] for the so-called staged computation. Thanks to our linear-logical reconstruction, we can further obtain a Geometry of Interaction Machine (GoIM) for the modal λ-calculus. The remainder of this paper is organized as follows. In Section 2 we review some formalizations of linear logic and IS4. In Section 3 we explain a linear-logical reconstruction of IS4. First, we discuss how a naive combination of linear logic and modal logic fails to obtain a faithful translation. Then, we propose a modal linear logic with the ! -modality that admits a faithful translation from IS4. In Section 4 we give a computational interpretation of modal linear logic through a typed λ-calculus. In Section 5 we provide an axiomatization of modal linear logic by a Hilbert-style deductive system. In Section 6 we obtain a GoIM of our typed λ-calculus as an application of our linear-logical reconstruction. In Sections 7 and 8 we discuss related work and conclude our work, respectively. 2 Preliminaries We recall several systems of linear logic and modal logic. In this paper, we consider the minimal setting to give an S4-version of Girard translation and its computational interpretation. Thus, every system we will use only contain an implication and a modality as operators. 2.1 Intuitionistic MELL and its Girard translation Figure 1 shows the standard definition of the (!, ()-fragment of intuitionistic multiplicative exponential linear logic, which we refer to as IMELL. A formula is either a propositional variable, a linear implication, or an exponential modality. We let p range over the set of propositional variables, and A, B, C range over formulae. A context Γ is defined to be a multiset of formulae, and hence the exchange rule is assumed as a meta-level operation. A judgment consists of a context and a formula, written as Γ ` A. As a convention, we often write Γ ` A to mean that the judgment is derivable (and we assume similar conventions throughout this paper). The notation !Γ in the rule !R denotes the multiset {!A | A ∈ Γ}. Figure 2 defines the Girard translation1 from the ⊃-fragment of intuitionistic propositional 1 This is known to be the call-by-name Girard translation (cf. [12]) and we only follow this version in later discussions. However, we conjectured that our work can apply to other versions. Y. Fukuda and A. Yoshimizu 3 Syntactic category Inference rule Γ ` A Γ0, A ` B Ax Γ ` A Formulae A, B, C ::= p | A ⊃ B | A 0 Cut R A ` A Γ, Γ ` B Γ ` A Γ, A ` B Γ ` A Γ0, B ` C Γ, A ` B Γ ` B Γ, A, A ` B W ⊃R 0 ⊃L L C Γ ` A ⊃ B Γ, Γ , A ⊃ B ` C Γ, A ` B Γ, A ` B Γ, A ` B Figure 3 Definition of LJ. Syntactic category Reduction rule Types A, B, C ::= p | A ⊃ B | A (β ⊃)(λx : A.M) N M[x := N ] Terms M, N, L ::= x | λx : A.M | MN (β) let x = N in M M[x := N ] | M | let x = M in N Typing rule Ax Ax ∆; Γ, x : A ` x : A ∆, x : A;Γ ` x : A ∆; Γ, x : A ` M : B ∆; Γ ` M : A ⊃ B ∆; Γ ` N : A ⊃I ⊃E ∆; Γ ` (λx : A.M): A ⊃ B ∆; Γ ` MN : B ∆; ∅ ` M : A ∆; Γ ` M : A ∆, x : A;Γ ` N : B I E ∆; Γ ` M : A ∆; Γ ` let x = M in N : B Figure 4 Definition of λ. logic IL. For an IL-formula A, dAe will be an IMELL-formula; and dΓe a multiset of IMELL- formulae. Then, we can show that the Girard translation from IL to IMELL is sound. I Theorem 1 (Soudness of the translation). If Γ ` A in IL, then !dΓe ` dAe in IMELL. 2.2 Intuitionistic S4 We review a formalization of the (, ⊃)-fragment of intuitionistic propositional modal logic S4 (IS4). In what follows, we use a sequent calculus for the logic, called LJ. The calculus LJ used here is defined in a standard manner in the literature (e.g. it can be seen as the IS4-fragment of G1s for classical modal logic S4 by Troelstra and Schwichtenberg [23]). Figure 3 shows the definition of LJ. A formula is either a propositional variable, an intuitionistic implication, or a box modality. A context and a judgment are defined similarly in IMELL. The notation Γ in the rule R denotes the multiset {A | A ∈ Γ}. I Remark 2. It is worth noting that the !-exponential in IMELL and the -modality in LJ have similar structures. To see this, let us imagine the rules R and L replacing the symbol ‘’ with ‘!’. The results will be exactly the same as !R and !L. In fact, the !-exponential satisfies the S4 axiomata in IMELL, which is the reason we also call it as a modality. 2.3 Typed λ-calculus of the intuitionistic S4 We review the modal λ-calculus developed by Pfenning and Davies [18, 5], which we call → λ . The system λ is essentially the same calculus as λe in [5], although some syntax are changed to fit our notation in this paper. λ is known to correspond to a natural deduction system for IS4, as is shown in [18]. Figure 4 shows the definition of λ. The set of types corresponds to that of formulae of IS4. We let x range over the set of term variables, and M, N, L range over the set of terms. The first three terms are as in the simply-typed λ-calculus. The terms M and let x = M in N 4 A Linear-logical Reconstruction of Intuitionistic Modal Logic S4 is used to represent a constructor and a destructor for types A, respectively.
Recommended publications
  • Category Theory and Lambda Calculus
    Category Theory and Lambda Calculus Mario Román García Trabajo Fin de Grado Doble Grado en Ingeniería Informática y Matemáticas Tutores Pedro A. García-Sánchez Manuel Bullejos Lorenzo Facultad de Ciencias E.T.S. Ingenierías Informática y de Telecomunicación Granada, a 18 de junio de 2018 Contents 1 Lambda calculus 13 1.1 Untyped λ-calculus . 13 1.1.1 Untyped λ-calculus . 14 1.1.2 Free and bound variables, substitution . 14 1.1.3 Alpha equivalence . 16 1.1.4 Beta reduction . 16 1.1.5 Eta reduction . 17 1.1.6 Confluence . 17 1.1.7 The Church-Rosser theorem . 18 1.1.8 Normalization . 20 1.1.9 Standardization and evaluation strategies . 21 1.1.10 SKI combinators . 22 1.1.11 Turing completeness . 24 1.2 Simply typed λ-calculus . 24 1.2.1 Simple types . 25 1.2.2 Typing rules for simply typed λ-calculus . 25 1.2.3 Curry-style types . 26 1.2.4 Unification and type inference . 27 1.2.5 Subject reduction and normalization . 29 1.3 The Curry-Howard correspondence . 31 1.3.1 Extending the simply typed λ-calculus . 31 1.3.2 Natural deduction . 32 1.3.3 Propositions as types . 34 1.4 Other type systems . 35 1.4.1 λ-cube..................................... 35 2 Mikrokosmos 38 2.1 Implementation of λ-expressions . 38 2.1.1 The Haskell programming language . 38 2.1.2 De Bruijn indexes . 40 2.1.3 Substitution . 41 2.1.4 De Bruijn-terms and λ-terms . 42 2.1.5 Evaluation .
    [Show full text]
  • A Concurrent Logical Framework I: Judgments and Properties
    A concurrent logical framework I: Judgments and properties Kevin Watkins Iliano Cervesato Frank Pfenning David Walker March 2002, revised May 2003 CMU-CS-02-101 School of Computer Science Carnegie Mellon University Pittsburgh, PA 15213 This research was sponsored in part by the National Science Foundation under the title “Meta-Logical Frameworks,” grants CCR-9619584 and CCR-9988281; and in part by NRL under grant N00173-00-C- 2086. Iliano Cervesato was partially supported by NRL under contract N00173-00-C-2086 and by NSF grant INT98-15731. David Walker was partially supported by the Office of Naval Research under the title “Efficient Logics for Network Security,” grant N00014-01-1-0432; by DARPA under the title “Scaling Proof- Carrying Code to Production Compilers and Security Policies,” Contract No. F30603-99-1-0519; and by Microsoft Research. A part of this work was completed while David Walker was a post-doctoral fellow at Carnegie Mellon University. Abstract The Concurrent Logical Framework, or CLF, is a new logical framework in which concurrent computations can be represented as monadic objects, for which there is an intrinsic notion of concurrency. It is designed as a conservative extension of the linear logical framework LLF with the synchronous connectives ⊗,1,!,and∃of intuitionistic linear logic, encapsulated in a monad. LLF is itself a conservative extension of LF with the asynchronous connectives −◦ ,&and>. The present report, the first of two technical reports describing CLF, presents the frame- work itself and its meta-theory. A novel, algorithmic formulation of the underlying type theory concentrating on canonical forms leads to a simple notion of definitional equality for concurrent computations in which the order of independent steps cannot be distinguished.
    [Show full text]
  • Lecture 3: Typed Lambda Calculus and Curry-Howard
    Lecture 3: Typed Lambda Calculus and Curry-Howard H. Geuvers Radboud University Nijmegen, NL 21st Estonian Winter School in Computer Science Winter 2016 H. Geuvers - Radboud Univ. EWSCS 2016 Typed λ-calculus 1 / 65 Outline H. Geuvers - Radboud Univ. EWSCS 2016 Typed λ-calculus 2 / 65 Typed λ calculus as a basis for logic λ-term : type M:A program : data type proof : formula program : (full) specification Aim: • Type Theory as an integrated system for proving and programming. • Type Theory as a basis for proof assistants and interactive theorem proving. H. Geuvers - Radboud Univ. EWSCS 2016 Typed λ-calculus 3 / 65 Simple type theory Simplest system: λ! or simple type theory, STT. Just arrow types Typ := TVar j (Typ ! Typ) • Examples: (α ! β) ! α,(α ! β) ! ((β ! γ) ! (α ! γ)) • Brackets associate to the right and outside brackets are omitted: (α ! β) ! (β ! γ) ! α ! γ • Types are denoted by A; B;:::. H. Geuvers - Radboud Univ. EWSCS 2016 Typed λ-calculus 4 / 65 Simple type theory `ala Church Formulation with contexts to declare the free variables: x1 : A1; x2 : A2;:::; xn : An is a context, usually denoted byΓ. Derivation rules of λ! (`ala Church): x:A 2 Γ Γ ` M : A ! B Γ ` N : A Γ; x:A ` P : B Γ ` x : A Γ ` MN : B Γ ` λx:A:P : A ! B Γ `λ! M : A if there is a derivation using these rules with conclusion Γ ` M : A H. Geuvers - Radboud Univ. EWSCS 2016 Typed λ-calculus 5 / 65 Examples ` λx : A.λy : B:x : A ! B ! A ` λx : A ! B.λy : B ! C.λz : A:y (x z):(A!B)!(B!C)!A!C ` λx : A.λy :(B ! A) ! A:y(λz : B:x): A ! ((B ! A) ! A) ! A Not for every type there is a closed term of that type: (A ! A) ! A is not inhabited That is: there is no term M such that ` M :(A ! A) ! A: H.
    [Show full text]
  • A Practical Module System for LF *
    A Practical Module System for LF ? Florian Rabe1 and Carsten Sch¨urmann2 1 Jacobs University [email protected] 2 IT University of Copenhagen [email protected] Abstract. Module Systems for proof assistants provide administrative support for large developments when mechanizing the meta-theory of programming languages and logics. In this paper we describe a module system for the logical framework LF. It is based on two main primitives: signatures and signature morphisms, which provide a semantically transparent module level and permit to represent logic translations as homomorphisms. Modular LF is a conser- vative extension over LF, and integrates an elaboration of modular into core LF signatures. We have implemented our design in the Twelf system and used it to modularize large parts of the Twelf example library. 1 Introduction The Twelf system [PS99] is a popular tool for reasoning about the design and properties of modern programming languages and logics. It has been used, for example, for verifying the soundness of typed assembly language [Cra03] and Standard ML [LCH07], for checking cut-elimination proofs for intuitionistic and classical logic [Pfe95], and for specifying and validating logic morphisms, for example, between HOL and Nuprl [SS06]. Twelf, however, supports only mono- lithic proof developments and does neither offer any support for modular proof engineering, composing logic morphisms, code reuse, nor name space manage- ment. In this paper we develop a simple yet powerful module system for pure type systems in general, and therefore for the logical framework LF [HHP93] in particular. If one subscribes to the judgement-as-types methodology (as we do in the Twelf community), the defining features of a logical framework, such as its equa- tional theory, determine usually the application areas it excels in.
    [Show full text]
  • Arxiv:1910.10703V3 [Cs.LO] 30 Mar 2020 Stesfwr Htcek T O a Ebosrptuti O in Trust Bootstrap System We a Can Such How in It
    Metamath Zero: The Cartesian Theorem Prover Mario Carneiro[0000−0002−0470−5249] Carnegie Mellon University, Pittsburgh PA [email protected] Abstract. As the usage of theorem prover technology expands, so too does the reliance on correctness of the tools. Metamath Zero is a ver- ification system that aims for simplicity of logic and implementation, without compromising on efficiency of verification. It is formally speci- fied in its own language, and supports a number of translations to and from other proof languages. This paper describes the abstract logic of Metamath Zero, essentially a multi-sorted first order logic, as well as the binary proof format and the way in which it can ensure essentially linear time verification while still being concise and efficient at scale. Metamath Zero currently holds the record for fastest verification of the set.mm Metamath library of proofs in ZFC (including 71 of Wiedijk’s 100 formalization targets), at less than 200 ms. Ultimately, we intend to use it to verify the correctness of the implementation of the verifier down to binary executable, so it can be used as a root of trust for more complex proof systems. Keywords: Metamath Zero, mathematics, formal proof, verification, metamathematics 1 Introduction The idea of using computers to check mathematical statements has been around almost as long as computers themselves, but the scope of formalizations have grown in recent times, both in pure mathematics and software verification, and it now seems that there is nothing that is really beyond our reach if we aim for it. But at the same time, software faces a crisis of correctness, where more powerful systems lead to more reliance on computers and higher stakes for failure.
    [Show full text]
  • Curry-Howard Isomorphism
    Lectures on the Curry-Howard Isomorphism Morten Heine B. Srensen University of Copenhagen Pawel Urzyczyn University of Warsaw Preface The Curry-Howard isomorphism states an amazing correspondence between systems of formal logic as encountered in proof theory and computational calculi as found in type theory. For instance, minimal propositional logic corresponds to simply typed -calculus, rst-order logic corresponds to de- pendent types, second-order logic corresponds to polymorphic types, etc. The isomorphism has many aspects, even at the syntactic level: formulas correspond to types, proofs correspond to terms, provability corresponds to inhabitation, proof normalization corresponds to term reduction, etc. But there is much more to the isomorphism than this. For instance, it is an old idea—due to Brouwer, Kolmogorov, and Heyting, and later formalized by Kleene’s realizability interpretation—that a constructive proof of an implication is a procedure that transforms proofs of the antecedent into proofs of the succedent; the Curry-Howard isomorphism gives syntactic representations of such procedures. These notes give an introduction to parts of proof theory and related aspects of type theory relevant for the Curry-Howard isomorphism. Outline Since most calculi found in type theory build on -calculus, the notes be- gin, in Chapter 1, with an introduction to type-free -calculus. The intro- duction derives the most rudimentary properties of -reduction including the Church-Rosser theorem. It also presents Kleene’s theorem stating that all recursive functions are -denable and Church’s theorem stating that -equality is undecidable. As explained above, an important part of the Curry-Howard isomor- phism is the idea that a constructive proof of an implication is a certain procedure.
    [Show full text]
  • Logic-Independent Proof Search in Logical Frameworks (Extended Report)
    Logic-Independent Proof Search in Logical Frameworks (extended report) Michael Kohlhase1, Florian Rabe1, Claudio Sacerdoti Coen2, and Jan Frederik Schaefer1 1 Computer Science, FAU Erlangen-N¨urnberg 2 Department of Computer Science and Engineering, Universit`adi Bologna Abstract. An important question in research on logical framework is whether they can induce a logic-independent automated theorem prover. While many theorem proving innovations can indeed be generalized to large classes of logics, practically competitive provers usually require logic-specific optimizations. To investigate this question more deeply, we build a suite of modular logic definitions in a logical framework and generate Prolog-based the- orem provers for them. We focus on generality and avoid taking logic- specific knowledge into account. Our generated provers support natural deduction proof search, including backchaining, as well as tableau provers and model generators. Even though these efforts have only just started, we are already able to use the latter in a system for natural language understanding that combines grammatical with semantic processing. 1 Introduction and Related Work Logical frameworks like LF [HHP93] and λProlog [Mil] enable prototyping and analyzing logical systems, using high-level declarative logic definitions based on higher-order abstract syntax. Building theorem provers automatically from declarative logic definitions has been a long-standing research goal. But cur- rently, logical framework-induced fully logic-independent proof support is gen- erally limited to proof checking and simple search. Competitive proof support, on the other hand, is either highly optimized for very specific logics, most im- portantly untyped first-order logic, or obtained by defining logics as DSLs inside interactive proof assistants like Isabelle [Pau94].
    [Show full text]
  • A Concurrent Logical Framework: the Propositional Fragment
    A Concurrent Logical Framework: The Propositional Fragment Kevin Watkins1, Iliano Cervesato2, Frank Pfenning1, and David Walker3 1 kw,[email protected], Department of Computer Science, Carnegie Mellon University 2 [email protected], ITT Industries, AES Division 3 [email protected], Department of Computer Science, Princeton University Abstract. We present the propositional fragment CLF0 of the Concurrent Logical Framework (CLF). CLF extends the Linear Logical Framework to allow the natural representation of concurrent computations in an object language. The underlying type theory uses monadic types to segregate values from computations. This separation leads to a tractable notion of definitional equality that identifies computations differing only in the order of execution of independent steps. From a logical point of view our type theory can be seen as a novel combination of lax logic and dual intuitionistic linear logic. An encoding of a small Petri net exemplifies the representation methodology, which can be summarized as “concurrent computations as monadic expressions”. 1 Introduction A logical framework is a meta-language for deductive systems. It is usually defined as a formal meta-logic or type theory together with a representation methodology. A single implementation of a logical framework can then be used to study a va- riety of deductive systems, thereby factoring the effort that would be required to implement each deductive system separately. Applications of logical frameworks lie mostly in logic and programming languages, where deductive systems have be- come a common conceptual tool and presentation device. Examples are rules of logical inference, typing rules, and rules specifying the operational semantics of a programming language.
    [Show full text]
  • Semantics of Mizar As an Isabelle Object Logic
    Journal of Automated Reasoning https://doi.org/10.1007/s10817-018-9479-z Semantics of Mizar as an Isabelle Object Logic Cezary Kaliszyk1 · Karol P˛ak2 Received: 5 January 2018 / Accepted: 11 August 2018 © The Author(s) 2018 Abstract We formally define the foundations of the Mizar system as an object logic in the Isabelle logical framework. For this, we propose adequate mechanisms to represent the various components of Mizar. We express Mizar types in a uniform way, provide a common type intersection operation, allow reasoning about type inhabitation, and develop a type inference mechanism. We provide Mizar-like definition mechanisms which require the same proof obligations and provide same derived properties. Structures and set comprehension opera- tors can be defined as definitional extensions. Re-formalized proofs from various parts of the Mizar Library show the practical usability of the specified foundations. 1 Introduction Mizar [8] is one of the longest-lived proof assistants today. Its set theoretic foundations [27] together with an intuitive soft type system make the system attractive for mathematicians [68] and its formal library—the Mizar Mathematical Library (MML) [7]—became one of the largest libraries of formalized mathematics today. It includes many results absent from those derived in other systems, such as lattices [9], topological manifolds [63], and random-access Turing machines [42]. The unique features of the system include: – A soft type system which allows for dependent types and intersection types, – Declarative proofs in Ja´skowski-style natural deduction [33], – Convenient structure types with (multiple) inheritance, – A term language that allows for disambiguation based on types, in some cases allowing hundreds of meanings of a single symbol, – Proof checking corresponding to the research on the notion of “obviousness” of a single proof step, without the need to explicitly reference proof procedures or tactics.
    [Show full text]
  • Representing Model Theory in a Type-Theoretical Logical Framework Fulya Horozal, Florian Rabe ∗ Jacobs University Bremen, Germany Article Info a B S T R a C T
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Theoretical Computer Science 412 (2011) 4919–4945 Contents lists available at ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs Representing model theory in a type-theoretical logical framework Fulya Horozal, Florian Rabe ∗ Jacobs University Bremen, Germany article info a b s t r a c t Keywords: In a broad sense, logic is the field of formal languages for knowledge and truth that have a Logical framework formal semantics. It tends to be difficult to give a narrower definition because very different Model theory kinds of logics exist. One of the most fundamental contrasts is between the different Proof theory First-order logic methods of assigning semantics. Here two classes can be distinguished: model theoretical Module system semantics based on a foundation of mathematics such as set theory, and proof theoretical semantics based on an inference system possibly formulated within a type theory. Logical frameworks have been developed to cope with the variety of available logics unifying the underlying ontological notions and providing a meta-theory to reason abstractly about logics. While these have been very successful, they have so far focused on either model or proof theoretical semantics. We contribute to a unified framework by showing how the type/proof theoretical Edinburgh Logical Framework (LF) can be applied to the representation of model theoretical logics. We give a comprehensive formal representation of first-order logic, covering both its proof and its model theoretical semantics as well as its soundness in LF.
    [Show full text]
  • A Type Theory for Defining Logics and Proofs
    A Type Theory for Defining Logics and Proofs Brigitte Pientka David Thibodeau Andreas Abel Francisco Ferreira Rebecca Zucchini School of Computer Science Dept. of Computer Science and Eng. Dept. of Computing ENS Paris Saclay McGill University Gothenburg University Imperial College London Abstract—We describe a Martin-Lof-style¨ dependent type this view, intensional LF-style functions represent syntactic theory, called COCON, that allows us to mix the intensional binding structures and functions are transparent. However, function space that is used to represent higher-order abstract we cannot write recursive programs about such syntactic syntax (HOAS) trees with the extensional function space that describes (recursive) computations. We mediate between HOAS structures within LF, as we lack the power of recursion. representations and computations using contextual modal types. In contrast, (recursive) computation relies on the extensional Our type theory also supports an infinite hierarchy of universes type-theoretic function space. Under this view, functions are and hence supports type-level computation thereby providing opaque and programmers cannot compare two functions for metaprogramming and (small-scale) reflection. Our main con- equality nor can they use pattern matching on functions to tribution is the development of a Kripke-style model for COCON that allows us to prove normalization. From the normalization inspect their bodies. Functions are treated as a black box. proof, we derive subject reduction and consistency. Our work lays To understand the fundamental difference between defining the foundation to incorporate the methodology of logical frame- HOAS trees in LF vs. defining HOAS-style trees using in- works into systems such as Agda and bridges the longstanding ductive types, let us consider an inductive type D with one gap between these two worlds.
    [Show full text]
  • A Framework for Defining Logical Frameworks Luigi Liquori, Furio Honsell, Marina Lenisa
    A Framework for Defining Logical Frameworks Luigi Liquori, Furio Honsell, Marina Lenisa To cite this version: Luigi Liquori, Furio Honsell, Marina Lenisa. A Framework for Defining Logical Frameworks. [Research Report] RR-5963, INRIA. 2006, pp.56. inria-00088809v2 HAL Id: inria-00088809 https://hal.inria.fr/inria-00088809v2 Submitted on 7 Aug 2006 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. INSTITUT NATIONAL DE RECHERCHE EN INFORMATIQUE ET EN AUTOMATIQUE A Framework for Defining Logical Frameworks Furio Honsell — Marina Lenisa — Luigi Liquori N° 5963 August 2006 Thème SYM apport de recherche INRIA/RR--5963--FR+ENG ISRN 0249-6399 ISSN A Framework for Defining Logical Frameworks Furio Honsell ∗ y , Marina Lenisa ∗ y , Luigi Liquori z y Thème SYM — Systèmes symboliques Projets Mascotte et Protheo Rapport de recherche n° 5963 — August 2006 — 54 pages Abstract: In this paper, we introduce a General Logical Framework, called GLF, for defin- ing Logical Frameworks, based on dependent types, in the style of the well known Edinburgh Logical Framework LF. The framework GLF features a generalized form of lambda abstrac- tion where β-reductions fire provided the argument satisfies a logical predicate and may produce an n-ary substitution.
    [Show full text]