Sorting the elements of Sym2
#
This files provides Sym2.sortEquiv
, the forward direction of which is somewhat analogous to
Multiset.sort
.
@[simp]
@[simp]
In a linear order, symmetric squares are canonically identified with ordered pairs.
Equations
Instances For
@[simp]
theorem
Sym2.sortEquiv_apply_coe
{α : Type u_1}
[LinearOrder α]
(s : Sym2 α)
:
↑(Sym2.sortEquiv s) = (s.inf, s.sup)
@[simp]