1. Propositional logic and equivalences (1.1 and 1.2)

Similar documents
INTRODUCTORY SET THEORY

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

Math 3000 Section 003 Intro to Abstract Math Homework 2

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

The last three chapters introduced three major proof techniques: direct,

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

This chapter is all about cardinality of sets. At first this looks like a

3. Mathematical Induction

Handout #1: Mathematical Reasoning

Cardinality. The set of all finite strings over the alphabet of lowercase letters is countable. The set of real numbers R is an uncountable set.

COMP 250 Fall 2012 lecture 2 binary representations Sept. 11, 2012

Basic Proof Techniques

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

Lecture 16 : Relations and Functions DRAFT

Cartesian Products and Relations

Sample Induction Proofs

CS 103X: Discrete Structures Homework Assignment 3 Solutions

(a) Write each of p and q as a polynomial in x with coefficients in Z[y, z]. deg(p) = 7 deg(q) = 9

1 if 1 x 0 1 if 0 x 1

def: An axiom is a statement that is assumed to be true, or in the case of a mathematical system, is used to specify the system.

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

1. Prove that the empty set is a subset of every set.

Invalidity in Predicate Logic

Metric Spaces Joseph Muscat 2003 (Last revised May 2009)

Mathematical Induction

Chapter 1. Use the following to answer questions 1-5: In the questions below determine whether the proposition is TRUE or FALSE

Lecture Notes in Discrete Mathematics. Marcel B. Finan Arkansas Tech University c All Rights Reserved

Solutions for Practice problems on proofs

Basic Concepts of Point Set Topology Notes for OU course Math 4853 Spring 2011

SOLUTIONS TO EXERCISES FOR. MATHEMATICS 205A Part 3. Spaces with special properties

Predicate Logic. Example: All men are mortal. Socrates is a man. Socrates is mortal.

CHAPTER 7 GENERAL PROOF SYSTEMS

Propositional Logic. A proposition is a declarative sentence (a sentence that declares a fact) that is either true or false, but not both.

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Logic and Reasoning Practice Final Exam Spring Section Number

6.2 Permutations continued

8 Divisibility and prime numbers

Mathematical Induction

CS 3719 (Theory of Computation and Algorithms) Lecture 4

A Course in Discrete Structures. Rafael Pass Wei-Lung Dustin Tseng

Mathematical Induction. Lecture 10-11

Lecture 17 : Equivalence and Order Relations DRAFT

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

1 Homework 1. [p 0 q i+j p i 1 q j+1 ] + [p i q j ] + [p i+1 q j p i+j q 0 ]

Solutions to Homework 6 Mathematics 503 Foundations of Mathematics Spring 2014

MATH10040 Chapter 2: Prime and relatively prime numbers

x a x 2 (1 + x 2 ) n.

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

BANACH AND HILBERT SPACE REVIEW

MA651 Topology. Lecture 6. Separation Axioms.

SECTION 10-2 Mathematical Induction

Answer Key for California State Standards: Algebra I

Mathematics Review for MS Finance Students

8 Square matrices continued: Determinants

This asserts two sets are equal iff they have the same elements, that is, a set is determined by its elements.

Set Theory Basic Concepts and Definitions

Introduction to Topology

An example of a computable

DISCRETE MATH: LECTURE 3

Dedekind s forgotten axiom and why we should teach it (and why we shouldn t teach mathematical induction in our calculus classes)

CHAPTER SIX IRREDUCIBILITY AND FACTORIZATION 1. BASIC DIVISIBILITY THEORY

Page 331, 38.4 Suppose a is a positive integer and p is a prime. Prove that p a if and only if the prime factorization of a contains p.

Computational Models Lecture 8, Spring 2009

Turing Degrees and Definability of the Jump. Theodore A. Slaman. University of California, Berkeley. CJuly, 2005

Math 223 Abstract Algebra Lecture Notes

Continued Fractions and the Euclidean Algorithm

4. CLASSES OF RINGS 4.1. Classes of Rings class operator A-closed Example 1: product Example 2:

Proseminar on Semantic Theory Fall 2013 Ling 720. Problem Set on the Formal Preliminaries : Answers and Notes

Quotient Rings and Field Extensions

Real Roots of Univariate Polynomials with Real Coefficients

it is easy to see that α = a

Mathematical Induction. Mary Barnes Sue Gordon

Practice with Proofs

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

Math Circle Beginners Group October 18, 2015

Winter Camp 2011 Polynomials Alexander Remorov. Polynomials. Alexander Remorov

Undergraduate Notes in Mathematics. Arkansas Tech University Department of Mathematics

CSC 373: Algorithm Design and Analysis Lecture 16

(IALC, Chapters 8 and 9) Introduction to Turing s life, Turing machines, universal machines, unsolvable problems.

WOLLONGONG COLLEGE AUSTRALIA. Diploma in Information Technology

p: I am elected q: I will lower the taxes

Predicate Logic. For example, consider the following argument:

Math 55: Discrete Mathematics

CODING TRUE ARITHMETIC IN THE MEDVEDEV AND MUCHNIK DEGREES

Examination paper for MA0301 Elementær diskret matematikk

Discrete Mathematics II: Set Theory for Computer Science Part IA Comp. Sci. Lecture Notes

Diagonalization. Ahto Buldas. Lecture 3 of Complexity Theory October 8, Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach.

Homework until Test #2

The Graphical Method: An Example

Rules of Inference Friday, January 18, 2013 Chittu Tripathy Lecture 05

Course Syllabus. MATH 1350-Mathematics for Teachers I. Revision Date: 8/15/2016

Georg Cantor ( ):

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

ON GALOIS REALIZATIONS OF THE 2-COVERABLE SYMMETRIC AND ALTERNATING GROUPS

6.080/6.089 GITCS Feb 12, Lecture 3

Lecture 2: Universality

Computability Theory

Transcription:

COT300 Practice Problems for Exam. These problems are only meant to help you prepare the first exam. It is not guaranteed that the exam questions will be similar to these problems. There will be five problems on the exam:. Propositional logic and equivalences (. and.2) 2. Predicates and Quantifiers (.3) 3. Rules of Inference and Proofs (.5) 4. Set Operations (2. and 2.2) 5. Functions and sequences (2.3 and 2.4) The (brief) solutions will be available only after 9pm on Thursday night. However, instead of memorizing the solutions, you should attempt to solve all problems by yourself first.. What is the truth value of (p q) (p q), when both p and q are false? Solution: You should work out this problem and convince yourself that your answer is correct. 2. State the converse and contrapositive of, If I answer this question, then I will get 4 points. Solution: You just need to know the definitions of converse and contrapositive. Check out the textbook or lecture slides. 3. Which rule of inference allows you to conclude, Mark has stripes from the statements, Every zebra has stripes and Mark is a zebra? Solution: Same as above. 4. Construct the truth table for the proposition p ( q r). Solution: Clock yourself to make sure that you don t take more than three minutes on this problem. 5. Prove that there is a positive integer that equals the sum of positive integers not exceeding it. Solution: 3 is one such number.

6. Prove that the product of a rational number and an irrational number is irrational. Solution: We know that the product and quotient of two rational numbers are also ration. Therefore, we can prove this by contradiction. Let p, q be the two numbers with p rational and q irrational. Assume that r = pq is rational. Then, this implies that q = r/p is also rational, which is the desired contradiction. 7. Prove that the proposition [(p q) ( p r)] (q r) is a tautology. Solution: Compute the truth table and show that it is always true. 8. We briefly discussed the uniqueness quantifier,!. The notation!x P (x) meant There is a unique x, such that P (x) is true. Express this uniqueness quantification!x P (x) in terms of universal quantifiers, existential quantifiers and logical operators. (Hint: You might need to use nested quantifiers). Solution: Here is a partial solution:!x P (x) x y{a B}. You have to figure out what to put for A and B. 9. Prove that at least one of the real numbers a, a 2,..., a n is greater than or equal to their average. Solution: Proof by contradiction. If all a i are smaller than their average, then you can show that this average is smaller than itself, which is the contradiction. 0. For the following argument, explain which rules of inference are used in each step to lead from the premises to the conclusion: There is someone in this class who has been to France. Everyone who visits France visits the Louvre. Therefore, someone in this class has visited the Louvre. Solution: Again, the answer can be found in the textbook (Section.5).. Give one example of a trivial proof and one example of a vacuous proof. Solution: A vacuous proof is a proof that shows the hypothesis is false. Here is an example: Suppose x is a real number. Show that if x 2 < 0, then x 2 + x 6 = 2. The (vacuous) proof is to show that x 2 < 0 is false if x is real number. Then, because the hypothesis is false, the implication is always true. 2

2. Use the rules of inference to prove that if (a) x(p (x) Q(x)) (b) x( Q(x) S(x)) (c) x(r(x) S(x)) (d) x P (x) are true, then x R(x) is also true. Solution: Work out this problem yourself. Make sure that you know how to solve this problem. There are similar examples in the textbook and lecture slides. 3. Prove that there cannot exist any real number x such that x 2 + /x 2 = π/2. Solution: We did this in class. 4. If x is an integer, prove that x = floor(x/2) + ceil(x/2). Solution: There are two cases: () x = 2k+ is odd. Then floor(x/2) = k and ceil(x/2) = k +. Therefore, x = f loor(x/2) + ceil(x/2). Similarly, if x is even, we can show that x = floor(x/2) + ceil(x/2). 5. Prove that A B C = A + B + C A B A C B C + A B C. Solution: We went over this problem in class. You need to use the formula A B = A + B A B. 6. Give an example each of a function from the set of natural numbers to the set of natural numbers which is (a) one-to-one but not onto, (b) onto but not one-to-one, and (c) neither one-to-one nor onto. Prove your example in each case. Solution: (a) f(n) = n 2. (b) f(n) = n. (c) f(n) =. 7. Let A, A 2,...A n.. be a countable collection of countable sets. Show that their union and intersection are also countable.. Solution: The intersection will be a subset of say A. Because A is countable, the intersection (which is a subset) is also countable. To show that their union is also countable, you can do the following. First, show that the set N >0 N >0 is countable, i.e., the set of cartesian product of positive integers is countable. The required bijection is constructed exactly as in the proof that shows the set of rational numbers is countable. Once you have 3

shown that N >0 N >0 is countable, you can define an onto function from N >0 N >0 to A A 2... A n... showing that the latter set is indeed countable. 8. Determine whether each of these sets is countable. For those that are countable, exhibit an one-to-one correspondence between the set of natural numbers and that set. (a) integers not divisible by 3. (b) integers divisible by 5 but not by 7. (c) the real numbers with decimal representations consisting of all s. (d) the real numbers with representation of all s or 9s. (e) the real numbers not containing 0 in their decimal representation. (f) the real numbers containing only a finite number of s in their decimal representation. Solution: (a) and (b) are both countable because they are subsets of the integers. (c) is also countable. (d) will depend on how you read the problem. If the number can contain s or 9s but not both, then, it will be countable (it is just a union of two countable sets). However, if the number can contain both and 9 in its decimal representation, then, the set is uncountable. Cantor s diagonal argument can be used here to show that this set is uncountable. (e) and (f) are both uncountable. 9. Let f be a function from the set A to the set b. Let S and T be subsets of A. Show that (a) f(s T ) = f(s) f(t ). (b) f(s T ) f(s) f(t ). Solution: Here we show how to solve (a). Let x f(s T ). This means that there exists an y S T such that f(y) = x. If y S, then x f(s). Else, y T, then x f(t ). This shows that x f(s) f(t ). Conversely, if x f(s) f(t ). If x f(t ), there exists y T such that f(y) = x. This shows that x f(s T ). 4

20. Compute the sum n Solution: n. k 2 +k k 2 + k = n This telescoping sum is simply n+. ( k k + ) 5