Zulip Chat Archive
Stream: new members
Topic: Subset of distinct elements
𝚠𝚘𝚓𝚌𝚒𝚎𝚌𝚑 𝚗𝚊𝚠𝚛𝚘𝚌𝚔𝚒 (Feb 19 2024 at 20:29):
Given X : Set α
, does mathlib provide a nice way to say ∀ a b c ∈ X, a ≠ b → a ≠ c → b ≠ c → ...
? I.e. to quantify over subsets of distinct elements of X
?
Junyan Xu (Feb 19 2024 at 20:40):
There's docs#Set.Pairwise but not "triplewise" etc.
What you want may be docs#List.sublistsLen (there are Multiset and Finset versions too, but these require X to be finite).
Eric Wieser (Feb 19 2024 at 21:17):
Or ∀ f : Fin 3 → X, f.Injective → P (f 0) (f 1) (f 2)
Last updated: May 02 2025 at 03:31 UTC