Context and the Composition of Meaning

Size: px
Start display at page:

Download "Context and the Composition of Meaning"

Transcription

1 Context and the Composition of Meaning Jan van Eijck CWI and ILLC, Amsterdam, Uil-OTS, Utrecht LOLA7 Invited Talk, Pecs August 2002

2 Abstract Key ingredients in discourse meaning are reference markers: objects in the formal representation that the discourse is about. It is well-known that reference markers are not like first order variables. It is the received view that reference markers are like the variables in imperative programming languages. However, in a computational semantics of discourse that treats reference markers as dynamically bound variables, every noun phrase will get linked to a dynamic variable, so it will give rise to a marker index. Where do these indices come from? How do we handle them when combining pieces of discourse? The merge problem of discourse representation has arisen. We will argue that reference markers are better treated as indices into context, and we will present a theory of context and context extension based on this view. In context semantics, noun phrases do not come with fixed indices, so the merge problem does not arise. This solves a vexing issue with coordination that causes trouble for all current versions of compositional discourse representation theory.

3 Summary The Composition of Discourse Meaning Merging DRSs An Unsolved Puzzle with Coordination Context and Context Extension Doing Away with the Need for Merge Handling Coordination Salience and Salience Update Reference Resolution Conclusions and Further Work

4 Dynamic Account of Linking Pronouns to Their Antecedents Basic ingredients: contexts, constraints on contexts. A DRT-style representation for a piece of text: context constraints on context

5 Information Growth through Representation Update Information conveyed by a piece of text grows... Representation structures get updated... context constraints on context update new context new constraints on context This picture can only be made to work if contexts are represented smartly.

6 Example DRT Style Initial representation for a man entered : x Mx Ex Successive update of representation: x Mx Ex A woman entered x y Mx Ex Wy Ey He smiled at her x y Mx Ex Wy Ey Sxy

7 Rational Reconstruction Assume sentences to be added to existing representation have a representation of their own: x Mx Ex + y Wy Ey = x y Mx Ex Wy Ey a man entered a woman entered

8 The Variable Clash Problem What happens if one gets a variable clash? x Mx Ex + x Wx Ex =? Note: in [Kam81] and in the DRT textbook [KR93], the merge problem does not occur.

9 Merging DRSs Compositional versions of DRT presuppose a definition of merge. Lexical entry for determiner a : λp Q. x P x Qx. Lexical entry for determiner every : λp Q. ( x P x) Qx How to pick a reference marker x? How to define?

10 Classical DRT View Compositional DRS Definition ( Zeevat-style ): Basic DRSs: (, ), (, {P r 0 r n 1 }), (, { }), ({x}, ). Merger of DRSs: δ δ := (V δ V δ, C δ C δ ). Implication of DRSs: δ δ := (, {δ δ }).

11 Semantics of DRT With respect to First Order Model M = (M, I): [(, )] = (, M U ), [(, {P r 0 r n 1 })] = (, {f M U M = f P r 0 r n 1 }), [(, { })] = (, ), [({x}, )] = ({x}, M U ), [δ δ ] := [δ] [δ ], where (X, F ) (Y, G) := (X Y, F G), [δ δ ] := [δ] [δ ], where (X, F ) (Y, G) := (, {h M U f F (if h[x]f then g G with f[y ]g)}).

12 This suggests: x Mx Ex x Wx Ex = x Mx Wx Ex Certainly not the outcome one would like. Can such variable clashes be avoided? Can such variable clashes get repaired (e.g., by means of an alternative merge operation)?

13 An Unsolved Puzzle with Coordination A man entered and a man left. a man : λq. x Mx Qx. entered : λy. left : λy. Ey and : λpq.p q. Ly This gives: a man entered and a man left : x Mx Ex Lx

14 Referent Systems [Ver95] Basic idea: distinguish two aspects of a variable: variable name variable address or memory slot Referent systems are like pointer structures in imperative programming. x [ ] [ ] x y [ ] y z [ ] [ ] u

15 Merging Reference Systems x [ ] [ ] x y [ ] y z [ ] [ ] u [ ] x [ ] x y [ ] y [ ] [ ] = x [ ] [ ] x y [ ] y z [ ] [ ]

16 Merging referent system DRSs [m] x Mx Ex [n] x Wx Ex = [m] [n] x Mx Ex Wx Ex Note that the referent m becomes unaccessible: there is no variable name attached to it anymore.

17 Sequence Semantics [Ver93] Interpret x as a stack [d 0,..., d n 1 ]. Each new introduction for x extends the stack by means of an operation [d 0,..., d n 1 ] [d 0,..., d n 1, d n ] Equivalently: assume that each variable x comes with a sequence x, x, x... of extensions. x x x x x d 0 d 1 d 2 d 3 d 4

18 New introductions are never destructive, for they refer to an extension: x Mx Ex x Wx Ex = x,x Mx Ex Wx Ex Note that both x and x remain accessible.

19 Abstraction over Context Essence of what is needed: a simplification of referent systems and sequence semantics. λ context context + context extension constraints To know how to do this, one should identify what is the essence of context.

20 The Nature of Context Contexts are (essentially) lists of reference markers. Reference markers serve to encode discourse information: keeping track of topics of discourse. Order of discourse topics is relevant: topics mentioned most recently are (other things being equal) more readily accessible for reference resolution. Additional information: Gender and number information. actor focus: agent of the sentence. discourse focus: what is talked about in the sentence.

21 How to Abstract over Context? Start out from Incremental Dynamics [Eij01]: represent a context as a stack of items. c 0 c 1 c 2 c 3 c 4 Existential quantification is context extension: c 0 c 1 c 2 c 3 +d = c 0 c 1 c 2 c 3 d Use indices to refer to context elements: n 1 n c 0 c 1 c 2 c 3 c 4 c n 1 d

22 Replacing Merge by Context Composition Types of contexts: [e]. Types of context transitions: [e] [e] t. This is the type of a characteristic function on contexts. Assume c, c :: [e] and x :: e, and define context extension: := λcc. x(cˆx = c ) Assume ϕ, ψ :: [e] [e] t and c, c composition: :: [e] and define context ϕ ; ψ := λcc. c (ϕcc ψc c )

23 New Entries for Determiners Assume P, Q :: ι [e] [e] t. Lexical entry for determiner a : λp Qc.( ; P i ; Qi)c where i = c. Universal quantification gets defined in terms of context negation: ϕ := λcc.(c = c c ϕcc ) Lexical entry for determiner every : λp Qc.( ( ; P i ; Qi))c where i = c.

24 Handling Coordination This gives: Similarly: a man : λqcc. x(mx Qi(cˆx)c )c where i = c. entered : λjcc.(c = c Ec[j]) where j c. left : λjcc.(c = c Lc[j]) where j c. and : λpq.p ; q. a man entered : λcc. x(mx E(cˆx)[i] cˆx = c ) λcc. x(mx Ex cˆx = c ). a man left : λcc. x(mx Lx cˆx = c )

25 Solution of the Coordination Problem a man entered and a man left : λcc. x(mx Ex cˆx = c ) ; λcc. x(mx Lx cˆx = c ) λcc 1. x(mx Ex cˆx = c 1 ) ; λc 2 c. y(my Ly c 2ˆy = c ) λcc. x(mx Ex y(my Ly cˆxˆy = c )).

26 Salience Anaphoric reference resolution is incremental. Information needed to determine the reference of a pronoun in a text is determined on the go, on the basis of: Syntactic properties of the sentence that contains the pronoun. Information conveyed in the previous discourse. Background information shared by speaker and hearer (the common ground).

27 Syntactic Form and Salience Surface syntactic form is an important determinant for salience. It is usually assumed that subject is more salient than object. John hit Bill. He was upset. First choice for resolving He is John. Bill got kicked by John. He was upset. First choice for resolving He is Bill. In both cases, John and Bill are the two obvious candidates for resolving the reference of the pronoun He, because both John and Bill have been made salient by the preceding text.

28 Contexts and Salience Update Consider the following context: W-Alex Maxima Nelson M Salience update in context is a reshuffle of the order of importance of the items in a context list. This may make princess Maxima the most salient item: Maxima Nelson M W-Alex

29 To allow reshuffling of a context with princess Maxima in it, in such a way that we do not loose track of her, we represent contexts as lists of indexed objects, with the indices running from 0 to the length of the context minus 1: 0 Maxima 1 Nelson M 2 W-Alex Reshuffle this to make Willem Alexander most salient: 2 W-Alex 0 Maxima 1 Nelson M Note that the indices 0,..., n 1 determine a permutation of the context list. Call these lists of indexed objects contexts under permutation.

30 Context Manipulation In a context c, the entity with index i is given by c[ i]. ( 2 W-Alex 0 Maxima 1 Nelson M ) [ 0] = Maxima

31 If c is a context under permutation, let (i)c be the result of placing the item (i, c[ i]) upfront. (1) ( 2 W-Alex 0 Maxima 1 Nelson M ) = 1 Nelson M 2 W-Alex 0 Maxima (i)c is the result of moving the item with index i to the head position of the context list. Successive applications of this operation can generate all permutations of a context.

32 If d is an object and c a context, then d : c is the result of putting item ( c, d) at the head position of the context list. Beatrix : ( 2 W-Alex 0 Maxima 1 Nelson M ) = 3 Beatrix 1 Nelson M 2 W-Alex 0 Maxima The operation (:) is used for adding a new element to the context, in most salient position.

33 Further Refinement of Entries for Determiners Let p[e] be the type of contexts under permutation. Assume c, c :: p[e], P, Q :: ι p[e] p[e] t. New definition of context extension := λcc. x((x : c) = c ) Lexical entries for determiners now use this new definition instead of the old one.

34 The new translation of a man effects a salience reshuffle: λqcc x(man(x) Qi(x : c)c ) where i = c. The referent for the indefinite that gets introduced appears in most salient position in the new context. Note that (x : c)[ i] points to the newly introduced referent x. In any c that is an extension or permutation of (x : c), c [ i] will continue to point to x.

35 Discussion It may seem that the integration of salience reshuffling in dynamic semantics precludes an account of the role of surface syntax in establishing salience. The context semantics is flexible enough to take syntactic effects on salience ordering into account. Lambda abstraction allows us to make flexible use of the salience updating mechanism. In systems of typed logic, predicate argument structure is a feature of the surface syntax of the logic.

36 Consider the difference between the following formulas: (λxy.kxy)(b)(j) (λxy.kyx)(j)(b) (λx.kbx)(j) All of these reduce to Kbj, but the predicate argument structure is different. Surface predicate argument structure of lambda expressions can be used to encode the relevant salience features of surface syntax.

37 We can get the right salience effects from the surface word order of examples like the following: Bill kicked John. John got kicked by Bill. John, Bill kicked. To get the desired salience effect, make make sure that the sentence gets translated into a lambda expression with the appropriate predicate argument structure. Next, use this expression for the salience update of the appropriate contexts.

38 Reference Resolution Reference resolution picks the indices of the entities satifying the appropriate gender constraint from the current state, in order of salience. The result of reference resolution is a list of indices, in an order of preference determined by the salience ordering of the state. The meaning of a pronoun, given a state, is an invitation to pick indices from the state, and use those indices to link pronouns to entities. This can be further refined in a set-up that also stores syntactic information (about gender, case, and so on) as part of the contexts.

39 Conclusions The proposed reference resolution mechanism provides an ordering of resolution options determined by syntactic structure, semantic structure, and discourse structure. Pronoun reference resolution can be brought within the compass of dynamic semantics in a relatively straightforward way. The mechanism can be viewed as an extension of pronoun reference resolution mechanisms proposed for DRT [WA86, BB99]. With minimal modification, the proposal also takes the so-called actor focus from the centering theory of local coherence in discourse [GS86, GJW95] into account. Contexts ordered by salience are a suitable datastructure for further refinement of the reference resolution mechanism by means of modules for discourse focus and world knowledge [WJP98].

40 Further Work Plurals and Collective Entities: (Nouwen, this conference) Dialogue Functional approach to parsing. Link up with work on linear grammars. Integration with Visser Style Context Updates The Proper Treatment of Modality and Information Update.

41 References [BB99] P. Blackburn and J. Bos. Representation and Inference for Natural Language; A First Course in Computational Semantics Two Volumes. Internet, Electronically available from [Eij01] J. van Eijck. Incremental dynamics. Journal of Logic, Language and Information, 10: , [GJW95] B. Grosz, A. Joshi, and S. Weinstein. Centering: A framework for modeling the local coherence of discourse. Computational Linguistics, 21: , [GS86] B.J. Grosz and C.L. Sidner. Attention, intentions, and the structure of discourse. Computational Linguistics, 12: , 1986.

42 [Kam81] H. Kamp. A theory of truth and semantic representation. In J. Groenendijk et al., editors, Formal Methods in the Study of Language. Mathematisch Centrum, Amsterdam, [KR93] H. Kamp and U. Reyle. From Discourse to Logic. Kluwer, Dordrecht, [Ver93] C.F.M. Vermeulen. Sequence semantics for dynamic predicate logic. Journal of Logic, Language, and Information, 2: , [Ver95] C.F.M. Vermeulen. Merging without mystery. Journal of Philosophical Logic, 24: , [WA86] H. Wada and N. Asher. BUILDRS: An implementation of DR theory and LFG. In 11th International Conference on Computational Linguistics. Proceedings of Coling 86, University of Bonn, 1986.

43 [WJP98] M. Walker, A. Joshi, and E. Prince, editors. Centering Theory in Discourse. Clarendon Press, 1998.

Coreference without Discourse Referents

Coreference without Discourse Referents Coreference without Discourse Referents A non-representational DRT-like discourse semantics Gianluca Giorgolo, Christina Unger UiL-OTS, Universiteit Utrecht Abstract We propose a non-representational,

More information

COMPUTATIONAL SEMANTICS WITH FUNCTIONAL PROGRAMMING JAN VAN EIJCK AND CHRISTINA UNGER. lg Cambridge UNIVERSITY PRESS

COMPUTATIONAL SEMANTICS WITH FUNCTIONAL PROGRAMMING JAN VAN EIJCK AND CHRISTINA UNGER. lg Cambridge UNIVERSITY PRESS COMPUTATIONAL SEMANTICS WITH FUNCTIONAL PROGRAMMING JAN VAN EIJCK AND CHRISTINA UNGER lg Cambridge UNIVERSITY PRESS ^0 Contents Foreword page ix Preface xiii 1 Formal Study of Natural Language 1 1.1 The

More information

LING 130: Quantified Noun Phrases

LING 130: Quantified Noun Phrases LING 130: Quantified Noun Phrases James Pustejovsky March 15, 2010 1 Syntax for Typed λ-calculus We will now present a language which uses specific types of entities, where the entities are combined with

More information

Discourse Representation Theory Building Discourse Representations

Discourse Representation Theory Building Discourse Representations and and Lehrstuhl für Künstliche Intelligenz Institut für Informatik Friedrich-Alexander-Universität Erlangen-Nürnberg 13. Januar 2006 1 1 Slides are mainly due to Johan Bos lecture on Semantics (GSLT)

More information

Syntax-semantics interface and the non-trivial computation of meaning

Syntax-semantics interface and the non-trivial computation of meaning 1 Syntax-semantics interface and the non-trivial computation of meaning APA/ASL Group Meeting GVI-2: Lambda Calculi, Type Systems, and Applications to Natural Language APA Eastern Division 108th Annual

More information

13. Januar Semantics (GSLT) Lehrstuhl für Künstliche Intelligenz Institut für Informatik Friedrich-Alexander-Universität Erlangen-Nürnberg

13. Januar Semantics (GSLT) Lehrstuhl für Künstliche Intelligenz Institut für Informatik Friedrich-Alexander-Universität Erlangen-Nürnberg and : and : Lehrstuhl für Künstliche Intelligenz Institut für Informatik Friedrich-Alexander-Universität Erlangen-Nürnberg 13. Januar 2006 1 1 Slides are mainly due to Johan Bos lecture on (GSLT) Overview

More information

Indefinites and Sluicing. A type logical approach

Indefinites and Sluicing. A type logical approach Indefinites and Sluicing. A type logical approach Gerhard Jäger Zentrum für Allgemeine Sprachwissenschaft Berlin Abstract Following Jäger (2001a), we propose to extend the Lambek calculus with two additional

More information

Quantification. Using the suggested notation, symbolize the statements expressed by the following sentences.

Quantification. Using the suggested notation, symbolize the statements expressed by the following sentences. Quantification In this and subsequent chapters, we will develop a more formal system of dealing with categorical statements, one that will be much more flexible than traditional logic, allow a deeper analysis

More information

Towards a Dynamic Type Theory. Michael Kohlhase and Susanna Kuschert. Universitat des Saarlandes

Towards a Dynamic Type Theory. Michael Kohlhase and Susanna Kuschert. Universitat des Saarlandes Towards a Dynamic Type Theory Michael Kohlhase and Susanna Kuschert Universitat des Saarlandes Over the past few years, there have been a series of attempts [Zee89, GS90, EK95, Mus94, KKP95] to combine

More information

Type raising, continuations, and classical logic

Type raising, continuations, and classical logic Type raising, continuations, and classical logic Philippe de Groote Inria-Lorraine Abstract. There is a striking analogy between type raising, as introduced by Montague (973), and the notion of continuation

More information

Going beyond propositional logic

Going beyond propositional logic Going beyond propositional logic Consider the following statements: p: Ling took CS245 q: Ling passed CS245 r: Ling failed CS245 Taken literally, these are all atomic statements, and formally they have

More information

Discourse Representation Structures for ACE 5

Discourse Representation Structures for ACE 5 Discourse Representation Structures for CE 5 Technical Report ifi-2006.10 Norbert E. Fuchs 1, Stefan Hoefler 2, Kaarel Kaljurand 1 Tobias Kuhn 1, Gerold Schneider 1, Uta Schwertel 3 1 Department of Informatics

More information

Lexicografie computationala Feb., 2012

Lexicografie computationala Feb., 2012 Lexicografie computationala Feb., 2012 Anca Dinu University of Bucharest Introduction When we construct meaning representations systematically, we integrate information from two different sources: 1. The

More information

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1

Proseminar on Semantic Theory Fall 2013 Ling 720 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1 An Algebraic Perspective on the Syntax of First Order Logic (Without Quantification) 1 1. Statement of the Problem, Outline of the Solution to Come (1) The Key Problem There is much to recommend an algebraic

More information

Knowledge Representation

Knowledge Representation Knowledge Representation References Rich and Knight, Artificial Intelligence, 2nd ed. McGraw-Hill, 1991 Russell and Norvig, Artificial Intelligence: A modern approach, 2nd ed. Prentice Hall, 2003 Outline

More information

arxiv: v2 [cs.ai] 18 Sep 2013

arxiv: v2 [cs.ai] 18 Sep 2013 Lambda Dependency-Based Compositional Semantics Percy Liang September 19, 2013 arxiv:1309.4408v2 [cs.ai] 18 Sep 2013 Abstract This short note presents a new formal language, lambda dependency-based compositional

More information

Attempto Controlled English: Language, Tools and Applications. Getting Started

Attempto Controlled English: Language, Tools and Applications. Getting Started Attempto Controlled English: Language, Tools and Applications Getting Started Norbert E. Fuchs, Kaarel Kaljurand Department of Informatics & Institute of Computational Linguistics University of Zurich

More information

X-KIF New Knowledge Modeling Language

X-KIF New Knowledge Modeling Language Proceedings of I-MEDIA 07 and I-SEMANTICS 07 Graz, Austria, September 5-7, 2007 X-KIF New Knowledge Modeling Language Michal Ševčenko (Czech Technical University in Prague sevcenko@vc.cvut.cz) Abstract:

More information

Solving Natural Language Math Problems

Solving Natural Language Math Problems Solving Natural Language Math Problems Takuya Matsuzaki (Nagoya University) Noriko H. Arai (National Institute of Informatics) Solving NL Math why? It is the first and the last goal of symbolic approach

More information

Lecture 5. Logic I. Statement Logic

Lecture 5. Logic I. Statement Logic Ling 726: Mathematical Linguistics, Logic. Statement Logic V. Borschev and B. Partee, September 27, 2 p. Lecture 5. Logic I. Statement Logic. Statement Logic...... Goals..... Syntax of Statement Logic....2.

More information

UGroningen: Negation detection with Discourse Representation Structures

UGroningen: Negation detection with Discourse Representation Structures UGroningen: Negation detection with Discourse Representation Structures Valerio Basile and Johan Bos and Kilian Evang and Noortje Venhuizen {v.basile,johan.bos,k.evang,n.j.venhuizen}@rug.nl Center for

More information

An Efficient Implementation of PATR for Categorial Unification Grammar

An Efficient Implementation of PATR for Categorial Unification Grammar An Efficient Implementation of PATR for Categorial Unification Grammar Todd Yampol Stanford University Lauri Karttunen Xerox PARC and CSLI 1 Introduction This paper describes C-PATR, a new C implementation

More information

Let s Talk About Logic

Let s Talk About Logic Let s Talk About Logic Jan van Eijck CWI & ILLC, Amsterdam Masterclass Logica, 2 Maart 2017 Abstract This lecture shows how to talk about logic in computer science. To keep things simple, we will focus

More information

More Theories, Formal semantics

More Theories, Formal semantics Parts are based on slides by Carl Pollard Charles University, 2011-11-12 Optimality Theory Universal set of violable constraints: Faithfulness constraints:surface forms should be as close as to underlying

More information

Semantics and Pragmatics of NLP Propositional Logic, Predicates and Functions

Semantics and Pragmatics of NLP Propositional Logic, Predicates and Functions , Semantics and Pragmatics of NLP, and s Alex Ewan School of Informatics University of Edinburgh 10 January 2008 , 1 2 3 4 Why Bother?, Aim: 1 To associate NL expressions with semantic representations;

More information

Individuals, equivalences and quotients. in type theoretical semantics.

Individuals, equivalences and quotients. in type theoretical semantics. Individuals, equivalences and quotients in type theoretical semantics. Christian Retoré (Univ. Montpellier & LIRMM/Texte ) Léo Zaradzki (Univ. Paris Diderot & CRI & LLF) Logic Colloquium Udine Luglio 23-28

More information

Type-theoretical natural-language semantics: on the system F for meaning assembly. Types 2013

Type-theoretical natural-language semantics: on the system F for meaning assembly. Types 2013 Type-theoretical natural-language semantics: on the system F for meaning assembly Christian Retoré Université de Bordeaux & IRIT-CNRS Toulouse Types 2013 A Reminder on Montague semantics A.1. Mind that

More information

6.1 Basics of functional type theory, semantics of serial verbs via function composition.

6.1 Basics of functional type theory, semantics of serial verbs via function composition. PART 6. SEMANTIC PARSING OF THE VERB CLUSTER IN DUTCH AND GERMAN 6.1 Basics of functional type theory, semantics of serial verbs via function composition. Basics of functional type theory (ignoring intensionality)

More information

INTENSIONAL LOGIC TRANSLATION FOR QUANTITATIVE NATURAL LANGUAGE SENTENCES

INTENSIONAL LOGIC TRANSLATION FOR QUANTITATIVE NATURAL LANGUAGE SENTENCES STUDIA UNIV. BABEŞ BOLYAI, INFORMATICA, Volume XLV, Number 1, 2001 INTENSIONAL LOGIC TRANSLATION FOR QUANTITATIVE NATURAL LANGUAGE SENTENCES ADRIAN ONEŢ, DOINA TĂTAR Abstract. The performance of some natural

More information

Computation Club: Gödel s theorem

Computation Club: Gödel s theorem Computation Club: Gödel s theorem The big picture mathematicians do a lot of reasoning and write a lot of proofs formal systems try to capture the ideas of reasoning and proof in a purely mechanical set

More information

Compiler Theory. (Semantic Analysis and Run-Time Environments)

Compiler Theory. (Semantic Analysis and Run-Time Environments) Compiler Theory (Semantic Analysis and Run-Time Environments) 005 Semantic Actions A compiler must do more than recognise whether a sentence belongs to the language of a grammar it must do something useful

More information

CS112 Friday, September 12, 2008

CS112 Friday, September 12, 2008 CS112 Friday, September 12, 2008 Agenda Natural Deduction Questions FOL Translations FOL Interpretations Natural Deduction Questions? First Order Logic Translations Symbolization Key Universe of Discourse

More information

Linguistics and Philosophy 23: , Is Compositionality Formally Vacuous? Francis Jeffry Pelletier

Linguistics and Philosophy 23: , Is Compositionality Formally Vacuous? Francis Jeffry Pelletier Linguistics and Philosophy 23: 629-633, 1998 Is Compositionality Formally Vacuous? Ali Kazmi Dept. Philosophy Univ. Calgary Francis Jeffry Pelletier Dept. Philosophy Univ. Alberta We prove a theorem stating

More information

Programming Languages Third Edition

Programming Languages Third Edition Programming Languages Third Edition Chapter 12 Formal Semantics Objectives Become familiar with a sample small language for the purpose of semantic specification Understand operational semantics Understand

More information

Software Paradigms (Lesson 6) Logic Programming

Software Paradigms (Lesson 6) Logic Programming Software Paradigms (Lesson 6) Logic Programming Table of Contents 1 Introduction... 2 2 Facts... 3 3 Predicates (Structured Terms)... 4 3.1 General Structures... 4 3.2 Predicates (Syntax)... 4 3.3 Simple

More information

An Inference Engine with a Natural Language Interface

An Inference Engine with a Natural Language Interface An Inference Engine with a Natural Language Interface Jan van Eijck, CWI Amsterdam and Uil-OTS Utrecht LOT Summer School, June 15, 2009 Overview The Aristotelian quantifiers A natural language engine for

More information

J A N V A N E I J C K A N D N I S S I M F R A N C E Z Verb-phrase Ellipsis in Dynamic Semantics Abstract. We study Verb-phrase Ellipsis (VPE) and show

J A N V A N E I J C K A N D N I S S I M F R A N C E Z Verb-phrase Ellipsis in Dynamic Semantics Abstract. We study Verb-phrase Ellipsis (VPE) and show J A N V A N E I J C K A N D N I S S I M F R A N C E Z Verb-phrase Ellipsis in Dynamic Semantics Abstract. We study Verb-phrase Ellipsis (VPE) and show its relationship to presupposition and its failure.

More information

8 Pronouns and Variable Assignments

8 Pronouns and Variable Assignments 8 Pronouns and Variable Assignments It is useful for this section to work with two slight changes of our previous notation: First, the restriction of functions given in lambda terms can be expressed as

More information

LOGIC AND DISCRETE MATHEMATICS

LOGIC AND DISCRETE MATHEMATICS LOGIC AND DISCRETE MATHEMATICS A Computer Science Perspective WINFRIED KARL GRASSMANN Department of Computer Science University of Saskatchewan JEAN-PAUL TREMBLAY Department of Computer Science University

More information

Logic and Natural Language Semantics: Formal Semantics

Logic and Natural Language Semantics: Formal Semantics Logic and Natural Language Semantics: Formal Semantics Raffaella Bernardi DISI, University of Trento e-mail: bernardi@disi.unitn.it Contents 1 Logic....................................................

More information

COLLAGEN: Applying Collaborative Discourse Theory to Human-Computer Interaction. Charles Rich Candace L. Sidner Neal Lesh

COLLAGEN: Applying Collaborative Discourse Theory to Human-Computer Interaction. Charles Rich Candace L. Sidner Neal Lesh COLLAGEN: Applying Collaborative Discourse Theory to Human-Computer Interaction Charles Rich Candace L. Sidner Neal Lesh Mitsubishi Electric Research Laboratories Cambridge, Massachusetts 1 Road Map Philosophy

More information

F08: Intro to Composition

F08: Intro to Composition F08: Intro to Composition Semantics - Ling 331/731 University of Kansas 1 erbs as functions (1). Here is a sadly simplified sentence structure: S P P There are two lexical items that feed this structure:

More information

The Metalanguage λprolog and Its Implementation

The Metalanguage λprolog and Its Implementation The Metalanguage λprolog and Its Implementation Gopalan Nadathur Computer Science Department University of Minnesota (currently visiting INRIA and LIX) 1 The Role of Metalanguages Many computational tasks

More information

Delimited Continuations, Applicative Functors and Natural Language Semantics

Delimited Continuations, Applicative Functors and Natural Language Semantics Delimited Continuations, Applicative Functors and Natural Language Semantics Björn Bringert Department of Computer Science and Engineering Chalmers University of Technology and University of Gothenburg

More information

2 Ambiguity in Analyses of Idiomatic Phrases

2 Ambiguity in Analyses of Idiomatic Phrases Representing and Accessing [Textual] Digital Information (COMS/INFO 630), Spring 2006 Lecture 22: TAG Adjunction Trees and Feature Based TAGs 4/20/06 Lecturer: Lillian Lee Scribes: Nicolas Hamatake (nh39),

More information

Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1

Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1 Natural Semantics Goals: Define the syntax of a simple imperative language Define a semantics using natural deduction 1 1 Natural deduction is an instance of first-order logic; that is, it is the formal

More information

Issues for the Generation of Document Deixis

Issues for the Generation of Document Deixis Paper 7 Issues for the Generation of Document Deixis IVANDRÉ PARABONI AND KEES VAN DEEMTER ITRI, UNIVERSITY OF BRIGHTON, UK fivandre.paraboni,kees.van.deemterg@itri.brighton.ac.uk ABSTRACT. In this paper

More information

Propositional Logic Formal Syntax and Semantics. Computability and Logic

Propositional Logic Formal Syntax and Semantics. Computability and Logic Propositional Logic Formal Syntax and Semantics Computability and Logic Syntax and Semantics Syntax: The study of how expressions are structured (think: grammar) Semantics: The study of the relationship

More information

Introduction to Lexical Functional Grammar. Wellformedness conditions on f- structures. Constraints on f-structures

Introduction to Lexical Functional Grammar. Wellformedness conditions on f- structures. Constraints on f-structures Introduction to Lexical Functional Grammar Session 8 f(unctional)-structure & c-structure/f-structure Mapping II & Wrap-up Summary of last week s lecture LFG-specific grammar rules (i.e. PS-rules annotated

More information

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine.

1. true / false By a compiler we mean a program that translates to code that will run natively on some machine. 1. true / false By a compiler we mean a program that translates to code that will run natively on some machine. 2. true / false ML can be compiled. 3. true / false FORTRAN can reasonably be considered

More information

CSC 501 Semantics of Programming Languages

CSC 501 Semantics of Programming Languages CSC 501 Semantics of Programming Languages Subtitle: An Introduction to Formal Methods. Instructor: Dr. Lutz Hamel Email: hamel@cs.uri.edu Office: Tyler, Rm 251 Books There are no required books in this

More information

1 Ellipsis resolution as a semantic relation between source and target. Dalrymple et al. (1991), Shieber et al. (1996): The equational analysis

1 Ellipsis resolution as a semantic relation between source and target. Dalrymple et al. (1991), Shieber et al. (1996): The equational analysis Ellipsis Resource accounting at the syntax-semantics interface 26 Feb 02 The basic data (1) Ellipsis resolution: a. John saw a flying saucer, and Bill did too. b. = Bill saw a flying saucer. (2) Strict

More information

Dynamic Lambda Calculus. Michael Kohlhase, Susanna Kuschert. Universitat des Saarlandes

Dynamic Lambda Calculus. Michael Kohlhase, Susanna Kuschert. Universitat des Saarlandes Dynamic Lambda Calculus Michael Kohlhase, Susanna Kuschert Universitat des Saarlandes The goal of this paper is to lay a logical foundation for discourse theories by providing an algebraic foundation of

More information

Semantics and First-Order Predicate Calculus

Semantics and First-Order Predicate Calculus Semantics and First-Order Predicate Calculus 11-711 Algorithms for NLP 17 November 2016 (With thanks to Noah Smith) Key Challenge of Meaning We actually say very little - much more is left unsaid, because

More information

Well-formed Default Unification in Non-deterministic Multiple Inheritance Hierarchies

Well-formed Default Unification in Non-deterministic Multiple Inheritance Hierarchies Well-formed Default Unification in Non-deterministic Multiple Inheritance Hierarchies Christian Schulz, Jan Alexandersson and Tilman Becker DFKI, Saarbrücken 1 Introduction Default unification represents

More information

Some Interdefinability Results for Syntactic Constraint Classes

Some Interdefinability Results for Syntactic Constraint Classes Some Interdefinability Results for Syntactic Constraint Classes Thomas Graf tgraf@ucla.edu tgraf.bol.ucla.edu University of California, Los Angeles Mathematics of Language 11 Bielefeld, Germany 1 The Linguistic

More information

- Propositions describe relationship between different kinds

- Propositions describe relationship between different kinds SYNTAX OF THE TECTON LANGUAGE D. Kapur, D. R. Musser, A. A. Stepanov Genera1 Electric Research & Development Center ****THS S A WORKNG DOCUMENT. Although it is planned to submit papers based on this materia1

More information

Research Seminar The syntax and semantics of questions Spring 1999 February 16, 1999 Week 3: Introduction to the semantics of questions

Research Seminar The syntax and semantics of questions Spring 1999 February 16, 1999 Week 3: Introduction to the semantics of questions 050.822 Research Seminar The syntax and semantics of questions Spring 1999 February 16, 1999 Paul Hagstrom Week : Introduction to the semantics of questions The Semantics of Questions (Hamblin 1958) The

More information

Lecture 4: January 12, 2015

Lecture 4: January 12, 2015 32002: AI (First Order Predicate Logic, Interpretation and Inferences) Spring 2015 Lecturer: K.R. Chowdhary Lecture 4: January 12, 2015 : Professor of CS (VF) Disclaimer: These notes have not been subjected

More information

Semantics. Doug Arnold (L A TEX for Linguists) September 25, 2007

Semantics. Doug Arnold (L A TEX for Linguists) September 25, 2007 Semantics Doug Arnold (L A TEX for Linguists) September 25, 2007 1 Introduction TEX and L A TEX are very good at typesetting logic so typesetting most bits of semantics is very easy, just using the things

More information

CS 6110 S14 Lecture 1 Introduction 24 January 2014

CS 6110 S14 Lecture 1 Introduction 24 January 2014 CS 6110 S14 Lecture 1 Introduction 24 January 2014 1 Introduction What is a program? Is it just something that tells the computer what to do? Yes, but there is much more to it than that. The basic expressions

More information

Yi-Hsun Chen Feb 11, Compositional semantics of interrogative clauses

Yi-Hsun Chen Feb 11, Compositional semantics of interrogative clauses Yi-Hsun Chen Feb 11, 2015 1.1 Hagstrom (2003) 1. Compositional semantics of interrogative clauses Observe that ANSPOSS and ANSTRUE are sets of propositions, whereas ANSEXH is just a single proposition.

More information

Semantics and Pragmatics of NLP

Semantics and Pragmatics of NLP Semantics and Pragmatics of NLP Alex Ewan School of Informatics University of Edinburgh 10 January 2008 1 2 3 Transitive Verbs as Functions We looked at replacing n-ary relations with functions. How does

More information

Harvard School of Engineering and Applied Sciences CS 152: Programming Languages

Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Lecture 18 Thursday, April 3, 2014 1 Error-propagating semantics For the last few weeks, we have been studying type systems.

More information

Hagstrom, Chapter 5 A semantics for single questions and indefinites Presented by Yağmur Sağ

Hagstrom, Chapter 5 A semantics for single questions and indefinites Presented by Yağmur Sağ Hagstrom, 1998- Chapter 5 A semantics for single questions and indefinites Presented by Yağmur Sağ I. Introduction Aim of the paper To assign a consistent semantic contribution to the -ka morpheme which

More information

Computational Linguistics: Feature Agreement

Computational Linguistics: Feature Agreement Computational Linguistics: Feature Agreement Raffaella Bernardi Contents 1 Admin................................................... 4 2 Formal Grammars......................................... 5 2.1 Recall:

More information

Logical Grammar: Introduction to Hyperintensional S

Logical Grammar: Introduction to Hyperintensional S Logical Grammar: Introduction to Hyperintensional Semantics Department of Linguistics Ohio State University July 8, 2011 What was Wrong with Montague Semantics? (1/2) Montague (late 1960s) was first to

More information

Anaphora and the Logic of Change

Anaphora and the Logic of Change Anaphora and the Logic of Change Reinhard Muskens 1 Introduction There are three major currents in semantic theory these days. First there is what Chierchia [1990] aptly calls what is alive of classical

More information

Semantics of programming languages

Semantics of programming languages Semantics of programming languages Informatics 2A: Lecture 27 John Longley School of Informatics University of Edinburgh jrl@inf.ed.ac.uk 21 November, 2011 1 / 19 1 2 3 4 2 / 19 Semantics for programming

More information

Introductory logic and sets for Computer scientists

Introductory logic and sets for Computer scientists Introductory logic and sets for Computer scientists Nimal Nissanke University of Reading ADDISON WESLEY LONGMAN Harlow, England II Reading, Massachusetts Menlo Park, California New York Don Mills, Ontario

More information

F15: Formalizing definiteness

F15: Formalizing definiteness F15: Formalizing definiteness Ling 331 / 731 Spring 2016 We saw how the truth-conditional meaning of definiteness involves reference and a presupposition of uniqueness We know the syntactic structure of

More information

An Extensible Toolkit for Computational Semantics

An Extensible Toolkit for Computational Semantics An Extensible Toolkit for Computational Semantics Dan Garrette dhgarrette@gmail.com Ewan Klein University of Edinburgh ewan@inf.ed.ac.uk 1 Introduction In this paper we focus on the software for computational

More information

Using Distributed NLP to Bootstrap Semantic Representations from Web Resources

Using Distributed NLP to Bootstrap Semantic Representations from Web Resources Using Distributed NLP to Bootstrap Semantic Representations from Web Resources Núria Bertomeu Harry Halpin Yi Zhang Motivation Large domain ontologies are being created in the Web. Bootstraping the content

More information

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation

Chapter 1.3 Quantifiers, Predicates, and Validity. Reading: 1.3 Next Class: 1.4. Motivation Chapter 1.3 Quantifiers, Predicates, and Validity Reading: 1.3 Next Class: 1.4 1 Motivation Propositional logic allows to translate and prove certain arguments from natural language If John s wallet was

More information

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS

This is already grossly inconvenient in present formalisms. Why do we want to make this convenient? GENERAL GOALS 1 THE FORMALIZATION OF MATHEMATICS by Harvey M. Friedman Ohio State University Department of Mathematics friedman@math.ohio-state.edu www.math.ohio-state.edu/~friedman/ May 21, 1997 Can mathematics be

More information

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory

Logic as a framework for NL semantics. Outline. Syntax of FOL [1] Semantic Theory Type Theory Logic as a framework for NL semantics Semantic Theory Type Theory Manfred Pinkal Stefan Thater Summer 2007 Approximate NL meaning as truth conditions. Logic supports precise, consistent and controlled

More information

Handout 10: Imperative programs and the Lambda Calculus

Handout 10: Imperative programs and the Lambda Calculus 06-02552 Princ of Progr Languages (and Extended ) The University of Birmingham Spring Semester 2016-17 School of Computer Science c Uday Reddy2016-17 Handout 10: Imperative programs and the Lambda Calculus

More information

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic.

Overview. CS389L: Automated Logical Reasoning. Lecture 6: First Order Logic Syntax and Semantics. Constants in First-Order Logic. Overview CS389L: Automated Logical Reasoning Lecture 6: First Order Logic Syntax and Semantics Işıl Dillig So far: Automated reasoning in propositional logic. Propositional logic is simple and easy to

More information

Lecture 7. Introduction to Function-Argument Structure and Lambdas. 1. Function-argument structure in natural language

Lecture 7. Introduction to Function-Argument Structure and Lambdas. 1. Function-argument structure in natural language B. Partee, March 15, 2006 p.1 Lecture 7. Introduction to Function-Argument Structure and Lambdas 1. Function-argument structure in natural language...1 1.1. Function-argument application as basic semantic

More information

Extracting the Range of cps from Affine Typing

Extracting the Range of cps from Affine Typing Extracting the Range of cps from Affine Typing Extended Abstract Josh Berdine, Peter W. O Hearn Queen Mary, University of London {berdine, ohearn}@dcs.qmul.ac.uk Hayo Thielecke The University of Birmingham

More information

6.863J Natural Language Processing Lecture 16: The meaning of it all, #2. (or #42) Instructor: Robert C. Berwick

6.863J Natural Language Processing Lecture 16: The meaning of it all, #2. (or #42) Instructor: Robert C. Berwick 6.863J Natural Language Processing Lecture 16: The meaning of it all, #2 (or #42) Instructor: Robert C. Berwick berwick@ai.mit.edu The Menu Bar Administrivia: Lab 4a out April 14 Agenda: What does this

More information

SEMANTIC ANALYSIS TYPES AND DECLARATIONS

SEMANTIC ANALYSIS TYPES AND DECLARATIONS SEMANTIC ANALYSIS CS 403: Type Checking Stefan D. Bruda Winter 2015 Parsing only verifies that the program consists of tokens arranged in a syntactically valid combination now we move to check whether

More information

Computational Syntax & Compositional Semantics for Natural Language

Computational Syntax & Compositional Semantics for Natural Language Computational Syntax & Compositional Semantics for Natural Language c 2017, Ted Briscoe, GS18 October 23, 2017 Abstract This handout builds on the L95 Intro to Linguistics handout by presenting formal

More information

ARTIFICIAL INTELLIGENCE. Uncertainty: fuzzy systems

ARTIFICIAL INTELLIGENCE. Uncertainty: fuzzy systems INFOB2KI 2017-2018 Utrecht University The Netherlands ARTIFICIAL INTELLIGENCE Uncertainty: fuzzy systems Lecturer: Silja Renooij These slides are part of the INFOB2KI Course Notes available from www.cs.uu.nl/docs/vakken/b2ki/schema.html

More information

Getting Started With Syntax October 15, 2015

Getting Started With Syntax October 15, 2015 Getting Started With Syntax October 15, 2015 Introduction The Accordance Syntax feature allows both viewing and searching of certain original language texts that have both morphological tagging along with

More information

Chapter 2 & 3: Representations & Reasoning Systems (2.2)

Chapter 2 & 3: Representations & Reasoning Systems (2.2) Chapter 2 & 3: A Representation & Reasoning System & Using Definite Knowledge Representations & Reasoning Systems (RRS) (2.2) Simplifying Assumptions of the Initial RRS (2.3) Datalog (2.4) Semantics (2.5)

More information

Z Notation. June 21, 2018

Z Notation. June 21, 2018 Z Notation June 21, 2018 1 Definitions There are many different ways to introduce an object in a Z specification: declarations, abbreviations, axiomatic definitions, and free types. Keep in mind that the

More information

1. Logic as a subject matter is the study of logics, understood as models of acceptable inference patterns

1. Logic as a subject matter is the study of logics, understood as models of acceptable inference patterns Lecture 9: Propositional Logic I Philosophy 130 23 & 28 October 2014 O Rourke I. Administrative A. Problem sets due Thursday, 30 October B. Midterm course evaluations C. Questions? II. Logic and Form A.

More information

1 Introduction. 2 Set-Theory Formalisms. Formal Semantics -W2: Limitations of a Set-Theoretic Model SWU LI713 Meagan Louie August 2015

1 Introduction. 2 Set-Theory Formalisms. Formal Semantics -W2: Limitations of a Set-Theoretic Model SWU LI713 Meagan Louie August 2015 Formal Semantics -W2: Limitations of a Set-Theoretic Model SWU LI713 Meagan Louie August 2015 1 Introduction Recall from last week: The Semantic System 1. The Model/Ontology 2. Lexical Entries 3. Compositional

More information

Operational Semantics

Operational Semantics 15-819K: Logic Programming Lecture 4 Operational Semantics Frank Pfenning September 7, 2006 In this lecture we begin in the quest to formally capture the operational semantics in order to prove properties

More information

Abstract register machines Lecture 23 Tuesday, April 19, 2016

Abstract register machines Lecture 23 Tuesday, April 19, 2016 Harvard School of Engineering and Applied Sciences CS 152: Programming Languages Lecture 23 Tuesday, April 19, 2016 1 Why abstract machines? So far in the class, we have seen a variety of language features.

More information

Intro to Haskell Notes: Part 5

Intro to Haskell Notes: Part 5 Intro to Haskell Notes: Part 5 Adrian Brasoveanu October 5, 2013 Contents 1 Curried functions and related issues 1 1.1 Curried functions......................................... 1 1.2 Partially applied

More information

An Inverse Lambda Calculus Algorithm. For Natural Language Processing. Marcos Alvarez Gonzalez

An Inverse Lambda Calculus Algorithm. For Natural Language Processing. Marcos Alvarez Gonzalez An Inverse Lambda Calculus Algorithm For Natural Language Processing by Marcos Alvarez Gonzalez A Thesis Presented In Partial Fulfillment of the Requirements for the Degree Master of Science Approved November

More information

A simple syntax-directed

A simple syntax-directed Syntax-directed is a grammaroriented compiling technique Programming languages: Syntax: what its programs look like? Semantic: what its programs mean? 1 A simple syntax-directed Lexical Syntax Character

More information

Dependency and (R)MRS

Dependency and (R)MRS Dependency and (R)MRS Ann Copestake aac@cl.cam.ac.uk December 9, 2008 1 Introduction Note: for current purposes, this document lacks a proper introduction, in that it assumes readers know about MRS and

More information

Lambda Calculus. Lambda Calculus

Lambda Calculus. Lambda Calculus Lambda Calculus Formalism to describe semantics of operations in functional PLs Variables are free or bound Function definition vs function abstraction Substitution rules for evaluating functions Normal

More information

6.821 Programming Languages Handout Fall 2002 MASSACHVSETTS INSTITVTE OF TECHNOLOGY Department of Electrical Engineering and Compvter Science

6.821 Programming Languages Handout Fall 2002 MASSACHVSETTS INSTITVTE OF TECHNOLOGY Department of Electrical Engineering and Compvter Science 6.821 Programming Languages Handout Fall 2002 MASSACHVSETTS INSTITVTE OF TECHNOLOGY Department of Electrical Engineering and Compvter Science Problem Set 8 Problem 1: Concurrency Dr. Brian Storm is working

More information

September 6, 2011 Sinn und Bedeutung 16 University of Utrecht

September 6, 2011 Sinn und Bedeutung 16 University of Utrecht M, η, Gianluca Giorgolo Gianluca_Giorgolo@carleton.ca Carleton University Ash Asudeh ash.asudeh@ling-phil.ox.ac.uk Carleton University & University of Oxford September 6, 2011 Sinn und Bedeutung 16 University

More information

Note that in this definition, n + m denotes the syntactic expression with three symbols n, +, and m, not to the number that is the sum of n and m.

Note that in this definition, n + m denotes the syntactic expression with three symbols n, +, and m, not to the number that is the sum of n and m. CS 6110 S18 Lecture 8 Structural Operational Semantics and IMP Today we introduce a very simple imperative language, IMP, along with two systems of rules for evaluation called small-step and big-step semantics.

More information

The Syntax of auto Declarations

The Syntax of auto Declarations 2007-08-01 Daveed Vandevoorde daveed@edg.com 1 The Issues Two proposed new uses of the keyword auto (one of which is already in the Working Paper) are raising new parsing ambiguity issues. The issues arise

More information