Zulip Chat Archive

Stream: Is there code for X?

Topic: pairwise implying R a b


Yakov Pechersky (May 06 2021 at 21:53):

Is there a shorthand lemma for something like?

lemma list.pairwise.mem_mem_ne_imp
{l : list α} {R : α → α → Prop} (h : pairwise R l) (symm : symmetric R) ⦃a : α⦄ (ha : a ∈ l)
  ⦃b : α⦄ (hb : b ∈ l) (hne : a ≠ b) : R a b

Bhavik Mehta (May 06 2021 at 23:02):

docs#list.forall_of_pairwise perhaps?

Aaron Anderson (May 07 2021 at 00:51):

docs#list.rel_of_pairwise_cons is as close as we get, I think


Last updated: Feb 28 2026 at 14:05 UTC