Adding Some. Larry Moss. Nordic Logic School August 7-11, Indiana University 1/37

Size: px
Start display at page:

Download "Adding Some. Larry Moss. Nordic Logic School August 7-11, Indiana University 1/37"

Transcription

1 1/37 Adding Some Larry Moss Indiana University Nordic Logic School August 7-11, 2017

2 2/37 What this chapter is about We started with the very small logic A of All x are y. And most recently we added verbs and relative clauses. At this point, we go back to A and add Some x are y. Tomorrow, we ll want to add some to the language of verbs, and then negation.

3 3/37 A course first-order logic R S A(RC) all+some all+no propositional logic A

4 A course first-order logic R S A(RC) all+some all+no propositional logic A My plan is to do a pretty quick treatment of the logic all + some 3/37

5 4/37 Syntax We start with a set P of unary atoms, also called nouns. The sentences today are All p are q and Some p are q, where p and q are atoms.

6 5/37 Semantics For the semantics, we use models M that consist of a set M with interpretations [[p]] of the atoms. Then we define M = All p are q iff [[p]] [[q]] M = Some p are q iff [[p]] [[q]]

7 6/37 Example M = {1,2,3,4,5,6,7,8,9} [[p]] = {1,3,4} [[q]] = {4} [[n]] = {1,7}. [[x]] = Then we have the following facts: M = Some n are p M = Some p are n M = Some p are p M = Some x are x

8 7/37 Semantic Consequences What should Γ = ϕ mean?

9 8/37 Another All p are v,all v are q,some v are w = Some p are p. Can you find a counter-model for this? That is, can you find a model where the assumptions are true and the conclusion is false?

10 9/37 The logic of All and Some All p are p axiom All p are n All n are q All p are q barbara Some p are q Some p are p some 1 Some p are q Some q are p some 2 All q are n Some p are q Some p are n darii

11 10/37 Example of a derivation in S All n are q All n are p Some n are n darii Some n are p Some p are n some 1 darii Some p are q In words: if there is an n, and if all ns are ps and also qs, then some p is a q.

12 11/37 A question to provoke your thoughts Γ = All a are b, All a are c, All b are c, All c are b, All c are d, All b are e, All d are g, All f are g, All g are f, All e are h, All b are I, Some d are e, Some I are g f,g h d I e b,c a Does Γ = Some f are h? Does Γ = Some d are I?

13 12/37 Let s see how the counter-models work Γ = All a are b, All a are c, All b are c, All c are b, All c are d, All b are e, All d are g, All f are g, All g are f, All e are h, All b are I, ϕ: Some d are e ψ: Some I are g f,g h d I e b,c [[a]] = [[b]] = [[c]] = [[d]] = {ϕ} [[e]] = {ϕ} [[f]] = {ϕ,ψ} [[g]] = {ϕ,ψ} [[h]] = {ϕ} [[I]] = {ψ} a Here is a model which shows Γ = Some d are I. M = {ϕ,ψ}. The points of the model are sentences! For all x, put ϕ in [[x]] provided d x or e x. For all x, put ψ in [[x]] provided I x or g x.

14 13/37 Completeness: if Γ = ϕ, then Γ ϕ When ϕ is an All-sentence, it s just like what we saw in Tuesday s homework. Let s do this when ϕ is a Some-sentence, say Some y are z. So we assume that Γ = Some y are z, and we show using a canonical model that we devise based on our example above that Γ Some y are z.

15 14/37 Completeness: if Γ = Some y are z, then Γ Some y are z At this point, I want to remind you of some notation from earlier in the course. If we have a set Γ in mind, we sometimes write x y to mean Γ All x are y We do this to save a little space.

16 15/37 Completeness: if Γ = Some y are z, then Γ Some y are z Let M be the set of all Some-sentences in Γ. We will use letters like ϕ and ψ for these, and we speak of the first and second atoms in these sentences. Here is how we interpret nouns in our model: [[u]] = {ϕ : }

17 Completeness: if Γ = Some y are z, then Γ Some y are z Let M be the set of all Some-sentences in Γ. We will use letters like ϕ and ψ for these, and we speak of the first and second atoms in these sentences. Here is how we interpret nouns in our model: [[u]] = {ϕ M : one of the two atoms in ϕ is Γ u} = { Some x are y in Γ : either Γ All x are u or Γ All y are u} Lemma M = Γ. Once this is done, we have M = Some y are z. Why? And we use this last fact to show that Γ Some y are z. 15/37

18 15/37 Completeness: if Γ = Some y are z, then Γ Some y are z Let M be the set of all Some-sentences in Γ. We will use letters like ϕ and ψ for these, and we speak of the first and second atoms in these sentences. Here is how we interpret nouns in our model: Lemma M = Γ. Once this is done, we have M = Some y are z. Why? And we use this last fact to show that Γ Some y are z.

19 16/37 Completeness: if Γ = Some y are z, then Γ Some y are z Lemma M = Γ. Proof. (first half) Take an All-sentence in Γ, say All a are b. Let ϕ [[a]]. We show that ϕ [[b]]. Suppose that ϕ is Some m are n. Then either m a, or else n a. Since a b, we see that either m b, or else n b. And this means that ϕ [[b]]. That is, M = All a are b.

20 17/37 Completeness: if Γ = Some y are z, then Γ Some y are z Lemma M = Γ. Proof. (second half) Take a Some-sentence in Γ, say Some a are b. This sentence itself belongs to [[a]] [[b]]. So M = Some a are b.

21 18/37 Recall that we are assuming that Γ = Some y are z, and then proving that Γ Some y are z. We have a model M, and we showed that M = Γ. So M = Some y are z. Thus, in our model [[y]] [[z]]. Let ϕ Γ belong to [[y]] [[z]]. Let s write ϕ as Some a are b. Since ϕ [[y]], either a y or b y. Since ϕ [[z]], either a z or b z. Finishing completeness

22 19/37 Finishing completeness Recall that we are assuming that Γ = Some y are z, and then proving that Γ Some y are z. Γ contains the sentence Some a are b. Case 1: a y and a z Case 2: a y and b z Case 3: b y and a z Case 4: b y and b z

23 20/37 Recall that we are assuming that Γ = Some y are z, and then proving that Γ Some y are z. Γ contains the sentence Some a are b. Case 1: a y and a z Finishing completeness. Some a are b All a are y Some a are a some 1 darii. Some a are y All a are z Some y are a some 2 darii Some y are z Case 2: a y and b z Case 3: b y and a z Case 4: b y and b z

24 21/37 Recall that we are assuming that Γ = Some y are z, and then proving that Γ Some y are z. Γ contains the sentence Some a are b. Case 1: a y and a z Finishing completeness Case 2: a y and b z Case 3: b y and a z Case 4: b y and b z Some a are b. Some b are a some 2 All b are y Some b are b some 1 darii. Some b are y All b are z Some y are b some 2 darii Some y are z

25 22/37 Finishing completeness Recall that we are assuming that Γ = Some y are z, and then proving that Γ Some y are z. Case 1: a y and a z Case 2: a y and b z You try this one. Case 3: a z and b y You try this one. Case 4: a z and b z

26 23/37 To see if Γ Some a are b Construct the All-graph of Γ. Look at All the Some sentences in Γ one at a time. Let s say that one of them is Some u are v. Ask if one of the following 4 conditions hold: We can get from u to a, and from u to b. We can get from u to a, and from v to b. We can get from v to a, and from u to b. We can get from v to a, and from v to b. If this happens for any sentence Some u are v in Γ some, then we know that Γ Some a are b. If not, then we want to make a counter-model, say M. We take the universe M to be the set Γ some. Some u are v [[W]] iff either u W or v W.

27 24/37 Adding Some-sentences to A(RC) Recall that A(RC) is our language with term formers r all t sentence former All t u. We now want to enlarge this by adding sentence former Some t u. (Of course, we will then want to add term formers r all t. But I m not going to go there today. )

28 25/37 The natural thing to try All p are p axiom All p are n All n are q All p are q barbara Some p are q Some p are p some 1 Some p are q Some q are p some 2 All q are n Some p are q Some p are n darii All x (r all y) All z y All x (r all z) down

29 26/37 But this doesn t work! Theorem There is no finite sound and complete set of rules of the kind we have been studying for this language.

30 26/37 But this doesn t work! Theorem There is no finite sound and complete set of rules of the kind we have been studying for this language. Here is a hint of why this is the case. some c d,all a x,all a y,all (r all a) x,all (r all a) y some x y. Let Γ be the set of assumptions on the left. Claim Γ = some x y Can you think about this? Hint Do it by cases depending on whether [[a]] = or not.

31 27/37 Proof by Cases We adopt a new rule, (cases). [some x x] ϕ [all z 1 (r 1 all x)] [all z k (r k all x)] ϕ ϕ cases

32 27/37 Proof by Cases We adopt a new rule, (cases). [some x x] ϕ In words, to prove ϕ from Γ, we may Take any variable (=noun) x. [all z 1 (r 1 all x)] [all z k (r k all x)] ϕ ϕ cases Add some x are x to Γ, and prove ϕ. Add any set of sentences all z (r all x) to Γ, and again prove ϕ.

33 28/37 We show that 1 Γ {some a a} some x y 2 Γ {all c (r all a)} some x y The first is easy from all a x and all a y. The second comes from Proof by Cases: An example all c (r all a) all (r all a) y all c y all c (r all a) all (r all a) x all c x some c x some x y some c d

34 The resulting system is complete. However, adding proof features like proof by cases and reductio ad absurdum complicates the proof search algorithm. Comment on complexity Indeed, in a strictly syllogistic system, the relation Γ ϕ is in polynomial time, and adding the extra features could give us proof systems for which this relation is co-np-complete. In other words, if we have a complete logic for which the problem Γ ϕ is co-np-complete. then (assuming P NP), lll we cannot hope to find a finite, purely syllogistic proof system. 29/37

35 30/37 On the other hand For the particular logic that we are studying, term formers r all t sentence former All t u and Some t u the relation Γ ϕ happens to be in polynomial time.

36 30/37 On the other hand For the particular logic that we are studying, term formers r all t sentence former All t u and Some t u the relation Γ ϕ happens to be in polynomial time. Even more strangely, it s possible to extend the language and then indeed get a purely syllogistic system!

37 31/37 We add to our current language a new four-place sentence former with semantics When x = y, we write a x b. a b xy M = a b iff [[x]] [[y]] = implies [[a]] [[b]] xy i.e., (Some x y) (All a b) A new symbol

38 32/37 A finite, complete set of rules Alex Kruckman & LM (2017) All p are p axiom All p are n All n are q All p are q barbara Some p are q Some p are p some 1 Some p are q Some q are p some 2 All q are n Some p are q Some p are n darii All x (r all y) All z y All x (r all z) down a a r 0 xy a b yx a b r 1 xy a b xy a b r 2 x a b b c xy xy a c xy r 3 all a b a b r 4 xy a b xy r all b r all a r 5 xy a x a y xy xy b r all a xy r 6 a x a y xy xy a b xy r 7 a b u x v y uv xy xy a b xy r 8 some a b a x b y xy xy some x y r 9 some x y a b xy r 10

39 33/37 We add a complement symbol to our nouns and verbs. We always understand x to be the same as x. Relational Syllogistic Logic No embedded relative clauses, and subjects noun phrases must not contain relative clauses.

40 33/37 We add a complement symbol to our nouns and verbs. We always understand x to be the same as x. Relational Syllogistic Logic No embedded relative clauses, and subjects noun phrases must not contain relative clauses. formal syntax read in English all(p,q) all p are q some(p,q) some p are q all(p,r allq) all p r all q all(p,r someq) all p r some q some(p,r allq) some p r all q some(p,r someq) some p r some q some(p, q) some p aren t q all(p,q) no p are q some(p,r someq) some p don t-r some q some(p,r allq) some p don t-r any q all(p,r someq) all p don t-r some q all(p,r allq) all p don t-r any q

41 34/37 A model M for R is a set M, together with interpretation functions [[ ]] : P P(M) [[ ]] : R P(M M) Semantics This means that for each unary atom p P, [[p]] M, and for each binary atom r, [[r]] M M. We interpret literals p and r using set complements: [[p]] = M \[[p]] [[r]] = M 2 \[[r]]. We then interpret terms by subsets of M in the following way [[s all p]] = {m M : for all n [[p]], (m,n) [[s]]} [[s some p]] = {m M : for some n [[p]], (m,n) [[s]]} Finally, M = all(p,c) iff [[p]] [[c]] M = some(p,c) iff [[p]] [[c]]

42 35/37 One unary atom p, and one binary atom s. Example of the semantics A model M might have M = {w,x,y,z}, [[p]] = {w,x,y} and s as shown below: w x In this model, y z [[p]] = {z} [[s all p]] = [[ssomep]] = M [[ssomep]] = M Here are two R-sentences true in M: some(p,p), and also all(p,s somep).

43 36/37 Logic some(p, q) all(q, c) some(p, c) (D1) all(p, q) all(q, c) all(p, c) (B) all(p, q) some(p, c) some(q, c) (D2) all(p,p) (T) some(p,c) some(p,p) (I) all(q, c) some(p, c) some(p, q) (D3) all(p, p) all(p,c) zero some(p,tsomeq) some(q, q) (II) all(p,talln) some(q,n) all(p,tsomeq) (all ) some(p,tsomeq) all(q,n) some(p,tsomen) ( ) [ϕ] all(p,tsomeq) all(q,n) all(p,tsomen) (allall). ϕ RAA

44 37/37

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only

Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only 1/53 Extensions to the Logic of All x are y: Verbs, Relative Clauses, and Only Larry Moss Indiana University Nordic Logic School August 7-11, 2017 2/53 An example that we ll see a few times Consider the

More information

Relational Reasoning in Natural Language

Relational Reasoning in Natural Language 1/67 Relational Reasoning in Natural Language Larry Moss ESSLLI 10 Course on Logics for Natural Language Inference August, 2010 Adding transitive verbs the work on R, R, and other systems is joint with

More information

Natural Logic Welcome to the Course!

Natural Logic Welcome to the Course! 1/31 Natural Logic Welcome to the Course! Larry Moss Indiana University Nordic Logic School August 7-11, 2017 2/31 This course presents logical systems tuned to natural language The raison d être of logic

More information

ESSLLI 2007 COURSE READER. ESSLLI is the Annual Summer School of FoLLI, The Association for Logic, Language and Information

ESSLLI 2007 COURSE READER. ESSLLI is the Annual Summer School of FoLLI, The Association for Logic, Language and Information ESSLLI 2007 19th European Summer School in Logic, Language and Information August 6-17, 2007 http://www.cs.tcd.ie/esslli2007 Trinity College Dublin Ireland COURSE READER ESSLLI is the Annual Summer School

More information

6c Lecture 14: May 14, 2014

6c Lecture 14: May 14, 2014 6c Lecture 14: May 14, 2014 11 Compactness We begin with a consequence of the completeness theorem. Suppose T is a theory. Recall that T is satisfiable if there is a model M T of T. Recall that T is consistent

More information

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims Introduction INTRODUCTION TO LOGIC 2 Syntax and Semantics of Propositional Logic Volker Halbach In what follows I look at some formal languages that are much simpler than English and define validity of

More information

Chapter 4: Classical Propositional Semantics

Chapter 4: Classical Propositional Semantics Chapter 4: Classical Propositional Semantics Language : L {,,, }. Classical Semantics assumptions: TWO VALUES: there are only two logical values: truth (T) and false (F), and EXTENSIONALITY: the logical

More information

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

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

More information

Arguments and Proofs. 1. A set of sentences (the premises) 2. A sentence (the conclusion)

Arguments and Proofs. 1. A set of sentences (the premises) 2. A sentence (the conclusion) Arguments and Proofs For the next section of this course, we will study PROOFS. A proof can be thought of as the formal representation of a process of reasoning. Proofs are comparable to arguments, since

More information

Syllogistic Logic and its Extensions

Syllogistic Logic and its Extensions 1/31 Syllogistic Logic and its Extensions Larry Moss, Indiana University NASSLLI 2014 2/31 Logic and Language: Traditional Syllogisms All men are mortal. Socrates is a man. Socrates is mortal. Some men

More information

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

Truth-Functional Logic

Truth-Functional Logic Truth-Functional Logic Syntax Every atomic sentence (A, B, C, ) is a sentence and are sentences With ϕ a sentence, the negation ϕ is a sentence With ϕ and ψ sentences, the conjunction ϕ ψ is a sentence

More information

Essential facts about NP-completeness:

Essential facts about NP-completeness: CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions

More information

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC 1 Motivation and History The origins of the classical propositional logic, classical propositional calculus, as it was, and still often is called,

More information

Propositional Logic: Semantics and an Example

Propositional Logic: Semantics and an Example Propositional Logic: Semantics and an Example CPSC 322 Logic 2 Textbook 5.2 Propositional Logic: Semantics and an Example CPSC 322 Logic 2, Slide 1 Lecture Overview 1 Recap: Syntax 2 Propositional Definite

More information

An Introduction to Modal Logic III

An Introduction to Modal Logic III An Introduction to Modal Logic III Soundness of Normal Modal Logics Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, October 24 th 2013 Marco Cerami

More information

Chapter 2: Introduction to Propositional Logic

Chapter 2: Introduction to Propositional Logic Chapter 2: Introduction to Propositional Logic PART ONE: History and Motivation Origins: Stoic school of philosophy (3rd century B.C.), with the most eminent representative was Chryssipus. Modern Origins:

More information

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

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

NP-Completeness and Boolean Satisfiability

NP-Completeness and Boolean Satisfiability NP-Completeness and Boolean Satisfiability Mridul Aanjaneya Stanford University August 14, 2012 Mridul Aanjaneya Automata Theory 1/ 49 Time-Bounded Turing Machines A Turing Machine that, given an input

More information

INF3170 Logikk Spring Homework #8 For Friday, March 18

INF3170 Logikk Spring Homework #8 For Friday, March 18 INF3170 Logikk Spring 2011 Homework #8 For Friday, March 18 Problems 2 6 have to do with a more explicit proof of the restricted version of the completeness theorem: if = ϕ, then ϕ. Note that, other than

More information

1 Propositional Logic

1 Propositional Logic CS 2800, Logic and Computation Propositional Logic Lectures Pete Manolios Version: 384 Spring 2011 1 Propositional Logic The study of logic was initiated by the ancient Greeks, who were concerned with

More information

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

arxiv: v1 [cs.lo] 4 Aug 2008

arxiv: v1 [cs.lo] 4 Aug 2008 Logics for the Relational Syllogistic arxiv:08080521v1 [cslo] 4 Aug 2008 Ian Pratt-Hartmann Abstract Lawrence S Moss The Aristotelian syllogistic cannot account for the validity of many inferences involving

More information

3 The language of proof

3 The language of proof 3 The language of proof After working through this section, you should be able to: (a) understand what is asserted by various types of mathematical statements, in particular implications and equivalences;

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

5. And. 5.1 The conjunction

5. And. 5.1 The conjunction 5. And 5.1 The conjunction To make our logical language more easy and intuitive to use, we can now add to it elements that make it able to express the equivalents of other sentences from a natural language

More information

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

Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning Logical Structures in Natural Language: Propositional Logic II (Truth Tables and Reasoning Raffaella Bernardi Università degli Studi di Trento e-mail: bernardi@disi.unitn.it Contents 1 What we have said

More information

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

cis32-ai lecture # 18 mon-3-apr-2006 cis32-ai lecture # 18 mon-3-apr-2006 today s topics: propositional logic cis32-spring2006-sklar-lec18 1 Introduction Weak (search-based) problem-solving does not scale to real problems. To succeed, problem

More information

On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic

On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic On the satisfiability problem for a 4-level quantified syllogistic and some applications to modal logic Domenico Cantone and Marianna Nicolosi Asmundo Dipartimento di Matematica e Informatica Università

More information

Lecture 2: Syntax. January 24, 2018

Lecture 2: Syntax. January 24, 2018 Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified

More information

Natural Logic. Larry Moss, Indiana University EASLLC, /41

Natural Logic. Larry Moss, Indiana University EASLLC, /41 1/41 Natural Logic Larry Moss, Indiana University EASLLC, 2014 2/41 This course deals with the relation of logic and natural language What does semantics look like when we make inference the primary object

More information

cse541 LOGIC FOR COMPUTER SCIENCE

cse541 LOGIC FOR COMPUTER SCIENCE cse541 LOGIC FOR COMPUTER SCIENCE Professor Anita Wasilewska Spring 2015 LECTURE 2 Chapter 2 Introduction to Classical Propositional Logic PART 1: Classical Propositional Model Assumptions PART 2: Syntax

More information

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS

CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS CHAPTER 4 CLASSICAL PROPOSITIONAL SEMANTICS 1 Language There are several propositional languages that are routinely called classical propositional logic languages. It is due to the functional dependency

More information

Mathmatics 239 solutions to Homework for Chapter 2

Mathmatics 239 solutions to Homework for Chapter 2 Mathmatics 239 solutions to Homework for Chapter 2 Old version of 8.5 My compact disc player has space for 5 CDs; there are five trays numbered 1 through 5 into which I load the CDs. I own 100 CDs. a)

More information

Ling 130 Notes: Syntax and Semantics of Propositional Logic

Ling 130 Notes: Syntax and Semantics of Propositional Logic Ling 130 Notes: Syntax and Semantics of Propositional Logic Sophia A. Malamud January 21, 2011 1 Preliminaries. Goals: Motivate propositional logic syntax and inferencing. Feel comfortable manipulating

More information

5. And. 5.1 The conjunction

5. And. 5.1 The conjunction 5. And 5.1 The conjunction To make our logical language more easy and intuitive to use, we can now add to it elements that make it able to express the equivalents of other sentences from a natural language

More information

Logics for Natural Language Inference (expanded version of lecture notes from a course at ESSLLI 2010) Lawrence S. Moss November 2010

Logics for Natural Language Inference (expanded version of lecture notes from a course at ESSLLI 2010) Lawrence S. Moss November 2010 Logics for Natural Language Inference (expanded version of lecture notes from a course at ESSLLI 2010) Lawrence S. Moss November 2010 Copyright c 2010 by Lawrence S. Moss. Contents Chapter 1. Introduction

More information

Solving Equations by Adding and Subtracting

Solving Equations by Adding and Subtracting SECTION 2.1 Solving Equations by Adding and Subtracting 2.1 OBJECTIVES 1. Determine whether a given number is a solution for an equation 2. Use the addition property to solve equations 3. Determine whether

More information

Final Exam (100 points)

Final Exam (100 points) Final Exam (100 points) Honor Code: Each question is worth 10 points. There is one bonus question worth 5 points. In contrast to the homework assignments, you may not collaborate on this final exam. You

More information

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Deduction by Daniel Bonevac. Chapter 3 Truth Trees Deduction by Daniel Bonevac Chapter 3 Truth Trees Truth trees Truth trees provide an alternate decision procedure for assessing validity, logical equivalence, satisfiability and other logical properties

More information

Logic: Propositional Logic Truth Tables

Logic: Propositional Logic Truth Tables Logic: Propositional Logic Truth Tables Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

More information

Natural Logic. Larry Moss, Indiana University. October 23, UC Berkeley Logic Seminar

Natural Logic. Larry Moss, Indiana University. October 23, UC Berkeley Logic Seminar Natural Logic Larry Moss, Indiana University UC Berkeley Logic Seminar October 23, 2015 This talk deals with new logical systems tuned to natural language The raison d être of logic is the study of inference

More information

15414/614 Optional Lecture 1: Propositional Logic

15414/614 Optional Lecture 1: Propositional Logic 15414/614 Optional Lecture 1: Propositional Logic Qinsi Wang Logic is the study of information encoded in the form of logical sentences. We use the language of Logic to state observations, to define concepts,

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

Logic I - Session 22. Meta-theory for predicate logic

Logic I - Session 22. Meta-theory for predicate logic Logic I - Session 22 Meta-theory for predicate logic 1 The course so far Syntax and semantics of SL English / SL translations TT tests for semantic properties of SL sentences Derivations in SD Meta-theory:

More information

Chapter 7 Propositional Satisfiability Techniques

Chapter 7 Propositional Satisfiability Techniques Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau University of Maryland 12:58 PM February 15, 2012 1 Motivation Propositional satisfiability:

More information

KB Agents and Propositional Logic

KB Agents and Propositional Logic Plan Knowledge-Based Agents Logics Propositional Logic KB Agents and Propositional Logic Announcements Assignment2 mailed out last week. Questions? Knowledge-Based Agents So far, what we ve done is look

More information

Natural Deduction for Propositional Logic

Natural Deduction for Propositional Logic Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic

More information

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On Basics of Proofs The Putnam is a proof based exam and will expect you to write proofs in your solutions Similarly, Math 96 will also require you to write proofs in your homework solutions If you ve seen

More information

Predicate Logic. Predicates. Math 173 February 9, 2010

Predicate Logic. Predicates. Math 173 February 9, 2010 Math 173 February 9, 2010 Predicate Logic We have now seen two ways to translate English sentences into mathematical symbols. We can capture the logical form of a sentence using propositional logic: variables

More information

Lecture 4: Proposition, Connectives and Truth Tables

Lecture 4: Proposition, Connectives and Truth Tables Discrete Mathematics (II) Spring 2017 Lecture 4: Proposition, Connectives and Truth Tables Lecturer: Yi Li 1 Overview In last lecture, we give a brief introduction to mathematical logic and then redefine

More information

1 More finite deterministic automata

1 More finite deterministic automata CS 125 Section #6 Finite automata October 18, 2016 1 More finite deterministic automata Exercise. Consider the following game with two players: Repeatedly flip a coin. On heads, player 1 gets a point.

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions

P P P NP-Hard: L is NP-hard if for all L NP, L L. Thus, if we could solve L in polynomial. Cook's Theorem and Reductions Summary of the previous lecture Recall that we mentioned the following topics: P: is the set of decision problems (or languages) that are solvable in polynomial time. NP: is the set of decision problems

More information

NP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness

NP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness Lecture 19 NP-Completeness I 19.1 Overview In the past few lectures we have looked at increasingly more expressive problems that we were able to solve using efficient algorithms. In this lecture we introduce

More information

Proof Techniques (Review of Math 271)

Proof Techniques (Review of Math 271) Chapter 2 Proof Techniques (Review of Math 271) 2.1 Overview This chapter reviews proof techniques that were probably introduced in Math 271 and that may also have been used in a different way in Phil

More information

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

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Lecture 4: Constructing the Integers, Rationals and Reals

Lecture 4: Constructing the Integers, Rationals and Reals Math/CS 20: Intro. to Math Professor: Padraic Bartlett Lecture 4: Constructing the Integers, Rationals and Reals Week 5 UCSB 204 The Integers Normally, using the natural numbers, you can easily define

More information

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013 Chapter 2 Reductions and NP CS 573: Algorithms, Fall 2013 August 29, 2013 2.1 Reductions Continued 2.1.1 The Satisfiability Problem SAT 2.1.1.1 Propositional Formulas Definition 2.1.1. Consider a set of

More information

Proofs. Joe Patten August 10, 2018

Proofs. Joe Patten August 10, 2018 Proofs Joe Patten August 10, 2018 1 Statements and Open Sentences 1.1 Statements A statement is a declarative sentence or assertion that is either true or false. They are often labelled with a capital

More information

Mathematical Preliminaries. Sipser pages 1-28

Mathematical Preliminaries. Sipser pages 1-28 Mathematical Preliminaries Sipser pages 1-28 Mathematical Preliminaries This course is about the fundamental capabilities and limitations of computers. It has 3 parts 1. Automata Models of computation

More information

Lecture 3: Semantics of Propositional Logic

Lecture 3: Semantics of Propositional Logic Lecture 3: Semantics of Propositional Logic 1 Semantics of Propositional Logic Every language has two aspects: syntax and semantics. While syntax deals with the form or structure of the language, it is

More information

Natural Logic. Larry Moss, Indiana University. ASL North American Annual Meeting, March 19, 2010

Natural Logic. Larry Moss, Indiana University. ASL North American Annual Meeting, March 19, 2010 Natural Logic Larry Moss, Indiana University ASL North American Annual Meeting, March 19, 2010 This talk deals with new logical systems tuned to natural language The raison d être of logic is the study

More information

Chapter 7 Propositional Satisfiability Techniques

Chapter 7 Propositional Satisfiability Techniques Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau CMSC 722, AI Planning University of Maryland, Spring 2008 1 Motivation Propositional

More information

Computability Crib Sheet

Computability Crib Sheet Computer Science and Engineering, UCSD Winter 10 CSE 200: Computability and Complexity Instructor: Mihir Bellare Computability Crib Sheet January 3, 2010 Computability Crib Sheet This is a quick reference

More information

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC 1 CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC Here, you ll learn: what it means for a logic system to be finished some strategies for constructing proofs Congratulations! Our system of

More information

Introducing Proof 1. hsn.uk.net. Contents

Introducing Proof 1. hsn.uk.net. Contents Contents 1 1 Introduction 1 What is proof? 1 Statements, Definitions and Euler Diagrams 1 Statements 1 Definitions Our first proof Euler diagrams 4 3 Logical Connectives 5 Negation 6 Conjunction 7 Disjunction

More information

Computational Models - Lecture 4

Computational Models - Lecture 4 Computational Models - Lecture 4 Regular languages: The Myhill-Nerode Theorem Context-free Grammars Chomsky Normal Form Pumping Lemma for context free languages Non context-free languages: Examples Push

More information

Manual of Logical Style (fresh version 2018)

Manual of Logical Style (fresh version 2018) Manual of Logical Style (fresh version 2018) Randall Holmes 9/5/2018 1 Introduction This is a fresh version of a document I have been working on with my classes at various levels for years. The idea that

More information

UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane Philosophy 142

UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane Philosophy 142 Plural Quantifiers UC Berkeley, Philosophy 142, Spring 2016 John MacFarlane Philosophy 142 1 Expressive limitations of first-order logic First-order logic uses only quantifiers that bind variables in name

More information

Proofs. Chapter 2 P P Q Q

Proofs. Chapter 2 P P Q Q Chapter Proofs In this chapter we develop three methods for proving a statement. To start let s suppose the statement is of the form P Q or if P, then Q. Direct: This method typically starts with P. Then,

More information

Introduction to Logic and Axiomatic Set Theory

Introduction to Logic and Axiomatic Set Theory Introduction to Logic and Axiomatic Set Theory 1 Introduction In mathematics, we seek absolute rigor in our arguments, and a solid foundation for all of the structures we consider. Here, we will see some

More information

Inference in Propositional Logic

Inference in Propositional Logic Inference in Propositional Logic Deepak Kumar November 2017 Propositional Logic A language for symbolic reasoning Proposition a statement that is either True or False. E.g. Bryn Mawr College is located

More information

COMP 409: Logic Homework 5

COMP 409: Logic Homework 5 COMP 409: Logic Homework 5 Note: The pages below refer to the text from the book by Enderton. 1. Exercises 1-6 on p. 78. 1. Translate into this language the English sentences listed below. If the English

More information

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31

2 Lecture 2: Logical statements and proof by contradiction Lecture 10: More on Permutations, Group Homomorphisms 31 Contents 1 Lecture 1: Introduction 2 2 Lecture 2: Logical statements and proof by contradiction 7 3 Lecture 3: Induction and Well-Ordering Principle 11 4 Lecture 4: Definition of a Group and examples 15

More information

Propositional Logic: Syntax

Propositional Logic: Syntax 4 Propositional Logic: Syntax Reading: Metalogic Part II, 22-26 Contents 4.1 The System PS: Syntax....................... 49 4.1.1 Axioms and Rules of Inference................ 49 4.1.2 Definitions.................................

More information

The Lambek-Grishin calculus for unary connectives

The Lambek-Grishin calculus for unary connectives The Lambek-Grishin calculus for unary connectives Anna Chernilovskaya Utrecht Institute of Linguistics OTS, Utrecht University, the Netherlands anna.chernilovskaya@let.uu.nl Introduction In traditional

More information

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms

More information

The semantics of propositional logic

The semantics of propositional logic The semantics of propositional logic Readings: Sections 1.3 and 1.4 of Huth and Ryan. In this module, we will nail down the formal definition of a logical formula, and describe the semantics of propositional

More information

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

CHAPTER 10. Gentzen Style Proof Systems for Classical Logic CHAPTER 10 Gentzen Style Proof Systems for Classical Logic Hilbert style systems are easy to define and admit a simple proof of the Completeness Theorem but they are difficult to use. By humans, not mentioning

More information

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

Preparing for the CS 173 (A) Fall 2018 Midterm 1

Preparing for the CS 173 (A) Fall 2018 Midterm 1 Preparing for the CS 173 (A) Fall 2018 Midterm 1 1 Basic information Midterm 1 is scheduled from 7:15-8:30 PM. We recommend you arrive early so that you can start exactly at 7:15. Exams will be collected

More information

Propositional Logics and their Algebraic Equivalents

Propositional Logics and their Algebraic Equivalents Propositional Logics and their Algebraic Equivalents Kyle Brooks April 18, 2012 Contents 1 Introduction 1 2 Formal Logic Systems 1 2.1 Consequence Relations......................... 2 3 Propositional Logic

More information

= x ( x 2 4 ) [factor out x] (2)

= x ( x 2 4 ) [factor out x] (2) Connexions module: m10717 1 Part IIc: Propositional Logic 1 Propositional Equivalences What are the roots of x 3 4x? Well, in high-school algebra you learned how to deal with such numeric formulas: x 3

More information

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

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1 Propositional Logic: Syntax and Natural Deduction 1 The Plot That Will Unfold I want to provide some key historical and intellectual context to the model theoretic approach to natural language semantics,

More information

Languages, regular languages, finite automata

Languages, regular languages, finite automata Notes on Computer Theory Last updated: January, 2018 Languages, regular languages, finite automata Content largely taken from Richards [1] and Sipser [2] 1 Languages An alphabet is a finite set of characters,

More information

MA103 STATEMENTS, PROOF, LOGIC

MA103 STATEMENTS, PROOF, LOGIC MA103 STATEMENTS, PROOF, LOGIC Abstract Mathematics is about making precise mathematical statements and establishing, by proof or disproof, whether these statements are true or false. We start by looking

More information

Spring 2018 Ling 620 The Basics of Intensional Semantics, Part 1: The Motivation for Intensions and How to Formalize Them 1

Spring 2018 Ling 620 The Basics of Intensional Semantics, Part 1: The Motivation for Intensions and How to Formalize Them 1 The Basics of Intensional Semantics, Part 1: The Motivation for Intensions and How to Formalize Them 1 1. The Inadequacies of a Purely Extensional Semantics (1) Extensional Semantics a. The interpretation

More information

For all For every For each For any There exists at least one There exists There is Some

For all For every For each For any There exists at least one There exists There is Some Section 1.3 Predicates and Quantifiers Assume universe of discourse is all the people who are participating in this course. Also let us assume that we know each person in the course. Consider the following

More information

Propositions. c D. Poole and A. Mackworth 2010 Artificial Intelligence, Lecture 5.1, Page 1

Propositions. c D. Poole and A. Mackworth 2010 Artificial Intelligence, Lecture 5.1, Page 1 Propositions An interpretation is an assignment of values to all variables. A model is an interpretation that satisfies the constraints. Often we don t want to just find a model, but want to know what

More information

NP-Completeness Part II

NP-Completeness Part II NP-Completeness Part II Please evaluate this course on Axess. Your comments really do make a difference. Announcements Problem Set 8 due tomorrow at 12:50PM sharp with one late day. Problem Set 9 out,

More information

Presentation 1

Presentation 1 18.704 Presentation 1 Jesse Selover March 5, 2015 We re going to try to cover a pretty strange result. It might seem unmotivated if I do a bad job, so I m going to try to do my best. The overarching theme

More information

Lecture 4. Algebra, continued Section 2: Lattices and Boolean algebras

Lecture 4. Algebra, continued Section 2: Lattices and Boolean algebras V. Borschev and B. Partee, September 21-26, 2006 p. 1 Lecture 4. Algebra, continued Section 2: Lattices and Boolean algebras CONTENTS 1. Lattices.... 1 1.0. Why lattices?... 1 1.1. Posets... 1 1.1.1. Upper

More information

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University

Formal Epistemology: Lecture Notes. Horacio Arló-Costa Carnegie Mellon University Formal Epistemology: Lecture Notes Horacio Arló-Costa Carnegie Mellon University hcosta@andrew.cmu.edu Logical preliminaries Let L 0 be a language containing a complete set of Boolean connectives, including

More information

Equational Logic and Term Rewriting: Lecture I

Equational Logic and Term Rewriting: Lecture I Why so many logics? You all know classical propositional logic. Why would we want anything more? Equational Logic and Term Rewriting: Lecture I One reason is that we might want to change some basic logical

More information

FORMAL PROOFS DONU ARAPURA

FORMAL PROOFS DONU ARAPURA FORMAL PROOFS DONU ARAPURA This is a supplement for M385 on formal proofs in propositional logic. Rather than following the presentation of Rubin, I want to use a slightly different set of rules which

More information

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here.

Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. Chapter 2 Mathematics and Logic Before you get started, make sure you ve read Chapter 1, which sets the tone for the work we will begin doing here. 2.1 A Taste of Number Theory In this section, we will

More information