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

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

PL: Truth Trees. Handout Truth Trees: The Setup

DERIVATIONS AND TRUTH TABLES

CSC Discrete Math I, Spring Propositional Logic

Section 1.1: Logical Form and Logical Equivalence

Logic for Computer Science - Week 4 Natural Deduction

Elementary Logic and Proof

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

Mat 243 Exam 1 Review

DeMorgan s Laws and the Biconditional. Philosophy and Logic Sections 2.3, 2.4 ( Some difficult combinations )

A Little Deductive Logic

THE LOGIC OF COMPOUND STATEMENTS

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

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

A Little Deductive Logic

TRUTH TABLES LOGIC (CONTINUED) Philosophical Methods

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

Ella failed to drop the class. Ella dropped the class.

CHAPTER 11. Introduction to Intuitionistic Logic

Logical Agents. September 14, 2004

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

Propositional Language - Semantics

Chapter 4: Classical Propositional Semantics

A Statement; Logical Operations

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

cse541 LOGIC FOR COMPUTER SCIENCE

CHAPTER 6 - THINKING ABOUT AND PRACTICING PROPOSITIONAL LOGIC

Section L.1- Introduction to Logic

THE LOGIC OF COMPOUND STATEMENTS

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

Logic and Propositional Calculus

PHIL12A Section answers, 16 February 2011

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

PROPOSITIONAL CALCULUS

Philosophy 220. Truth-Functional Equivalence and Consistency

Lecture 4: Proposition, Connectives and Truth Tables

Logic and Propositional Calculus

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

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

Math.3336: Discrete Mathematics. Propositional Equivalences

Advanced Topics in LP and FP

Mathematics for linguists

15414/614 Optional Lecture 1: Propositional Logic

Today s Lecture 2/25/10. Truth Tables Continued Introduction to Proofs (the implicational rules of inference)

5. And. 5.1 The conjunction

HANDOUT AND SET THEORY. Ariyadi Wijaya

Logic and Truth Tables

6. Conditional derivations

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

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

6. Conditional derivations

Manual of Logical Style (fresh version 2018)

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

The Logic of Compound Statements cont.

Propositional Languages

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

1.3 Propositional Equivalences

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

Warm-Up Problem. Write a Resolution Proof for. Res 1/32

CS 486: Lecture 2, Thursday, Jan 22, 2009

Part Two: The Basic Components of the SOFL Specification Language

Chapter 2: Introduction to Propositional Logic

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

5. And. 5.1 The conjunction

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

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

CS Lecture 19: Logic To Truth through Proof. Prof. Clarkson Fall Today s music: Theme from Sherlock

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

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

Propositional Logic and Semantics

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

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

1.1 Language and Logic

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

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

Propositional Logic: Syntax

PHI Propositional Logic Lecture 2. Truth Tables

Logic. Introduction to Artificial Intelligence CS/ECE 348 Lecture 11 September 27, 2001

Chapter 1: Formal Logic

Propositional Logics and their Algebraic Equivalents

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

Introduction to Metalogic 1

Propositional Equivalence


DISCRETE STRUCTURES WEEK5 LECTURE1

Truth-Functional Logic

ANALYSIS EXERCISE 1 SOLUTIONS

Artificial Intelligence. Propositional logic

Semantic Metatheory of SL: Mathematical Induction

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

Chapter 1, Section 1.1 Propositional Logic

Propositional Logic. Spring Propositional Logic Spring / 32

Formal Logic. Critical Thinking

02 Propositional Logic

AMTH140 Lecture 8. Symbolic Logic

ICS141: Discrete Mathematics for Computer Science I

Deductive Systems. Lecture - 3

VALIDITY IN SENTENTIAL LOGIC

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

Transcription:

Lecture 10: Propositional Logic II Philosophy 130 3 & 8 November 2016 O Rourke & Gibson I. Administrative A. Group papers back to you on November 3. B. Questions? II. The Meaning of the Conditional III. More Propositional Logic A. Computing Truth Values 1. Complex sentences in propositional logic are formed by combining other sentences with propositional connectives. a. Syntactically, you need only follow the formal combination rules associated with the connectives to ensure that you get a well-formed sentence, assuming you had as inputs wellformed sentences. b. Semantically, it is important to recognize that propositional connectives are truth functions they take truth values as inputs (i.e., domain values) and produce a truth value as output (i.e., range value). 2. For the ones we are working with: a. ~p : if p is T, then ~p is F, and vice versa b. p v q : this is T if one or both of p and q are T; otherwise, it is F c. p & q : this is T if both p and q are T; otherwise, it is F 1

d. p q : this is T if either p is F or q is T; otherwise, it is F specifically, if p is T and q is F, then it is F 3. These can be composed, or combined, to enable us to determine truth values for more complex sentences. Two examples, where A and B are T and X and Y are F: a. ~(A & X) v (A Y) ~(T & F) v (T F) ~F v F T v F T b. ~(~(A (B & (X v Y)))) ~(~(T (T & (F v F)))) ~(~(T (T & F ))) ~(~(T F )) ~(~( F )) ~( T ) F B. Truth Tables 1. Given that connectives are functions, their impact on the meaning of complex sentences can be summarized in a table known as a truth table. a. Truth tables can tell us how the meaning of the whole sentence is composed out of the meanings of its parts, where this is understood in terms of truth conditions. b. They can also be used to answer questions about the validity of arguments or the logical equivalence of sentences. 2. One can put a truth table together following a mechanical procedure: a. Put the sentence into symbolic form by swapping out the propositional expressions for either propositional variables or capital letters. b. Put the symbolic sentence whose truth condition is to be determined to the right of a double line and the individual atomic sentences to the left. 2

c. The individual atomic sentences will be at the top of the columns the reference columns that are to be filled in with truth values. d. All possible combinations of "T"s and "F"s should appear in the rows of the reference column part of the truth tables. e. Beginning with the connectives that apply to atomic sentences, use their meanings to fill in the column under the sentence with the truth values generated by the assignment of truth values to the constituent sentences. (To determine the order, see Algorithm handout.) f. Continue assigning truth values to connectives based on the sentences they connect and their meanings until there is a column of truth values under the principal connective. This completes the truth table and gives the meaning of the sentence. 3. Put together truth tables for the four connectives from the last lecture: p & q, p v q, ~p, p q. a. Conjunction: b. Disjunction: c. Negation: p q p & q T F F F T F F F F p q p v q T F T F T T F F F p ~ p T F F T 3

d. Conditional: p q p q T F F F T T F F T 4. For more complex sentences, we must fill out the truth tables in a way that respects how they were constructed. This means that we must often work from the inside-out. a. There are various ways to determine how to do this, such as the construction technique or the algorithm technique (see handout). b. Start with the smallest constituents and work out to the largest. i. You can fill the table out by computing columns of Ts and Fs under each of the connectives. ii. The last one you compute is the only one that matters it is the truth condition. All the rest are scaffolding. 5. Example: ~(p ~(q r)) (10.1, 10.2) C. Evaluating Arguments for Validity and Sentences for Equivalence 1. One can use truth tables to assess arguments for validity or sentences for logical equivalence. a. In both cases, you will take the sentences in question either those that constitute the argument or those whose equivalence is being interrogated and put them above their own columns on the right-hand side of the truth table. b. Fill out the table as above, treating each of the sentences on the right as independent sentences whose truth conditions are to be computed. c. Evaluate the rows that result to determine if validity or equivalence are manifest. 4

2. Validity a. Look only at those rows where all of the premises are assigned the value T. The other rows are irrelevant. (Why?) b. In any of those rows, is the conclusion assigned the value F? If so, then the argument is invalid; otherwise, it is valid. c. Example 3. Equivalence a. Look at the rows of the truth condition for each sentence. b. Are they all the same? If so, the sentences are logically equivalent; if not, then they are not. c. Example D. Relationships with Natural Language 1. Conversational implicatures and the connectives 2. Does if then really mean that? 3. Interesting and complex connective interactions: unless, neither nor 5