Logical truths, contradictions and disjunctive normal form

Slides:



Advertisements
Similar presentations
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.
Advertisements

Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
Uses for Truth Tables Determine the truth conditions for any compound statementDetermine the truth conditions for any compound statement Determine whether.
Propositional Calculus Math Foundations of Computer Science.
Copyright © Cengage Learning. All rights reserved.
Adapted from Discrete Math
Propositions and Truth Tables
Copyright © Curt Hill Truth Tables A way to show Boolean Operations.
BY: MISS FARAH ADIBAH ADNAN IMK. CHAPTER OUTLINE: PART III 1.3 ELEMENTARY LOGIC INTRODUCTION PROPOSITION COMPOUND STATEMENTS LOGICAL.
Copyright 2013, 2010, 2007, Pearson, Education, Inc. Section 3.7 Switching Circuits.
Logical Form and Logical Equivalence Lecture 2 Section 1.1 Fri, Jan 19, 2007.
Chapter Three Truth Tables 1. Computing Truth-Values We can use truth tables to determine the truth-value of any compound sentence containing one of.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Chapter 7 Logic, Sets, and Counting
Thinking Mathematically
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.
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.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
 Conjunctive Normal Form: A logic form must satisfy one of the following conditions 1) It must be a single variable (A) 2) It must be the negation of.
Simple Logic.
Chapter 1 Propositional Logic
Logic.
2. The Logic of Compound Statements Summary
The Foundations: Logic and Proofs
DISCRETE MATHEMATICS CHAPTER I.
Knowledge Representation and Reasoning
Truth Tables and Equivalent Statements
CHAPTER 3 Logic.
Classwork/Homework Classwork – Page 90 (11 – 49 odd)
7/20/2018 EMR 17 Logical Reasoning Lecture 7.
CPCS222 Discrete Structures I
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Truth Tables – Logic (Continued)
Mathematics for Computing
CMSC Discrete Structures
CLASSICAL LOGIC and FUZZY LOGIC
Chapter 8 Logic Topics
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Truth Functions.
Propositional Calculus: Boolean Algebra and Simplification
1.2 Propositional Equivalences
Propositional Equivalences
Truth Tables Hurley
CS 220: Discrete Structures and their Applications
Truth Trees.
Chapter 3 Introduction to Logic © 2008 Pearson Addison-Wesley.
Propositional Equivalences
TRUTH TABLES.
TRUTH TABLES continued.
(1.4) An Introduction to Logic
Knowledge and reasoning – second part
Discrete Mathematics and Its Applications Kenneth H
Lecture 2: Propositional Equivalences
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
1.2 Propositional Equivalences
Statements of Symbolic Logic
Section 3.7 Switching Circuits
TRUTH TABLES.
Foundations of Discrete Mathematics
1.2 Propositional Equivalences
Section 3.3 Truth Tables for the Conditional and Biconditional
Compounding.
Introducing Natural Deduction
CHAPTER 3 Logic.
Validity and Soundness, Again
Substitution.
Truth tables.
Logical equivalence.
Presentation transcript:

Logical truths, contradictions and disjunctive normal form

Truth tables and logical truths Let’s write out the truth table for (A ∨ ~A) ∧ (B ∨ ~B) on the board. Notice anything interesting about it?

Truth tables and logical truths No matter what line of the truth table we look at, this sentence always comes out as true. Which is to say that for every possible assignment of truth values to the atomic sentence letters, this sentence is true. A sentence that has this property is called a logical truth.

Logical truths As a precise definition: a sentence of sentence logic is called a logical truth if and only if it is true in every possible case, that is, for all possible assignments of truth values. (Sometimes people call logical truths tautologies.)

Contradictions Contradictions are the converse of logical truths. Logical truths are always true, no matter the assignment of truth values. Contradictions are always false, no matter the assignment of truth values. So the truth table for a contradiction has an ‘f’ in every line of the sentence’s column.

Contradictions More precisely: a sentence of sentence logic is called a contradiction if and only if it is false in every possible case, that is, for all possible assignments of truth values.

Checking for logical truth or contradiction To check whether or not a particular sentence of sentence logic is a logical truth or a contradiction (or neither), simply draw up a truth table for it, and check the outcome. If it’s always true, it’s a logical truth, if always false it’s a contradiction, and if neither it’s neither.

Checking for logical truth and contradiction Using partial truth tables is a good way to cut corners when doing this. For example: let’s check together whether or not the following sentence is a contradiction: ~((A ∨ ~B) ∧ (~C ∨ ~~~(D ∨ E))) ∧ ((A ∨ ~B) ∧ (~C ∨ ~~~(D ∨ E)))

Some more laws With these concepts in hand we can now give a couple more handy laws. The law of logically true conjunct (LTC): If X is any sentence and Y is a logical truth, then X ∧ Y is logically equivalent to X. And the law of contradictory disjunct (CD): If X is any sentence and Y is a contradiction, then X ∨ Y is logically equivalent to X.

Disjunctive normal form Now we’ve got a good grasp on logical equivalence, we can introduce another concept: disjunctive normal form. Let’s start with an example – let’s draw out the truth table for C ∨ ~~D.

Disjunctive normal form The table tells us that C ∨ ~~D is true in cases 1, 2 and 3, and false in case 4. I.e. it is true if C is true and D is true, or if C is true and D is false, or if C is false and D is true. Disjunctive normal form is just a way of expressing this information in sentence logic.

Disjunctive normal form And it’s very easy to do. Because it is easy to write ‘it is true if C is true and D is true, or if C is true and D is false, or if C is false and D is true’ in sentence logic. It’s just ‘(C ∧ D) ∨ (C ∧ ~D) ∨ (~C ∧ D)’. This is logically equivalent to our original sentence ‘C ∨ ~~D’. Whenever that sentence is true, ‘(C ∧ D) ∨ (C ∧ ~D) ∨ (~C ∧ D)’ will be true too.

Disjunctive normal form So our method is fairly easy. If we are asked to put a sentence into disjunctive normal form, we just write out the truth table, and then express the information contained in the truth table in the manner just specified. Since we can produce a truth table for any sentence, we can say that every sentence has a disjunctive normal form (with the special exception of contradictions).

Disjunctive normal form We can specify all this more precisely with the following. A sentence is in disjunctive normal form if it is a disjunction, the disjuncts of which are themselves conjunctions of sentence letters and negated sentence letters. (In this characterization we allow as a special case that a disjunction may have only one disjunct and a conjunction may have only one conjunct.)

Disjunctive normal form For any sentence, X, of sentence logic, the disjunctive normal form of X is given by a sentence Y if Y is in disjunctive normal form and is logically equivalent to X. Except for contradictions, the disjunctive normal form of a sentence is the sentence's truth table expressed in sentence logic.

Example Put ‘P ∨ Q’ into disjunctive normal form. Put ‘(C ∧ D) ∨ ~E’ into disjunctive normal form.