Top Banner
Proving Incompleteness {NAND} is a complete system Is {XOR,0} a complete system?
38

Proving Incompleteness

Jan 02, 2016

Download

Documents

Ezra James

Proving Incompleteness. {NAND} is a complete system Is {XOR,0} a complete system?. Intuition. X’Y + Y’X. Intuition. xor(X,Y) = xor(Y,X). Intuition. xor(X,Y) = xor(Y,X) xor(x,x) = 0 xor(x,0) = x. A single layer circuit that includes {XOR,0} cannot produce the gate not(X). - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Proving Incompleteness

Proving Incompleteness

{NAND} is a complete system

Is {XOR,0} a complete system?

Page 2: Proving Incompleteness

Intuition

X Y XOR(X,Y)

0 0 0

0 1 1

1 0 1

1 1 0

X’Y + Y’X

Page 3: Proving Incompleteness

Intuition

X Y XOR(X,Y)

0 0 0

0 1 1

1 0 1

1 1 0

xor(X,Y) = xor(Y,X)

Page 4: Proving Incompleteness

Intuition

• xor(X,Y) = xor(Y,X)

• xor(x,x) = 0• xor(x,0) = x

X Y XOR(X,Y)

0 0 0

0 1 1

1 0 1

1 1 0

A single layer circuit that includes {XOR,0} cannot produce the gate not(X)

Page 5: Proving Incompleteness

Proof for n-layered circuit

X

Something is going on Here

A circuit with minimal number of gates

0X

Page 6: Proving Incompleteness

Proof for n-layered circuitCase A: the other input is 0

X

Something is going on Here

A circuit with minimal number of gates

0

Page 7: Proving Incompleteness

Proof for n-layered circuitCase A: the other input is 0

X

Something is going on Here

A circuit with minimal number of gates

0

X

X

Contradiction to minimality!!!

Page 8: Proving Incompleteness

Proof for n-layered circuitCase B: the other input is X

X

Something is going on Here

A circuit with minimal number of gates

X

0

0

Contradiction to minimality!!!

Page 9: Proving Incompleteness

Proof for n-layered circuit (II)Proof in induction For circuit with 1 layer we already

prooved.

Induction assumption: There is not circuit with n layers that can

produce not with xor and 0.

Proof that there is no circuit with n+1 layers that implements not with xor.

Page 10: Proving Incompleteness

Proof in induction for n-layered circuit

X

Something is going on Here

A circuit with n+1 layer

0X

Page 11: Proving Incompleteness

Proof in induction for n-layered circuit

Something is going on Here

A circuit with n+1 layer

0X

Change to circuit with n layers using similar consderations

A proof using the induction assumption.

Page 12: Proving Incompleteness

Minimizing to sum of products and product of sums

X Y Z F

0 0 0 0

0 0 1 1

0 1 0 1

0 1 1 0

1 0 0 1

1 0 1 0

1 1 0 0

1 1 1 1

How to write in minimal form?

Page 13: Proving Incompleteness

When do we minimize?

ABC + ABC’ = AB(C+C’) = AB

When there are two terms that differ in only one literal!!

Page 14: Proving Incompleteness

Minimizing to sum of products

X Y Z F

0 0 0 0

0 0 1 1

0 1 0 1

0 1 1 0

1 0 0 1

1 0 1 0

1 1 0 0

1 1 1 1

= X’Y’Z + X’YZ’ + XY’Z’ + XYZ

Nothing to minimize!

Page 15: Proving Incompleteness

Minimizing to product of sums

X Y Z F

0 0 0 0

0 0 1 1

0 1 0 1

0 1 1 0

1 0 0 1

1 0 1 0

1 1 0 0

1 1 1 1

F’ = X’Y’Z’ + X’YZ+XY’Z + XYZ’

Nothing to minimize!

Page 16: Proving Incompleteness

The table Method:Example

Minimize :

F = w’x’y’z’ + w’x’y’z + w’x’yz’ + wx’y’z’ +

wx’yz’ + wx’yz + wxyz’ + wxyz

Very difficult!!

Page 17: Proving Incompleteness

The table method for minimizing

ABC + ABC’ ABC + AB’C’

Page 18: Proving Incompleteness

The table method for minimizing

ABC + ABC’

111 110

ABC + AB’C’

11 1 1 0 0

Page 19: Proving Incompleteness

The table method for minimizing

ABC + ABC’

111 110

7 6 - = 1

AB C + AB’C’

11 1 1 0 0

7 4 - = 3

Page 20: Proving Incompleteness

The table method for minimizing

ABC + ABC’

111 110

7 620

- = 1

AB C + AB’C’

11 1 1 0 0

7 4 - = 3

We can minimize only if the difference is a power of 2

Page 21: Proving Incompleteness

The table method for minimizing

ABC + ABC’

111 110

7 620

- = 1

AB C + AB’C’

11 1 1 0 0

7 4 - = 3

We can minimize only if the difference is a power of 2

IS IT SUFFICIENT? No

Page 22: Proving Incompleteness

The table method for minimizing

AB’C + A’BC

101 0 11

5 321

- = 2

Page 23: Proving Incompleteness

The table method for minimizing

AB’C + A’BC

101 0 11

5 322

- = 2

We can minimize only if the difference is a power of 2 and the number of 1 is different!

Page 24: Proving Incompleteness

The table Method:Example

Minimize :

F = w’x’y’z’ + w’x’y’z + w’x’yz’ + wx’y’z’ +

wx’yz’ + wx’yz + wxyz’ + wxyz = (0,1,2,8,10,11,14,15)

Page 25: Proving Incompleteness

The table method

w x y z

0 0 0 0 0

1 0 0 0 1

2 0 0 1 0

8 1 0 0 0

10 1 0 1 0

11 1 0 1 1

14 1 1 1 0

15 1 1 1 1

Page 26: Proving Incompleteness

The table method

w x y z

0 0 0 0 0

1 0 0 0 1

2 0 0 1 0

8 1 0 0 0

10 1 0 1 0

11 1 0 1 1

14 1 1 1 0

15 1 1 1 1

w x y z

0,1 0 0 0 -

0,2 0 0 – 0

0,8 - 0 0 0

2,10 - 0 1 0

8,10 1 0 - 0

10,11 1 0 1 -

10,14 1 - 1 0

11,15 1 - 1 1

14,15 1 1 1 -

Page 27: Proving Incompleteness

The table methodw x y z

0,1 0 0 0 -

0,2 0 0 – 0

0,8 - 0 0 0

2,10 - 0 1 0

8,10 1 0 - 0

10,11

1 0 1 -

10,14

1 - 1 0

11,15

1 - 1 1

14,15

1 1 1 -

w x y z

0,2,8,10 - 0 – 0

0,8,2,10 - 0 - 0

10,11,14,15

1 - 1 -

10,14,11,15

1 - 1 -

Page 28: Proving Incompleteness

The table method

The minimal term:

F = w’x’y’ + x’z’ + wy

Page 29: Proving Incompleteness

The table method - faster

0

1

2

8

10

11

14

15

0,1 (1)

0,2 (2)

0,8 (8)

2,10 (8)

8,10 (2)

10,11 (1)

10,14 (4)

11,15 (4)

14,15 (1)

0,2,8,10 (2,8)

0,8,2,10 (2,8)

10,11,14,15 (1,4)

10,14,11,15 (1,4)

Page 30: Proving Incompleteness

Choosing Minimal term

F= (1,4,6,7,8,9,10,11,15)

Page 31: Proving Incompleteness

The minimal terms

0000 1

0100 4

1000 8

0110 6

1001 9

1010 10

0111 7

1011 11

1111 15

1,9 (8)

4,6 (2)

8,9 (1)

8,10 (2)

6,7(1)

9,11 (2)

10,11(1)

7,15 (8)

11,15 (4)

8,9,10,11 (1,2)

8,9,10,11 (1,2)

Page 32: Proving Incompleteness

The minimal function

F = x’y’z + w’xz’ + w’xy + xyz + wyz + wx’

Is it really the minimum ? No

Page 33: Proving Incompleteness

The minimal function

F = x’y’z + w’xz’ + w’xy + xyz + wyz + wx’

Is it really the minimum ? No

All the three account for Minterms 7,15 – maybe we can dispose one of them?

Page 34: Proving Incompleteness

Essential Primary Element1 4 6 7 8 9 10 11 15

x’y’z 1,9 X Xw’xz’ 4,6 X Xw’xy 6,7 X XXyz 7,15 X XWyz 11,1

5 X XWx’ 8,9,

10,11

X X X X

Page 35: Proving Incompleteness

Essential Primary Element1 4 6 7 8 9 10 11 15

x’y’z 1,9 X Xw’xz’ 4,6 X Xw’xy 6,7 X XXyz 7,15 X XWyz 11,1

5 X XWx’ 8,9,

10,11

X X X X

Page 36: Proving Incompleteness

Essential Primary Element1 4 6 7 8 9 10 11 15

x’y’z 1,9 X Xw’xz’ 4,6 X Xw’xy 6,7 X XXyz 7,15 X XWyz 11,1

5 X XWx’ 8,9,

10,11

X X X X

V V

Page 37: Proving Incompleteness

Choosing the other Essential Primary Element

1 4 6 7 8 9 10 11 15x’y’z 1,9 X Xw’xz’ 4,6 X Xw’xy 6,7 X XXyz 7,15 X XWyz 11,1

5 X XWx’ 8,9,

10,11

X X X X

V V V V V V V

Page 38: Proving Incompleteness

The minimal function is

F = x’y’z + w’xz’ + wx’ + xyz