Prop
#Fleeting_Notes
Prop
命題を表す型
$ P \land Q \rightarrow Q \land P : \text{Prop}
bool ≠ Prop
Propは「証明可能」か「証明不能」
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. Prop
関連
sProp (集合)
mere propositions
参考
Prop_J: 命題と根拠 | ソフトウェアの基礎
メモ
Doctrines | The n-Category Café
type of propositions in nLab
『Software Foundations Vol.1 Logical Foundations』
調査用
Google.icon Prop(日)
Google.icon Prop(英)
Wikipedia.icon
Prop - Wikipedia(日)
Prop(検索) - Wikipedia(日)
Wikipedia.icon
Prop - Wikipedia(英)
Prop(検索) - Wikipedia(英)