Extensible Transition System Semantics

Total Page:16

File Type:pdf, Size:1020Kb

Extensible Transition System Semantics Extensible Transition System Semantics Casper Bach Poulsen Submitted to Swansea University in fulfilment of the requirements for the Degree of Doctor of Philosophy Department of Computer Science Swansea University 2015 Declaration This work has not been previously accepted in substance for any degree and is not being concurrently submitted in candidature for any degree. Signed ............................................................ (candidate) Date ............................................................ Statement 1 This thesis is the result of my own investigations, except where otherwise stated. Other sources are acknowledged by footnotes giving explicit references. A bibliography is appended. Signed ............................................................ (candidate) Date ............................................................ Statement 2 I hereby give my consent for my thesis, if accepted, to be available for photocopying and for inter-library loan, and for the title and summary to be made available to outside organisations. Signed ............................................................ (candidate) Date ............................................................ Abstract Structural operational semantics (SOS) come in two main styles: big-step and small- step. Each style has its merits and drawbacks, and it is sometimes useful to maintain specifications in both styles. But it is both tedious and error-prone to maintain multiple specifications of the same language. Additionally, big-step SOS has poor support for language evolution, requires reformulation or introduction of new rules for existing constructs as a language is extended, and is sometimes regarded as inferior for type soundness proofs. This thesis addresses pragmatic shortcomings with giving and relat- ing extensible small-step and big-step specifications, and with big-step type soundness proofs. The thesis makes a number of contributions. First, we present Extensible SOS (XSOS), a simple but novel extension of Mosses’ Modular SOS that supports concise and extensible specification of language features for both big-step and small-step se- mantics. Second, we internalise the well-known refocusing transformation in XSOS to provide a systematic transformation between extensible small-step and big-step spec- ifications. Third, we consider types as abstract interpretations as a novel approach to big-step type soundness. Finally, we propose a novel type system for Hindley-Milner- Damas polymorphic type inference for a language with ML style references. v Acknowledgements I sincerely thank Peter Mosses for his support, encouragement, and all that he has taught me during my years in Swansea. I would also like to thank Ulrich Berger for being my second supervisor, and my examiners, Graham Hutton and Anton Setzer, for interesting discussions during my viva, and for their valuable suggestions for improving this thesis. I am grateful to Fredrik Nordvall Forsberg, Neil Sculthorpe, Peter Mosses, Paolo Torrini, and Ulrich Berger for patient proofreading and feedback on earlier ver- sions of this thesis. My thesis and I have also benefited from discussions with Martin Churchill, Ferdinand Vesely, Olivier Danvy, Jacob Johannsen, Jan Midtgaard, Andrew Tolmach, and Eelco Visser; thank you. I further thank Olivier Danvy for his inspiring lecture courses at Aarhus University, as well as his support in connection with applying for a Ph.D. in Swansea; and Eelco Visser for employing me after my Ph.D., and for his topical words about deadlines [Vis97, Acknowledgements, final paragraph]. Thanks are also due to all the people whose moral support and company I have enjoyed throughout my Ph.D. Thank you for your friendship, Phil and Emma James, Fredrik Nordvall Forsberg, Liam O’Reilly, Ferdinand Vesely and Olga Vesela, Dean Thomas, and Shannon Morrison. Thank you, Erling Midtgaard Hanssen and Dorete Bøving Larsen, for opening up your hearts and home whenever Margit and I visit home. Thank you to my family for always being there for me. A special thanks goes to my beloved Margit: thank you for agreeing to join me in moving to Swansea for our Welsh adventure, and for always being there for me, not least on the (sometimes strenuous) journey of my Ph.D. This work was supported by an EPSRC grant (EP/I032495/1) to Swansea University in connection with the PLanCompS project (www.plancomps.org). vii Table of Contents 1 Introduction 1 1.1 Motivation: promises and problems with formal specification . 2 1.2 Background: operational semantics . 3 1.3 Thesis . 9 1.4 Relationship with previous publications . 10 2 Operational Semantics in Theory and Practice 13 2.1 Prerequisites and conventions . 13 2.2 Structural operational semantics . 14 2.3 Modular SOS . 28 2.4 Natural semantics . 36 2.5 Pretty-big-step semantics . 43 2.6 Big-step Modular SOS . 51 2.7 Modularity in Denotational Semantics . 54 2.8 Reduction semantics . 59 2.9 Type soundness using operational semantics . 64 2.10 Summary . 77 3 Extensible Transition System Semantics 79 3.1 The problem with modular abrupt termination . 79 3.2 Towards a solution: abruptly terminated configurations . 80 3.3 Extensible transition systems . 80 3.4 Extensible SOS . 82 3.5 Extensible specifications for abrupt termination . 86 3.6 Correspondence with other transition system variants . 93 3.7 Assessment and related work . 94 4 Refocusing in Extensible SOS 97 4.1 Danvy and Nielsen’s refocusing transformation . 98 4.2 Refocusing in XSOS . 102 4.3 Correctness of refocusing without abrupt termination . 105 4.4 Refocusing lcbv ................................110 ix 4.5 Refocusing with abrupt termination . 112 4.6 Deriving pretty-big-step rules for delimited control . 116 4.7 Assessment and related work . 121 5 Modular Divergence in Extensible SOS 123 5.1 Divergence as modular abrupt termination . 123 5.2 Correspondence between converging and diverging computations in re- focused XSOS rules . 126 5.3 Assessment and related work . 131 6 Big-Step Type Soundness using Types as Abstract Interpretations 135 6.1 Monotype abstraction of big-step lcbv . 135 6.2 Well-foundedness and proof mechanisation in Coq . 139 6.3 Polytype abstraction . 141 6.4 Assessment and related work . 144 7 Type Inference for References using Types as Abstract Interpretations 147 7.1 Abstracting extensible specifications . 148 7.2 Extensible type soundness for lcbv+ref . 153 7.3 Assessment and related work . 162 8 Type and Effect Inference using Types as Abstract Interpretation 167 8.1 The problem with let-polymorphic generalisation with references . 168 8.2 A store-based type system . 169 8.3 Types as abstract interpretations for store-based types . 173 8.4 Assessment and related work . 179 9 Discussion and Future Directions 183 9.1 Extensible transition system semantics . 183 9.2 Refocusing in XSOS . 185 9.3 Types as abstract interpretations . 186 9.4 Modular big-step type soundness . 187 9.5 Type and effect soundness . 187 9.6 Conclusion . 187 A Proofs for Chapter 2 189 A.1 Expression sorts . 189 A.2 Correspondence between converging computations . 192 A.3 Correspondence between diverging computations . 195 B Proofs for Refocusing in XSOS 203 B.1 Proofs for Chapter 4 . 203 B.2 Proofs for Chapter 5 . 210 x C Specifications 217 C.1 Pretty-big-step semantics for lcbv• +ref . 217 C.2 Plotkin-style propagation of abrupt termination in SOS . 219 C.3 From reduction-based to reduction-free normalisation for simple arith- metic expressions . 221 xi List of Figures 2.1 Abstract syntax for simple arithmetic expressions . 17 2.2 SOS for simple arithmetic expressions . 17 2.3 SOS for simple arithmetic expressions with interleaving . 18 2.4 Reflexive-transitive closure of G L G . 19 ! ⊆ × × 2.5 Abstract syntax for lcbv (extends Figure2.1) . 20 2.6 SOS for lcbv .................................... 21 2.7 Interleaving SOS for lcbv ............................. 22 2.8 Coinductive infinite closure of ........................ 22 ! 2.9 Abstract syntax for lcbv• (extends Figure2.5) . 24 2.10 SOS for exception handling (extends Figure2.6) . 24 2.11 SOS rules for propagating exceptions in lcbv• . 25 2.12 Abstract syntax for lcbv• +ref (extends Figure2.9) . 25 2.13 Updated SOS for lcbv• fragment of lcbv• +ref ................... 26 2.14 SOS rules for ref fragment of lcbv• +ref ..................... 27 2.15 SOS rules for propagating exceptions in lcbv• +ref . 27 2.16 MSOS for simple arithmetic expressions . 31 2.17 MSOS for lcbv (extends Figure2.16) . 32 2.18 Reflexive-transitive and infinite closure of an MSOS transition relation . 32 2.19 Abstract syntax for lcbv• (extends Figure2.5) . 33 2.20 MSOS for lcbv• (extends Figure2.17) . 34 2.21 MSOS for lcbv• +ref (extends Figure2.20) . 35 2.22 Abstract syntax for printing (extends Figure2.12) . 35 2.23 MSOS for printing (extends Figure2.21) . 36 2.24 Abstract syntax and semantic values for simple arithmetic expressions . 37 2.25 Natural semantics for simple arithmetic expressions . 37 2.26 Abstract syntax and semantic values for lcbv (extends Figure2.24) . 39 2.27 Natural semantics for lcbv ............................ 40 2.28 Natural semantics divergence predicate for lcbv . 40 2.29 Abstract syntax and semantic values for lcbv• (extends Figure2.26) . 43 2.30 Natural semantics for lcbv• (extends Figure2.27) . 43 2.31 Natural semantic abrupt termination rules for lcbv• (extends Figure2.27) . 44 2.32 Natural semantic divergence predicate for lcbv• (extends Figure2.28) . 44 xii 2.33 Abstract syntax, values, and outcomes for simple arithmetic expressions . 45 2.34 Pretty-big-step
Recommended publications
  • Operational Semantics Page 1
    Operational Semantics Page 1 Operational Semantics Class notes for a lecture given by Mooly Sagiv Tel Aviv University 24/5/2007 By Roy Ganor and Uri Juhasz Reference Semantics with Applications, H. Nielson and F. Nielson, Chapter 2. http://www.daimi.au.dk/~bra8130/Wiley_book/wiley.html Introduction Semantics is the study of meaning of languages. Formal semantics for programming languages is the study of formalization of the practice of computer programming. A computer language consists of a (formal) syntax – describing the actual structure of programs and the semantics – which describes the meaning of programs. Many tools exist for programming languages (compilers, interpreters, verification tools, … ), the basis on which these tools can cooperate is the formal semantics of the language. Formal Semantics When designing a programming language, formal semantics gives an (hopefully) unambiguous definition of what a program written in the language should do. This definition has several uses: • People learning the language can understand the subtleties of its use • The model over which the semantics is defined (the semantic domain) can indicate what the requirements are for implementing the language (as a compiler/interpreter/…) • Global properties of any program written in the language, and any state occurring in such a program, can be understood from the formal semantics • Implementers of tools for the language (parsers, compilers, interpreters, debuggers etc) have a formal reference for their tool and a formal definition of its correctness/completeness
    [Show full text]
  • A. Detailed Course Structure of MA (Linguistics)
    A. Detailed Course Structure of M.A. (Linguistics) Semester I Course Course Title Status Module & Marks Credits Code LIN 101 Introduction to Core 20(M1)+20(M2)+10(IA) 4 Linguistics LIN 102 Levels of Language Core 20(M1)+20(M2)+10(IA) 4 Study LIN 103 Phonetics Core 20(M1)+20(M2)+10(IA) 4 LIN 104 Basic Morphology & Core 20(M1)+20(M2)+10(IA) 4 Basic Syntax LIN 105 Indo-European Core 20(M1)+20(M2)+10(IA) 4 Linguistics & Schools of Linguistics Semester II LIN 201 Phonology Core 20(M1)+20(M2)+10(IA) 4 LIN 202 Introduction to Core 20(M1)+20(M2)+10(IA) 4 Semantics & Pragmatics LIN 203 Historical Linguistics Core 20(M1)+20(M2)+10(IA) 4 LIN 204 Indo-Aryan Core 20(M1)+20(M2)+10(IA) 4 Linguistics LIN 205 Lexicography Core 20(M1)+20(M2)+10(IA) 4 Semester III LIN 301 Sociolinguistics Core 20(M1)+20(M2)+10(IA) 4 LIN 302 Psycholinguistics Core 20(M1)+20(M2)+10(IA) 4 LIN 303 Old Indo-Aryan Discipline 20(M1)+20(M2)+10(IA) 4 Specific Elective Lin 304 Middle Indo-Aryan Discipline 20(M1)+20(M2)+10(IA) 4 Specific Elective LIN 305 Bengali Linguistics Discipline 20(M1)+20(M2)+10(IA) 4 1 Specific Elective LIN 306 Stylistics Discipline 20(M1)+20(M2)+10(IA) 4 Specific Elective LIN 307 Discourse Analysis Generic 20(M1)+20(M2)+10(IA) 4 Elective Semester IV LIN 401 Advanced Core 20(M1)+20(M2)+10(IA) 4 Morphology & Advanced Syntax LIN 402 Field Methods Core 20(M1)+20(M2)+10(IA) 4 LIN 403 New Indo-Aryan Discipline 20(M1)+20(M2)+10(IA) 4 Specific Elective LIN 404 Language & the Discipline 20(M1)+20(M2)+10(IA) 4 Nation Specific Elective LIN 405 Language Teaching Discipline 20(M1)+20(M2)+10(IA) 4 Specific Elective LIN 406 Term Paper Discipline 50 6 Specific Elective LIN 407 Language Generic 20(M1)+20(M2)+10(IA) 4 Classification & Elective Typology B.
    [Show full text]
  • Axiomatic Semantics I
    Spring 2016 Program Analysis and Verification Lecture 3: Axiomatic Semantics I Roman Manevich Ben-Gurion University Warm-up exercises 1. Define program state: 2. Define structural semantics configurations: 3. Define the form of structural semantics transitions: 2 Tentative syllabus Abstract Program Program Analysis Interpretation Verification Analysis Basics Techniques fundamentals Operational Control Flow Numerical Lattices semantics Graphs Domains Axiomatic Equation Fixed-Points Alias analysis Verification Systems Collecting Chaotic Interprocedural Semantics Iteration Analysis Galois Shape Using Soot Connections Analysis Domain CEGAR constructors Widening/ Narrowing 3 Agenda • Basic concepts of correctness • Axiomatic semantics (pages 175-183) – Motivation – First-order logic reminder – Hoare Logic 4 program correctness 5 Program correctness concepts • Specification = a certain relationship between initial state and final state Main focus of this course • Partial correctness = specifications that hold if the program terminates • Termination = program always terminates – i.e., for every input state partial correctness + termination = total correctness Other correctness concepts exist: liveness, resource usage, … 6 Verifying factorial with structural semantics 7 Structural semantics for While [asssos] x := a, 1 [x Aa] [skipsos] skip, 1 1 S1, 1 S1’, ’ [comp sos] S1; S2, 1 S1’; S2, 2 S1, 1 ’ [comp sos] S1; S2, 1 S2, ’ tt [if sos] if b then S1 else S2, 1 S1, if B b = tt ff [if sos] if b then S1 else S2, 1 S2, if B b = ff while
    [Show full text]
  • Lexical and Semantics Literatures and Their Trends Mohana Dass Ramasamy & Devi Vadiveloo Department of Indian Studies University of Malaya
    Lexical and Semantics Literatures and Their Trends Mohana Dass Ramasamy & Devi Vadiveloo Department of Indian Studies University of Malaya Introduction with his imagination give birth to new word formation whenever there is a need and necessity. The process of making or coining the new term, sometime easy and sometime not. By adding an affix or suffix to a root word, an intended word could be formed to fill the blank of missing message delivery. The only criteria of succession is it has to be the best term that could represent the abstract mental message or image borne in the mind. as a special innate mental module. The field of study known as lexical and lexical semantic have been established well in the literature, but they were less studied in the Tamil background. This study, therefore, aimed at giving an impressive look at the existing literatures on these fields, and possibly arguing for how they could be matched in the Tamil. Word Formation Literatures Word has different connection with various academic fields in this world. However, strong inter- connection between word and linguistic have created an academic discipline alone, known as today. Lexical has different perspective from each discipline in academic world [Palmer (1981), Trask (1993), Crystal (1997)]. Morphology is study of lexical structure and semantics is the study of lexical meaning. Lexical participation in every field played a vital role to create great success in academic today. Lexical Semantics also garnered extensive interest of the scholarly world. Since lexical semantics defined as study of word meaning, Lexical semanticists are interested in what words mean, why they mean so, what they mean, how they are and discourse(CaritaParadis 2013: 1).
    [Show full text]
  • Axiomatic Semantics II
    Spring 2016 Program Analysis and Verification Lecture 5: Axiomatic Semantics II Roman Manevich Ben-Gurion University Tentative syllabus Abstract Program Program Analysis Interpretation Verification Analysis Basics Techniques fundamentals Operational Control Flow Numerical Lattices semantics Graphs Domains Equation Hoare Logic Fixed-Points Alias analysis Systems Applying Hoare Collecting Chaotic Interprocedural Logic Semantics Iteration Analysis Weakest Galois Shape Precondition Using Soot Connections Analysis Calculus Proving Domain CEGAR Termination constructors Widening/ Data structures Narrowing 2 Previously • Basic notions of correctness • Formalizing Hoare triples • FO logic – Free variables – Substitutions • Hoare logic rules 3 Warm-up exercises 1. Define program state: 2. Define state predicate: 3. Define P 4. Formalize {P} C {Q} via structural semantics: 5. FV(m. x=k+1 0mx-1 nums(m)res) = { } 6. (m. x=k+1 0mx-1 nums(m)res)[x+1/x] = 4 Agenda • Inference system • Annotating programs with proofs • Properties of the semantics Chapter 6 • Predicate transformer calculus – Weakest precondition calculus – Strongest postcondition calculus 5 Axiomatic semantics as an inference system 6 Inference trees • Trees describing rule applications that ultimately prove a program correct • Leaves are axiom applications • Internal nodes correspond to rule applications over triples inferred from sub-trees • Inference tree is called – Simple if tree is only an axiom – Composite otherwise 7 Factorial proof inference tree Goal: { x=n } y:=1; while
    [Show full text]
  • Ogden and Richards' the Meaning of Meaning and Early Analytic
    Ogden and Richards’ The Meaning of Meaning and early analytic philosophy. James McElvenny [email protected] This is the green open access copy of my paper in Language Sciences (2014, 41.212-221). http://dx.doi.org/10.1016/j.langsci.2013.10.001 This version silently corrects a few small errors in the published paper. Abstract C.K. Ogden (1889–1957) and I.A. Richards’ (1893–1979) The Meaning of Meaning is widely recognised as a classic text of early twentieth-century linguistic semantics and semiotics, but less well known are its links to the ‘logical atomism’ of Bertrand Russell (1872–1970), one of the foundational doctrines of analytic philosophy. In this paper a detailed comparison of The Meaning of Meaning and logical atomism is made, in which several key similarities between the two theories in subject matter and approach are identified: both attempt to describe meaning in terms of the latest psychological doctrines and both pursue a normative program aimed at rectifying the perceived deficiencies of language. But there are also a number of differences between the theories. Ogden and Richards – most probably inspired by Victoria Lady Welby (1837–1912) – offered a pragmatically oriented account of ordinary language, while Russell sought a ‘logically perfect language’ beyond interpretation, and rejected the work of Welby and her allies. These differences contributed significantly to Russell’s largely negative opinion of The Meaning of Meaning. Despite this, several ideas pioneered in The Meaning of Meaning re-appear in Russell’s later writings. The Meaning of Meaning, it would seem, not only drew inspiration from Russell’s philosophy but may have also contributed to its further development.
    [Show full text]
  • Observations Regarding the Lexical Content at the Beginnings of Structural Semantics
    article doi:10.17684/i9A135en DIACRONIA ISSN: 2393-1140 Impavidi progrediamur! www.diacronia.ro Observations regarding the lexical content at the beginnings of structural semantics Dinu Moscal˚ “A. Philippide” Institute of Romanian Philology, Str. Th. Codrescu 2, 700481 Iași, Romania Article info Abstract History: This study focuses on the difficulties noted by a series of German lexicologists Received April 11, 2019 at the beginnings of structural semantics as part of their attempt to identify a Accepted April 16, 2019 possible method of organizing the lexis of a language. Their studies, beginning Published May 7, 2019 with Jost Trier, focused on the analysis of certain lexical groups called Wortfelder (“lexical fields”), regarded as parts of a completely organized lexis. Their ideal- Key words: istic perception—according to which the whole lexis of a language has an inner semantics organization that needs to be discovered—was confronted with some major structuralism issues. Our first observation, based on some examples from the lexis, reveals lexicology the fact that certain words cannot be classified as belonging to a specific lexical lexical field field. Another observation is related to the semantic continuum of the lexical diachrony field, which is compared in some works with the image of a mosaic. These issues are detailed by the argumentations of the German lexicologists, whose research was based on a diachronic analysis of the lexis. Their views were exploited in the second stage of the theorization of lexical fields. 1. Introduction Any human cognitive activity implies first and foremost the identification of the object (that can bemore or less accurate) followed by the identification of the parts that the respective object is made of.
    [Show full text]
  • Semantics the Outline
    semantics The outline • Quotation • Introduction • Basic definition • Why is it important to study semantics? • Major concerns of semantics • Approaches to the study of semantics • Branches of semantics • Semantic ambiguity • Semantic rules • References Quotation • “Semantics is about the relation of words to reality - the way that speakers commit themselves to a shared understanding of the truth, and the way their thoughts are anchored to things and situations in the world.” Steven Pinker Definition Semantics is the study of the meaning of language. It has to do with considering the meanings of words. Scholars (Boas and his most notable pupil Sapir) have frequently added to their grammatical analyses of languages some discussion of the meaning of the grammatical categories and of the correlations between the structure of the vocabularies and the cultures in which the languages operated. Why is it important to study semantics • Semantics is studied for a number of different reasons: – It is central to the study of communication – The meaning is more complex than simply the words formed in a sentence. Major concerns of semantics • Study of meaning is one of the major areas of linguistic study. Linguists have approached it in a variety of ways. Semantics is associated with different issues related to meaning including naming, concept, sense and reference Naming • Naming as a semantic process derives from the understanding that words are names or labels for things. The major problem with this naming view of semantics is that it is only nouns and nominal expressions that can be analysed semantically. In addition, abstract nuns like love, hatred, truth will be difficult to explain since they are not living things Concepts • Concepts mediate between the mind constructs and objects in the real world.
    [Show full text]
  • Information-Structural Semantics for English Intonation*
    MARK STEEDMAN INFORMATION-STRUCTURAL SEMANTICS FOR ENGLISH INTONATION* 1. INTRODUCTION Selkirk (1984), Hirschberg and Pierrehumbert (1986), Pierrehumbert and Hirschberg (1990), andthe present author, have offered different but related accounts of intonation structure in English and some other languages. These accounts share the assumption that the system of tones identified by Pierrehumbert (1980), as modified by Pierrehumbert and Beckman (1988) and Silverman et al. (1992), has as transparent and type-driven a semantics in these languages as do their words and phrases. While the semantics of intonation in English concerns information structure and propositional attitude, rather than the predicate-argument relations and operator- scope relations that are familiar from standard semantics in the spirit of the papers collected as Montague 1974,this information-structural semantics is fully compositional, and can be regarded as a component of the same semantic system. The present paper builds on Steedman (1991) and Steedman (2000a) to develop a new semantics for intonation structure, which shares with the earlier versions the property of being fully integrated into Combinatory Categorial Grammar (CCG, see Steedman 2000b, hereafter SP). This grammar integrates intonation structure into surface derivational structure and the associated Montague-style compositional semantics, even when the intonation structure departs from the restrictions of traditional surface structure. Many of the diverse discourse meanings that have been attributed to intonational
    [Show full text]
  • ENG 831 LEXICOLOGY and SEMANTICS of ENGLISH Course
    COURSE GUIDE ENG 831 LEXICOLOGY AND SEMANTICS OF ENGLISH Course Developer/Writer Dr Oye Taiwo Department of Linguistics & African Languages University of Ibadan Ibadan Editor Dr. Olurotimi Taiwo NATIONAL OPEN UNIVERSITY OF NIGERIA 1 National Open University of Nigeria Headquarters 14/16 Ahmadu Bello Way Victoria Island Lagos Abuja Annex 245 Samuel Adesujo Ademulegun Street Central Business District Opposite Arewa Suites Abuja e-mail: [email protected] URL: www.nou.edu.ng National Open University of Nigeria First Printed ISBN: All Rights Reserved Printed by …………….. For National Open University of Nigeria 2 CONTENTS PAGE Introduction 3 Course Aim 3 Course Objectives 3 Working through this Course 3 Course Materials 4 Study Units 4 References and Further Reading 6 Assessment 6 Tutor Marked Assignments (TMA) 6 Final Examination and Grading 6 Course Marking Scheme 6 Course Overview and Presentation Schedule 7 What You Will Need for this Course 7 How to Get the Most from the Course 8 Facilitators/Tutors and Tutorials 8 Conclusion 8 Summary 8 3 Introduction This is a three credit unit course presented in five modules. The general aim of the first module is to provide you with an in-depth understanding of how the meaning of a sentence‘s component words and their arrangement in syntactic structure determine sentence meaning. In module two, you will learn more closely about connectives and logical quantifiers. I shall also explain the truth relations in entailment and presupposition. Modules three and four discuss other necessary information needed to determine sentence meaning apart from the syntactic structure. Some of these are the speaker‘s and addressee‘s background attitudes and beliefs, their understanding of the context in which a sentence is uttered, and their knowledge of how language can be used to inform, to persuade, to mislead, and so forth.
    [Show full text]
  • Semantic Structure, Relational Networks, and Domains of Reference1
    JOURNAL OF ENGLISH STUDIES, I (1999), 271-288 SEMANTIC STRUCTURE, RELATIONAL NETWORKS, AND DOMAINS OF REFERENCE1 FRANCISCO SANTIBÁÑEZ SÁENZ University of La Rioja ABSTRACT. In this paper we make use of some of the conceptual tools provided by Cognitive Linguistics in order to discuss the issue of knowledge organization. We start off from the account provided by Ruiz de Mendoza (1996), who fleshes out the key ideas of the network organization model postulated by Langacker (1987). In Ruiz de Mendoza’s account a semantic characterization consists of what he terms a general definer, which is a kind of semantic invariant, plus a number of prototypical instantiations of the definer. The instantiations are accessed relationally. Our own account tries to improve on Ruiz de Mendoza’s initial insights by making his proposal compatible with Langacker’s notions of base and profile, and by organizing the resulting description in the form of sets of converging cognitive models, a proposal made by Lakoff (1987) which is fully compatible with the network characterization. To illustrate our view we offer an analysis of the concept of ‘mother’, which has been variously studied by a number of linguists working within the cognitive paradigm. Our analysis is mainly based on Lakoff’s account, but we further structure each converging model in terms of the domains on which it is potentially profiled. This has the advantage of providing a much richer characterization which facilitates the instantiation process. 1. INTRODUCTION The need for an encyclopedic conception of semantics (Haiman 1980) is one of the main points of emphasis of the research programme in cognitive linguistics (see Langacker 1987, 1990; Lakoff 1987, 1989).
    [Show full text]
  • Operational Semantics Using the Partiality Monad
    Operational Semantics Using the Partiality Monad Nils Anders Danielsson Chalmers University of Technology and University of Gothenburg [email protected] Abstract ρ.x/ v ρ c c D ρ λx:t λx:tρ The operational semantics of a partial, functional language is often ` + ρ x v ` + given as a relation rather than as a function. The latter approach ` + is arguably more natural: if the language is functional, why not ρ t λx:t ρ ρ t v ρ ; x v t v take advantage of this when defining the semantics? One can im- ` 1 + 0 0 ` 2 + 0 0 D 0 ` 0 + mediately see that a functional semantics is deterministic and, in a ρ t t v ` 1 2 + constructive setting, computable. This paper shows how one can use the coinductive partiality Figure 1. A call-by-value operational semantics for the untyped λ- monad to define big-step or small-step operational semantics for calculus with constants, specifying which terms can terminate with lambda-calculi and virtual machines as total, computable functions what values (very close to a semantics given by Leroy and Grall (total definitional interpreters). To demonstrate that the resulting se- (2009)). mantics are useful type soundness and compiler correctness results are also proved. The results have been implemented and checked using Agda, a dependently typed programming language and proof assistant. ρ t ρ t v ρ t ` 1 * ` 1 + ` 2 * ρ t t ρ t t Categories and Subject Descriptors F.3.2 [Logics and Mean- ` 1 2 * ` 1 2 * ings of Programs]: Semantics of Programming Languages—Oper- ρ t λx:t ρ ρ t v ρ ; x v t ational semantics; D.1.1 [Programming Techniques]: Applicative ` 1 + 0 0 ` 2 + 0 0 D 0 ` 0 * (Functional) Programming; E.1 [Data Structures]; F.3.1 [Logics ρ t1 t2 and Meanings of Programs]: Specifying and Verifying and Reason- ` * ing about Programs—Mechanical verification ρ t def .
    [Show full text]