Axiomatic Semantics II

Total Page:16

File Type:pdf, Size:1020Kb

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 (x1) do (y:=y*x; x:=x–1) { y=n! n>0 } W = while (x1) do (y:=y*x; x:=x–1) INV = x > 0 (y x! = n! n x) will show { INV[x-1/x][y*x/y] } y:=y*x { INV[x-1/x] } { INV[x-1/x] } x:=x-1 {INV} [comp] later { INV[x-1/x][y*x/y] } y:=y*x; x:=x–1 {INV} [cons] {x1 INV } y:=y*x; x:=x–1 { INV } [while] { INV } W { x=1 INV } { INV[1/y] } y:=1 { INV } [cons] [cons] { x=n } y:=1 { INV } { INV } W {y=n! n>0 } [comp] { x=n } while (x1) do (y:=y*x; x:=x–1) {y=n! n>0 } 8 Provability • We say that an assertion { P } C { Q } is provable if there exists an inference tree – Written as { P } C { Q } Where does the p non-determinism – Are inference trees unique? come from? {true} x:=1; x:=x+5 {x0} • Proving properties of axiomatic semantics by induction on the shape of the inference tree – Example: prove p { P } C { true } for any P and C 9 Annotating programs with proofs 10 Annotated programs • A streamlined version of inference trees – Inline inference trees into programs – A kind of “proof carrying code” – Going from annotated program to proof tree is a linear time translation 11 Annotating composition • We can inline inference trees into programs • Using proof equivalence of S1; (S2; S3) and (S1; S2); S3 instead of writing deep trees, e.g., {P} S1 {P’} {P’} S2 {P’’} {P’’} S3 {P’’’} {P’’’} S4 {P’’} {P} (S1; S2) {P’’} {P’’} (S3 ; S4) {Q} {P} (S1; S2); (S3 ; S4) {Q} • We can annotate a composition S1; S2;…; Sn by {P1} S1 {P2} S2 … {Pn-1} Sn-1 {Pn} 12 Annotating conditions { b P } S1 { Q }, { b P } S2 { Q } [ifp] { P } if b then S1 else S2 { Q } { P } if b then { b P } S1 else { b P } S2 { Q } 13 Annotating conditions { b P } S1 { Q }, { b P } S2 { Q } [ifp] { P } if b then S1 else S2 { Q } { P } if b then { b P } S { b P } S { Q } { b P } S { Q } 1 [cons] 1 1 2 2 [cons] { Q1 } { b P } S1 { Q }, { b P } S2 { Q } [ifp] else { P } if b then S1 else S2 { Q } { b P } S2 { Q2 } { Q } 14 Annotating loops { b P } S { P } [while ] p { P } while b do S {b P } { P } while b do { b P } S {b P } 15 Annotating loops { b P } S { P } [while ] p { P } while b do S {b P } { P } while b do { b P } P’ implies P S { P’ } b P implies Q {b P } { Q } 16 Annotating loops { b P } S { P } [while ] p { P } while b do S {b P } { P } Source of confusion while b do { b P } S {b P } 17 Annotating loops – alternative 1 { b P } S { P } [while ] p { P } while b do S {b P } while { P } b do { b P } S {b P } 18 Annotating loops – alternative 2 { b P } S { P } [while ] p { P } while b do S {b P } Inv = { P } We will take this alternative in our while b do examples and homework assignments { b P } S {b P } 19 Annotating formula transformations • We often rewrite formulas – To make proofs more readable – Using logical/mathematical identities – Imported mathematical theorems { } { ’ } // transformation 1 { ’’ } // transformation 2 20 Exercising Hoare logic 21 Exercise 1: variable swap – specify { ? } t := x x := y y := t { ? } 22 Exercise 1: Prove using Hoare logic { y=b x=a } t := x { ? } x := y { ? } y := t { x=b y=a } 23 Exercise 1: Prove using Hoare logic { y=b x=a } t := x { y=b t=a } x := y { x=b t=a } y := t { x=b y=a } 24 Absolute value program if x<0 then x := -x else skip if b then S is syntactic sugar for if b then S else skip The latter form is easier to reason about 25 Absolute value program – specify { ? } if x<0 then x := -x else skip { ? } 26 Absolute value program – specify { x=v } if x<0 then x := -x else skip { x=|v| } 27 Exercise 2: Prove using Hoare logic { x=v } { } if x<0 then { } x := -x { } else { } skip { } {x=|v| } 28 Exercise 2: Prove using Hoare logic { x=v } { (-x=|v| x<0) (x=|v| x0) } if x<0 then { -x=|v| } x := -x { x=|v| } else { x=|v| } skip { x=|v| } { x=|v| } 29 Annotated programs: factorial { x=n } y := 1; Inv = { x>0 y*x!=n! nx } while (x=1) do { x-1>0 (y*x)*(x-1)!=n! n(x-1) } y := y*x; { x-1>0 y*(x-1)!=n! n(x-1) } x := x–1 { y*x!=n! n>0 } • Contrast with proof via structural semantics • Where did the inductive argument over loop iterations go? 30 Detailed proof steps { x=n } y := 1; { x=n y=1 } Inv = { x>0 y*x!=n! nx } while (x=1) do { x1 (x>0 y*x!=n! nx) } => ? { x>1 y*x!=n! n(x-1) } y := y*x; { x-1>0 y*(x-1)!=n! n(x-1) } x := x–1 { x>0 y*x!=n! nx } { y*x!=n! n>0 } 31 Detailed proof of implication { x1 (x>0 y*x!=n! nx) } => relax inequality { x1 (x>0 y*x!=n! n(x-1)) } => use logical identity AB equals AB { x1 (x0 y*x!=n! n(x-1)) } => distribute over {(x1 x0) (x1 y*x!=n! n(x-1)) } => x0 subsumes x1 x0 { x0 (x1 y*x!=n! n(x-1)) } => weaken conjunction by removing x1 { x0 (y*x!=n! n(x-1)) } => relax x0 into x1 { x1 (y*x!=n! n(x-1)) } => use logical identity AB equals AB { x1 (x1 y*x!=n! n(x-1))} write x1 as x>1 { x>1 y*x!=n! n(x-1) } 32 Properties of the semantics 33 Properties of the semantics Equivalence – What is the analog of program equivalence in axiomatic verification? Soundness – Can we prove incorrect properties? Completeness – Is there something we can’t prove? 34 Provable equivalence • We say that C1 and C2 are provably equivalent if for all P and Q p { P } C1 { Q } if and only if p { P } C2 { Q } • Examples: – S; skip and S – S1; (S2; S3) and (S1; S2); S3 35 S1; (S2; S3) is provably equivalent to (S1; S2); S3 {P’} S2 {P’’} {P’’} S3 {Q} {P} S1 {P’} {P’} (S2; S3) {Q} {P} S1; (S2; S3) {Q} {P} S1 {P’} {P’} S2 {P’’} {P} (S1; S2) {P’’} {P’’} S3 {Q} {P} (S1; S2); S3 {Q} 36 Valid assertions • We say that { P } C { Q } is valid if for all states , if P and C, 1* ’ then ’Q • Denoted by p { P } C { Q } Q P C(P) C ’ 37 Soundness and completeness • The inference system is sound: – p { P } C { Q } implies p { P } C { Q } • The inference system is complete: – p { P } C { Q } implies p { P } C { Q } • Is Hoare logic sound? yes • Is Hoare logic complete? depends 38 Weakest precondition calculus 39 From inference to calculus • A Hoare-style proof is declarative – You can check that a proof is correct – Check is decidable given an algorithm to check implication • Is there a more calculational approach to producing proofs? – Weakest precondition calculus (WP) – Strongest postcondition calculus (SP) • WP/SP provide limits for Hoare triples • WP helps prove that Hoare logic is relatively complete 40 Weakest liberal precondition • A backward-going predicate transformer • The weakest liberal precondition for Q is wlp(C, Q) if and only if for all states ’ if C, 1* ’ then ’ Q Propositions: 1. p { wlp(C, Q) } C { Q } 2. If p { P } C { Q } then P wlp(C, Q) 41 Weakest liberal precondition • A backward-going predicate transformer • The weakest liberal precondition for Q is wlp(C, Q) Give an example if and only if for all states ’ where this if C, * ’ then ’ Q gap exists 1 Q wlp(C, Q) C(wlp(C, Q)) P C C(P) 42 Strongest postcondition • A forward-going predicate transformer • The strongest postcondition for P is ’ sp(P, C) if and only if there exists such that P and C, 1* ’ Propositions: 1.
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]
  • 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
    [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]
  • 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]