我想用精益做一些拓撲工作。在精益中使用集合
作爲一個好的開始,我想證明一些關於sets in lean的簡單引理。
例如
def inter_to_union (H : a ∈ set.inter A B) : a ∈ set.union A B :=
sorry
或
def set_deMorgan : a ∈ set.inter A B → a ∈ set.compl (set.union (set.compl A) (set.compl B)) :=
sorry
或者,也許更有趣的是
def set_deMorgan2 : set.inter A B = set.compl (set.union (set.compl A) (set.compl B)) :=
sorry
但我不能只找到set.union
或set.inter
隨時隨地刪除規則,所以我不知道如何與他們合作。
- 如何證明引理句?
而且,看着definition of sets in lean,我可以看到語法的位,這看起來非常像紙數學,但我完全不依賴型理論層面理解,例如:
protected def sep (p : α → Prop) (s : set α) : set α :=
{a | a ∈ s ∧ p a}
- 如何將上述例子分解爲依賴/歸納類型的簡單概念?
我問[一個單獨的問題] (https://stackoverflow.com/questions/45658919/from-set-inclusion-to-set-equality-in-lean)關於最後一個引理 –