Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A,...

7
Extra slides for Chapter 3: Adequacy of connectiv es Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; [email protected]

Transcript of Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A,...

Page 1: Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; cling@csd.uwo.ca.

Extra slides for Chapter 3: Adequacy of connectives

Based on Prof. Lila Kari’s slides

For CS2209A, 2009

By Dr. Charles Ling; [email protected]

Page 2: Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; cling@csd.uwo.ca.

Adequate set of connectivesA remarkable property of the standard set of connectives is the fact that for every table

there is a formula (depending on the variables P, Q,... and using only the standard connectives) that has exactly this truth table.(There is Boolean function f(P, Q, …) with exactly this truth table).Any set of connectives with the capability to express all truth tables is said to be adequate. As Post (1921) observed, the standard connectives are adequate.We can show that a set S of connectives is adequate if we canexpress all the standard connectives in terms of S.

(~, , , , )

Page 3: Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; cling@csd.uwo.ca.

Adequate set of connectivesFormulas and are tautologically equivalent.Then is definable in terms of (or is reducible to or can beexpressed in terms of) and . Similarly, is definable in terms of and because is tautologically equivalent to Theorem. is an adequate set of connectives.Proof.For any formulas A,B and Corollary are adequate.

Proof. Exercise.

(A B) (~ A B)

~ (A B)

(~ A B)

{~, , }

(A B) (~ A B)

(A B) ((A B) (B A)) {~, },{~, }and{~, }

~

Page 4: Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; cling@csd.uwo.ca.

Adequate set of connectives

Schroder showed in 1880 that

each of the standard connectives

is definable in terms of a single

binary connective , where the

truth table associated with is

~ P (P P)

(P Q) (P P) (Q Q)

(P Q) (P Q) (P Q)

(P Q) ((P P) Q) ((P P) Q)

(P Q) ((P P) Q) ((Q P) P)

We can express in terms of the standard connectives by , and also the standard connectives in terms of by

Thus it follows that a single connective is adequate.Consequently, to test a given S for being adequate it sufficesto test if can be expressed by S.

(P Q) (~ P ~ Q)

Page 5: Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; cling@csd.uwo.ca.

Adequate set of connectives

In 1913 Sheer showed that the Sheer stroke | with

associated truth table

is also a single binary connective in terms of which the

standard connectives can be expressed.

Page 6: Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; cling@csd.uwo.ca.

Proving inadequacyHow do we show that a given set of connectives is not adequate?Show that some standard connective cannot be expressed by S.

Example. The set is not adequate.Proof. To see this, note that a formula depending on only one variable and which uses only the connective has the property that its truth value for a value assignment that makes P= 0 is always 0.

In order to define the negation in terms of , there should exist a formula f depending on the variable P and using only the connectivesuch that

However, for a value assignment such that , we have and therefore , which shows that and F cannot be tautologically equivalent.

S { }

~ P F

(~ P) 1 (P) 0 (F) 0

~ P

~ P

Page 7: Extra slides for Chapter 3: Adequacy of connectives Based on Prof. Lila Kari’s slides For CS2209A, 2009 By Dr. Charles Ling; cling@csd.uwo.ca.

If-then-elseLet us use the symbol for the ternary connective whose truth table is given by

It is easy to see that for any value assignment we have

This is the familiar if-then-else connective from computer science, namely

If P then Q else R

(S(P,Q,R)) (Q) if (P) 1 and (R) if (P) 0