The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Data.Finset.SymmDiff

11 declarations. Mathlib docs · Source

Symmetric difference of finite sets

This file concerns the symmetric difference operator s Δ t on finite sets.

Tags

finite sets, finset

Symmetric difference

theorem Finset.mem_symmDiff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α} {a : α}, a ∈ symmDiff s t ↔ a ∈ s ∧ a ∉ t ∨ a ∈ t ∧ a ∉ s

theorem Finset.symmDiff_def E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (s t : Finset α), symmDiff s t = s \ t ∪ t \ s

theorem Finset.coe_symmDiff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α}, ↑(symmDiff s t) = symmDiff ↑s ↑t

theorem Finset.symmDiff_eq_empty E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α}, symmDiff s t = ∅ ↔ s = t

theorem Finset.symmDiff_nonempty E0 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α}, (symmDiff s t).Nonempty ↔ s ≠ t

theorem Finset.image_symmDiff E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : DecidableEq α] [inst_1 : DecidableEq β] {f : α → β} (s t : Finset α),
  Function.Injective f → Finset.image f (symmDiff s t) = symmDiff (Finset.image f s) (Finset.image f t)

theorem Finset.symmDiff_subset_sdiff E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α}, s \ t ⊆ symmDiff s t

See symmDiff_subset_sdiff' for the swapped version of this.

theorem Finset.symmDiff_subset_sdiff' E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α}, t \ s ⊆ symmDiff s t

See symmDiff_subset_sdiff for the swapped version of this.

theorem Finset.symmDiff_subset_union E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α}, symmDiff s t ⊆ s ∪ t

theorem Finset.symmDiff_eq_union_iff E0 #

∀ {α : Type u_1} [inst : DecidableEq α] (s t : Finset α), symmDiff s t = s ∪ t ↔ Disjoint s t

theorem Finset.symmDiff_eq_union E1 #

∀ {α : Type u_1} [inst : DecidableEq α] {s t : Finset α}, Disjoint s t → symmDiff s t = s ∪ t