INTRODUCTION TO LOGIC

Similar documents
Introduction to Logic

Introducing Proof 1. hsn.uk.net. Contents

For all For every For each For any There exists at least one There exists There is Some

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

Compound Propositions

Section 3.1: Direct Proof and Counterexample 1

Chapter 4. Basic Set Theory. 4.1 The Language of Set Theory

CM10196 Topic 2: Sets, Predicates, Boolean algebras

Math Real Analysis

CHAPTER 1. Introduction

Logic. Propositional Logic: Syntax. Wffs

35 Chapter CHAPTER 4: Mathematical Proof

Definition 2. Conjunction of p and q

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

2-1. Inductive Reasoning and Conjecture. Lesson 2-1. What You ll Learn. Active Vocabulary

CSE 1400 Applied Discrete Mathematics Proofs

THE LOGIC OF COMPOUND STATEMENTS

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

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

Basic Logic and Proof Techniques

Euclid Geometry And Non-Euclid Geometry. Have you ever asked yourself why is it that if you walk to a specific place from

Proofs. Joe Patten August 10, 2018

Propositional Logic. Jason Filippou UMCP. ason Filippou UMCP) Propositional Logic / 38


CSC Discrete Math I, Spring Propositional Logic

Logic. Propositional Logic: Syntax

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Topic 1: Propositional logic

p, p or its negation is true, and the other false

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

COT 2104 Homework Assignment 1 (Answers)

Propositional Logic. Spring Propositional Logic Spring / 32

1.1 Statements and Compound Statements

Chapter 1 Review of Equations and Inequalities

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

Math Final Exam December 14, 2009 Page 1 of 5

Math 13, Spring 2013, Lecture B: Midterm

Unary negation: T F F T

Class IX Chapter 5 Introduction to Euclid's Geometry Maths

Propositional Logic Not Enough

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

cis32-ai lecture # 18 mon-3-apr-2006

Truth-Functional Logic

The statement calculus and logic

3 The language of proof

Propositional Logic: Syntax

cse541 LOGIC FOR COMPUTER SCIENCE

Chapter 2: Introduction to Propositional Logic

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

THE LOGIC OF COMPOUND STATEMENTS

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Symbolic Logic 3. For an inference to be deductively valid it is impossible for the conclusion to be false if the premises are true.

P1-763.PDF Why Proofs?

1.1 Language and Logic

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Proof Templates 1

Grade 7/8 Math Circles. Mathematical Thinking

Section 1.2: Propositional Logic

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15

Discrete Mathematics and Its Applications

MA103 STATEMENTS, PROOF, LOGIC

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.

Elementary Linear Algebra, Second Edition, by Spence, Insel, and Friedberg. ISBN Pearson Education, Inc., Upper Saddle River, NJ.

Section 1.2: Conditional Statements

Topics in Logic and Proofs

Propositional logic ( ): Review from Mat 1348

What is proof? Lesson 1

Lecture 4: Proposition, Connectives and Truth Tables

EECS 1028 M: Discrete Mathematics for Engineers

Cambridge University Press How to Prove it: A Structured Approach: Second edition Daniel J. Velleman Excerpt More information

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy

from Euclid to Einstein

Logic and Proofs. (A brief summary)

Section 2.1: Introduction to the Logic of Quantified Statements

The following statements are conditional: Underline each hypothesis and circle each conclusion.

EUCLID S AXIOMS A-1 A-2 A-3 A-4 A-5 CN-1 CN-2 CN-3 CN-4 CN-5

Chapter 1, Part I: Propositional Logic. With Question/Answer Animations

Glossary of Logical Terms

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

Deduction by Daniel Bonevac. Chapter 3 Truth Trees

Manual of Logical Style (fresh version 2018)

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

1 Propositional Logic

CMA Geometry Unit 1 Introduction Week 2 Notes

Mathematical Logic Prof. Arindama Singh Department of Mathematics Indian Institute of Technology, Madras. Lecture - 15 Propositional Calculus (PC)

PHIL12A Section answers, 16 February 2011

Equivalence and Implication

Flat Geometry. Spherical Geometry

8. TRANSFORMING TOOL #1 (the Addition Property of Equality)

Chapter 1. Logic and Proof

Introduction Propositional Logic. Discrete Mathematics Andrei Bulatov

Proof. Theorems. Theorems. Example. Example. Example. Part 4. The Big Bang Theory

Writing Mathematical Proofs

Natural Deduction for Propositional Logic

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Solutions to Exercises in Chapter 1

Symbolic Logic Outline

Unit 1. Propositional Logic Reading do all quick-checks Propositional Logic: Ch. 2.intro, 2.2, 2.3, 2.4. Review 2.9

Logic, Sets, and Proofs

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

Transcription:

INTRODUCTION TO LOGIC L. MARIZZA A. BAILEY 1. The beginning of Modern Mathematics Before Euclid, there were many mathematicians that made great progress in the knowledge of numbers, algebra and geometry. However, their work was so scattered and disorganized that much of the work was redundant. A volume of known mathematical concepts was necessary to keep mathematics from stagnating. Euclid was the first known mathematician to try to classify mathematical knowledge into the tiers of axioms, definitions, and theorems. An axiom, or postulate, is a statement which we assume in order to build our model of reality. For example, in planar geometry, we assume that between any two points, we can draw only one line between them. This is something that you have taken for granted since you learned what a point and line was. However, when does a line actually exist? Can you draw a line on your piece of paper? Did you answer yes? Actually, since your paper is not infinite, you could, at most, draw a line segment. Well, then, all we need is an infinite plane. What about on the ground? Can you draw an infinite line on the ground? If we were to draw a infinitely long straight line on the ground, we would come right back where we started. Obviously, this is because we live on a sphere. You may say, That isn t a line. Well, let s define line. If we wanted to define a line segment as the shortest path between the two endpoints, and a line to be it s infinite extension, then lines on a sphere are great circles. However, in spherical geometry, there is no unique line between two points. Consider, for example, the north and south pole. There are infinitely many great circles between the two poles. Below are some examples of axioms, which, given the difference, imply a completely different geometrical universe. Euclidean Geometry: Axiom 5: Given a line and a non-collinear point, there exists exactly one line Date: June 21, 2014. 1

2 parallel to the given line through that point. Spherical Geometry: Axiom 5: Given a line and a non-collinear point, there exist no lines parallel to the given line through that point. Hyperbolic Geometry: Axiom 5: Given a line and a non-collinear point, there exist infinitely lines parallel to the given line through that point. These axioms are necessary to build the geometry of each space, and each axiom yields a completely different geometry. Take a minute to illustrate the postulates above to convince yourself that these axioms are a natural consequence of the geometry they specify. Although, these axioms may make sense after a moments thought and some illustrations, they are meaningless if we haven t defined everything clearly. In Euclidean geometry, we imagine a line to be a straight curve which extends indefinitely in two directions but has no width. However, as soon as non-euclidean spaces were required to model physical reality, the definition of line required generalization. The beauty and art of mathematics is that we can define anything into existence in the mathematical world as long as it is well-defined. The ability to create new definitions allows mathematics to keep growing in order to satisfy some new model constructed to appease physicists, chemists, biologists, programmers, engineers, or just the whim of a mathematician. 2. Why Logic is Necessary To create definitions, axioms or prove theorems based on these definitions and axioms, it is necessary to first learn the art of using precise language and developing infallible arguments. Most people think of logic as the analysis of methods and reasoning, but there is more to logic than this. Logic is not interested in the content of an argument, but rather the form of the argument. Mathematics is about precision of argument. Therefore, the natural aim in studying logic is to make the form of argument precise. All men are mortal. Socrates is a man. Hence, Socrates is mortal. The validity of each premise or conclusion is not important. The logical question to answer is whether or not the premise implies the conclusion. However, the form of the argument above is not precise enough to easily identify the premise or conclusion. In order to better understand why precision in form and language is important, we will visit a well known historic paradox that baffled mathematicians at the time and revolutionized mathematics

3 2.1. Russel s Paradox. Not all of the fields of mathematics followed Euclid s example and continued to axiomatize their concepts. For example, in set theory, rather than develop an axiomatized approach to sets, the definition was loosely given as a collection of objects with a well-defined property. This model of set theory is called Naive Set Theory. Unfortunately, it led to a famous paradox found by Russel in 1902. Are you ready? This is going to be mind bender, so get your math pants on. Problem 1. Let A be the collection of all sets that are not members of themselves. Is A A? In other words, is A in this collection, or not? Solution 1. Let us first suppose A is in this collection. Then by its inherent property, it is a not a member of itself. Thus, it cannot be in this collection. WHAT???? Okay, don t give up. We can still suppose that A is not in this collection. But then it cannot satisfy the property that it is not a member of itself. Therefore it must be a member of itself... which means it is in this collection. Aaaaah! Both assumptions contradict themselves, and there is no other possibility. This can only mean one thing... there is something wrong with the entire model!. And that, my dears, is how axiomatic set theory was born. If you didn t like that, here is a simple analogy I was given by a student. Let C be a club that consists of all students who are not in any clubs. (**) If student A is not in any club, then student A is in club C. However, since student A is now in club C, student A is in a club, and can no longer be in club C. Therefore, student A is not in any club. and we go back to (**) Here is some more food for thought. Consider the following sentence, This sentence is false. What is the validity of this statement? Can we judge the validity, or is this statement a semantic paradox. The analysis of these, and other, paradoxes, has led to various suggestions for avoiding them. 3. Logical Connectives Sentences in logic are constructed by using various unary and binary operators. They are defined by truth tables. In fact, logical sentences are considered equivalent if their truth tables are the same. A logical sentence which is always true is called a tautology. In logic, statements are assigned variables, such as P and Q. A statement may be true, denoted, T, or false, F.

4 4. NOT The simplest of the operators is called negation. Definition 1 (negation). The truth function of the statement is negated. P P Negation yields opposite truth value. 5. AND The most natural and commonly used binary operator is the conjunction, or P and Q operator, is denoted P Q. We use the word and in sentences all the time, and it s important that we understand what they mean. Suppose there was a math club at school that only accepted members which are in upper school and in (Calculus or higher). Four students applied to join the club; Student A: 7th grader in Calculus BC Student B: 8th grader in Pre-Calculus Student C: 6th grader in Algebra 2 Student D: 9th grader in Calculus AB Which of the students above would be admitted into the math club? If you answered D, then you are correct! Move on to the next round. The students above had to satisfy both statements: P: Student is in eighth grade or higher Q: Student is in Calculus or higher

5 Definition 2 (and). The conjunction of two statements is given by the the following truth table and is denoted, P Q. P Q P Q T F F F The AND operator is only true when both statements are true. Label the students above with the case they represent in the logic table. 6. OR Another simple and commonly used binary operator is called or, which includes both statements being true, unlike its brother xor, or exclusive or, which is valid when exactly one statement is true. Let s revisit the math club at school. This time, they change the conditions for entry to include those members which are in upper school or have passed pre-calculus. This time when the four students apply to join the club, more of them are able to join; Student A: 7th grader in Calculus BC Student B: 8th grader in Pre-Calculus Student C: 6th grader in Algebra 2 Student D: 9th grader in Calculus AB Which of the students above would be admitted into the math club now that the conditions have changed? If you answered A,B and D, then you are correct! Move on to the next round. The students above had to satisfy at least one of the statements: P: Student is in eighth grade or higher Q: Student is in Calculus or higher Definition 3 (or). P Q is the notation for P or Q and is defined by the truth table below. P Q P Q T T T F The OR operator is only false when both statements are false. Using these three operators, we can construct a various assortment of logical sentences. Below is an example followed by a few exercises.

6 7. Exercises Example 1. Notice that first two columns represent the independent variables P and Q, which can take on values true or false. Columns are added as the logical statement becomes progressively more complicated. The logical sentence below can be thought of as a the functions, negations and or. P Q Q P Q T T F T Notice that the end truth value has changed and is almost the opposite of the truth table for and, which leads us to the first exercise. Exercise 1. Show that the logical sentence P Q is logically equivalent to (P Q). This tautology is called DeMorgan s Law. P Q P Q P Q P Q (P Q) Exercise 2. Show that the logical sentence P Q is logically equivalent to (P Q). This tautology is called DeMorgan s Law. P Q P Q P Q P Q (P Q)

7 8. Implications Conditional Statements are also commonly used and extraordinarily important in the construction of logical arguments. They consist of a premise and a conclusion. Unfortunately, conditional statements are usually given in ambiguous language where the premise and conclusion are difficult to identify. 8.1. Writing Conditional Statements. Below are some examples of conditional statements. Identify the premise of each statement and write it under the column labeled P. Write the conclusion of each statement under the column labeled Q. Do not worry about the validity of each statement, that will be analyzed next. Statement P Q Only women have babies. Joe needs, at least, a C on the test to pass the class. All Joe needs is a B on the test to pass the class. All babies wear diapers. All of the conditional statements above would be more easily understood if they were of the form, or P = Q If P, then Q 9. Validity of Implications It is easy to be confused about the truth value of a conditional statement. Most people are under the impression that if the premise is false, then the implication is false. This, however, cannot be further from the truth. Consider the following statement: If a number is odd, then it is prime. Now consider the number 3. Does it satisfy the hypothesis? Is it prime? Does the existence of the number 3 show the statement to be false? Now consider the number 2. Does it satisfy the hypothesis? Is it prime? Does the existence of the number 2 show the statement to be false? Now consider the number 4. Does it satisfy the hypothesis? Is it prime? Does the existence of the number 4 show the statement to be false? Suppose I gave you the number 9. Does it satisfy the hypothesis? Is it prime?

8 Does the existence of the number 9 show the statement to be false? This last number is a counterexample to the statement and therefore shows that the statement is not true for all numbers, and,hence, is not a true statement. Thus it is an example which shows the premise to be true and the conclusion to be false which yields a the implication false. Below is the truth table for the binary operator, implication: P Q P = Q T F T F The IMPLICATION operator is only false when the premise is true and conclusion false. 10. Exercises Exercise 3. Compute the truth table for the converse of a conditional statement, Q = P P Q Q = P Exercise 4. Compute the truth table for the contrapositive of a conditional statement, Q = P P Q Q P Q = P

9 Exercise 5. Compute the truth table for the inverse of a conditional statement, P = Q P Q P Q P = Q Exercise 6. Which of the statements has a truth table equivalent to the original statement? Converse, Inverse, or Contrapositive? Exercise 7. The binary logical operator if and only if, or logical equivalence, denoted P Q means (P = Q) (Q = P ). Compute the truth table below. P Q P = Q Q = P (P = Q) (Q = P ) Exercise 8. Compute the following truth table and summarize the results. P Q P = Q P Q (P = Q) ( P Q) Basis Scottsdale E-mail address: mbailey@basisscottsdale.org