我想用精益做一些拓扑工作。 作为一个好的开始,我想证明一些关于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 (s
给定集合包含的证明及其相反,我希望能够证明两个集合是平等的。 例如,我知道如何证明following statement,并its converse: open set
universe u
variable elem_type : Type u
variable A : set elem_type
variable B : set elem_type
def set_deMorga
我试图从chapter 7 of "theorem proving in lean"了解归纳类型。 我给自己设定了证明自然数的是继任者的任务,拥有平等的一个替代性质: inductive natural : Type
| zero : natural
| succ : natural -> natural
lemma succ_over_equality (a b : natural) (