Documentation

CslibFrontier.Foundations.Data.Set.SymmDiff

Symmetric difference of a set with a singleton #

Adding or removing one element changes the size of a finite set by one, so taking the symmetric difference with a singleton flips the parity of Set.ncard. This is the Set.ncard counterpart of Finset.symmDiff_singleton_eq.

Main results #

theorem Set.even_ncard_symmDiff_singleton_iff {α : Type u_1} {s : Set α} (hs : s.Finite) (a : α) :

Adding or removing one element by symmetric difference changes the parity of the size of a finite set.