Zulip Chat Archive
Stream: new members
Topic: Proving membership of a set literal in Lean 4
gldanoob (Feb 01 2024 at 03:10):
I encountered something like
⊢ Char.ofNat 98 ∈ {Char.ofNat 97, Char.ofNat 98, Char.ofNat 99}
in the middle of a proof. I've tried constructor
and unfold insert
without luck. How should I proceed, and where can I find information about the relevant theorems?
Kyle Miller (Feb 01 2024 at 03:14):
Have you tried simp
?
Kyle Miller (Feb 01 2024 at 03:19):
In any case, the way set membership with a set literal works is that it's ultimately an Or
of Eq
s, so you should be able to do right; left; rfl
.
Ruben Van de Velde (Feb 01 2024 at 08:12):
rw?
should probably come up with something too
Last updated: May 02 2025 at 03:31 UTC