Math's Fundamental Flaw

Veritasium
22 May 202133:59

Summary

TLDR本文探讨了数学中的不确定性和不可判定性问题,从哥德尔不完备性定理和图灵机的概念出发,解释了为何存在无法证明的真命题。通过康威的生命游戏、量子物理和王瓷砖等例子,展示了不可判定性在不同领域的普遍存在。同时,介绍了数学家如希尔伯特、康托尔、罗素、哥德尔和图灵的贡献,以及他们的工作如何影响了现代计算机科学的诞生和发展。视频由Brilliant赞助,Brilliant是一个提供深入数学、物理和计算机科学主题的互动课程和测验的网站。

Takeaways

  • 🧩 数学中存在无法证明的真实陈述,这意味着我们永远无法确定地知道一切。
  • 🎲 双生素数猜想是一个可能永远无法证明或证伪的数学猜想,它关于存在无限多对双生素数。
  • 🕹 Conway的生命游戏展示了即使规则简单,系统也能产生复杂多变的行为,其模式的最终命运是不可判定的。
  • 🔢 Georg Cantor的集合论引入了可数无限和不可数无限的概念,改变了对无穷大的传统理解。
  • 📚 David Hilbert的23个问题中的前三个问题关注数学的完备性、一致性和可判定性,但哥德尔的不完备性定理和图灵的停机问题表明数学是既不一致也不可判定的。
  • 🤔 哥德尔的不完备性定理表明任何包含基本算术的数学系统都将包含无法证明的真实陈述。
  • 🔍 哥德尔的证明利用了自引用和哥德尔数来展示数学系统内部的某些陈述是不可证明的。
  • 🚫 图灵的停机问题证明了不存在一种算法能够确定任意图灵机在给定输入下是否会停止运行,这意味着数学是不可判定的。
  • 🔗 许多不同的系统,包括物理系统、量子力学、航空票务系统等,都存在不可判定的问题。
  • 💡 尽管数学存在不确定性,但对这些问题的思考推动了计算机科学的诞生和发展,影响了现代世界。

Q & A

  • 数学中存在无法确定的陈述意味着什么?

    -这意味着在数学系统中,有些真实陈述可能永远无法被证明或证伪。这表明数学知识的边界并不是完全确定的,总有一些问题可能超出了我们证明的能力。

  • 双生素数猜想是什么?

    -双生素数猜想是指存在无限多对相差2的素数对,例如(11, 13)和(17, 19)。尽管素数在数轴上出现的频率逐渐减少,但双生素数猜想认为双生素数对是无限的。

  • 康威的《生命游戏》如何展示了数学的不确定性?

    -《生命游戏》是一个简单的细胞自动机,通过两个规则在无限大的网格上演化。尽管规则简单,它却能产生复杂的行为模式。游戏的某些模式是不可判定的,意味着不存在一个算法能在有限时间内确定一个模式的最终命运,这展示了数学中的不确定性。

  • 康托尔的对角线论证是如何证明实数比自然数更多的?

    -康托尔的对角线论证通过构造一个新的实数,该实数与列表中的每个实数在至少一个数字上不同,从而证明了实数集合的基数大于自然数集合的基数,即使两者都是无限的。

  • 直觉主义者对数学的看法是什么?

    -直觉主义者认为数学是纯粹人类心智的创造,他们反对康托尔的集合论,认为数学应该是确定无疑的,并且反对接受无限集合的概念。

  • 罗素的悖论是什么?

    -罗素的悖论是通过考虑一个自引用的集合——即包含所有不包含自己的集合的集合——来展示的。这个悖论展示了如果一个集合可以包含自己,那么就会出现逻辑上的矛盾。

  • 图灵的停机问题是什么?

    -图灵的停机问题是指在没有实际运行程序的情况下,判断一个程序是否会在给定输入上无限循环或者最终停止的问题。这个问题是不可判定的,意味着不存在一个算法能够对所有可能的程序和输入给出正确答案。

  • 哥德尔不完备性定理对数学意味着什么?

    -哥德尔不完备性定理表明,任何足够强大的数学系统都不可能同时是完备的(每个真实陈述都有证明)和一致的(没有矛盾)。这意味着在数学中,总有一些真实的陈述无法被证明。

  • 为什么现代计算机可以追溯到图灵机的概念?

    -图灵机是一个抽象的计算模型,它能够模拟任何算法的计算过程。现代计算机的设计基于图灵完备性的概念,即任何图灵机能够执行的计算,现代计算机也能够执行,这使得计算机能够执行广泛的计算任务。

  • 希尔伯特的23个问题是什么?

    -希尔伯特的23个问题是大卫·希尔伯特在1900年提出的一系列未解决的数学问题,这些问题被认为对20世纪的数学发展有深远的影响。

  • 为什么说数学的底端有一个洞?

    -这个比喻指的是数学系统中存在一些无法确定的真理,即存在一些真实陈述无法被证明或证伪。这个“洞”表明了数学知识的局限性和不确定性。

  • 哥德尔的不完全性定理对数学家有什么影响?

    -哥德尔的不完全性定理对数学家产生了深远的影响,它改变了数学家对数学系统完备性和一致性的看法,也促进了对数学基础和逻辑极限的进一步探索。

Outlines

00:00

🔢 数学基础中的不确定性

本段讨论了数学中存在无法证明的真实陈述,如孪生素数猜想,即存在无限对的孪生素数。孪生素数是相差仅一个整数的素数对,例如11和13。尽管素数在数轴上出现的频率逐渐减少,但孪生素数猜想认为它们永远不会耗尽。然而,这个猜想至今未被证明或证伪。更令人惊讶的是,数学系统中存在无法证明的真实陈述,这是由于在任何可以进行基本算术的数学系统中,总有一些真实陈述是无法证明的。

05:00

🎮 康威的生命游戏与不可判定性

康威的生命游戏是一种在无限格子上进行的细胞自动机游戏,每个格子可以是活的或死的,并且遵循两条简单规则:1) 任何死细胞,如果恰好有三个活邻居,就会变成活的;2) 任何活细胞,如果邻居少于两个或多于三个,就会死亡。这个游戏虽然规则简单,但可以产生复杂多变的行为模式,有些模式稳定不变,有些循环振荡,有些如滑翔机模式可以永远穿越网格。然而,确定一个模式最终是稳定还是无限增长的问题,是不可判定的,即不存在有限时间内总能给出答案的算法。

10:04

🔍 哥德尔不完备性定理与数学的局限性

20世纪初,数学家们开始质疑数学的基础。非欧几何的发现和康托尔关于无穷的研究,使得数学家们意识到数学的极限概念定义不清,无穷本身也比想象中复杂。哥德尔的不完备性定理证明了任何能够进行基本算术的数学系统都将包含无法证明的真实陈述,这意味着数学系统无法是完备的。此外,哥德尔的第二不完备性定理表明,任何一致的数学系统不能证明它自身的一致性,因此数学系统可能在未来发现矛盾。

15:07

👨‍💻 图灵机与计算理论

图灵机是图灵为解决希尔伯特的可判定性问题而提出的抽象计算模型,它由一个无限长的纸带、读写头、一组内部状态和转移规则组成。图灵机可以执行任何可计算算法,包括复杂的数学证明和现代计算机算法。图灵通过构造一个停机问题的悖论,证明了不存在一种算法能够确定任意图灵机是否会停机,从而解决了数学的可判定性问题,表明数学是不可判定的。

20:14

🛰️ 不可判定性在现实世界的应用

不可判定性的概念不仅限于数学和逻辑,它也出现在物理、量子力学等领域。例如,量子力学中的能隙问题,即确定一个多体系统是否有能隙,已被证明是不可判定的。这意味着即使完全了解一个物质的微观粒子间的相互作用,也不一定能确定其宏观属性。

25:17

🌐 图灵完备性与现代计算设备

图灵完备性是指一个系统能够执行任何图灵机能够执行的计算。现代计算机和许多编程语言都是图灵完备的,这意味着它们能够执行任何可计算算法。图灵机的概念不仅影响了计算机科学的发展,而且也启发了现代计算设备的设计。

30:17

🕊️ 数学和计算的深远影响

尽管数学存在不确定性和不可判定性,但这并没有导致数学的崩溃,反而激发了对无穷的新理解,改变了第二次世界大战的进程,并直接导致了你现在正在使用的设备——计算机的发明。图灵的计算理论不仅帮助破解了纳粹密码,缩短了战争,还与冯·诺依曼一起设计了世界上第一台可编程电子计算机ENIAC。

Mindmap

Keywords

💡Twin Prime Conjecture

双素数猜想是关于素数分布的一个未解数学问题,它假设有无限对的双素数,即一对素数,它们之间仅相差2,例如(11, 13)和(17, 19)。视频中提到,尽管双素数在自然数中出现的频率逐渐降低,但双素数猜想认为这样的素数对是无限的,且至今没有被证明或反驳,体现了数学中存在无法证明的真实陈述。

💡Game of Life

康威的生命游戏是由英国数学家约翰·霍顿·康威在1970年发明的一种细胞自动机。它在无限的方格网格上进行,每个格子可以是“活”或“死”两种状态,根据两条简单规则进行演化:一是任何死细胞,如果恰好有三个活邻居,就会变成活细胞;二是任何活细胞,如果少于两个或多于三个邻居,就会死去。这个游戏虽然规则简单,但能产生复杂多变的模式,有些模式稳定不变,有些循环振荡,有些则永远移动或增长,展示了简单规则下可能出现的不可预测性和复杂性。

💡Undecidability

不可判定性是指在某些数学系统中存在无法通过任何算法在有限时间内判定的问题。视频中提到,康威的生命游戏的最终命运是不可判定的,意味着不存在一个算法能够保证对游戏中的任何模式最终状态给出答案。此外,不可判定性也出现在其他系统中,如量子物理、机票预订系统等,这表明不可判定性是一个普遍现象。

💡Georg Cantor

格奥尔格·康托尔是德国数学家,集合论的创始人。他在1874年发表了关于集合论的论文,提出了自然数集和实数集大小的比较问题,并通过著名的对角线论证法证明了实数集比自然数集有“更多”的元素,即存在不可数无限集。康托尔的工作对数学的基础产生了深远影响,引发了数学界的大辩论,并为后来的逻辑和计算机科学奠定了基础。

💡Set Theory

集合论是数学的一个分支,研究集合(即明确定义的事物集合)。康托尔在1874年发表的论文中提出了集合论,它成为了现代数学的基础之一。集合论不仅研究集合的大小,还研究集合之间的运算和关系。集合论的发展对数学产生了革命性的影响,尤其是在理解无限概念方面。

💡David Hilbert

大卫·希尔伯特是德国数学家,对20世纪初的数学发展产生了巨大影响。他提出了著名的希尔伯特的23个问题,这些问题指导了一个世纪的数学研究。希尔伯特主张形式主义,认为数学可以建立在集合论等牢固的逻辑基础之上。他试图通过形式系统来解决数学的完整性、一致性和可判定性问题,但哥德尔的不完全性定理证明了希尔伯特的形式系统无法实现其目标。

💡Gödel's Incompleteness Theorems

哥德尔的不完全性定理是逻辑和数理逻辑中的重要发现,由库尔特·哥德尔在1931年提出。第一不完全性定理表明在任何包含基本算术的一致形式系统内,都存在这样的命题:这个命题既不能被证明为真,也不能被证明为假。第二不完全性定理指出,一个系统如果是一致的,它就无法证明自身的一致性。哥德尔的定理对希尔伯特的形式主义计划产生了致命打击,表明了数学系统的局限性。

💡Turing Machine

图灵机是由艾伦·图灵提出的一种抽象计算模型,用于定义什么是可计算的。图灵机由一个无限长的纸带、一个读写头、一套控制规则和一个状态寄存器组成。它可以模拟任何算法过程,是现代计算机的基础。图灵机的概念帮助证明了数学的不可判定性问题,即不存在一个通用算法来确定一个给定的数学命题是否可证明。

💡Alan Turing

艾伦·图灵是英国数学家、逻辑学家、密码学家,被誉为计算机科学和人工智能之父。在第二次世界大战期间,图灵在布莱切利园领导了一个团队,成功破解了德国的恩尼格玛密码机,对战争胜利起到了重要作用。战后,图灵继续在计算机科学领域工作,参与了早期计算机的设计与开发。然而,由于当时英国对同性恋的法律歧视,图灵被迫接受化学阉割,并在1954年自杀。

💡Halting Problem

停机问题是图灵在研究可计算性理论时提出的一个著名问题,即判断一个图灵机是否会在有限步骤后停止,或者它会无限循环下去。图灵证明了停机问题是不可解的,即不存在一个通用算法能够预测所有程序在所有可能的输入下是否停机。这个问题与数学的可判定性问题紧密相关,也是现代计算机科学中的一个基本概念。

Highlights

数学中存在一个无法确定的洞,意味着我们永远无法确定地知道一切,总有一些真实的陈述无法被证明。

双生素数猜想是关于存在无限多对双生素数的猜想,但至今未被证明或证伪。

哥德尔证明了在任何可以进行基本算术的数学系统中,总会有一些真实陈述是无法证明的。

康威的生命游戏是一个简单的零玩家游戏,但能产生复杂多变的行为模式。

生命游戏中的模式最终命运是不可判定的,没有算法能在有限时间内确定其命运。

哥德尔的不完全性定理表明,任何能够进行基本算术的数学系统都将包含无法证明的真实陈述。

图灵机是现代计算机的基础,它展示了计算的本质和限制。

图灵证明了停机问题是不可判定的,即无法总是确定一个程序是否会停止。

希尔伯特的23个问题中的前三个问题关注数学的完备性、一致性和可判定性。

哥德尔的不完全性定理和图灵的停机问题表明数学可能既不一致也不完备,且不可判定。

量子力学中的能隙问题也是不可判定的,表明物理系统也存在类似数学的复杂性。

图灵完备性表明,任何足够强大的计算系统都包含类似停机问题的不可判定问题。

康威的生命游戏在图灵机内部运行,展示了自我模拟的能力。

希尔伯特的梦想和哥德尔、图灵的工作最终导致了现代计算设备的发明。

哥德尔和图灵的个人生活遭遇反映了他们所处时代的社会问题。

数学中的不确定性和不可判定性并没有导致数学的崩溃,反而推动了新发现和计算机科学的诞生。

Brilliant网站提供深入的互动课程和测验,帮助人们探索数学、物理和计算机科学等领域。

Transcripts

play00:00

There is a hole at the bottom of math

play00:04

a hole that  means we will never know everything with certainty

play00:09

There will always be true statements that  cannot be proven.

play00:14

Now no one knows what those statements are exactly

play00:17

but they could be something like the Twin Prime Conjecture.

play00:20

Twin primes are prime numbers that are separated  by just one number like 11 and 13, or 17 and 19.

play00:27

And as you go up the number line primes occur less  frequently and twin primes are rarer still.

play00:34

But the Twin Prime Conjecture is that there are infinitely  many twin primes.

play00:38

You never run out them.

play00:41

As of right now no one has proven this conjecture true or false.

play00:46

But the crazy thing is this: we may never know

play00:51

because what has been proven is that in any system  of mathematics where you can do basic arithmetic

play00:57

there will always be true statements  that are impossible to prove.

play01:03

That is life.

play01:07

Specifically this is the Game of Life,  created in 1970 by mathematician John Conway

play01:13

Sadly he passed away in 2020 from covet  19. Conway's game of life is played on an

play01:20

infinite grid of square cells each of which is  either live or dead and there are only two rules

play01:28

one any dead cell with exactly three neighbors  comes to life and two any living cell with less

play01:35

than two or more than three neighbors dies once  you've set up the initial arrangement of cells

play01:42

the two rules are applied to create the  next generation and then the one after that

play01:46

and the one after that and so on it's totally  automatic Conway called it a zero player game

play01:53

but even though the rules are simple the game  itself can generate a wide variety of behavior

play01:59

some patterns are stable once they arise they  never change others oscillate back and forth in a

play02:05

loop a few can travel across the grid forever like  this glider here many patterns just fizzle out

play02:18

but a few keep growing forever  they keep generating new cells

play02:25

now you would think that given the  simple rules of the game you could just

play02:28

look at any pattern and determine what will happen  to it will it eventually reach a steady state

play02:34

or will it keep growing without limit but it  turns out this question is impossible to answer

play02:42

the ultimate fate of a pattern in Conway's  game of life is undecidable meaning there

play02:48

is no possible algorithm that is guaranteed to  answer the question in a finite amount of time

play02:54

you could always just try running the pattern and  see what happens i mean the rules of the game are

play02:58

a kind of algorithm after all but that's not  guaranteed to give you an answer either because

play03:04

even if you run it for a million generations  you won't be able to say whether it'll last

play03:08

forever or just 2 million generations  or a billion or a googleplex

play03:14

is there something special about the game of life  that makes it undecidable nope there are actually

play03:21

a huge number of systems that are undecidable  like Wang tiles quantum physics airline ticketing

play03:28

systems and even magic the gathering to understand  how undecidability shows up in all of these places

play03:36

we have to go back 150 years to a  full-blown revolt in mathematics

play03:45

in 1874 Georg Cantor a german mathematician  published a paper that launched a new branch

play03:51

of mathematics called set theory a set is  just a well-defined collection of things

play03:57

so the two shoes on your feet are a set as are  all the planetariums in the world there's a set

play04:03

with nothing in it the empty set and a set with  everything in it now Cantor was thinking about

play04:09

sets of numbers like natural numbers positive  integers like 1 2 3 4 and so on and real numbers

play04:17

which include fractions like a third five  halves and also irrational numbers like pi e

play04:23

and the square root of two basically any number  that can be represented as an infinite decimal

play04:30

he wondered are there more natural numbers  or more real numbers between zero and one

play04:38

the answer might seem obvious there are  an infinite number of each so both sets

play04:43

should be the same size but to check this logic  canter imagined writing down an infinite list

play04:49

matching up each natural number on one side with  a real number between zero and one on the other

play04:54

now since each real number is an infinite decimal  there is no first one so we can just write them

play05:00

down in any random order the key is to make sure  we get them all with no duplicates and line them

play05:06

up one to one with an integer if we can do that  with none left over well then we know that the

play05:13

set of natural numbers and the set of real numbers  between 0 and 1 are the same size so assume we've

play05:20

done that we have a complete infinite list with  each integer acting like an index number a unique

play05:26

identifier for each real number on the list now  Cantor says start writing down a new real number

play05:34

and the way we're going to do it is by taking the  first digit of the first number and adding one

play05:40

then take the second digit of the second number  and again add one take the third digit of the

play05:45

third number add one and keep doing this all the  way down the list if the digit is a nine just roll

play05:51

it back to an eight and by the end of this process  you'll have a real number between zero and one but

play05:58

here's the thing this number won't appear anywhere  on our list it's different from the first number

play06:05

in the first decimal place different from the  second number in the second decimal place and

play06:09

so on down the line it has to be different from  every number on the list by at least one digit

play06:15

the number on the diagonal that's why this  is called Cantor's diagonalization proof

play06:22

it shows there must be more real numbers between  0 and 1 then there are natural numbers extending

play06:29

out to infinity so not all infinities are the same  size Cantor call these countable and uncountable

play06:38

infinities respectively and in fact there are many  more uncountable infinities which are even larger

play06:44

now Cantor's work was just the latest blow to  mathematics for 2000 years Euclid's elements

play06:49

were considered the bedrock of the discipline but  at the turn of the 19th century Lobashevsky and

play06:55

gauss discovered non-Euclidean geometries and  this prompted mathematicians to examine more

play07:00

closely the foundations of their field and they  did not like what they saw the idea of a limit

play07:07

at the heart of calculus turned out to be poorly  defined and now Cantor was showing that infinity

play07:13

itself was much more complex than anyone had  imagined in all this upheaval mathematics

play07:19

fractured and a huge debate broke out among  mathematicians at the end of the 1800s on the

play07:24

one side were the intuitionists who thought that  Cantor's work was nonsense they were convinced

play07:30

that math was a pure creation of the human mind  and that infinities like Cantors weren't real

play07:37

Henri Poincaré said that later generations will  regard set theory as a disease from which one

play07:42

has recovered Leopold Kronecker called Cantor a  scientific charlatan and a corrupter of the youth

play07:49

and he worked to keep Cantor from getting a job  he wanted on the other side were the formalists

play07:55

they thought that math could be put on absolutely  secure logical foundations through Cantor's set

play08:00

theory the informal leader of the formalists  was the german mathematician David Hilbert

play08:06

Hilbert was a living legend a hugely influential  mathematician who had worked in nearly every area

play08:12

of mathematics he almost beat Einstein to the  punch on general relativity he developed entirely

play08:17

new mathematical concepts that were crucial for  quantum mechanics and he knew that Cantor's work

play08:22

was brilliant Hilbert was convinced that a more  formal and rigorous system of mathematical proof

play08:28

based on set theory could solve all the issues  that had cropped up in math over the last century

play08:34

and most other mathematicians agreed with him no  one shall expel us from the paradise that Cantor

play08:39

has created Hilbert declared but in 1901 Bertrand  Russell pointed out a serious problem in Cantor's

play08:46

set theory Russell knew that if sets can contain  anything they can contain other sets or even

play08:52

themselves for example the set of all sets must  contain itself as does the set of sets with more

play08:59

than five elements in them you could even talk  about the set of all sets that contain themselves

play09:04

but this leads straight to a problem what about r  the set of all sets that don't contain themselves

play09:12

if r doesn't contain itself well then it must  contain itself but if r does contain itself

play09:18

then by definition it must not contain itself so r  contains itself if and only if it doesn't Russell

play09:27

had found another paradox of self-reference and  he later explained his paradox using a hairy

play09:33

analogy let's say there's a village populated  entirely by grown men with a strange law against

play09:39

beards specifically the law states that the  village barber must shave all and only those men

play09:44

of the village who do not shave themselves but the  barber himself lives in the village too of course

play09:51

and he's a man so who shaves him if he doesn't  shave himself then the barber has to shave him

play09:58

but the barber can't shave himself because the  barber doesn't shave anyone who shaves themselves

play10:03

so the barber must shave himself if and only if  he doesn't shave himself it's a contradiction

play10:11

the intuitionists rejoiced at Russell's  paradox thinking it had proven set theory

play10:15

hopelessly flawed but zermelo and other  mathematicians from Hilbert school

play10:20

solved the problem by restricting the concept of  a set so the collection of all sets for example is

play10:26

not a set anymore and neither is the collection  of all sets which don't contain themselves

play10:31

this eliminated the paradoxes that  come with self-reference Hilbert and

play10:35

the formalists lived to fight another day but  self-reference refused to die quite that easily

play10:43

fast forward to the 1960s and mathematician Hao  Wang was looking at square tiles with different

play10:48

colors on each side like these the rules were  that touching edges must be the same color

play10:54

and you can't rotate or reflect tiles only slide  them around the question was if you're given an

play11:00

arbitrary set of these tiles can you tell if they  will tile the plane that is will they connect

play11:06

up with no gaps all the way out to infinity it  turns out you can't tell for an arbitrary set of

play11:13

tiles whether they will tile the plane or not  the problem is undecidable just like the fate

play11:20

of a pattern in Conway's game of life in fact  it's exactly the same problem and that problem

play11:26

ultimately comes from self-reference as Hilbert  and the formalists were about to discover

play11:33

Hilbert wanted to secure the foundations of  mathematics by developing a new system for

play11:38

mathematical proofs systems of proof were an old  idea going back to the ancient greeks a system of

play11:44

proof starts with axioms basic statements that  are assumed to be true like a straight line can

play11:49

be drawn between any two points proofs are then  constructed from those axioms using rules of

play11:55

inference methods for using existing statements  to derive new statements and these are chosen to

play12:00

preserve truth the existing statements are true  then so are the new ones Hilbert wanted a formal

play12:07

system of proof a symbolic logical language with a  rigid set of manipulation rules for those symbols

play12:13

logical and mathematical statements could then  be translated into this system if you drop a

play12:18

book then it will fall would be a then b and no  human is immortal would be expressed like this

play12:28

Hilbert and the formalists wanted to express  the axioms of mathematics as symbolic statements

play12:32

in a formal system and set up the rules  of inference as the system's rules for

play12:37

symbol manipulation so Russell  along with Alfred North Whitehead

play12:42

developed a formal system like this in  their three-volume Principia Mathematica

play12:46

published in 1913. Principia Mathematica is vast a  total of nearly 2 000 pages of dense mathematical

play12:54

notation it takes 762 pages just to get to a  complete proof that one plus one equals two

play13:03

at which point Russell and Whitehead dryly note  the above proposition is occasionally useful

play13:09

the authors had originally planned  a fourth volume but unsurprisingly

play13:13

they were too worn out to complete it so yes  the notation is dense and exhausting but it is

play13:20

also exact unlike ordinary languages it leaves  no room for errors or fuzzy logic to creep in

play13:28

and most importantly it allows you to prove  properties of the formal system itself

play13:36

there were three big questions that  Hilbert wanted answered about mathematics

play13:40

number one is math complete meaning is there a  way to prove every true statement does every true

play13:48

statement have a proof number two is mathematics  consistent meaning is it free of contradictions

play13:56

i mean if you can simultaneously prove a and not  a then that's a real problem because you can prove

play14:03

anything at all and number three is math  decidable meaning is there an algorithm that

play14:10

can always determine whether a statement follows  from the axioms now Hilbert was convinced that

play14:17

the answers to all three of these questions was  yes at a major conference in 1930 Hilbert gave

play14:25

a fiery speech about these questions he ended it  with a line that summed up his formalist dream in

play14:31

opposition to the foolish ignorabimus which means we  will not know our slogan shall be we must know we

play14:39

will know these words are literally on his grave  but by the time Hilbert gave this speech his dream

play14:48

was already crumbling just the day before at a  small meeting at the same conference a 24 year old

play14:54

logician named Kurt Gödel explained that he had  found the answer to the first of Hilbert's three

play14:59

big questions about completeness and the answer  was no a complete formal system of mathematics

play15:06

was impossible the only person who paid much  attention was John von Neumann one of Hilbert's

play15:12

former students who pulled Gödel aside to ask a  few questions but the next year Gödel published

play15:17

a proof of his incompleteness theorem and this  time everyone including Hilbert took notice

play15:29

this is how Gödel's proof works Gödel  wanted to use logic and mathematics

play15:35

to answer questions about the very system  of logic and mathematics and so he took

play15:43

all these basic symbols of a mathematical  system and then he gave each one a number

play15:51

this is known as the symbol's Gödel number  so the symbol for not gets the number one

play15:58

or has the Gödel number two if then it's Gödel  number three now if you're expressing all of these

play16:05

symbols with numbers then what do you do about  the numbers themselves well zero gets its own

play16:11

Gödel number six and if you want to write a one  you just put this successor symbol next to it the

play16:18

immediate successor of zero is 1. and if you  want to write 2 then you have to write ss0

play16:26

and that represents 2 and so on so you could  represent any positive integer this way

play16:31

granted it is cumbersome but it works  and that is the point of this system

play16:36

so now that we have Gödel numbers for all of  the basic symbols and all of the numbers we might

play16:42

want to use we can start to write equations  like we could write zero equals zero so these

play16:50

symbols have the Gödel numbers six five six and  we can actually create a new card that represents

play16:59

this equation zero equals zero and the way we  do it is we take the prime numbers starting at 2

play17:07

and we raise each one to the power of the Gödel  number of the symbol in our equation so we have

play17:14

2 to the power of 6 times 3 to the power of 5  times 5 to the power of 6 equals 243 million

play17:21

so 243 million is the Gödel number  of the whole equation zero equals

play17:29

zero we can write down Gödel numbers for  any set of symbols that you can imagine

play17:36

so really this is an infinite deck of cards where  any set of symbols that you want to write down

play17:42

in a sequence you can represent with a unique  Gödel number and the beauty of this Gödel

play17:48

number is you can do a prime factorization of it  and you can work out exactly what symbols made up

play17:55

this card so in this whole pack of cards  there are going to be true statements

play18:01

and there are going to be false statements so how  do you prove that something is true well you need

play18:07

to go to the axioms the axioms also have their own  Gödel numbers which are formed in the same way

play18:15

so here's an axiom which says not the successor of  any number x equals zero which makes sense because

play18:24

in this system there are no negative numbers and  so the successor of any number cannot be zero

play18:30

so we can put down this axiom and then we can  substitute in zero for x saying that one does not

play18:38

equal zero and we've created a proof this is the  simplest proof i can think of that shows that one

play18:46

does not equal zero now this card for the proof of  one does not equal zero gets its own Gödel number

play18:54

and the way we calculate this Gödel number  is just as before we take the prime numbers

play18:59

and we raise 2 to the power of the axiom times  3 to the power of 1 does not equal 0 and we get

play19:08

a tremendously large number it would have 73  million digits if you calculated it all out so

play19:14

i've just left it here in exponential notation as  you can see these numbers get very large and so

play19:22

you might want to start just calling them by  letters so we could say this one is Gödel

play19:27

number a this is Gödel number b Gödel number  c and so on Gödel goes to all this trouble to find

play19:36

this card which says there is no proof for the  statement with Gödel number g the trick is

play19:46

that the Gödel number of this card is  g so what this statement is really saying

play19:53

is this card is unprovable there is no proof  anywhere in our infinite deck for this card

play20:01

now think about it if it's  false and there is a proof

play20:05

then what you have just proven is there is  no proof so you're stuck with a contradiction

play20:14

that would mean the mathematical system is  inconsistent the other alternative is that

play20:20

this card is true there is no proof for the  statement with Gödel number g but that means

play20:26

this mathematical system has true statements  in it that have no proof so your mathematical

play20:33

system is incomplete and that is Gödel's  incompleteness theorem this is how he shows

play20:40

that any basic mathematical system that can do  fundamental arithmetic will always have statements

play20:47

within it which are true but which have no proof  there's a line in the tv show the office that

play20:55

echoes the self-referential paradox of Gödel's  proof jim is my enemy but it turns out the jim

play21:01

is also his own worst enemy and the enemy of my  enemy is my friend so jim is actually my friend

play21:09

but because he is his own worst enemy the enemy

play21:13

of my friend is my enemy so  actually jim is my enemy but

play21:22

Gödel's incompleteness theorem means that  truth and provability are not at all the same

play21:28

thing Hilbert was wrong there will always be true  statements about mathematics that just cannot

play21:34

be proven now Hilbert could console himself with  the hope that at least we could still prove maths

play21:39

consistent that is free of contradictions  but then Gödel published his second

play21:44

incompleteness theorem in which he showed  that any consistent formal system of math

play21:49

cannot prove its own consistency so taken together  Gödel's two incompleteness theorems say that the

play21:56

best you can hope for is a consistent yet  incomplete system of math but a system like

play22:03

that cannot prove its own consistency so some  contradiction could always crop up in the future

play22:08

revealing that the system you'd been working with  had been inconsistent the whole time and that

play22:13

leaves only the third and final big question from  Hilbert is mathematics decidable that is is there

play22:19

an algorithm that can always determine whether  a statement follows from the axioms and in 1936

play22:26

Alan Turing found a way to settle this question  but to do it he had to invent the modern computer

play22:34

in his time computers weren't machines  they were people often women who carried

play22:39

out long and tedious calculations Turing  imagined an entirely mechanical computer

play22:45

he wanted it to be powerful enough to perform any  computation imaginable but simple enough that you

play22:51

could reason through its operation so he came up  with a machine that takes as input an infinitely

play22:57

long tape of square cells each containing a zero  or a one the machine has a read write head that

play23:04

can read one digit at a time then it can perform  one of only a few tasks overwrite a new value

play23:13

move left move right or simply halt  halting means the program has run

play23:19

to completion the program consists of a set of  internal instructions you can think of it like

play23:25

a flow chart that tells the machine what to do  based on the digit it reads and its internal state

play23:32

you could imagine exporting these instructions to  any other Turing machine which would then perform

play23:37

in exactly the same way as the first although  this sounds simple a Turing machine's arbitrarily

play23:43

large memory and program mean it can execute any  computable algorithm if given enough time from

play23:50

addition and subtraction to the entire youtube  algorithm it can do anything a modern computer can

play23:58

that's what made the Turing machine so useful in  answering Hilbert's question on decidability when

play24:04

a touring machine halts the program has finished  running and the tape is the output but sometimes a

play24:10

touring machine never halts maybe it gets stuck in  an infinite loop is it possible to tell beforehand

play24:16

if a program will halt or not on a particular  input Turing realized this halting problem

play24:22

was very similar to the decidability problem if  he could find a way to figure out if a Turing

play24:26

machine would halt then it would also be possible  to decide if a statement followed from the axioms

play24:33

for example you could solve the twin prime  conjecture by writing a Turing machine program

play24:37

that starts with the axioms and constructs  all theorems that can be produced in one step

play24:42

using the rules of inference then it constructs  all theorems that can be produced in one step

play24:47

from those and so on each time it generates a  new theorem it checks if it's the twin prime

play24:52

conjecture and if it is it halts if not it never  halts so if you could solve the halting problem

play25:00

you could solve the twin prime conjecture  and all sorts of other unsolved questions

play25:05

so Turing said let's assume we can make a  machine h that can determine whether any

play25:10

Turing machine will halt or not on a particular  input you insert the program and its input

play25:16

and h simulates what will happen printing out  either halts or never halts for now we don't worry

play25:24

about how h works we just know that it always  works it always gives you the right answer now

play25:30

we can modify the h machine by adding additional  components one if it receives the output halts

play25:37

immediately goes into an infinite loop another if  it receives never holds then it immediately halts

play25:45

we can call this entire new machine h plus and  we can export the program for that entire machine

play25:54

now what happens if we give this machine  its own code both as program and input

play26:02

well now h is simulating what h plus  would do given its own input essentially h

play26:09

has to determine the behavior of a machine  that it itself is a part of in this exact

play26:16

circumstance if h concludes that h plus never  halts well this makes h plus immediately halt

play26:28

if h thinks h plus will halt well then  that necessarily forces h plus to loop

play26:38

whatever output the halting machine h gives it  turns out to be wrong there's a contradiction

play26:47

the only explanation can be that a machine like  h can't exist there's no way to tell in general

play26:53

if a touring machine will halt or not on a given  input and this means mathematics is undecidable

play27:02

there is no algorithm that can always determine  whether a statement is derivable from the axioms

play27:08

so something like the twin prime conjecture  might be unsolvable we might never know

play27:14

whether there are infinite twin primes or not  the problem of undecidability even crops up

play27:20

in physical systems in quantum mechanics one  of the most important properties of a many-body

play27:26

system is the difference in energy between  its ground state and its first excited state

play27:31

this is known as the spectral gap some systems  have a significant spectral gap whereas others

play27:37

are gapless there are a continuum of energy levels  all the way down to the ground state and this is

play27:44

important because at low temperatures gapless  quantum systems can undergo phase transitions

play27:49

while gapped systems cannot they don't have  the energy needed to overcome the spectral gap

play27:54

but figuring out if a system is gapped or gapless  has long been known to be a very difficult

play28:02

problem only recently in 2015 did mathematicians  prove that in general the spectral gap question

play28:10

is undecidable to quote the authors even a  perfect complete description of the microscopic

play28:17

interactions between a material's particles is not  always enough to deduce its macroscopic properties

play28:24

now remember that Turing designed his machines to  be as powerful computers as it is possible to make

play28:30

to this day the best computational systems are  those that can do everything a touring machine can

play28:36

this is called touring completeness and it turns  out there are many such during complete systems

play28:43

although they are powerful every touring complete  system comes with a catch its own analog of the

play28:49

halting problem some undecidable property of  the system Wang tiles are touring complete their

play28:55

halting problem is whether or not they'll tile the  plane complex quantum systems are Turing complete

play29:01

and their halting problem is the spectral gap  question and the game of life is Turing complete

play29:07

its halting problem is literally whether or  not it halts there are many more examples

play29:13

of this like airline ticketing systems magic the  gathering powerpoint slides and excel spreadsheets

play29:19

nearly every programming language in existence is  designed to be Turing complete but in theory we

play29:25

only need one programming language because  well you can program anything at all using

play29:29

any Turing complete system so here's a touring  machine inside the game of life and since the

play29:42

game of life is itself touring complete it should  be capable of simulating itself and indeed it is

play29:56

this is the game of life  running on the game of life

play30:09

the real legacy of David Hilbert's dream  is all of our modern computational devices

play30:16

Kurt Gödel suffered bouts of mental instability  later in life convinced that people were trying

play30:22

to poison him he refused to eat eventually  starving himself to death Hilbert died in 1943

play30:31

his epitaph was his slogan from 1930. we must know  we will know the truth is we don't know sometimes

play30:41

we can't know but in trying to find out we can  discover new things things that change the world

play30:49

Alan Turing put his ideas about computing to  practical use in world war ii leading the team

play30:54

at Bletchley Park that built real calculating  machines to crack nazi codes for the allies

play30:59

by one estimate the intelligence Turing and  his colleagues gathered from decrypted messages

play31:04

shortened the war by two to four years after  the war Turing and John von Neumann designed

play31:10

the first true programmable electronic  computer eniac based on touring's designs

play31:16

but Turing didn't live to see  his ideas develop much further

play31:20

in 1952 the british government convicted him of  gross indecency upon learning he was gay he was

play31:26

stripped of his security clearance and forced  to take hormones in 1954 he committed suicide

play31:36

touring changed the world he is widely  considered to be the most important founding

play31:41

figure in computer science all modern  computers are descended from his designs

play31:46

but touring's ideas about computability  came from his concept of the Turing machine

play31:52

which came from thinking about Hilbert's question  is math decidable so touring's code breaking

play31:58

machines and indeed all modern computers stem from  the weird paradoxes that arise from self-reference

play32:07

there is a hole at the bottom of math a hole that  means we will never know everything with certainty

play32:14

there will always be true  statements that cannot be proven

play32:18

and you might think this realization  would have driven mathematicians mad

play32:22

and led to the disintegration of the entire  mathematical enterprise but instead thinking

play32:27

about this problem transformed the concept  of infinity changed the course of a world war

play32:33

and led directly to the invention of the  device you're watching this on right now

play32:47

hey this video was sponsored by brilliant a  website full of interactive courses and quizzes

play32:51

that delve deep into topics like math physics and  computer science now if you've gotten this far

play32:57

into this video you're likely someone who would  love brilliant i've been going through their

play33:01

logic course and it's really got me thinking  the problems start out easy but get more and

play33:07

more challenging as you develop your understanding  and that's what i love about the site i love how

play33:12

it guides you not by telling you exactly but by  exposing you to increasingly sophisticated puzzles

play33:18

and at the end i feel like i've worked it out  for myself which essentially i have through

play33:22

their carefully curated selection of problems  and with helpful hints and explanations for

play33:26

when i get stuck now there were a lot of things  i wanted to include in this video but couldn't

play33:32

because it's already over half an hour long so if  you want to explore these ideas further i'd highly

play33:38

recommend their courses on number theory and  computer science fundamentals for viewers of this

play33:43

channel brilliant are offering 20 off an annual  subscription to the first 200 people to sign up

play33:48

just go to brilliant.org veritasium and i  will put that link down in the description

play33:54

so i want to thank brilliant for sponsoring  veritasium and i want to thank you for watching

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
数学哲学无限概念图灵机计算理论哥德尔不完备性希尔伯特问题量子力学逻辑悖论计算机科学科学发展
هل تحتاج إلى تلخيص باللغة الإنجليزية؟