Bogdan Gapinski Semantics: Modal Logics / Applicative Categorical Grammars Presentation based on the book “Type-Logical Semantics” by Bob Carpenter.

Slides:



Advertisements
Similar presentations
Semantics (Representing Meaning)
Advertisements

Rigorous Software Development CSCI-GA Instructor: Thomas Wies Spring 2012 Lecture 11.
Almen sproglig viden og metode (General Linguistics)
Modality Lecture 10. Language is not merely used for conveying factual information A speaker may wish to indicate a degree of certainty to try to influence.
Grammars, constituency and order A grammar describes the legal strings of a language in terms of constituency and order. For example, a grammar for a fragment.
Identifying Prepositional Phrases
4 Main Parts of Speech Nouns Verbs Adjectives Adverbs.
Syntax: The Sentence Patterns of Language
Statistical NLP: Lecture 3
SYNTAX Introduction to Linguistics. BASIC IDEAS What is a sentence? A string of random words? If it is a sentence, does it have to be meaningful?
ZParts of Speech Review The Parts of Speech are: NounsVerbs Pronouns Adverbs AdjectivesPrepositions.
LING NLP 1 Introduction to Computational Linguistics Martha Palmer April 19, 2006.
1 Words and the Lexicon September 10th 2009 Lecture #3.
Introduction to Semantics To be able to reason about the meanings of utterances, we need to have ways of representing the meanings of utterances. A formal.
 Christel Kemke 2007/08 COMP 4060 Natural Language Processing Word Classes and English Grammar.
Episode 8a. Passives and remaining issues CAS LX 522 Syntax I.
NLP and Speech 2004 English Grammar
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Fall 2005-Lecture 2.
Let remember from the previous lesson what is Knowledge representation
1 CONTEXT-FREE GRAMMARS. NLE 2 Syntactic analysis (Parsing) S NPVP ATNNSVBD NP AT NNthechildrenate thecake.
1 CSC 594 Topics in AI – Applied Natural Language Processing Fall 2009/ Outline of English Syntax.
Meaning and Language Part 1.
Intro to Psycholinguistics What its experiments are teaching us about language processing and production.
Chapter 2 A rapid overview.
VERBS Verb is a part of speech that shows:  ACTION  STATE OF BEING (NON-ACTION) State of being –be Feelings - love Senses - see Mental activity or state-
Parts of Speech (Lexical Categories). Parts of Speech Nouns, Verbs, Adjectives, Prepositions, Adverbs (etc.) The building blocks of sentences The [ N.
Enjoying Tenses. Definition of Verb Tense Verb tenses are tools that English speakers use to express time in their language.
1 LIN 1310B Introduction to Linguistics Prof: Nikolay Slavkov TA: Qinghua Tang CLASS 14, Feb 27, 2007.
Grammar and Composition Review
Chapter 4 Syntax Part II.
Introduction to Linguistics
COMPOSITION 9 Parts of Speech: Verbs Action Verbs in General  Follow along on Text page 362.  A verb either expresses an action (what something or.
1 Statistical Parsing Chapter 14 October 2012 Lecture #9.
ASPECTS OF LINGUISTIC COMPETENCE 4 SEPT 09, 2013 – DAY 6 Brain & Language LING NSCI Harry Howard Tulane University.
Understanding and Falling in Love with Prepositional Phrases.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Natural Language Processing Lecture 6 : Revision.
1 LIN 1310B Introduction to Linguistics Prof: Nikolay Slavkov TA: Qinghua Tang CLASS 12, Feb 13, 2007.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Linguistic Essentials
Semantic Construction lecture 2. Semantic Construction Is there a systematic way of constructing semantic representation from a sentence of English? This.
LECTURE 2: SEMANTICS IN LINGUISTICS
Chapter 3 Describing Syntax and Semantics
Artificial Intelligence: Natural Language
Artificial Intelligence 2004 Non-Classical Logics Non-Classical Logics Specific Language Constructs added to classic FOPL Different Types of Logics.
A noun is a person, a place, thing, or idea. Ex. Jimmy read a book in the park. Jimmy is a noun because it is a person’s name. Book is a noun because.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 2.
SYNTAX.
◦ Process of describing the structure of phrases and sentences Chapter 8 - Phrases and sentences: grammar1.
TYPES OF PHRASES REPRESENTING THE INTERNAL STRUCTURE OF PHRASES 12/5/2016.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Lecture 10 (de re/de dicto) Ling 442. Exercises Translate the following into the logical language w/ restricted quantifiers. 1.Every dog that has a bone.
EEL 5937 Content languages EEL 5937 Multi Agent Systems Lecture 10, Feb. 6, 2003 Lotzi Bölöni.
Parts of Speech Our First Unit in Grammar. What is a noun?
Meaning and Language Part 1. Plan We will talk about two different types of meaning, corresponding to two different types of objects: –Lexical Semantics:
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Lec. 10.  In this section we explain which constituents of a sentence are minimally required, and why. We first provide an informal discussion and then.
Week 3. Clauses and Trees English Syntax. Trees and constituency A sentence has a hierarchical structure Constituents can have constituents of their own.
Descriptive Grammar – 2S, 2016 Mrs. Belén Berríos Droguett
Parts of Speech Review.
Modal, Dynamic and Temporal Logics
Statistical NLP: Lecture 3
BBI 3212 ENGLISH SYNTAX AND MORPHOLOGY
The Parts of Speech.
Semantics (Representing Meaning)
Language, Logic, and Meaning
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Linguistic Essentials
Logics for Data and Knowledge Representation
Presentation transcript:

Bogdan Gapinski Semantics: Modal Logics / Applicative Categorical Grammars Presentation based on the book “Type-Logical Semantics” by Bob Carpenter

Modal Logic - Motivation Problems with true-false logic –The ancients believed [the morning star is the morning star] –The ancients believed [the morning star is the evening star] morning star = evening star = Venus –Terry intentionally shot {the burglar / his best friend} what if his best friend is the burglar –Morgan swam the channel quickly –Morgan crossed the channel slowly swimming/crossing speed –Francis is a good Broadway {dancer / singer} comparison classes

Modal Logics – general idea ~ p means “p is necessarily true” we want ( ~ p)6p but not p6( ~ p) Kripke’s idea: –a possible world determines truth of falsehood of formulas –worlds can be interpreted as points in time –denotation of the formula depends on the world – ~p is true iff p is true in every possible world –define L as not(~not(p)) A formula is possibly true if it is not necessarily false jLp can be true at a world even if p is false

Indexicality Expressions that have their interpretations determined by the context of utterance –personal pronouns: I, you, we –temporal expressions now, yesterday –locative expression here add parameters for speaker/hearer/location to the denotation function Generalized idea: single context index c with arbitrary number of properties that could be retrieved by functions, for instance speak: Context 6 Ind speak(c) = an individual who is speaking

General Modal Logics Notion of accessibility Accessibility relation A f World x World –wAw’ means w’ is possible relative to w – ~p is true in a world w iff p is true in every world w’ such that wAw’ Logics can be defined by imposing conditions on A and specifying axioms they satisfy Example: ~ =“is known” not(~p) 6~ not(~p) –“if p is not known, then it is known to be not known” –knowledge representation with for agents with full introspection

Implication and Counterfactuals If there were no cats, cats would eat mice. If there were no dogs, cats would eat mice. Lewis: indicative conditional vs. subjunctive conditional –If Oswald did not kill Kennedy, then someone else did –If Oswald had not killed Kennedy, then someone else would have. –but… –If Oswald has not killed Kennedy, someone else will have said the next in line would-be assassin… Translate “p then q” as ~ (p 6 q)

Tense Logic Worlds = moments in time (Tim) Accessibility = temporal precedence (<) Fp is true at time t iff p is true at t’ such that t’>t Pp is true at time t iff p is true at t’ such that t’<t –Wp = not(F(not(p))) [Always Will] –Hp = not(P(not(p))) [Always Has] FHp 6 p Different kind of logic systems result from conditions imposed on <

Tense and Aspect Tenses: past, present, future Aspect: perfective, progressive, simple Reichenback’s approach: –event, reference, speech times –Tenses: Past: t r <t s Present t r =t s Future: t r >t s Past perfect: t e <t r <t s Simple past: t e =t r <t s

Calculus with Types Types – set Typ –BasType f Typ –If p, q 0Typ then (p -> q) 0 Typ –For us, BasType ={Ind, Bool} –Ex. ((Ind -> Bool) -> (Ind -> Bool))

Calculus with Types Terms – set Term p –For each type p, we have a set of variables Var p and constants Cons p – Var p 0Term p – Con p 0Term p –a(b) 0Term p if a 0Term p->q and b 0Term p – x.a 0Term p->q if x 0 Vat p and a 0Term q –run: Ind -> Bool, lee: Ind quickly: (Ind->Bool)->Ind->Bool –run(lee): Bool –quickly(run): Ind -> Bool –quickly(run)(lee): Bool –x: Ind x.(like(x)(ricky))

Calculus with Types Beta-reduction: ( x.p)(q) -> p[q/x] ( x.(x)(x)) ( x.(x)(x)) -> ???

The Category System Basic Categories: –np noun phrase –n noun –s sentence

Syntactic Categories - Formal Definition The collection of syntactic categories determined by the collection BasCat – BasCat f Cat –if A, B 0 Cat then (A/B) and (B\A) 0 Cat A/B – forward functor B\A – backward functor

Examples np/n n/n n\n (n\n)/np np\s (np\s)/np ((np\s)/np)/np (np/s)/(np/s) determiners prenominal adjectives postnominal modifiers preposition intransitive verb or verb phrase transitive verb ditransitive verb preverbal verb-phrase modifier aka adverb

Type Assignment Type assignment function Typ –Typ(A/B)=Typ(B\A)= Typ (B) 6 Typ(A) –Typ(np) = Ind –Typ(n) = Ind 6 Bool –Typ(s) = Bool

Categorical Lexicon Relation between basic expressions of a language, syntactic category and meaning Meaning = -term Categorical Lexicon – relation Lex f BaseExp x (Cat x Term) such that if > 0 Lex then a 0 Term Typ(A) Notation e Y a : A

Phase-structure Denotation Function: [. ] Lex –a:A 0 [e] if e Y a:A 0 Lex –a(b):A 0 [e 1 e 2 ] if a:A/B 0 [e 1 ] and b:B 0 [e 2 ] –a(b):A 0 [e 1 e 2 ] if a:B\A 0 [e 2 ] and b:B 0 [e 1 ]

Lexicon: Example Sandy Y sandy:np the Y L: np/p kid Y kid:n tall Y tall:n/n ( P. x.P(x)) outside Y outside:n\n in Y in:n\n/np runs Y run:np\s loves Y love:np\s/np gives Y give:np\s/np/np outside Y outside:(np\s)\np\s in Y in:(np\s)\np\s/np

Example of a derivation: the tall kid runs tall:n/n 0 [tall] kid:n 0 [kid] tall(kid):n 0 [tall kid] L:np/n 0 [the] L(tall(kid)):np 0 [the tall kid] run: np\s 0 [runs] run(L(tall(kid))): s 0 [the tall kid runs]

The tall kid runs tall:n/n L:np/n kid:nrun:np\s tall(kid):n L(tall(kid)):np run(L(tall(kid))):s Derivation Tree

Type Soundness If a : A 0 [e] then a 0 Term Typ(A) This is a big deal! Similarity to typing schemes of functional languages

Ambiguity Lexical syntactic ambiguity: an expression has two lexical entries with different syntactic categories (kiss) Lexical semantical ambiguity: two different lambda-terms assigned to the same category (bank) Vagueness: sister-in-law, glove Negation test: –Gerry went to the bank. –No, he didn’t, he went to the river. –Robin is wearing a glove. –* No he isn’t, that is a left glove.

Derivational Ambiguity – two parse trees for the same set of words having the same lexical entries the near pyramid box on the table pyr:n near:n\n/np L:np/n box:non(L(table)):n\n L(box):np near(L(box)):n\n near(L(box))(pyr):n on(L(table))(near(L(box))(pyr)):n the nearpyramid box on the table pyr:n near:n\n/np L:np/n box:non(L(table)):n\n on(L(table))(box):n L(on(L(table))(box)):n near(on(L(table))(box)):n\n near(on(L(table))(box))(pyr):n\n

Local and Global Ambiguity Local ambiguity – a subexpression is ambiguous –The tall kid in Pittsburg run –The horse raced past the barn fell. –The cotton clothing is made with comes from Egypt. garden-path effect in psycholinguistics

Meaning postulates red= P. x.P(x) and red 2 (x) in = y. P. x.P(x) and in 2 (y)(x) red(in(chs)(car))= x.((car(x) and in 2 (chs)(x)) and red 2 (x)) in(chs)(red(car))= x.((car(x) and red 2 (x)) and in 2 (chs)(x)) redcarin Chester red:n/n in(chs):n\ncar:n red(car):n in(chs)(red(car)):n redcarin Chester red:n/n in(chs):n\ncar:nn in(chs)(car):n red(in(chs)(car)):n

Coordination TerryandjumpsFrancisruns t:np jump:np\s Coor Bool (and):s\s/s f:nprun:np\s jump(t):s run(f):s and(jump(t))(run(f)):s jumpsand runs Francis : Coor Ind->Bool (and): (np\s)\(np\s)/(np\s) jump:np\sf:np Lx.and(jump(x))(run(x)):np\s and(jump(f))(run(f)):s Coor p (and):A\A/A run:np\s