English
Extensionality: two Sym2 objects are equal if they contain exactly the same elements.
Русский
Расширяемость: две структуры Sym2 α равны, если для всех x выполняется x ∈ p ↔ x ∈ q.
LaTeX
$$$ \\forall p,q \\in \\mathrm{Sym}^2(\\alpha),\\ (\\forall x,\\ x \\in p \\iff x \\in q) \\Rightarrow p = q. $$$
Lean4
@[ext]
theorem ext {p q : Sym2 α} (h : ∀ x, x ∈ p ↔ x ∈ q) : p = q :=
SetLike.ext h