Docsity

Gödel's Theorem: Incompleteness in Computer Science - Prof. Grigori R. Humphreys, Study notes of Computer Science

Toggle sidebar
bg1
Greg Humphreys
http://www.cs.virginia.edu/~humper
CS150: Computer Science
University of Virginia
Computer Science
Class 22: Gödel’s Theorem
CS150 March 14, 2006: Lecture 22: Incompleteness 2
Menu
• PS5
• PS6
• Introducing Computability
• Mechanized Reasoning
• Gödel’s Theorem
CS150 March 14, 2006: Lecture 22: Incompleteness 3
PS5
How are commercial databases different
from what you implemented for PS5?
UVa’s Integrated Systems Project to
convert all University information
systems to use an Oracle database was
originally budgeted for $58.2 Million
(starting in 1999). Actual cost is likely
to be $100 Million.
http://www.virginia.edu/isp/
CS150 March 14, 2006: Lecture 22: Incompleteness 4
Real Databases
• Atomic Transactions: a transaction may involve many
modifications to database tables, but the changes should only
happen if the whole transaction succeeds (e.g., don’t charge the
credit card unless the order is sent to the shipping dept)
• Security: limit read/write access to tables,
entries and fields
• Storage: need to efficiently store data on disk,
provide backup mechanisms
• Scale: to support really big data tables,
real databases do lots of clever things
CS150 March 14, 2006: Lecture 22: Incompleteness 5
How big are big databases?
•Microsoft TerraServer
– Claimed biggest in 1998
– Aerial photos of entire US (1 meter resolution)
CS150 March 14, 2006: Lecture 22: Incompleteness
You are here
?
pf3
pf4
pf5
pf8

Partial preview of the text

Download Gödel's Theorem: Incompleteness in Computer Science - Prof. Grigori R. Humphreys and more Study notes Computer Science in PDF only on Docsity!

Greg Humphreys http://www.cs.virginia.edu/~humper CS150: Computer Science University of Virginia Computer Science

Class 22: Gödel’s Theorem

CS150 March 14, 2006: Lecture 22: Incompleteness 2

Menu

  • PS
  • PS
  • Introducing Computability
  • Mechanized Reasoning
  • Gödel’s Theorem CS150 March 14, 2006: Lecture 22: Incompleteness (^3)

PS

How are commercial databases different

from what you implemented for PS5?

UVa’s Integrated Systems Project to convert all University information systems to use an Oracle database was originally budgeted for $58.2 Million (starting in 1999). Actual cost is likely to be $100 Million. http://www.virginia.edu/isp/ CS150 March 14, 2006: Lecture 22: Incompleteness (^4)

Real Databases

  • Atomic Transactions: a transaction may involve many modifications to database tables, but the changes should only happen if the whole transaction succeeds (e.g., don’t charge the credit card unless the order is sent to the shipping dept)
  • Security: limit read/write access to tables, entries and fields
  • Storage: need to efficiently store data on disk, provide backup mechanisms
  • Scale: to support really big data tables,

real databases do lots of clever things

How big are big databases?

  • Microsoft TerraServer
    • Claimed biggest in 1998
    • Aerial photos of entire US (1 meter resolution) You are here

CS150 March 14, 2006: Lecture 22: Incompleteness 7 Big Databases

  • Microsoft TerraServer
    • 3.3 Terabytes (claimed biggest in 1998)
    • 1 Terabyte = 240 Bytes ~ 1 Trillion Bytes
  • Google Maps
    • Not so big? (but offers programming interface!)
  • Wal-Mart
    • 285 Terabytes (2003)
  • Stanford Linear Accelerator (BaBar)
    • 500 Terabytes (30 KB per particle collision) CS150 March 14, 2006: Lecture 22: Incompleteness 8 How much work?
  • table-select is !( n ) where n is the number

of entries in the table

  • Is this true?
  • Would your table-select work for Wal-Mart?
  • If 1M entry table takes 1s, how long would it take Wal-Mart to select from 285TB ~ 2 Trillion Entries? 2 000 000s ~ 23 days How do expensive databases perform so much faster? CS150 March 14, 2006: Lecture 22: Incompleteness (^9) PS Make an adventure game programming with objects Many objects in our game have similar properties and behaviors, so we use inheritance. CS150 March 14, 2006: Lecture 22: Incompleteness (^10) PS6 Classes object physical-object (^) place mobile-object thing person student police-officer make-class is the procedure for constructing objects in the class class student inherits from person which inherits from mobile-object which inherits from physical-object which inherits from object. CS150 March 14, 2006: Lecture 22: Incompleteness 11 PS6 Classes object physical-object (^) place mobile-object thing person student police-officer (make-place name) evaluates to an object that is an instance of the class place. Cabal Hall Recursa Alyssa P. Hacker CS150 March 14, 2006: Lecture 22: Incompleteness 12 Are there class hierarchies like this in the “real world” or just in fictional worlds like Charlottansville?

CS150 March 14, 2006: Lecture 22: Incompleteness 19 Mechanical Reasoning

  • Aristotle (~350BC): The Organon
    • We can explain logical deduction with rules of inference (syllogisms) Every B is A C is B ! C is A Every human is mortal. Gödel is human. Gödel is mortal. CS150 March 14, 2006: Lecture 22: Incompleteness 20 More Mechanical Reasoning
  • Euclid (~300BC): Elements
  • We can reduce geometry to a few axioms and derive the rest by following rules
  • Newton (1687): Philosophiæ Naturalis

Principia Mathematica

  • We can reduce the motion of objects (including planets) to following axioms (laws) mechanically CS150 March 14, 2006: Lecture 22: Incompleteness (^21) Mechanical Reasoning
  • Late 1800s – many mathematicians

working on codifying “laws of reasoning”

  • George Boole, Laws of Thought
  • Augustus De Morgan
  • Whitehead and Russell CS150 March 14, 2006: Lecture 22: Incompleteness (^22) All true statements about integers Perfect Axiomatic System

Derives all true

statements, and no false

statements starting from a

finite number of axioms

and following mechanical

inference rules.

Incomplete Axiomatic System

Derives

some, but not all true

statements, and no false

statements starting from a

finite number of axioms

and following mechanical

inference rules.

incomplete

CS150 March 14, 2006: Lecture 22: Incompleteness 25 Inconsistent Axiomatic System

Derives

all true

statements, and some false

statements starting from a

finite number of axioms

and following mechanical

inference rules. some false

statements CS150 March 14, 2006: Lecture 22: Incompleteness 26 Principia Mathematica

  • Whitehead and Russell (1910– 1913)
    • Three volumes, 2000 pages
  • Attempted to axiomatize mathematical

reasoning

  • Define mathematical entities (like numbers) using logic
  • Derive mathematical “truths” by following mechanical rules of inference
  • Claimed to be complete and consistent
    • All true theorems could be derived
    • No falsehoods could be derived CS150 March 14, 2006: Lecture 22: Incompleteness (^27) Russell’s Paradox
  • Some sets are not members of themselves
  • set of all people in this room
  • Some sets are members of themselves
  • set of all things that are not in this room
  • S = the set of all sets that are not

members of themselves

  • Is S a member of itself? CS150 March 14, 2006: Lecture 22: Incompleteness (^28) Russell’s Paradox
  • S = set of all sets that are not members of

themselves

  • Is S a member of itself?
    • If S is an element of S, then S is a member of itself and should not be in S.
    • If S is not an element of S, then S is not a member of itself, and should be in S. Well that’s not good...
  • Principia Mathematica attempted to

resolve this problem by banning self-

reference

  • Every set has a type
    • The lowest type of set can contain only “objects”, not “sets”
    • The next type of set can contain objects and sets of objects, but not sets of sets Russell’s Resolution?

Set ::= Set n

Set 0 ::= { x | x is an Object }

Set n ::= { x | x is an Object or a Setn - 1 }

S : Set n

Is S a member of itself?

No, it is a Set n so, it can’t be a member of a Set n

CS150 March 14, 2006: Lecture 22: Incompleteness 37 Gödel’s Theorem All logical systems of any complexity are incomplete: there are statements that are true that cannot be proven within the system. CS150 March 14, 2006: Lecture 22: Incompleteness 38 Proof – General Idea

  • Theorem: In the Principia Mathematica system, there are statements that cannot be proven either true or false.
  • Proof: Find such a statement CS150 March 14, 2006: Lecture 22: Incompleteness (^39) Gödel’s Statement G: This statement of number theory does not have any proof in the system of Principia Mathematica. G is unprovable, but true! CS150 March 14, 2006: Lecture 22: Incompleteness (^40) Gödel’s Proof G: This statement of number theory does not have any proof in the system of PM.

If G were provable, then PM would be

inconsistent.

If G is unprovable, then PM would be

incomplete.

PM cannot be complete and consistent!

Finishing The Proof

  • Turn G into a statement in the Principia Mathematica system
  • Is PM powerful enough to express “This statement of number theory does not have any proof in the system of PM.”? How to express “does not have any proof in the system of PM”
  • What does it mean to have a proof of S in PM?
  • There is a sequence of steps that follow the inference rules that starts with the initial axioms and ends with S
  • What does it mean to not have any proof of S

in PM?

  • There is no sequence of steps that follow the inference rules that starts with the initial axioms and ends with S

CS150 March 14, 2006: Lecture 22: Incompleteness 43 Can PM express unprovability?

  • There is no sequence of steps that follow

the inference rules that starts with the

initial axioms and ends with S

  • Yes: (using Scheme-ified Gödel notation) (unprovable? x) = (not (provable? x)) (provable? x) = (exists (y) (proves y x)) (proves y x) = (and (valid-proof-steps y) (eq? (apply-proof y initial-axioms) x))) CS150 March 14, 2006: Lecture 22: Incompleteness 44 Can we express “This statement of number theory”
  • Yes!
  • That’s the point of the TNT Chapter in GEB
  • We can turn every statement into a number, so we can turn “This statement of number theory does not have any proof in the system of PM” into a number CS150 March 14, 2006: Lecture 22: Incompleteness (^45) Gödel’s Proof G: This statement of number theory does not have any proof in the system of PM.

If G were provable, then PM would be

inconsistent.

If G is unprovable, then PM would be

incomplete.

PM cannot be complete and consistent!

CS150 March 14, 2006: Lecture 22: Incompleteness (^46) Generalization All logical systems of any complexity are incomplete. Truth is stronger than provability Practical Implications

  • Mathematicians will never be completely

replaced by computers

  • There are mathematical truths that cannot be determined mechanically
  • We can build a computer that will prove only true theorems about number theory, but if it cannot prove something we do not know that that is not a true theorem. Charge
  • Thoughts for Friday:
  • How are mathematical proofs related to computation?
  • What is the equivalent to the Gödel sentence for computation?
  • Thoughts for next week:
  • How would you prove that a problem cannot be solved by any procedure?