Joan Ridgway. Basic Concepts of Symbolic Logic Mathematical logic deals with basic statements called propositions. The word “logic” derives from the Greek.

Slides:



Advertisements
Similar presentations
04 March 2009Instructor: Tasneem Darwish1 University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Introduction.
Advertisements

Goals Determine the true value of statements with AND, OR, IF..THEN. Negate statements with the connectives above Construct truth tables Understand when.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
From Chapter 4 Formal Specification using Z David Lightfoot
1 Section 1.1 Logic. 2 Proposition Statement that is either true or false –can’t be both –in English, must contain a form of “to be” Examples: –Cate Sheller.
SEVENTH EDITION and EXPANDED SEVENTH EDITION
The Language of Propositional Logic The Syntax and Semantics of PL.
Copyright © Cengage Learning. All rights reserved.
Adapted from Discrete Math
IB Math Studies – Topic 3. IB Course Guide Description.
Basics On Logic.
Basics On Logic. A PROPOSITION is a statement that is either true (T) or false (F). Propositions are represented by letters p, q, r, P, Q, etc. The negation.
Lecture 8 Introduction to Logic CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Material Taken From: Mathematics for the international student Mathematical Studies SL Mal Coad, Glen Whiffen, John Owen, Robert Haese, Sandra Haese.
Propositions and Truth Tables
1.1 Sets and Logic Set – a collection of objects. Set brackets {} are used to enclose the elements of a set. Example: {1, 2, 5, 9} Elements – objects inside.
Course Outline Book: Discrete Mathematics by K. P. Bogart Topics:
2009/9 1 Logic and Proofs §1.1 Introduction §1.2 Propositional Equivalences §1.3 Predicates and Quantifiers §1.4 Nested Quantifiers §1.5~7 Methods of Proofs.
Discrete Mathematics and Its Applications
Chapter 2 Section 5 - Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
Pratibha Sinha. aU msGg.
Copyright © Curt Hill Mathematical Logic An Introduction.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
CSNB143 – Discrete Structure LOGIC. Learning Outcomes Student should be able to know what is it means by statement. Students should be able to identify.
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
Sets and Sentences Open Sentences Foundations of Real Analysis.
Chapter SETS DEFINITION OF SET METHODS FOR SPECIFYING SET SUBSETS VENN DIAGRAM SET IDENTITIES SET OPERATIONS.
Logical Form and Logical Equivalence Lecture 1 Section 1.1 Wed, Jan 12, 2005.
A logical puzzle Given situation: Three women stand behind each other. Each one carries a hat on her head and sees only the hats of the person(s) standing.
Logical Operations – Page 1CSCI 1900 – Discrete Structures CSCI 1900 Discrete Structures Logical Operations Reading: Kolman, Section 2.1.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
Logic Terminology Statement- declarative sentence that is either true or false Opinion- a belief about matters commonly considered to be subjective,
Mathematics for Comter I Lecture 2: Logic (1) Basic definitions Logical operators Translating English sentences.
رياضيات متقطعة لعلوم الحاسب MATH 226. Text books: (Discrete Mathematics and its applications) Kenneth H. Rosen, seventh Edition, 2012, McGraw- Hill.
Learning Objectives  To define a proposition  To form a compound proposition using connectives  To determine the truth values of compound propositions.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Propositional and predicate logic
Law of logic Lecture 4.
Simple Logic.
Chapter 1 Propositional Logic
Symbolic Logic Pratibha Sinha.
DISCRETE MATHEMATICS CHAPTER I.
CSNB 143 Discrete Mathematical Structures
Lecture 1 – Formal Logic.
Discrete Mathematics Logic.
Converting Statements to Symbols
Ch.1 (Part 1): The Foundations: Logic and Proofs
Chapter 3 Introduction to Logic 2012 Pearson Education, Inc.
Symbolic Logic Pratibha Sinha.
Logic – Bell Ringer.
Propositional Logic.
Chapter 8 Logic Topics
Fundamentals of Logic Sentence: A sentence is usually collection of words Proposition: A proposition is usually a declarative to which it is meaningful.
2 Chapter Introduction to Logic and Sets
CHAPTER 1: LOGICS AND PROOF
TRUTH TABLES.
(1.4) An Introduction to Logic
Concept 8 Inductive Reasoning.
1 Chapter An Introduction to Problem Solving
Logic Math Studies IB Propositions, truth tables, logic symbols, negation, conjunction, disjunction.
Discrete Mathematics Logic.
1 Chapter An Introduction to Problem Solving
MAT 3100 Introduction to Proof
8A, 8B Propositions Unit 7: Logic and Sets 8A, 8B 6/1/ :59 AM.
Truth tables.
Presentation transcript:

Joan Ridgway

Basic Concepts of Symbolic Logic Mathematical logic deals with basic statements called propositions. The word “logic” derives from the Greek word logos meaning “word”. For a mathematician, logic deals with the conversion of word statements to symbolic form, and the use of that symbolic form to make deductions and create proofs. A proposition can be true, T, or false, F, but might be indeterminate. Questions, exclamations and orders are not propositions. In the study of mathematical logic, we concentrate on propositions which have a well-defined truth value, that is, they are true or false.

Which of the following are propositions? For each proposition identified, discuss whether it is true, false or indeterminate. a.All dogs have tails. b.My little sister is cute. c.Today it is snowing here. d.(i) 3 2 = 9 (ii) 4 2 = 21 (iii)  is a rational number e.How many people are there is the world? f.Quadratic equations contain at most a second power of the variable. g.y = 6 h.For all x  R, x 2  0 Proposition. False Proposition. Indeterminate Proposition. TrueProposition. False Not a proposition. Proposition. True Not a proposition. (We are not told what y is). Proposition. True

To avoid writing all the words in a proposition all the time, we label propositions with letters. Usually we use p, q, r, s etc. In Maths Studies, the maximum number of propositions used at once is three, usually p, q, and r. e.g. p : The wind is blowing. q : I will lose my hat. In this example, there might be a connection between these propositions. Compound Statements All relations between two or more propositions are called compound statements or compound propositions. Symbols used to connect propositions are called connectives. We will look at the symbols and meaning of Implication, Equivalence, Negation, Conjunction, Disjunction and Exclusive disjunction.

Implication E.g. p : The wind is blowing. q : I will lose my hat. “If the wind is blowing then I will lose my hat”. This is called implication. The symbol for this is an arrow in the direction of implication. We write it as p  q (or sometimes as q  p ) p : This is a zebra. q : This is striped. “If this is a zebra then it is striped”. This could be phrased as “All zebras are striped”

If an implication works in both directions, it is called an equivalence. E.g. r : Fiona is a good footballer s : Fiona scores lots of goals We could write r  s This is the same as writing r  s and r  s It is also the same as saying that r is true if and only if s is true. Equivalence Negation If we deny a proposition, we are saying it is not true. The negation of p is usually written as  p E.g.  q : I will not lose my hat  r : Fiona is not a good footballer.

Conjunction, Disjunction and Exclusive disjunction These are fancy names for the ideas of “and”, “or” and “or but not both”. Each has its own symbol: Conjunction ( = and ) with the symbol  Disjunction ( = or, possibly both ) with the symbol  Exclusive disjunction ( = or but not both ) with the symbol  The use is straightforward: p : Mischa has a dog q : Yuri has a cat p  qp  q p  qp  q p  qp  q Mischa has a dog and Yuri has a cat. Either Mischa has a dog or Yuri has a cat (and both could be true). Either Mischa has a dog or Yuri has a cat but not both are true.

Given w : I am wearing shorts. s : I am going to swim. r : I am going to run. Write in words these compound propositions: a. w  s b. w  r  s c. s  r d.  s  r e. w   ( s  r ) I am wearing shorts and I am going to swim. If I am wearing shorts then I am going to swim or run. I am going to run or swim, but not both. If I am not going to swim, then I am going to run, and if I am going to run, then I am not going to swim. I am wearing shorts and I am not going to run or to swim. (or I am not wearing shorts and I am going to neither swim nor run.)

Some compound propositions have the same meaning (are equivalent). For example: p  q  q  p is the same as p  q  ( p  q ) is the same as  p   q  ( p  q ) is the same as  p   q To understand why these propositions are equivalent, an example helps. Take p : The sun is shining. q : It is raining. Then  p   q becomes “the sun is not shining and it is not raining” while ( p  q ) becomes “the sun is shining or it is raining (or both)” and hence  ( p  q ) is “neither is the sun shining nor is it raining”, which is clearly the same as “the sun is not shining and it is not raining”. Warning: The use of brackets is important when a compound proposition could be ambiguous without their use. For example if I write  p  q, this is different from  ( p  q ). It is like the difference between – x + y and – (x + y) in algebra. If in doubt, use brackets!

r  q q r  p  qr  p  q p

r   qr   q (q  r)   p(q  r)   p r  p  qr  p  q

r  r   (I visited Sarah’s Snackbar or I visited Pete’s Eats) (q  r)   p(q  r)   p IfthenI did not visit Alan’s Diner If I visited either Sarah’s Snackbar or Pete’s Eats (or both), then I did not visit Alan’s Diner. r  p  qr  p  q

If I visited either Sarah’s Snackbar or Pete’s Eats, then I did not visit Alan’s Diner. r  p  qr  p  q

The connectives used in symbolic logic are closely related to ideas which you have met when working with sets. Suppose that A is the set of days which are cold, and B is the set of days which are wet. Then A  B stands for the set of days which are cold and wet. So if ‘today’ is a member of the set A  B, i.e. t  A  B, it is cold and wet today. U AB t So t  A  B gives the same information as p  q being true. If we have: p : Today is a cold day. q : Today is a wet day then p  q means that today is cold and wet.

The connectives used in symbolic logic are closely related to ideas which you have met when working with sets. Suppose that A is the set of days which are cold, and B is the set of days which are wet. A  B stands for the set of days which are either cold or wet (or both). So if ‘today’ is a member of the set A  B, i.e. t  A  B, it is cold or wet today. So t  A  B gives the same information as p  q being true. If we have: p : Today is a cold day. q : Today is a wet day then p  q means that today is cold or wet. U A B B A t

The connectives used in symbolic logic are closely related to ideas which you have met when working with sets. Suppose that A is the set of days which are cold, and B is the set of days which are wet. A’ stands for the set of days which are not cold. So if ‘today’ is a member of the set A’, i.e. t  A’, it is not cold today. So t  A’ gives the same information as  p being true. If we have: p : Today is a cold day. q : Today is a wet day then  p means that today is not cold. U B B A t

The connectives used in symbolic logic are closely related to ideas which you have met when working with sets. Suppose that A is the set of days which are cold, and B is the set of days which are wet. A  B stands for all cold days are a subset of wet days, so all cold days are wet. So if ‘today’ is a member of the set A, it must also be a member of the set B. So t  A and A  B gives the same information as p  q being true. If we have: p : Today is a cold day. q : Today is a wet day then p  q means that if it is cold today, then it is wet today.. U B A t

Draw a Venn diagram showing the truth sets for the propositions: p : n is an even natural number less than 17 q : n is an odd natural number less than 17 r : n is a positive multiple of 3 which is less than 20 Take U to be the set of integers from 1 to 20 inclusive. U PQ R Using the Venn diagram, list the truth sets for the propositions: p  q p  r n is a positive multiple of 3 which is less than 20 but is not an even number less than 17  ( p  q ) The set P  Q, which is  The set P  R, which is {6, 12} {3, 9, 15, 18} The set ( P  Q )’, which is {17, 18, 19, 20 }