Zulip Chat Archive
Stream: Is there code for X?
Topic: 2 members of a set with 2 elements
Snir Broshi (Oct 21 2025 at 18:02):
import Mathlib
theorem foo {α : Type*} (a b c d : α)
(hc : c ∈ ({a, b} : Set α))
(hd : d ∈ ({a, b} : Set α)) :
c = d ∨ s(a, b) = s(c, d) := by
sorry
This feels like a grind or tauto problem but they fail here.
Ruben Van de Velde (Oct 21 2025 at 18:04):
simp_all; grind works
Snir Broshi (Oct 21 2025 at 18:06):
Thanks! This also helped me find grind [Sym2.eq_iff]
Jakub Nowak (Oct 21 2025 at 21:36):
Yeah, Sym2 doesn't have any lemmas marked with @[grind] unfortunately. :(
It has some @[aesop] lemmas though, and indeed aesop can close the goal.
Last updated: Dec 20 2025 at 21:32 UTC