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 =

Similar documents
Ling 130 Notes: Syntax and Semantics of Propositional Logic

CSC Discrete Math I, Spring Propositional Logic

Truth-Functional Logic

UNIT-I: Propositional Logic

Compound Propositions

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

EECS 1028 M: Discrete Mathematics for Engineers

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, Propositional logic

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

Boolean Logic. CS 231 Dianna Xu

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

A statement is a sentence that is definitely either true or false but not both.

Definition 2. Conjunction of p and q

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

Propositional logic ( ): Review from Mat 1348

Lecture 7. Logic. Section1: Statement Logic.

Logic. Def. A Proposition is a statement that is either true or false.

DERIVATIONS AND TRUTH TABLES

Chapter 1, Section 1.1 Propositional Logic

2.2: Logical Equivalence: The Laws of Logic

22c:145 Artificial Intelligence

Functions. Lecture 4: Truth functions, evaluating compound statements. Arithmetic Functions. x y x+y

AI Principles, Semester 2, Week 2, Lecture 5 Propositional Logic and Predicate Logic

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

15414/614 Optional Lecture 1: Propositional Logic

Logic: Propositional Logic (Part I)

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

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

Chapter 1: The Logic of Compound Statements. January 7, 2008

Propositional Language - Semantics

PL: Truth Trees. Handout Truth Trees: The Setup

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

Propositional Logic. Spring Propositional Logic Spring / 32

Today s Topic: Propositional Logic

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

1.1 Language and Logic

Learning Goals of CS245 Logic and Computation

Sec$on Summary. Propositions Connectives. Truth Tables. Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

Propositional Languages

PROPOSITIONAL CALCULUS

Discrete Mathematics and Applications COT3100

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Propositional Logic 1

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

CSCE 222 Discrete Structures for Computing. Propositional Logic. Dr. Hyunyoung Lee. !!!!!! Based on slides by Andreas Klappenecker

Introduction to Sets and Logic (MATH 1190)

1.3 Propositional Equivalences

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

More Propositional Logic Algebra: Expressive Completeness and Completeness of Equivalences. Computability and Logic

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

1.1 Language and Logic

DISCRETE MATHEMATICS BA202

1 Propositional Logic

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

Propositional Equivalence

Propositional Logic Review

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Discrete Structures for Computer Science

Natural Deduction for Propositional Logic

3.2: Compound Statements and Connective Notes

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

The statement calculus and logic

Overview. 1. Introduction to Propositional Logic. 2. Operations on Propositions. 3. Truth Tables. 4. Translating Sentences into Logical Expressions

Propositional Logic: Logical Agents (Part I)

Propositional Logic George Belic

2/18/14. What is logic? Proposi0onal Logic. Logic? Propositional Logic, Truth Tables, and Predicate Logic (Rosen, Sections 1.1, 1.2, 1.

Mathematical Logic Part One

Discrete Mathematics

Introduction to Decision Sciences Lecture 2

Propositional Logic and Semantics

THE LOGIC OF COMPOUND STATEMENTS

Math.3336: Discrete Mathematics. Propositional Equivalences

Logic Overview, I. and T T T T F F F T F F F F

Natural Deduction. Formal Methods in Verification of Computer Systems Jeremy Johnson

Propositional Logic: Models and Proofs

Mathematics for linguists

INTRODUCTION TO LOGIC 3 Formalisation in Propositional Logic

CSE 311: Foundations of Computing. Lecture 2: More Logic, Equivalence & Digital Circuits

Logic. Readings: Coppock and Champollion textbook draft, Ch

Section 1.1: Logical Form and Logical Equivalence

ICS141: Discrete Mathematics for Computer Science I

Tools for reasoning: Logic. Ch. 1: Introduction to Propositional Logic Truth values, truth tables Boolean logic: Implications:

CISC-102 Winter 2016 Lecture 17

Section 3.1 Statements, Negations, and Quantified Statements

Transcription:

Introduction to Propositional Logic Propositional Logic (PL) is a logical system that is built around the two values TRUE and FALSE, called the TRUTH VALUES. true = 1; false = 0 1. Syntax of Propositional Logic 1.1. Syntactic Rules 1. Any atomic statement (represented by the letters p, q, r, s, ) is a formula in PL p = It is snowing. q = It is cold. r = Mary will go to the party. s = Jane will go to the party. 2. (a) If ϕ is a formula in PL, then ϕ is a formula in PL too. It is not the case that ϕ. p = It is not the case that it is snowing = It is not snowing. r = It is not the case that Mary will go to the party = Mary will not go to the party. (b) If ϕ and ψ are formulae in PL, then (ϕ ψ) is a formula in PL ϕ and ψ. p q = It is snowing and it is cold. 1 (c) If ϕ and ψ are formulae in PL, then (ϕ ψ) is a formula in PL. ϕ or ψ. p q = It is snowing or it is cold. (d) If ϕ and ψ are formulae in PL, then (ϕ ψ) is a formula in PL. if ϕ then ψ p q = If it is snowing then it is cold. (e) If ϕ and ψ are formulae in PL, then (ϕ ψ) is a formula in PL. ϕ if and only if ψ. r s = Mary will go to the party if and only if (iff) Jane will go to the party. 3. Nothing else is a formula in PL. 1.2 Syntactic structure Syntactic structure of (p q). (p q) (p q) p q 2

Question: Construct the syntactic tree for: ( (p q) r) (s q) 3 2. Semantics of Propositional Logic Semantic value of PL non-atomic formulae: For any PL formulae ϕ and ψ, 2.1. Negation [[ ϕ]] = 1 iff [[ϕ]] = 0 ϕ ϕ 1 0 0 1 (1) It is not raining. 2.2. Conjunction [[ϕ ψ]] = 1 iff [[ ϕ ]] = 1 and [[ψ]] = 1. ϕ ψ ϕ ψ 1 0 0 0 1 0 0 0 0 (2) Ann is rich and Mason is poor. 4

Sometimes, and implies that the events expressed in the propositions occurred sequentially: i.e. the event expressed in the first proposition occurred before the event expressed in the second proposition. (3) a. Jenny got married and got pregnant. b. Jenny got pregnant and got married. But and even though imply contrast between the two propositions and unexpectedness of the connection between the two propositions. (4) a. Jane snores, but John sleeps well. b. Even though Jane snores, John sleeps well. The division of labor between truth-conditional semantics and pragmatics: Truth-conditionally, and with sequential meaning, but and even though have the same meaning as the propositional logic conjunction. The extra meaning of temporal sequence, contrast, or unexpectedness should be explained by pragmatics. Sentences with phrasal conjunctions cannot always be directly translated into propositional logic. (5) a. John and Mary sang. b. John sang and Mary sang. (6) a. John and Mary met in New York. b. Mary mixed red and blue paint. c. At most two children sang and danced. 5 2.3. Disjunction [[ϕ ψ]] = 1 iff [[ ϕ ]] = 1 or [[ψ]] = 1. ϕ ψ ϕ ψ 1 0 1 0 1 1 0 0 0 Exclusive or (7) a. All entrees are served with soup or salad. b. Either John left or Mary left. Question: Let s define semantics for exclusive or. ϕ ψ = 1 if either ϕ or ψ is true, but not when both are true. 6

ϕ ψ ϕ ψ 1 1 1 0 0 1 0 0 Inclusive or (8) a. At present we invite all passengers who need some extra help, or who are traveling with small children, to board the aircraft. b. At the party, Sue did not talk to either Fred or Jane. Is natural language or truth-conditionally ambiguous? Sentences with phrasal disjunctions cannot always be directly translated into propositional logic. (9) John or Mary will pick you up. (10) a. A dentist or a doctor can write prescriptions. b. Many students speak Chinese or English. 7 2.4. Conditional [[ϕ ψ]] = 0 iff [[ ϕ ]] = 1 and [[ψ]] = 0. ϕ ψ ϕ ψ 1 0 0 0 1 1 0 0 1 Note that if the antecedent of a conditional statement is false, then the entire conditional statement is true, no matter what the truth value of the consequent of the conditional is. Why should this be? If the hypothesis is false, we can t be sure whether the conclusion follows from it or not: From a false hypothesis, every statement follows. 8

2.5. Biconditional [[ϕ ψ]] = 0 iff [[ ϕ ]] = [[ψ]]. ϕ ψ ϕ ψ 1 0 0 0 1 0 0 0 1 (11) Janice will go the party if and only if Joan goes. 9 Question: Translate the following sentences into propositional logic formulas. (13) a. This engine is noisy and it uses a lot of energy. b. Joan or Mary left. c. It is not the case that Cain is guilty and Abel is not. d. John is not only stupid but also nasty. e. Johnny wants both a train and a bicycle from Santa Claus, but he will get neither. f. John will show up only if Peter shows up. g. Charles shows up if Elsa shows up, and the other way around. h. If father and mother both go, then I won t, but if only father goes, then I will go. 3. Deriving the Semantic Value of a Complex Formula Compositionally. (14) If Peter and Susan leave, I will be upset. ((p q) r) (p q) p q r 10

p q r (p q) ((p q) r) Question: Draw the syntactic tree and do the compositional semantic interpretation of the following sentence. (15) It is not the case that I will be upset if you don t show up. KEY: p = I will be upset; q = You show up. 11 4. Tautologies, Contradictions, Contingencies A formula is a TAUTOLOGY iff it is true under any [[ ]] V. A formula is a TAUTOLOGY iff the final column in its truth table contains nothing but 1 s. (p p) (p p) (p (q p) (p p) A formula is a CONTRADICTION iff it is false under any [[ ]] V. A formula is a CONTRADICTION iff the final column in its truth table contains nothing but 0 s. (p p) (p p) ( (p q) (q p) ) A formula is CONTINGENT iff it is true under some [[ ]] V and false under some other [[ ]] V. A formula is CONTINGENT iff the final column in its truth table has both 1 and 0. p (p p) (p q) q (p q) p 5. Logical Equivalence ϕ and ψ are logically equivalent iff for every [[ ]] V, [[ϕ]] V = [[ψ ]] V. 12

ϕ and ψ are logically equivalent iff ϕ ψ is a tautology. Notation: ϕ ψ. Logical equivalences: DeMorgan s Law (φ ψ) ( φ ψ) (φ ψ) ( φ ψ) Contraposition (φ ψ) ( ψ φ) Conditional Law (φ ψ) ( φ ψ) Biconditional Law (φ ψ) (φ ψ) (ψ φ) Distributive Law Idempotent Law Commutative Law Complement Law Identity Law Associative Law (φ (ψ χ) ((φ ψ) (φ χ)) (φ (ψ χ) ((φ ψ) (φ χ)) (φ φ) φ (φ φ) φ (φ ψ) (ψ φ) (φ ψ) (ψ φ) (φ φ) T (φ φ) F φ φ (φ F) φ (φ T) T (φ F) F (φ T) φ (φ ψ) χ φ (ψ χ) (φ ψ) χ φ (ψ χ) 13 Reducing Boolean operations Because of these logical equivalences, we can express all Boolean operations in terms of the conjunction and negation operations, or in terms of the disjunction and negation operations. 6. Entailment φ entails ψ iff for every [[ ]] V, if [[φ]] V = 1 then [[ψ]] V = 1. A way to verify whether φ entails ψ is to write out a truth table for the corresponding conditional (φ ψ), and verify that the final column consists entirely of 1 s. (p q) entails p. (p q) entails q. p entails (p q). q entails (p q). ((p q) p entails q. 14