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

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

CSC Discrete Math I, Spring Propositional Logic

Compound Propositions

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

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

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

Topic 1: Propositional logic

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

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 =

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

CISC-102 Winter 2016 Lecture 17

Ling 130 Notes: Syntax and Semantics of Propositional Logic

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Propositional logic ( ): Review from Mat 1348

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

Truth-Functional Logic

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

CITS2211 Discrete Structures. Propositional Logic

Language of Propositional Logic

1.1 Language and Logic

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

Section 1.1: Logical Form and Logical Equivalence

1.1 Language and Logic

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

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

Lecture 7. Logic. Section1: Statement Logic.

Discrete Mathematics and Its Applications

2.2: Logical Equivalence: The Laws of Logic

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

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Propositional Language - Semantics

Mathematics for linguists

Semantics I, Rutgers University Week 3-1 Yimei Xiang September 17, Predicate logic

15414/614 Optional Lecture 1: Propositional Logic

PL: Truth Trees. Handout Truth Trees: The Setup

CSE 20: Discrete Mathematics

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

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

Tecniche di Verifica. Introduction to Propositional Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Chapter 1, Section 1.1 Propositional Logic

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

UNIT-I: Propositional Logic

Learning Goals of CS245 Logic and Computation

DERIVATIONS AND TRUTH TABLES

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC

Discrete Mathematics and Applications COT3100

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

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

THE LOGIC OF COMPOUND STATEMENTS

Chapter 4: Classical Propositional Semantics

ANALYSIS EXERCISE 1 SOLUTIONS

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

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

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

Proofs. Joe Patten August 10, 2018

Introduction to Sets and Logic (MATH 1190)

Propositional Equivalence

AMTH140 Lecture 8. Symbolic Logic

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

PHI Propositional Logic Lecture 2. Truth Tables

Chapter 1 Elementary Logic

Logic: Propositional Logic (Part I)

A. Brief review of classical propositional logic (PL)

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

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

Section 1.2: Propositional Logic

Propositional Logic Review

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

Logic and Discrete Mathematics. Section 3.5 Propositional logical equivalence Negation of propositional formulae

22c:145 Artificial Intelligence

PROPOSITIONAL CALCULUS

COMP 2600: Formal Methods for Software Engineeing

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

SE 212: Logic and Computation. se212 Nancy Day

Mathematical Logic Part One

10 Propositional logic


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

Logic. Readings: Coppock and Champollion textbook draft, Ch

The Logic of Compound Statements cont.

Section 1.1 Propositional Logic. proposition : true = T (or 1) or false = F (or 0) (binary logic) the moon is made of green cheese

It rains now. (true) The followings are not propositions.

Boolean Logic. CS 231 Dianna Xu

THE LOGIC OF COMPOUND STATEMENTS

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna


CHAPTER 10. Gentzen Style Proof Systems for Classical Logic

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

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

PHIL12A Section answers, 16 February 2011

Inference in Propositional Logic

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

CISC-102 Fall 2018 Week 11

7 LOGICAL AGENTS. OHJ-2556 Artificial Intelligence, Spring OHJ-2556 Artificial Intelligence, Spring

Chapter 1: Formal Logic

Propositional Languages

Propositional Logic: Models and Proofs

Transcription:

LING 106. Knowledge of Meaning Lecture 3-1 Yimei Xiang Feb 6, 2016 Propositional logic 1 Vocabulary of propositional logic Vocabulary (1) a. Propositional letters: p, q, r, s, t, p 1, q 1,..., p 2, q 2,... b. Propositional connectives:, ^, _, Ñ, Ø c. Parentheses: ( ) Connectives Compose proposition with connectives Translation negation p (the negation of p) it is not the case that p conjunction p ^ q (conjunction of p and q) p and q disjunction p _ q (disjunction of p and q) p or q implication p Ñ q (implication of p and q) if p, then q equivalence p Ø q (equivalence of p and q) p if and only if q Exercise: Translate the following sentences into propositional logic. (2) ex. John didn t hand in the exam. h = John handed in the exam. h. a. It is not the case that Guy comes if Peter or Harry comes. b. John is not only stupid but also nasty. c. Nobody laughed or applauded. d. Charles and Elsa are brother and sister or nephew and niece. 2 Syntax of propositional logic Well-formed formulas (wffs): grammatically correct expressions (3) A recursive definition for wff in a language L a. Every propositional letter in the vocabulary of L is a wff in L. b. If p is a wff in L, then p is too. c. If p and q are wffs in L, then so are pp ^ qq, pp _ qq, pp Ñ qq, and pp Ø qq. d. Nothing else is a wff in L. Exercise: Following the recursive rules above, identify whether each of the following strings is a wff. (4) a. ppq b. p pq c. p d. pp ^ qq 1

Abbreviations (to make formulas easier to read while do not carry any danger of ambiguity): (5) Abbreviation rules a. The outermost parentheses need not be explicitly mentioned. p ^ q is short for pp ^ qq b. The conjunction and disjunction symbols apply to as little as possible. p ^ q Ñ r _ s is short for ppp ^ qq Ñ p r _ sqq Exercise: Add parentheses to the following wffs. (6) a. p Ñ pq Ñ r _ sq b. pp Ñ qq Ñ r _ s 3 Semantics of propositional logic 3.1 Truth values and truth functional Every declarative sentence has exactly one truth value. In a two-valued logic, every sentence is assigned one of the following truth values: 1 (TRUE) or 0 (FALSE). The truth value of a complex sentence is computed based on (i) the truth-values of the connected simple sentences and (ii) the truth-functional properties of the connective(s). (7) a. There is a blizzard and I feel good. b. There is a blizzard but I feel good. 3.2 Truth tables Truth tables of propositional connectives p q p p ^ q p _ q p Ñ q p Ø q 1 1 0 1 1 1 1 1 0 0 0 1 0 0 0 1 1 0 1 1 0 0 0 1 0 0 1 1 More on disjunctions: The disjunction p _ q is an inclusive disjunction. In natural languages, however, p or q is more likely to be interpreted exclusively: an exclusive disjunction is true iff exactly one of the disjuncts is true. (8) Your money or your life! Exercise: Make a truth table for the exclusive disjunction. 2

More on implications: In propositional logic, an implication p Ñ q is defined truth-functionally. The antecedent p and the consequent q do not necessarily have a causal relation. (9) a. If Harvard is in Cambridge, then Cambridge has no university. b. If Gennaro is a professor at Harvard, then Boston is in MA. When the antecedent is false, the implication is vacuously true regardless of whether the consequent is true or false. (10) a. If 1+1 = 0, then Boston is in MA. TRUE b. If 1+1 = 0, then Boston is not in MA. TRUE 3.3 Logical equivalence p and q are said to be (logically) equivalent iff for every valuation V, we have: V ppq V pqq For example, p and p Ñ p are logically equivalent. p p p Ñ p V 1 1 0 0 V 2 0 1 1 Exercise: Are the following pairs of wffs/sentences (logically) equivalent? (11) a. p Ñ q b. p _ q (12) a. If Gennaro is a professor of Harvard Linguistics, then his office is in Boylston. b. If Jim is a professor of Harvard Linguistics, then his office is in Boylston. (13) a. If Gennaro is a professor of Harvard Linguistics, then his office is in Boylston. b. It is not the case that [Gennaro is a professor of Harvard linguistics, and his office isn t in Boylston]. 3

3.4 Tautology, contradiction, contingency Terminologis: Tautology: Always true p _ p Contradiction: Always false p ^ p Contingency: Sometimes true and sometimes false p A selected list of tautologies (redundant brackets are omitted) (14) Associative and commutative laws for ^, _, Ø (15) Distributive laws a. pp ^ pq _ rqq Ø ppp ^ qq _ pp ^ rqq b. pp _ pq ^ rqq Ø ppp _ qq ^ pp _ rqq (16) Negation a. p Ø p b. pp Ñ qq Ø pp ^ qq c. pp Ø qq Ø ppp ^ qq _ p p ^ qqq (17) De Morgan s laws (18) Others a. pp ^ qq Ø p p _ qq b. pp _ qq Ø p p ^ qq a. p _ p Excluded middle b. pp ^ pq Contradiction c. pp Ñ qq Ø p q Ñ pq Contraposition d. ppp ^ qq Ñ rq Ø pp Ñ pq Ñ rqq Exportation Exercise: Let p be a tautology, q a contradiction, and r a contingency. Which of the following sentences are (i) tautological, (ii) contradictory, (iii) contingent, (iv) logically equivalent to r. (19) a. p ^ r b. p _ r c. q ^ r d. p _ q e. r Ñ q 4

Two ways of determining whether a wff. is a tautology. Truth-table method We investigate every possible combination of truth-values for the simple sentences and then check the resulting truth-value of the complex expression. Example: p Ñ p Example: p Ñ pq Ñ pq p p p p Ñ p 1 0 1 1 0 1 0 1 p q q Ñ p p Ñ pq Ñ pq 1 1 1 1 1 0 1 1 0 1 0 1 0 0 1 1 Indirect reasoning Assume that the considered wff is false. If this assumption leads to a contradiction (i.e., impossible to be false), this wff is a tautology; otherwise it isn t. Example: rp Ñ pq ^ rqs Ñ pp Ñ rq rp Ñ pq ^ rq] Ñ [p Ñ r] 1 0 2 1 0 3 1 0 4 1 0 5 1 0 6 0 Exercise: Determine whether the following sentences are tautologous: (20) a. (p Ñ q) Ñ (q Ñ p) b. p _ pp Ñ qq 5