LING 364: Introduction to Formal Semantics Lecture 25 April 18th.

Slides:



Advertisements
Similar presentations
TRUTH TABLES Section 1.3.
Advertisements

TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
LING 364: Introduction to Formal Semantics Lecture 24 April 13th.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
LING 364: Introduction to Formal Semantics Lecture 8 February 7th.
LING 364: Introduction to Formal Semantics Lecture 26 April 20th.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) February, 27, 2009.
LING 364: Introduction to Formal Semantics Lecture 9 February 9th.
LING 364: Introduction to Formal Semantics Lecture 17 March 9th.
LING 364: Introduction to Formal Semantics Lecture 28 May 2nd.
LING 364: Introduction to Formal Semantics Lecture 27 April 27th.
LING 364: Introduction to Formal Semantics Lecture 22 April 6th.
Logic: Connectives AND OR NOT P Q (P ^ Q) T F P Q (P v Q) T F P ~P T F
1 Intro to Probability Supplementary Notes Prepared by Raymond Wong Presented by Raymond Wong.
LING 364: Introduction to Formal Semantics Lecture 19 March 20th.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) March, 5, 2010.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
LING 364: Introduction to Formal Semantics Lecture 13 February 23rd.
Propositional Logic Lecture 2: Sep 9. Conditional Statement If p then q p is called the hypothesis; q is called the conclusion “If your GPA is 4.0, then.
CSE 311 Foundations of Computing I Autumn 2011 Lecture 2 More Propositional Logic Application: Circuits Propositional Equivalence.
Propositional Logic 7/16/ Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q,
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley. All rights reserved.
Truth Tables for Negation, Conjunction, and Disjunction.
CSE 20 – Discrete Mathematics Dr. Cynthia Bailey Lee Dr. Shachar Lovett Peer Instruction in Discrete Mathematics by Cynthia Leeis licensed under a Creative.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Lecture 8 Introduction to Logic CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
The Foundations: Logic and Proofs
Propositional Logic.
Intro to Discrete Structures
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
MATH 102 Contemporary Math S. Rook
Fall 2002CMSC Discrete Structures1 Let’s get started with... Logic !
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
Chapter 3 section 3. Conditional pqpqpq TTT TFF FTT FFT The p is called the hypothesis and the q is called the conclusion.
LING 581: Advanced Computational Linguistics Lecture Notes March 8th.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
Chapter 7 Logic, Sets, and Counting
Conditional Statements
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Chapter 8 – Symbolic Logic Professor D’Ascoli. Symbolic Logic Because the appraisal of arguments is made difficult by the peculiarities of natural language,
How do I show that two compound propositions are logically equivalent?
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
6.1 Logic Logic is not only the foundation of mathematics, but also is important in numerous fields including law, medicine, and science. Although the.
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
Simplifying Boolean Expressions. Boolean Operators (T/F) xyx AND y FFF FTF TFF TTT xyx OR y FFF FTT TFT TTT xyx XOR y FFF FTT TFT TTF xNOT x FT TF.
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
CEC 220 Digital Circuit Design Boolean Algebra I Wed, Sept 2 CEC 220 Digital Circuit Design Slide 1 of 13.
Statement Forms and Material Equivalence Kareem Khalifa Department of Philosophy Middlebury College.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
Outline Logic Propositional Logic Well formed formula Truth table
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
LING 364: Introduction to Formal Semantics Lecture 21 April 4th.
TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.
 2012 Pearson Education, Inc. Slide Chapter 3 Introduction to Logic.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
Propositional and predicate logic
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Logic and proofs
Section 3.2: Truth Tables for Negation, Conjunction, and Disjunction
LING 581: Advanced Computational Linguistics Lecture Notes May 4th.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
Logical functors and connectives. Negation: ¬ The function of the negation is to reverse the truth value of a given propositions (sentence). If A is true,
LING 581: Advanced Computational Linguistics
Boolean logic Taken from notes by Dr. Neil Moore
LING 581: Advanced Computational Linguistics
Boolean logic Taken from notes by Dr. Neil Moore
Presentation transcript:

LING 364: Introduction to Formal Semantics Lecture 25 April 18th

Administrivia Homework 5 –graded and returned

Administrivia Today –review homework 5 –also new handout Chapters 7 and 8 we’ll begin talking about tense

Homework 5 Review Exercise 1: Truth Tables and Prolog Question A: Using ?- implies(P,Q,R1), or(P,Q,R2), \+ R1 = R2. for what values of P and Q are P ⇒ Q and PvQ incompatible? P ⇒ Q TTT FTT FTF TFF PvQ TTT FTT FFF TTF ?- implies(P,Q,R1), or(P,Q,R2), \+ R1=R2. P = true, Q = false, R1 = false, R2 = true ? ; P = false, Q = false, R1 = true, R2 = false ? ; no Let P ⇒ Q = R1 implies(P,Q,R1) PvQ = R2 or(P,Q,R2) compare values R1R2

Homework 5 Review Exercise 1: Truth Tables and Prolog Question B Define truth table and/3 in Prolog P ∧ Q TTT FFT FFF TFF % and(P,Q,Result) and(true,true,true). and(true,false,false). and(false,true,false). and(false,false,false). Result

Homework 5 Review Exercise 1: Truth Tables and Prolog Question C Show that ¬(P ∨ Q) = ¬P ∧ ¬Q (De Morgan’s Rule) ¬ P ∧ ¬ Q FFF TFF TTT FFT PvQ TTT FTT FFF TTF R1¬R1 TF TF FT TF R1 P¬P TF FT FT TF Q¬Q TF TF FT FT R2 ?- or(P,Q,R1), neg(R1,NR1), neg(P,NP), neg(Q,NQ), and(NP,NQ,R2), \+ NR1=R2. No

Homework 5 Review Exercise 1: Truth Tables and Prolog Question D –Show that –¬(P ∧ Q) = ¬P ∨ ¬Q –(another side of De Morgan’s Rule) Question C was for ¬(P ∨ Q) = ¬P ∧ ¬Q ?- and(P,Q,R1), neg(R1,NR1), neg(P,NP), neg(Q,NQ), or(NP,NQ,R2), \+ NR1=R2. no

Homework 5 Review Exercise 2: Universal Quantification and Sets Assume meaning grammar: s(M) --> qnp(M), vp(P), {predicate2(M,P)}. n(woman(_)) --> [woman]. vp(M) --> v(M), np(X), {saturate2(M,X)}. v(likes(_X,_Y)) --> [likes]. np(ice_cream) --> [ice,cream]. qnp(M) --> q(M), n(P), {predicate1(M,P)}. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),subset(L1,L2))) --> [every]. every has semantics {X: P 1 (X)} ⊆ {Y: P 2 (Y)} every woman likes ice cream {X: woman(X)} ⊆ {Y:likes(Y,ice_cream)} –?- s(M,[every,woman,likes,ice,cream],[]). –M = findall(A,woman(A),B),findall(C,likes(C,ice_cream),D),subset(B,D) saturate1(P,X) :- arg(1,P,X). saturate2(P,X) :- arg(2,P,X). subset([],_). subset([X|L1],L2) :- member(X,L2), subset(L1,L2). member(X,[X|_]). member(X,[_|L]) :- member(X,L). predicate1((findall(X,P,_),_),P) :- saturate1(P,X). predicate2((_,(findall(X,P,_),_)),P) :- saturate1(P,X).

Homework 5 Review Exercise 2: Universal Quantification and Sets Questions A and B –John likes ice cream Simple way (not using Generalized Quantifiers) s(P) --> namenp(X), vp(P), {saturate1(P,X)}. namenp(john) --> [john]. note: very different from s(M) --> qnp(M), vp(P), {predicate2(M,P)}. ?- s(M,[john,likes,ice,cream],[]). M = likes(john,ice_cream) ?- s(M,[john,likes,ice,cream],[]), call(M). M = likes(john,ice_cream) database woman(mary). woman(jill). likes(john,ice_cream). likes(mary,ice_cream). likes(jill,ice_cream).

Homework 5 Review Exercise 2: Universal Quantification and Sets Question C –(names as Generalized Quantifiers) –Every woman and John likes ice cream –({X: woman(X)} ∪ {X: john(X)}) ⊆ {Y: likes(Y,ice_cream)} –John and every woman likes ice cream Treat John just like every: s(M) --> qnp(M), vp(P), {predicate2(M,P)}. qnp(M) --> q(M), n(P), {predicate1(M,P)}. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),subset(L1,L2))) --> [every]. n(woman(_)) --> [woman]. s(M) --> namenp(M), vp(P), {predicate2(M,P)}. namenp((findall(X,P,L1),findall(_Y,_P2,L2),subset(L1,L2))) --> name(P), {saturate1(P,X)}. name(john(_)) --> [john]. ?- s(M,[john,likes,ice,cream],[]). M = findall(A,john(A),B),findall(C,likes(C,ice_cream),D),subset(B,D)) database: john(john)

M1 = findall(_A,john(_A),_B),findall(_C,likes(_C,ice_cream),_D),subset(_B,_D) M2 = findall(_A,woman(_A),_B),findall(_C,likes(_C,ice_cream),_D),subset(_B,_D) Homework 5 Review Exercise 2: Universal Quantification and Sets Question C –John and every woman likes ice cream –({X: john(X)} ∪ {Y: woman(Y)}) ⊆ {Z: likes(Z,ice_cream)} P1P2 findall ?- s(M,[john,and,every,woman,likes,ice,cream],[]). M = (findall(A,john(A),B), findall(C,woman(C),D),union(B,D,E)), findall(F,likes(F,ice_cream),G),subset(E,G) Define conjnp: s(M) --> conjnp(M), vp(P), {predicate2(M,P)}. conjnp(____________________) --> namenp(M1), [and], qnp(M2). union subset slide is animated Define conjnp: s(M) --> conjnp(M), vp(P), {predicate2(M,P)}. conjnp(((findall(X,P1,L1),findall(Y,P2,L2),union(L1,L2,L3)),findall(_,_,L4),subset (L3,L4))) --> namenp(M1), [and], qnp(M2). Define conjnp: s(M) --> conjnp(M), vp(P), {predicate2(M,P)}. conjnp(((findall(X,P1,L1),findall(Y,P2,L2),union(L1,L2,L3)),findall(_,_,L4),subset (L3,L4))) --> namenp(M1), [and], qnp(M2), {predicate1(M1,P1)}. Define conjnp: s(M) --> conjnp(M), vp(P), {predicate2(M,P)}. conjnp(((findall(X,P1,L1),findall(Y,P2,L2),union(L1,L2,L3)),findall(_,_,L4),subset (L3,L4))) --> namenp(M1), [and], qnp(M2), {predicate1(M1,P1),predicate1(M2,P2)}. Define conjnp: s(M) --> conjnp(M), vp(P), {predicate2(M,P)}. conjnp(((findall(X,P1,L1),findall(Y,P2,L2),union(L1,L2,L3)),findall(_,_,L4),subset (L3,L4))) --> namenp(M1), [and], qnp(M2), {predicate1(M1,P1), predicate1(M2,P2), saturate1(P1,X), saturate1(P2,Y)}.

Homework 5 Review Exercise 3: Other Generalized Quantifiers Question A no: {X: P 1 (X)} ∩ {Y: P 2 (Y)} = ∅ –No woman likes ice cream qnp(M) --> q(M), n(P), {predicate1(M,P)}. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),subset(L1,L2))) --> [every]. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),intersect(L1,L2,[]))) --> [no]. ?- s(M,[no,woman,likes,ice,cream],[]). M = findall(_A,woman(_A),_B),findall(_C,likes(_C,ice_cream),_D),intersect(_B,_D,[]) ?- s(M,[no,woman,likes,ice,cream],[]), call(M). no

Homework 5 Review Exercise 3: Other Generalized Quantifiers Question A some: {X: P 1 (X)} ∩ {Y: P 2 (Y)} ≠ ∅ –Some women like ice cream (plural agreement) –*Some woman likes ice cream qnp(M) --> q(M), n(P), {predicate1(M,P)}. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),subset(L1,L2))) --> [every]. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),intersect(L1,L2,L3),\+L3=[])) --> [some]. don’t have to implement agreement in this exercise, you could just add: n(woman(_)) --> [women]. v(likes(_X,_Y)) --> [like].

Homework 5 Review Exercise 3: Other Generalized Quantifiers Question A some: {X: P 1 (X)} ∩ {Y: P 2 (Y)} ≠ ∅ –Some women like ice cream (plural agreement) –*Some woman likes ice cream qnp(M) --> q(M), n(P), {predicate1(M,P)}. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),subset(L1,L2))) --> [every]. q((findall(_X,_P1,L1),findall(_Y,_P2,L2),intersect(L1,L2,L3),\+L3=[])) --> [some]. ?- s(M,[some,women,like,ice,cream],[]), call(M). M = findall(_A,woman(_A),[mary,jill]),findall(_B,likes(_B,ice_cream),[john,mary,jill]),i ntersect([mary,jill],[john,mary,jill],[mary,jill]),\+[mary,jill]=[]

Chapter 8: Tense, Aspect and Modality

Tense Formal tools for dealing with the semantics of tense (Reichenbach): –use the notion of an event –relate utterance or speech time (S), event time (E) and reference (R) aka topic time (T) –S,E and T are time intervals: think of them as time lines equivalently, infinite sets containing points of time –examples of relations between intervals: precedence (<), inclusion ( ⊆ ) S yesterday 0:0023:5916:07 R

Past Tense Example: –(16) Last month, I went for a hike –S = utterance time –E = time of hike What can we infer about event and utterance times? –E is within the month previous to the month of S –(Note: E was completed last month) Tense (went) –past tense is appropriate since E < S Reference/Topic time? –may not seem directly applicable here –T = last_month(S) –think of last_month as a function that given utterance time S –computes a (time) interval –name that interval T

Past Tense Example: –(16) Last month, I went for a hike What can we infer? –T = reference or topic time –T = last_month(S) –E ⊆ T –E is a (time) interval, wholly contained within or equal to T Tense (went) –past tense is appropriate when –T < S, E ⊆ T

Past Tense Example: –(17) Yesterday, Noah had a rash What can we infer? –T = yesterday(S) –“yesterday” is relative to utterance time (S) –E = interval in which Noah is in a state of having a rash –E may have begun before T –E may extend beyond T –E may have been wholly contained within T –E ⋂ T ≠ ∅ Tense (had) –appropriate since T < S, E ⋂ T ≠ ∅ expression reminiscent of the corresponding expression for the generalized quantifier some

Simple Present Tense In English (18a) Mary runs(simple present) has more of a habitual reading –does not imply (18b) Mary is running(present progressive) –T = S, run(mary) T = “at time T” i.e. Mary is running right now at utterance time –(cf. past: T < S) However, the simple present works when we’re talking about “states” Example: (has) –(18c) Noah has a rash(simple present) –rash(noah) T, T=S –i.e. Noah has the property of having a rash right now at utterance time English simple present tense: T=S, E has a stative interpretation, E ⋂ T ≠ ∅

Simple Present Tense Some exceptions to the stative interpretation idea Historical Present –present tense used to describe past events –Example: (19a) This guy comes up to me, and he says, “give me your wallet” cf. This guy came up to me, and he said... Real-time Reporting –describe events concurrent with utterance time –Example: (19b) She kicks the ball, and – it’s a goal! cf. She is kicking the ball