1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.

Slides:



Advertisements
Similar presentations
Logic The study of correct reasoning.
Advertisements

TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
The Foundations: Logic and Proofs
Logic Chapter 2. Proposition "Proposition" can be defined as a declarative statement having a specific truth-value, true or false. Examples: 2 is a odd.
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.
Discrete Mathematics Math 6A Instructor: M. Welling.
Conditional Statements
First Order Logic. Propositional Logic A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not.
TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.
Normal or Canonical Forms Rosen 1.2 (exercises). Logical Operators  - Disjunction  - Conjunction  - Negation  - Implication p  q   p  q  - Exclusive.
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
The Foundations: Logic and Proofs
Propositions and Truth Tables
The Foundations: Logic and Proofs
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
2009/9 1 Logic and Proofs §1.1 Introduction §1.2 Propositional Equivalences §1.3 Predicates and Quantifiers §1.4 Nested Quantifiers §1.5~7 Methods of Proofs.
Chapter 8 Logic DP Studies. Content A Propositions B Compound propositions C Truth tables and logical equivalence D Implication and equivalence E Converse,
Discrete Maths 2. Propositional Logic Objective
Discrete Mathematics and Its Applications
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Ch.1 (Part 1): The Foundations: Logic and Proofs Introduction.
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
Chapter 1: The Foundations: Logic and Proofs
CS 103 Discrete Structures Lecture 02
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Review I Rosen , 3.1 Know your definitions!
MATH 102 Contemporary Math S. Rook
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
Introductory Lecture Copyright © McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
LOGIC Lesson 2.1. What is an on-the-spot Quiz  This quiz is defined by me.  While I’m having my lectures, you have to be alert.  Because there are.
Conditional Statements
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.
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
Chapter 1: The Foundations: Logic and Proofs
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
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,
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
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.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.
Conditional statement or implication IF p then q is denoted p ⇒ q p is the antecedent or hypothesis q is the consequent or conclusion ⇒ means IF…THEN.
CS104 The Foundations: Logic and Proof 1. 2 What is Discrete Structure?  Discrete Objects  Separated from each other (Opposite of continuous)  e.g.,
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Discrete Mathematical الرياضيات المتقطعة Dr. Ahmad Tayyar Al Israa University
Chapter 1 Logic and proofs
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
Simple Logic.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
Discrete Mathematical
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
Logic.
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
Information Technology Department
Discrete Mathematics and Its Applications Kenneth H
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Presentation transcript:

1

Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton is the capital of New Jersey. Toronto is the capital of Canada = = 2 Examples that are not propositions. Sit down! What time is it? x + 1 = 2 x + y = z 2

Propositional Logic (or Calculus) Constructing Propositions Propositional Variables: p, q, r, s, … The proposition that is always true is denoted by T and the proposition that is always false is denoted by F. Compound Propositions: constructed from other propositions using logical connectives Negation ¬ Conjunction ∧ Disjunction ∨ Implication → Biconditional ↔ 3

Compound Propositions: Negation The negation of a proposition p is denoted by ¬p and has this truth table: Example: If p denotes “The earth is round” then ¬p denotes “It is not the case that the earth is round,” or more simply “The earth is not round.” p¬p¬p TF FT 4

Conjunction The conjunction of propositions p and q is denoted by p ∧ q and has this truth table: Example: If p denotes “I am at home” and q denotes “It is raining” then p ∧q denotes “I am at home and it is raining.” pqp ∧ q TTT TFF FTF FFF 5

Disjunction The disjunction of propositions p and q is denoted by p ∨q and has this truth table: Example: If p denotes “I am at home” and q denotes “It is raining” then p ∨q denotes “I am at home or it is raining.” pqp ∨q TTT TFT FTT FFF 6

The Connective Or in English In English “or” has two distinct meanings. Inclusive Or: For p ∨q to be T, either p or q or both must be T Example: “CS 202 or Math 120 may be taken as a prerequisite.” Meaning: take either one or both Exclusive Or (Xor). In p ⊕q, either p or q but not both must be T Example: “Soup or salad comes with this entrée.” Meaning: do not expect to get both soup and salad pqp ⊕q TTF TFT FTT FFF 7

Implication If p and q are propositions, then p →q is a conditional statement or implication, which is read as “if p, then q ” p is the hypothesis (antecedent or premise) and q is the conclusion (or consequence). Example: If p denotes “It is raining” and q denotes “The streets are wet” then p →q denotes “If it is raining then streets are wet.” pqp →q TTT TFF FTT FFT 8

Understanding Implication In p →q there does not need to be any connection between p and q. The meaning of p →q depends only on the truth values of p and q. Examples of valid but counterintuitive implications: “If the moon is made of green cheese, then you have more money than Bill Gates” -- True “If Juan has a smartphone, then = 6” -- False if Juan does have a smartphone, True if he does NOT 9

Understanding Implication View logical conditional as an obligation or contract: “If I am elected, then I will lower taxes” “If you get 100% on the final, then you will earn an A” If the politician is elected and does not lower taxes, then he or she has broken the campaign pledge. Similarly for the professor. This corresponds to the case where p is T and q is F. 10

Different Ways of Expressing p →q if p, then q if p, q p implies q q if p q when p q whenever p Note: (p only if q) ≡ (q if p) ≢ (q only if p) It is raining → streets are wet: T It is raining only if streets are wet: T Streets are wet if it is raining: T Streets are wet only if it’s raining: F 11 q follows from p q unless ¬p p only if q p is sufficient for q q is necessary for p

Sufficient versus Necessary Example 1: p →q : get 100% on final → earn A in class p is sufficient for q: getting 100% on final is sufficient for earning A q is necessary for p: earning A is necessary for getting 100% on final Counterintuitive in English: “Necessary” suggests a precondition Example is sequential Example 2: Nobel laureate → is intelligent Being intelligent is necessary for being Nobel laureate Being a Nobel laureate is sufficient for being intelligent (better if expressed as: implies) 12

Converse, Inverse, and Contrapositive From p →q we can form new conditional statements. q →p is the converse of p →q ¬ p → ¬ q is the inverse of p →q ¬q → ¬ p is the contrapositive of p →q How are these statements related to the original? How are they related to each other? Are any of them equivalent? 13

Converse, Inverse, and Contrapositive Example: it’s raining → streets are wet 1. converse: streets are wet → it’s raining 2. inverse: it’s not raining → streets are not wet 3. contrapositive: streets are not wet → it’s not raining only 3 is equivalent to original statement 1 and 2 are not equivalent to original statement: streets could be wet for other reasons 1 and 2 are equivalent to each other 14

Biconditional If p and q are propositions, then we can form the biconditional proposition p ↔q, read as “ p if and only if q ” Example: If p denotes “You can take a flight” and q denotes “You buy a ticket” then p ↔q denotes “You can take a flight if and only if you buy a ticket” True only if you do both or neither Doing only one or the other makes the proposition false pqp ↔q TTT TFF FTF FFT 15

Expressing the Biconditional Alternative ways to say “p if and only if q”: p is necessary and sufficient for q if p then q, and conversely p iff q 16

Compound Propositions conjunction, disjunction, negation, conditionals, and biconditionals can be combined into arbitrarily complex compound proposition Any proposition can become a term inside another proposition Propositions can be nested arbitrarily Example: p, q, r, t are simple propositions p ∨q, r ∧t, r →t are compound propositions using logical connectives (p ∨q) ∧ t and (p ∨q) →t are compound propositions formed by nesting 17

Precedence of Logical Operators OperatorPrecedence  1     2323     With multiple operators we need to know the order To reduce number of parentheses use precedence rules Example: p ∨q → ¬ r is equivalent to (p ∨q) → ¬ r If the intended meaning is p ∨(q → ¬ r ) then parentheses must be used

Truth Tables of Compound Propositions Construction of a truth table: Rows One for every possible combination of values of all propositional variables Columns One for the compound proposition (usually at far right) One for each expression in the compound proposition as it is built up by nesting 19

Example Truth Table Construct a truth table for pqr p  q rr p  q →  r TTTTFF TTFTTT TFTTFF TFFTTT FTTTFF FTFTTT FFTFFT FFFFTT 20