inductiveset alsonothing :: "'a set" where circ: "x ∈ alsonothing ⟹ x ∈ alsonothing"…
- User
inductive_set also_nothing :: "'a set" where circ: "x ∈ also_nothing ⟹ x ∈ also_nothing"
lemma also_nothing_empty: "also_nothing = {}"
show non-isar proof
- Assistant
We can prove that
also_nothingis empty by contradiction. Supposealso_nothingis not empty, i.e., there exists an elementxsuch thatx ∈ also_nothing. Then, by the axiomcirc, we havex ∈ also_nothing. This leads to a contradiction sincealso_nothingcannot have any elements. Hence, our assumption thatalso_nothingis not empty must be false, i.e.,also_nothingis empty. QED. - User
write isabelle proof, don't write isar style
- Assistant
proof (rule ccontr) assume "also_nothing ≠ {}" then obtain x where "x ∈ also_nothing" by auto from this and circ have "x ∈ also_nothing" by simp thus False using also_nothing.circ by blast qed