What is "mathematics in programming?"
Some well-known facts in mathematics are difficult to prove using a computer.
For example, the Leibniz series
1 - 1/3 + 1/5 - 1/7 + ...
is exactly equal to π/4, but calculating this series directly is impossible because it requires infinite computation.
However, from the theorems of analysis, this equality can be shown. Thus, if all these theorems are formulated in terms of logic symbols, the proof is reduced to a finite algorithm.
Some might say that a "proof assistant" or "theorem prover" would make this possible.
However, the language of proof assistants is too complicated to describe proofs of non-fundamental theorems, so proof assistants are used only to check proofs that have already been solved.
This is far from doing mathematics.
My question is where do mathematical ideas come from and whether programming can help yield them?
探検
How to do Math in programming
2024/03/21(木) 09:41:43.97ID:85WuJ+Bw
2024/03/21(木) 10:47:44.36ID:8aAFTiSh
fuck your asshole
2024/03/21(木) 11:56:07.97ID:etpddAIY
Theorem Proving in Lean 4 日本語訳
https://aconite-ac.github.io/theorem_proving_in_lean4_ja/title_page.html
定理証明なら、今はCoqよりこっちなんかな
https://aconite-ac.github.io/theorem_proving_in_lean4_ja/title_page.html
定理証明なら、今はCoqよりこっちなんかな
2024/03/21(木) 12:07:26.54ID:etpddAIY
依存型を使った定理証明入門
https://zenn.dev/blackenedgold/books/introduction-to-idris/viewer/theorem-prooving
定理証明の流れは
命題を型に変換する
型がnon-emptyであることを示す
なので、実行時に型チェックすれば動的型付け言語でも証明はできるわけか
ただ、全称型とか存在型とかをどうやって表すのかがわからない
https://zenn.dev/blackenedgold/books/introduction-to-idris/viewer/theorem-prooving
定理証明の流れは
命題を型に変換する
型がnon-emptyであることを示す
なので、実行時に型チェックすれば動的型付け言語でも証明はできるわけか
ただ、全称型とか存在型とかをどうやって表すのかがわからない
2024/03/21(木) 23:49:19.66ID:qInfXZgz
より直感的なシンタックスと、命題のインタフェースを簡単に変換できる機能がほしいな
2024/03/23(土) 09:58:52.52ID:vizf8omG
命題 → 型
偽 → ∅
not A → Hom(A, ∅)
真→ not ∅
AかつB → 直積A×B
AまたはB → 直和A⊕B
AならばB
= not A または B
= (not A)⊕B
= Hom(A, ∅)⊕B
~ Hom(A, B) ※ 真偽が一致する
偽 → ∅
not A → Hom(A, ∅)
真→ not ∅
AかつB → 直積A×B
AまたはB → 直和A⊕B
AならばB
= not A または B
= (not A)⊕B
= Hom(A, ∅)⊕B
~ Hom(A, B) ※ 真偽が一致する
2024/03/24(日) 22:31:53.90ID:XQMIeHSx
プログラムはバイト列にコンパイルされるから、すべてのプログラムは高々可算個になるのだが、なぜ非可算集合をふくむ論理を扱えるんだ?
2024/03/24(日) 23:10:41.69ID:p5jI7jhC
量化してるからだよ
レスを投稿する
ニュース
- 鈴木農相「おこめ券はお米しか買えないわけではない。例えば卵、味噌、しょうゆ、こうした購入に利用可能」 [Hitzeschleier★]
- なぜリベラルは人気がないのか 斎藤幸平さんが指し示す未来への道筋:朝日新聞 [少考さん★]
- なぜリベラルは人気がないのか 斎藤幸平さんが指し示す未来への道筋:朝日新聞 ★2 [少考さん★]
- 【日本人の旅行離れ】国内旅行すら行けなくなった……オーバーツーリズムだけじゃない 旅行者減少の異常事態 ★2 [ぐれ★]
- ベトナムのバイク「脱ガソリン」、シェア8割のホンダに打撃…政府が電動二輪普及を主導 [煮卵★]
- “ひとり焼肉”でおなじみ「焼肉ライク」が閉店ラッシュ。なぜ「コスパが悪い」と言われてしまうのか [Gecko★]
- トランプ「高市ちょっと飛んでみて」高市「?ぴょんぴょん(チャリンチャリン)」トランプ「よし、まだ金あるから防衛費増額な」 [931948549]
- 小泉防衛大臣「レーダー照射がサァ!中国がサァ!」米国「そう・・・(無関心)」 [834922174]
- 俺氏(43)、障害年金とA型作業所の給料を貯め、資産が一時的ではあるが「2300万円」になる [201193242]
- ニート、無職、精神障害集まれ
- 【実況】博衣こよりのえちえちドラクエ1&2リメイク🧪
- 囲い込んでからサービスを劣化させる糞企業といえば? [441978185]
