SlideShare a Scribd company logo
1 of 24
コンピュータは数学者になれるのか?
はじめに〜1+1=2まで
はじめに
• この本の目的
• 「証明とプログラム」をキーワードとして、数学基礎論とコンピュータ科学を論じる
• 否定的に語られることの多いP対NP問題や不完全性定理の肯定的側面に目を向ける
• 何となくの対応
数学基礎論 コンピュータ科学
目的 「数学する」ことを数学する 「計算する」ことを科学する
方法 証明 プログラム
(ある種の)
否定的側面
不完全性定理 P対NP問題
肯定的側面 無矛盾性証明 カリー・ハワード対応
数学者を作ろう
• 全体のお話の流れ
• ヒルベルト計画→不完全性定理→無矛盾性証明→コンピュータの発展→P対NP問題→
カリーハワード対応
• 1章の流れ
• 予備考察→人工言語の画定→推論規則の画定→最初の”数学者”の登場→”数学者”の育成
→ヒルベルト計画の解説
数学者とは何か
Q. 数学者とは何か?
A. 数学をする人。
Q. 数学をするとは何か?
A. 数学的真理を発見すること。
Q. 数学的真理とは何か?
A. 証明が与えられた数学的主張のこと。これを定理と呼ぶ。
まとめ:数学者の仕事は、真理を定理として証明すること
言語と推論規則
Q. 証明とは何か?
A. 公理から出発し、推論規則を用いて目的とする主張を導く過程を
言語を用いて記述したもの。
Q. どんな言語を使う?
A. 人工数学者にとって扱いやすい数学の言語を使う。
それは日本語や英語である必要はなく、
いわゆる数式や図形である必要もない。(後で詳しく定義)
Q. 公理?推論規則?
A. 公理とか定義とか推論規則とか、本当はいろいろあるけど、
ややこしいので今回は全部推論規則ってことにする。(これも後で定義)
初等数論から始めよう
数学の言語・推論規則は分野によって様々ある。(代数学、解析学、…)
集合論の言語を使えば全ての数学分野を記述できる!
が、かなりめんどくさいので今回は我慢。(僕の専門はこのあたり)
まずは自然数を語るための言語や推論規則を定める。(1階算術、初等数論)
0も自然数です!
自然数全体の集合を と書く。
= {0,1,2,3,…}
人工言語を画定する
等号 数論記号
等号 ゼロ 後続者 足し算 掛け算
論理記号
かつ または ならば 矛盾 すべて 存在
初等数論で用いる記号
変数 補助記号
変数 左括弧 右括弧 カンマ ピリオド
?
初等数論の言語
Q. 後続者って何だ?
(という気持ち)
それらをこんな風な省略表現で表す。
0,1,2,3,…
Q. 引き算とか割り算はいらないの?
A. ご心配なく。引き算割り算もこれらの記号の組み合わせで表現できます!
A. は「次の数」を表す記号。つまり、
これと さえあれば、すべての自然数を表すことができる!
項と論理式
項とは
数論記号と変数の組み合わせで書ける次のような表現を項と呼ぶ。
特に、 を数項と呼ぶ。(要するに数字のこと)
論理式とは
2つの項を等号で結んだものを原子論理式という。
原子論理式と論理記号を組み合わせたものを論理式という。
たとえば、
量化子
見たことないような、どこかで見たようなこいつら
は全称量化子、 は存在量化子という。たとえば、
左は、「すべてのxについて、2x=x+xである」
右は、「あるxが存在して、2x+3=7である」と読む。
組み合わさった時は順番がすごく大事!
左は、「どんな自然数にも、それより1大きい自然数が存在する」(真)
右は、「ある自然数が存在し、どんな自然数もそれより1大きい」(偽)
量化子
練習問題 答え
真っ当?
アイドル
そうだといいね
神
省略表現
色んなことが表現できそうだけど、書くのだるい
省略表現
省略表現
練習問題
数学の言語 日本語
6は素数ではない
素数は無限に多く存在する
双子素数は高々有限個しか存在しない
(双子素数予想)
4以上のどんな偶数も2つの素数の和で
表せる(ゴールドバッハ予想)
束縛変数と自由変数
束縛変数と自由変数とは
論理式の中に量化子つきで現れる変数を束縛変数、
そうでない変数を自由変数という。たとえば、
束縛変数 自由変数
また、自由変数を含まない論理式を文という。
文
文じゃない
文
量化子
変数
文の真偽
文の真偽とは
文 が真であることを と書く。
文 が偽であることを と書く。
今考えてるのは だよ、という気分
たとえば、
真偽は文に対しての概念だということに注意。たとえば、
という論理式に真偽の概念は無い。
有界論理式
有界論理式とは
論理式の中に含まれる量化子( )がすべて
や という形になっている論理式を有界論理式という。
また、有界論理式かつ文である論理式を有界文という。
論理式 有界論理式? 有界文?
yes No
yes yes
No No
yes No
yes yes
有界論理式
定理1.1
有界文の真偽は機械的に判定できる。すなわち次のような
コンピュータプログラム が存在する。 を有界文とするとき、
注意:存在するとは言ったが、計算時間やアルゴリズムについては何も言ってない。
有界文は本質的に有限の事柄しか表さない。
だから有界文に関する数学は有限の機械的作業に還元できる。
たとえば、prime(89951123570912252113512509135937513)だって
各自然数で割り切れるか順番に確かめていけば機械的に真偽が判定できる。
論理式と 論理式
論理式と 論理式とは
を有界論理式とするとき、
の形の論理式をそれぞれ 論理式、 論理式という。
また、自由変数を含まないものを 文、 文という。
量化子は1種類だけ!の1
ちょっと整理
項、数項、論理式、原子論理式、文、有界論理式、有界文、
論理式、 論理式、 文、 文…
言葉の整理
項 = 項
②
原子論理式
変数
数論記
号
項
数項
①
+
変数
+
③ 原子論理式
論理記
号
論理式
原子論理式
④
論理式
原子論理式
有界
文
論理式と 論理式
定理1.2
どんな 文 に対しても、次のようなプログラム が存在する。
定理1.2’
どんな 文 に対しても、次のようなプログラム が存在する。
たとえば、 論理式 ( は有界論理式)について考える。
に から順番に代入していけば、各 は有界文なので
定理1.1より機械的に真偽が判定できる。
したがって、 が真であれば、いつかは検証が完了する。
論理式と 論理式
定理(ド・モルガンの法則)
これを使うと、 論理式と 論理式は表裏一体であることが分かる。
ただ、正しさを確かめるのは 論理式の方が圧倒的に易しい。
公理と推論規則
公理と推論規則とは
公理:(証明の必要のない)前提
推論規則:前提から結論を導くルール
一般に、推論規則はこんな形をしている。
前提
結論
推論規則の名前
ところで、こんな推論規則も考えられる。
前提がない
これ公理じゃん!
等号の使い方を定める規則
練習問題
等号が推移的であることを証明せよ。
例題
等号が対称的であることを証明せよ。
仮定:
結論:
こんな感じの図形を証明図という
数論記号の使い方を定める規則
練習問題
1+1=2 を証明せよ。

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 

Featured (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Computation1