activity 1-19: the propositional calculus

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

Upload: howard-wilkins

Post on 05-Jan-2016

217 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Activity 1-19: The Propositional Calculus

Activity 1-19:The Propositional Calculus

www.carom-maths.co.uk

Page 2: 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’.

Page 3: Activity 1-19: The Propositional Calculus

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.

Page 4: Activity 1-19: The Propositional Calculus

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’.

Page 5: Activity 1-19: The Propositional Calculus

Task: work out the Truth Table for ((PQ)^(Q P)) (PQ)

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 -

Page 6: Activity 1-19: The Propositional Calculus

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.

Page 7: Activity 1-19: The Propositional Calculus

3. We can also add some rules for forming legitimate formulas, using the bracket signs,

‘(‘ and ‘)’.

((P^Q)R)(PQ) 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.)

Page 8: Activity 1-19: The Propositional Calculus

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)(PQ) we can replace P with (R Q) to get

(((R Q) ^Q)R)((R Q)Q).

Page 9: Activity 1-19: The Propositional Calculus

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 PQ, then we also have Q.

5. Our axioms are:a)(P v P) Pb)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 Transformationwith our axioms to infer further legitimate formulae –

these are then called ‘theorems’.

Page 10: Activity 1-19: The Propositional Calculus

Now let’s consider whether or not this logical systemis 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(~PQ).

Task: can you show that this is a theoremusing 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.

Page 11: Activity 1-19: The Propositional Calculus

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.

Page 12: Activity 1-19: The Propositional Calculus

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 ((PQ)^Q) P.

And so we have proved that our system is consistent.

Page 13: Activity 1-19: The Propositional Calculus

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

Page 14: Activity 1-19: The Propositional Calculus

Kurt Godel,Austrian-American,

(1906-78)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...)

Page 15: Activity 1-19: The Propositional Calculus

With thanks to:Nagle and Newman for their book Godel’s Proof.

Carom is written by Jonny Griffiths, [email protected]