Propositional Logic, Predicates, and Equivalence

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

Functions. Given a function f: A B:

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

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

Review 1. Andreas Klappenecker

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

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

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

Background for Discrete Mathematics

Math 13, Spring 2013, Lecture B: Midterm

Chapter 1 : The language of mathematics.

CSE 20 DISCRETE MATH. Winter

Mathematics Review for Business PhD Students

Automata Theory and Formal Grammars: Lecture 1

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

With Question/Answer Animations. Chapter 2

Sets McGraw-Hill Education

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

Notation Index. gcd(a, b) (greatest common divisor) NT-16

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

Mathematics Review for Business PhD Students Lecture Notes

A Semester Course in Basic Abstract Algebra

Today s Topics. Methods of proof Relationships to logical equivalences. Important definitions Relationships to sets, relations Special functions

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

Proofs. Joe Patten August 10, 2018

Chapter 2 - Basics Structures

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

MAT115A-21 COMPLETE LECTURE NOTES

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

Equivalence of Propositions

MATH 363: Discrete Mathematics

HANDOUT AND SET THEORY. Ariyadi Wijaya

Lecture Notes on DISCRETE MATHEMATICS. Eusebius Doedel

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

Section Summary. Definition of a Function.

Math 324 Summer 2012 Elementary Number Theory Notes on Mathematical Induction

Discrete Mathematical Structures: Theory and Applications

Review 3. Andreas Klappenecker

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

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

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

CSC Discrete Math I, Spring Propositional Logic

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.

1.1 Language and Logic

CSCE 222 Discrete Structures for Computing

2.2: Logical Equivalence: The Laws of Logic

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

MATH 324 Summer 2011 Elementary Number Theory. Notes on Mathematical Induction. Recall the following axiom for the set of integers.

Logic, Sets, and Proofs

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

Exclusive Disjunction

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

CS Discrete Mathematics Dr. D. Manivannan (Mani)

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

1.1 Language and Logic

0 Sets and Induction. Sets

Packet #1: Logic & Proofs. Applied Discrete Mathematics

Math 10850, fall 2017, University of Notre Dame

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

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

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

Week Some Warm-up Questions

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.

Section 4.4 Functions. CS 130 Discrete Structures

AMTH140 Lecture 8. Symbolic Logic

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

CSE 20 DISCRETE MATH WINTER

Sets and Functions. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Sets and Functions

Mathematical Preliminaries. Sipser pages 1-28

5 Set Operations, Functions, and Counting

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

Section Summary. Sequences. Recurrence Relations. Summations. Examples: Geometric Progression, Arithmetic Progression. Example: Fibonacci Sequence

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

4.1 Real-valued functions of a real variable

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

Intro to Logic and Proofs

Equivalence and Implication

Lecture Notes: Mathematical/Discrete Structures

Compound Propositions

Solutions to Homework Set 1

A set is an unordered collection of objects.

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

Math Fall 2014 Final Exam Solutions

Contribution of Problems

Numbers, sets, and functions

REVIEW FOR THIRD 3200 MIDTERM

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

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

MATH1240 Definitions and Theorems

CSE 1400 Applied Discrete Mathematics Definitions

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Mathematical Reasoning (Part I) 1

Discrete Mathematics & Mathematical Reasoning Predicates, Quantifiers and Proof Techniques

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

Cartesian Products and Relations

Analysis 1. Lecture Notes 2013/2014. The original version of these Notes was written by. Vitali Liskevich

Introduction to Automata

Transcription:

Chapter 1 Propositional Logic, Predicates, and Equivalence A statement or a proposition is a sentence that is true (T) or false (F) but not both. The symbol denotes not, denotes and, and denotes or. If p is a proposition, the negation of p, p, has opposite truth value from p. If p is true, p is false, if p is false, then p is true. If p and q are propositions, the conjunction of p and q, p q, is true when both p and q are true, and is false otherwise. If p and q are propositions, the disjunction of p and q, p q, is false when both p and q are false, and is true otherwise. The symbol or denotes equivalent truth value. The symbol denotes implication. The symbol indicates if and only if. If propositions p and q are equivalent, they are both true or both false, that is, they both have the same truth value. A tautology is a statement that is always true. A contradiction is a statement that is always false. DeMorgan s Laws. (p q) p q (p q) p q If p and q are propositions, the conditional if p then q (or p only if q or q if p), denoted by p q, is false when p is true and q is false; otherwise it is true. p is a sufficient condition for q and q is a necessary condition for p. The contrapositive of a conditional statement of p q is q p. The converse of p q is q p. The inverse of p q is p q. If p and q are propositions, the biconditional p if and only if q, denoted by p q, is true if both p and q have the same truth values and is false if p and q have opposite truth values. The words if and only if are sometimes abbreviated iff. 1

A predicate is a sentence that contains one or more variables and becomes a proposition when specific values are substituted for the variables. The domain of a predicate variable consists of all values that may be substituted in place of the variable. Let P (x) be a predicate and D the domain of x. A universal proposition is a statement of the form x in D, P (x). It is defined to be true if, and only if, P (x) is true for every x in D. It is defined to be false if, and only if, P (x) is false for at least one x in D. A value of x for which P (x) is false is called a counterexample to the universal proposition. Let P (x) be a predicate and D the domain of x. An existential proposition is a statement of the form x in D such that P (x). It is defined to be true if, and only if, P (x) is true for at least one x in D. It is defined to be false if, and only if, P (x) is false for all x in D. Logic formulas p q p q p q q p p q q p p q p q (p q) p q ( x in D, P (x)) x in D such that P (x) ( x in D such that P (x)) x in D, P (x)

Chapter 2 Basic Structures: Sets, Functions, Sequences, and Sums 2.1 Sets Goal: To introduce the basic terminology of set theory. 2.1.1 Definition of set A set is an unordered collection of objects. The objects in a set are called the elements, or members of the set. A set is said to contain its elements. The notation a A denotes that a is an element of the set A. If a is not a member of A, write a / A. 2.1.2 Describing Sets Roster Method and Set-Builder Notation. Remark: When specifying the elements of sets the number of times an element is listed and the order in which the elements are listed do not matter. 2.1.3 Some Important Sets in Mathematics N = natural numbers = {0, 1, 2, 3,...} Z = integers = {..., 3, 2, 1, 0, 1, 2, 3,...} Z + = positive integers = {1, 2, 3,...} R = set of real numbers R + = set of positive real numbers C = set of complex numbers Q = set of rational numbers 2.1.4 Empty Set and Universal Set Remark: Distinguish between and { }: the empty set is the set with no elements and that it is a subset of every set. 3

2.1.5 Subsets and Set Equality (The set A is a subset of B) [ x(x A x B)]. Notation: A B. Theorem 1. For every set S, (i) S and (ii) S S. Proof. Let S be a set. To show that S we must show that x(x x S) is true. Because the empty set contains no elements, if follows that x is always false. It follows that the conditional statement x x S is always true, because its hypothesis is always false and a conditional statement with a false hypothesis is true. Therefore, x(x x S) is true. This completes the proof of (i). To show that S S, let x be an arbitrary element of S. WTS that x is an element of S. But this is trivial. This completes the proof of (ii). or Two sets are equal if and only if they have the same elements. That is, 2.1.6 Cardinality of Sets (A = B) ((A B) and (B A)) (A = B) ( x(x A x B) x(x B x A)) The cardinality of a finite set S is the number of distinct elements in S, depicted by S. 2.1.7 Tuples An n-tuple is an ordered list of objects, such as (a 1,..., a n ). 2.1.8 Cartesian Product The Cartesian product of sets A i, i = 1,..., n, is {(a 1,..., a n ) a i A i, i = 1,..., n} 2.2 Set Operations Set operations include union A B, intersection A B, difference A B, and complement Ā. Goal: How set identities are established and to introduce the most important such identities. Remark: The relationship between set identities and logical equivalences becomes clear when set operations are expressed using set builder notation and logical operators. Show several different ways to prove a set identity, namely by showing that each side is a subset of the other, by a membership table, by the use of logical equivalences, or by using set identities that have already been established. Explain that the set identities in Table 1 are analogous to the propositional equivalences in Section 1.3. We touch briefly on how to count elements in the union of two sets, foreshadowing the treatment of inclusion-exclusion in Chapter 8. 2.3 Functions Goal: To introduce the concept of a function, the notion of one-to-one functions, onto functions, and the floor and ceiling functions. 2.3.1 Function A function (mapping or transformation) f : A B is a relation from a set A (called domain) to a set B (called codomain), such that to each x A, exactly one y B is assigned. Thus the function f is a subset of A B.

2.3.2 Graph of a function The graph of a function f : A B is the set of ordered pairs {(a, b) a A and b B}, where A and B are nonempty sets. f(s) is called the image of the set S under f: 2.3.3 1-1 Function f(s) = {f(s) s S} = {t s S(t = f(s))}. A function f : A B is one-to-one (1-1 or injective) iff x, z A, (f(x) = f(z) x = z) Alternatively, we may use the contrapositive statement: 2.3.4 Onto Function A function f : A B is onto (surjective) iff 2.3.5 Floor and Ceiling Functions x, z A, (z x f(z) f(x)) y B x A(f(x) = y The floor function (or the greatest integer function), depicted by x (or [x]), rounds x down to the nearest integer less than or equal to x. The ceiling function, depicted by x, rounds x up to the closest integer greater than or equal to x. 2.3.6 Logarithm and Factorial Notation: log x in the textbook is used for logarithm base 2. The factorial function f : N Z +, denoted by f(n) = n!, assigns the product of first n positive integers. We define 0! = 1 so that we do not have to write exceptions in our formulas. Stirling s formula: n! 2πn(n/e) n The symbol is read as is asymptotic to, that is, lim n n! 2πn(n/e) n = 1. 2.3.7 combining functions We may add, subtract, multiply, and compose functions to derive new functions: f + g, f g, fg, f g. 2.3.8 Bijection A function f is a bijection (or a 1-1 correspondence) iff f is both 1-1 and onto. Such a function is bijective. 2.3.9 Identity Function The identity function: ι : A A is defined by ι(x) = x for all x A. 2.3.10 Inverse Function When f is a bijection, f : A B, we may define an inverse function, denoted by f 1 : B A, such that f 1 (B) = A.

2.4 Sequences and Summations Goals: To introduce terminology used for sequences and summations. To introduce recurrence relations and some methods for solving them. To work with summations and establish several important summation formulae. 2.4.1 Definition Sequences are ordered lists of elements. A sequence is a function f : Z S. 2.4.2 Notation a n = f(n) indicates the nth term of the sequence. {a n } indicates a sequence with an individual term a n. A finite sequence is called a string. A recurrence relation for the sequence {a n } is an equation that expresses a n in terms of one or more of the previous terms of the sequence. 2.4.3 Geometric progression A geometric progression is a sequence of the form a, ar, ar 2,..., where the intial term a and the common ratio r are real numbers. 2.4.4 Arithmetic progression An arithmetic progression is a sequence of the form a, a + d, a + 2d,..., where the initial term a and the commond difference d are real numbers. 2.4.5 The Fibonacci sequence The Fibonacci sequence, f 0, f 1, f 2,..., is defined by the initial conditions f 0 = 0, f 1 = 1, and the recurrence relation f n = f n 1 + f n 2 for n = 2, 3, 4,.... We say that we have solved the recurrence relation together with the initial conditions when we find an explicit formula, called a closed formula, for the terms of the sequence. Advice: The first part of this section deals with sequences. Recurrence relations are introduced and the method of iteration for solving them is discussed. Example 11 illustrates how recurrence relations are used to solve a problem involving compound interest. The topic of integer sequences is covered, which requires more critical and creative thinking than the other material. Examples 1215 involve conjecturing a formula or rule for generating the terms of a sequence when only the first few terms are known. Encourage to try the On-Line Encyclopedia of Integer Sequences, mentioned in this section. The second part of the section introduces summation notation. Make sure you can work with the different forms of this notation and with shifting indices in summations. In particular, this will be helpful later when we prove summation formulae using mathematical induction. You should also understand that sequences and strings are just special types of functions. 2.4.6 Geometric Series Proof. n 0 ar n = a arn+1, r 1 1 r S n = a + ar 2 + + ar n rs n = ar + ar 2 + ar 3 + + ar n+1

Subtract the two equations and solve for S n : S n rs n = a ar n+1 S n (1 r) = a(1 r n+1 ) S n = a(1 rn+1 ) 1 r