Theory of Computation CS3102 Spring 2014

Similar documents
Lecture 14 Rosser s Theorem, the length of proofs, Robinson s Arithmetic, and Church s theorem. Michael Beeson

Victoria Gitman and Thomas Johnstone. New York City College of Technology, CUNY

Gödel s Proof. Henrik Jeldtoft Jensen Dept. of Mathematics Imperial College. Kurt Gödel

GÖDEL S COMPLETENESS AND INCOMPLETENESS THEOREMS. Contents 1. Introduction Gödel s Completeness Theorem

CSCI3390-Lecture 6: An Undecidable Problem

Huan Long Shanghai Jiao Tong University

The Limit of Humanly Knowable Mathematical Truth

Gödel s Theorem: Limits of logic and computation

Introduction to Logic and Axiomatic Set Theory

Cantor and sets: La diagonale du fou

We introduce one more operation on sets, perhaps the most important

Hilbert s problems, Gödel, and the limits of computation

Logic in Computer Science. Frank Wolter

Gödel in class. Achim Feldmeier Brno - Oct 2010

The Search for the Perfect Language

INCOMPLETENESS I by Harvey M. Friedman Distinguished University Professor Mathematics, Philosophy, Computer Science Ohio State University Invitation

A Little History Incompleteness The First Theorem The Second Theorem Implications. Gödel s Theorem. Anders O.F. Hendrickson

Towards a Contemporary Ontology

Handbook of Logic and Proof Techniques for Computer Science

Axiomatic set theory. Chapter Why axiomatic set theory?

Philosophies of Mathematics. The Search for Foundations

NONSTANDARD MODELS AND KRIPKE S PROOF OF THE GÖDEL THEOREM

Set Theory and the Foundation of Mathematics. June 19, 2018

What are the recursion theoretic properties of a set of axioms? Understanding a paper by William Craig Armando B. Matos

Hilbert s problems, Gödel, and the limits of computation

Set Theory History. Martin Bunder. September 2015

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Lecture 11: Gödel s Second Incompleteness Theorem, and Tarski s Theorem

This section will take the very naive point of view that a set is a collection of objects, the collection being regarded as a single object.

The Legacy of Hilbert, Gödel, Gentzen and Turing

CITS2211 Discrete Structures (2017) Cardinality and Countability

The Two Faces of Infinity Dr. Bob Gardner Great Ideas in Science (BIOL 3018)

CHAPTER 11. Introduction to Intuitionistic Logic

Outside ZF - Set Cardinality, the Axiom of Choice, and the Continuum Hypothesis

Thomas Jech. The Pennsylvania State University. Until the 19th century the study of the innite was an exclusive domain of

Friendly Logics, Fall 2015, Lecture Notes 1

The Philosophy of Mathematics after Foundationalism

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

... The Sequel. a.k.a. Gödel's Girdle

Informal Statement Calculus

The roots of computability theory. September 5, 2016

Gödel s Incompleteness Theorem. Overview. Computability and Logic

Gödel s Incompleteness Theorems

Contents Propositional Logic: Proofs from Axioms and Inference Rules

Mathematical Logic. Introduction to Reasoning and Automated Reasoning. Hilbert-style Propositional Reasoning. Chiara Ghidini. FBK-IRST, Trento, Italy

Automata Theory. Definition. Computational Complexity Theory. Computability Theory

On some Metatheorems about FOL

185.A09 Advanced Mathematical Logic

The Different Sizes of Infinity

Church s undecidability result

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

Proseminar on Semantic Theory Fall 2013 Ling 720 Propositional Logic: Syntax and Natural Deduction 1

Creative Objectivism, a powerful alternative to Constructivism

Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death

Class 15: Hilbert and Gödel

Russell s logicism. Jeff Speaks. September 26, 2007

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 20. To Infinity And Beyond: Countability and Computability

Open access to the SEP is made possible by a world-wide funding initiative. Please Read How You Can Help Keep the Encyclopedia Free

Paradox Machines. Christian Skalka The University of Vermont

A Simple Proof of Gödel s Incompleteness Theorems

Gödel s First Incompleteness Theorem (excerpted from Gödel s Great Theorems) Selmer Bringsjord Intro to Logic May RPI Troy NY USA

Decidability: Church-Turing Thesis

the logic of provability

Understanding Computation

Gödel s Incompleteness Theorems

17.1 The Halting Problem

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Farewell (for now) to modular arithmetic...

One-to-one functions and onto functions

Logic. Propositional Logic: Syntax

To Infinity and Beyond

Large Numbers, Busy Beavers, Noncomputability and Incompleteness

CHAPTER 2 INTRODUCTION TO CLASSICAL PROPOSITIONAL LOGIC

23.1 Gödel Numberings and Diagonalization

Lecture 13: Foundations of Math and Kolmogorov Complexity

Propositional and Predicate Logic - XIII

Section 3.1: Direct Proof and Counterexample 1

Chapter 2: Introduction to Propositional Logic


Part II Logic and Set Theory

Notes on induction proofs and recursive definitions

The Arithmetical Hierarchy

Products, Relations and Functions

Cardinality of Sets. P. Danziger

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15

Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death

SOME TRANSFINITE INDUCTION DEDUCTIONS

Classical Propositional Logic

Chapter 4. Basic Set Theory. 4.1 The Language of Set Theory

With Question/Answer Animations. Chapter 2

Fuzzy Does Not Lie! Can BAŞKENT. 20 January 2006 Akçay, Göttingen, Amsterdam Student No:

Proof Theory and Subsystems of Second-Order Arithmetic

Lecture 2: What is Proof?

Today. Wrapup of Polynomials...and modular arithmetic. Coutability and Uncountability.

Marie Duží

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

From Hilbert s Program to a Logic Tool Box

An Introduction to Gödel s Theorems

An Intuitively Complete Analysis of Gödel s Incompleteness

Sets and Infinity. James Emery. Edited: 2/25/ Cardinal Numbers 1. 2 Ordinal Numbers 6. 3 The Peano Postulates for the Natural Numbers 7

Transcription:

Theory of Computation CS0 Spring 0 A tale of computers, math, problem solving, life, love and tragic death Nathan Brunelle Department of Computer Science University of Virginia www.cs.virginia.edu/~njbb/theory

Today: Infinities and Paradoxes Themes: Dovetailing Diagonalization Contradiction Cardinality Describability

Historical Perspectives Georg Cantor (-9) Created modern set theory Invented trans-finite arithmetic (highly controvertial at the time) Invented diagonalization argument First to use -to- correspondences with sets Proved some infinities bigger than others Showed an infinite hierarchy of infinities Formulated continuum hypothesis Cantor s theorem, Cantor set, Cantor dust, Cantor cube, Cantor space, Cantor s paradox Laid foundation for computer science theory Influenced Hilbert, Godel, Church, Turing

Problem: How can a new guest be accommodated in a full infinite hotel? ƒ(n) = n+

Problem: How can an infinity of new guests be accommodated in a full infinite hotel? ƒ(n) = n

Problem: How can an infinity of infinities of new guests be accommodated in a full infinite hotel? 0 9 one-to-one correspondence

Problem: Are there more integers than natural # s? N Z N Z So N < Z? Rearrangement: Establishes - correspondence ƒ: N Z N = Z Z N Z - - - - 0 9

Problem: Are there more rationals than natural # s? 9 0 9 0 N Q N Q So N < Q? Dovetailing: Establishes - correspondence ƒ: N Q N = Q

Problem: Are there more rationals than natural # s? 9 0 9 0 N Q N Q So N < Q? Dovetailing: Establishes - correspondence ƒ: N Q N = Q 9 0 9

Problem: Are there more rationals than natural # s? 9 0 9 0 N Q N Q So N < Q? Dovetailing: Establishes - correspondence ƒ: N Q N = Q

Problem: Why doesn t this dovetailing work? There s no last element on the first line! So the nd line is never reached! - function is not defined!

Dovetailing: ƒ:n Z Dovetailing Reloaded 0 - - - - - - - - -9 To show N = Q we can construct ƒ:n Q by sorting x/y by increasing key max( x, y ), while avoiding duplicates: max( x, y ) = 0 : {} max( x, y ) = : 0/, / max( x, y ) = : /, / max( x, y ) = : /, /, /, /... {finite new set at each step} Dovetailing can have many disguises! So can diagonalization! Z N - - - - 0 9

Theorem: Some numbers have no description. Proof: Sort descriptions of numbers by their length: The integer after 9 The ratio of the circumference of a circle to its diameter Conclusion: Only countably many descriptions of numbers! Some numbers are not on this list of descriptions! Some numbers are not finitely describable!

Problem : Why not just insert X into the table? Problem : What if X=0.999 but.000 is already in table? N R ƒ() =. 9 ƒ() =. 0 0 0 0 0 0 0 0 0 ƒ() =. ƒ() =. ƒ() = 0....... X = 0. 9 R Table with X inserted will have X still missing! Inserting X (or any number of X s) will not help! To enforce unique table values, we can avoid using 9 s and 0 s in X.

Corollary: Some real numbers do not have finite descriptions! N R ƒ() =. 9 ƒ() =. 0 0 0 0 0 0 0 0 0 ƒ() =. ƒ() =. ƒ() = 0....... X = 0. 9 R Table with X inserted will have X still missing! Inserting X (or any number of X s) will not help! To enforce unique table values, we can avoid using 9 s and 0 s in X.

Non-Existence Proofs Must cover all possible (usually infinite) scenarios! Examples / counter-examples are not convincing! Not symmetric to existence proofs! Ex: proof that you are a millionaire: Proof that you are not a millionaire? P NP

Historical Perspectives Bertrand Russell (-90) Philosopher, logician, mathematician, historian, social reformist, and pacifist Co-authored Principia Mathematica (90) Axiomatized mathematics and set theory Co-founded analytic philosophy Originated Russell s Paradox Activist: humanitarianism, pacifism, education, free trade, nuclear disarmament, birth control gender & racial equality, gay rights Profoundly transformed math & philosophy, mentored Wittgenstein, influenced Godel Laid foundation for computer science theory Won Nobel Prize in literature (90)

Russell s paradox was invented by Russell in 90 to show that naïve set theory is self-contradictory: Define: set of all sets that do not contain themselves S = { T T T } Q: does S contain itself as an element? S S S S contradiction! Similar paradoxes: A barber who shaves exactly those who do not shave themselves. This sentence is false. I am lying. Is the answer to this question no? The smallest positive integer not describable in twenty words or less.

Star Trek, 9, I, Mudd episode Captain James Kirk and Harry Mudd use a logical paradox to cause hostile android Norman to crash

Historical Perspectives Kurt Gödel (90-9) Logician, mathematician, and philosopher Proved completeness of predicate logic and Gödel s incompleteness theorem Proved consistency of axiom of choice and the continuum hypothesis Invented Gödel numbering and Gödel fuzzy logic Developed Gödel metric and paradoxical relativity solutions: Gödel spacetime / universe Made enormous impact on logic, mathematics, and science

Gödel s Incompleteness Theorem Frege & Russell: Mechanically verifying proofs Automatic theorem proving A set of axioms is: Sound: iff only true statements can be proved Complete: iff any statement or its negation can be proved Consistent: iff no statement and its negation can be proved Hilbert s program: find an axiom set for all of mathematics i.e., find a axiom set that is consistent and complete Gödel: any consistent axiomatic system is incomplete! (as long as it subsumes elementary arithmetic) i.e., any consistent axiomatic system must contain true but unprovable statements Mathematical surprise: truth and provability are not the same!

Gödel s Incompleteness Theorem That some axiomatic systems are incomplete is not surprising, since an important axiom may be missing (e.g., Euclidean geometry without the parallel postulate) However, that every consistent axiomatic system must be incomplete was an unexpected shock to mathematics! This undermined not only a particular system (e.g., logic), but axiomatic reasoning and human thinking itself! Truth = Provability Justice = Legality

Gödel s Incompleteness Theorem Gödel: consistency or completeness - pick one! Which is more important? Incomplete: not all true statements can be proved. But if useful theorems arise, the system is still useful. Inconsistent: some false statement can be proved. This can be catastrophic to the theory: E.g., supposed in an axiomatic system we proved that =. Then we can use this to prove that, e.g., all things are equal! Consider the set: {Bush, Pope} {Bush, Pope} = {Bush, Pope} = (since =) Bush = Pope QED All things become true: system is complete but useless!

Gödel s Incompleteness Theorem Moral: it is better to be consistent than complete, If you can not be both. It is better to be feared than loved, if you cannot be both. - Niccolo Machiavelli (9-), The Prince You can have it good, cheap, or fast pick any two. - Popular business adage

Gödel s Incompleteness Theorem Thm: any consistent axiomatic system is incomplete! Proof idea: Every formula is encoded uniquely as an integer Extend Gödel numbering to formula sequences (proofs) Construct a proof checking formula P(n,m) such that P(n,m) iff n encodes a proof of the formula encoded by m Construct a self-referential formula that asserts its own non-provability: I am not provable Show this formula is neither provable nor disprovable George Boolos (99) gave shorter proof based on formalizing Berry s paradox The set of true statements is not R.E.!

Gödel s Incompleteness Theorem Systems known to be complete and consistent: Propositional logic (Boolean algebra) Predicate calculus (first-order logic) [Gödel, 90] Sentential calculus [Bernays,9; Post, 9] Presburger arithmetic (also decidable) Systems known to be either inconsistent or incomplete: Peano arithmetic Primitive recursive arithmetic Zermelo Frankel set theory Second-order logic Q: Is our mathematics both consistent and complete? A: No [Gödel, 9] Q: Is our mathematics at least consistent? A: We don t know! But we sure hope so.

Gödel s Ontological Proof that God exists! Formalized Saint Anselm's ontological argument using modal logic: For more details, see: http://en.wikipedia.org/wiki/godel_ontological_proof

Continuum Hypothesis Posed by Cantor in Are there any infinities between the naturals and the reals? i s. t. ℵ 0 < ℵ i < ℵ? Consumed Cantor s life Possibly drove him mad Independent of the standard set theory axioms Equivalent to the Axiom of Choice

Axiom of Choice Given any set of sets, it is possible to construct a new set by picking exactly one item from each set. Obvious for case where the set is finite, tricky for infinite Non-constructive! Statement of possibility, bot procedure Is it true? Mathematics has no answer!

Banach-Tarski Paradox Non-intuitive side-effect of the Axiom of Choice Any solid sphere can be broken into a finite number of pieces and reassembled into spheres of the same size as the original

Problem: Show that is not rational Assume FSORC that is rational. a, b Z s. t. = a b We will say, without loss of generality, that a is b in simplest form, that is GCD a, b =. = a = a, thus b b a. Since a, it must be that a. However a a, so for = a b to hold, it must be that b b. This means that GCD a, b. Contradiction!