The basics of propositional logic

Slides:



Advertisements
Similar presentations
Introduction to Theorem Proving
Advertisements

Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
CS128 – Discrete Mathematics for Computer Science
CISC 1400: Logic Fall 2011, X. Zhang, Fordham Univ. 1.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Section 1.1 Logic. 2 Proposition Statement that is either true or false –can’t be both –in English, must contain a form of “to be” Examples: –Cate Sheller.
The Language of Propositional Logic The Syntax and Semantics of PL.
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley. All rights reserved.
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
Satisfiability & Logical Truth PHIL /16/2001.
Truth Tables for Negation, Conjunction, and Disjunction.
3.2 – Truth Tables and Equivalent Statements
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.2 Truth Tables for Negation, Conjunction, and Disjunction.
Discrete Math – Logic Unit
The Foundations: Logic and Proofs
Intro to Discrete Structures
Chapter 1 Section 1.4 More on Conditionals. There are three statements that are related to a conditional statement. They are called the converse, inverse.
Section 1.5 Implications. Implication Statements If Cara has a piano lesson, then it is Friday. If it is raining, then I need to remember my umbrella.
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
MATH 213 A – Discrete Mathematics for Computer Science Dr. (Mr.) Bancroft.
Boolean Algebra – the ‘Lingua Franca’ of the Digital World The goal of developing an automata is based on the following (loosely described) ‘ideal’: if.
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
Lecture 5 Knights and Knaves.. Administration Show hand in form. Show plagiarism form. Any problems with coursework? Google knight and knaves and look.
Copyright © Curt Hill Using Propositional Logic Several applications.
MATH 102 Contemporary Math S. Rook
1 Introduction to Abstract Mathematics The Logic and Language of Proofs Instructor: Hayk Melikya Proposition: Informal introduction to.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
CSE 20: Discrete Mathematics for Computer Science Prof. Shachar Lovett.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley. All rights reserved.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Chapter 2: The Logic of Compound Statements 2.2 Conditional Statements
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
Reading: Chapter 4 (44-59) from the text book
Chapter 7 Logic, Sets, and Counting
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.
MAIN TOPIC : Statement, Open Sentences, and Truth Values Negation Compound Statement Equivalency, Tautology, Contradiction, and Contingency Converse, Inverse,
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.
COMP 170 L2 Part 3 of Course Chapter 3 of Textbook.
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Logical Form and Logical Equivalence M Logical Form Example 1 If the syntax is faulty or execution results in division by zero, then the program.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Laws of Boolean Algebra Commutative Law Associative Law Distributive Law Identity Law De Morgan's Theorem.
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,
Propositional Logic – The Basics (2) Truth-tables for Propositions.
Section 1.1 Propositions and Logical Operations. Introduction Remember that discrete is –the study of decision making in non-continuous systems. That.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
Dr. Naveed Riaz Design and Analysis of Algorithms 1 1 Formal Methods in Software Engineering Lecture # 25.
Outline Logic Propositional Logic Well formed formula Truth table
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
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.
Chapter 1 Logic and proofs
Introduction to Discrete Mathematics Lecture 1: Sep 6 AB C a = qb+r gcd(a,b) = gcd(b,r)
Introduction to Logic © 2008 Pearson Addison-Wesley.
The Foundations: Logic and Proofs
DISCRETE MATHEMATICS CHAPTER I.
Truth Tables and Equivalent Statements
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
Discrete Structures for Computer Science
Applications of Propositional Logic
CSRU 1400 Discrete Structure: Logic
CS 220: Discrete Structures and their Applications
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Discrete Mathematics Lecture 2: Propositional Logic
Formal Methods in Software Engineering
Presentation transcript:

The basics of propositional logic Section 1.3 The basics of propositional logic

Liars and Truthtellers Raymond Smullyan has written a number of wonderful books filled with challenging logic puzzles. A recurring theme in these books is an Island where each inhabitant is either a Liar or a Truthteller. Here is an example: You come across two inhabitants of the island, let’s call them A and B. A says, “We are both telling the truth,” and B says, “A is lying.” Can you tell who is a liar and who is a truthteller?

Liars and Truthtellers To solve the puzzle, we consider in table form the four possibilities for the types of people A and B are: Scenario #1 A is a TruthTeller B is a TruthTeller Scenario #2 B is a Liar Scenario #3 A is a Liar Scenario #4

Liars and Truthtellers In each of these situations, we consider the two statements that were made. To keep from getting dizzy, we will initially make our assessment purely with regard to the actual statements and with no regard to who makes the statements. Both A and B are TruthTellers A is a Liar Scenario #1 A is a TruthTeller B is a TruthTeller Scenario #2 B is a Liar Scenario #3 Scenario #4

Propositional logic Propositional logic is essentially a shorthand for the expression of sentences along with some rules that govern when compound expressions are true or false. In the previous example, we might use the propositional variable p for the statement, “A is a truthteller,” and the propositional variable q for the statement, “B is a truthteller.”

Propositional logic Propositional logic is essentially a shorthand for the expression of sentences along with some rules that govern when compound expressions are true or false. The logical connectives Ù, Ú, and Ø stand for the English words “and,” “or,” and “not,” respectively. So the statement “A and B are both Truthtellers” can be expressed p Ù q, and the statement, “A is lying” can be expressed as Ø p.

Truth tables for formal propositions Using these shorthand conventions, we can write the table that allowed us to solve the previous problem in the following concise form: p q p Ù q Ø p T F

Who is the truthteller? Who is the liar? Now consider which person, A or B, made each statement. Consider each row in the table and determine if each outcome could represent the real situation.

Problem 2: Suppose that you meet three inhabitants, A, B, and C and that A says, “B or C is lying,” B says, “C is lying,” and C says, “A and I are both telling the truth.” Who if anyone is telling the truth. Set up a truth table to solve this problem.

Propositional logic Sasha is a soccer player who also plays chess. Practice Problem. Write each of the following statements in propositional logic using the propositional variable c for “Sasha is a chess player” and the variable s for “Sasha plays soccer.” Sasha is a soccer player who also plays chess. Sasha is a soccer player but has not learned chess yet. Sasha has time to participate in soccer or chess but not both.

Truth tables for compound statements The key to making a truth table is to analyze the truth of statements from simple to complex in each of the possible scenarios for the values of the propositional variables. Example. Give the truth table for the statement, “Ø (p Ú q)” p q p Ú q Ø (p Ú q) T F

Truth tables for compound statements Practice. Give the truth table for the statement, “(Ø p) Ù (Ø q)” p q Ø p Ø q (Ø p) Ù (Ø q) T F

Negations of formal propositions When a propositional statement is false, its negation is a true propositional statement. For example, if the statement “Sasha plays soccer and chess” is false, then the statement “Sasha doesn’t play chess or Sasha doesn’t play soccer” is true. An advantage of formal logic is that we can present formal rules for negating compound statements like this.

Negations of formal propositions The truth table examples we saw earlier give us one such rule for negation. The truth tables for the statements Ø(p Ú q) and (Ø p) Ù (Ø q) were identical.

Logical equivalence When two statements have exactly the same truth table, we say that the two statements are logically equivalent. The pair Ø(p Ú q) and (Ø p) Ù (Ø q) of logically equivalent statements is one of DeMorgan’s Laws, and it gives us a handy way to rewrite potentially clumsy negated statements.

Which of the following statements are true?

Before next time you should… Read Section 1.3 of the text completing all Practice Problems as you go. Practice truth tables by going to the Flash section of the Discrete Math website and completing all problems from Section 1.3. See if you have questions on any of the assigned questions from Section 1.3.