Elements of a doubled type in distinct pairs #
In α ⊕ α, each label p has a partner p.swap with the same underlying element of α. Two
labels that are neither equal nor partners have distinct underlying elements, so α has at least
two elements.
Main results #
Sum.nontrivial_of_ne_of_ne_swap: ifq ≠ pandq ≠ p.swapinα ⊕ α, thenαis nontrivial.