Introduction to Logic

Similar documents
INTRODUCTION TO LOGIC

Compound Propositions

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

Logic. Propositional Logic: Syntax. Wffs

Introducing Proof 1. hsn.uk.net. Contents

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

Propositional Logic Not Enough

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

THE LOGIC OF COMPOUND STATEMENTS

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

Math Real Analysis

Definition 2. Conjunction of p and q

Logic. Propositional Logic: Syntax

Topic 1: Propositional logic

Math Final Exam December 14, 2009 Page 1 of 5

35 Chapter CHAPTER 4: Mathematical Proof

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:

Propositional Logic: Syntax

cse541 LOGIC FOR COMPUTER SCIENCE

CHAPTER 1. Introduction

Chapter 2: Introduction to Propositional Logic


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

Equivalence and Implication

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

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

CSE 1400 Applied Discrete Mathematics Proofs

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

Proofs. Joe Patten August 10, 2018

Discrete Mathematics and Its Applications

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

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Unary negation: T F F T

CSC Discrete Math I, Spring Propositional Logic

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

Announcements CompSci 102 Discrete Math for Computer Science

Section 3.1: Direct Proof and Counterexample 1

CM10196 Topic 2: Sets, Predicates, Boolean algebras

COT 2104 Homework Assignment 1 (Answers)

Class IX Chapter 5 Introduction to Euclid's Geometry Maths

Propositional Logic. Spring Propositional Logic Spring / 32

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

Topics in Logic and Proofs

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

The statement calculus and logic

Chapter 1 Review of Equations and Inequalities

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

1.1 Language and Logic

Lecture 4: Proposition, Connectives and Truth Tables

Section 1.2: Propositional Logic

Propositional logic ( ): Review from Mat 1348

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.

Part I: Propositional Calculus

Reasoning. Inference. Knowledge Representation 4/6/2018. User

EECS 1028 M: Discrete Mathematics for Engineers

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

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

Logic and Truth Tables

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

THE LOGIC OF COMPOUND STATEMENTS

Introduction to Logic and Axiomatic Set Theory

Dr Prya Mathew SJCE Mysore

Propositional natural deduction

1.1 Statements and Compound Statements

Manual of Logical Style (fresh version 2018)

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

Logic and Proofs. (A brief summary)

CMA Geometry Unit 1 Introduction Week 2 Notes

P1-763.PDF Why Proofs?

8. Reductio ad absurdum

Proposition/Statement. Boolean Logic. Boolean variables. Logical operators: And. Logical operators: Not 9/3/13. Introduction to Logical Operators

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

Discrete Structures of Computer Science Propositional Logic I

Natural Deduction for Propositional Logic

Solutions to Exercises in Chapter 1

Truth-Functional Logic

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

Section 3.1. Statements and Logical Connectives. Copyright 2013, 2010, 2007, Pearson, Education, Inc.

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

8. Reductio ad absurdum

First Order Logic (1A) Young W. Lim 11/18/13

Unit 6 Logic Math 116

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

Chapter 4: Classical Propositional Semantics

Logic, Sets, and Proofs

2.2: Logical Equivalence: The Laws of Logic

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

Glossary of Logical Terms

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

Exercise Set 1 Solutions Math 2020 Due: January 30, Find the truth tables of each of the following compound statements.

Math 300 Introduction to Mathematical Reasoning Autumn 2017 Proof Templates 1

Symbolic Logic Outline

Boolean Logic. CS 231 Dianna Xu

Basic Logic and Proof Techniques

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 1

Propositional Equivalence

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

Chapter 1. Logic and Proof

Mat 243 Exam 1 Review

Note: The area of logic that deals with propositions is called the propositional calculus or propositional logic.

Transcription:

Introduction to Logic L. Marizza A. Bailey June 21, 2014

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. Figure: Euclid

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? Figure: Is there always exactly one line between any two points?

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. Figure: If these posts extend forever, would they form a 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. Figure: There are no lines on a sphere

Euclidean Geometry: Axiom 5: Given a line and a non-collinear point, there exists exactly one line parallel to the given line through that point. Figure: If a space exists on which this postulate holds, we say that space is a plane.

Spherical Geometry: Axiom 5: Given a line and a non-collinear point, there exist no lines parallel to the given line through that point. Figure: If a space exists on which this postulate holds, we call that space a sphere

Hyperbolic Geometry: Axiom 5: Given a line and a non-collinear point, there exist infinitely lines parallel to the given line through that point. Figure: If a space exists on which this postulate holds, we call that space hyperbolic

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.

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

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 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: 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!.

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.

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.

NOT The simplest of the operators is called negation. Definition (negation) The truth function of the statement is negated. P T F P F T Summary: Negation yields opposite truth value.

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

Definition (and) The conjunction of two statements is given by the the following truth table and is denoted, P Q. P Q P Q T T T T F F F T F F F F Summary: The AND operator is only true when both statements are true.

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 (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 T F T F T T F F F Summary: The OR operator is only false when both statements are false.

Exercises Example 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 T F T T F T F F F F T T

Exercise 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 T T T F F T F F Summary:

Exercise 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 T T T F F T F F Summary:

Writing Conditional 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. On the next slide, there are 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 a C on the test to pass the class. All Joe need 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

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.

Below is the truth table for the binary operator, implication: P Q P = Q T T T T F F F T T F F T Summary: The IMPLICATION operator is only false when the premise is true and conclusion false.

Exercise Compute the truth table for the converse of a conditional statement, Q = P Summary: P Q Q = P T T T F F T F F

Exercise Compute the truth table for the contrapositive of a conditional statement, Q = P Summary: P Q Q P Q = P T T T F F T F F

Exercise Compute the truth table for the inverse of a conditional statement, P = Q Summary: P Q P Q P = Q T T T F F T F F

Exercise 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) T T T F F T F F Summary:

Exercise Compute the following truth table and summarize the results. P Q P = Q P Q (P = Q) ( P Q) T T T F F T F F Summary: