我想用精益做一些拓扑工作。在精益中使用集合
作为一个好的开始,我想证明一些关于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)关于最后一个引理 –