Introduction to Logic Logical Form: general rules

Slides:



Advertisements
Similar presentations
Propositional Equivalences
Advertisements

Introduction to Theorem Proving
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
Chapter 1 The Logic of Compound Statements. Section 1.3 Valid & Invalid Arguments.
CS128 – Discrete Mathematics for Computer Science
Chapter 1 The Logic of Compound Statements. Section 1.2 – 1.3 (Modus Tollens) Conditional and Valid & Invalid Arguments.
Logic 1 Statements and Logical Operators. Logic Propositional Calculus – Using statements to build arguments – Arguments are based on statements or propositions.
Discrete Mathematics Lecture 1 Logic of Compound Statements Harper Langston New York University.
Discrete Structures Chapter 1 Part A Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
Syllabus Every Week: 2 Hourly Exams +Final - as noted on Syllabus
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
1 Math 306 Foundations of Mathematics I Math 306 Foundations of Mathematics I Goals of this class Introduction to important mathematical concepts Development.
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Through the Looking Glass, 1865
Chapter 2: The Logic of Compound Statements 2.1 Logical Forms and Equivalence 12.1 Logical Forms and Equivalences Logic is a science of the necessary laws.
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.
Chapter 3 Section 4 – Slide 1 Copyright © 2009 Pearson Education, Inc. AND.
3.6 Analyzing Arguments with Truth Tables
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
MATERI II PROPOSISI. 2 Tautology and Contradiction Definition A tautology is a statement form that is always true. A statement whose form is a tautology.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
Review I Rosen , 3.1 Know your definitions!
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
COS 150 Discrete Structures Assoc. Prof. Svetla Boytcheva Fall semester 2014.
Lecture 4. CONDITIONAL STATEMENTS: Consider the statement: "If you earn an A in Math, then I'll buy you a computer." This statement is made up of two.
INTRODUCTION TO LOGIC Jennifer Wang Fall 2009 Midterm Review Quiz Game.
1 CMSC 250 Discrete Structures CMSC 250 Lecture 1.
SSK3003 DISCRETE STRUCTURES
CS 381 DISCRETE STRUCTURES Gongjun Yan Aug 25, November 2015Introduction & Propositional Logic 1.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Propositional Logic. Propositions Any statement that is either True (T) or False (F) is a proposition Propositional variables: a variable that can assume.
Lecture 9 Conditional Statements CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine.
Section 1.2: Propositional Equivalences In the process of reasoning, we often replace a known statement with an equivalent statement that more closely.
Propositional Logic ITCS 2175 (Rosen Section 1.1, 1.2)
LOGIC.
Chapter 1: The Foundations: Logic and Proofs
TRUTH TABLES. Introduction The truth value of a statement is the classification as true or false which denoted by T or F. A truth table is a listing of.
What is Reasoning  Logical reasoning is the process of drawing conclusions from premises using rules of inference.  These inference rules are results.
Week 1 - Wednesday.  Course overview  Propositional logic  Truth tables  AND, OR, NOT  Logical equivalence.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
CSci 2011 Discrete Mathematics Lecture 4 CSci 2011.
Symbolic Logic The Following slide were written using materials from the Book: The Following slide were written using materials from the Book: Discrete.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
1 Georgia Tech, IIC, GVU, 2006 MAGIC Lab Rossignac Lecture 01: Boolean Logic Sections 1.1 and 1.2 Jarek Rossignac.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Logic and Truth Tables Winter 2012 COMP 1380 Discrete Structures I Computing Science Thompson Rivers University.
Discrete Math by R.S. Chang, Dept. CSIE, NDHU1 Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems.
Law of logic Lecture 4.
Module Code MA0003NI: Computing mathematics Lecture for Week Autumn.
Chapter 1 Logic and proofs
March 23 rd. Four Additional Rules of Inference  Constructive Dilemma (CD): (p  q) (r  s) p v r q v s.
2. The Logic of Compound Statements Summary
Discrete Mathematics Lecture 1 Logic of Compound Statements
Thinking Mathematically
Discrete Mathematics Logic of Compound Statements
COMP 1380 Discrete Structures I Thompson Rivers University
(CSC 102) Discrete Structures Lecture 2.
Fundamentals of Logic Sentence: A sentence is usually collection of words Proposition: A proposition is usually a declarative to which it is meaningful.
Propositional Calculus: Boolean Algebra and Simplification
Propositional Equivalences
Information Technology Department
CS201: Data Structures and Discrete Mathematics I
TRUTH TABLES continued.
The Method of Deduction
Foundations of Discrete Mathematics
COMP 1380 Discrete Structures I Thompson Rivers University
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

Introduction to Logic Logical Form: general rules All logical comparisons must be done with complete statements A statement is an expression that is true or false but not both If p or q then r If I arrive early or I work hard then I will be promoted Tautologies and Contradictions A Tautology (t) is a statement that is always true A Contradiction (c) is a statement that is always false

Symbolism The use of symbols ~ denotes negation (Not) If p = true, ~p = false ^ denotes conjunction (And) p^q = true iff (if and only if) p = true and q = true v denotes disjunction (Or) p vq = true iff p = true or q = true or p^q = true XOR: exclusive or P XOR q = (p vq) ^ ~(p^q), “p or q but not both” Order of operations ~ is first, ^ and v are co-equal P^q v r is ambiguous, so parenthesis need to be used: (p^q) v r ~p^q = (~p) ^ q

Connection to Mathematics Inequalities x ≤ a means x < a or x = a: (x < a) v (x = a) Same for x ≥ a a ≤ x ≤ b means (a ≤ x) ^ (x ≤ b) a (NOT)> x = a ≤ x Same for opposite a (NOT) ≤ x = a > x

Truth Tables Truth Tables Every expression has a truth table This table represents all the possible evaluations of the expression To build a truth table, construct a table with cells corresponding to every possible value of the variables and the resulting value of the expression

Equivalence Logical equivalence Showing non-equivalence Two statement forms are logically equivalent iff their truth tables are entirely the same Ex: p^q = q^p P = ~(~p) Showing non-equivalence Two methods: Use truth tables: this takes a long time Use an example statement like “0 < 1”

Common Logical Forms The following are known as axioms. Use these to simplify logical forms easily Commutative Laws: p^q = q^p , pvq = qvp Associative Laws: (p^q)^r = p^(q^r), (pvq)vr = pv(qvr) Distributive Laws: p^(qvr) = (p^q)v(p^r) p v(q^r) = (pvq)^(pvr) _ Identity Laws: p^t = p, pvc = p _ Negation Laws: pv~p = t, p^~p = c _ Double Negative Law: ~(~p) = p _ Idempotent Laws: p^p = p, pvp = p _ Universal Bound Laws: pvt = t, p^c = c _ De Morgan’s Laws: ~(p^q) = ~pv~q, ~(pvq) = ~p^~q _ Absorption Laws: p√(p^q) = p, p^(pvq) = p _ Negations of t and c: ~t = c, ~c = t

Conditional Statements If Structures Statement form: “if p then q” Noted: p→q, p is Hypothesis, q is conclusion Truth Values: p→q is false iff p = true and q = false In statement forms, “→” is evaluated last Division Into Cases: Show pvq→r=(p→r)^(q→r) Build truth table and evaluate each term separately Then fill in each side of the equation and compare the values

Equivalence of If An If statement can be translated into an Or p→q = ~pvq People often use this equivalence in everyday language. By De Morgan’s Law ~(p →q) = p^~q Caution: The negation of an If does not start with “if”

Transformations of If The Contrapositive of an If The contrapositive of p →q is ~q →~p A contrapositive is always logically equivalent to the original statement, so it can be used to solve equations A contrapositive is both the converse and the inverse of a statement The Converse and Inverse The Converse of p →q is q →p The Inverse of p →q is ~p →~q Neither is logically equivalent to the original statement If tomorrow is Easter then tomorrow is Sunday If tomorrow is Sunday then tomorrow is Easter?

Other Forms of If Only If “p only if q” means that p may occur only if q occurs Equivalent to: ~q →~p Equivalent to: p →q This does not mean “p if q”, which says that if q is true, p must be true

Valid and Invalid Arguments An argument is a sequence of statements and an argument form is a sequence of statement forms. A basic argument is: p→q p :q _ All statements except the final one are the premises _ The final is the conclusion _ This is read: “If p then q; p occurs, therefore q follows _ The argument is valid iff the conclusion is true when all of the premises are true

Testing an Argument Testing an argument for validity Identify the premises and conclusion Construct a truth table showing the possible truth values for each statement and statement form If a situation exists in which all of the premises are true but the conclusion is false, the argument form is invalid To simplify, fill in all rows where all premises are true

Common Argument Forms Modus Ponens: A famous argument form p→q: p:: q If p occurs then q occurs: p occurs:: therefore q occurs Modus Tollens p →q: ~q:: ~p If q doesn’t occur, p can’t occur A rule of inference is an argument form that is valid. There are infinitely many of them Modus Ponens and Tollens are rules of inference

More Common Forms Generalization Specialization Elimination p::pvq and q::pvq p occurs, therefore either p or q occurred Used to classify events into larger groups Specialization p^q::p and p^q::q Both p and q occur, therefore p occurred Used to put events into smaller groups Elimination Pvq: ~q::p and pvq:~p::q P or Q can occur: Q doesn’t:: p must you can choose one by ruling the other out Transitivity p →q:q →r::p →r If p then q: if q then r:: therefore if p then r Contradiction Rule: ~p →c::p If the negation of p leads to a contradiction, p must be true.

A Simple Proof Proof by Division Into Cases pvq: p →r:q →r:: r p or q will occur: if p then r: if q then r:: r occurs You may only know one thing or another. You must simply show that in either case, the result is the same

Iff Defined The Biconditional (iff) This is: “p if, and only if q” Denoted: p↔q and is coequal with → p iff q = (p→q) ^ (q→p) If p has the same truth value as q, p↔q is true

Fallacies An error in reasoning that results in an invalid argument Three kinds Using ambiguous premises (Statements that are not T/F) Begging the Question: assuming the conclusion without deriving it from the premises Jumping to a Conclusion: verifying the conclusion without adequate grounds

Common Errors Converse Error: Inverse Error p →q: q:: p – FALSE If p then q: q occurs:: p must occur – FALSE Inverse Error p →q: ~p:: ~q - FALSE If p then q: p doesn’t occur:: q can’t occur - FALSE