Cantor and sets: La diagonale du fou

Similar documents
Huan Long Shanghai Jiao Tong University

1.4 Cardinality. Tom Lewis. Fall Term Tom Lewis () 1.4 Cardinality Fall Term / 9

MATH 3300 Test 1. Name: Student Id:

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

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

INFINITY: CARDINAL NUMBERS

CSCI3390-Lecture 6: An Undecidable Problem

Mathematics 220 Workshop Cardinality. Some harder problems on cardinality.

Warm-Up Problem. Please fill out your Teaching Evaluation Survey! Please comment on the warm-up problems if you haven t filled in your survey yet.

ECS 120 Lesson 18 Decidable Problems, the Halting Problem

CITS2211 Discrete Structures (2017) Cardinality and Countability

SETS AND FUNCTIONS JOSHUA BALLEW

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

Axiomatic set theory. Chapter Why axiomatic set theory?

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

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

Date: October 24, 2008, Friday Time: 10:40-12:30. Math 123 Abstract Mathematics I Midterm Exam I Solutions TOTAL

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

A Short Review of Cardinality

Introduction to Logic and Axiomatic Set Theory

Section 7.5: Cardinality

The Search for the Perfect Language

Logic and Computation

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

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

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

Zermelo-Fraenkel Set Theory

Basic set-theoretic techniques in logic Part III, Transfinite recursion and induction

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

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

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

Theory of Computation CS3102 Spring 2014

INTRODUCTION TO CARDINAL NUMBERS

Informal Statement Calculus

23.1 Gödel Numberings and Diagonalization

Chapter 2 Axiomatic Set Theory

14 Uncountable Sets(Denial of Self Recursion)

Functions and cardinality (solutions) sections A and F TA: Clive Newstead 6 th May 2014

Generalizing Gödel s Constructible Universe:

Functions. Definition 1 Let A and B be sets. A relation between A and B is any subset of A B.

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

A Logician s Toolbox

Farewell (for now) to modular arithmetic...

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Initial Ordinals. Proposition 57 For every ordinal α there is an initial ordinal κ such that κ α and α κ.

Assignments. Math 215. Fall 2009.

Axioms for Set Theory

CSE 311: Foundations of Computing. Lecture 26: Cardinality

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

DO FIVE OUT OF SIX ON EACH SET PROBLEM SET

Formalizing objective mathematics

Infinite constructions in set theory

INDEPENDENCE OF THE CONTINUUM HYPOTHESIS

17.1 The Halting Problem

Notes on counting. James Aspnes. December 13, 2010

1 Reals are Uncountable

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

Intro to Theory of Computation

Chapter 1 : The language of mathematics.

Undecidability. Andreas Klappenecker. [based on slides by Prof. Welch]

Tutorial on Axiomatic Set Theory. Javier R. Movellan

CHAPTER 0: BACKGROUND (SPRING 2009 DRAFT)

Contents Propositional Logic: Proofs from Axioms and Inference Rules

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

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

Discrete Mathematics 2007: Lecture 5 Infinite sets

Let us first solve the midterm problem 4 before we bring up the related issues.

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

Introduction to Proofs

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

Math 105A HW 1 Solutions

Part II. Logic and Set Theory. Year

Model Theory of Second Order Logic

MATH 13 FINAL EXAM SOLUTIONS

Opleiding Informatica

In N we can do addition, but in order to do subtraction we need to extend N to the integers

X = { X f X i A i : (œx, y 0 X)[x /= y œi[ x i /= y i ]]}.

The cardinal comparison of sets

1 Partitions and Equivalence Relations

Handbook of Logic and Proof Techniques for Computer Science

Gleason s Theorem for non-separable Hilbert spaces: Extended abstract

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

Math 109 September 1, 2016

Gödel s Programm and Ultimate L

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

An Intuitively Complete Analysis of Gödel s Incompleteness

Part II Logic and Set Theory

Undecidability COMS Ashley Montanaro 4 April Department of Computer Science, University of Bristol Bristol, UK

Set Theory History. Martin Bunder. September 2015

One-to-one functions and onto functions

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

Gödel's famous incompleteness theorems from the 1930's demonstrate the possibility of unprovable theorems in discrete and finite mathematics.

Section 0. Sets and Relations

ABOUT THE CLASS AND NOTES ON SET THEORY

Math 455 Some notes on Cardinality and Transfinite Induction

Understanding Computation

Gödel s Theorem: Limits of logic and computation

On the scope of diagonal argument and on contradictory equivalence.

Math 4603: Advanced Calculus I, Summer 2016 University of Minnesota Notes on Cardinality of Sets

Proof Theory and Subsystems of Second-Order Arithmetic

Transcription:

Judicaël Courant 2011-06-17 Lycée du Parc (moving to Lycée La Martinière-Monplaisir)

Outline 1 Cantor s paradise 1.1 Introduction 1.2 Countable sets 1.3 R is not countable 1.4 Comparing sets 1.5 Cardinals New questions Bigger sets than R? Beth vertigo Judicaël Courant 2

2 Paradise or hell? 2.1 Russell paradox 2.2 Repairing set theory 2.3 ZFC 2.4 Consistency 3 Applications to Computer Science 3.1 Non-computable functions 3.2 Partial functions 3.3 The halting problem 3.4 Another related oddity Judicaël Courant 3

4 Applications to mathematical logic 4.1 Free variables 4.2 Truth value / provability 5 Conclusion Judicaël Courant 4

1 Cantor s paradise 1.1 Introduction Before Cantor: no sets in maths! Cantor studied trigonometric series: if for all real x N n=0 then for n, a n = b n = 0. a n sin(nx) + b n cos(nx) N + 0 What if the series does converge for all x but a few exceptions? Judicaël Courant 5

What if there is an infinity of exceptions? study of the set of reals where the series does not converge. Is the set finite? Is it possible to index it by natural numbers? Judicaël Courant 6

1.2 Countable sets A set E is denumerable if and only if there exists a bijective mapping from N to this set. A set is countable if it is denumerable or finite. Judicaël Courant 7

Exemple: 1. N is denumerable 2. Z too 3. An denumerable union of finite sets is countable 4. A subset of a denumerable set is countable 5. N N too 6. Q too Judicaël Courant 8

1.3 R is not countable Diagonal argument (1874/1891): given an infinite sequence of reals, you can build a real which is not in the sequence. Judicaël Courant 9

The idea: the diagonal argument u 1 = 1.2983379557834... u 2 = 7.7952039204368... u 3 = 0.8204928239869... u 4 = 0.0275923093482... u 5 = 0.0568739503894.... Construct x such that the kth digit of x differs from the kth of u k. For instance x = 0.53121... Judicaël Courant 10

Consequences: R is not countable not all infinite sets have the same number of elements Judicaël Courant 11

1.4 Comparing sets Given two sets A and B, we say: they are equinumerous if and only if there exists a bijection from A to B. In that case we also say that A and B have the same cardinality and we write A = B. A has cardinality smaller than or equal to the cardinality of B if and only if there exists an injective function from A to B and we write A B. With this definition A = B A B and B A Judicaël Courant 12

Theorem (Cantor-Bernstein) A B A = B and B A Judicaël Courant 13

1.5 Cardinals Notation A = B : more than just a notation for equinumerosity. A is a set, called the cardinal of A such that: 1. A and A are equinumerous 2. equinumerosity of sets equality of their cardinals 3. A B A B. Judicaël Courant 14

Moreover: 1. =, notation: 0. 2. x { x } = { 0 }, notation: 1. 3. x, y x y { x, y } = { 0, 1 }, notation: 2. 4.... We define ℵ 0 = N. Judicaël Courant 15

New questions 1. Smaller infinite sets than N? No 2. Bigger sets than R? Yes 3. Existence of E such that N < E < R? Undecidable (Continuum problem, Gödel 1940, Cohen 1963) Judicaël Courant 16

Bigger sets than R? Diagonal argument: let f : R P (R). f can not be a surjective function. Why? (Hint: define E = { x R x / f(x) }.) Judicaël Courant 17

Beth vertigo The previous argument applies to all sets, not only to R. Notice that P (A) = { 0, 1 } A = 2 c where c = A. Writing 2 c instead of 2 c, let us show that c < 2 c. Consider f : c { 0, 1 } c. Define φ : x 1 f(x)(x). Then for all y c, f(y) φ. We define ℶ 0 = def ℵ 0 and for all n N, ℶ n+1 = def 2 ℶn. Judicaël Courant 18

Computing with cardinals: given cardinals c 1, c 2, c 3 Then c 1 + c 2 = def { (i, x) i { 0, 1 }, x c i } c 1 c 2 = def c 1 c 2 c c 2 1 = def c c 2 1 (can you prove it?) c c 3 1 c c 3 2 = (c 1 c 2 ) c 3 c c 2 1 c c 3 1 = c c 2+c 3 1 (c c 2 1 ) c 3 = c c 2 c 3 1 Judicaël Courant 19

ℶ 0 = ℵ 0 = N = Z = Q ℶ 1 = R = R 2 = R n = R N = R Q = C 0 (R, R) ℶ 2 = { 0, 1 } R = N R = R R Judicaël Courant 20

2 Paradise or hell? 2.1 Russell paradox 1. Mathematics collapse if you find a proof of an assertion and of its negation. Such a proof is called a paradox 2. In May or June 1901 Bertrand Russel discovered such a proof in Cantor s set theory 1 1 Zermelo found it independently around the same years Judicaël Courant 21

Considering that 1. the set of integers is not an integer (that is quite normal) 2. the set of all sets, if it existed, would be a member of itself (quite a strange set) You could divide sets into normal sets and non-normal sets. Let us call N the set of normal sets, that is N = { A A / A } Is N a normal set itself? Judicaël Courant 22

2.2 Repairing set theory In order to repair set theory, two distinct solutions have been found: 1. Type theory 2. Set theory Judicaël Courant 23

Type theory (notable proponents: Russel and Whitehead) 1. Mathematical objects all have a level: Base objects (integers) live in level 0 Sets containing objects of level 0 live in level 1... Sets containing objects of level at most n live in level n + 1 2. Useful in computer science (origin of the type system of Caml) 3. Inconvenient for mathematics. Judicaël Courant 24

Set theory 1. Rule for forming sets restricted 2. Gave birth to Zermelo-Fraenkel set theory (with the choice axiom). Known as ZFC. 3. You use it everyday Judicaël Courant 25

2.3 ZFC Theory proposed around 1920. Distinction between predicates and sets: 1. ok to define P such that x P (x) x / x 2. Forming the set { x P (x) } is forbidden. Judicaël Courant 26

Two axioms about sets you can form using a predicate: Schema of separation if A is already a set, and P any predicate, then you can form { x A P (x) } Schema of replacement if A is a set, and R is a two-arguments predicate such that x A!y R(x, y), then you can form { y x A R(x, y) } Judicaël Courant 27

2.4 Consistency Is ZFC consistent? 1. Up to 2010, no paradox has been found in ZFC... 2. If ZFC is consistent, no proof of consistency in itself can be done. 3. Some results (Werner, 1997) show (roughly) the relative consistency of ZFC with respect to type theory and vice-versa. Judicaël Courant 28

3 Applications to Computer Science 3.1 Non-computable functions A (naive) view of computer programs: 1. We consider only programs inputing a natural number and outputting a natural number. 2. So a program p is a function N N. Judicaël Courant 29

A compiler/an interpreter is a mapping φ from the set of program sources to N N. Program sources are a countable set, so we can see φ as a function N N N. Uncountable number of functions: N N = ℶ 1 Countable number of programs: φ(n) N = ℵ 0 Thus there are many non-computable functions (an uncountable number), whatever language you use. Judicaël Courant 30

3.2 Partial functions Define f : n 1 + φ(n)(n). Paradox(?): On the one hand: In a any reasonably powerful programing language, you can 1. simulate an interpreter of itself 2. add 1 to a previously computed value Thus, f should be computable. Judicaël Courant 31

On the other hand: 1. if f is computable, then f = φ(n) for some N. 2. Then φ(n)(n) = f(n) = 1 + φ(n)(n) which is absurd. What is wrong? Implicit assumptions: the language is powerful enough no infinite loops Judicaël Courant 32

These assumptions are mutually incompatible: Theorem In all reasonably powerful programing language, some valid programs loop. Better description of a program: function N N { } where means the program loops. Judicaël Courant 33

3.3 The halting problem Infinitely looping programs often are the result of a bug. Can we automatically detect them before running them? Halting problem: find a computer program inputing the text of a program and a natural number and telling whether the given program would stop on the given entry. Judicaël Courant 34

Assume that such a program exists: let call h a program inputing the text of a program x and a natural number y ((x, y) N 2 ) and outputting 1 if φ(x)(y) would stop, and 0 otherwise. Now define f a the function inputing x and outputting 0 if h(x, x) = 0 infinitely looping if h(x, x) = 1 Then, choose N N such that f = φ(n). Does f(n) loops? Conclusion? Judicaël Courant 35

3.4 Another related oddity Can you write a Caml program forever looping 1. without any loop construct 2. without any recursive function 3. in four lines? Judicaël Courant 36

Answer: Objective Caml version 3.11.2 # type t = L of (t -> t);; type t = L of (t -> t) # let app x y = match x with (L f) -> f y;; val app : t -> t -> t = <fun> # let delta = L (fun x -> app x x);; val delta : t = L <fun> # app delta delta;; infinite loop... Judicaël Courant 37

4 Applications to mathematical logic Gödel proved around 1930 that in all logical system, you can find an assertion A such that neither A neither the negation of A can be proved (incompleteness theorem). Judicaël Courant 38

4.1 Free variables Let A be the assertion y N y x z. The free variables of A are x and z (y is a bound variable). The truth value of this assertion (true or false) may depend on the value of its free variables. An assertion is closed if and only if it has no free variables. In the following, we shall consider only the case of closed assertions Judicaël Courant 39

4.2 Truth value / provability Platonic mathematical view of truth: every closed assertion is either true or false (even if you do not know whether it is true or false). If it is false, its negation is true and vice-versa. A proof of an assertion is a text following some (well-defined rules). An assertion is provable if it has a proof. Consistent system: all provable assertions are true. An assertion A is decidable if A or its negation is provable. Judicaël Courant 40

Theorem (Gödel incompleteness theorem) In all consistent systems, there is at least one undecidable closed assertion. Judicaël Courant 41

A possible proof of Gödel s theorem (not the historical one): 1. Assertions and proof texts can be coded in order to be processed by programs. 2. If an assertion A is decidable, one can write a program outputting 1 if it is true and 0 if it is false. Silly algorithm: try all proof texts in sequence (they are denumerable), stop as soon as you find a proof of A (output 1 in that case) or a proof of its negation (output 0). 3. If the assertion «φ(x, y) stops» were decidable for all x and y, the halting problem would be solvable. Judicaël Courant 42

Disturbing consequences: 1. There are true assertions that you can not prove 2. If you want to prove them, you need more axioms 3. Then you have more provable assertions 4. But Gödel s theorem still applies to your new system: Some unprovable true assertions remain! 5. However many axioms you add, true unprovable assertions remain 6. So, there was an infinity of such assertions at the beginning Judicaël Courant 43

5 Conclusion 1. Cantor opened a new playground for mathematician. A paradise (according to Hilbert), but also an original way to get insane... 2. Set theory changed the face of maths. The vast majority of maths are currently based on set theory. 3. Gödel work changed the way mathematicians see maths, and even the way philosophers see sciences (fall of the positivism). 4. Strong connections between (theoretical) computer science and the discoveries of Cantor. Judicaël Courant 44