Equivalence of Propositions

Similar documents
Chapter 1 : The language of mathematics.

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

MATH 363: Discrete Mathematics

Propositional Logic, Predicates, and Equivalence

6 CARDINALITY OF SETS

CS Discrete Mathematics Dr. D. Manivannan (Mani)

Review 1. Andreas Klappenecker

Proofs. Joe Patten August 10, 2018

CSCE 222 Discrete Structures for Computing. Review for the Final. Hyunyoung Lee

Review 3. Andreas Klappenecker

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

CSE 20 DISCRETE MATH. Winter

Background for Discrete Mathematics

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Predicate Logic. Andreas Klappenecker

SETS AND FUNCTIONS JOSHUA BALLEW

Normal Forms Note: all ppts about normal forms are skipped.

n Empty Set:, or { }, subset of all sets n Cardinality: V = {a, e, i, o, u}, so V = 5 n Subset: A B, all elements in A are in B

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Math 10850, fall 2017, University of Notre Dame

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Math 109 September 1, 2016

Logic, Sets, and Proofs

Disjunction/Conjunction Normal Form

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

CA320 - Computability & Complexity

Theorem. For every positive integer n, the sum of the positive integers from 1 to n is n(n+1)

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA

software design & management Gachon University Chulyun Kim

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

Sets McGraw-Hill Education

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

CSCE 222 Discrete Structures for Computing

2-4: The Use of Quantifiers

Conjunction: p q is true if both p, q are true, and false if at least one of p, q is false. The truth table for conjunction is as follows.

With Question/Answer Animations. Chapter 2

Chapter 2 Section 2.1: Proofs Proof Techniques. CS 130 Discrete Structures

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

Example ( x.(p(x) Q(x))) ( x.p(x) x.q(x)) premise. 2. ( x.(p(x) Q(x))) -elim, 1 3. ( x.p(x) x.q(x)) -elim, x. P(x) x.

Discrete Math Notes. Contents. William Farmer. April 8, Overview 3

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

Study sheet for Final CS1100 by Matt in Wed night class

Lecture : Set Theory and Logic

MATH1240 Definitions and Theorems

Discrete Structures CRN Test 3 Version 1 CMSC 2123 Autumn 2013

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Math 205 April 28, 2009 Final Exam Review

The integers. Chapter 3

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

In N we can do addition, but in order to do subtraction we need to extend N to the integers

2.3 Exercises. (a) F P(A). (Solution)

A Semester Course in Basic Abstract Algebra

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Spring

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

A Guide to Proof-Writing

Chapter 2 - Basics Structures

Intro to Logic and Proofs

POL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

Math 210 Exam 2 - Practice Problems. 1. For each of the following, determine whether the statement is True or False.

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics. Introductory Notes in Discrete Mathematics Solution Guide

The Process of Mathematical Proof

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set)

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Mathematics 220 Midterm Practice problems from old exams Page 1 of 8

MAT 243 Test 1 SOLUTIONS, FORM A

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Chapter 2 - Basics Structures MATH 213. Chapter 2: Basic Structures. Dr. Eric Bancroft. Fall Dr. Eric Bancroft MATH 213 Fall / 60

1. Mathematical Proofs

Lecture 4: Probability, Proof Techniques, Method of Induction Lecturer: Lale Özkahya

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

Statistical Inference

Automata Theory and Formal Grammars: Lecture 1

1 Take-home exam and final exam study guide

Three Profound Theorems about Mathematical Logic

Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015)

Copyright c 2007 Jason Underdown Some rights reserved. statement. sentential connectives. negation. conjunction. disjunction

7.11 A proof involving composition Variation in terminology... 88

Steinhardt School of Culture, Education, and Human Development Department of Teaching and Learning. Mathematical Proof and Proving (MPP)

First order Logic ( Predicate Logic) and Methods of Proof

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

2 Truth Tables, Equivalences and the Contrapositive

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications

HANDOUT AND SET THEORY. Ariyadi Wijaya

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

1 Direct Proofs Technique Outlines Example Implication Proofs Technique Outlines Examples...

Set Theory. CSE 215, Foundations of Computer Science Stony Brook University

Transcription:

Equivalence of Propositions 1. Truth tables: two same columns 2. Sequence of logical equivalences: from one to the other using equivalence laws 1

Equivalence laws Table 6 & 7 in 1.2, some often used: Associative: (p q) r p (q r), (p q) r p (q r) Distributive: p (q r) (p q) (p r), p (q r) (p q) (p r) 2

Equivalence laws Table 6 & 7 in 1.2, some often used: De Morgan s: (p q) p q, (p q) p q Conditionals: p q p q, p q q p 3

Tautology 1. all T column in the truth table; 2. apply equivalences till T. 4

Predicate, Quantifiers Predicate: proposition with variable(s), P(x) Quantifier: xp(x), xp(x) Negation: xp(x) x P(x), xq(x) x Q(x) x y z P(x,y,z) x y z P(x,y,z) 5

Rules of inference All premises are True; apply rules of inference to show the conclusion True; Rules: understand Tables 1 & 2 of 1.6 6

Proofs Terminology: proof, theorem, axiom, lemma, corollary, conjecture Methods of proving p q: direct proof: assume p True, find out q True; contraposition: directly prove q p; contradiction: assume p True and q False, prove q p, then p and p contradict. 7

Strategies of proofs Proof by cases: cases cover all possibilities example: prove max(x,y)+min(x,y) = x+y cases x y; x<y exhaustive: check each possible input example: (n+1) 3 3 n if n is a positive integer with n 4. 8

Strategies of proofs Existence proof of xp(x): constructive: find a such that P(a) True nonconstructive: not finding a 9

Strategies of proofs disproving xp(x): constructive: find a such that P(a) False; xp(x) x P(x) nonconstructive: not finding a 10

Sets Definitions: set(unique, unordered elements); subset ; proper subset ; size/cardinality A ; power set; cartesian product; What is the cardinality of power set of A? What is the cardinality of A B? 11

Set Operations Definitions: union A B; intersection A B; disjointness of A and B; difference A-B; universal set U; complement of A 12

Set Identities Understand Table 1 of 2.2; note the Distributive laws and De Morgan s laws because they connect and. A-B = A ( B) connects and - 13

Proof of Set Identities Membership table: similar to truth table; Applying set identity laws. One common approach of proving A=B: prove A B and B A 14

Functions Definition of function: domain, codomain, mapping rule Can the domain have elements not get mapped? Can the domain have elements that mapped to multiple elements in the codomain? What is the differences between codomain and range of a function? 15

Functions How to check if a function is one-to-one? How to check if a function is onto? On what condition a function has an inverse? If a function is not one-to-one, why doesn t it have an inverse function? If a function is not onto, why doesn t it have an inverse function? 16

Functions and cardinalities f: A B, A and B have finite elements f one-to-one A B f onto A B f bijection A = B 17

Sequences and Summations definitions of sequence {a n }: by a formula; by recurrence summation of sequence {a n }: be careful on the starting and ending subscripts of the summation; should be clear on thing like nx nx j=1 i=j 18

Complexity Definition of f(x) = O(g(x)): f(x) Cg(x) x k only need to find one pair of (C,k) can fix/pick one first, then find the other 19

Complexity Definition of O(g(x)), Ω(g(x)), Θ(g(x)) How to estimate the complexity of the sum of two functions? How to estimate the complexity of the product of two functions? if a>1, then the complexity: a < loglogn < logn < n 1/a < n < n a < a n < n! 20

Algorithm Design your algorithm and estimate the complexity make sure it is correct; no matter if is correct, the complexity can be estimated 21

Induction Mathematical induction: P(k) P(k+1) to prove P(k+1), only need P(k) Strong induction: P(1)... P(k) P(k+1) to prove P(k+1), need all previous established cases 22

Counting Product rule: the task in different steps; every step is necessary Sum rule: the task in different categories; every category is mutually exclusive Often use sum rule to split the problem into subproblems, and use product rule in each of them hard part is often the sum rule; keep them mutually exclusive to avoid recounting or missing 23

Pigeonhole Principle Hard part is how to build/select pigeonholes/ categories; make sure to do enough exercises to familiarize 24

Permutation and Combination the order of the selected elements matters in permutation; which is not in combination their connection: P(n,r) = n!/(n-r)!, C(n,r) = n!/r!(n-r)! P(n,r) = r!c(n,r) = P(r,r)C(n,r) You can pick r elements from n (which is C(n,r)) first, and permute the r elements to get P(n,r) 25

Binomial Theorem = = (x + y) n nx n x n j j=0 n x n + 0 j y j n x n 1 y + + 1 n n 1 xy n 1 + n n y n 26