Lecture 22: Gödel’s Theorem CS200: Computer Science

Slides:



Advertisements
Similar presentations
Introduction to Proofs
Advertisements

Introduction to Theorem Proving
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 7: Beyond Classical Logic.
This is not the Title of our Seminar
HISTORY OF LOGIC BY JOHN NAGUIB. What is Logic? The science or study of how to evaluate arguments and reasoning. “Logic is new and necessary reasoning”
Math 333 – Euclidean and Non-Euclidean Geometry Dr. Hamblin.
Introduction to Algorithms A History Tour Definition of Algorithms Problem solving: Problem Statement Assumptions Processes Paradoxes.
The Axiomatic Method The 2004 Isuzu Axiom: Distinctive European Styling, now with Even More.
CS1001 Lecture 22. Overview Mechanizing Reasoning Mechanizing Reasoning G ö del ’ s Incompleteness Theorem G ö del ’ s Incompleteness Theorem.
Logic and Set Theory.
The Axiomatic Method. The axiomatic method I: Mathematical Proofs Why do we need to prove things? How do we resolve paradoxes?
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
Lecture 24: Gödel’s Proof CS150: Computer Science
Computability Thank you for staying close to me!! Learning and thinking More algorithms... computability.
Discrete Mathematics and its Applications
Mathematics and the Theory of Knowledge
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Class 36: Proofs about Unprovability David Evans University of Virginia cs1120.
Group 7 Nisarg Shah : Siddharth Dhakad : Chirag Sethi : Shiv Shankar : Dileep Kini : Self Referencing and.
David Evans CS200: Computer Science University of Virginia Computer Science Class 24: Gödel’s Theorem.
MATH 224 – Discrete Mathematics
Logic in Computer Science - Overview Sep 1, 2011 POSTECH 박성우.
MAT 333 Fall  As we discovered with the Pythagorean Theorem examples, we need a system of geometry to convince ourselves why theorems are true.
Cs3102: Theory of Computation Class 16: Uncomputable Numbers and Unrecognizable Languages Spring 2010 University of Virginia David Evans.
The Recursion Theorem Pages 217– ADVANCED TOPICS IN C O M P U T A B I L I T Y THEORY.
Institute for Experimental Physics University of Vienna Institute for Quantum Optics and Quantum Information Austrian Academy of Sciences Undecidability.
Hilbert’s Progamme Early in C20, the mathematician Hilbert led a programme to formalise maths; to reduce it to a clear set of axioms and show that all.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
David Evans CS200: Computer Science University of Virginia Computer Science Class 25: Computability Halting Problems Hockey.
Lecture 18. Unsolvability Before the 1930’s, mathematics was not like today. Then people believed that “everything true must be provable”. (More formally,
CS 345: Chapter 8 Noncomputability and Undecidability Or Sometimes You Can’t Get It Done At All.
Course Overview and Road Map Computability and Logic.
Tommy King October 14, 2014 Kurt GodeL.
Great Theoretical Ideas in Computer Science.
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
David Evans CS150: Computer Science University of Virginia Computer Science Lecture 25: Gödel and Computability Halting.
Thinking in Methodologies Class Notes. Gödel’s Theorem.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Computation Motivating questions: What does “computation” mean? What are the similarities and differences between computation in computers and in natural.
Logic and Mathematics The Art and Science of Mathematics.
David Evans CS200: Computer Science University of Virginia Computer Science Class 26: Halting Problem It is plain at any.
David Evans CS200: Computer Science University of Virginia Computer Science Class 19: Computability Halting Problems Hockey.
Self Referencing and Gödel's Incompleteness Theorem
Gödel's Legacy: The Limits Of Logics
Axiomatic Number Theory and Gödel’s Incompleteness Theorems
Mathematics and Certainty
Discrete Mathematics for Computer Science
CS154, Lecture 11: Self Reference, Foundation of Mathematics
Great Theoretical Ideas in Computer Science
Class 23: Gödel’s Theorem CS150: Computer Science
Lecture 2 Propositional Logic
Mathematics and Knowledge
CS 1813 – Discrete Mathematics
Logic Use mathematical deduction to derive new knowledge.
Semantic Paradoxes.
CS 416 Artificial Intelligence
First Order Logic Rosen Lecture 3: Sept 11, 12.
Metatheorems Computational Logic Lecture 8
Great Theoretical Ideas in Computer Science
Logical Entailment Computational Logic Lecture 3
Class 24: Computability Halting Problems Hockey Team Logo
Lecture 8 CS 1813 – Discrete Mathematics
CS154, Lecture 11: Self Reference, Foundation of Mathematics
Logic of Informatics Introduction.
Philosophy of Mathematics: a sneak peek
An example of the “axiomatic approach” from geometry
Lecture 23: Computability CS200: Computer Science
Presentation transcript:

David Evans http://www.cs.virginia.edu/~evans Lecture 22: Gödel’s Theorem CS200: Computer Science University of Virginia Computer Science David Evans http://www.cs.virginia.edu/~evans

Menu Mechanizing Reasoning Gödel’s Incompleteness Theorem Much of the course so far: Getting comfortable with recursion and first-class procedures Today: Getting uncomfortable with recursion and first-class procedures 18 March 2002 CS 200 Spring 2002

Mechanical Reasoning Aristotle (~350BC): 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. Godel is human. Godel is mortal. 18 March 2002 CS 200 Spring 2002

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 18 March 2002 CS 200 Spring 2002

Mechanical Reasoning Late 1800s – many mathematicians working on codifying “laws of reasoning” George Boole, Laws of Thought Augustus De Morgan Whitehead and Russell 18 March 2002 CS 200 Spring 2002

All true statements about number theory 18 March 2002 CS 200 Spring 2002

Perfect Axiomatic System Derives all true statements, and no false statements starting from a finite number of axioms and following mechanical inference rules. 18 March 2002 CS 200 Spring 2002

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. 18 March 2002 CS 200 Spring 2002

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 18 March 2002 CS 200 Spring 2002

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 18 March 2002 CS 200 Spring 2002

Russell’s Paradox Some sets are not members of themselves set of all Jeffersonians Some sets are members of themselves set of all things that are non-Jeffersonian Call the set of all sets that are not members of themselves S Is S a member of itself? 18 March 2002 CS 200 Spring 2002

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. 18 March 2002 CS 200 Spring 2002

Ban Self-Reference? Principia Mathematica attempted to resolve this paragraph 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 18 March 2002 CS 200 Spring 2002

Russell’s Resolution? Set ::= Setn Set0 ::= { x | x is an Object } Setn ::= { x | x is an Object or a Setn - 1 } S: Setn Is S a member of itself? No, it is a Setn so, it can’t be a member of a Setn 18 March 2002 CS 200 Spring 2002

Epimenides Paradox Epidenides (a Cretan): “All Cretans are liars.” Equivalently: “This statement is false.” Russell’s types can help with the set paradox, but not with this one. 18 March 2002 CS 200 Spring 2002

Gödel’s Solution All consistent axiomatic formulations of number theory include undecidable propositions. (GEB, p. 17) undecidable – cannot be proven either true or false inside the system. 18 March 2002 CS 200 Spring 2002

Quiz Break 18 March 2002 CS 200 Spring 2002

Kurt Gödel Born 1906 in Brno (now Czech Republic, then Austria-Hungary) 1931: publishes Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme (On Formally Undecidable Propositions of Principia Mathematica and Related Systems) 18 March 2002 CS 200 Spring 2002

Institute for Advanced Study, Princeton 1939: flees Vienna Institute for Advanced Study, Princeton Died in 1978 – convinced everything was poisoned and refused to eat 18 March 2002 CS 200 Spring 2002

Gödel’s Theorem In the Principia Mathematica system, there are statements that cannot be proven either true or false. 18 March 2002 CS 200 Spring 2002

Gödel’s Theorem In any interesting rigid system, there are statements that cannot be proven either true or false. 18 March 2002 CS 200 Spring 2002

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. 18 March 2002 CS 200 Spring 2002

Proof: Find such a statement 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 18 March 2002 CS 200 Spring 2002

Gödel’s Statement G is unprovable, but true! G: This statement of number theory does not have any proof in the system of Principia Mathematica. G is unprovable, but true! 18 March 2002 CS 200 Spring 2002

Gödel’s Proof If G were provable, then PM would be inconsistent. 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! 18 March 2002 CS 200 Spring 2002

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.”? 18 March 2002 CS 200 Spring 2002

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 18 March 2002 CS 200 Spring 2002

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 x y) = (and (valid-proof-steps x) (eq? (apply-proof x initial-axioms) y))) 18 March 2002 CS 200 Spring 2002

Can we express “This statement of number theory” Yes! That’s the point of the TNT Chapter in GEB We can write 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 18 March 2002 CS 200 Spring 2002

Gödel’s Proof If G were provable, then PM would be inconsistent. 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! 18 March 2002 CS 200 Spring 2002

Generalization All logical systems of any complexity are incomplete: there are statements that are true that cannot be proven within the system. 18 March 2002 CS 200 Spring 2002

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. How does this relate to complexity classes (P/NP)? 18 March 2002 CS 200 Spring 2002

Russell’s Doctrine “I wish to propose for the reader's favourable consideration a doctrine which may, I fear, appear wildly paradoxical and subversive. The doctrine in question is this: that it is undesirable to believe a proposition when there is no ground whatever for supposing it true.” (Russell, Introduction: On the Value of Scepticism, 1928) 18 March 2002 CS 200 Spring 2002

Charge Next class Does not being able to prove things mechanically have anything to do with not being able compute things? What is the equivalent to the Gödel sentence for computation? PS 6 If you weren’t here Friday, check the lecture slides online It requires you to write a lot of code yourself 18 March 2002 CS 200 Spring 2002