Logica e Linguaggio. Raffaella Bernardi. March 22, University of Trento

Similar documents
Scope Ambiguities through the Mirror

Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning

Logic: Propositional Logic Truth Tables

Logical Structures in Natural Language: First order Logic (FoL)

Logic: First Order Logic

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

Ling 130 Notes: Predicate Logic and Natural Deduction

Propositional Logic: Review

Phil Introductory Formal Logic

Semantics and Pragmatics of NLP

First Order Logic Implication (4A) Young W. Lim 4/6/17

240 Metaphysics. Frege s Puzzle. Chapter 26

Ling 130 Notes: Syntax and Semantics of Propositional Logic

Generalized Quantifiers Logical and Linguistic Aspects

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Logic Background (1A) Young W. Lim 5/14/18

Logic. Readings: Coppock and Champollion textbook draft, Ch

Artificial Intelligence

A proof theoretical account of polarity items and monotonic inference.

Semantics and Generative Grammar. The Semantics of Adjectival Modification 1. (1) Our Current Assumptions Regarding Adjectives and Common Ns

Semantics and Generative Grammar. A Little Bit on Adverbs and Events

Introduction to Semantics. Pronouns and Variable Assignments. We ve seen that implicatures are crucially related to context.

Natural Deduction for Propositional Logic

22c:145 Artificial Intelligence

The Semantics of Definite DPs 1. b. Argument Position: (i) [ A politician ] arrived from Washington. (ii) Joe likes [ the politician ].

Introduction to Semantics. The Formalization of Meaning 1

Proofs. Joe Patten August 10, 2018

Epistemic Informativeness

1 The standard quantifiers in FOL

Chapter 4: Classical Propositional Semantics

Logic Background (1A) Young W. Lim 12/14/15

Logic: Propositional Logic (Part I)

Lecture 6: Formal Syntax & Propositional Logic. First: Laziness in Haskell. Lazy Lists. Monads Later. CS 181O Spring 2016 Kim Bruce

Foundations of Mathematics Worksheet 2

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Completeness for FOL

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

Meaning and Reference INTENSIONAL AND MODAL LOGIC. Intensional Logic. Frege: Predicators (general terms) have

Propositional Logic Arguments (5A) Young W. Lim 11/8/16

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Logical Agents (Part I)

Syntax of propositional logic. Syntax tree of a formula. Semantics of propositional logic (I) Subformulas

INF3170 Logikk Spring Homework #8 For Friday, March 18

5. And. 5.1 The conjunction

Propositional Logic Logical Implication (4A) Young W. Lim 4/21/17

Learning Goals of CS245 Logic and Computation

A Logic Primer. Stavros Tripakis University of California, Berkeley

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Logic: Propositional Logic Tableaux

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

CSCI-495 Artificial Intelligence. Lecture 17

Reflexives and non-fregean quantifiers

Propositional Logic. Yimei Xiang 11 February format strictly follow the laws and never skip any step.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Propositional Logic Logical Implication (4A) Young W. Lim 4/11/17

First Order Logic: Syntax and Semantics

It is not the case that ϕ. p = It is not the case that it is snowing = It is not. r = It is not the case that Mary will go to the party =

1 Completeness Theorem for First Order Logic

Relations to first order logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Proofs Propositions and Calculuses

Mathematical Logic. Reasoning in First Order Logic. Chiara Ghidini. FBK-IRST, Trento, Italy

Classical First-Order Logic

15414/614 Optional Lecture 1: Propositional Logic

MAI0203 Lecture 7: Inference and Predicate Calculus

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Logical Agents. Knowledge based agents. Knowledge based agents. Knowledge based agents. The Wumpus World. Knowledge Bases 10/20/14

Reasoning. Inference. Knowledge Representation 4/6/2018. User

UNIT-I: Propositional Logic

Knowledge representation DATA INFORMATION KNOWLEDGE WISDOM. Figure Relation ship between data, information knowledge and wisdom.

5. And. 5.1 The conjunction

CS 2740 Knowledge Representation. Lecture 4. Propositional logic. CS 2740 Knowledge Representation. Administration

Propositional and First-Order Logic

On Axiomatic Rejection for the Description Logic ALC

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

- 1.2 Implication P. Danziger. Implication

a. ~p : if p is T, then ~p is F, and vice versa

Propositional Logic Arguments (5A) Young W. Lim 11/30/16

cis32-ai lecture # 18 mon-3-apr-2006

Semantics and Generative Grammar. Pronouns and Variable Assignments 1. We ve seen that implicatures are crucially related to context.

Relational Reasoning in Natural Language

First Order Logic (FOL) 1 znj/dm2017

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

From: AAAI Technical Report FS Compilation copyright 1994, AAAI ( All rights reserved. Forget It!

CHAPTER THREE: RELATIONS AND FUNCTIONS

A Logic Primer. Stavros Tripakis University of California, Berkeley. Stavros Tripakis (UC Berkeley) EE 144/244, Fall 2014 A Logic Primer 1 / 35

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

EXERCISE 10 SOLUTIONS

Overview. Knowledge-Based Agents. Introduction. COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Propositional Logic Arguments (5A) Young W. Lim 10/11/16

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

12. Dezember

Introduction to Pragmatics

Semantics and Generative Grammar. Quantificational DPs, Part 2: Quantificational DPs in Non-Subject Position and Pronominal Binding 1

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

Logic. (Propositional Logic)

Introduction to Metalogic 1

Transcription:

Logica e Linguaggio Raffaella Bernardi University of Trento March 22, 2012

Layout Logical Entailment Logical Entailment in PL Logical Entailment in FoL Sinn und Bedeutung Formal Semantics Main questions Syntactic driven composition Domains of interpretation

Logic PL: Propositions can be: atomic (p, q,... ) or complex ( P, P Q, P Q, P Q) an interpretation I either satisfies a proposition ψ (I = ψ) or falsifies it (I = ψ). In the first case it is called a model M of the formula. The interpretation of the whole depends on the interpretation of the parts and of the logical operators connecting them, E.g.: p p p p I 1 : T F T I 2 : F T T

Logic PL: Propositions can be: atomic (p, q,... ) or complex ( P, P Q, P Q, P Q) an interpretation I either satisfies a proposition ψ (I = ψ) or falsifies it (I = ψ). In the first case it is called a model M of the formula. The interpretation of the whole depends on the interpretation of the parts and of the logical operators connecting them, E.g.: p p p p I 1 : T F T I 2 : F T T p q p q I 1 : T T T I 2 : T F F I 3 : F T T I 4 : F F T notation: I 1 = p I 2 = p p p is a tautology: it s true for all interpretations.

Logic Logical Entailment (Validity) vs. Satisfiability {ψ 1,... ψ n } = φ is satisfiable when there is at least one interpretation for which the premises and the conclusion are true.

Logic Logical Entailment (Validity) vs. Satisfiability {ψ 1,... ψ n } = φ is satisfiable when there is at least one interpretation for which the premises and the conclusion are true. is falsifiable when there is at least one interpretation for which the premises are true and the conclusion is false.

Logic Logical Entailment (Validity) vs. Satisfiability {ψ 1,... ψ n } = φ is satisfiable when there is at least one interpretation for which the premises and the conclusion are true. is falsifiable when there is at least one interpretation for which the premises are true and the conclusion is false. is valid when the set of interpretations for which the premises are true is included in the set of interpretations for which the conclusion is true (viz. the set of models of the premises are a subset of the set of models of the conclusion).

Logic Logical Entailment (Validity) vs. Satisfiability {ψ 1,... ψ n } = φ is satisfiable when there is at least one interpretation for which the premises and the conclusion are true. is falsifiable when there is at least one interpretation for which the premises are true and the conclusion is false. is valid when the set of interpretations for which the premises are true is included in the set of interpretations for which the conclusion is true (viz. the set of models of the premises are a subset of the set of models of the conclusion).

Logic Examples p q p q I 1 : T T T I 2 : T F F I 3 : F T T I 4 : F F T 1. {p q, p} = q valid: {I 1 } {I 1, I 3 } 2. {p q, q} = p not valid: {I 1, I 3 } {I 1, I 2 } it is satisfied by I 1 and falsified by I 3

Logic FoL: Richer language It quantifies over entities and expresses properties of entities, relations among entities. A formula is true or false in an interpretation I: (D, [[ ]]). The interpretation for which the formula is true are called a model. Given the domain D = {1, 2, 3,...} [[ a ]] = 1 [[b ]]= 2 [[E ]] = {2, 4, 6...} [[B ]] = {(1, 2), (2, 3)...} I = E(b) since [[b]] [[E]] I = B(b,a) since ([[b]], [[a]]) [[B]] I = x.e(x) I = y. x.b(y, x)

Logic FoL: Richer language It quantifies over entities and expresses properties of entities, relations among entities. A formula is true or false in an interpretation I: (D, [[ ]]). The interpretation for which the formula is true are called a model. Given the domain D = {1, 2, 3,...} [[ a ]] = 1 [[b ]]= 2 [[E ]] = {2, 4, 6...} [[B ]] = {(1, 2), (2, 3)...} I = E(b) since [[b]] [[E]] I = B(b,a) since ([[b]], [[a]]) [[B]] I = x.e(x) I = y. x.b(y, x) {ψ 1,... ψ n } = φ Again, the entailment is valid, if the set of models of the premises is included in the set of models of the conclusion. Satisfiable if there is at least one model of the premises that is also a model of the conclusion.

Logic FoL: logical entailment An example of logical entailment in FoL is: x. y.r(x, y) = y. x.r(x, y) all models of x. y.r(x, y) are models of y. x.r(x, y). Whereas: y. x.r(x, y) = x. y.r(x, y) satisfiable: I 1 : D = {a}, [[R]] = {(a, a)} I 1 = y. x.r(x, y) and I 1 = x. y.r(x, y)

Logic FoL: logical entailment An example of logical entailment in FoL is: x. y.r(x, y) = y. x.r(x, y) all models of x. y.r(x, y) are models of y. x.r(x, y). Whereas: y. x.r(x, y) = x. y.r(x, y) satisfiable: I 1 : D = {a}, [[R]] = {(a, a)} I 1 = y. x.r(x, y) and I 1 = x. y.r(x, y) falsifiable: I 2 : D = {a, b}, [[R]] = {(a, a), (b, b)}

Logic FoL: logical entailment An example of logical entailment in FoL is: x. y.r(x, y) = y. x.r(x, y) all models of x. y.r(x, y) are models of y. x.r(x, y). Whereas: y. x.r(x, y) = x. y.r(x, y) satisfiable: I 1 : D = {a}, [[R]] = {(a, a)} I 1 = y. x.r(x, y) and I 1 = x. y.r(x, y) falsifiable: I 2 : D = {a, b}, [[R]] = {(a, a), (b, b)} I 2 = y. x.r(x, y) and I 2 = x. y.r(x, y)

Layout Logical Entailment Logical Entailment in PL Logical Entailment in FoL Sinn und Bedeutung Formal Semantics Main questions Syntactic driven composition Domains of interpretation

What s the meaning of linguistic signs? Logic view: Reference There is the star a called venus, morning star, evening star that are represented in FoL by venus, morningst, eveningst : [[venus ]] = a [[morningst ]] = a [[eveningst ]] = a a is the meaning (reference) of these linguistic signs.

What s the meaning of linguistic signs? Logic view: Reference There is the star a called venus, morning star, evening star that are represented in FoL by venus, morningst, eveningst : [[venus ]] = a [[morningst ]] = a [[eveningst ]] = a a is the meaning (reference) of these linguistic signs. Checking whether it is true that (i) the morning star is the morning star or that (ii) the morning star is the evening star ends up checking that (i) [[morningst ]] = [[morningst ]] and (ii) [[morningst ]] = [[eveningst ]] Both of which reduce to checking a = a

What s the meaning of linguistic signs? Bedeutung vs. Sinn checking whether (i) the morning star is the morning star or that (ii) the morning star is the evening star can t amount to the same operation since (ii) is cognitively more difficult than (i).

What s the meaning of linguistic signs? Bedeutung vs. Sinn checking whether (i) the morning star is the morning star or that (ii) the morning star is the evening star can t amount to the same operation since (ii) is cognitively more difficult than (i). Frege s answer: A linguistic sign consists of a: Bedeutung: the object that the expression refers to Sinn: mode of presentation of the referent.

What s the meaning of linguistic signs? Bedeutung vs. Sinn checking whether (i) the morning star is the morning star or that (ii) the morning star is the evening star can t amount to the same operation since (ii) is cognitively more difficult than (i). Frege s answer: A linguistic sign consists of a: Bedeutung: the object that the expression refers to Sinn: mode of presentation of the referent. Two schools of thought Formal Semantics: meaning based on references. Distributional Semantics/Language as use: meaning based on the words context (use).

Layout Logical Entailment Logical Entailment in PL Logical Entailment in FoL Sinn und Bedeutung Formal Semantics Main questions Syntactic driven composition Domains of interpretation

Formal Semantics Starting point: meaning based on reference Starting point: set-theoretical view of meaning and the assumption that the meaning of a proposition is its truth value. Eg. take the interpretation I: D = {sara, lori, pim, alex} and : [[sara ]] = sara;... [[walk ]] = {lori}; [[know ]] = {(lori, alex), (alex,lori), (sara, lori), (lori, lori), (alex, alex), (sara, sara), (pim, pim)}; [[student ]] = {lori, alex, sara}; [[professor ]] = {}; [[tall ]] = {lori, pim}. I = walks (lori ) I = x.student (x) walk (x) I = walks (sara ) I = x.student(x) walk (x) FS aim: To obtain these FoL representations compositionaly. Hence, questions: What is the meaning representation of the lexical words? Which operation(s) put the lexical meaning representation together.

Formal Semantics Syntax guides function application Order of composition Syntax gives the order of composition: Lori [knows Alex] [A student] [knows Alex] [A [student [who [Alex [knows [... ]] ]]] N ] DP [studies Logic]. From sets to functions A set X and its characteristic function f X amount to the same thing. In other words, the assertion y X and f X (y) = true are equivalent.

Formal Semantics Syntax guides function application Order of composition Syntax gives the order of composition: Lori [knows Alex] [A student] [knows Alex] [A [student [who [Alex [knows [... ]] ]]] N ] DP [studies Logic]. From sets to functions A set X and its characteristic function f X amount to the same thing. In other words, the assertion y X and f X (y) = true are equivalent. Hence, since the meaning of the word student is a set of objects: [[student ]] = {lori, alex, sara}

Formal Semantics Syntax guides function application Order of composition Syntax gives the order of composition: Lori [knows Alex] [A student] [knows Alex] [A [student [who [Alex [knows [... ]] ]]] N ] DP [studies Logic]. From sets to functions A set X and its characteristic function f X amount to the same thing. In other words, the assertion y X and f X (y) = true are equivalent. Hence, since the meaning of the word student is a set of objects: [[student ]] = {lori, alex, sara} it can be represented as a function from entities to truth values [[λx.student (x)]] = {x student (x) = T }

Formal Semantics Syntax guides function application Order of composition Syntax gives the order of composition: Lori [knows Alex] [A student] [knows Alex] [A [student [who [Alex [knows [... ]] ]]] N ] DP [studies Logic]. From sets to functions A set X and its characteristic function f X amount to the same thing. In other words, the assertion y X and f X (y) = true are equivalent. Hence, since the meaning of the word student is a set of objects: [[student ]] = {lori, alex, sara} it can be represented as a function from entities to truth values [[λx.student (x)]] = {x student (x) = T } Frege/Montague Starting from lexical representations we reach FoL by function application following the syntactic structure.

Formal Semantics Many domain of denotations Not only one domain. Now we care of the meaning of words/phrases. Words/Phrases denote in different domains: S (sentences): domain of truth values: D t PN (e.g. Lori): domain of entities: D e

Formal Semantics Many domain of denotations Not only one domain. Now we care of the meaning of words/phrases. Words/Phrases denote in different domains: S (sentences): domain of truth values: D t PN (e.g. Lori): domain of entities: D e N (e.g. student, tall student, student who Alex knows) and VP (e.g. walk, knows lori): domain of sets of entities, ie. domain of functions: D e D t. TV: (e.g. knows): domain of sets of pairs, i.e. domain of functions: (D e D e ) D t (= D e (D e D t )) E.g. walk and knows lori meaning is a set of entities (those entities who walks, those entities who know lori). Hence, they denote in the domain D e D t are of semantic type (e t), are represented by the terms λx e.(walk (x)) t and λx e.(knows (x, lori )) t

Formal Semantics Partially ordered domains Given I (i.e. typed domains and a [[ ]]): D t : [[φ]] t [[ψ]] iff I satisfies φ = ψ. D (a b) : [[X ]] (a b) [[Y ]] iff [[α]] D a Take the set-theoretical view: N, VP: inclusion among sets of entities. TV: inclusion among sets of pairs [[X (α)]] b [[Y (α)]]

Formal Semantics Lexical entailment (partially ordered domains) Given the interpretation: D e = {lori, alex, sara}, [[walk ]] = {lori}, [[move ]] = {lori,alex} [[walk ]] (e t) [[move ]] iff [[x]] D e, [[walk (x)]] t [[move (x)]] F t T T t T F t F for [[x]]= alex for [[x]]= lori for [[x]]= sara

Formal Semantics Set-theoretical meaning of some What is the set-theoretical meaning of Some student

Formal Semantics Set-theoretical meaning of some What is the set-theoretical meaning of Some student It s not an object, it s not a set of objects, it s not a set of pairs of objects.

Formal Semantics Set-theoretical meaning of some What is the set-theoretical meaning of Some student It s not an object, it s not a set of objects, it s not a set of pairs of objects. Take the interpretation I: D = {sara, lori, pim, alex} and : [[sara ]] = sara;... [[walk ]] = {lori}; [[know ]] = {(lori, alex), (alex,lori), (sara, lori), (lori, lori), (alex, alex), (sara, sara), (pim, pim)}; [[student ]] = {lori, alex, sara}; [[professor ]] = {}; [[tall ]] = {lori, pim}. In this interpretation, some student are tall, some student walk.

Formal Semantics Set-theoretical meaning of some What is the set-theoretical meaning of Some student It s not an object, it s not a set of objects, it s not a set of pairs of objects. Take the interpretation I: D = {sara, lori, pim, alex} and : [[sara ]] = sara;... [[walk ]] = {lori}; [[know ]] = {(lori, alex), (alex,lori), (sara, lori), (lori, lori), (alex, alex), (sara, sara), (pim, pim)}; [[student ]] = {lori, alex, sara}; [[professor ]] = {}; [[tall ]] = {lori, pim}. In this interpretation, some student are tall, some student walk. [[some (student )]] = {[[tall ]], [[walk ]]} = {Y [[student ]] Y }

Formal Semantics Set-theoretical meaning of some What is the set-theoretical meaning of Some student It s not an object, it s not a set of objects, it s not a set of pairs of objects. Take the interpretation I: D = {sara, lori, pim, alex} and : [[sara ]] = sara;... [[walk ]] = {lori}; [[know ]] = {(lori, alex), (alex,lori), (sara, lori), (lori, lori), (alex, alex), (sara, sara), (pim, pim)}; [[student ]] = {lori, alex, sara}; [[professor ]] = {}; [[tall ]] = {lori, pim}. In this interpretation, some student are tall, some student walk. [[some (student )]] = {[[tall ]], [[walk ]]} = {Y [[student ]] Y } As a function: D (e t) t. λy. x.student (x) Y (x):

Formal Semantics Set-theoretical meaning of Quantifiers [[some (student )]] = {Y [[student ]] Y } [[no (student )]] = {Y [[student ]] Y = } [[every (student )]] = {Y [[student ]] Y }

Formal Semantics Set-theoretical meaning of Quantifiers [[some (student )]] = {Y [[student ]] Y } [[no (student )]] = {Y [[student ]] Y = } [[every (student )]] = {Y [[student ]] Y } All QP denote in the domains D (e t) t. They are represented by the lambda terms below λy. x.student (x) Y (x): λy. x.(student (x) Y (x)): λy. x.student (x) Y (x): Hence, the quantifiers denote in D (e t) ((e t) t) : Some: λz.λy. x.z(x) Y (x) No: λz.λy. x.(z(x) Y (x)) Every: λz.λy. x.z(x) Y (x)

Formal Semantics Relative pronoun [[lori ]] = lori;... [[λx.student (x)]] = {lori, alex, sara}; [[λx.λy.know (y, x)]] = {(lori, alex), (lori, pim), (sara, alex)} [[λy.know (y, alex )]] = {lori, sara} [[λx.know (lori, x)]] = {alex, pim} The meaning of student who lori knows is a set of entities: {alex}. who creates the intersection between the set of students and the set of those people who lori knows: [[N who VP]] = [[N]] [[VP]]

Formal Semantics Relative pronoun [[lori ]] = lori;... [[λx.student (x)]] = {lori, alex, sara}; [[λx.λy.know (y, x)]] = {(lori, alex), (lori, pim), (sara, alex)} [[λy.know (y, alex )]] = {lori, sara} [[λx.know (lori, x)]] = {alex, pim} The meaning of student who lori knows is a set of entities: {alex}. who creates the intersection between the set of students and the set of those people who lori knows: [[N who VP]] = [[N]] [[VP]] who : λvp.λn.λx.n(x) VP(x)

Formal Semantics Abstraction To build the meaning representation of linguistic structure, besides function application, we need abstraction: 1. knows z: λy.knows (y, z) 2. lori [knows z]: knows (lori, z)

Formal Semantics Abstraction To build the meaning representation of linguistic structure, besides function application, we need abstraction: 1. knows z: λy.knows (y, z) 2. lori [knows z]: knows (lori, z) 3. lori knows: λz.knows (lori, z)

Formal Semantics Abstraction To build the meaning representation of linguistic structure, besides function application, we need abstraction: 1. knows z: λy.knows (y, z) 2. lori [knows z]: knows (lori, z) 3. lori knows: λz.knows (lori, z) 4. who lori knows: λn.λx.n(x) knows (lori, x) 5. student who lori knows: λx.student (x) knows (lori, x) Abstraction is caused by who : λvp.λn.λx.n(x) VP(x)