Documentation

Mathlib.Data.Sym.Sym2.Card

Cardinality of Sym2 #

This file compares the cardinalities of Sym2 α and α × α and related sets, such as the equivalence class of a specific z : Sym2 α, or Sym2.fromRel sets.

@[simp]
theorem Sym2.finite_sym2_iff {α : Type u_1} :
@[simp]
theorem Sym2.infinite_sym2_iff {α : Type u_1} :
@[simp]
theorem Set.finite_sym2_iff {α : Type u_1} {s : Set α} :
theorem Set.Finite.sym2 {α : Type u_1} {s : Set α} :

Alias of the reverse direction of Set.finite_sym2_iff.

@[simp]
theorem Set.infinite_sym2_iff {α : Type u_1} {s : Set α} :
theorem Set.Infinite.sym2 {α : Type u_1} {s : Set α} :

Alias of the reverse direction of Set.infinite_sym2_iff.

@[simp]
theorem Sym2.cardinalMk_prod_le_two_mul_cardinalMk_fromRel {α : Type u_1} {r : α → α → Prop} (sym : Std.Symm r) :
Cardinal.mk { p : α × α // r p.1 p.2 } ≤ 2 * Cardinal.mk ↑(fromRel sym)
theorem Sym2.cardinalMk_prod_eq_two_mul_cardinalMk_fromRel {α : Type u_1} {r : α → α → Prop} (sym : Std.Symm r) [Std.Irrefl r] :
Cardinal.mk { p : α × α // r p.1 p.2 } = 2 * Cardinal.mk ↑(fromRel sym)
theorem Sym2.finite_fromRel_iff {α : Type u_1} {r : α → α → Prop} (sym : Std.Symm r) :
(fromRel sym).Finite ↔ Finite { p : α × α // r p.1 p.2 }
theorem Sym2.infinite_fromRel_iff {α : Type u_1} {r : α → α → Prop} (sym : Std.Symm r) :
(fromRel sym).Infinite ↔ {p : α × α | r p.1 p.2}.Infinite