Activity 1-19: The Propositional Calculus www.carom-maths.co.uk.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Truth Tables How to Make and Use. Making a Truth Table To determine the number of rows other than the heading row. To determine the number of rows other.
Possible World Semantics for Modal Logic
Theory Of Automata By Dr. MM Alam
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
Proofs, Recursion and Analysis of Algorithms Mathematical Structures for Computer Science Chapter 2 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesProofs,
Logic Concepts Lecture Module 11.
Copyright © Cengage Learning. All rights reserved.
CS128 – Discrete Mathematics for Computer Science
CS5371 Theory of Computation
CSE115/ENGR160 Discrete Mathematics 02/07/12
CSRU 1100 Logic. Logic is concerned with determining: Is it True? Is it False?
From Chapter 4 Formal Specification using Z David Lightfoot
Copyright © Cengage Learning. All rights reserved.
Introduction Solving inequalities is similar to solving equations. To find the solution to an inequality, use methods similar to those used in solving.
Algebra Problems… Solutions
Introduction to Computer Science. A Quick Puzzle Well-Formed Formula  any formula that is structurally correct  may be meaningless Axiom  A statement.
Copyright © Cengage Learning. All rights reserved.
Unit 4: Mathematics Introduce the laws of Logarithms. Aims Objectives
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
College Algebra Fifth Edition James Stewart Lothar Redlin Saleem Watson.
MATH 224 – Discrete Mathematics
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Activity 2-17: Zeroes of a Recurrence Relation
F22H1 Logic and Proof Week 6 Reasoning. How can we show that this is a tautology (section 11.2): The hard way: “logical calculation” The “easy” way: “reasoning”
Activity 2-2: Mapping a set to itself
Algebra Form and Function by McCallum Connally Hughes-Hallett et al. Copyright 2010 by John Wiley & Sons. All rights reserved. 3.1 Solving Equations Section.
Activity 2-4: Tangles You need four people for this, A, B, C and D, and two ropes, starting like this:
Great Theoretical Ideas in Computer Science about AWESOME Some Generating Functions Probability Infinity MATH Some Formal Logic (which is really.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
Activity 1-7: The Overlapping Circles
Course Overview and Road Map Computability and Logic.
Algebra Problems… Solutions Algebra Problems… Solutions © 2007 Herbert I. Gross Set 10 By Herbert I. Gross and Richard A. Medeiros next.
1 CA 208 Logic PQ PQPQPQPQPQPQPQPQ
Activity 2-15: Elliptic curves
Great Theoretical Ideas in Computer Science.
CSE Winter 2008 Introduction to Program Verification January 31 proofs through simplification.
Godel’s proof Danny Brown. Outline of godel’s proof 1.Create a statement that says of itself that it is not provable 2.Show that this statement is provable.
Great Theoretical Ideas in Computer Science.
CS6133 Software Specification and Verification
Activity 2-5: What are you implying?
Activity 1-17: Infinity.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
Logic UNIT 1.
Computation Motivating questions: What does “computation” mean? What are the similarities and differences between computation in computers and in natural.
Copyright © Cengage Learning. All rights reserved. Sequences and Series.
1 Section 6.2 Propositional Calculus Propositional calculus is the language of propositions (statements that are true or false). We represent propositions.
Chapter 5. Section 5.1 Climbing an Infinite Ladder Suppose we have an infinite ladder: 1.We can reach the first rung of the ladder. 2.If we can reach.
Activity 2-11: Quadratic Reciprocity
1 Introduction to Abstract Mathematics Proof Methods , , ~, ,  Instructor: Hayk Melikya Purpose of Section:Most theorems in mathematics.
3.3 – The Conditional A conditional statement is a compound statement that uses the connective if…then. The conditional is written with an arrow, so “if.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Activity 1-12 : Multiple-free sets
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture–10: Soundness of Propositional Calculus 12 th August, 2010.
WARM UP Solve: 1. 3x – 5 = (3x -5) = x – 3 + 4x = (2x – 4) = 6.
Logic.
CHAPTER 3 Logic.
7/20/2018 EMR 17 Logical Reasoning Lecture 7.
How do I show that two compound propositions are logically equivalent?
Great Theoretical Ideas in Computer Science
CS201: Data Structures and Discrete Mathematics I
Theory of Computation Turing Machines.
Introduction Solving inequalities is similar to solving equations. To find the solution to an inequality, use methods similar to those used in solving.
Midterm Discussion.
Foundations of Discrete Mathematics
2-2 Logic Part 2 Truth Tables.
CS201: Data Structures and Discrete Mathematics I
CHAPTER 3 Logic.
Presentation transcript:

Activity 1-19: The Propositional Calculus

Consider the following Truth Table: If we take P and Q as statements, and then read the ‘upside down v’ as ‘and’, we have the proposition P and Q is true if and only if P is true and Q is true. This makes sense when compared to our daily usage of ‘and’. Task: draw up possible Truth Tables for P or Q, P implies Q, P if and only if Q, and discuss these. Here is the table for ~, which could stand for ‘not’.

P or Q is straightforward. P if and only if Q is also clear. P implies Q, however, is a little tricky - in fact, here we pick the following Truth Table; This looks counter-intuitive. The top half of the table is okay, but how can something false imply something true? Maybe it matters not that this sign  does not correspond exactly with our everyday English usage.

We can begin to string these propositions together using connectives like this: First, we fill in the possible truth values for P and Q (1, 3, 6, and 9). Then we fill in the truth values for the connectives 2, 5 and 8, followed by the truth values for 7 (looking at columns 5 and 8) and finally the truth values for 4 (looking at the values in 2 and 7.) You notice that here the final calculation (4) gives a truth value of ‘true’, whatever the truth values for P and Q. Something that is always true like this we call a ‘tautology’.

Task: work out the Truth Table for ((P  Q)^(Q  P))  (P  Q) This too is a tautology, which gives us more confidence in our choice of Truth Table for the symbol . Of course, not all Truth Tables represent tautologies: for example -

So let’s recap on what we have so far. 1. We have variables (that could represent statements) P, Q, R etc. that are Type-1 or Type-2 (True or False). 2. We have some connectives to go with these. From now on we will restrict ourselves to ~ (which could stand for NOT), v (which could stand for OR) ^ (which could stand for AND) and  (which could stand for IMPLIES). Notice that the idea here is to become more abstract; the everyday meanings of these signs are heading into the background.

3. We can also add some rules for forming legitimate formulas, using the bracket signs, ‘(‘ and ‘)’. ((P^Q)  R)  (P  Q) obeys the grammar, ((^PQ)  (R)  (PQ  ) does not. We can say that if P and Q are legitimate formulas, then ~P, P ^ Q, P v Q and P  Q are all legitimate formulas too. (We may need to add some brackets.)

4. We can now add two Transformation Rules (rules of inference). a)The Rule of Substitution: given a legitimate formula containing P, we can replace every occurrence of the formula P with any other legitimate formula, and our formula remains legitimate. So in ((P^Q)  R)  (P  Q) we can replace P with (R  Q) to get (((R  Q) ^Q)  R)  ((R  Q)  Q).

We are slowly building a logical structure here, to which we can now add some axioms. Our second Rule of Transformation is b) The Rule of Detachment: given P and P  Q, then we also have Q. 5. Our axioms are: a)(P v P)  P b)P  (P v Q) c)(P v Q)  (Q v P) d)(P  Q)  ((R v P)  (R v Q)) It is easy to see how we could use our Rules of Transformation with our axioms to infer further legitimate formulae – these are then called ‘theorems’.

Now let’s consider whether or not this logical system is CONSISTENT; is it possible to deduce two contradictory theorems P and ~P starting from these axioms? How to start on this? Well, it is a theorem that P  (~P  Q). Task: can you show that this is a theorem using the rules you have been given? What are the consequences of this? If P and ~P are both theorems, then Q is a theorem, and so any legitimate formula in the system is a theorem.

Our strategy from here goes like this: 1. find a property that is common to all four axioms. So if the system is consistent, every legitimate formula is a theorem; or putting it the other way, if we can find a legitimate formula that is not a theorem, then the system is consistent. 2. Show that this property is hereditary under our Transformation Rules, so every theorem has it. 3. Find a legitimate formula that does NOT have the property.

What could this property be? Well, we can return to the idea of a TAUTOLOGY. It is easy to check that all the axioms are tautologies, Using our Truth Table method. It can be shown that the Transformation Rules preserve the property of being a tautology. We know that there are legitimate formulae that are not tautologies; we showed this earlier for ((P  Q)^Q)  P. And so we have proved that our system is consistent.

It can be shown the answer is ‘Yes’. So here we have a simple logical system where we can prove relatively straightforwardly both completeness and consistency. What happens if we make our system more complicated? Suppose we try to add enough in the way of axioms and rules so that our system includes arithmetic – can we still prove consistency and completeness then? You might ask if our system is also complete; that is, can every possible tautology be proved from it? In 1930, the mathematician Godel proved an amazing result...

Kurt Godel, Austrian-American, ( ) Any system complicated enough to include arithmetic cannot be both consistent and complete. Or putting this another way; in any consistent system of mathematics complicated enough to include arithmetic, there will always be true statements that cannot be proved. This was a shock at the time (and still is...)

With thanks to: Nagle and Newman for their book Godel’s Proof. Carom is written by Jonny Griffiths,