1 Propositional Logic 2. Double Negation 2 not-(not-A)=Anot-(not-A)=A A= Ibrahim makes good coffee not-A= Ibrahim does not make good coffee not-(not-A)=Ibrahim.

Slides:



Advertisements
Similar presentations
Logic The study of correct reasoning.
Advertisements

Logic ChAPTER 3.
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.
Truth-Tables. Recap Deductive Validity We say that an argument is deductively valid when it has the following property: If the premises of the argument.
Logic & Critical Reasoning
Truth Tables Presented by: Tutorial Services The Math Center.
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.
John Rosson Thursday February 15, 2007 Survey of Mathematical Ideas Math 100 Chapter 3, Logic.
Review: Logic of Categories = Categorical Logic.
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.
Propositional Logic. Grammatical Complexity A natural language is complex. E.g. –The dog chased the cat. –The dog that ate the rat chased the cat. –The.
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.
Propositional Logic Lecture 2: Sep 9. Conditional Statement If p then q p is called the hypothesis; q is called the conclusion “If your GPA is 4.0, then.
Propositional Logic 7/16/ Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q,
3.2 – Truth Tables and Equivalent Statements
Logic ChAPTER 3.
Normal or Canonical Forms Rosen 1.2 (exercises). Logical Operators  - Disjunction  - Conjunction  - Negation  - Implication p  q   p  q  - Exclusive.
Propositional Logic.
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-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.
© Jalal Kawash 2010 Logic Peeking into Computer Science.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Adapted from Patrick J. Hurley, A Concise Introduction to Logic (Belmont: Thomson Wadsworth, 2008).
1 Propositional Logic Proposition 2 Propositions can be divided into simple propositions and compound propositions. A simple (or basic) proposition is.
Review I Rosen , 3.1 Know your definitions!
Normal Forms, Tautology and Satisfiability 2/3/121.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Discrete Mathematics Lecture1 Miss.Amal Alshardy.
The Foundations Logic and Proofs by raedRASHEED 2014.
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 7 Logic, Sets, and Counting
Chapter 3: Semantics PHIL 121: Methods of Reasoning March 13, 2013 Instructor:Karin Howe Binghamton University.
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,
MLS 570 Critical Thinking Reading Notes for Fogelin: Propositional Logic Fall Term 2006 North Central College.
Chapter 8 – Symbolic Logic Professor D’Ascoli. Symbolic Logic Because the appraisal of arguments is made difficult by the peculiarities of natural language,
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
How do I show that two compound propositions are logically equivalent?
Chapter 7 Logic, Sets, and Counting Section 1 Logic.
Logic. Statements, Connectives, and Quantifiers In symbolic logic, we only care whether statements are true or false – not their content. In logic, a.
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.
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.
1 Propositional Logic Introduction. 2 What is propositional logic? Propositional Logic is concerned with propositions and their interrelationships. 
The Foundations: Logic and Proof, Sets, and Foundations PROPOSITIONS A proposition is a declarative sentence that is either True or False, but not the.
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.
Notes - Truth Tables fun, fun, and more fun!!!!. A compound statement is created by combining two or more statements, p and q.
Statement Forms and Material Equivalence Kareem Khalifa Department of Philosophy Middlebury College.
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,
Invitation to Critical Thinking Chapter 7 Lecture Notes Chapter 7.
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.
Ms. Andrejko 2-2 Logic. Real World Legally Blonde.
Assign Yourself and Do Now Thursday, January 10, 2013.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
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.
Logical functors and connectives. Negation: ¬ The function of the negation is to reverse the truth value of a given propositions (sentence). If A is true,
Presentation transcript:

1 Propositional Logic 2

Double Negation 2 not-(not-A)=Anot-(not-A)=A A= Ibrahim makes good coffee not-A= Ibrahim does not make good coffee not-(not-A)=Ibrahim makes good coffee

Negation of Conjunction 3 not-(A and B) = not-A or not-B Ibrahim got A in physics AND a B in Math Either Ibrahim didn’t get A in physics or he didn’t get B in Math not [(Ibrahim got A in physics) AND (a B in Math)] not [(Ibrahim got A in physics) AND (a B in Math)] =(Ibrahim didn’t get A in physics) OR (he didn’t get B in Math) =[not (Ibrahim get A in physics)] OR [not-(he get B in Math)] =not-A or not-B

Negation of disjunction 4 not-(A or B)=not-A and not-B Ibrahim will either go to medicine school or become a doctor not andnot Ibrahim will not go to medicine school and he will not become a doctor neither nor Ibrahim will neither go to medicine school nor he will become a doctor

Negation not-(A and B)= (not-A) or (not-B) not-(A or B)= (not-A) and (not-B) “DeMorgan’s Rules” 5

Negation of Conditional 6 not-(if A then B) If I pay for dinner then you will pay for drinks I pay for dinner but you don’t pay for drinks (I pay for dinner) AND (you don’t pay for drinks) Not-(if A then B) = A and not B = A and not B = A and not B  if A then not B  if A then not B

Negation of Conditional 7 AB TTT TFF FTT FTF A?B TFT TTF FFT FFF A Not-B TFF TTT FTF FTT The conditional contradictory of conditional if A then not B

Disjunctions A or B 8 AB TTT TFF FTT FTF A?B TFT TTF FFT FFF A andNot-B TFF TTT FFF FFT The conditional contradictory of conditional =

Negation not-(not-A) = A not-(A and B) = (not-A) or (not-B) not-(A or B) = (not-A) and (not-B) not-(if A then B) = (A) and (not-B) 9 Contradictories of compound claims

Complex Statements ((P & Q) ¬ R) Ex.: ¬((A B) ¬(B A)) 10 PQRP&Q¬ R((P & Q) ¬ R) TTTTFF TTFTTT TFTFFT TFFFTT FTTFFT FTFFTT FFTFFT FFFFTT

Necessary and sufficient A B If I become rich then I will be happy sufficient “I become rich” is sufficient to guarantee that “I’ll be happy” “If A then B” = “A is sufficient for B” 11

Necessary and sufficient A B If I become rich then I will be happy necessary “I’ll be happy” is necessary for “I become rich” “If A then B” = “B is necessary for A” relationships of necessity and relationships of sufficiency are converses of one another 12

Necessary and sufficient A is sufficient for B = If A then B A is sufficient for B = If A then B if A is true then B is guaranteed A is necessary for B = If B then A If not-A then not-B “Oxygen is necessary for combustion.” “If there’s combustion then there’s oxygen.” 13

Necessary and sufficient “Oxygen is necessary for combustion” “If there’s combustion then there’s oxygen.” “If there’s no oxygen then there’s no combustion”. “If I have a driver’s license then I passed a driver’s test.” “Having a driver’s license is necessary for passing a driver’s test.” =“Passing a driver’s test is necessary for having a driver’s license.” =“Having a driver’s license is sufficient for passing a driver’s test.” 14

Necessary and sufficient A is necessary for B A if B If B then A A is sufficient for B A only if B If A then B BICONDITIONAL 15 A is necessary and sufficient for B If (B then A) And (If A then B) A if and only if B

All A are B “All humans are mortal.” “All whales are mammals.” “All lawyers are decent people.” 16 “Humans are mortal” “whales are mammals” “lawyers are decent people.” All A are B = A are B

Contradictory ALL A are B” The contradictory of a universal generalization is pretty straightforward “ALL A are B” “ALL humans are mortal” كل البشر زائلون Contradictory: “SOME humans are NOT mortal”. or, “Some humans are immortal.” 17

Examples of Examples of Contradictory Here’s the general form: not-(All A are B) = Some A are not-B Ex.: “All dogs bark.” Contradictory : “Some dogs don’t bark”. “Canadians are funny.” Contradictory: “Some Canadians are not funny.” 18

Some A are B “Some dogs have long hair.” “Some people weigh over 200 pounds.” “Some animals make good pets.” 19 “some” means “at least one” “At least one dog has long hair”, or “There is a dog that has long hair”, or “There exists a long-haired dog”.

Contradictory “Some A are B” The contradictory of : “Some A are B” “Some Dogs have long hair” is: “No dogs have long hair”. Ex: 20 not-(Some A are B) = No A are B

ONLY A are B 21 “Only dogs make good pets.” “Only Great White sharks are dangerous.” “Only postal employees deliver U.S. mail.” “All good pets are dogs”. “All dangerous sharks are Great Whites”. “All people who deliver U.S. mail are postal employees”. Only A are B” = “All B are A” “Only A are B” = “All B are A” “A only if B” = “B if A”

Contradictory “Only A are B ” The contradictory of : “Only A are B ” “only dogs make good pets” is: “Some good pets are not dogs”. Ex: Ex: “Only movie stars are rich” “Only Starbucks makes good coffee”. 22 not-(Only A are B) = Some B are not A

23 A valid sentence or tautology is a sentence that is True under all interpretations, no matter what the world is actually like or how the semantics are defined.  p  p is valid. A sentence is Satisfiable if and only if it is satisfied by at least one interpretation.  We have already seen several examples of satisfiable sentences. An Unsatisfiable sentence or contradiction is a sentence that is False under all interpretations. The world is never like what it describes  p  p is Unsatisfiable. Validity, Satisfiability, Unsatisfiability

24 In one sense, valid sentences and unsatisfiable sentences are useless. Valid sentences do not rule out any possible interpretations; Unsatisfiable sentences rule out all interpretations; thus they say nothing about the world. On the other hand, they are very useful in that, they serve as the basis for legal transformations that we can perform on other logical sentences. Note that we can easily check the validity, satisfiability, or unsatisfiability of a sentence by looking at the truth table for the propositional constants in the sentence.

Ex. A truth table… p qr p  qp  rp  r  q(p  q)  (p  r)  (p  r  q) p  r  q(p  q)  (p  r)  (p  r  q) T TTTTTTTT T T F TFTTFT T F T FTTTFT TF F FFFTFT FT T TTTTTT FT F TTTTTT FF T TTTTTT FF F TTTTTT Valid

HomeWork 26 Say whether each of the following sentences is valid, satisfiable, or unsatisfiable a.(p ⇒ q) ∨ (q ⇒ p) b.p ∧ (p ⇒ ¬q) ∧ q c.(p ⇒ (q ∧ r)) ⇔ (p ⇒ q) ∧ (p ⇒ r) d.(p ⇒ (q ⇒ r)) ⇒ ((p ∧ q) ⇒ r) e.(p ⇒ q) ∧ (p ⇒ ¬q) f.(¬p ∨ ¬q) ⇒ ¬(p ∧ q) g.((¬p ⇒ q) ⇒ (¬q ⇒ p)) ∧ (p ∨ q) h.(¬p ∨ q) ⇒ (q ∧ (p ⇔ q)) i.((¬r ⇒ ¬p ∧ ¬q) ∨ s) ⇔ (p ∨ q ⇒ r ∨ s) j.(p ∧ (q ⇒ r)) ⇔ ((¬p ∨ q) ⇒ (p ∧ r))

27 Thank You!