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!

Similar documents
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

2-4: The Use of Quantifiers

Logic, Proof, Axiom Systems

Discrete Mathematics

CSC Discrete Math I, Spring Propositional Logic

PROPOSITIONAL CALCULUS

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

Packet #1: Logic & Proofs. Applied Discrete Mathematics

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

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

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

software design & management Gachon University Chulyun Kim

Logic and Propositional Calculus

Intro to Logic and Proofs

Logic and Propositional Calculus

Logic, Sets, and Proofs

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

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

Introduction to Decision Sciences Lecture 2

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

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

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

MAT 243 Test 1 SOLUTIONS, FORM A

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

1.1 Language and 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.

CSE 20 DISCRETE MATH. Winter

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

Predicate Logic. Andreas Klappenecker

HW1 graded review form? HW2 released CSE 20 DISCRETE MATH. Fall

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

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

Logic and Proof. Aiichiro Nakano

1 The Foundation: Logic and Proofs

2.2: Logical Equivalence: The Laws of Logic

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Logical Operators. Conjunction Disjunction Negation Exclusive Or Implication Biconditional

Introduction to Sets and Logic (MATH 1190)

Discrete Mathematical Structures: Theory and Applications

MATH 120. Test 1 Spring, 2012 DO ALL ASSIGNED PROBLEMS. Things to particularly study

With Question/Answer Animations. Chapter 2

1 The Foundation: Logic and Proofs

Mat 243 Exam 1 Review

1.1 Language and Logic

Exclusive Disjunction

III. Elementary Logic

Compound Propositions

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

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

MAT2345 Discrete Math

HANDOUT AND SET THEORY. Ariyadi Wijaya

Discrete Mathematics and Its Applications

CHAPTER 1 - LOGIC OF COMPOUND STATEMENTS

Discrete Mathematical Structures. Chapter 1 The Foundation: Logic

Proofs. Joe Patten August 10, 2018

Unit I LOGIC AND PROOFS. B. Thilaka Applied Mathematics

A. Propositional Logic

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

Section 1.3. Let I be a set. When I is used in the following context,

Chapter 1 Elementary Logic

5. Use a truth table to determine whether the two statements are equivalent. Let t be a tautology and c be a contradiction.

Math Assignment 2 Solutions - Spring Jaimos F Skriletz Provide definitions for the following:

ECOM Discrete Mathematics

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

Logical Reasoning. Chapter Statements and Logical Operators

Section L.1- Introduction to Logic

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

Propositional Logic, Predicates, and Equivalence

Mathematical Reasoning (Part I) 1

WUCT121. Discrete Mathematics. Logic. Tutorial Exercises

Equivalence of Propositions

Logic - recap. So far, we have seen that: Logic is a language which can be used to describe:

CA320 - Computability & Complexity

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

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

Rules Build Arguments Rules Building Arguments

Logic and Proofs. (A brief summary)

Part I: Propositional Calculus

AMTH140 Lecture 8. Symbolic Logic

Why Learning Logic? Logic. Propositional Logic. Compound Propositions

Topics in Logic and Proofs

Learning Goals of CS245 Logic and Computation

Statements and Quantifiers

MATH 2001 MIDTERM EXAM 1 SOLUTION

THE LOGIC OF COMPOUND STATEMENTS

Predicates and Quantifiers

Proving Things. Why prove things? Proof by Substitution, within Logic. Rules of Inference: applying Logic. Using Assumptions.

Section 1.1 Propositions

Readings: Conjecture. Theorem. Rosen Section 1.5

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Equivalence and Implication

DISCRETE MATHEMATICS BA202

EECS 1028 M: Discrete Mathematics for Engineers

FUNDAMENTALS OF MATHEMATICS HANDOUT 1.3 DR. MCLOUGHLIN

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

Propositional Logic. Spring Propositional Logic Spring / 32

Logic Overview, I. and T T T T F F F T F F F F

Transcription:

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! 26-Aug-2011 MA 341 001 2 Requirements for Proof 1. Mutual understanding of the words and symbols used 2. Acceptance of certain statements called axioms without justification 3. Agreement on how and when one statement follows logically from another, that is, agreement on certain rules of reasoning. 26-Aug-2011 MA 341 001 3 1

Sets A set is a collection of objects satisfying some condition. It is possible to have no objects in a set. This set is called the empty set and is denoted by { } or Ø 26-Aug-2011 MA 341 001 4 Set Notation Roster method: {a,b,c, z} Set builder notation: A = { x P(x) is satisfied } Set elements: a є A a is in A a is a member of A a is an element of A 26-Aug-2011 MA 341 001 5 Set Notation Set elements: a є A means a is not a member of A means that A is a subset of B which means every element of A is also an element of B if a є A then a є B Note: for every set A 26-Aug-2011 MA 341 001 6 2

Set Equality A = B means that every element of A is also and element of B and vice versa. A = B and 26-Aug-2011 MA 341 001 7 Set Intersection Set Union 26-Aug-2011 MA 341 001 8 Set Complement Note that 26-Aug-2011 MA 341 001 9 3

Mathematical Statements A declarative sentence which is true or false, but not both, is called a statement. Examples: 1 + 1 = 3 2-1 = 1 The grass is blue. 26-Aug-2011 MA 341 001 10 Set Variables A variable is a symbol or an icon that can be used to represent various elements of the universal set. Examples: He is a Wildcat. This is true if he=adolf Rupp. This is not true if he=rick Pitino. 26-Aug-2011 MA 341 001 11 Logical Connectives & Truth Tables If P and Q are statements, then the statement P and Q is called the conjunction of P and Q. Notation: Examples: 26-Aug-2011 MA 341 001 12 4

Truth Values P Q 26-Aug-2011 MA 341 001 13 Logical Connectives & Truth Tables If P and Q are statements, then the statement P or Q is called the disjunction of P and Q. Notation: Note: mathematicians use the inclusive or Examples: 26-Aug-2011 MA 341 001 14 Truth Values P Q 26-Aug-2011 MA 341 001 15 5

Negation If P is a statement, then the statement not P is called the negation of P. Notation: ~P (sometimes P or P) We assume that either P or ~P is true, but not both and not neither 26-Aug-2011 MA 341 001 16 Negation ~(P Q) is equivalent to ~P ~Q. ~(P Q) is equivalent to ~P ~Q ~(~P) is equivalent to P 26-Aug-2011 MA 341 001 17 The Conditional If P and Q are statements, then the statement if P then Q is called the conditional statement Notation: Examples: If it is cold, it is snowing. If it is blue, it is UK. 26-Aug-2011 MA 341 001 18 6

Truth Values P Q See additional notes in Blackboard for further discussion. 26-Aug-2011 MA 341 001 19 Truth Values P = The animal is a tiger. Q = The animal is a mammal. When must the statement be false? P Q P Q is a tiger is a mammal is a tiger is not a mammal is not a tiger is mammal is not a tiger is not a mammal 26-Aug-2011 MA 341 001 20 Truth Values Statements of the form If P then Q do not mean the same thing in math as in ordinary English. In ordinary English, If P then Q may suggest order of occurrence. If we go outside, the neighbors will see us implies that the neighbors will see us after we go outside. If P then Q can suggest causation. This example has the connotation that the neighbors will see us because we went outside. 26-Aug-2011 MA 341 001 21 7

The Conditional If P then Q PREFERED Q if P P only if Q Q provided P Q when P 26-Aug-2011 MA 341 001 22 Related Statements Conditional: If P, then Q (P Q) Converse: If Q, then P (Q P) Inverse: If not P, then not Q (~P ~Q) Contrapositive: If not Q, then not P (~Q ~P) (Conditional logically equiv to Contrapositive) (Converse logically equiv to Inverse ) 26-Aug-2011 MA 341 001 23 Related Statements If there is smoke, then there is fire. Converse: If there is fire, then there is smoke. Inverse: If there is no smoke, then there is no fire. Contrapositive: If there is no fire, then there is no smoke. 26-Aug-2011 MA 341 001 24 8

The Biconditional If P and Q are statements, then the statement P if and only if Q is called the biconditional statement Notation: P Q Meaning: P Q means P Qand Q P. 26-Aug-2011 MA 341 001 25 Truth Values P Q 26-Aug-2011 MA 341 001 26 Compound Statements If x is perpendicular to y and y is perpendicular to z, then x is parallel to z. Let P: x is perpendicular to y Q: y is perpendicular to z R: x is parallel to z. 26-Aug-2011 MA 341 001 27 9

P Q R 26-Aug-2011 MA 341 001 28 Universal Quantifier If P is a statement that depends on a variable x, then the universal quantifier is For every x, P(x) for every = for each = for all 27-Aug-2010 26-Aug-2011 MA 341 001 29 25 Existential Quantifier If P is a statement that depends on a variable x, then the existential quantifier is There exists an x such that P(x) There is at least one = for at least one = some 26-Aug-2011 MA 341 001 30 10

Translate the following x y, x+y = 0 x y, x+y=0 For every x and for every y, x+y = 0. For every x there exists a y so that x+y = 0. x y, x+y=0 x y, x+y=0 There exists an x so that for every y, x+y = 0. There exists an x and there exists a y so that x+y = 0. 26-Aug-2011 MA 341 001 31 Translate the following For every x, if x is even, then there exists a y such that x = 2y. x (xiseven y, x = 2y) 26-Aug-2011 MA 341 001 28 Rules of Reasoning A tautology is a sentence which is true no matter what the truth value of its constituent parts. Example: P (P Q) 26-Aug-2011 MA 341 001 33 11

Logic Axiom 1 Every tautology is a rule of reasoning. (P Q) (~Q ~P) (The Contrapositive) [P (P Q)] Q (Modus ponens) [(P Q) (Q R)] (P R) (Law of Syllogism) ~(P Q) (P ~Q) (basis for Proof by Contradiction) [(P R) (Q R)] [(P Q) R] Proof by Cases 26-Aug-2011 MA 341 001 34 Logic Axiom 2 Let U denote a universal set. Each of the following is a rule of reasoning. [ x,p(x) Q(x)] [ x,p(x) x,q(x)] x,p(x) P(a) for any a U x,p(x) [P(a) for some a U] 26-Aug-2011 MA 341 001 35 Logic Axiom 3 (Rule of Substitution) Suppose P Q. Then P and Q may be substituted for one another in any sentence. Logic Axiom 4 Every sentence of the type ~[ x,p(x)] [ x so that ~P(x)] is true. Logic Axiom 5 Every sentence of the type ~[ x so that P(x)] [ x,~p(x)] is true. 26-Aug-2011 MA 341 001 32 12