LeanのProp
#Fleeting_Notes
Propは非可述的(impredicative)
Propは命題宇宙
LeanのPropはproof-irrelevance(証明無関係)というものになる
code:lean
#check And -- Prop → Prop → Prop
#check Or -- Prop → Prop → Prop
#check Not -- Prop → Prop
#check Implies -- Prop → Prop → Prop
variable (p q r : Prop)
#check And p q -- Prop
#check Or (And p q) r -- Prop
#check Implies (And p q) (And q p) -- Prop
Bool, Propの違い
Bool と Prop の違い
どちらも言明に対応するため、Bool と似ているようですが以下のような目立つ相違点があります:
1. Prop の項はそれ自身が型であるため、Prop は型宇宙であると言われます。Bool の項は型ではありません。
2. Prop の項は True か False のどちらであるかを判定するアルゴリズムがあるとは限りません。Bool の項は簡約すれば必ず true か false になります。
ref: https://lean-ja.github.io/lean-by-example/Type/Prop.html
確認用
Q. LeanのProp
参考
Prop: 命題全体 - Lean by Example
関連
依存型理論
証明無関係
メモ
Universes | The Lean Language Reference
依存型理論 - Theorem Proving in Lean 4 日本語訳
調査用
Google.icon LeanのProp(日)
Google.icon Lean prop(英)
Wikipedia.icon
LeanのProp - Wikipedia(日)
LeanのProp(検索) - Wikipedia(日)
Wikipedia.icon
Lean prop - Wikipedia(英)
Lean prop(検索) - Wikipedia(英)