Perlen der Informatik I Jan K ret nsk y Technische Universit at - - PowerPoint PPT Presentation

perlen der informatik i
SMART_READER_LITE
LIVE PREVIEW

Perlen der Informatik I Jan K ret nsk y Technische Universit at - - PowerPoint PPT Presentation

Perlen der Informatik I Jan K ret nsk y Technische Universit at M unchen Winter 2020/2021 Overview 2/65 language: English/German voluntary course lecture on Tuesday, in the slot 10 a.m. 12 p.m.


slide-1
SLIDE 1

Perlen der Informatik I

Jan Kˇ ret´ ınsk´ y Technische Universit¨ at M¨ unchen Winter 2020/2021

slide-2
SLIDE 2

Overview

2/65

◮ language: English/German ◮ voluntary course ◮ lecture on Tuesday, in the slot 10 a.m. – 12 p.m. ◮ https://www7.in.tum.de/˜kretinsk/teaching/perlen.html ◮ G¨

  • del, Escher, Bach: an Eternal Golden Braid

by Douglas R. Hofstadter

slide-3
SLIDE 3

Bach

3/65

◮ Frederick the Great ◮ Leonhard Euler,. . . , J.S. Bach ◮ improvised 6-part fugue ◮ canons

slide-4
SLIDE 4

Bach

3/65

◮ Frederick the Great ◮ Leonhard Euler,. . . , J.S. Bach ◮ improvised 6-part fugue ◮ canons

slide-5
SLIDE 5

Bach

3/65

◮ Frederick the Great ◮ Leonhard Euler,. . . , J.S. Bach ◮ improvised 6-part fugue ◮ canons

◮ copies differing in time, pitch, speed, direction (upside down, crab) ◮ isomorphic ◮ canon endlessly rising in 6 steps – “strange loop”

slide-6
SLIDE 6

Escher

4/65

“Waterfall” 6-step endlessly falling loop

slide-7
SLIDE 7

Escher

4/65

“Ascending and Descending” illusion by Roger Penrose

slide-8
SLIDE 8

Escher

4/65

Penrose triangle Faculty of Informatics, Brno

slide-9
SLIDE 9

Escher

4/65

“Drawing hands” his first strange loop

slide-10
SLIDE 10

Escher

4/65

“Metamorphosis” copies of one theme

slide-11
SLIDE 11

  • del

5/65

◮ Brno ◮ Epimenides paradox: “All Cretans are liars”

slide-12
SLIDE 12

  • del

5/65

◮ Brno ◮ Epimenides paradox: “All Cretans are liars” ◮ mathematical reasoning in exploring mathematical reasoning ◮ Incompleteness theorem:

All consistent axiomatic formulations of number theory include undecidable propositions.

◮ strange loop in the proof

slide-13
SLIDE 13

  • del

5/65

◮ Brno ◮ Epimenides paradox: “All Cretans are liars” ◮ mathematical reasoning in exploring mathematical reasoning ◮ Incompleteness theorem:

All consistent axiomatic formulations of number theory include undecidable propositions.

◮ strange loop in the proof ◮ statement about numbers can talk about itself

“This statement of number theory does not have any proof”

◮ numbers code

↔ statements

slide-14
SLIDE 14

  • del

5/65

◮ Brno ◮ Epimenides paradox: “All Cretans are liars” ◮ mathematical reasoning in exploring mathematical reasoning ◮ Incompleteness theorem:

All consistent axiomatic formulations of number theory include undecidable propositions.

◮ strange loop in the proof ◮ statement about numbers can talk about itself

“This statement of number theory does not have any proof”

◮ numbers code

↔ statements 215473077557

slide-15
SLIDE 15

  • del

5/65

◮ Brno ◮ Epimenides paradox: “All Cretans are liars” ◮ mathematical reasoning in exploring mathematical reasoning ◮ Incompleteness theorem:

All consistent axiomatic formulations of number theory include undecidable propositions.

◮ strange loop in the proof ◮ statement about numbers can talk about itself

“This statement of number theory does not have any proof”

◮ numbers code

↔ statements 215473077557 is in binary 0011001000101011001100100011110100110101

slide-16
SLIDE 16

  • del

5/65

◮ Brno ◮ Epimenides paradox: “All Cretans are liars” ◮ mathematical reasoning in exploring mathematical reasoning ◮ Incompleteness theorem:

All consistent axiomatic formulations of number theory include undecidable propositions.

◮ strange loop in the proof ◮ statement about numbers can talk about itself

“This statement of number theory does not have any proof”

◮ numbers code

↔ statements 215473077557 is in binary 0011001000101011001100100011110100110101 read as ASCII 2+2=5

◮ homework:

34723379178930453204433293597543819411782291432109326918654063662

slide-17
SLIDE 17

Mathematical logic

6/65

◮ different geometries, equally valid ◮ real world? ◮ proof? ◮ Russel’s paradox

◮ “ordinary” sets: x x ◮ “self-swallowing” sets: x ∈ x ◮ R = set of all ordinary sets

◮ Grelling’s paradox

◮ self-descriptive adjectives (“pentasyllabic”) vs non-self-descriptive ◮ what about “non-self-descriptive”?

◮ self-reference

drawing hands The following sentence is false. The preceding sentence is true.

slide-18
SLIDE 18

Way out?

7/65

◮ prohibition (Principia mathematica) ◮ types, metalanguage ◮ “In this lecture, I criticize the theory of types”

cannot discuss the type theory

◮ David Hilbert: consistency and completeness

slide-19
SLIDE 19

Computers

8/65

◮ Babbage

The course through which I arrived at it was the most entangled and perplexed which probably ever occupied the human mind. Ada Lovelace (daughter of Lord Byron) Mechanized intelligence “Eating its own tail” (altering own program)

◮ axiomatic reasoning, mechanical computation, psycholgy of

intelligence

◮ Alan Turing ∼ G¨

  • del’s counterpart in computation theory

Halting problem is undecidable. Can intelligent behaviour be programmed? Rules for inventing new rules... Strange loops in the core of intelligence

◮ materialism, de la Metrie: L

’homme machine

slide-20
SLIDE 20

Formal system

9/65

Example (over alphabet M,I,U)

◮ initial string (“axiom”):

◮ MI

◮ rules (“inference/production rules”) to enlarge your collection (of

“theorems”) requirement of formality: not outside the rules

◮ last letter I ⇒ put U at the end ◮ Mx ⇒ Mxx where x can be any string ◮ replace III by U ◮ drop UU

Homework: Can you produce/derive/prove MU ?

◮ Which rule to use? That’s the art.

slide-21
SLIDE 21

Working in the system / observing the system

10/65

◮ human itellingece ⇒ notice properties of theorems ◮ machine can act unobservant, people cannot

Perfect test (“decision procedure”) for theorems

◮ tree of all theorems? ◮ finite time!

slide-22
SLIDE 22

Another formal system

11/65

◮ alphabet {p,q,−} ◮ axioms (axiom schema – obvious decision procedure):

xp−qx− for any x composed from hyphens

◮ production rules:

xpyqz ⇒ xpy−qz− for any x, y, z composed from hyphens

slide-23
SLIDE 23

Decision procedure

12/65

◮ only lengthening rules

⇒ reduce to shorter ones (top-down) ⇒ dovetailing longer axioms and rule application (bottom-up)

◮ hereditary properties of theorems

slide-24
SLIDE 24

Meaning

13/65

Isomorphism

◮ information-preserving transformation ◮ creates meaning ◮ interpretation + correspondence between true statements and

interpreted theorems

◮ like cracking a code ◮ meaningless interpretations possible ◮ “well-formed” strings should produce “gramatical” sentences

slide-25
SLIDE 25

Meaning is passive in formal systems

14/65

◮ it seems the system cannot avoid taking on meaning ◮ is --p--p--q------ a theorem? ◮ subtraction ◮ does not add new additions, but we learn about nature of addition ◮ (is reality a formal system? is universe deterministic?)

slide-26
SLIDE 26

Is our formal system accurate?

15/65

◮ 12 × 12: counting vs proof ◮ basic properties to be believed, e.g. commutatitvity and associativity ◮ in reality not always: raindrop, cloud, trinity, languages in India ◮ ideal numbers ◮ counting cannot check Euclid’s Theorem

◮ reasoning ◮ non-obvious result from obvious steps ◮ belief in reasoning ◮ overcoming infinity (“all” N) ◮ patterned structure binding statements ◮ can thinking be achieved by a formal system?

slide-27
SLIDE 27

Escher: Liberation

16/65

slide-28
SLIDE 28

Puzzle

17/65

1 3 7 12 18 26 35 45 56 ?

slide-29
SLIDE 29

Escher: Mosaic II

18/65

slide-30
SLIDE 30

Can we distinguish primes from composites?

19/65

Formal systems ∼ typographical operations:

◮ read, write, copy, erase, and compare symbols ◮ keep generated theorems

slide-31
SLIDE 31

Can we distinguish primes from composites?

19/65

Formal systems ∼ typographical operations:

◮ read, write, copy, erase, and compare symbols ◮ keep generated theorems

Multiplication:

◮ axiom xt-qx

for every hyphen-string x

◮ rule xtyqz ⇒ xty-qzx

for hyphen-strings x, y, z Composites:

◮ rule x-ty-qz ⇒Cz

for hyphen-strings x, y, z

slide-32
SLIDE 32

Can we distinguish primes from composites?

19/65

Formal systems ∼ typographical operations:

◮ read, write, copy, erase, and compare symbols ◮ keep generated theorems

Multiplication:

◮ axiom xt-qx

for every hyphen-string x

◮ rule xtyqz ⇒ xty-qzx

for hyphen-strings x, y, z Composites:

◮ rule x-ty-qz ⇒Cz

for hyphen-strings x, y, z Primes:

◮ rule: Cx is not a theorem ⇒ Px

for every hyphen-string x

slide-33
SLIDE 33

Can we distinguish primes from composites?

19/65

Formal systems ∼ typographical operations:

◮ read, write, copy, erase, and compare symbols ◮ keep generated theorems

Multiplication:

◮ axiom xt-qx

for every hyphen-string x

◮ rule xtyqz ⇒ xty-qzx

for hyphen-strings x, y, z Composites:

◮ rule x-ty-qz ⇒Cz

for hyphen-strings x, y, z Primes:

◮ rule: Cx is not a theorem ⇒ Px

for every hyphen-string x

◮ reasoning what cannot be generated is outside of system,

requirement of formality

slide-34
SLIDE 34

Negative definitions: figure and ground

20/65

slide-35
SLIDE 35

Negative definitions: figure and ground

21/65

slide-36
SLIDE 36

Negative definitions: figure and ground

22/65

Sets

◮ recursive: decision procedure ◮ recursively enumerable (r.e.): can be generated ◮ non-r.e.

slide-37
SLIDE 37

Negative definitions: figure and ground

23/65

Characterize false statements

◮ negative space of theorems ◮ altered copy of theorems

Impossible!

slide-38
SLIDE 38

Impossibility

24/65

◮ some negative spaces cannot be positive ◮ = there are non-recursive r.e. sets ◮ ⇒ there are formal sytems with no decision procedure

slide-39
SLIDE 39

Primes are recursive

25/65

◮ axiom xyDNDx

for hyphen-strings x, y

◮ rules

xDNDy ⇒ xDNDxy

  • -DNDz ⇒ zDF--

zDFx and x-DNDz ⇒ zDFx- z-DFz ⇒Pz-

◮ axiom P--

slide-40
SLIDE 40

Impossibility

26/65

◮ if a set is generatable in increasing order then so is its complement ◮ lengthening interleaved with shortening causes G¨

  • del’s Theorem,

Turing’s Halting Problem etc.

slide-41
SLIDE 41

Diagonalisation: Cantor

27/65

slide-42
SLIDE 42

Diagonalisation: Cantor

27/65

f : S → P(S) C = {s ∈ S | s f(s)}

slide-43
SLIDE 43

Diagonalisation: Russell

28/65

R = {x | x x} Then R ∈ R ⇐⇒ R R

slide-44
SLIDE 44

Diagonalisation: Turing

29/65

program e: if f(i,i) == 0 then return 0 else loop forever

◮ f(e, e) = 0 =⇒ g(e) = 0 =⇒ program e halts on input e

=⇒ f(e, e) = 1

◮ f(e, e) 0 =⇒ g(e) undef. =⇒ program e doesn’t halt on input e

=⇒ f(e, e) = 0

slide-45
SLIDE 45

Diagonalisation: G¨

  • del (vague idea)

30/65

”, when preceded by itself in quotes, is unprovable.”, when preceded by itself in quotes, is unprovable.

slide-46
SLIDE 46

  • del and the strange loop

31/65

For any player, there is a record which it cannot play because it will cause its indirect destruction. Bach – self-reference in the Art of the Fugue

slide-47
SLIDE 47

Story isomorphism

32/65

slide-48
SLIDE 48

Consistency

33/65

Example: pq-system

◮ Axiom schema II: xp-qx for every hyphen-string x ◮ inconsistent with external world

slide-49
SLIDE 49

Consistency

33/65

Example: pq-system

◮ Axiom schema II: xp-qx for every hyphen-string x ◮ inconsistent with external world ◮ reinterpret: ≥ ◮ consistency depends on interpretation ◮ consistency = Every theorem, when interpreted, becomes a true

statement.

slide-50
SLIDE 50

Consistency

34/65

Example: non-Euclid geometry

◮ Elements ◮ rigor ◮ axiomatic system ◮ fifth postulate not a consequence ◮ Saccheri, Lambert, Bolyai, Lobachevskiy ◮ elliptical/spherical (no parallel) and hyperbolical (≥ 2 parallels)

geometry (4 geometrical postlates remain, “absolute geometry” included)

◮ real points and lines vs. explicit definitions vs. implicit propositions

slide-51
SLIDE 51

Consistency

35/65

◮ internal consistency: theorems mutually compatible

holds in some “imaginable” world

◮ logical, mathematical, physical, biological etc. consistency ◮ Is number theory/geometry the same in all conceivable worlds?

◮ Peano arithmetic ∼ absolute (core) geometry ◮ number theories are the same for practical purposes ◮ Gauss attmepted to measure angles between three mountains

general relativity more geometries in mathematics and even physics

slide-52
SLIDE 52

Consistency

36/65

Relativity

slide-53
SLIDE 53

Completeness

37/65

Consistency: minimal condition for passive meaning Completeness: maximal confirmation of passive meanings “ Every true statement which can be expressed in the notation of the system is a theorem”

◮ Example: 2+3+4=9 in pq ◮ Example: pq with Axiom schema II

(1) add rules or (2) tighten the interpretation

slide-54
SLIDE 54

  • del’s 1st incompleteness theorem

38/65

Theorem

There are true arithmetical formulae unprovable in PA (or other consistent formal systems).

  • del’s proof (sketch)

◮ it is possible to construct a PA formula ρ such that

PA ⊢ ρ ⇐⇒ ¬Provable([ρ]) i.e. “ρ says “I’m not provable”” is provable in PA

◮ by consistency of PA this is true in arithmetics ◮ if ¬ρ then Provable([ρ]), a contradiction

if ρ then ¬Provable([ρ]) hence PA ρ

slide-55
SLIDE 55

  • del’s 1st incompleteness theorem

39/65

Recall:

◮ Accept := {i | Mi accepts i} ◮ Accept is r.e., but not recursive ◮ Accept is not r.e.

Alternative proof:

◮ Provable is r.e. (for PA and similar) ◮ Provable ⊆ Valid by consistency ◮ we prove Valid is not r.e., hence

◮ construct a program transforming n ∈ N into a formula ϕ:

ϕ ∈ Valid iff n ∈ Accept it computes the formula “Mn does not accept n”

◮ computation is a sequence of configurations (numbers) ◮ one can encode that a configuration c follows a given configuration d ◮ every finite sequence can be encoded by a formula β:

For every n1, . . . , nk there are a, b ∈ N such that β(a, b, i, x) iff x = ni

slide-56
SLIDE 56

  • del’s 1st incompleteness theorem

40/65

Let β(a, b, i, x) be true iff x = a mod (1 + b(1 + i))

◮ expressible in simple arithmetics:

a ≥ 0∧b ≥ 0∧∃k

  • k ≥ 0∧k ∗c ≤ a ∧(k +1)∗c > a ∧x = a −(k ∗b)
  • where c is a shortcut for (1 + b ∗ (1 + i))

◮ for every a, b the predicate β induces a unique sequence,

where the ith element is a mod (1 + b(1 + i))

◮ every finite sequence can be encoded by β for some a, b:

Theorem

For every n1, . . . , nk there are a, b ∈ N such that β(a, b, i, x) iff x = ni

slide-57
SLIDE 57

  • del’s 1st incompleteness theorem

41/65

β(a, b, i, x) iff x = a mod (1 + b(1 + i))

Theorem

For every n1, . . . , nk there are a, b ∈ N such that β(a, b, i, x) iff x = ni

Proof.

◮ b := (max{k, n1, . . . , nk})! ◮ pi := 1 + b(1 + i) is ≥ ni and mutually incommensurable ◮ ci := ji pj ◮ ∃!

0 ≤ di ≤ pi : ci · di mod pi = 1

◮ a := k i=1 ci · di · ni ◮ hence ni = a mod pi

slide-58
SLIDE 58

Recursion

42/65

Examples

◮ recursive defintions

◮ in terms of simpler versions of itself ◮ some part avoids self-reference (vs. circular definitions)

◮ pushdown systems ◮ music: tonic and pseudo-tonic ◮ language: verb at the end ◮ indirect recursion in Epimenides ◮ Fib(n)=Fib(n-1)+Fib(n-2) ◮ computer programs ◮ fractals ◮ Cantor set

slide-59
SLIDE 59

Mandelbrot set

43/65

slide-60
SLIDE 60

Mandelbrot set

44/65

slide-61
SLIDE 61

Further examples

45/65

energies of electrons in a crystal in a magnetic field Cantor set

slide-62
SLIDE 62

Sidenote: Location of meaning

46/65

◮ is meaning of a message an inherent property of the message? ◮ meaning is part of an object to the extent that it acts upon

intelligence in a predictable way

◮ levels of informtion

◮ frame message: “this bears information” ◮ outer message: “this is in Japanese” ◮ inner message: “this says ...”

◮ if all juke-boxes would play the same song on “A-5”, it wouldn’t be

just a trigger but a meaning of “A-5”

◮ mass is intrinsic, weight is not; or yes, but at the cost of geocentricity ◮

· ·

slide-63
SLIDE 63

Propositional calculus: Definition

47/65

◮ purely typographic ◮ alphabet: < > P Q R ′ ∧ ∨ ⊃ ∼ [ ] ◮ well-formed strings:

◮ atoms: P

, Q, R + adding primes

◮ formation rules: if x and y are wel-formed then so are

∼ x, < x ∧ y >, < x ∨ y >, < x ⊃ y >

◮ rules

◮ joining: x and y ⇒ < x ∧ y > ◮ separation:< x ∧ y > ⇒ x and y ◮ double-tilde: ∼∼ can be deleted or inserted ◮ contrapositive: < x ⊃ y > and <∼ y ⊃∼ x interchangable ◮ De Morgan: ∼< x ∨ y > and <∼ x∧ ∼ y interchangable ◮ Switcheroo: < x ∨ y > and <∼ x ⊃ y interchangable ◮ no axioms

slide-64
SLIDE 64

Propositional calculus: Definition

47/65

◮ purely typographic ◮ alphabet: < > P Q R ′ ∧ ∨ ⊃ ∼ [ ] ◮ well-formed strings:

◮ atoms: P

, Q, R + adding primes

◮ formation rules: if x and y are wel-formed then so are

∼ x, < x ∧ y >, < x ∨ y >, < x ⊃ y >

◮ rules

◮ joining: x and y ⇒ < x ∧ y > ◮ separation:< x ∧ y > ⇒ x and y ◮ double-tilde: ∼∼ can be deleted or inserted ◮ contrapositive: < x ⊃ y > and <∼ y ⊃∼ x interchangable ◮ De Morgan: ∼< x ∨ y > and <∼ x∧ ∼ y interchangable ◮ Switcheroo: < x ∨ y > and <∼ x ⊃ y interchangable ◮ no axioms ◮ fantasy rule (Deduction Theorem): y derived from x ⇒< x ⊃ y > ◮ carry-over theorems into fantasy ◮ detachment (Modus Ponens): x and < x ⊃ y >⇒ y

slide-65
SLIDE 65

Propositional calculus: Properties

48/65

◮ decision procedure:

slide-66
SLIDE 66

Propositional calculus: Properties

48/65

◮ decision procedure: truth tables ◮ simplicity, precision ◮ other versions (axiom schemata + detachment)

extensions (valid propositional inferences, incompleteness/inconsistency only due to embedding system)

slide-67
SLIDE 67

Propositional calculus: Properties

48/65

◮ decision procedure: truth tables ◮ simplicity, precision ◮ other versions (axiom schemata + detachment)

extensions (valid propositional inferences, incompleteness/inconsistency only due to embedding system) Informal

◮ proof: normal thought ◮ simplicity: sounds right ◮ complexity: human language

Formal

◮ derivation: artificial, explicit ◮ simplicity: trivial ◮ astronomical size

slide-68
SLIDE 68

Propositional calculus: Contradictions

49/65

◮ < <P ∧ ∼P> ⊃ Q > ◮ infection vs. mental break-down ◮ 1 − 1 + 1 − 1 + 1 · · · ◮ relevant implication

slide-69
SLIDE 69

Typographical number theory: Syntax

50/65

◮ natural-numbers theory N → TNT

  • 1. 2 is not a square.
  • 2. 5 is a prime.
  • 3. There are infinitely many primes.
slide-70
SLIDE 70

Typographical number theory: Syntax

50/65

◮ natural-numbers theory N → TNT

  • 1. 2 is not a square.
  • 2. 5 is a prime.
  • 3. There are infinitely many primes.

◮ primitives: for all numbers, there exists a number, equals, greater

than, times, plus, 0, 1, 2, . . .

◮ variables: a, b, a′

terms: (a · b), (a + b), 0, S0, SS0 atoms: S0 + S0 = SS0 quantifiers: ∃b : (b + S0) = SS0, similarly ∀

slide-71
SLIDE 71

Typographical number theory: Syntax

50/65

◮ natural-numbers theory N → TNT

  • 1. 2 is not a square.
  • 2. 5 is a prime.
  • 3. There are infinitely many primes.

◮ primitives: for all numbers, there exists a number, equals, greater

than, times, plus, 0, 1, 2, . . .

◮ variables: a, b, a′

terms: (a · b), (a + b), 0, S0, SS0 atoms: S0 + S0 = SS0 quantifiers: ∃b : (b + S0) = SS0, similarly ∀ Puzzle: encode the following

◮ b is a power of 2 ◮ b is a power of 10

slide-72
SLIDE 72

Propositional calculus: Examples

51/65

◮ ∼∀c : ∃b : (SS0 · b) = c ◮ ∀c : ∼∃b : (SS0 · b) = c ◮ ∀c : ∃b : ∼(SS0 · b) = c ◮ ∼∃b : ∀c : (SS0 · b) = c ◮ ∃b : ∼∀c : (SS0 · b) = c ◮ ∃b : ∀c : ∼(SS0 · b) = c

slide-73
SLIDE 73

Propositional calculus: Derivations

52/65

Axioms:

  • 1. ∀a : ∼Sa = 0
  • 2. ∀a : (a + 0) = a
  • 3. ∀a : ∀b : (a + Sb) = S(a + b)
  • 4. ∀a : (a · 0) = 0
  • 5. ∀a : ∀b : (a · Sb) = ((a · b) + a)
slide-74
SLIDE 74

Propositional calculus: Derivations

52/65

Axioms:

  • 1. ∀a : ∼Sa = 0
  • 2. ∀a : (a + 0) = a
  • 3. ∀a : ∀b : (a + Sb) = S(a + b)
  • 4. ∀a : (a · 0) = 0
  • 5. ∀a : ∀b : (a · Sb) = ((a · b) + a)

Rules:

  • 1. specification: ∀u : x ⇒ x[u′/u] for any term u′
  • 2. generalization: x ⇒ ∀u : x for a free variable u
  • 3. interchange: ∀u :∼ and ∼ ∃u : are interchangeable
  • 4. existence: x[u′/u] ⇒ ∃u : x
  • 5. symmetry: r = s ⇒ s = r
  • 6. transitivity: r = s and s = t ⇒ r = t
  • 7. successorship: r = t ⇔ Sr = St
slide-75
SLIDE 75

Propositional calculus: Derivations

52/65

Axioms:

  • 1. ∀a : ∼Sa = 0
  • 2. ∀a : (a + 0) = a
  • 3. ∀a : ∀b : (a + Sb) = S(a + b)
  • 4. ∀a : (a · 0) = 0
  • 5. ∀a : ∀b : (a · Sb) = ((a · b) + a)

Rules:

  • 1. specification: ∀u : x ⇒ x[u′/u] for any term u′
  • 2. generalization: x ⇒ ∀u : x for a free variable u
  • 3. interchange: ∀u :∼ and ∼ ∃u : are interchangeable
  • 4. existence: x[u′/u] ⇒ ∃u : x
  • 5. symmetry: r = s ⇒ s = r
  • 6. transitivity: r = s and s = t ⇒ r = t
  • 7. successorship: r = t ⇔ Sr = St

Example: S0 + S0 = SS0

slide-76
SLIDE 76

Typographical number theory: Induction

53/65

◮ can derive

◮ (0 + 0) = 0 ◮ (0 + S0) = S0 ◮ (0 + SS0) = SS0 ◮ .

. .

◮ can derive ∀a : (0 + a) = a ?

slide-77
SLIDE 77

Typographical number theory: Induction

53/65

◮ can derive

◮ (0 + 0) = 0 ◮ (0 + S0) = S0 ◮ (0 + SS0) = SS0 ◮ .

. .

◮ can derive ∀a : (0 + a) = a ? ◮ nor its negation

undecidable in TNT (like Euclid’s 5th postulate in absolute geometry)

◮ rule of induction: u variable, X{u} well-formed formula with u free,

X{0/u}, ∀u :< X{u} ⊃ X{Su/u} > ⇒ ∀u : X{u}

slide-78
SLIDE 78

Typographical number theory: Consistency

54/65

◮ we believe in each rule ◮ are natural numbers a coherent construct??

slide-79
SLIDE 79

Typographical number theory: Consistency

54/65

◮ we believe in each rule ◮ are natural numbers a coherent construct??

Peano’s axioms:

  • 1. zero is a number
  • 2. every number has a successor (which is a number)
  • 3. zero is not a successor of any number
  • 4. different numbers have different successors
  • 5. if zero has X and every number relays X to its successor, then all

numbers have X

slide-80
SLIDE 80

Typographical number theory: Consistency

54/65

◮ we believe in each rule ◮ are natural numbers a coherent construct??

Peano’s axioms:

  • 1. zero is a number
  • 2. every number has a successor (which is a number)
  • 3. zero is not a successor of any number
  • 4. different numbers have different successors
  • 5. if zero has X and every number relays X to its successor, then all

numbers have X

◮ want to convince of consistency of TNT using a weaker system

slide-81
SLIDE 81

Typographical number theory: Consistency

54/65

◮ we believe in each rule ◮ are natural numbers a coherent construct??

Peano’s axioms:

  • 1. zero is a number
  • 2. every number has a successor (which is a number)
  • 3. zero is not a successor of any number
  • 4. different numbers have different successors
  • 5. if zero has X and every number relays X to its successor, then all

numbers have X

◮ want to convince of consistency of TNT using a weaker system ◮ G¨

  • del’s 2nd Theorem: Any system that is strong enough to prove

TNT’s consistency is at least as strong as TNT itself.

slide-82
SLIDE 82

Recall: MIU system

55/65

◮ alphabet M,I,U ◮ initial string (“axiom”):

◮ MI

◮ rules

  • 1. xI ⇒ xIU
  • 2. Mx ⇒ Mxx
  • 3. xIIIy ⇒ xUy
  • 4. xUUy ⇒ xy

◮ Can you produce MU ?

slide-83
SLIDE 83

Recall: MIU system

55/65

◮ alphabet M,I,U ◮ initial string (“axiom”):

◮ MI

◮ rules

  • 1. xI ⇒ xIU
  • 2. Mx ⇒ Mxx
  • 3. xIIIy ⇒ xUy
  • 4. xUUy ⇒ xy

◮ Can you produce MU ? ◮ No:

◮ I-count starts at 1 (not multiple of 3) ◮ I-count is a multiple of 3 only it was before applying the most recent

rule

slide-84
SLIDE 84

  • del numbering

56/65

◮ All problems about any formal system can be encoded into number

theory!

◮ define arithmetization on symbols (G¨

  • del number):

◮ M ↔ 3 ◮ I ↔ 1 ◮ U ↔ 0

◮ extend it to all strings

  • 1. MI ↔ 31
  • 2. MIU ↔ 310

Example: Rule 1

  • 1. xI ⇒ xIU
  • 2. x1 ⇒ x10
  • 3. x ⇒ 10 · x for any x mod 10 = 1

Typographical rules on numerals are actually arithmetical rules on numbers.

◮ Is MU a theorem of the MIU-system? ◮ Is 30 a MIU-number?

slide-85
SLIDE 85

  • del numbering

56/65

◮ All problems about any formal system can be encoded into number

theory!

◮ define arithmetization on symbols (G¨

  • del number):

◮ M ↔ 3 ◮ I ↔ 1 ◮ U ↔ 0

◮ extend it to all strings

  • 1. MI ↔ 31
  • 2. MIU ↔ 310

Example: Rule 1

  • 1. xI ⇒ xIU
  • 2. x1 ⇒ x10
  • 3. x ⇒ 10 · x for any x mod 10 = 1

Typographical rules on numerals are actually arithmetical rules on numbers.

◮ Is MU a theorem of the MIU-system? ◮ Is 30 a MIU-number?

  • 1. “MU is a theorem” into number theory
  • 2. number theory into TNT
slide-86
SLIDE 86

Self-swallowing TNT

57/65

◮ G¨

  • del-number TNT

◮ S0 = 0 is a theorem of TNT −→ 123, 666, 111, 666 is a TNT-number

slide-87
SLIDE 87

Self-swallowing TNT

57/65

◮ G¨

  • del-number TNT

◮ S0 = 0 is a theorem of TNT −→ 123, 666, 111, 666 is a TNT-number ◮ for any formalization of number theory, its metalanguage is

embedded in it

slide-88
SLIDE 88

Self-swallowing TNT

57/65

◮ G¨

  • del-number TNT

◮ S0 = 0 is a theorem of TNT −→ 123, 666, 111, 666 is a TNT-number ◮ for any formalization of number theory, its metalanguage is

embedded in it

◮ find a string G that says “G is not a theorem” ◮ thoerem =⇒ truth =⇒ not a theorem =⇒ truth, but unprovable

slide-89
SLIDE 89

Self-swallowing TNT

57/65

◮ G¨

  • del-number TNT

◮ S0 = 0 is a theorem of TNT −→ 123, 666, 111, 666 is a TNT-number ◮ for any formalization of number theory, its metalanguage is

embedded in it

◮ find a string G that says “G is not a theorem” ◮ thoerem =⇒ truth =⇒ not a theorem =⇒ truth, but unprovable ◮ summary:

There is a string of TNT expressing a statement about numbers (interpretable as “I am not a theorem (of TNT)”). By reasoning

  • utside of the system, we can show it is true. But still it is not a

theorem of TNT (TNT says neither true nor false).

slide-90
SLIDE 90

Last words

slide-91
SLIDE 91

Free will, consciousness

59/65

◮ computer vs. human? ◮ self-design, choosing one’s wants? ◮ Do words and thoughts follow formal rules?

slide-92
SLIDE 92

Free will, consciousness

59/65

◮ computer vs. human? ◮ self-design, choosing one’s wants? ◮ Do words and thoughts follow formal rules? ◮ rules on the lowest level, e.g. neurons ◮ software rules change, harware cannot

slide-93
SLIDE 93

Strange loops, tangled hierarchies: Examples

60/65

◮ self-modifying game ◮ Escher’s hands ◮ symbols in brain (on neuronal substrate) ◮ ? washing hands, dialogue ◮ language, Klein bottle ◮ Watergate

slide-94
SLIDE 94

Klein bottle

61/65

slide-95
SLIDE 95

Dualism

62/65

Subject vs Object

◮ old science ◮ prelude to modern phase: quantum mechanics, metamathematics,

science methodology, AI Use vs Mention

◮ symbols vs just be ◮ John Cage: Imaginary Landscape No.4 ◮ Ren´

e Magritte: Common Sense, The Two Mysteries

slide-96
SLIDE 96

Magritte: Common Sense

63/65

slide-97
SLIDE 97

Magritte: The Two Mysteries

64/65

slide-98
SLIDE 98

Self

65/65

◮ evidence, meta-evidence... → built-in hardware ◮ limitative theorems (G¨

  • del, Church, Turing, Tarski,. . . )

◮ imagine your own non-existence ◮ cannot be done fully, TNT does not contain its full meta-theory ◮ “self” necessary for free will ◮ strange loops necessary ◮ not non-determinism, but choice-maker: identification with a

high-level description of the process when program is running

◮ G¨

  • del, Escher, Bach