Solutions to Homework I (1.1)

Similar documents
CSC Discrete Math I, Spring Propositional Logic

AMTH140 Lecture 8. Symbolic Logic

Tautologies, Contradictions, and Contingencies

2.2: Logical Equivalence: The Laws of Logic

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Boolean Algebra. Philipp Koehn. 9 September 2016

2. The Logic of Compound Statements Summary. Aaron Tan August 2017

Compound Propositions

Section 1.2 Propositional Equivalences. A tautology is a proposition which is always true. A contradiction is a proposition which is always false.

1.3 Propositional Equivalences

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

Logic and Discrete Mathematics. Section 3.5 Propositional logical equivalence Negation of propositional formulae

Propositional Equivalence

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Introduction to Sets and Logic (MATH 1190)

Truth-Functional Logic

Logic and Propositional Calculus

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)

We last time we began introducing equivalency laws.

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

2/13/2012. Logic: Truth Tables. CS160 Rosen Chapter 1. Logic?

CISC-102 Winter 2016 Lecture 17

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Logic and Propositional Calculus

Set Theory Basics of Set Theory. 6.2 Properties of Sets and Element Argument. 6.3 Algebraic Proofs 6.4 Boolean Algebras.

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Introduction to Decision Sciences Lecture 2

Comp487/587 - Boolean Formulas

Logic. Logic is a discipline that studies the principles and methods used in correct reasoning. It includes:

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Review. Propositional Logic. Propositions atomic and compound. Operators: negation, and, or, xor, implies, biconditional.

Chapter 1, Section 1.1 Propositional Logic

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Logic. Def. A Proposition is a statement that is either true or false.

Set Theory Basics of Set Theory. mjarrar Watch this lecture and download the slides

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

Equivalence and Implication

A statement is a sentence that is definitely either true or false but not both.

CSE 20 DISCRETE MATH WINTER

10/5/2012. Logic? What is logic? Propositional Logic. Propositional Logic (Rosen, Chapter ) Logic is a truth-preserving system of inference

EECS 1028 M: Discrete Mathematics for Engineers

Topic 1: Propositional logic

n logical not (negation) n logical or (disjunction) n logical and (conjunction) n logical exclusive or n logical implication (conditional)

Propositional Logic Not Enough

Discrete Mathematics and Its Applications

Logic: Propositional Logic (Part I)

software design & management Gachon University Chulyun Kim

1.1 Language and Logic

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

Definition 2. Conjunction of p and q

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

Solutions to Sample Problems for Midterm

CSE 20 DISCRETE MATH WINTER

ECE473 Lecture 15: Propositional Logic

ICS141: Discrete Mathematics for Computer Science I

Section L.1- Introduction to Logic

Logic and Proof. Aiichiro Nakano

ANALYSIS EXERCISE 1 SOLUTIONS

The Logic of Compound Statements cont.

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Boolean Logic. CS 231 Dianna Xu

ICS141: Discrete Mathematics for Computer Science I

Logic and Proofs. Jan COT3100: Applications of Discrete Structures Jan 2007

CSE 20: Discrete Mathematics

Propositional Logic:

A brief introduction to Logic. (slides from

~ p is always false. Based on the basic truth table for disjunction, if q is true then p ~

PHIL12A Section answers, 16 February 2011

CS100: DISCRETE STRUCTURES. Lecture 5: Logic (Ch1)

Discrete Mathematics

3.2: Compound Statements and Connective Notes

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Discrete Structures & Algorithms. Propositional Logic EECE 320 // UBC


PROBLEM SET 3: PROOF TECHNIQUES

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic

Department of Computer Science & Software Engineering Comp232 Mathematics for Computer Science

Deductive Systems. Lecture - 3

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

Tecniche di Verifica. Introduction to Propositional Logic

Mat 243 Exam 1 Review

1.1 Language and Logic

With Question/Answer Animations. Chapter 2

PROPOSITIONAL CALCULUS

Logic: First Order Logic

Propositional natural deduction

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

Functions. Lecture 4: Truth functions, evaluating compound statements. Arithmetic Functions. x y x+y

1 Predicates and Quantifiers

Proofs. Joe Patten August 10, 2018

Chapter Summary. Propositional Logic. Predicate Logic. Proofs. The Language of Propositions (1.1) Applications (1.2) Logical Equivalences (1.

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Mathematics Review for Business PhD Students

Propositional Resolution

CSE 311: Foundations of Computing. Lecture 3: Digital Circuits & Equivalence

Section 1.1: Logical Form and Logical Equivalence

Propositional Logic Introduction and Basics. 2.2 Conditional Statements. 2.3 Inferencing. mjarrar 2015

Chapter 4, Logic using Propositional Calculus Handout

CS250: Discrete Math for Computer Science. L6: CNF and Natural Deduction for PropCalc

Transcription:

Solutions to Homework I (1.1) Problem 1 Determine whether each of these compound propositions is satisable. a) (p q) ( p q) ( p q) b) (p q) (p q) ( p q) ( p q) c) (p q) ( p q) (a) p q p q p q p q p q (p q) ( p q) ( p q) T T F F T T F F T F F T T F T F F T T F F T T F F F T T T T T T From the last column we see that the proposition is satisable. September 11, 2018 1 / 10

Solutions to Homework I (1.2) Problem 1 Determine whether each of these compound propositions is satisable. a) (p q) ( p q) ( p q) b) (p q) (p q) ( p q) ( p q) c) (p q) ( p q) (a) The same result can be obtained using logically equivalent transformations: (p q) ( p q) ( p q) ((p ( p q)) ( q ( p q))) ( p q) ((p p) (p q)) ( q p) ( q q)) ( p q) ((p q)) ( p q)) ( p q) p q This shows that the proposition is true if both p and q are false. Thus, the proposition is satisable. September 11, 2018 2 / 10

Solutions to Homework I (1.3) Problem 1 Determine whether each of these compound propositions is satisable. a) (p q) ( p q) ( p q) b) (p q) (p q) ( p q) ( p q) c) (p q) ( p q) (b) Considering that (p q) (p q) ( p q) ( p q) ( p q) ( p q) ( p q) ( p q) we can compose the truth table as follows: ( p q) ( p q) (p q) (p q) p q p q p q p q p q p q Entire proposition T T F F T F T T F T F F T F T T T F F T T F T T T F F F F T T T T F T F Hence, this proposition is not satisable (it is the contradiction). September 11, 2018 3 / 10

Solutions to Homework I (1.4) Problem 1 Determine whether each of these compound propositions is satisable. a) (p q) ( p q) ( p q) b) (p q) (p q) ( p q) ( p q) c) (p q) ( p q) (c) The truth table as follows: Hence, this proposition is not satisable. p q (p q) ( p q) T T T F F T F F F T F T F F T F F T F F Step: 1 3 2 September 11, 2018 4 / 10

Solutions to Homework I (2.1) Problem 2 Use the laws in the lecture slide #28 to simplify the formula (p q) ( p q). Check the results using the technique of truth tables. (p q) ( p q) p q ( p q) De Morgan law p (( q p) ( q q)) associative and distributive laws p (( q p) T) complement law p ( q p) identity law q p assiociative and idempotent laws p q Example 2 on slide #24 Alternative answers may be q p or q p. September 11, 2018 5 / 10

Solutions to Homework I (2.2) Problem 2 Use the laws in the lecture slide #28 to simplify the formula (p q) ( p q). Check the results using the technique of truth tables. To check the result one can compose the following truth table: p q (p q) ( p q) p q T T F T F F F T F F T F T F T F F T T T F T T F T T T T T F F F T F T T F T T T Step: 2 1 5 3 4 8 7 6 September 11, 2018 6 / 10

Solutions to Homework I (3) Problem 3 Find CNF (Conjunctive Normal Form) and DNF (Disjunctive Normal Form) for the formula (p q) r p. (p q) r p [(p q) r p] [r p (p q)] def. of biconditional [( p q) r p] [r p ( p q)] Example 2 on slide #24 [ ( p q) (r p)] [ (r p) p q] Example 2 on slide #24 [(p q) (r p)] [ (r p) p q] De Morgan law [(p q) (r p)] ( r p p q) De Morgan law [(p q) (r p)] ( r T q) complement law [(p q) (r p)] T domination law (p q) (r p) domination law (p r) ( q r) ( q p) distributive law The last two lines yield DNF and CNF respectively: DNF: (p q) (r p) CNF: (p r) ( q r) ( p q) September 11, 2018 7 / 10

Solutions to Homework I (4.1) Problem 4 Show that and form a functionally complete collection of logical operators. Find a formula containing propositional variables p, q and r, that is true if and only if exactly one of those variables is true. Represent this formula in the form using only connectives and. Every proposition can be converted into DNF or CNF containing connectives, and. Using the De Morgan law, one can substitute every by its logical equivalent: p q ( p q). the proposition that is true i exactly one of those variables is true has three alternatives when it is valid: (a) only p is true: p q r T (b) only q is true: p q T (c) only r is true: p q r T So, the proposition can be written as (p q r) ( p q r) ( p q r). Using distributive and absorption laws several times, we see that this formula is logically equivalent to (p q r) ( q r) ( p r) ( p q) (1) Convert using the De Morgan law: ( p q r) (q r) (p r) (p q). September 11, 2018 8 / 10

Solutions to Homework I (4.2) Problem 4 Show that and form a functionally complete collection of logical operators. Find a formula containing propositional variables p, q and r, that is true if and only if exactly one of those variables is true. Represent this formula in the form using only connectives and. To verify the formula against the initial requirements, we construct the truth table of the proposition (1): p q r (p q r) ( q r) ( p r) ( p q) T T T T F F F F F F T T F T T T T T F F T F T T T T F F F T T F F T T T T T T T F T T T F F F T F T F T F T T T T T T T F F T T T T T T T T F F F F F T F T F T Step: 1 5 2 6 3 7 4 September 11, 2018 9 / 10

Problems for Sept. 11, 2018 1 Let A = {1,2,3,4,5}. Determine the truth value of each of the following statements: (a) ( x A)(x + 3 = 10) (b) ( x A)(x + 3 < 10) (c) ( x A)(x + 3 < 5) (d) ( x A)(x + 3 7) 2 Determine the truth value of each of the following statements where U = {1,2,3} is the universal set: (a) x y. x 2 < y + 1 (b) x y. x 2 + y 2 < 12 (c) x y. x 2 + y 2 < 12 3 Negate each of the following statements: (a) x y. p(x, y) (b) x y. p(x, y) (c) y x z. p(x, y, z) 4 Negate each of the following statements: (a) All students live in the dormitories. (b) All mathematics majors are males. (c) Some students are 25 years old or older. September 11, 2018 10 / 10

Problems for Sept. 11, 2018 1 Let A = {1,2,3,4,5}. Determine the truth value of each of the following statements: (a) ( x A)(x + 3 = 10) (b) ( x A)(x + 3 < 10) (c) ( x A)(x + 3 < 5) (d) ( x A)(x + 3 7) 2 Determine the truth value of each of the following statements where U = {1,2,3} is the universal set: (a) x y. x 2 < y + 1 (b) x y. x 2 + y 2 < 12 (c) x y. x 2 + y 2 < 12 3 Negate each of the following statements: (a) x y. p(x, y) (b) x y. p(x, y) (c) y x z. p(x, y, z) 4 Negate each of the following statements: (a) All students live in the dormitories. (b) All mathematics majors are males. (c) Some students are 25 years old or older. September 11, 2018 10 / 10

Problems for Sept. 11, 2018 1 Let A = {1,2,3,4,5}. Determine the truth value of each of the following statements: (a) ( x A)(x + 3 = 10) (b) ( x A)(x + 3 < 10) (c) ( x A)(x + 3 < 5) (d) ( x A)(x + 3 7) 2 Determine the truth value of each of the following statements where U = {1,2,3} is the universal set: (a) x y. x 2 < y + 1 (b) x y. x 2 + y 2 < 12 (c) x y. x 2 + y 2 < 12 3 Negate each of the following statements: (a) x y. p(x, y) (b) x y. p(x, y) (c) y x z. p(x, y, z) 4 Negate each of the following statements: (a) All students live in the dormitories. (b) All mathematics majors are males. (c) Some students are 25 years old or older. September 11, 2018 10 / 10

Problems for Sept. 11, 2018 1 Let A = {1,2,3,4,5}. Determine the truth value of each of the following statements: (a) ( x A)(x + 3 = 10) (b) ( x A)(x + 3 < 10) (c) ( x A)(x + 3 < 5) (d) ( x A)(x + 3 7) 2 Determine the truth value of each of the following statements where U = {1,2,3} is the universal set: (a) x y. x 2 < y + 1 (b) x y. x 2 + y 2 < 12 (c) x y. x 2 + y 2 < 12 3 Negate each of the following statements: (a) x y. p(x, y) (b) x y. p(x, y) (c) y x z. p(x, y, z) 4 Negate each of the following statements: (a) All students live in the dormitories. (b) All mathematics majors are males. (c) Some students are 25 years old or older. September 11, 2018 10 / 10