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.

Slides:



Advertisements
Similar presentations
Logic The study of correct reasoning.
Advertisements

TRUTH TABLES Section 1.3.
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.
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.
Chapter 2. Logic Weiqi Luo ( 骆伟祺 ) School of Software Sun Yat-Sen University : Office : A309
John Rosson Thursday February 15, 2007 Survey of Mathematical Ideas Math 100 Chapter 3, Logic.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
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.
Adapted from Discrete Math
Logic Truth Tables, Propositions, Implications. Statements Logic is the tool for reasoning about the truth or falsity of statements. –Propositional logic.
TRUTH TABLES. Introduction Statements have truth values They are either true or false but not both Statements may be simple or compound Compound statements.
Chapter 1, Part I: Propositional Logic With Question/Answer Animations.
The Foundations: Logic and Proofs
Propositions and Truth Tables
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.
Conditional Statements M Deductive Reasoning Proceeds from a hypothesis to a conclusion. If p then q. p  q hypothesis  conclusion.
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.
The Foundations: Logic and Proofs
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Discrete Maths 2. Propositional Logic Objective
CS 285- Discrete Mathematics Lecture 2. Section 1.1 Propositional Logic Propositions Conditional Statements Truth Tables of Compound Propositions Translating.
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
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.
Fall 2002CMSC Discrete Structures1 Let’s get started with... Logic !
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.
Chapter 2: The Logic of Compound Statements 2.2 Conditional Statements
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.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
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.
MADAM SITI AISYAH ZAKARIA. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC LOGICAL CONNECTIVES CONDITIONAL STATEMENT.
MAIN TOPIC : Statement, Open Sentences, and Truth Values Negation Compound Statement Equivalency, Tautology, Contradiction, and Contingency Converse, Inverse,
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
How do I show that two compound propositions are logically equivalent?
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 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Chapter 1: The Foundations: Logic and Proofs
Conditional Statements – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Conditional Statements Reading: Kolman, Section 2.2.
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.
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
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,
رياضيات متقطعة لعلوم الحاسب 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.
Mathematics for Computing Lecture 2: Computer Logic and Truth Tables Dr Andrew Purkiss-Trew Cancer Research UK
TRUTH TABLES Edited from the original by: Mimi Opkins CECS 100 Fall 2011 Thanks for the ppt.
Spring 2003CMSC Discrete Structures1 Let’s get started with... Logic !
3/6/20161 Let’s get started with... Logic !. 3/6/20162 Logic Crucial for mathematical reasoningCrucial for mathematical reasoning Used for designing electronic.
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.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Propositional and predicate logic
Introduction to Discrete Mathematics Discrete Mathematics: is the part of mathematics devoted to the study of discrete objects. Discrete Mathematics is.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Chapter 1 Logic and proofs
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
Simple Logic.
Chapter 1 Propositional Logic
CSNB 143 Discrete Mathematical Structures
Niu Kun Discrete Mathematics Chapter 1 The Foundations: Logic and Proof, Sets, and Functions Niu Kun 离散数学.
Chapter 8 Logic Topics
Information Technology Department
1.3 Propositional Equivalences
Presentation transcript:

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 number. 4 is a perfect square. The above statements are propositions as they have precise truth values. Their truth values are false and true, respectively.

Connective "Connective": Two or more propositions can be combined together to make compound propositions with the help of logical connectives. Examples: 2 is an odd number AND 4 is a perfect square. 2 is an odd number OR 4 is a perfect square. Above two propositions can be used to make a compound proposition using any of the logical connectives. Their truth vales are false and true respectively. For the first compound proposition to be true both the propositions have to be true as the connective is AND. As OR is the connective for the second one if either of the propositions is true the truth value of the compound proposition is true.

Connectives: Conjunction If p and q are propositions, the conjunction of p and q is the compound statement “p and q” It is denoted by p ^ q. The connective and is denoted by the symbol ^. The compound proposition p ^ q is true when both p and q are true, otherwise it is false. pqp ^ q TTT TFF FTF FFF Truth table

Connectives: Disjunction If p and q are propositions, the disjunction of p and q is the compound statement “p or q” It is denoted by p v q. The connective or is denoted by the symbol v. The compound proposition p v q is true if at least one of p or q is true, it is false when both p and q are false. pqp v q TTT TFT FTT FFF Truth table

Negation If p is a proposition, the negation of p is the statement not p. It is denoted by ~p or ¬p. p ~ p or ¬p TF FT

Conditional Statement If p and q are statements, the compound statement ‘if p then q’ (denoted by p => q) is called a conditional statement / implication. The statement p is called hypothesis. The statement q is called the consequent /conclusion. The connective if …then is denoted by the symbol =>.

Conditional Statement Determines whether a proposition is true if another proposition is true. Example: p: I am hungry q: I will eat p => q: If I am hungry, I will eat. pqp q TTT TFF FTT FFT

Conditional Statement p -> q is also expressed in a number of different (but equivalent) ways in English. For example, the following are all different ways of saying "if p then q". "p only if q", "if not q then not p", "p is sufficient for q", "q is necessary for p", "q is a necessity/consequence of p" and "q whenever p"

Converse, Contrapositive, and Inverse If p =>q is an implication, then √the converse of p => is the implication q => p. √the contrapositive of p => q is the implication ~q => ~p. the inverse of p => q is is the implication ~p => ~q. Examples: p: I am elected q: I will lower taxes p => q: If I am elected, then I will lower taxes. Converse: q => p: I will lower taxes if I am elected. Contrapositive: ~q => ~p: I will not lower taxes if I am not elected. Inverse: ~p => ~q: If I am not elected, then I will not lower the taxes.

Converse, Contrapositive, and Inverse QWhat are the contrapositive, the converse, and the inverse of the implication “The home team wins whenever it is raining”? S“q whenever p” is one of the ways to express the implication p => q, the original statement can be written as ”If it is raining, then home team wins”. Contrapositive: If the home team does not win, then it is not raining. Converse: If the home team wins, then it is raining. Inverse: If it is not raining, then the home team does not win.

Biconditional If p and q are propositions, the compound statement p if and only if q, denoted by p  q. This is called an equivalence / biconditional. The connective if and only if is denoted by . p  q is true when both p =>q and q => p are true. p  q is true only when both p and q are true or both p and q are false. pq p  q TTT TFF FTF FFT

Biconditional There are some other common ways to express p  q: “p is necessary and sufficient for q” “if p then q, and conversely” “p iff q” (iff is the abbreviation for ‘if and only if”) Note: p  q has exactly the same truth value as (p => q) ^ (q => p).

Biconditional Example1: p: You can take the flight, q: You buy a ticket. p  q : You can take the flight if and only if you buy a ticket. Example 2: p: You can have dessert, q: You finish your meal. p  q : You can have dessert if and only if you finish your meal.

Tautology Tautology: A compound proposition that is true for all possible values of its propositional variables is called tautology. Example: p v ~p p~pp v ~p TFT FTT

Tautology The truth table for (p v q)  (q v p) shows the statement is a tautology. pqp v qq v p(p v q)  (q v p) TTTTT TFTTT FTTTT FFFFT

Contradiction Contradiction: A compound proposition that is false for all possible values of its proposition variables is called contradiction. Example: p ^ ~p p~pp ^ ~p TFF FTF

Contigency Contigency: A compound proposition that is true or false depending on the truth values of its propositional variables is called contigency. Example: (p =>q) ^ (p v q) pqp=>qpvq(p=>q) ^ (p v q) TTTTT TFFTF FTTTT FFTFF

Quantifiers Set is defined as A = {x | P(x)} where p(x) is predicate/propositional function Quantification: universal & existential quantifications The universal quantification of P(x) is the proposition “P(x) is true for all values of x in the universe of discourse”. The notation Vx P(x) denotes the universal quantification of P(x). V is called the universal quantifier

Universal Quantifier QLet P(x) be the statement “x+1>x”. What is the truth value of the quantification Vx P(x), where the universe of discourse consists of all real numbers? SSince P(x) is true for all real numbers x, the quantification Vx P(x) is true. QLet Q(x) be the statement “x < 2”. What is the truth value of the quantification Vx Q(x), where the universe of discourse consists of all real numbers? SQ(x) is not true for all real numbers x, since for instance Q(3) is false. Thus the quantification Vx Q(x) is false.

Existential Quantifier With existential quantification, we form a proposition that is true if and only if P(x) is true for at least one value of x in the universe of discourse. The existential quantification P(x) is the proposition “There exists an element x in the universe of discourse such that P(x) is true” We can use the notation Ξ x P(x) for existential quantification of P(x). Ξ is called the existential quantifier.

Existential Quantifier QLet P(x) be the statement “x>3”. What is the truth value of the quantification Ξ P(x), where the universe of discourse consists of all real numbers? SSince “x>3” is true – for instance, when x = 4 - the existential quantification of P(x), which is Ξ x P(x), is true. QLet Q(x) be the statement “x = x + 1”. What is the truth value of the quantification Ξ x Q(x), where the universe of discourse consists of all real numbers? SQ(x) is false for all real numbers x, the existential quantification of Q(x), which is Ξ x Q(x), is false.