The Theory of Interacting Deductions and Its Application to Operational Semantics

Total Page:16

File Type:pdf, Size:1020Kb

The Theory of Interacting Deductions and Its Application to Operational Semantics The Theory of Interacting Deductions and its Application to Operational Semantics Andrew Wilson Doctor of Philosophy University of Edinburgh 1996 Ti In memory of my father who died after a courageous struggle with a long illness, and to my mother who struggled with him. You taught me faith, hope, love and perseverence, thank you. 11 Not a single truth has ever been discovered without people first talking utter rot a hundred times or perhaps a hundred thousand times. - Razumikhin, in Dostoyevsky's "Crime and Punishment". 111 Abstract This thesis concerns the problem of complexity in operational semantics def- initions. The appeal of modern operational semantics is the simplicity of their metatheories, which can be regarded as theories of deduction about certain shapes of operational judgments. However, when applied to real programming languages they produce bulky definitions that are cumbersome to reason about. The the- ory of interacting deductions is a richer metatheory which simplifies operational judgments and admits new proof techniques. An interacting deduction is a pair (F, I), where F is a forest of inference trees and I is a set of interaction links (a symmetric set of pairs of formula occurrences of F), which has been built from interacting inference rules (sequences of standard inference rules, or rule atoms). This setting allows one to decompose operational judgments. For instance, for a simple imperative language, one rule atom might concern a program transition, and another a store transition. Program judgments only interact with store judgments when necessary: so stores do not have to be propagated by every inference rule. A deduction in such a semantics would have two inference trees: one for programs and one for stores. This introduces a natural notion of modularity in proofs about semantics The proof fragmentation theorem shows that one need only consider the rule atoms relevant to the property being proved. To illustrate, I give the semantics for a simple process calculus, compare it with standard semantics and prove three simple properties: nondivergence, store correctness and an equivalence between the two semantics. Typically evaluation semantics provide simpler definitions and proofs than transition semantics. However, it turns out that evaluation semantics cannot be easily expressed using interacting deductions: they require a notion of sequential- ity. The sequential deductions contain this extra structure. I compare the utility lv of evaluation and transition semantics in the interacting case by proving a simple translation correctness example. This proof in turn depends on proof-theoretic concerns which can be abstracted using dangling interactions. This gives rise to the techniques of breaking and assembling interaction links. Again I get the proof fragmentation theorem, and also the proof assembly theorem, which allow respec- tively both the isolation and composition of modules in proofs about semantics. For illustration, I prove a simple type-checking result (in evaluation semantics) and another nondivergence result (in transition semantics). I apply these results to a bigger language, CSP, to show how the results scale up. Introducing a special scoping side-condition permits a number of linguistic extensions including nested parallelism, mutual exclusion, dynamic process cre- ation and recursive procedures. Then, as an experiment I apply the theory of interacting deductions to present and prove sound a compositional proof system for the partial correctness of CSP programs. Finally, I show that a deduction corresponds to CCS-like process evaluation, justifying philosophically my use of the theory to give operational semantics. A simple corollary is the undecidability of interacting-deducibility. Practically, the result also indicates how one can build prototype interpreters for definitions. V Acknowledgments First and foremost, a big thank you to my supervisor Kevin Mitchell for his painstaking help and advice. Thanks are also due to Gordon Plotkin, Bob Tennant, Robin Milner and Cohn Stirling who have variously belonged to my supervision committee, and given helpful suggestions. Thanks are also due to my officemates Pietro Cenciarelli and Alex Simpson, and to my flatmate Julyan Elbro for their friendship and their comments on early drafts. Thanks also to Saif, Pietro and Alex for making my office days very pleasant, and similarly to Dave Aspinall and all my friends in the LFCS. Thanks to the Science and Engineering Research Council (now EPSRC) for funding the first three years of my thesis. Thanks also to my mum and the Department of Computer Science which allowed me to scrape a living teaching after the three years had expired. Finally, I could not have survived a project of this magnitude without the support and care of my family and my friends, of which I have too many to acknowledge by name individually. You know who you are. But especial thanks to my closest friends, Andrew, Douglas and David, and to my flatmates Dave, Julyan, Doug and Dan who put up with the bad times. Thanks also to the members of Mayfield- Salisbury church, and especially the three families who over the years all but adopted me: the Jamiesons, the Simpsons and the Vandersteens. Thanks also to Lt. Heather Chambers and the boys of the 3rd Edinburgh Company, The Boys' Brigade who boosted my flagging spirits during those long depressing months. Finally, thanks to my TEAM co-leader Helen Hopwood who made running TEAM much less stressful than it should have been. LI Table of Contents Definining Programming Languages 1 Interacting Deductions 18 2.1 Preliminaries ..............................20 2.2 Interacting deductions .........................22 2.2.1 Examples ............................24 2.2.2 I-deductions have no dependency loops ............25 2.2.3 DLF helps characterize the I-deductions ............27 2.3 An Example ...............................31 2.3.1 Comparative Semantics .....................32 2.3.2 Extending the semantics ....................35 2.3.3 Reasoning about semantics ...................37 2.4 Fragments of deductions ........................38 2.5 Examples .................................41 2.5.1 Extending a nondivergence proof ...............42 2.5.2 A modular proof about stores .................45 2.5.3 An equivalence theorem ....................47 2.6 Chapter summary ............................52 vii Table of Contents Evaluation Semantics and Sequential Deductions 53 3.1 Sequential composition in evaluation semantics ............56 3.1.1 Cutting intermediate states ..................56 3.1.2 Control stacks (or continuations) ...............59 3.1.3 Coding ..............................63 3.1.4 Conventions ...........................63 3.1.5 Solution .............................64 3.2 Sequential deductions ..........................66 3.2.1 Examples ............................69 3.2.2 QI-deductions have no sequencing loops ...........70 3.2.3 SLF helps characterize the QI-deductions ...........72 3.2.4 Coding QI-deduction into I-deduction .............74 3.3 An evaluation QI-semantics for P(;) .................75 3.4 An example: translation correctness ... 78 3.4.1 The translation .........................79 3.4.2 The transition semantics proof of correctness .........80 3.4.3 Tree Pruning and partial deductions .............83 3.4.4 The evaluation semantics proof of correctness ........84 3.4.5 Appraisal (equivalence, nondeterminism, nontermination) . 89 3.5 Chapter Summary ...........................93 The content of interaction 94 4.1 DQI-deduction .............................98 4.1.1 Structures, Histories and Binary Assemblies .........98 4.1.2 Deduction ............................103 Table of Contents 4.1.3 Coding QI-deduction into DQI-deduction ...........108 4.2 Proof Fragmentation ..........................111 4.2.1 The interaction reflection theorem ...............112 4.2.2 The Proof Fragmentation Theorem ..............114 4.2.3 An example: Type checked processes do not fail .......115 4.2.4 Proof fragmentation is not always enough ..........118 4.3 Proof Assembly .............................119 4.3.1 Example: Terminating processes type-check .........124 4.3.2 Example: Another nondivergence proof ............125 4.4 Chapter summary ............................128 5. A Semantics and Logic for CSP 129 5.1 A Definition of CSP ..........................130 5.1.1 Syntax and informal semantics .................130 5.1.2 Static Semantics ........................132 5.1.3 Auxiliary Definitions: Stores ..................133 5.1.4 Dynamic semantics ........................133 5.2 Some alternative features ........................140 5.2.1 Nested Parallelism .......................140 5.2.2 Shared Variables ........................141 5.2.3 Dynamic process creation ...................142 5.2.4 Pre-emption ...........................143 5.2.5 Multicasting ...........................143 5.2.6 Procedures ............................144 5.3 An Application: Program Verification .................148 Table of Contents x 5.3.1 A Hoare Logic for the partial correctness of CSP .......152 5.3.2 An example partial correctness proof .............157 5.3.3 Soundness of the Hoare Logic .................160 5.3.4 Appraisal ............................169 5.4 Chapter Summary ...........................173 The process calculus interpretation 175 6.1 Preliminaries ..............................176 6.1.1 On formula occurrences ....................176 6.1.2 The process calculus ......................177 6.1.3
Recommended publications
  • On Proof Interpretations and Linear Logic
    On Proof Interpretations and Linear Logic On Proof Interpretations and Linear Logic Paulo Oliva Queen Mary, University of London, UK ([email protected]) Heyting Day Utrecht, 27 February 2015 To Anne Troelstra and Dick de Jongh 6 ?? - !A ::: - !A - ! ILLp ILLp ILLp = Intuit. predicate linear logic (!-free) On Proof Interpretations and Linear Logic Overview - ! IL ::: - IL interpretations IL = Intuitionistic predicate logic 6 ?? - !A ::: - !A On Proof Interpretations and Linear Logic Overview - ! IL ::: - IL interpretations - ! ILLp ILLp IL = Intuitionistic predicate logic ILLp = Intuit. predicate linear logic (!-free) ?? - !A ::: - !A On Proof Interpretations and Linear Logic Overview - ! IL ::: - IL interpretations 6 - ! ILLp ILLp IL = Intuitionistic predicate logic ILLp = Intuit. predicate linear logic (!-free) - !A ::: - !A On Proof Interpretations and Linear Logic Overview - ! IL ::: - IL interpretations 6 ?? - ! ILLp ILLp IL = Intuitionistic predicate logic ILLp = Intuit. predicate linear logic (!-free) On Proof Interpretations and Linear Logic Overview - ! IL ::: - IL interpretations 6 ?? - ! ILLp ILLp - !A ::: - !A IL = Intuitionistic predicate logic ILLp = Intuit. predicate linear logic (!-free) On Proof Interpretations and Linear Logic Outline 1 Proof Interpretations 2 Linear Logic 3 Unified Interpretation of Linear Logic On Proof Interpretations and Linear Logic Proof Interpretations Outline 1 Proof Interpretations 2 Linear Logic 3 Unified Interpretation of Linear Logic E.g. the set of prime numbers is infinite The book \Proofs from THE BOOK" contains six beautiful proofs of this Non-theorems map to the empty set E.g. the set of even numbers is finite Need to fix the formal system On Proof Interpretations and Linear Logic Proof Interpretations Formulas as Sets of Proofs Formulas as set of proofs A 7! fπ : π ` Ag The book \Proofs from THE BOOK" contains six beautiful proofs of this Non-theorems map to the empty set E.g.
    [Show full text]
  • The Logic of Brouwer and Heyting
    THE LOGIC OF BROUWER AND HEYTING Joan Rand Moschovakis Intuitionistic logic consists of the principles of reasoning which were used in- formally by L. E. J. Brouwer, formalized by A. Heyting (also partially by V. Glivenko), interpreted by A. Kolmogorov, and studied by G. Gentzen and K. G¨odel during the first third of the twentieth century. Formally, intuitionistic first- order predicate logic is a proper subsystem of classical logic, obtained by replacing the law of excluded middle A ∨¬A by ¬A ⊃ (A ⊃ B); it has infinitely many dis- tinct consistent axiomatic extensions, each necessarily contained in classical logic (which is axiomatically complete). However, intuitionistic second-order logic is inconsistent with classical second-order logic. In terms of expressibility, the intu- itionistic logic and language are richer than the classical; as G¨odel and Gentzen showed, classical first-order arithmetic can be faithfully translated into the nega- tive fragment of intuitionistic arithmetic, establishing proof-theoretical equivalence and clarifying the distinction between the classical and constructive consequences of mathematical axioms. The logic of Brouwer and Heyting is effective. The conclusion of an intuitionistic derivation holds with the same degree of constructivity as the premises. Any proof of a disjunction of two statements can be effectively transformed into a proof of one of the disjuncts, while any proof of an existential statement contains an effec- tive prescription for finding a witness. The negation of a statement is interpreted as asserting that the statement is not merely false but absurd, i.e., leads to a contradiction. Brouwer objected to the general law of excluded middle as claim- ing a priori that every mathematical problem has a solution, and to the general law ¬¬A ⊃ A of double negation as asserting that every consistent mathematical statement holds.
    [Show full text]
  • Finite Type Arithmetic
    Finite Type Arithmetic Computable Existence Analysed by Modified Realisability and Functional Interpretation H Klaus Frovin Jørgensen Master’s Thesis, March 19, 2001 Supervisors: Ulrich Kohlenbach and Stig Andur Pedersen Departments of Mathematics and Philosohy University of Roskilde Abstract in English and Danish Motivated by David Hilbert’s program and philosophy of mathematics we give in the context of natural deduction an introduction to the Dialectica interpretation and compare the interpre- tation with modified realisability. We show how the interpretations represent two structurally different methods for unwinding computable information from proofs which may use certain prima facie non-constructive (ideal) elements of mathematics. Consequently, the two inter- pretations also represent different views on what is to be regarded as constructive relative to arithmetic. The differences show up in the interpretations of extensionality, Markov’s prin- ciple and restricted forms of independence-of-premise. We show that it is computationally a subtle issue to combine these ideal elements and prove that Markov’s principle is computa- tionally incompatible with independence-of-premise for negated purely universal formulas. In the context of extracting computational content from proofs in typed classical arith- metic we also compare in an extensional context (i) the method provided by negative trans- lation + Dialectica interpretation with (ii) the method provided by negative translation + ω A-translation + modified realisability. None of these methods can be applied fully to E-PA , since E-HAω is not closed under Markov’s rule, whereas the method based on the Dialectica interpretation can be used if only weak extensionality is required. Finally, we present a new variant of the Dialectica interpretation in order to obtain (the well-known) existence property, disjunction property and other closure results for typed in- tuitionistic arithmetic and extensions hereof.
    [Show full text]
  • Epistemic Modality, Mind, and Mathematics
    Epistemic Modality, Mind, and Mathematics Hasen Khudairi June 20, 2017 c Hasen Khudairi 2017, 2020 All rights reserved. 1 Abstract This book concerns the foundations of epistemic modality. I examine the nature of epistemic modality, when the modal operator is interpreted as con- cerning both apriority and conceivability, as well as states of knowledge and belief. The book demonstrates how epistemic modality relates to the compu- tational theory of mind; metaphysical modality; deontic modality; the types of mathematical modality; to the epistemic status of undecidable proposi- tions and abstraction principles in the philosophy of mathematics; to the apriori-aposteriori distinction; to the modal profile of rational propositional intuition; and to the types of intention, when the latter is interpreted as a modal mental state. Each essay is informed by either epistemic logic, modal and cylindric algebra or coalgebra, intensional semantics or hyperin- tensional semantics. The book’s original contributions include theories of: (i) epistemic modal algebras and coalgebras; (ii) cognitivism about epistemic modality; (iii) two-dimensional truthmaker semantics, and interpretations thereof; (iv) the ground-theoretic ontology of consciousness; (v) fixed-points in vagueness; (vi) the modal foundations of mathematical platonism; (vii) a solution to the Julius Caesar problem based on metaphysical definitions availing of notions of ground and essence; (viii) the application of epistemic two-dimensional semantics to the epistemology of mathematics; and (ix) a modal logic for rational intuition. I develop, further, a novel approach to conditions of self-knowledge in the setting of the modal µ-calculus, as well as novel epistemicist solutions to Curry’s and the liar paradoxes.
    [Show full text]
  • The Consistency of Arithmetic
    The Consistency of Arithmetic Timothy Y. Chow July 11, 2018 In 2010, Vladimir Voevodsky, a Fields Medalist and a professor at the Insti- tute for Advanced Study, gave a lecture entitled, “What If Current Foundations of Mathematics Are Inconsistent?” Voevodsky invited the audience to consider seriously the possibility that first-order Peano arithmetic (or PA for short) was inconsistent. He briefly discussed two of the standard proofs of the consistency of PA (about which we will say more later), and explained why he did not find either of them convincing. He then said that he was seriously suspicious that an inconsistency in PA might someday be found. About one year later, Voevodsky might have felt vindicated when Edward Nelson, a professor of mathematics at Princeton University, announced that he had a proof not only that PA was inconsistent, but that a small fragment of primitive recursive arithmetic (PRA)—a system that is widely regarded as implementing a very modest and “safe” subset of mathematical reasoning—was inconsistent [11]. However, a fatal error in his proof was soon detected by Daniel Tausk and (independently) Terence Tao. Nelson withdrew his claim, remarking that the consistency of PA remained “an open problem.” For mathematicians without much training in formal logic, these claims by Voevodsky and Nelson may seem bewildering. While the consistency of some axioms of infinite set theory might be debatable, is the consistency of PA really “an open problem,” as Nelson claimed? Are the existing proofs of the con- sistency of PA suspect, as Voevodsky claimed? If so, does this mean that we cannot be sure that even basic mathematical reasoning is consistent? This article is an expanded version of an answer that I posted on the Math- Overflow website in response to the question, “Is PA consistent? do we know arXiv:1807.05641v1 [math.LO] 16 Jul 2018 it?” Since the question of the consistency of PA seems to come up repeat- edly, and continues to generate confusion, a more extended discussion seems worthwhile.
    [Show full text]
  • Subverting the Classical Picture: (Co)Algebra, Constructivity and Modalities∗
    Informatik 8, FAU Erlangen-Nürnberg [email protected] Subverting the Classical Picture: (Co)algebra, Constructivity and Modalities∗ Tadeusz Litak Contents 1. Subverting the Classical Picture 2 2. Beyond Frege and Russell: Modalities Instead of Predicates 6 3. Beyond Peirce, Tarski and Kripke: Coalgebras and CPL 11 3.1. Introduction to the Coalgebraic Framework ............. 11 3.2. Coalgebraic Predicate Logic ...................... 14 4. Beyond Cantor: Effectivity, Computability and Determinacy 16 4.1. Finite vs. Classical Model Theory: The Case of CPL ........ 17 4.2. Effectivity, Choice and Determinacy in Formal Economics ..... 19 4.3. Quasiconstructivity and Modal Logic ................. 21 5. Beyond Scott, Montague and Moss: Algebras and Possibilities 23 5.1. Dual Algebras, Neighbourhood Frames and CA-baes ........ 23 5.2. A Hierachy of (In)completeness Notions for Normal Modal Logics . 24 5.3. Possibility Semantics and Complete Additivity ........... 26 5.4. GQM: One Modal Logic to Rule Them All? ............. 28 6. Beyond Boole and Lewis: Intuitionistic Modal Logic 30 6.1. Curry-Howard Correspondence, Constructive Logic and 2 ..... 31 6.2. Guarded Recursion and Its Neighbours ................ 33 6.3. KM, mHC, LC and the Topos of Trees ................ 34 6.4. Between Boole and Heyting: Negative Translations ......... 35 7. Unifying Lewis and Brouwer 37 7.1. Constructive Strict Implication .................... 37 7.2. Relevance, Resources and (G)BI .................... 40 ∗Introductory overview chapter for my cumulative habilitation thesis as required by FAU Erlangen-Nürnberg regulations (submitted in 2018, finally approved in May 2019). Available online at https://www8.cs.fau. de/ext/litak/gitpipe/tadeusz_habilitation.pdf. 1 8. Beyond Brouwer, Heyting and Kolmogorov: Nondistributivity 43 8.1.
    [Show full text]
  • The Unintended Interpretations of Intuitionistic Logic
    THE UNINTENDED INTERPRETATIONS OF INTUITIONISTIC LOGIC Wim Ruitenburg Department of Mathematics, Statistics and Computer Science Marquette University Milwaukee, WI 53233 Abstract. We present an overview of the unintended interpretations of intuitionis- tic logic that arose after Heyting formalized the “observed regularities” in the use of formal parts of language, in particular, first-order logic and Heyting Arithmetic. We include unintended interpretations of some mild variations on “official” intuitionism, such as intuitionistic type theories with full comprehension and higher order logic without choice principles or not satisfying the right choice sequence properties. We conclude with remarks on the quest for a correct interpretation of intuitionistic logic. §1. The Origins of Intuitionistic Logic Intuitionism was more than twenty years old before A. Heyting produced the first complete axiomatizations for intuitionistic propositional and predicate logic: according to L. E. J. Brouwer, the founder of intuitionism, logic is secondary to mathematics. Some of Brouwer’s papers even suggest that formalization cannot be useful to intuitionism. One may wonder, then, whether intuitionistic logic should itself be regarded as an unintended interpretation of intuitionistic mathematics. I will not discuss Brouwer’s ideas in detail (on this, see [Brouwer 1975], [Hey- ting 1934, 1956]), but some aspects of his philosophy need to be highlighted here. According to Brouwer mathematics is an activity of the human mind, a product of languageless thought. One cannot be certain that language is a perfect reflection of this mental activity. This makes language an uncertain medium (see [van Stigt 1982] for more details on Brouwer’s ideas about language). In “De onbetrouwbaarheid der logische principes” ([Brouwer 1981], pp.
    [Show full text]
  • Intuitionistic Logic
    Intuitionistic Logic Nick Bezhanishvili and Dick de Jongh Institute for Logic, Language and Computation Universiteit van Amsterdam Contents 1 Introduction 2 2 Intuitionism 3 3 Kripke models, Proof systems and Metatheorems 8 3.1 Other proof systems . 8 3.2 Arithmetic and analysis . 10 3.3 Kripke models . 15 3.4 The Disjunction Property, Admissible Rules . 20 3.5 Translations . 22 3.6 The Rieger-Nishimura Lattice and Ladder . 24 3.7 Complexity of IPC . 25 3.8 Mezhirov's game for IPC . 28 4 Heyting algebras 30 4.1 Lattices, distributive lattices and Heyting algebras . 30 4.2 The connection of Heyting algebras with Kripke frames and topologies . 33 4.3 Algebraic completeness of IPC and its extensions . 38 4.4 The connection of Heyting and closure algebras . 40 5 Jankov formulas and intermediate logics 42 5.1 n-universal models . 42 5.2 Formulas characterizing point generated subsets . 44 5.3 The Jankov formulas . 46 5.4 Applications of Jankov formulas . 47 5.5 The logic of the Rieger-Nishimura ladder . 52 1 1 Introduction In this course we give an introduction to intuitionistic logic. We concentrate on the propositional calculus mostly, make some minor excursions to the predicate calculus and to the use of intuitionistic logic in intuitionistic formal systems, in particular Heyting Arithmetic. We have chosen a selection of topics that show various sides of intuitionistic logic. In no way we strive for a complete overview in this short course. Even though we approach the subject for the most part only formally, it is good to have a general introduction to intuitionism.
    [Show full text]
  • Constructive Set Theory July, 2008, Mathlogaps Workshop, Manchester
    Constructive Set Theory July, 2008, Mathlogaps workshop, Manchester . Peter Aczel [email protected] Manchester University Constructive Set Theory – p.1/88 Plan of lectures Lecture 1 1: Background to CST 2: The axiom system CZF Lecture 2 3: The number systems in CZF 4: The constructive notion of set Lectures 3,4 ? 5: Inductive definitions 6: Locales and/or 7: Coinductive definitions Constructive Set Theory – p.2/88 1: Background to CST Constructive Set Theory – p.3/88 Some brands of constructive mathematics B1: Intuitionism (Brouwer, Heyting, ..., Veldman) B2: ‘Russian’ constructivism (Markov,...) B3: ‘American’ constructivism (Bishop, Bridges,...) B4: ‘European’ constructivism (Martin-Löf, Sambin,...) B1,B2 contradict classical mathematics; e.g. B1 : All functions R → R are continuous, B2 : All functions N → N are recursive (i.e. CT). B3 is compatible with each of classical maths, B1,B2 and forms their common core. B4 is a more philosophical foundational approach to B3. All B1-B4 accept RDC and so DC and CC. Constructive Set Theory – p.4/88 Some liberal brands of mathematics using intuitionistic logic B5: Topos mathematics (Lawvere, Johnstone,...) B6: Liberal Intuitionism (Mayberry,...) B5 does not use any choice principles. B6 accepts Restricted EM. B7: A minimalist, non-ideological approach: The aim is to do as much mainstream constructive mathematics as possible in a weak framework that is common to all brands, and explore the variety of possible extensions. Constructive Set Theory – p.5/88 Some settings for constructive mathematics type theoretical category theoretical set theoretical Constructive Set Theory – p.6/88 Some contrasts classical logic versus intuitionistic logic impredicative versus predicative some choice versus no choice intensional versus extensional consistent with EM versus inconsistent with EM Constructive Set Theory – p.7/88 Mathematical Taboos A mathematical taboo is a statement that we may not want to assume false, but we definately do not want to be able to prove.
    [Show full text]
  • Constructive Logic for All
    Constructive Logic for All Greg Restall∗ Philosophy Department Macquarie University June 14, 2000 Abstract It is a commonplace in recent metaphysics that one's logical commit- ments go hand in hand with one's metaphysics. Brouwer, Heyting and Dummett have each championed the move to constructive (intuitionistic) reasoning on the grounds of anti-realism. I hope to break this close connec- tion, to explain why a realist ought to reason constructively. 1 Introduction Let me start by explaining the terms of the discussion. In this area of philo- sophical logic there seems to be some confusion in the use of terms such as “intuitionistic” and “constructive.” It will help to get the use of these terms somewhat fixed before I start to argue my case. 1.1 Logic First, logic. The subject Logic is the study of logical consequence. Logical con- sequence is a matter of the validity and invalidity of arguments. An argument is valid just when in any case in which the premises of the argument are true, so is the conclusion. It is often helpful, in discussing logical consequence, to have a formal language in which to express the premises and conclusions of ar- guments. One such language is the language of first-order logic, with primitive expressions for the connectives and quantifiers ^ conjunction _ disjunction conditional ⊃ ∼ negation x universal quantifier 8 (with x a variable) x existential quantifier 9 (with x a variable) For some, logic is at heart the study of the behaviour of these connectives. For others, the singling out of particular parts of the language is an incidental mat- ter.
    [Show full text]
  • Weak Theories of Nonstandard Arithmetic and Analysis
    WEAK THEORIES OF NONSTANDARD ARITHMETIC AND ANALYSIS JEREMY AVIGAD Abstract. A general method of interpreting weak higher-type theories of nonstan- dard arithmetic in their standard counterparts is presented. In particular, this provides natural nonstandard conservative extensions of primitive recursive arithmetic, elemen- tary recursive arithmetic, and polynomial-time computable arithmetic. A means of formalizing basic real analysis in such theories is sketched. x1. Introduction. Nonstandard analysis, as developed by Abraham Robin- son, provides an elegant paradigm for the application of metamathematical ideas in mathematics. The idea is simple: use model-theoretic methods to build rich extensions of a mathematical structure, like second-order arithmetic or a universe of sets; reason about what is true in these enriched structures; and then transfer the results back to the ordinary mathematical universe. Robinson showed that this allows one, for example, to provide a coherent and consistent development of calculus based on the use of infinitesimals. From a foundational point of view, it is natural to try to axiomatize such nonstandard structures. By formalizing the model-theoretic arguments, one can, in general, embed standard mathematical theories is conservative, non- standard extensions. This was done e.g. by Kreisel, for second-order arithmetic [29]; Friedman, for first-order Peano arithmetic (unpublished); Nelson, for set theory [31]; and Moerdijk and Palmgren for intuitionistic first-order Heyting arithmetic [30] (see also [7]). In recent years there has also been an interest in formalizing parts of math- ematics in weak theories, at the level of primitive recursive arithmetic (PRA), or below. The underlying motivations vary. One may be drawn by the general philosophical goal of minimizing ontological commitments, or, less ethereally, by the sport of seeing how little one can get away with.
    [Show full text]
  • Uniform Heyting Arithmetic
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Elsevier - Publisher Connector Annals of Pure and Applied Logic 133 (2005) 125–148 www.elsevier.com/locate/apal Uniform Heyting arithmetic Ulrich Berger Department of Computer Science, University of Wales Swansea, Singleton Park, Swansea SA2 8PP, United Kingdom Available online 14 November 2004 Dedicated to Helmut Schwichtenberg on his 60th birthday Abstract We present an extension of Heyting arithmetic in finite types called Uniform Heyting Arithmetic (HAu) that allows for the extraction of optimized programs from constructive and classical proofs. The system HAu has two sorts of first-order quantifiers: ordinary quantifiers governed by the usual rules, and uniform quantifiers subject to stronger variable conditions expressing roughly that the quantified object is not computationally used in the proof. We combine a Kripke-style Friedman/Dragalin translation which is inspired by work of Coquand and Hofmann and a variant of the refined A-translation due to Buchholz, Schwichtenberg and the author to extract programs from a rather large class of classical first-order proofs while keeping explicit control over the levels of recursion and the decision procedures forpredicates used in the extracted program. © 2004 Elsevier B.V. All rights reserved. 1. Introduction According to the Brouwer–Heyting–Kolmogorov interpretation of constructive logic aproofisaconstruction providing evidence for the proven formula [21]. Viewing this interpretation from a data-oriented perspective one arrives at the so-called proofs-as- programs paradigm associating a constructive proof with a program ‘realizing’ the proven formula. This paradigm has been proposed as the basis of a new methodology for the synthesis of provably correct software.
    [Show full text]